.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-section,
  .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;
  }

  .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;
  }
}
