/* =====================================================================
   Sightlines by Hayley, shared civic stylesheet (filename kept from the earlier working title)
   Emulates: U.S. Web Design System + whitehouse.gov (spine, footer
   density, navy + single accent), Harvard Institute of Politics
   (people/programs-forward, austere), RNIB / Thomas Pocklington Trust
   (sober institutional sight-loss conventions, high-contrast options).
   Typeface: Public Sans (self-hosted, unmodified) for all UI/body;
   Spectral (serif) used only for the large display line and pull quotes.
   No gradients, no glassmorphism, no emoji, no startup hero. Zero em dashes.
   ===================================================================== */

/* ---- Self-hosted Public Sans (UNMODIFIED, OFL/CC0). NOT Inter. ---- */
@font-face {
  font-family: "Public Sans";
  font-style: normal;
  font-weight: 400;
  font-display: block;            /* gate paint so we never flash a system font */
  src: url("../fonts/public-sans/PublicSans-Regular.woff2") format("woff2");
}
@font-face {
  font-family: "Public Sans";
  font-style: italic;
  font-weight: 400;
  font-display: block;
  src: url("../fonts/public-sans/PublicSans-Italic.woff2") format("woff2");
}
@font-face {
  font-family: "Public Sans";
  font-style: normal;
  font-weight: 600;
  font-display: block;
  src: url("../fonts/public-sans/PublicSans-SemiBold.woff2") format("woff2");
}
@font-face {
  font-family: "Public Sans";
  font-style: normal;
  font-weight: 700;
  font-display: block;
  src: url("../fonts/public-sans/PublicSans-Bold.woff2") format("woff2");
}

/* ---- USWDS-derived design tokens (color/space/type), hand-authored ---- */
:root {
  /* Ink and ground */
  --ink:        #1b1b1b;   /* base text */
  --ink-muted:  #3d4551;   /* secondary text, AA on white */
  --paper:      #ffffff;
  --paper-warm: #f9f9f7;   /* section banding */
  --paper-cool: #f0f0f0;   /* tertiary band */

  /* Federal navy spine (whitehouse.gov / USWDS) */
  --navy:       #162e51;   /* primary ink for masthead, headings, footer */
  --navy-700:   #1a4480;   /* link / interactive */
  --navy-900:   #0b1b34;   /* deepest, footer base */

  /* Single restrained accent: a deep brick-maroon (not teal, not purple) */
  --accent:     #8b1f2f;
  --accent-700: #6e1825;

  /* Functional */
  --rule:       #d4d4cf;   /* hairline rule */
  --rule-dark:  #2a3f5f;   /* rule on navy */
  --focus:      #ffbe2e;   /* USWDS focus gold */
  --ok:         #2e6b4f;

  --measure: 42rem;        /* reading column ceiling */
  --gutter: clamp(1rem, 4vw, 2.5rem);
}

/* High-contrast affordance, an RNIB convention. Toggled via <html data-theme="..."> */
html[data-theme="yellow"] {
  --ink: #1b1b1b; --ink-muted: #1b1b1b;
  --paper: #fffbe6; --paper-warm: #fff7cc; --paper-cool: #fff3b0;
  --rule: #b8a93f;
}
html[data-theme="dark"] {
  --ink: #f4f4f2; --ink-muted: #d6dae0;
  --paper: #11171f; --paper-warm: #161d27; --paper-cool: #1c2530;
  --navy: #0b1b34; --rule: #2a3f5f; --navy-700: #7aa6e0; --accent: #ef8fa0;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; overflow-x: hidden; }

body {
  margin: 0;
  font-family: "Public Sans", "Helvetica Neue", Arial, system-ui, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  text-rendering: optimizeLegibility;
}

/* Serif used sparingly for the one display line + pull quotes */
.serif {
  font-family: Spectral, Georgia, "Times New Roman", serif;
}

/* ---- Skip link (508) ---- */
.skip-link {
  position: absolute; left: -999px; top: 0;
  background: var(--navy); color: #fff; padding: .75rem 1.25rem;
  z-index: 200; font-weight: 700; text-decoration: none;
}
.skip-link:focus { left: 0; }

/* ---- Visible focus ring everywhere ---- */
a:focus-visible, button:focus-visible, input:focus-visible,
select:focus-visible, textarea:focus-visible, [tabindex]:focus-visible {
  outline: 4px solid var(--focus);
  outline-offset: 2px;
}

a { color: var(--navy-700); text-underline-offset: 2px; }
a:hover { color: var(--accent); }

img, svg { max-width: 100%; }

/* ---- Layout shells ---- */
.container { width: 100%; max-width: 78rem; margin: 0 auto; padding: 0 var(--gutter); }
.prose { max-width: var(--measure); }

/* =====================================================================
   Top utility bar (the .gov "official site" convention, restrained)
   ===================================================================== */
.gov-bar {
  background: var(--paper-cool);
  border-bottom: 1px solid var(--rule);
  font-size: .8125rem;
  color: var(--ink-muted);
}
.gov-bar .container {
  display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1.25rem;
  min-height: 2.25rem; padding-top: .35rem; padding-bottom: .35rem;
}
.gov-bar .flag { font-weight: 600; color: var(--navy); }
html[data-theme="dark"] .gov-bar { background: #0b1220; border-bottom-color: var(--rule-dark); }
html[data-theme="dark"] .gov-bar .flag { color: #cfe0fb; }
html[data-theme="dark"] .gov-bar button.theme { background: #1c2530; color: #f4f4f2; border-color: #2a3f5f; }
html[data-theme="dark"] .gov-bar button.theme[aria-pressed="true"] { background: #cfe0fb; color: #0b1220; border-color: #cfe0fb; }
.gov-bar .theme-toggle { margin-left: auto; display: flex; gap: .35rem; align-items: center; }
.gov-bar .theme-toggle span { color: var(--ink-muted); }
.gov-bar button.theme {
  font: inherit; border: 1px solid var(--rule); background: var(--paper);
  color: var(--ink); padding: .15rem .55rem; cursor: pointer; border-radius:0;
}
.gov-bar button.theme[aria-pressed="true"] {
  background: var(--navy); color: #fff; border-color: var(--navy);
}

/* =====================================================================
   Masthead (USWDS header pattern: wordmark left, primary nav right)
   ===================================================================== */
.masthead {
  background: var(--navy);
  color: #fff;
  border-bottom: 4px solid var(--accent);
}
html[data-theme="dark"] .masthead { background: var(--navy-900); }
.masthead .container {
  display: flex; align-items: center; gap: 1rem;
  min-height: 5rem; padding-top: .75rem; padding-bottom: .75rem;
  flex-wrap: wrap;
}
.brand { display: inline-flex; align-items: center; gap: .9rem; text-decoration: none; }
/* The wordmark image is the logo (no metaphor crest). It carries the name itself. */
.brand img.wordmark { display: block; height: 30px; width: auto; }
.brand .brand-text { display: flex; flex-direction: column; line-height: 1.1; padding-left: .9rem; border-left: 1px solid var(--rule-dark); }
.brand .brand-sub { color: #c9d4e6; font-size: .7rem; letter-spacing: .13em; text-transform: uppercase; }
@media (max-width: 30rem) { .brand img.wordmark { height: 24px; } .brand .brand-text { display: none; } }

.nav-toggle {
  margin-left: auto; display: none;
  background: transparent; border: 1px solid #45597c;
  color: #fff; font: inherit; font-weight: 600; padding: .45rem .8rem; border-radius:0; cursor: pointer;
}

.primary-nav { margin-left: auto; }
.primary-nav ul {
  list-style: none; margin: 0; padding: 0;
  display: flex; gap: .25rem; flex-wrap: wrap;
}
.primary-nav a {
  display: block; color: #eaf0f8; text-decoration: none; font-weight: 600;
  font-size: .98rem; padding: .55rem .8rem; border-radius:0;
}
.primary-nav a:hover { background: rgba(255,255,255,.10); color: #fff; }
.primary-nav a[aria-current="page"] {
  color: #fff; box-shadow: inset 0 -3px 0 var(--accent); background: rgba(255,255,255,.06);
}

@media (max-width: 52rem) {
  .nav-toggle { display: inline-block; }
  .primary-nav {
    flex-basis: 100%; margin-left: 0; display: none;
  }
  .primary-nav.open { display: block; }
  .primary-nav ul { flex-direction: column; gap: 0; }
  .primary-nav a { padding: .7rem .4rem; border-bottom: 1px solid var(--rule-dark); }
}

/* =====================================================================
   Page intro band (replaces the AI "hero", this is a stated lede, not a slogan)
   ===================================================================== */
.lede {
  background: var(--paper-warm);
  border-bottom: 1px solid var(--rule);
}
.lede .container { padding-top: 2.75rem; padding-bottom: 2.75rem; }
.eyebrow {
  font-size: .78rem; letter-spacing: .15em; text-transform: uppercase;
  color: var(--accent); font-weight: 700; margin: 0 0 .65rem;
}
.lede h1 {
  margin: 0; color: var(--navy);
  font-size: clamp(1.95rem, 4.6vw, 3.1rem); line-height: 1.04; font-weight: 700;
  letter-spacing: -0.028em; max-width: 22ch;
}

/* ---- photographic plate band + inline plate (sharp, hard-edged) ---- */
.photo-band {
  background: var(--navy-900); border-bottom: 4px solid var(--accent); overflow: hidden;
}
.photo-band figure { margin: 0; position: relative; max-width: 78rem; margin: 0 auto; }
.photo-band img {
  display: block; width: 100%; height: 320px; object-fit: cover; object-position: center 42%;
  filter: saturate(0.92) contrast(1.05);
}
.photo-band figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  font-size: .8rem; color: #e9eef6; padding: 2rem var(--gutter) .6rem;
  background: linear-gradient(transparent, rgba(11,27,52,0.85));
}
.photo-band figcaption a { color: #cfe0fb; }
@media (max-width: 52rem) { .photo-band img { height: 220px; } }
figure.photo { margin: 1.75rem 0; border: 1px solid var(--navy); }
figure.photo img {
  display: block; width: 100%; height: 300px; object-fit: cover; object-position: center 40%;
  filter: saturate(0.92) contrast(1.05);
}
figure.photo figcaption {
  font-size: .82rem; color: var(--ink-muted); padding: .55rem .8rem;
  border-top: 1px solid var(--rule); background: var(--paper-warm);
}
.lede .mission {
  margin: 1.1rem 0 0; max-width: 60ch; font-size: 1.18rem; line-height: 1.55; color: var(--ink);
}
html[data-theme="dark"] .lede h1 { color: #cfe0fb; }

/* =====================================================================
   Sections
   ===================================================================== */
.section { padding: 3rem 0; border-bottom: 1px solid var(--rule); }
.section.band { background: var(--paper-warm); }
.section.band-cool { background: var(--paper-cool); }
.section.navy { background: var(--navy); color: #fff; border-bottom: 4px solid var(--accent); }
.section.navy h2, .section.navy h3 { color: #fff; }
.section.navy a { color: #cfe0fb; }

.section-head { display: flex; align-items: baseline; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
.section h2 {
  margin: 0; color: var(--navy); font-size: clamp(1.4rem, 3vw, 1.9rem);
  font-weight: 700; letter-spacing: -0.01em;
}
.section h2 .ord {
  font-family: Spectral, Georgia, serif; color: var(--accent); font-weight: 600;
  font-size: .8em; margin-right: .5rem;
}
.section-note { color: var(--ink-muted); font-size: .92rem; margin: 0; }

h3 { color: var(--navy); font-weight: 700; margin: 1.6rem 0 .5rem; font-size: 1.18rem; }
html[data-theme="dark"] h2, html[data-theme="dark"] h3 { color: #cfe0fb; }

p { margin: 0 0 1rem; }
.lead { font-size: 1.12rem; }

/* Hairline rule system */
hr.rule { border: 0; border-top: 1px solid var(--rule); margin: 2rem 0; }
.kicker-rule { width: 3rem; height: 3px; background: var(--accent); border: 0; margin: 0 0 1.25rem; }

/* =====================================================================
   Programs (definition-list / module pattern, Harvard IOP "programs" feel)
   ===================================================================== */
.modules { display: grid; gap: 0; border-top: 2px solid var(--navy); }
.module {
  display: grid; grid-template-columns: 4.5rem 1fr; gap: 0 1.5rem;
  padding: 1.6rem 0; border-bottom: 1px solid var(--rule); align-items: start;
}
.module .num {
  font-family: Spectral, Georgia, serif; font-size: 1.8rem; color: var(--accent);
  font-weight: 600; line-height: 1; padding-top: .1rem;
}
.module h3 { margin: 0 0 .35rem; font-size: 1.2rem; }
.module .cadence {
  font-size: .82rem; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-muted);
  font-weight: 600; margin: 0 0 .6rem;
}
.module p { margin: 0 0 .5rem; max-width: 62ch; }
.module ul { margin: .25rem 0 0; padding-left: 1.1rem; }
.module li { margin: .2rem 0; }
@media (max-width: 38rem) {
  .module { grid-template-columns: 1fr; gap: .3rem; }
  .module .num { font-size: 1.4rem; }
}

/* =====================================================================
   Impact, the sober stat strip + Metric Ledger honesty blocks
   ===================================================================== */
.stat-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
  gap: 0; border: 1px solid var(--rule); border-radius:0; overflow: hidden;
}
.stat {
  padding: 1.4rem 1.3rem; border-right: 1px solid var(--rule); background: var(--paper);
}
.stat:last-child { border-right: 0; }
.stat .figure { font-size: 2.3rem; font-weight: 700; color: var(--navy); line-height: 1; letter-spacing: -0.02em; }
.stat .label { margin: .5rem 0 .1rem; font-weight: 600; font-size: .98rem; }
.stat .meta { font-size: .8rem; color: var(--ink-muted); line-height: 1.45; margin: .35rem 0 0; }
.stat .tag {
  display: inline-block; font-size: .68rem; letter-spacing: .1em; text-transform: uppercase;
  font-weight: 700; padding: .12rem .45rem; border-radius:0; margin-bottom: .55rem;
}
.tag.output { background: #e7eefc; color: var(--navy-700); }
.tag.outcome { background: #e7f1ec; color: var(--ok); }
html[data-theme="dark"] .stat { background: var(--paper-warm); }
html[data-theme="dark"] .stat .figure { color: #cfe0fb; }

/* Illustrative-sample (placeholder) block: hatched, can never read as attested */
.illustrative {
  border: 2px dashed var(--accent);
  background:
    repeating-linear-gradient(45deg,
      rgba(139,31,47,.05) 0, rgba(139,31,47,.05) 8px,
      transparent 8px, transparent 16px);
  padding: 1rem 1.1rem; border-radius:0;
}
.illustrative .ill-tag {
  display: inline-block; font-size: .68rem; letter-spacing: .08em; text-transform: uppercase;
  font-weight: 700; color: #fff; background: var(--accent); padding: .15rem .5rem; border-radius:0;
}
.illustrative .ill-body { margin: .55rem 0 0; font-size: .95rem; }
.illustrative .ill-body strong { color: var(--accent-700); }

/* Wide tables get a horizontal-scroll wrapper so they never overflow the page.
   The wrapper is keyboard-focusable and announced so it is accessible. */
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table-scroll table { min-width: 38rem; }

/* Ledger table for "how counted" */
table.ledger { width: 100%; border-collapse: collapse; font-size: .92rem; }
table.ledger caption { text-align: left; color: var(--ink-muted); font-size: .85rem; margin-bottom: .6rem; }
table.ledger th, table.ledger td {
  text-align: left; padding: .65rem .75rem; border-bottom: 1px solid var(--rule); vertical-align: top;
}
table.ledger thead th { background: var(--paper-cool); color: var(--navy); font-size: .8rem; letter-spacing: .03em; text-transform: uppercase; }
table.ledger tbody th { font-weight: 700; color: var(--ink); width: 30%; }

/* =====================================================================
   People cards (Harvard IOP people pattern) + placeholder seats
   ===================================================================== */
.people {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr));
  gap: 1px; background: var(--rule); border: 1px solid var(--rule);
}
.person { background: var(--paper); padding: 1.25rem 1.25rem 1.4rem; }
.person .seat {
  font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--accent);
  font-weight: 700; margin: 0 0 .55rem;
}
.person .name { font-weight: 700; font-size: 1.1rem; color: var(--navy); margin: 0 0 .15rem; }
.person .title { font-weight: 600; font-size: .92rem; margin: 0 0 .35rem; }
.person .affil { font-size: .88rem; color: var(--ink-muted); margin: 0; }
html[data-theme="dark"] .person { background: var(--paper-warm); }
html[data-theme="dark"] .person .name { color: #cfe0fb; }

.person.placeholder {
  background:
    repeating-linear-gradient(45deg,
      rgba(22,46,81,.04) 0, rgba(22,46,81,.04) 8px,
      transparent 8px, transparent 16px), var(--paper);
  border-left: 3px solid var(--accent);
}
.person.placeholder .seat { color: var(--navy-700); }
.person.placeholder .name { color: var(--ink-muted); font-style: italic; font-weight: 600; }

/* =====================================================================
   Callout / get-involved cards (no three-feature grid, these are pathways)
   ===================================================================== */
.pathways { display: grid; grid-template-columns: 1fr; gap: 0; border-top: 2px solid var(--navy); }
.pathway {
  display: grid; grid-template-columns: 1fr auto; gap: 1rem 1.5rem; align-items: center;
  padding: 1.4rem 0; border-bottom: 1px solid var(--rule);
}
.pathway .who { font-weight: 700; color: var(--navy); font-size: 1.1rem; margin: 0 0 .25rem; }
.pathway p { margin: 0; max-width: 60ch; color: var(--ink-muted); }
.pathway .act { white-space: nowrap; }
@media (max-width: 36rem) { .pathway { grid-template-columns: 1fr; } }

.btn {
  display: inline-block; background: var(--navy); color: #fff; text-decoration: none;
  font-weight: 700; padding: .7rem 1.25rem; border-radius:0; border: 2px solid var(--navy);
}
.btn:hover { background: var(--navy-900); color: #fff; border-color: var(--navy-900); }
.btn.accent { background: var(--accent); border-color: var(--accent); }
.btn.accent:hover { background: var(--accent-700); border-color: var(--accent-700); color: #fff; }
.btn.ghost { background: transparent; color: var(--navy); }
.btn.ghost:hover { background: var(--navy); color: #fff; }
html[data-theme="dark"] .btn.ghost { color: #cfe0fb; border-color: #cfe0fb; }

/* Pull quote (used sparingly, serif) */
.pullquote {
  border-left: 4px solid var(--accent); padding: .25rem 0 .25rem 1.5rem; margin: 2rem 0;
  font-family: Spectral, Georgia, serif; font-size: 1.4rem; line-height: 1.4; color: var(--navy);
  font-style: italic;
}
.pullquote cite { display: block; margin-top: .75rem; font-size: .95rem; font-style: normal; color: var(--ink-muted); font-family: "Public Sans", sans-serif; }
html[data-theme="dark"] .pullquote { color: #cfe0fb; }

/* Two-column editorial */
.cols2 { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; }
@media (max-width: 46rem) { .cols2 { grid-template-columns: 1fr; gap: 1.25rem; } }

/* Inline note / aside box */
.notebox {
  background: var(--paper-cool); border-left: 3px solid var(--navy); padding: 1rem 1.2rem;
  font-size: .95rem; border-radius:0;
}
.notebox p:last-child { margin-bottom: 0; }

/* Definition list for cadence / facts */
dl.facts { display: grid; grid-template-columns: max-content 1fr; gap: .5rem 1.25rem; margin: 0; }
dl.facts dt { font-weight: 700; color: var(--navy); }
dl.facts dd { margin: 0; }
@media (max-width: 30rem) { dl.facts { grid-template-columns: 1fr; gap: .1rem 0; } dl.facts dd { margin-bottom: .6rem; } }

/* =====================================================================
   Forms (get involved)
   ===================================================================== */
form.signup { max-width: 36rem; }
.field { margin-bottom: 1.1rem; }
.field label { display: block; font-weight: 700; color: var(--navy); margin-bottom: .3rem; }
.field .hint { font-size: .85rem; color: var(--ink-muted); margin: 0 0 .4rem; }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; padding: .6rem .7rem; border: 1px solid #565c65;
  border-radius:0; background: var(--paper); color: var(--ink);
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--navy-700); }
fieldset { border: 1px solid var(--rule); border-radius:0; padding: 1rem 1.2rem; margin: 0 0 1.1rem; }
legend { font-weight: 700; color: var(--navy); padding: 0 .4rem; }

/* =====================================================================
   Institutional footer (whitehouse.gov density)
   ===================================================================== */
.site-footer {
  background: var(--navy-900); color: #d4ddec; padding: 2.75rem 0 1.5rem;
  border-top: 4px solid var(--accent);
}
.footer-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2rem;
  padding-bottom: 2rem; border-bottom: 1px solid var(--rule-dark);
}
.site-footer h2 { color: #fff; font-size: .85rem; letter-spacing: .12em; text-transform: uppercase; margin: 0 0 .8rem; }
.site-footer .org-line .brand-name { color: #fff; font-weight: 700; font-size: 1.25rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin: .35rem 0; }
.site-footer a { color: #cfe0fb; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer address { font-style: normal; line-height: 1.6; font-size: .92rem; }
.footer-legal {
  padding-top: 1.25rem; font-size: .82rem; color: #9fb2cd; display: flex;
  flex-wrap: wrap; gap: .5rem 1.5rem; justify-content: space-between;
}
.footer-legal .status { max-width: 60ch; }
@media (max-width: 50rem) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 30rem) { .footer-grid { grid-template-columns: 1fr; } }

/* The studio provenance line that rides every artifact */
.studio-line {
  background: var(--paper-cool); color: var(--ink-muted); font-size: .8rem;
  text-align: center; padding: .7rem var(--gutter); border-top: 1px solid var(--rule);
}

/* =====================================================================
   The single illustrative-sample banner (the ONLY disclaimer on a site).
   Sits at the very top of the page, above the .gov utility bar.
   ===================================================================== */
.crcs-banner {
  background: var(--accent); color: #fff;
  font-size: .8rem; letter-spacing: .01em; font-weight: 600;
  text-align: center; padding: .4rem var(--gutter);
  border-bottom: 1px solid var(--accent-700);
}
html[data-theme="dark"] .crcs-banner { background: #6e1825; color: #ffe7eb; border-bottom-color: #4d1019; }

/* Stage label ("Launch" / "Goal"), a small square chip in the utility bar */
.stage-label {
  display: inline-flex; align-items: center;
  font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 700;
  color: #fff; background: var(--navy); padding: .12rem .5rem; border-radius: 0;
  border: 1px solid var(--navy);
}
html[data-theme="dark"] .stage-label { background: #cfe0fb; color: #0b1220; border-color: #cfe0fb; }

/* The two-moments switch note (launch <-> goal): a small editorial strip */
.switch-note {
  background: var(--paper-cool); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule);
  font-size: .9rem; color: var(--ink-muted);
}
.switch-note .container { padding-top: .8rem; padding-bottom: .8rem; display: flex; gap: .5rem 1.25rem; flex-wrap: wrap; align-items: baseline; }
.switch-note strong { color: var(--navy); }
html[data-theme="dark"] .switch-note strong { color: #cfe0fb; }
.switch-note a { font-weight: 600; }

/* Breadcrumb */
.crumbs { font-size: .85rem; color: var(--ink-muted); padding: .9rem 0 0; }
.crumbs a { color: var(--navy-700); }

/* Utility */
.muted { color: var(--ink-muted); }
.small { font-size: .88rem; }
.mt0 { margin-top: 0; } .mb0 { margin-bottom: 0; }
.spaced > * + * { margin-top: 1rem; }

/* Print niceties for the annual report page */
@media print {
  .gov-bar, .nav-toggle, .primary-nav, .skip-link { display: none !important; }
  body { font-size: 11pt; }
  .section { border-bottom: 1px solid #ccc; page-break-inside: avoid; }
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}
.reveal { opacity: 0; transform: translateY(8px); animation: fadeup .5s ease forwards; }
@keyframes fadeup { to { opacity: 1; transform: none; } }

/* =====================================================================
   SEMINAR + VIDEO SERIES modules (the realigned content)
   Photo-index of episodes (BBC Bitesize / Khan Academy "course" rhythm,
   Pocklington/RNIB sobriety). No three-feature-card grid; this is a
   catalogue of real sessions with a still per row.
   ===================================================================== */

/* Track legend chips (three tracks: practical / mindset / recreational) */
.tracks { display: flex; flex-wrap: wrap; gap: .5rem .65rem; margin: 1.1rem 0 0; padding: 0; list-style: none; }
.track-chip {
  display: inline-flex; align-items: center; gap: .45rem;
  font-size: .8rem; font-weight: 700; letter-spacing: .02em;
  border: 1px solid var(--rule); padding: .3rem .65rem; color: var(--ink);
  background: var(--paper);
}
.track-chip .swatch { width: .7rem; height: .7rem; display: inline-block; }
.swatch.practical { background: var(--navy); }
.swatch.mindset   { background: var(--accent); }
.swatch.fun       { background: #b7791f; }   /* a third, ochre, used only as a small key */
html[data-theme="dark"] .track-chip { background: var(--paper-warm); }

/* A small left rule keyed to track on each episode row */
.ep-row.t-practical { border-left: 4px solid var(--navy); }
.ep-row.t-mindset   { border-left: 4px solid var(--accent); }
.ep-row.t-fun       { border-left: 4px solid #b7791f; }

/* Episode list: a still + meta + outline + companion link, per row */
.episodes { border-top: 2px solid var(--navy); margin-top: 1.5rem; }
.ep-row {
  display: grid;
  grid-template-columns: 13rem 1fr;
  gap: 0 1.5rem;
  border-bottom: 1px solid var(--rule);
  padding: 1.4rem 0 1.4rem 1rem;
  align-items: start;
}
.ep-thumb { position: relative; border: 1px solid var(--navy); background: var(--navy-900); }
.ep-thumb img {
  display: block; width: 100%; height: 8.5rem; object-fit: cover; object-position: center 42%;
  filter: saturate(.92) contrast(1.05);
}
.ep-thumb .ep-no {
  position: absolute; top: 0; left: 0;
  font-size: .72rem; font-weight: 800; letter-spacing: .08em;
  color: #fff; background: var(--navy); padding: .15rem .5rem;
}
.ep-thumb .ep-runtime {
  position: absolute; bottom: 0; right: 0;
  font-size: .72rem; font-weight: 700; color: #fff;
  background: rgba(11,27,52,.88); padding: .12rem .5rem;
}
.ep-body .ep-track {
  font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; font-weight: 800;
  margin: 0 0 .3rem;
}
.ep-body.t-practical .ep-track { color: var(--navy-700); }
.ep-body.t-mindset .ep-track   { color: var(--accent); }
.ep-body.t-fun .ep-track       { color: #8a5a12; }
.ep-body h3 { margin: 0 0 .5rem; font-size: 1.18rem; }
.ep-body p { margin: 0 0 .65rem; max-width: 64ch; }
.ep-links { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; font-size: .9rem; font-weight: 600; }
.ep-links a { display: inline-flex; align-items: center; gap: .35rem; }
.ep-links .muted-link { color: var(--ink-muted); font-weight: 600; }
@media (max-width: 40rem) {
  .ep-row { grid-template-columns: 1fr; gap: .9rem; padding-left: .7rem; }
  .ep-thumb img { height: 11rem; }
}

/* Featured episode module (one lead session, large still beside a short story) */
.featured {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 0;
  border: 1px solid var(--navy); margin-top: 1.5rem; background: var(--paper);
}
.featured .feat-img { position: relative; border-right: 1px solid var(--navy); background: var(--navy-900); }
.featured .feat-img img { display: block; width: 100%; height: 100%; min-height: 16rem; object-fit: cover; filter: saturate(.92) contrast(1.05); }
.featured .feat-play {
  position: absolute; left: 1rem; bottom: 1rem;
  font-size: .74rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
  color: #fff; background: var(--accent); padding: .3rem .65rem;
}
.featured .feat-body { padding: 1.6rem 1.5rem; }
.featured .feat-kicker { font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); font-weight: 800; margin: 0 0 .5rem; }
.featured h3 { margin: 0 0 .6rem; font-size: 1.35rem; }
html[data-theme="dark"] .featured { background: var(--paper-warm); }
@media (max-width: 46rem) {
  .featured { grid-template-columns: 1fr; }
  .featured .feat-img { border-right: 0; border-bottom: 1px solid var(--navy); }
  .featured .feat-img img { min-height: 12rem; }
}

/* ---- Seminar SCRIPT pages (a real shooting/teaching script) ---- */
.script-meta {
  border: 1px solid var(--rule); border-left: 4px solid var(--accent);
  background: var(--paper-warm); padding: 1.1rem 1.25rem; margin: 1.5rem 0 0;
}
.script-meta dl.facts { margin: 0; }
.beat {
  border-top: 1px solid var(--rule); padding: 1.3rem 0 .6rem;
  display: grid; grid-template-columns: 8.5rem 1fr; gap: 0 1.5rem; align-items: start;
}
.beat:first-of-type { border-top: 2px solid var(--navy); }
.beat .beat-head { position: sticky; top: 0; }
.beat .beat-time {
  font-weight: 800; color: var(--navy); font-size: .95rem; font-variant-numeric: tabular-nums;
}
.beat .beat-name {
  font-size: .74rem; letter-spacing: .08em; text-transform: uppercase; color: var(--accent);
  font-weight: 800; margin-top: .2rem;
}
.beat .beat-body p { max-width: 64ch; }
.beat .stage {
  font-style: italic; color: var(--ink-muted); border-left: 2px solid var(--rule);
  padding-left: .8rem; margin: .2rem 0 .9rem; font-size: .96rem;
}
.beat .say { margin: 0 0 .9rem; }
.beat .onscreen {
  background: var(--paper-cool); border: 1px solid var(--rule); padding: .55rem .8rem;
  font-size: .9rem; margin: 0 0 .9rem;
}
.beat .onscreen strong { color: var(--navy); }
@media (max-width: 40rem) {
  .beat { grid-template-columns: 1fr; gap: .35rem; }
  .beat .beat-head { position: static; display: flex; gap: .8rem; align-items: baseline; }
}

/* Companion one-pager rendered on-page (and the print/PDF source) */
.companion {
  border: 1px solid var(--navy); background: var(--paper); padding: 1.6rem 1.6rem 1.8rem; margin-top: 1.5rem;
}
.companion .comp-head { border-bottom: 2px solid var(--accent); padding-bottom: .6rem; margin-bottom: 1rem; }
.companion .comp-eyebrow { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); font-weight: 800; margin: 0 0 .25rem; }
.companion h3 { margin: 0; font-size: 1.4rem; }
.companion h4 { color: var(--navy); margin: 1.2rem 0 .4rem; font-size: 1rem; letter-spacing: .02em; text-transform: uppercase; }
.companion ul { margin: .2rem 0 .6rem; padding-left: 1.2rem; }
.companion li { margin: .35rem 0; max-width: 70ch; }
html[data-theme="dark"] .companion { background: var(--paper-warm); }

/* ---- "How we record and publish" workflow steps ---- */
.flow { counter-reset: step; border-top: 2px solid var(--navy); margin-top: 1.5rem; }
.flow .step {
  display: grid; grid-template-columns: 3.5rem 1fr; gap: 0 1.25rem;
  border-bottom: 1px solid var(--rule); padding: 1.4rem 0; align-items: start;
}
.flow .step::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  font-family: Spectral, Georgia, serif; font-size: 1.7rem; color: var(--accent); font-weight: 600; line-height: 1;
}
.flow .step h3 { margin: 0 0 .35rem; font-size: 1.15rem; }
.flow .step p { margin: 0 0 .5rem; max-width: 64ch; }

/* Partner status pill (Sight for Surrey shown as in discussion, never secured) */
.status-pill {
  display: inline-block; font-size: .72rem; letter-spacing: .06em; text-transform: uppercase;
  font-weight: 800; padding: .15rem .55rem; border: 1px solid var(--rule); color: var(--ink-muted);
  background: var(--paper-cool);
}
.status-pill.seeking { border-color: var(--accent); color: var(--accent); }
