/* Pilgrim Apps design system (artifact XL3NkTe87vVyHRev8eDfQv). The shell,
   form and button rules come from Pilgrim Schedules; the theater pieces are
   at the end. */
:root {
  --skyline: #1364ad; --skyline-hover: #0e569a; --skyline-wash: #eff5fb;
  --tidal: #18355f; --coastal: #5eacd6; --basin: #d1eceb; --desert: #ece2ce;
  --mandarin: #f16723; --mandarin-text: #a8410f; --mandarin-wash: #fef4ee;
  --ink: #0e1b2e; --slate: #42536a; --mist: #5f6e82;
  --line: #e4e9f0; --field: #d5dce5; --tag-line: #c9d6e4; --wash: #f6f8fa; --seg-ground: #eef2f6; --surface: #fff;
  --danger: #b42318; --danger-line: #f1c0bb; --danger-wash: #fef3f2; --cancelled-dot: #b5c0cc;
  --sans: "Helvetica Neue", "Hanken Grotesk", Helvetica, Arial, sans-serif;
  --wrap: 880px;   /* a form or record page; schedule pages use body.wide */
}
* { box-sizing: border-box; }
/* .btn, .pill and other display rules would otherwise beat the attribute. */
[hidden] { display: none !important; }
body {
  margin: 0; background: var(--surface); color: var(--ink);
  font: 400 14px/20px var(--sans);
  -webkit-font-smoothing: antialiased;
}

/* ── Shell (public/nav.js; Covered's frame, c- names) ───────────────────── */
/* Pages opt in with body.has-shell. The frame is fixed, and these paddings
   reserve its room before the script runs, so the page never jumps. */
body.has-shell { padding: 56px 0 calc(58px + env(safe-area-inset-bottom)); }
@media (min-width: 1024px) { body.has-shell { padding: 64px 0 0 248px; } }

.c-skip { position: fixed; left: 8px; top: -48px; z-index: 100; padding: 10px 14px; border-radius: 8px;
  background: var(--tidal); color: #fff; font-size: 14px; font-weight: 600; text-decoration: none; }
.c-skip:focus { top: 8px; }

.c-side { display: none; }
@media (min-width: 1024px) {
  .c-side { position: fixed; top: 0; left: 0; bottom: 0; z-index: 30; width: 248px; padding: 20px 14px 14px;
    background: var(--tidal); display: flex; flex-direction: column; overflow-y: auto; }
}
.c-side__brand { display: flex; align-items: center; justify-content: space-between; padding: 4px 10px 18px; text-decoration: none; }
.c-side__brand img { height: 28px; width: auto; }
/* The one uppercase word in the system: the app name in the sidebar. */
.c-side__brand span { font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--coastal); }
.c-side__nav { display: flex; flex-direction: column; gap: 2px; padding-top: 10px; }
.c-side__gap { height: 18px; }
.c-side__group { margin: 18px 12px 6px; font-size: 12px; font-weight: 600; color: rgba(255,255,255,.62); }
.c-side__link { display: flex; align-items: center; gap: 12px; height: 36px; padding: 0 12px; border-radius: 8px;
  color: rgba(255,255,255,.78); font-size: 14px; font-weight: 500; text-decoration: none; }
.c-side__link:hover { background: rgba(255,255,255,.07); color: #fff; }
.c-side__link[aria-current="page"] { background: rgba(255,255,255,.13); color: #fff; }
.c-side__link svg { flex: none; }
.c-side a:focus-visible, .c-side button:focus-visible { outline: 2px solid var(--coastal); outline-offset: 1px; }
.c-side__account { margin-top: auto; display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px; border: 0;
  border-radius: 10px; background: rgba(255,255,255,.07); color: #fff; font: inherit; text-align: left; cursor: pointer; }
.c-side__account:hover { background: rgba(255,255,255,.12); }
.c-side__who { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.c-side__who span:first-child { font-size: 14px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.c-side__who span:last-child { font-size: 12px; color: rgba(255,255,255,.72); }

.c-avatar { width: 32px; height: 32px; border-radius: 16px; flex: none; display: inline-flex; align-items: center; justify-content: center;
  background: var(--basin); color: var(--tidal); font-size: 12px; font-weight: 600; }

.c-top { position: fixed; top: 0; left: 0; right: 0; z-index: 20; display: flex; align-items: center; gap: 4px;
  height: 56px; padding: 0 8px 0 16px; background: rgba(255,255,255,.96); border-bottom: 1px solid var(--line);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.c-top__back { display: inline-flex; align-items: center; gap: 2px; height: 44px; padding: 0 10px 0 4px; margin-right: 4px;
  border: 0; border-radius: 8px; background: transparent; color: var(--skyline); font: 500 15px/20px var(--sans); cursor: pointer; }
.c-top__back[hidden] { display: none; }
.c-top__back:hover { background: var(--skyline-wash); }
.c-top__back:focus-visible { outline: 2px solid var(--skyline); outline-offset: 1px; }
.c-top__logo img { height: 24px; width: auto; display: block; }
.c-top__spacer { flex: 1; }
.c-top__today { display: none; }
.c-iconbtn { width: 44px; height: 44px; border: 0; border-radius: 8px; background: transparent; color: var(--slate);
  display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.c-iconbtn:hover { background: var(--wash); }
@media (min-width: 1024px) {
  /* The date ends on the content's right edge: main is at most --wrap wide, with 40px padding. */
  .c-top { left: 248px; height: 64px; padding: 0 max(40px, calc(100vw - 248px - var(--wrap) + 40px)) 0 40px; gap: 12px; }
  .c-top__logo, .c-phone-only { display: none; }
  .c-top__today { display: block; font-size: 13px; color: var(--slate); white-space: nowrap; }
  /* The sidebar button already shows the name and role. */
  .c-sheet__who { display: none; }
}

.c-tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: flex;
  padding: 4px 6px calc(4px + env(safe-area-inset-bottom)); background: rgba(255,255,255,.97);
  border-top: 1px solid var(--line); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
@media (min-width: 1024px) { .c-tabbar { display: none; } }
.c-tab { flex: 1; min-width: 0; height: 50px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  border: 0; background: transparent; color: var(--mist); font: 500 11px/14px var(--sans); text-decoration: none; cursor: pointer; }
.c-tab[aria-current="page"] { color: var(--skyline); }
.c-tab:focus-visible { outline: 2px solid var(--skyline); outline-offset: -2px; border-radius: 8px; }

/* Viewing as: Desert, above the page, while an admin views as someone else. */
.c-viewing { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 4px 12px;
  padding: 8px 16px; background: var(--desert); color: var(--ink); font-size: 13px; line-height: 18px; text-align: center; }
.c-viewing button { border: 0; background: transparent; color: var(--skyline); font: inherit; font-weight: 600; cursor: pointer; padding: 4px; }

/* Account menu, More and View as: one sheet (a native <dialog>). */
.c-sheet { width: min(420px, calc(100vw - 32px)); max-height: 85vh; padding: 0; border: 0; border-radius: 14px;
  background: var(--surface); color: var(--ink); box-shadow: 0 12px 32px rgba(14,27,46,.18); }
.c-sheet::backdrop { background: rgba(14,27,46,.5); }
@media (max-width: 640px) {
  .c-sheet { width: 100%; max-width: none; margin: auto 0 0; border-radius: 16px 16px 0 0; }
}
.c-sheet__body { display: flex; flex-direction: column; gap: 2px; padding: 16px 16px calc(16px + env(safe-area-inset-bottom)); }
.c-sheet__title { margin: 0 8px 2px; font-size: 16px; line-height: 24px; font-weight: 600; }
.c-sheet__hint { margin: 0 8px 12px; font-size: 13px; color: var(--slate); }
.c-sheet__who { display: flex; align-items: center; gap: 12px; padding: 4px 8px 12px; margin-bottom: 4px; border-bottom: 1px solid var(--line); }
.c-sheet__who > span:last-child { display: flex; flex-direction: column; min-width: 0; font-size: 14px; }
.c-sheet__who strong { font-weight: 600; }
.c-sheet__who > span:last-child span { font-size: 13px; color: var(--slate); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.c-sheet__item { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 44px; padding: 0 8px; border: 0; border-radius: 8px;
  background: transparent; color: var(--ink); font: 500 15px/20px var(--sans); text-align: left; text-decoration: none; cursor: pointer; }
.c-sheet__item:hover, .c-sheet__item[aria-current="page"] { background: var(--skyline-wash); }
.c-sheet__item:focus-visible { outline: 2px solid var(--skyline); outline-offset: -2px; }
.c-sheet__item > svg { color: var(--slate); flex: none; width: 32px; }   /* as wide as the avatar: one text edge */
.c-sheet__item > span { flex: 1; min-width: 0; }
.c-sheet__item > .c-avatar { flex: none; }
.c-sheet__item small { font-size: 13px; font-weight: 400; color: var(--slate); }
.c-sheet__rule { height: 1px; margin: 8px 0; background: var(--line); }
.c-sheet__search { width: 100%; min-height: 44px; padding: 0 12px; margin-bottom: 8px; border: 1px solid var(--field); border-radius: 8px;
  font: 400 16px/22px var(--sans); color: var(--ink); }
.c-sheet__list { display: flex; flex-direction: column; gap: 2px; max-height: 55vh; overflow-y: auto; }
.c-sheet__empty { margin: 8px; font-size: 14px; color: var(--slate); }

/* ── Layout ─────────────────────────────────────────────────────────────── */
main { max-width: var(--wrap); margin: 0 auto; padding: 20px 16px 56px; }
body.has-shell main { margin: 0; }
@media (min-width: 1024px) { body.has-shell main { padding: 32px 40px 64px; } }
/* PageHeader: the page title (28/600, sentence case) and one line under it. */
.c-pagehead { margin-bottom: 24px; }
/* A title with its page buttons on the right, as in Operations' All requests. */
.c-pagehead.with-actions { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px 16px; flex-wrap: wrap; }
.c-pagehead .pageactions { margin: 0; }
.c-pagehead h1 { margin: 0; font-size: 28px; line-height: 32px; font-weight: 600; letter-spacing: -.02em; }
.c-pagehead p { margin: 6px 0 0; font-size: 14px; line-height: 20px; color: var(--slate); }
.pageactions { display: flex; justify-content: flex-end; gap: 8px; margin-bottom: 12px; }
/* Rows, not cards: a page is sections split by hairlines. .c-card marks the
   one thing that must stand apart (a student's "Add my classes"). */
.card { padding: 24px 0 0; margin: 0 0 32px; border-top: 1px solid var(--line); }
/* The first section under a page title needs no line above it. */
.c-pagehead ~ .card:first-of-type, main > .card:first-child { border-top: 0; padding-top: 0; }
.c-card { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 20px; margin: 0 0 32px; }
.card h2, .c-card h2 { margin: 0; font-size: 15px; line-height: 20px; font-weight: 600; }
.card .hint, .c-card .hint { margin: 4px 0 0; font-size: 13px; line-height: 18px; color: var(--slate); }

/* ── Form ───────────────────────────────────────────────────────────────── */
label { display: block; font-size: 13px; line-height: 18px; font-weight: 500; color: var(--slate); margin: 0 0 4px; }
.field { margin-top: 16px; }
input[type=text], input[type=time], input[type=date], select {
  width: 100%; min-height: 36px; padding: 7px 10px; border: 1px solid var(--field); border-radius: 8px;
  font: 400 14px/20px var(--sans); background: var(--surface); color: var(--ink);
}
input:focus-visible, select:focus-visible, button:focus-visible, a:focus-visible {
  outline: 2px solid var(--skyline); outline-offset: 2px;
}
/* Under 1024px inputs are 16px, or iOS zooms the page on focus. */
@media (max-width: 1023px) {
  input[type=text], input[type=time], input[type=date], select { font-size: 16px; line-height: 22px; }
}
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 16px; }
/* Two columns on narrow screens, with the third item spanning the full width
   rather than sitting alone in a half column. */
.entry .count { font-size: 13px; font-weight: 500; color: var(--ink); white-space: nowrap; }
/* A rule that adds nothing: the Mandarin mark and its words. */
.entry.bad .count { display: inline-flex; align-items: center; gap: 6px; color: var(--mandarin-text); white-space: normal; }
.entry.bad .count::before { content: ""; flex: none; width: 8px; height: 8px; border-radius: 4px; background: var(--mandarin); }

/* ── Buttons ────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 36px; border: 1px solid transparent; border-radius: 8px; padding: 0 16px; cursor: pointer;
  font: 600 14px/20px var(--sans); background: var(--skyline); color: #fff; text-decoration: none;
}
.btn:hover { background: var(--skyline-hover); }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
.btn.ghost { background: var(--surface); color: var(--ink); border-color: var(--field); }
.btn.ghost:hover { background: var(--wash); }
.btn.danger { background: var(--surface); color: var(--danger); border-color: var(--danger-line); }
.btn.danger:hover { background: var(--danger-wash); }
.btn.small { min-height: 30px; padding: 0 12px; font-size: 13px; }
/* Phones: tap targets of at least 44px. */
@media (max-width: 640px) {
  .btn, .btn.small { min-height: 44px; }
  /* Stacked action buttons share one edge. */
  .actions.stack .btn { width: 100%; }
  input[type=text], input[type=time], input[type=date], select { min-height: 44px; }
  .day { min-height: 44px; align-items: center; }
  .modes button { min-height: 44px; }
}

/* ── Bits ───────────────────────────────────────────────────────────────── */
/* Notice (named .notice: the grid has its own .note for a room). Attention
   (Mandarin wash, Mandarin dot, Mandarin text on the wash) by default;
   .notice.info is the quiet one. Poppy yellow is never a status. */
.notice {
  border: 1px solid var(--line); background: var(--mandarin-wash); color: var(--mandarin-text);
  padding: 8px 12px; border-radius: 8px; font-size: 13px; line-height: 18px; margin-top: 8px;
}
.notice::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 4px; background: var(--mandarin); margin-right: 8px; vertical-align: 1px; }
.notice.info { background: var(--wash); color: var(--ink); }
.notice.info::before { background: var(--skyline); }
.actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-top: 16px; }
.status { font-size: 13px; color: var(--slate); }
.error { color: var(--danger); font-size: 13px; }

/* ── Theater ────────────────────────────────────────────────────────────── */
/* Sidebar foot: who is signed in, and Sign out. */
.c-side__foot { margin-top: auto; display: flex; flex-direction: column; gap: 6px; padding: 10px; border-radius: 10px; background: rgba(255,255,255,.07); color: #fff; }
.c-side__foot .c-side__who span { font-size: 13px; color: rgba(255,255,255,.78); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.c-side__out { display: inline-flex; align-items: center; gap: 8px; padding: 6px 0; border: 0; background: transparent; color: #fff; font: 500 14px/20px var(--sans); cursor: pointer; text-align: left; }
@media (min-width: 1024px) { .c-top form.c-phone-only { display: none; } }

textarea { width: 100%; padding: 8px 10px; border: 1px solid var(--field); border-radius: 8px; font: 400 14px/20px var(--sans); color: var(--ink); resize: vertical; }
input[type=password], input[type=url] { width: 100%; min-height: 36px; padding: 7px 10px; border: 1px solid var(--field); border-radius: 8px; font: 400 14px/20px var(--sans); color: var(--ink); background: var(--surface); }
@media (max-width: 1023px) { textarea, input[type=password], input[type=url] { font-size: 16px; line-height: 22px; } }
@media (max-width: 640px) { input[type=password], input[type=url] { min-height: 44px; } }
.hint { margin: 4px 0 0; font-size: 13px; line-height: 18px; color: var(--slate); }
.field .hint { margin: 0 0 8px; }
.field input + .hint { margin: 6px 0 0; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 16px; }
.grid2 > .actions { grid-column: 1 / -1; margin-top: 0; }
@media (max-width: 620px) { .grid2 { grid-template-columns: 1fr; } }
.narrow { max-width: 420px; }
.inline { display: flex; gap: 8px; }
.inline select { flex: 1; }

/* Rows: a time column, the row's title with its meta line, an action at the end. */
.rows { border-top: 1px solid var(--line); }
.row { display: grid; grid-template-columns: 128px 1fr auto; gap: 4px 16px; align-items: baseline; padding: 12px 0; border-bottom: 1px solid var(--line); }
.row:not(:has(.row__t)) { grid-template-columns: 1fr auto; }
.row__t { font-size: 13px; color: var(--slate); font-variant-numeric: tabular-nums; white-space: nowrap; }
.row__main { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.row__title { font-size: 14px; font-weight: 600; color: var(--ink); }
a.row__title { font-weight: 500; color: var(--skyline); text-decoration: none; }
.row__meta { font-size: 13px; line-height: 18px; color: var(--slate); }
.row__note { font-size: 13px; line-height: 18px; color: var(--ink); }
.row__acts { display: flex; gap: 16px; align-items: baseline; }
.row__act, .linkbtn { font: 500 14px/20px var(--sans); color: var(--skyline); text-decoration: none; background: none; border: 0; padding: 0; cursor: pointer; }
@media (max-width: 560px) {
  .row { grid-template-columns: 1fr auto; }
  .row__t { grid-column: 1 / -1; }
}
.datehead { margin: 24px 0 8px; font-size: 15px; line-height: 20px; font-weight: 600; }
.datehead:first-of-type { margin-top: 8px; }
.subhead { margin: 32px 0 8px; font-size: 16px; line-height: 20px; font-weight: 600; }
.sectionhead { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 8px; }
.sectionhead a { font-size: 14px; color: var(--skyline); text-decoration: none; }
.card h2 + .rows, .card h2 + .hint + .rows { margin-top: 12px; }
.prose { margin: 8px 0 0; max-width: 640px; }
.empty { margin: 12px 0; }
.toggle { margin: -8px 0 20px; font-size: 14px; }
.toggle a, .backlink a, .weeknav__today { color: var(--skyline); text-decoration: none; font-size: 14px; }
.backlink { margin: 0 0 12px; }

/* A note people must not miss: tinted box with a thin bar on its side. */
.callout { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap;
  margin: 0 0 24px; padding: 12px 16px; border-radius: 8px; background: var(--wash); box-shadow: inset 3px 0 0 var(--skyline); }
.callout p { margin: 0; font-size: 14px; line-height: 20px; color: var(--slate); }
.callout strong { color: var(--ink); font-weight: 600; }

/* Who is called: groups with their characters. */
.picker { display: flex; flex-direction: column; gap: 12px; padding: 12px 16px; border: 1px solid var(--line); border-radius: 12px; }
.pick-group { margin: 0; padding: 0; border: 0; }
.pick-group legend { padding: 0; margin-bottom: 4px; font-size: 14px; font-weight: 600; color: var(--ink); }
.pick-chars { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 2px 12px; }
.pick { display: flex; align-items: center; gap: 8px; min-height: 32px; margin: 0; font-size: 14px; font-weight: 400; color: var(--ink); cursor: pointer; }
.pick-group legend .pick { font-weight: 600; }
.pick--all { font-weight: 600; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.pick input { width: 18px; height: 18px; margin: 0; accent-color: var(--skyline); }
@media (max-width: 640px) { .pick { min-height: 44px; } }

.danger-zone { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 16px; align-items: flex-start; }
.danger-zone form { display: flex; flex-direction: column; gap: 4px; align-items: flex-start; }
.addrow { display: grid; grid-template-columns: 160px 1fr 160px; gap: 12px; margin-top: 16px; align-items: end; }
.addrow .check, .addrow .actions { grid-column: 1 / -1; margin-top: 0; }
@media (max-width: 620px) { .addrow { grid-template-columns: 1fr; } }

/* ── Family site frame ── */
.s-top { border-bottom: 1px solid var(--line); background: var(--surface); }
.s-top__in { max-width: var(--wrap); margin: 0 auto; padding: 12px 16px; display: flex; align-items: center; justify-content: space-between; gap: 8px 24px; flex-wrap: wrap; }
.s-top__brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); font-size: 16px; font-weight: 600; }
.s-top__brand img { height: 28px; width: auto; }
.s-top__nav { display: flex; gap: 4px; flex-wrap: wrap; }
.s-top__nav a, .s-sub a { padding: 8px 10px; border-radius: 8px; color: var(--slate); font-size: 14px; font-weight: 500; text-decoration: none; }
.s-top__nav a:hover, .s-sub a:hover { background: var(--wash); color: var(--ink); }
.s-top__nav a[aria-current="page"], .s-sub a[aria-current="page"] { color: var(--skyline); background: var(--skyline-wash); }
.s-sub { display: flex; gap: 4px; flex-wrap: wrap; margin: 0 0 24px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
@media (max-width: 640px) {
  .s-top__nav a, .s-sub a { min-height: 44px; display: inline-flex; align-items: center; }
  .s-sub a { white-space: nowrap; }
}
.s-foot { max-width: var(--wrap); margin: 0 auto; padding: 24px 16px 40px; border-top: 1px solid var(--line); font-size: 13px; }
.s-foot a { color: var(--slate); }
.weeknav { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: -8px 0 20px; }
.weeknav__label { font-size: 14px; font-weight: 400; color: var(--slate); }
.cal-add { margin: 16px 0 8px; }
.cal-add h3 { margin: 0; font-size: 16px; line-height: 24px; font-weight: 600; }
.feed-label { margin-top: 16px; }
.cal-add input[readonly] { color: var(--slate); background: var(--wash); }

/* ── Printed call sheet: one page for the doors ── */
body.print { max-width: 720px; margin: 0 auto; padding: 24px; }
body.print h1 { margin: 0; font-size: 26px; line-height: 32px; font-weight: 600; }
.print__week { margin: 4px 0 8px; color: var(--slate); }
.print__foot { margin-top: 24px; font-size: 12px; color: var(--mist); }
@media print {
  body.print { padding: 0; }
  .row { break-inside: avoid; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

/* Phone: the date gets its own row; native time inputs are too wide for three across. */
.grid3 > *, .grid2 > * { min-width: 0; }
@media (max-width: 620px) {
  form .grid3 { grid-template-columns: 1fr 1fr; }
  form .grid3 > :first-child { grid-column: 1 / -1; }
  form .grid3 > :nth-child(3) { grid-column: auto; }
}
/* A section's last row needs no line: the next section draws its own. */
.card .rows > .row:last-child { border-bottom: 0; }
form.narrow + .card { margin-top: 24px; padding-top: 24px; border-top: 1px solid var(--line); }

/* ── Show look: the family pages wear the show's own colors (Ryan, 2026-12-03) ──
   Annie Jr.: the logo's red band, its gold, black, on warm paper. Staff pages
   keep the standard look; everything here is scoped to body.site. */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.site {
  --show: #c73037; --show-deep: #a3242b; --show-ink: #7a1a20; --gold: #e0a040; --gold-deep: #9a6512;
  --paper: #f8eedb; --paper-line: #ecdcbf; --night: #1c1414;
  --display: "Fraunces", Georgia, serif;
  background: var(--paper);
}
.site h1, .site h2, .sec__title, .ticket__day, .hero__count strong {
  font-family: var(--display); font-variation-settings: "SOFT" 100, "WONK" 0; letter-spacing: -.01em;
}
.site main { padding-top: 32px; }

/* Header: the red band */
.site .s-top { background: var(--show); border-bottom: 0; }
.site .s-top__brand { color: #fff; }
.site .s-top__brand span { font-family: var(--display); font-variation-settings: "SOFT" 100; font-size: 20px; font-weight: 800; }
.site .s-top__nav a { color: #fff; opacity: .88; border-radius: 0; border-bottom: 3px solid transparent; }
.site .s-top__nav a:hover { background: rgba(0,0,0,.12); color: #fff; opacity: 1; }
.site .s-top__nav a[aria-current="page"] { background: none; color: #fff; opacity: 1; border-bottom-color: var(--gold); }
.site a:focus-visible { outline-color: var(--gold); }

/* Home hero */
.hero { background: var(--show); color: #fff; text-align: center; padding: 8px 16px 48px; }
.hero__in { max-width: 760px; margin: 0 auto; }
.hero__logo { display: block; width: 100%; max-width: 720px; height: auto; margin: 0 auto; }
.hero__title { margin: 24px 0 0; font-size: 56px; line-height: 1.05; font-weight: 900; }
.hero__when { margin: 8px 0 0; font-size: 20px; line-height: 28px; font-weight: 600; color: var(--gold); letter-spacing: .02em; }
.hero__count { display: inline-flex; align-items: baseline; gap: 8px; margin: 20px 0 0; padding: 8px 18px;
  border: 1.5px solid rgba(255,255,255,.45); border-radius: 999px; font-size: 15px; }
.hero__count strong { font-size: 24px; font-weight: 800; color: #fff; }

/* Home sections */
.sec { margin: 0 0 48px; }
.sec__title { margin: 0 0 16px; font-size: 32px; line-height: 38px; font-weight: 800; color: var(--show-ink); }
.story p { margin: 0; padding: 24px 28px; background: #fff; border-radius: 14px; border: 1px solid var(--paper-line);
  font-size: 17px; line-height: 28px; }

.tickets { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.ticket { display: flex; background: #fff; border-radius: 14px; border: 1px solid var(--paper-line); overflow: hidden;
  box-shadow: 0 8px 20px -12px rgba(122,26,32,.35); }
.ticket__stub { position: relative; flex: 0 0 96px; display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 16px 8px; background: var(--show); color: #fff; border-right: 2px dashed rgba(255,255,255,.5); }
.ticket__stub::before, .ticket__stub::after { content: ""; position: absolute; right: -11px; width: 20px; height: 20px; border-radius: 50%; background: var(--paper); }
.ticket__stub::before { top: -10px; } .ticket__stub::after { bottom: -10px; }
.ticket__mon { font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .12em; color: var(--gold); }
.ticket__day { font-size: 44px; line-height: 48px; font-weight: 900; }
.ticket__dow { font-size: 13px; }
.ticket__body { display: flex; flex-direction: column; justify-content: center; gap: 4px; padding: 16px 20px; }
.ticket__what { font-size: 17px; line-height: 24px; font-weight: 600; }
.ticket__time { font-size: 15px; color: var(--slate); }

.timeline { list-style: none; margin: 0; padding: 0 0 0 4px; }
.timeline li { position: relative; display: grid; grid-template-columns: 128px 1fr; gap: 4px 16px; padding: 0 0 20px 28px;
  border-left: 2px solid var(--paper-line); }
.timeline li:last-child { border-left-color: transparent; padding-bottom: 0; }
.timeline li::before { content: ""; position: absolute; left: -8px; top: 3px; width: 14px; height: 14px; border-radius: 50%;
  background: var(--gold); box-shadow: 0 0 0 4px var(--paper); }
.timeline__date { font-weight: 600; color: var(--show-ink); font-size: 15px; }
.timeline__what { font-size: 15px; }
.timeline__time { display: block; color: var(--slate); font-size: 14px; }
@media (max-width: 520px) { .timeline li { grid-template-columns: 1fr; } }

.band { margin: 0 0 16px; border-radius: 18px; background: var(--night); color: #fff; overflow: hidden;
  background-image: radial-gradient(circle at 100% 0, rgba(199,48,55,.55), transparent 55%); }
.band__in { padding: 32px 28px; }
.band h2 { margin: 0; font-size: 30px; line-height: 36px; font-weight: 800; color: #fff; }
.band p { margin: 8px 0 20px; max-width: 560px; font-size: 16px; line-height: 24px; color: rgba(255,255,255,.82); }

/* Buttons */
.site .btn { background: var(--show); border-color: var(--show); color: #fff; }
.site .btn:hover { background: var(--show-deep); }
.site .btn.ghost { background: #fff; color: var(--show-ink); border-color: var(--paper-line); }
.site .btn.ghost:hover { background: var(--paper); }
.site .btn.gold { background: var(--gold); border-color: var(--gold); color: var(--night); font-weight: 600; min-height: 44px; padding: 0 20px; font-size: 15px; }
.site .btn.gold:hover { background: #eab25a; }

/* Page heads and the cast area */
.s-head { margin-bottom: 24px; }
.s-head.with-actions { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px 16px; flex-wrap: wrap; }
.s-head h1 { margin: 0; font-size: 40px; line-height: 44px; font-weight: 800; color: var(--show-ink); }
.s-head p { margin: 8px 0 0; font-size: 15px; line-height: 22px; color: var(--slate); }
.s-head .pageactions { margin: 0; }
.site .s-sub { gap: 8px; margin-bottom: 28px; padding-bottom: 0; border-bottom: 0; }
.site .s-sub a { border-radius: 999px; background: #fff; border: 1px solid var(--paper-line); color: var(--ink); padding: 8px 14px; }
.site .s-sub a:hover { background: #fff; border-color: var(--gold); }
.site .s-sub a[aria-current="page"] { background: var(--show); border-color: var(--show); color: #fff; }
.site .datehead { margin: 28px 0 10px; font-family: var(--display); font-variation-settings: "SOFT" 100; font-size: 20px; line-height: 26px; font-weight: 800; color: var(--show); }
.site .datehead:first-of-type { margin-top: 4px; }
.site .rows { background: #fff; border: 1px solid var(--paper-line); border-radius: 14px; padding: 0 20px; }
.site .row { border-bottom-color: var(--paper-line); }
.site .rows > .row:last-child { border-bottom: 0; }
.site .row__t { color: var(--show-ink); font-weight: 600; }
.site .card { border-top-color: var(--paper-line); }
.site .c-card, .site .callout, .site .narrow form { border-color: var(--paper-line); }
.site .c-card { background: #fff; border-radius: 14px; }
.site .notice.info { background: #fff; }
.site .notice.info::before { background: var(--gold); }

/* Characters */
.groups { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; }
.group { background: #fff; border: 1px solid var(--paper-line); border-radius: 14px; padding: 20px; border-top: 5px solid var(--show); }
.group h2 { margin: 0 0 12px; font-size: 20px; line-height: 26px; font-weight: 800; color: var(--show-ink); }
.chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.chips li { padding: 4px 12px; border-radius: 999px; background: var(--paper); border: 1px solid var(--paper-line); font-size: 14px; }

/* Footer */
.site .s-foot { max-width: none; margin-top: 24px; padding: 0; border-top: 0; background: var(--night); color: rgba(255,255,255,.75); }
.s-foot__in { max-width: var(--wrap); margin: 0 auto; padding: 24px 16px 40px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.site .s-foot a { color: rgba(255,255,255,.75); }
.site .s-foot a:hover { color: #fff; }

@media (max-width: 640px) {
  .hero { padding-bottom: 36px; }
  .hero__when { font-size: 17px; line-height: 24px; }
  .sec__title { font-size: 28px; line-height: 34px; }
  .s-head h1 { font-size: 32px; line-height: 38px; }
  .story p { padding: 20px; font-size: 16px; line-height: 26px; }
  .site .rows { padding: 0 16px; }
  .band__in { padding: 28px 20px; }
}
.site .subhead { margin: 36px 0 4px; font-family: var(--display); font-variation-settings: "SOFT" 100; font-size: 28px; line-height: 34px; font-weight: 800; color: var(--show-ink); }
.site { display: flex; flex-direction: column; min-height: 100vh; }
.site main { flex: 1 0 auto; width: 100%; }
.site main a:not(.btn) { color: var(--show-ink); }
.site input:focus-visible, .site select:focus-visible, .site button:focus-visible { outline-color: var(--show); }
.site .card { border-top: 0; padding-top: 8px; }
.site .card h2 { font-family: var(--display); font-variation-settings: "SOFT" 100; font-size: 22px; line-height: 28px; font-weight: 800; color: var(--show-ink); }
.site .s-foot { margin: 24px 0 0; width: 100%; }
.site .s-sub a:not([aria-current]) { color: var(--ink); }
.site form.narrow + .card { border-top-color: var(--paper-line); }

/* Design check fixes (2026-12-03): no card shadows, no gradient, one surface for lists,
   gold text on red lightened to pass contrast, a neutral focus ring on fields. */
.site { --gold-light: #f6d98f; }
.ticket { box-shadow: none; }
.ticket__mon { text-transform: none; letter-spacing: .02em; font-size: 14px; color: var(--gold-light); }
.ticket__body { justify-content: flex-start; }
.hero__when { color: var(--gold-light); }
.story p { padding: 0; background: none; border: 0; border-radius: 0; max-width: 680px; }
.band { background-image: none; }
.group { border-top: 1px solid var(--paper-line); }
.site .rows { background: none; border: 0; border-radius: 0; padding: 0; border-top: 1px solid var(--paper-line); }
.site .rows > .row:last-child { border-bottom: 1px solid var(--paper-line); }
.site .row__t { color: var(--ink); }
.site .subhead { font-size: 22px; line-height: 28px; }
.site .weeknav .btn.small { font-size: 18px; min-width: 36px; min-height: 36px; justify-content: center; }
.site input:focus-visible, .site select:focus-visible { outline-color: var(--night); }
@media (max-width: 640px) {
  .site .rows { padding: 0; }
  .story p { padding: 0; }
  .site .cal-add .btn { width: 100%; justify-content: center; }
}
.site main a:not(.btn):not(.s-sub a) { text-decoration: underline; text-underline-offset: 3px; }

/* Auditions page */
.hero__cta { margin: 20px 0 0; }
.hero__cta + .hero__count { margin-top: 20px; }
.tickets--list { grid-template-columns: 1fr; }
.ticket__how { font-size: 15px; line-height: 22px; }
.ticket__link { margin-top: 4px; font-weight: 400; color: var(--show-ink); text-decoration: underline; text-underline-offset: 3px; }
.story p + p { margin-top: 14px; }
.subhead-sm { margin: 28px 0 8px; font-size: 14px; line-height: 20px; font-weight: 600; }
@media (max-width: 420px) { .site .s-top__nav { gap: 0; } .site .s-top__nav a { padding: 8px 7px; } }
.card .check + .field { margin-top: 12px; }
.card .hint + form > .check:first-child { display: inline-flex; margin-top: 12px; }

/* Team: a small headshot beside the words, so a bio has room */
.team { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 380px), 1fr)); gap: 16px; }
.person { display: grid; grid-template-columns: 120px 1fr; grid-template-rows: auto 1fr; column-gap: 20px; align-content: start;
  padding: 20px; background: #fff; border: 1px solid var(--paper-line); border-radius: 14px; }
.person__photo { grid-row: 1 / span 2; width: 120px; height: 120px; object-fit: cover; object-position: 50% 20%; border-radius: 10px; background: var(--paper); }
.person:not(:has(.person__photo)) { grid-template-columns: 1fr; }
.site .person__name { margin: 0; font-family: var(--display); font-variation-settings: "SOFT" 100; font-size: 22px; line-height: 28px; font-weight: 800; color: var(--show-ink); }
.person__role { margin: 2px 0 0; font-size: 14px; line-height: 20px; font-weight: 600; color: var(--show); }
.person__bio p { margin: 10px 0 0; font-size: 15px; line-height: 23px; }
.team-thumb { display: block; width: 96px; height: 96px; object-fit: cover; border-radius: 8px; margin-top: 12px; }
@media (max-width: 560px) {
  /* Phone: photo beside the name, the bio full width below both */
  .person { grid-template-columns: 72px 1fr; grid-template-rows: auto; column-gap: 16px; align-items: center; padding: 16px; }
  .person__photo { grid-row: auto; width: 72px; height: 72px; }
  .person__bio { grid-column: 1 / -1; }
}

/* Formatted text from the director's boxes (2026-12-04): paragraphs, line breaks,
   bullets, headings. Same reading width and size as the synopsis. */
.rich p, .rich ul { margin: 0 0 14px; max-width: 680px; font-size: 17px; line-height: 28px; }
.rich ul { padding-left: 22px; }
.rich li { margin: 2px 0; }
.rich li::marker { color: var(--show, var(--skyline)); }
.rich h3 { margin: 28px 0 8px; font-family: var(--display, inherit); font-variation-settings: "SOFT" 100; font-size: 22px; line-height: 28px; font-weight: 800; color: var(--show-ink, var(--ink)); }
.rich > :last-child { margin-bottom: 0; }
.sec__more { margin: 16px 0 0; font-size: 15px; font-weight: 600; }
.sec__lead { margin: -4px 0 16px; max-width: 680px; font-size: 16px; line-height: 24px; color: var(--slate); }
.sec__head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px 16px; flex-wrap: wrap; }
.sec__head .sec__title { margin-bottom: 8px; }

/* Key dates: a span, a note and a link under the label */
.timeline__note { display: block; margin-top: 4px; }
.timeline__note p { margin: 0; font-size: 15px; line-height: 22px; color: var(--slate); }
.timeline__link { display: table; margin-top: 4px; font-size: 15px; font-weight: 600; }
.monthhead { margin: 28px 0 14px; font-family: var(--display); font-variation-settings: "SOFT" 100; font-size: 22px; line-height: 28px; font-weight: 800; color: var(--show); }
.monthhead:first-of-type { margin-top: 0; }

/* The Boy Orphans call-out: one gold box on the Auditions page */
.spotlight { margin: 0 0 48px; padding: 24px 28px; background: #fff; border: 1px solid var(--paper-line); border-left: 6px solid var(--gold); border-radius: 14px; }
.spotlight h3 { margin-top: 0; }

/* Songs and sides fold open, one at a time */
.fold { background: #fff; border: 1px solid var(--paper-line); border-radius: 14px; margin: 0 0 10px; }
.fold summary { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; padding: 16px 20px; cursor: pointer; list-style: none; min-height: 44px; }
.fold summary::-webkit-details-marker { display: none; }
.fold summary::before { content: "+"; flex: 0 0 16px; font-weight: 600; color: var(--show); }
.fold[open] summary::before { content: "–"; }
.fold__title { font-size: 17px; line-height: 24px; font-weight: 600; color: var(--ink); }
.fold__meta { font-size: 14px; color: var(--slate); }
.fold__body { padding: 0 20px 20px 48px; }
.fold__body p { font-size: 16px; line-height: 26px; }

/* Characters, by role or by voice */
.chars { display: grid; gap: 14px; }
.char__name { margin: 0; font-size: 17px; line-height: 24px; font-weight: 600; color: var(--ink); }
.char__meta { margin: 0; font-size: 14px; font-weight: 600; color: var(--show-ink); }
.char__about { margin: 4px 0 0; font-size: 15px; line-height: 22px; color: var(--slate); }
.char + .char { padding-top: 14px; border-top: 1px solid var(--paper-line); }

@media (max-width: 640px) {
  .rich p, .rich ul { font-size: 16px; line-height: 26px; }
  .spotlight { padding: 20px; }
  .fold summary { padding: 14px 16px; }
  .fold__body { padding: 0 16px 16px 16px; }
}

/* Staff side: Show tabs, add forms that fold, the formatting preview */
.subtabs { display: flex; gap: 4px; flex-wrap: wrap; margin: 0 0 20px; border-bottom: 1px solid var(--line); }
.subtabs a { padding: 10px 12px; margin-bottom: -1px; font-size: 14px; font-weight: 600; color: var(--slate); text-decoration: none; border-bottom: 2px solid transparent; min-height: 44px; display: inline-flex; align-items: center; }
.subtabs a:hover { color: var(--ink); }
.subtabs a[aria-current="page"] { color: var(--skyline); border-bottom-color: var(--skyline); }
.grid2 > .wide, .grid2 > .check { grid-column: 1 / -1; }
.addform { margin-top: 16px; }
.addform > summary, .preview > summary { cursor: pointer; font-size: 14px; font-weight: 600; color: var(--skyline); min-height: 44px; display: inline-flex; align-items: center; }
.preview { margin-top: 12px; padding-top: 4px; border-top: 1px solid var(--line); }
.preview .rich p, .preview .rich ul { font-size: 14px; line-height: 22px; margin-bottom: 10px; }
.preview .rich h3 { font-size: 15px; line-height: 20px; margin: 14px 0 4px; font-weight: 600; }
.choice { display: flex; gap: 10px; align-items: flex-start; padding: 10px 0; }
.choice input { margin-top: 3px; }
.choice strong { display: block; font-size: 14px; }
.toolbar { margin: 0 0 16px; }

/* Design check fixes (2026-12-04): one link look, lists as rows, a segmented switch */
.timeline__link, .sec__more a { font-weight: 400; }
.ticket__link { font-size: 15px; }
.sec__btn { margin: -4px 0 16px; }
.folds { border-top: 1px solid var(--paper-line); }
.fold { background: none; border: 0; border-bottom: 1px solid var(--paper-line); border-radius: 0; margin: 0; }
.fold summary { display: grid; grid-template-columns: 20px 1fr; column-gap: 8px; padding: 14px 0; }
.fold summary::before { grid-row: 1 / span 2; }
.fold__title, .fold__meta { grid-column: 2; }
.fold__body { padding: 0 0 18px 28px; }
@media (max-width: 640px) { .fold summary { padding: 12px 0; } .fold__body { padding: 0 0 16px 28px; } }
.seg { display: inline-flex; margin: 0 0 28px; border: 1px solid var(--paper-line); border-radius: 6px; background: #fff; overflow: hidden; }
.seg a { padding: 10px 16px; min-height: 44px; display: inline-flex; align-items: center; font-size: 14px; font-weight: 600; color: var(--ink); text-decoration: none; }
.seg a + a { border-left: 1px solid var(--paper-line); }
.seg a[aria-current="page"] { background: var(--show); color: #fff; }
.site main .seg a { color: var(--ink); } .site main .seg a[aria-current="page"] { color: #fff; }
.groups { align-items: start; }
.addform > summary, .preview > summary { font-weight: 500; }
.addform { margin-top: 4px; }
.preview { margin-top: 8px; padding-top: 0; }
@media (max-width: 420px) { .subtabs { gap: 0; } .subtabs a { padding: 10px 8px; font-size: 13px; } }
.site main .seg a { text-decoration: none; }
