/* Deltas for the day-off flow (/doorstops/dayoff).

   The step system, cards and templates come from bathroom-flow.css,
   repainted for the zine by components/flow/flow-css.js. This file adds what
   only this page has: the calendar month beside the title, the holiday
   chips, the date and teacher-day picks, and the calendar notes.

   Everything inside a step is drawn with rules, not boxes: the step is
   already the card. */

.do .do-hero {
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 40px; align-items: center;
  width: 100%; max-width: 920px; margin: 0 auto; text-align: left;
}
.do .do-hero .bf-title { max-width: 13ch; margin: 0 0 14px; text-align: left; }
.do .do-hero-sub { max-width: 440px; margin: 0 0 24px; font-size: 18px; line-height: 1.55; color: var(--dl-muted); }
@media (max-width: 760px) {
  .do .do-hero { grid-template-columns: 1fr; gap: 26px; text-align: center; }
  .do .do-hero .bf-title { margin: 0 auto 14px; text-align: center; }
  .do .do-hero-sub { margin: 0 auto 24px; }
  .do .do-hero .do-lead { grid-row: 1; }
}

#bf-school-status:empty { display: none; }
.do a { display: inline; }

/* Any class rule with a `display` beats the browser's own `[hidden]`. */
.do [hidden] { display: none !important; }

.do .bf-solution-body { padding-left: 0; }

/* ---------------------------------------------------------- the lead */

.do .do-lead { display: flex; justify-content: center; }
.do .do-month {
  width: min(340px, 100%); padding: 12px 14px 14px;
  border: 3px solid #16130f; background: #fff; box-shadow: 6px 6px 0 #16130f;
}
.do .do-month-label { display: block; margin: 0 0 10px; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #6b5f52; }
.do .do-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
.do .do-grid b { font-size: 12.5px; font-weight: 700; color: #16130f; text-align: center; }
.do .do-grid i {
  position: relative; display: flex; align-items: center; justify-content: center; height: 46px;
  border: 2px solid #16130f; background: #FBF6EC; font-style: normal; font-size: 15px; font-weight: 700; color: #16130f;
}
/* resting style is the last frame: the day is mint and says "No school".
   The animation only runs under .is-play. */
.do .do-grid .do-off { background: #3ECFB0; flex-direction: column; gap: 1px; }
.do .do-off-num { display: block; font-size: 14px; line-height: 1; }
.do .do-off-tag { display: block; font-size: 8.5px; line-height: 1; letter-spacing: .02em; text-transform: uppercase; white-space: nowrap; }
.do .do-lead.is-play .do-off { animation: do-flip 3s ease both; }
.do .do-lead.is-play .do-off-tag { animation: do-tag 3s ease both; }
@keyframes do-flip {
  0%, 45% { background: #FBF6EC; transform: none; }
  60% { background: #3ECFB0; transform: scale(1.18) rotate(-4deg); }
  75%, 100% { background: #3ECFB0; transform: none; }
}
@keyframes do-tag { 0%, 55% { opacity: 0; } 75%, 100% { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  .do .do-lead.is-play .do-off, .do .do-lead.is-play .do-off-tag { animation: none; }
}

/* ------------------------------------------------- chips and picks */

.do .bf-step-body > .bf-label, .do #do-when > .bf-label, .do #do-calendar > .bf-label { display: block; margin: 14px 0 8px; }
.do .do-chips, .do .do-picks { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 14px; }
.do .do-picks--stack { flex-direction: column; align-items: flex-start; }
.do .do-chip, .do .do-pick {
  min-height: 44px; padding: 8px 14px; border: 2px solid #16130f; border-radius: 0; background: #fff;
  font: inherit; font-size: 15.5px; font-weight: 700; line-height: 1.25; text-align: left; color: #16130f; cursor: pointer;
  box-shadow: 3px 3px 0 #16130f; transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
}
.do .do-chip:hover, .do .do-pick:hover { transform: translate(-1px, -1px); box-shadow: 4px 4px 0 #16130f; }
.do .do-chip:focus-visible, .do .do-pick:focus-visible { outline: 2px solid #3ECFB0; outline-offset: 2px; }
.do .do-chip[aria-pressed="true"], .do .do-pick[aria-pressed="true"] { background: #3ECFB0; }

.do .do-datefield { max-width: 260px; }
.do .do-narrow { max-width: 320px; }

/* -------------------------------------------------------- shared bits */

.do .do-left { justify-content: flex-start; margin: 0 0 14px; }
.do .do-hint { margin: 2px 0 10px; font-size: 14px; line-height: 1.5; color: var(--bf-soft); }
.do .do-note { margin: 0 0 10px; padding-left: 12px; border-left: 3px solid #16130f; font-size: 15.5px; line-height: 1.5; }
.do .do-note--good { border-left-color: #3ECFB0; }
.do .do-find { margin: 8px 0 0; font-size: 14px; color: var(--bf-soft); }
.do .bf-template > .do-find { margin: -4px 0 0; padding: 0 18px 16px; }
.do .do-list { margin: 0 0 12px; padding-left: 22px; }
.do .do-list li { margin: 0 0 6px; }

/* --------------------------------------------------------- the session */

.do .do-session h3 { margin: 0 0 8px; font-family: var(--dl-font-display); font-size: 22px; }
.do .do-session ul { margin: 0 0 12px; padding-left: 20px; }
.do .do-session li { margin: 0 0 6px; font-size: 15.5px; line-height: 1.5; }
