.cover-teach {
  container-type: inline-size;
  --show-scene: 0;
  --rise: 8px;
}
.cover-teach:focus-visible, .cover-teach.in-view {
  --show-scene: 1;
  --rise: 0px;
  --lesson-delay: .38s;
  --message-delay: 1.25s;
}
@media (hover: hover) {
  .cover-teach:hover {
    --show-scene: 1;
    --rise: 0px;
    --lesson-delay: .38s;
    --message-delay: 1.25s;
  }
}
.teach-scene {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: #e8f3e9;
  color: #24392c;
  opacity: var(--show-scene);
  transition: opacity .25s ease;
  font-size: clamp(13px, 3.5cqi, 24px);
  line-height: 1.35;
}
.teach-planner, .teach-message {
  position: absolute;
  border-radius: .8em;
  box-shadow: 0 .6em 1.6em #203e2814;
}
.teach-planner {
  inset: 8% 12% auto 5%;
  padding: 1em 1.05em 1.2em;
  background: #fff;
}
.teach-day, .teach-slot, .teach-message { display: flex; align-items: center; }
.teach-day { justify-content: space-between; margin-bottom: .8em; font-weight: 600; }
.teach-day small, .teach-slot small { font-size: .72em; color: #58655c; font-weight: 400; }
.teach-slot {
  gap: .8em;
  min-height: 2.4em;
  border-top: 1px solid #e6ebe6;
}
.teach-previous, .teach-lesson {
  flex: 1;
  border-left: .22em solid #b6bdb8;
  border-radius: .3em;
  padding: .45em .7em;
  font-size: .8em;
  background: #f1f4f1;
}
.teach-lesson {
  background: #dcf2df;
  border-color: #478359;
  font-weight: 500;
  opacity: var(--show-scene);
  transform: translateY(var(--rise));
  transition: opacity .32s ease var(--lesson-delay, 0s), transform .32s ease var(--lesson-delay, 0s);
}
.teach-message {
  right: 5%;
  bottom: 7%;
  width: 78%;
  gap: .75em;
  padding: .85em 1em;
  color: #162b20;
  background: #fff;
  border: 1px solid #cddfcf;
  opacity: var(--show-scene);
  transform: translateY(var(--rise));
  transition: opacity .35s ease var(--message-delay, 0s), transform .35s ease var(--message-delay, 0s);
}
.teach-message small { display: block; color: #56645e; margin-bottom: .25em; font-size: .68em; }
.teach-plane {
  flex: 0 0 1.9em;
  height: 1.9em;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #299ed6;
}
.teach-plane::before {
  content: '';
  width: 60%;
  height: 58%;
  background: white;
  clip-path: polygon(0 43%, 100% 0, 82% 91%, 48% 65%, 39% 80%, 37% 59%, 80% 20%, 28% 53%);
}
@media (prefers-reduced-motion: reduce) {
  .teach-scene, .teach-lesson, .teach-message { transition: none; transform: none; }
}
@container (max-width: 260px) {
  .teach-planner { top: 5%; padding: .75em .85em; }
  .teach-day { margin-bottom: .35em; }
  .teach-slot { min-height: 2.1em; }
  .teach-message { bottom: 5%; width: 83%; }
}
