.teacher-access {
  border-color: var(--line);
  background: var(--paper-bright);
  color: var(--ink);
}

.teacher-access:hover {
  border-color: var(--coral-dark);
  background: #fff1ed;
  color: var(--coral-dark);
}

.family-quick-nav {
  display: flex;
  justify-content: center;
  gap: 0.45rem;
  width: min(calc(100% - 2rem), var(--content));
  margin-inline: auto;
  padding: 0.6rem 0;
  border-block: 1px solid var(--line);
}

.family-quick-nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  color: var(--teal);
  font-size: 0.88rem;
  font-weight: 800;
  text-align: center;
  text-decoration: none;
}

.family-quick-nav a:hover {
  background: var(--teal-pale);
}

.day-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.today-badge {
  padding: 0.18rem 0.45rem;
  border-radius: 999px;
  background: var(--gold);
  color: var(--ink-deep);
  font-size: 0.7rem;
  font-weight: 900;
}

.week-grid.is-empty {
  grid-template-columns: minmax(0, 1fr);
}

.week-empty-state {
  padding: clamp(1.1rem, 3vw, 1.6rem);
  border: 1px solid rgb(255 255 255 / 22%);
  border-radius: var(--radius);
  background: rgb(255 255 255 / 8%);
}

.week-empty-state h3,
.week-empty-state p {
  max-width: 52rem;
}

.week-empty-state p {
  margin: 0.35rem 0 0.85rem;
  color: #c5d9dd;
}

.week-empty-state a {
  display: inline-flex;
  min-height: 2.75rem;
  align-items: center;
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  background: white;
  color: var(--ink-deep);
  font-weight: 800;
  text-decoration: none;
}

.week-empty-icon {
  display: inline-block;
  margin-bottom: 0.45rem;
  color: #93d5ca;
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.filter-bar {
  grid-template-columns: minmax(0, 2fr) minmax(10rem, 0.7fr) auto;
}

.filter-reset-group {
  min-width: 8.5rem;
}

.filter-reset-group > span {
  font-size: 0.78rem;
  font-weight: 800;
}

.filter-reset-group .button {
  min-height: 2.75rem;
  padding: 0.45rem 0.8rem;
  color: var(--teal);
  white-space: nowrap;
}

.homework-focus {
  margin: 0.45rem 0 0.9rem;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.45;
}

.homework-focus strong {
  color: var(--ink);
}

.homework-actions .arcade-link {
  border-color: var(--coral-dark);
  background: #fff1ed;
  color: var(--coral-dark);
}

@media (max-width: 40rem) {
  .compact-intro {
    gap: 0.8rem;
    margin-block: 0.85rem 1rem;
  }

  h1 {
    max-width: 12ch;
    font-size: clamp(2.25rem, 12.5vw, 3.25rem);
  }

  .site-header {
    gap: 0.7rem;
    padding-block: 0.8rem;
  }

  .utility-nav {
    gap: 0.3rem;
  }

  .utility-button {
    padding-inline: 0.65rem;
    font-size: 0.78rem;
  }

  .family-quick-nav {
    justify-content: stretch;
    width: auto;
    margin-inline: 1rem;
    padding-block: 0.45rem;
  }

  .family-quick-nav a {
    flex: 1 1 0;
    padding-inline: 0.35rem;
    font-size: 0.78rem;
  }
}

/* ── Sticky section nav + active state ───────────────────────────── */
.family-quick-nav {
  position: sticky;
  top: 0;
  z-index: 15;
  background: var(--paper);
}

.family-quick-nav a[aria-current="true"] {
  background: var(--teal);
  color: #fff;
}

/* ── "Take this week with you" toolbar (dark week section) ────────── */
.chip-button {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  min-height: 2.5rem;
  padding: 0.4rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper-bright);
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

.chip-button:hover {
  border-color: var(--teal);
  color: var(--teal);
}

.week-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.9rem;
  margin-bottom: 0.9rem;
}

.week-toolbar-title {
  color: #cfe4e4;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.week-toolbar-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.week-toolbar .chip-button {
  border-color: rgb(255 255 255 / 35%);
  background: rgb(255 255 255 / 8%);
  color: #fff;
}

.week-toolbar .chip-button:hover {
  background: rgb(255 255 255 / 16%);
  color: #fff;
}

.week-freshness {
  margin: 0.3rem 0 0;
  color: #9fc0c4;
  font-size: 0.8rem;
  font-weight: 700;
}

/* ── Ask-at-home prompt on lesson day cards ──────────────────────── */
.day-talk {
  margin: 0 0 0.75rem;
  color: #cfe0e3;
  font-size: 0.82rem;
  line-height: 1.4;
}

.day-talk-label {
  font-weight: 800;
  color: #f2d79a;
}

/* ── "Try one together" spotlight + weekly vocabulary ────────────── */
.week-spotlight,
.week-vocab {
  margin-top: 0.9rem;
}

.week-spotlight[hidden],
.week-vocab[hidden] {
  display: none;
}

.spotlight-card {
  padding: clamp(1rem, 3vw, 1.5rem);
  border-left: 0.3rem solid var(--coral);
  border-radius: var(--radius);
  background: var(--paper-bright);
  color: var(--ink);
}

.spotlight-kicker {
  margin: 0 0 0.35rem;
  color: var(--coral-dark);
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.spotlight-focus {
  margin: 0;
  font-size: 1.05rem;
}

.spotlight-objective {
  margin: 0.4rem 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.spotlight-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  align-items: center;
  margin-top: 0.9rem;
}

.vocab-card {
  padding: clamp(0.9rem, 3vw, 1.3rem);
  border: 1px solid rgb(255 255 255 / 18%);
  border-radius: var(--radius);
  background: rgb(255 255 255 / 8%);
}

.vocab-title {
  margin: 0 0 0.6rem;
  color: #fff;
  font-weight: 800;
}

.vocab-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0 0 0.6rem;
  padding: 0;
  list-style: none;
}

.vocab-chip {
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  background: #fff;
  color: var(--ink-deep);
  font-size: 0.82rem;
  font-weight: 800;
}

.vocab-hint {
  margin: 0;
  color: #bad0d4;
  font-size: 0.85rem;
}

/* ── Family check-in (pulse) ─────────────────────────────────────── */
.family-pulse {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.8rem 1.2rem;
  margin-top: 1.5rem;
  padding: clamp(1rem, 3vw, 1.4rem);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper-bright);
}

.pulse-copy {
  flex: 1 1 16rem;
}

.pulse-copy strong {
  font-size: 1rem;
}

.pulse-copy p {
  margin: 0.25rem 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.pulse-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.pulse-button[aria-pressed="true"] {
  border-color: var(--teal);
  background: var(--teal-pale);
  color: var(--teal);
}

.pulse-thanks {
  flex: 1 1 100%;
  margin: 0;
  padding-top: 0.4rem;
  border-top: 1px dashed var(--line);
}

.pulse-thanks[hidden] {
  display: none;
}

.pulse-thanks p {
  margin: 0.5rem 0 0.3rem;
  font-weight: 700;
  color: var(--teal);
}

/* ── Pinned / dated family updates ───────────────────────────────── */
.announcement-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

.announcement-card.is-pinned {
  border-left-color: var(--gold);
}

.announcement-pin {
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  background: var(--gold);
  color: var(--ink-deep);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.announcement-date {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 700;
}

/* ── Scheduler interpreter row ───────────────────────────────────── */
.meeting-interpreter {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.meeting-interpreter input {
  min-height: auto;
}

/* ── Reduced motion ──────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* ── Print: a clean, fridge-ready week ───────────────────────────── */
@media print {
  .site-header,
  .family-quick-nav,
  .week-toolbar,
  .homework-library-panel,
  .practice-heading .count-chip,
  .homework-details-disclosure,
  .scheduler-section,
  .support-section,
  .connect-section,
  .skip-link,
  footer {
    display: none !important;
  }

  .week-section {
    padding: 0 !important;
    background: #fff !important;
    color: #000 !important;
  }

  .week-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  /* This week's practice prints with the week — a paper copy is useless if it
     cannot tell a family where the practice lives, so links print their URL. */
  /* No posted week means nothing to print here — do not leave a bare heading. */
  .homework-section:not(:has(.week-practice:not([hidden]))) {
    display: none !important;
  }

  .homework-section,
  .week-practice {
    padding: 0 !important;
    background: #fff !important;
    color: #000 !important;
  }

  .homework-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .homework-card {
    border: 1px solid #999 !important;
    background: #fff !important;
    color: #000 !important;
    break-inside: avoid;
  }

  .homework-card *,
  .homework-day-chip {
    color: #000 !important;
    background: transparent !important;
  }

  .homework-actions a[href^="/"]::after {
    content: " (eduwonderlab.com" attr(href) ")";
    font-weight: 400;
  }

  .day-card,
  .week-banner,
  .spotlight-card,
  .vocab-card {
    border: 1px solid #999 !important;
    background: #fff !important;
    color: #000 !important;
    break-inside: avoid;
  }

  .day-card *,
  .week-banner *,
  .spotlight-card *,
  .vocab-card *,
  .vocab-chip {
    color: #000 !important;
    background: transparent !important;
  }

  a {
    color: #000 !important;
    text-decoration: none;
  }
}

/* ── Quick Post & Newsletter Drawer Styling ───────────────────────────────── */
.ewl-qp-drawer {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}
.ewl-qp-drawer.open {
  opacity: 1;
  pointer-events: auto;
}
.ewl-qp-box {
  background: #ffffff;
  border-radius: 20px;
  max-width: 640px;
  width: 100%;
  padding: 28px;
  position: relative;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.35);
  font-family: Atkinson Hyperlegible, system-ui, sans-serif;
  color: #0f172a;
}
.ewl-qp-close {
  background: #f1f5f9;
  border: none;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  font-weight: 800;
  font-size: 16px;
  color: #475569;
  cursor: pointer;
}
.ewl-qp-tag {
  background: #e0f2fe;
  color: #0369a1;
  font-weight: 800;
  padding: 4px 12px;
  border-radius: 8px;
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: inline-block;
  margin-bottom: 6px;
}
.ewl-qp-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid #e2e8f0;
}
.ewl-qp-header h2 {
  font-family: Nunito, sans-serif;
  font-size: 1.45rem;
  margin: 0;
  color: #0f172a;
  font-weight: 900;
}
.ewl-qp-step {
  margin-bottom: 18px;
}
.ewl-qp-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #475569;
  margin-bottom: 6px;
}
.ewl-qp-select,
.ewl-qp-textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid #cbd5e1;
  border-radius: 10px;
  font-size: 0.95rem;
  font-weight: 700;
  background: #f8fafc;
  color: #0f172a;
  box-sizing: border-box;
}
.ewl-qp-autofill-btn {
  margin-top: 8px;
  background: #f0f9ff;
  color: #0284c7;
  border: 1.5px solid #bae6fd;
  border-radius: 8px;
  padding: 6px 14px;
  font-weight: 800;
  font-size: 12.5px;
  cursor: pointer;
}
.ewl-qp-export-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
}
.ewl-qp-exp-btn {
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  border-radius: 9px;
  padding: 10px 12px;
  font-size: 13px;
  font-weight: 800;
  color: #0f172a;
  cursor: pointer;
  text-align: center;
}
.ewl-qp-exp-btn:hover {
  background: #e0f2fe;
  border-color: #0284c7;
  color: #0369a1;
}
.ewl-qp-toast {
  background: #10b981;
  color: white;
  padding: 10px 14px;
  border-radius: 8px;
  font-weight: 800;
  font-size: 13px;
  margin-top: 10px;
  text-align: center;
}
.ewl-qp-footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid #e2e8f0;
}
.ewl-qp-cancel {
  padding: 10px 18px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 13.5px;
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  color: #475569;
  cursor: pointer;
}
.ewl-qp-publish {
  padding: 10px 20px;
  border-radius: 10px;
  font-weight: 800;
  font-size: 13.5px;
  background: #0284c7;
  border: none;
  color: white;
  cursor: pointer;
}

