/* A moving reading focus, not a second entrance or a perimeter glow. */
.calendar .agenda-study-day>header{position:relative}
.calendar .agenda-study-day>header b{transition:background-color .65s,color .65s,box-shadow .65s}
.calendar .agenda-study-day.agenda-current>header b{background:#102e3a;color:#e8fbf5;box-shadow:0 4px 10px #102e3a12}
.calendar .agenda-study-day>header:after{content:'';position:absolute;left:8px;right:8px;bottom:5px;height:2px;background:#008a80;transform:scaleX(0);transform-origin:left;opacity:0;pointer-events:none}
.calendar .agenda-current>header:after{animation:agenda-reading-line 4.2s ease-in-out forwards;animation-play-state:paused}
.calendar.agenda-flowing .agenda-current>header:after{animation-play-state:running}
.calendar .agenda-ready>.calendar-block{transition:background-color .65s,border-color .65s,box-shadow .65s}
.calendar .agenda-ready.agenda-current>.calendar-block{animation:agenda-presence 4.2s ease-in-out forwards;animation-play-state:paused;border-color:#459b8e;box-shadow:0 9px 20px #102e3a14}
.calendar.agenda-flowing .agenda-ready.agenda-current>.calendar-block{animation-play-state:running}
.calendar .agenda-current>.study-first{background:#e2f3ec}
.calendar .agenda-current>.study-review{border-color:#31706f;background:#173f49}
.calendar .agenda-current>.study-summary{background:#eaf4ef}
.calendar .agenda-ready.agenda-current>.calendar-block[aria-expanded=true]{animation:none;transform:none}
@keyframes agenda-presence{0%,100%{transform:translateY(0)}35%,65%{transform:translateY(-3px)}}
@keyframes agenda-reading-line{0%{transform:scaleX(0);opacity:0}12%{opacity:.65}78%{transform:scaleX(1);opacity:.65}100%{transform:scaleX(1);opacity:0}}
@media(max-width:760px){
  .calendar .agenda-study-day>header:after{left:0;right:auto;top:90px;bottom:auto;width:36px}
  .calendar .agenda-ready.agenda-current>.calendar-block{animation-name:agenda-presence-mobile}
  @keyframes agenda-presence-mobile{0%,100%{transform:translateX(0)}35%,65%{transform:translateX(2px)}}
}
@media(prefers-reduced-motion:reduce){
  .calendar .agenda-study-day>header b,.calendar .agenda-ready>.calendar-block{transition:none!important}
  .calendar .agenda-current>header:after,.calendar .agenda-ready.agenda-current>.calendar-block{animation:none!important;transform:none!important}
  .calendar .agenda-study-day>header:after{display:none}
}

