/* Before the Bell: E-Rate Tracker
   Adopts the shared MJM tokens (https://minerclass.github.io/tokens.css) with
   fallbacks, so the page keeps its look if that file fails to load. Accent is
   blue (the network); gold marks deadlines and calls to act. */

:root {
  --bg: var(--mjm-bg, #111318);
  --surface: var(--mjm-surface, #181b22);
  --surface-2: var(--mjm-surface-2, #20242d);
  --line: var(--mjm-line, rgba(240, 238, 232, 0.16));
  --ink: var(--mjm-ink, #f0eee8);
  --muted: var(--mjm-muted, #a8adb7);
  --accent: var(--mjm-blue, #70aee7);
  --gold: var(--mjm-gold, #f0bd45);
  --teal: var(--mjm-teal, #67b9aa);
  --violet: var(--mjm-violet, #aaa1dc);
  --rust: var(--mjm-rust, #dc895e);
  --rose: var(--mjm-rose, #e5a1b0);
  --green: var(--mjm-green, #7fbf7a);
  --serif: var(--mjm-serif, Georgia, "Iowan Old Style", "Times New Roman", serif);
  --sans: var(--mjm-sans, Inter, system-ui, -apple-system, "Segoe UI", sans-serif);
  --mono: var(--mjm-mono, "JetBrains Mono", ui-monospace, SFMono-Regular, Consolas, monospace);
  --radius: var(--mjm-radius, 8px);
  --radius-lg: var(--mjm-radius-lg, 12px);
  --shell: var(--mjm-shell, 1160px);
  --on-accent: #0c1220;

  --type-fcc: var(--accent);
  --type-advocacy: var(--gold);
  --type-news: var(--teal);
  --type-analysis: var(--violet);
  --type-background: var(--rose);
  --type-tool: var(--green);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-underline-offset: 0.18em; }
a:hover { color: var(--ink); }

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

h1, h2, h3 { margin: 0 0 0.5em; line-height: 1.15; }
h2 { font-family: var(--serif); font-size: clamp(1.75rem, 3.4vw, 2.5rem); font-weight: 700; }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip-link {
  position: fixed; z-index: 100; top: 8px; left: 8px;
  padding: 10px 14px;
  background: var(--gold); color: var(--on-accent);
  font-weight: 700;
  transform: translateY(-160%);
}
.skip-link:focus { transform: none; }

.shell {
  width: 100%;
  max-width: calc(var(--shell) + 48px);
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}

.eyebrow {
  margin-bottom: 0.6em;
  color: var(--accent);
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.note { color: var(--muted); font-size: 0.95rem; }

/* ---- Header -------------------------------------------------------------- */

.site-header {
  position: sticky; top: 0; z-index: 30;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  min-height: 58px;
  padding: 0 max(24px, calc((100vw - var(--shell)) / 2));
  border-bottom: 1px solid var(--line);
  background: rgba(17, 19, 24, 0.94);
  backdrop-filter: blur(8px);
}

.brand {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--ink);
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.1rem;
  text-decoration: none;
  white-space: nowrap;
}

.brand-mark {
  width: 14px; height: 14px;
  border: 2px solid var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(112, 174, 231, 0.18);
}

.site-header nav { display: flex; gap: 22px; overflow-x: auto; }
.site-header nav a {
  color: var(--muted);
  font-size: 0.9rem;
  text-decoration: none;
  white-space: nowrap;
}
.site-header nav a:hover { color: var(--ink); }

/* ---- Buttons ------------------------------------------------------------- */

.button {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-2);
  color: var(--ink);
  font: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}
.button:hover { border-color: var(--accent); color: var(--ink); }
.button-primary { border-color: var(--accent); background: var(--accent); color: var(--on-accent); }
.button-primary:hover { background: #8fc0ee; color: var(--on-accent); }
.button-gold { border-color: var(--gold); background: var(--gold); color: var(--on-accent); }
.button-gold:hover { background: #f5cd6c; color: var(--on-accent); }
.button-quiet { background: transparent; }
.button-small { min-height: 38px; padding: 0 14px; font-size: 0.88rem; }

/* ---- Hero ---------------------------------------------------------------- */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(280px, 1fr);
  gap: 48px;
  align-items: end;
  padding-top: 72px;
  padding-bottom: 64px;
}

.hero h1 {
  margin-bottom: 0.3em;
  font-family: var(--serif);
  font-size: clamp(3rem, 8vw, 5.75rem);
  line-height: 0.95;
  letter-spacing: -0.01em;
}

.hero .lede { font-size: 1.25rem; line-height: 1.5; color: var(--ink); max-width: 60ch; }
.hero-copy > p:not(.lede):not(.eyebrow) { color: var(--muted); max-width: 62ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

.deadline-card {
  padding: 28px;
  border: 1px solid rgba(240, 189, 69, 0.45);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(240, 189, 69, 0.1), rgba(240, 189, 69, 0.02)), var(--surface);
}
.deadline-card .eyebrow { color: var(--gold); }
.deadline-count {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(3rem, 6vw, 4.25rem);
  font-weight: 700;
  line-height: 1;
  color: var(--ink);
}
.deadline-label { margin: 8px 0 18px; color: var(--muted); }
.deadline-list { margin: 0 0 22px; padding: 14px 0 0; border-top: 1px solid var(--line); }
.deadline-list div { display: flex; justify-content: space-between; gap: 12px; padding: 4px 0; }
.deadline-list dt { color: var(--muted); font-family: var(--mono); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.06em; }
.deadline-list dd { margin: 0; font-weight: 600; }
.deadline-card .button { width: 100%; }

/* ---- Sections ------------------------------------------------------------ */

.section { padding-top: 80px; padding-bottom: 80px; }

.band {
  padding: 80px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}

main > section { scroll-margin-top: 64px; }

.section-head { max-width: 760px; margin-bottom: 36px; }
.section-head > p:not(.eyebrow) { color: var(--muted); }

/* ---- Morning stepper ----------------------------------------------------- */

.morning {
  display: grid;
  grid-template-columns: minmax(200px, 260px) minmax(0, 1fr);
  gap: 28px;
  align-items: stretch;
}

.morning-rail {
  position: relative;
  align-self: start;
  margin: 0; padding: 0;
  list-style: none;
}
.morning-rail::before {
  content: "";
  position: absolute; left: 19px; top: 18px; bottom: 18px;
  width: 2px;
  background: var(--line);
}
.morning-rail button {
  position: relative;
  display: flex; align-items: center; gap: 14px;
  width: 100%;
  min-height: 48px;
  padding: 6px 12px 6px 44px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
}
.morning-rail button::before {
  content: "";
  position: absolute; left: 13px; top: 50%;
  width: 14px; height: 14px;
  margin-top: -7px;
  border: 2px solid var(--muted);
  border-radius: 50%;
  background: var(--surface);
}
.morning-rail button span {
  min-width: 4.8em;
  font-family: var(--mono);
  font-size: 0.8rem;
  font-weight: 400;
  color: var(--muted);
}
.morning-rail button:hover { color: var(--ink); }
.morning-rail button[aria-selected="true"] {
  border-color: var(--line);
  background: var(--surface-2);
  color: var(--ink);
}
.morning-rail button[aria-selected="true"]::before { border-color: var(--accent); background: var(--accent); }
.morning-rail button[aria-selected="true"] span { color: var(--accent); }
.morning-rail li:last-child button[aria-selected="true"]::before { border-color: var(--rust); background: var(--rust); }

.morning-panel {
  display: flex; flex-direction: column;
  min-height: 320px;
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--bg);
}
.morning-time { margin-bottom: 4px; color: var(--accent); font-family: var(--mono); font-size: 0.9rem; }
.morning-panel h3 { font-family: var(--serif); font-size: clamp(1.6rem, 3vw, 2.1rem); }
.morning-panel #morning-body { font-size: 1.15rem; max-width: 58ch; }
.morning-tie {
  max-width: 58ch;
  padding: 10px 14px;
  border-left: 3px solid var(--gold);
  background: rgba(240, 189, 69, 0.08);
  color: var(--ink);
  font-size: 0.95rem;
}
.morning-tie:empty { display: none; }
.morning-tie strong { color: var(--gold); font-family: var(--mono); font-size: 0.78rem; letter-spacing: 0.06em; text-transform: uppercase; margin-right: 6px; }
.morning-nav { display: flex; align-items: center; gap: 14px; margin-top: auto; padding-top: 18px; }
.morning-progress { color: var(--muted); font-family: var(--mono); font-size: 0.82rem; }
.morning + .note { margin-top: 20px; max-width: 70ch; }

/* ---- Stats --------------------------------------------------------------- */

.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin: 0; padding: 0;
  list-style: none;
}
.stats li {
  display: flex; flex-direction: column;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
}
.stat-value {
  margin-bottom: 6px;
  font-family: var(--serif);
  font-size: clamp(2rem, 3.4vw, 2.6rem);
  font-weight: 700;
  line-height: 1.05;
  color: var(--ink);
}
.stat-label { color: var(--muted); font-size: 0.95rem; line-height: 1.45; }
.stat-source { margin-top: auto; font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0.02em; }

/* ---- What the FCC asks --------------------------------------------------- */

.asks { display: grid; gap: 10px; max-width: 900px; }
.asks details {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg);
}
.asks summary {
  display: flex; align-items: baseline; gap: 14px;
  padding: 16px 20px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}
.asks summary::-webkit-details-marker { display: none; }
.asks summary::after {
  content: "+";
  margin-left: auto;
  color: var(--muted);
  font-family: var(--mono);
}
.asks details[open] summary::after { content: "\2212"; }
.asks details[open] summary { border-bottom: 1px solid var(--line); }
.para {
  flex: none;
  min-width: 4.2em;
  color: var(--accent);
  font-family: var(--mono);
  font-size: 0.82rem;
  font-weight: 400;
}
.asks blockquote {
  margin: 18px 20px 12px;
  padding-left: 16px;
  border-left: 3px solid var(--accent);
  font-family: var(--serif);
  font-size: 1.1rem;
  line-height: 1.5;
}
.asks details > p { margin: 0 20px 18px; color: var(--muted); max-width: 70ch; }

.voices { margin-top: 56px; }
.voices h3 { font-family: var(--serif); font-size: 1.5rem; }
.voice-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 16px; }
.voice {
  display: flex; flex-direction: column;
  margin: 0;
  padding: 22px;
  border: 1px solid var(--line);
  border-top: 3px solid var(--accent);
  border-radius: var(--radius);
  background: var(--bg);
}
.voice-dissent { border-top-color: var(--rust); }
.voice blockquote { margin: 0 0 16px; font-family: var(--serif); font-size: 1.08rem; line-height: 1.5; }
.voice figcaption { margin-top: auto; color: var(--muted); font-size: 0.9rem; }
.voice figcaption strong { color: var(--ink); }
.fair-note {
  max-width: 900px;
  margin-top: 24px;
  padding: 16px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--muted);
}
.fair-note strong { color: var(--ink); }

/* ---- Note ---------------------------------------------------------------- */

.note-card {
  max-width: 820px;
  padding: 40px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--gold);
  border-radius: var(--radius-lg);
  background: var(--surface);
}
.note-card .eyebrow { color: var(--gold); }
.note-card p:not(.eyebrow) { font-family: var(--serif); font-size: 1.12rem; line-height: 1.65; }
.note-card .signature { margin: 0; color: var(--muted); font-family: var(--sans) !important; font-size: 0.95rem !important; }

/* ---- Source tracker ------------------------------------------------------ */

.controls { display: grid; gap: 14px; margin-bottom: 18px; }
.filter-group { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bg);
  color: var(--muted);
  font: inherit;
  font-size: 0.9rem;
  cursor: pointer;
}
.chip:hover { color: var(--ink); border-color: var(--muted); }
.chip[aria-pressed="true"] { border-color: var(--accent); background: rgba(112, 174, 231, 0.14); color: var(--ink); }
.chip .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--c, var(--muted)); }
.chip .n { color: var(--muted); font-family: var(--mono); font-size: 0.78rem; }

.control-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.search { flex: 1 1 320px; }
.search input, .sort select, .worksheet input, .worksheet select, .worksheet textarea, .share-card textarea {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg);
  color: var(--ink);
  font: inherit;
  font-size: 0.98rem;
}
.search input::placeholder, .worksheet ::placeholder { color: #8b919c; }
.sort { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 0.9rem; }
.sort select { width: auto; }

.result-count { color: var(--muted); font-family: var(--mono); font-size: 0.85rem; }

.source-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 0; padding: 0;
  list-style: none;
}
.source {
  position: relative;
  display: flex; flex-direction: column;
  padding: 20px 22px 18px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg);
  overflow: hidden;
}
.source::before {
  content: "";
  position: absolute; left: 0; top: 0; bottom: 0;
  width: 4px;
  background: var(--c, var(--muted));
}
.source-meta {
  display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center;
  margin-bottom: 8px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.76rem;
  letter-spacing: 0.03em;
}
.source-type { color: var(--c, var(--muted)); text-transform: uppercase; letter-spacing: 0.07em; }
.source-featured {
  padding: 1px 8px;
  border: 1px solid rgba(240, 189, 69, 0.5);
  border-radius: 999px;
  color: var(--gold);
}
.source h3 { margin-bottom: 4px; font-family: var(--serif); font-size: 1.18rem; line-height: 1.3; }
.source h3 a { color: var(--ink); text-decoration: none; }
.source h3 a:hover { color: var(--accent); text-decoration: underline; }
.source-by { margin-bottom: 10px; color: var(--muted); font-size: 0.88rem; }
.source-angle { color: var(--ink); font-weight: 600; }
.source-summary { margin: 0; color: #d4d6db; font-size: 0.96rem; line-height: 1.55; }
.source.is-featured { border-color: rgba(240, 189, 69, 0.4); }

.empty-state { padding: 24px; border: 1px dashed var(--line); border-radius: var(--radius); color: var(--muted); }
.suggest { margin-top: 26px; color: var(--muted); }

/* ---- Timeline ------------------------------------------------------------ */

.timeline { position: relative; max-width: 860px; margin: 0; padding: 0 0 0 28px; list-style: none; }
.timeline::before { content: ""; position: absolute; left: 7px; top: 6px; bottom: 6px; width: 2px; background: var(--line); }
.timeline li { position: relative; display: grid; grid-template-columns: 9.5em minmax(0, 1fr); gap: 16px; padding: 10px 0; }
.timeline li::before {
  content: "";
  position: absolute; left: -26px; top: 17px;
  width: 12px; height: 12px;
  border: 2px solid var(--muted);
  border-radius: 50%;
  background: var(--bg);
}
.timeline .t-date { color: var(--muted); font-family: var(--mono); font-size: 0.82rem; padding-top: 3px; }
.timeline .t-label { margin: 0; }
.timeline .t-label a { margin-left: 6px; font-family: var(--mono); font-size: 0.76rem; }
.timeline li.is-past::before { border-color: var(--accent); background: var(--accent); }
.timeline li.is-deadline::before { border-color: var(--gold); }
.timeline li.is-deadline .t-date { color: var(--gold); }
.timeline li.is-deadline .t-label { font-weight: 700; }
.timeline li.is-deadline.is-past::before { background: var(--gold); }
.timeline li.today-marker { padding: 4px 0; }
.timeline li.today-marker::before { left: -30px; top: 50%; width: 20px; height: 20px; margin-top: -10px; border: 0; background: none; }
.timeline li.today-marker .t-date,
.timeline li.today-marker .t-label {
  color: var(--gold);
  font-family: var(--mono);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.timeline li.today-marker .t-label { border-top: 1px dashed rgba(240, 189, 69, 0.6); padding-top: 3px; }

/* ---- Steps and worksheet ------------------------------------------------- */

.quick-action {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  margin-bottom: 28px;
  padding: 24px 28px;
  border: 1px solid rgba(240, 189, 69, 0.45);
  border-left: 4px solid var(--gold);
  border-radius: var(--radius-lg);
  background: linear-gradient(90deg, rgba(240, 189, 69, 0.08), rgba(240, 189, 69, 0.02)), var(--bg);
}
.quick-action .eyebrow { color: var(--gold); }
.quick-action h3 { font-family: var(--serif); font-size: 1.45rem; }
.quick-action p:not(.eyebrow) { margin: 0; max-width: 68ch; color: var(--muted); }
.quick-action .button { flex: none; }

.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin: 0 0 40px; padding: 0;
  list-style: none;
  counter-reset: step;
}
.steps li {
  counter-increment: step;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--bg);
}
.steps li::before {
  content: counter(step);
  display: inline-grid; place-items: center;
  width: 32px; height: 32px;
  margin-bottom: 12px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--on-accent);
  font-weight: 700;
}
.steps p { margin: 0; color: var(--muted); font-size: 0.95rem; }

.worksheet {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 28px;
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--bg);
}
.worksheet-head { grid-column: 1 / -1; }
.worksheet-head h3 { font-family: var(--serif); font-size: 1.6rem; }
.privacy { margin: 0; color: var(--muted); font-size: 0.92rem; }
.worksheet-grid { display: grid; gap: 22px; align-content: start; }
.worksheet fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }
.worksheet legend { margin-bottom: 12px; color: var(--accent); font-family: var(--mono); font-size: 0.8rem; letter-spacing: 0.07em; text-transform: uppercase; }
.ws-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 14px; }
.ws-fields legend { grid-column: 1 / -1; }
.worksheet label { display: grid; gap: 6px; color: var(--muted); font-size: 0.88rem; }
.checks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 14px; }
.checks label {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  font-size: 0.92rem;
  cursor: pointer;
}
.checks label:has(input:checked) { border-color: var(--accent); background: rgba(112, 174, 231, 0.1); }
.checks input { width: 18px; height: 18px; min-height: 0; margin: 2px 0 0; flex: none; accent-color: var(--accent); }
.ws-output { display: flex; flex-direction: column; gap: 10px; }
.ws-output > label { color: var(--accent); font-family: var(--mono); font-size: 0.8rem; letter-spacing: 0.07em; text-transform: uppercase; }
.ws-output textarea { flex: 1; min-height: 360px; font-family: var(--serif); font-size: 1rem; line-height: 1.55; resize: vertical; }
.ws-actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* ---- Share --------------------------------------------------------------- */

.share-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.share-card {
  display: flex; flex-direction: column; gap: 12px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
}
.share-card h3 { margin: 0; }
.share-card textarea { flex: 1; font-size: 0.93rem; line-height: 1.5; resize: vertical; }
.share-card .button { align-self: flex-start; }
.share-wide { grid-row: span 2; }
.share-url code { color: var(--ink); font-family: var(--mono); font-size: 0.95rem; word-break: break-all; }
.share-qr img { width: 180px; height: 180px; padding: 10px; border-radius: var(--radius); background: #fff; }
.share-card .note { margin: 0; }

/* ---- Footer, presenter, toast ------------------------------------------- */

.site-footer { padding-top: 40px; padding-bottom: 56px; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.92rem; }
.site-footer p { max-width: 80ch; }

.presenter {
  position: fixed; inset: 0; z-index: 200;
  display: grid; place-items: center;
  padding: 24px;
  background: var(--bg);
  text-align: center;
}
.presenter[hidden] { display: none; }
.presenter-inner { display: grid; justify-items: center; gap: 10px; }
.presenter h2 { font-size: clamp(2rem, 5vw, 3.4rem); }
.presenter img { width: min(420px, 60vh, 80vw); height: auto; padding: 18px; border-radius: var(--radius-lg); background: #fff; }
.presenter-url { margin: 12px 0 0; font-family: var(--mono); font-size: clamp(1.1rem, 2.6vw, 1.8rem); color: var(--ink); }
.presenter-deadline { color: var(--gold); font-weight: 700; font-size: clamp(1rem, 2vw, 1.3rem); }

.toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 300;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--bg);
  font-weight: 600;
  opacity: 0;
  transform: translate(-50%, 12px);
  transition: opacity 0.2s, transform 0.2s;
  pointer-events: none;
}
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* ---- Responsive ---------------------------------------------------------- */

@media (max-width: 1020px) {
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .voice-grid { grid-template-columns: 1fr; }
  .share-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .share-wide { grid-row: auto; grid-column: 1 / -1; }
  .worksheet { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  body { font-size: 1rem; }
  .site-header { padding: 0 16px; }
  .site-header nav { display: none; }
  .shell { padding-left: 16px; padding-right: 16px; }
  .hero { grid-template-columns: 1fr; gap: 32px; padding-top: 44px; padding-bottom: 44px; }
  .section, .band { padding-top: 56px; padding-bottom: 56px; }
  .morning { grid-template-columns: 1fr; }
  .morning-rail { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 6px; }
  .morning-rail::before { display: none; }
  .morning-rail button { flex-direction: column; align-items: flex-start; gap: 0; min-width: 104px; padding: 8px 12px; border-color: var(--line); }
  .morning-rail button::before { display: none; }
  .morning-panel { min-height: 0; padding: 22px; }
  .source-list { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; gap: 10px; }
  .stats li { padding: 16px; }
  .steps { grid-template-columns: 1fr; }
  .worksheet { padding: 20px; }
  .quick-action { flex-direction: column; align-items: flex-start; padding: 20px; }
  .ws-fields, .checks { grid-template-columns: 1fr; }
  .share-grid { grid-template-columns: 1fr; }
  .note-card { padding: 26px; }
  .timeline li { grid-template-columns: 1fr; gap: 2px; }
}

@media (max-width: 420px) {
  .stats { grid-template-columns: 1fr; }
}

@media print {
  :root { --bg: #fff; --surface: #fff; --surface-2: #fff; --ink: #111; --muted: #444; --line: #ccc; --accent: #1d4f86; --gold: #7a5a0c; }
  .site-header, .hero-actions, .deadline-card .button, .controls, .worksheet, .share-grid, .morning-nav, .toast, .skip-link { display: none !important; }
  .band { background: #fff; }
  .asks details { break-inside: avoid; }
  .source { break-inside: avoid; }
  a { color: #1d4f86; }
}
