/* College Football Reports — one stylesheet, no framework, no external requests. */

/* The logo sets the frame: hard black and white, hard corners, and a yard-line stripe
   motif. Field green is the one colour, used where the eye should land. The logo
   itself is black ink on white and is always shown that way — on dark surfaces it sits
   on its own white plate rather than being inverted into something it is not. */
:root {
  --ink: #101012;
  --paper: #ffffff;
  --bg: #f4f4f1;
  --bg-raised: #ffffff;
  --bg-card: #ffffff;
  --line: #101012;
  --line-soft: #d9d9d4;
  --ink-mid: #43434a;
  --ink-dim: #6e6e75;
  --accent: #0a7a33;            /* field green */
  --accent-bright: #0e9c42;
  --accent-ink: #ffffff;
  --accent-soft: #e8f4ec;
  --band: #0e0e10;              /* the hero/footer band, black in both themes */
  --band-ink: #ffffff;
  --band-mid: #b9b9bf;
  --danger: #b3261e;
  --radius: 2px;
  --wrap: 1140px;
  --shadow: 0 1px 2px rgba(12, 12, 14, .06), 0 8px 24px -12px rgba(12, 12, 14, .18);
  --shadow-lift: 0 2px 4px rgba(12, 12, 14, .08), 0 14px 34px -12px rgba(12, 12, 14, .28);
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --display: var(--sans);
  /* The horizontal yard-lines behind the helmet in the logo. */
  --stripes: repeating-linear-gradient(
      to bottom, currentColor 0 6px, transparent 6px 16px);
}

@media (prefers-color-scheme: dark) {
  :root {
    --ink: #f2f2ef;
    --paper: #101012;
    --bg: #101012;
    --bg-raised: #17171a;
    --bg-card: #1a1a1e;
    --line: #f2f2ef;
    --line-soft: #2c2c31;
    --ink-mid: #b9b9bf;
    --ink-dim: #8a8a91;
    --accent: #2fbf63;
    --accent-bright: #4fd67f;
    --accent-ink: #08260f;
    --accent-soft: #16281c;
    --band: #0a0a0c;
    --band-ink: #f2f2ef;
    --band-mid: #a4a4ab;
    --danger: #ff6b6b;
    --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 8px 24px -12px rgba(0, 0, 0, .6);
    --shadow-lift: 0 2px 4px rgba(0, 0, 0, .5), 0 14px 34px -12px rgba(0, 0, 0, .7);
  }
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16.5px;
  line-height: 1.65;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  overflow-x: hidden;
}

main { flex: 1 0 auto; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }

a { color: var(--ink); text-decoration-color: var(--ink-dim); text-underline-offset: 3px; }
a:hover { color: var(--accent); text-decoration-color: var(--accent); }

/* Headlines: heavy, tall and tracked-in — collegiate without the squeezed condensed
   face that made light-on-dark text genuinely hard to read. */
h1, h2, h3 {
  font-family: var(--display);
  text-transform: uppercase;
  font-weight: 800;
  line-height: 1.06;
  margin: 0 0 .4em;
  letter-spacing: .015em;
}
h1 { font-size: clamp(1.9rem, 4.6vw, 3rem); font-weight: 900; }
h2 { font-size: clamp(1.35rem, 2.6vw, 1.8rem); }
h3 { font-size: 1.08rem; }
p { margin: 0 0 1em; }

.muted { color: var(--ink-mid); }
.small { font-size: .875rem; }

.skip {
  position: absolute; left: -9999px; top: 0; background: var(--accent);
  color: var(--accent-ink); padding: 10px 16px; z-index: 100; border-radius: 0 0 8px 0;
}
.skip:focus { left: 0; }

/* ---------- header ---------- */
.site-header {
  border-bottom: 3px solid var(--line);
  background: var(--bg-raised);
  position: sticky; top: 0; z-index: 20;
  box-shadow: var(--shadow);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; min-height: 64px; flex-wrap: wrap;
}
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
/* The logo is black-on-white artwork and stays that way in both themes: on dark
   surfaces it gets a white plate, never an inversion. */
.brand-logo {
  display: block; height: 42px; width: auto;
  background: #fff; padding: 3px; border: 1px solid var(--line-soft);
}
.brand-mark {
  background: var(--ink); color: var(--paper);
  font-family: var(--display); font-weight: 800; font-size: .95rem;
  letter-spacing: .04em; padding: 5px 10px;
}
.brand-text {
  font-family: var(--display); text-transform: uppercase; font-weight: 800;
  font-size: 1rem; letter-spacing: .05em; color: var(--ink);
}
.nav { display: flex; gap: 4px; align-items: center; flex-wrap: wrap; }
.nav a {
  text-decoration: none; color: var(--ink-mid); padding: 6px 12px;
  border-bottom: 3px solid transparent;
  font-family: var(--display); text-transform: uppercase; font-weight: 700;
  font-size: .88rem; letter-spacing: .07em;
}
.nav a:hover { color: var(--ink); border-bottom-color: var(--line-soft); }
.nav a.on { color: var(--ink); border-bottom-color: var(--accent); }
.nav .admin-link { color: var(--accent); }

/* ---------- hero ---------- */
/* A black band in both themes: the logo's own world. White type, green accents. */
.hero {
  background: var(--band);
  color: var(--band-ink);
  border-bottom: 4px solid var(--accent);
  padding: 60px 0 56px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background: var(--stripes);
  color: var(--band-ink);
  opacity: .05;
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, transparent 82%);
  mask-image: linear-gradient(to bottom, #000 0%, transparent 82%);
  pointer-events: none;
}
.hero .wrap { position: relative; }
.hero-logo {
  display: block; margin: 0 auto 24px; height: clamp(110px, 20vw, 170px); width: auto;
  background: #fff; padding: 10px; box-shadow: var(--shadow-lift);
}
.eyebrow {
  text-transform: uppercase; letter-spacing: .26em; font-size: .74rem;
  color: var(--accent-bright); font-weight: 800; margin-bottom: 14px;
}
.hero h1 { font-size: clamp(2.2rem, 6vw, 3.6rem); margin-bottom: .3em; color: var(--band-ink); }
.hero .lede { color: var(--band-mid); }
.lede {
  font-size: clamp(1.02rem, 1.9vw, 1.18rem); max-width: 62ch; margin: 0 auto 1.9em;
  color: var(--ink-mid);
}
.hero-actions { display: flex; gap: 16px; align-items: center; justify-content: center; flex-wrap: wrap; }
.hero .btn { border-color: var(--band-ink); color: var(--band-ink); }
.hero .btn:hover { background: rgba(255, 255, 255, .12); }
.hero .btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.hero .btn.primary:hover { background: var(--accent-bright); border-color: var(--accent-bright); }
.hero-count { color: var(--band-mid); font-size: .9rem; }

/* ---------- sections ---------- */
.section { padding: 56px 0; }
.section > h2, .section-head h2 {
  border-bottom: 3px solid var(--line); padding-bottom: 10px; margin-bottom: 24px;
  position: relative;
}
.section > h2::after, .section-head h2::after {
  content: ""; position: absolute; left: 0; bottom: -3px;
  width: 64px; height: 3px; background: var(--accent);
}
.section-lede { color: var(--ink-mid); max-width: 68ch; margin-bottom: 2em; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.more {
  font-size: .88rem; color: var(--accent); text-decoration: none; white-space: nowrap;
  font-weight: 700; text-transform: uppercase; letter-spacing: .06em;
}
.more:hover { text-decoration: underline; }

.grid { display: grid; gap: 18px; }
.cards { grid-template-columns: repeat(auto-fit, minmax(248px, 1fr)); }
.types { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }

.card {
  background: var(--bg-card);
  border: 1px solid var(--line-soft); border-top: 4px solid var(--line);
  padding: 22px;
  box-shadow: var(--shadow);
}
.card h3 { color: var(--ink); }
.card p { color: var(--ink-mid); font-size: .93rem; margin: 0; }

.type-card {
  background: var(--bg-card);
  border: 1px solid var(--line-soft); border-top: 4px solid var(--line);
  padding: 24px 24px 22px; text-decoration: none;
  display: flex; flex-direction: column; gap: 8px;
  box-shadow: var(--shadow);
  transition: transform .14s ease, box-shadow .14s ease, border-color .14s ease;
}
.type-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lift);
  border-top-color: var(--accent);
  color: var(--ink);
}
.type-card p { color: var(--ink-mid); font-size: .93rem; flex: 1; margin: 0; }
.type-count {
  font-family: var(--display); font-weight: 800; text-transform: uppercase;
  letter-spacing: .07em; font-size: .85rem; color: var(--accent);
}

/* ---------- report lists ---------- */
.report-list { list-style: none; margin: 0; padding: 0; border-top: 3px solid var(--line); }
.report-list li { border-bottom: 1px solid var(--line-soft); }
.report-list a {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 16px;
  padding: 16px 12px; text-decoration: none;
  border-left: 3px solid transparent;
  transition: background .12s, border-color .12s;
}
.report-list a:hover { background: var(--accent-soft); border-left-color: var(--accent); color: var(--ink); }
.report-title {
  font-family: var(--display); font-weight: 700; font-size: 1.02rem;
  letter-spacing: .01em;
}
.report-list.large a { padding: 20px 12px; }
.report-list time { color: var(--ink-dim); font-size: .86rem; white-space: nowrap; }

.tag {
  display: inline-block; background: var(--ink); color: var(--paper);
  border: 0; font-family: var(--display); font-weight: 700;
  font-size: .72rem; letter-spacing: .09em; text-transform: uppercase;
  padding: 4px 10px; white-space: nowrap;
}
a:hover .tag, .report-list a:hover .tag { background: var(--accent); color: #fff; }

.crumbs { font-size: .85rem; color: var(--ink-dim); margin-bottom: 18px; }
.crumbs a { color: var(--ink-mid); text-decoration: none; }
.crumbs a:hover { color: var(--accent); }
.crumbs span[aria-hidden] { margin: 0 6px; }

.tabs { display: flex; gap: 8px; flex-wrap: wrap; margin: 22px 0 8px; }
.tab {
  text-decoration: none; padding: 8px 16px;
  border: 2px solid var(--line); color: var(--ink);
  font-family: var(--display); font-weight: 700; text-transform: uppercase;
  letter-spacing: .05em; font-size: .85rem;
  transition: background .12s, color .12s;
}
.tab:hover { background: var(--accent-soft); color: var(--ink); }
.tab.on { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.pill { opacity: .7; font-size: .8rem; margin-left: 4px; }

.empty { text-align: center; padding: 48px 20px; color: var(--ink-mid); }
.empty.tall { padding: 80px 20px; }
.empty .code { font-size: 3.5rem; font-weight: 900; color: var(--line-soft); margin: 0; line-height: 1; }
.empty-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 24px; }

/* ---------- viewer ---------- */
.viewer-head { padding-top: 32px; }
.viewer-title { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; flex-wrap: wrap; margin-bottom: 8px; }
.viewer-title h1 { margin: 10px 0 4px; }
.viewer-actions { display: flex; gap: 10px; flex-wrap: wrap; }

.pages { display: flex; flex-direction: column; align-items: center; gap: 24px; padding: 12px 0 40px; }
.page { margin: 0; width: 100%; max-width: 900px; }
.page img {
  display: block; width: 100%; height: auto;
  border: 1px solid var(--line-soft); background: #fff;
  box-shadow: var(--shadow);
  /* Raise the cost of a casual save; the real protection is that this is an image
     of a page and never the document itself. */
  -webkit-user-select: none; user-select: none; -webkit-touch-callout: none;
  pointer-events: none;
}
/* Page numbers matter when you look for them, not on every one of 40 pages while
   scrolling: keep the caption in the layout (no reflow) but only visible on hover
   or keyboard focus. */
.page figcaption { text-align: center; color: var(--ink-dim); font-size: .8rem; padding-top: 8px;
                   opacity: 0; transition: opacity .15s ease; }
.page:hover figcaption, .page:focus-within figcaption { opacity: 1; }
@media (hover: none) { .page figcaption { opacity: 1; } }

/* ---------- notices ---------- */
.notice-band {
  border-top: 3px solid var(--line); background: var(--bg-raised);
  margin-top: 20px;
}
.notice-band.compact { padding: 26px 0; }
.notice-band p { color: var(--ink-mid); max-width: 76ch; margin: 0; font-size: .93rem; }

.alert { border-radius: var(--radius); padding: 14px 16px; margin: 0 0 20px; font-size: .93rem; border: 1px solid; }
.alert.error { background: color-mix(in srgb, var(--danger) 10%, transparent); border-color: color-mix(in srgb, var(--danger) 40%, transparent); color: var(--ink); }
.alert.notice { background: var(--accent-soft); border-color: color-mix(in srgb, var(--accent) 32%, transparent); }

/* ---------- forms and buttons ---------- */
.btn {
  display: inline-block; border: 2px solid var(--line); background: transparent;
  color: var(--ink); padding: 10px 22px;
  font-family: var(--display); font-weight: 700; text-transform: uppercase;
  letter-spacing: .06em; font-size: .9rem; text-decoration: none; cursor: pointer;
  transition: background .12s, color .12s, border-color .12s;
}
.btn:hover { background: var(--accent-soft); color: var(--ink); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn.primary:hover { background: var(--accent-bright); border-color: var(--accent-bright); color: #fff; }
.btn.primary:disabled { opacity: .45; cursor: not-allowed; }
.btn.ghost { background: transparent; }
.btn.full { width: 100%; }
.btn.tiny { padding: 5px 12px; font-size: .78rem; }
.btn.danger { color: var(--danger); border-color: color-mix(in srgb, var(--danger) 40%, transparent); }
.btn.danger:hover { background: color-mix(in srgb, var(--danger) 12%, transparent); border-color: var(--danger); color: var(--danger); }

fieldset { border: 2px solid var(--line); padding: 20px; margin: 0 0 20px; background: var(--bg-card); }
legend {
  padding: 0 8px; font-family: var(--display); font-weight: 800; font-size: .9rem;
  letter-spacing: .08em; text-transform: uppercase; color: var(--ink);
}

.choices { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.choice { display: flex; gap: 12px; align-items: flex-start; padding: 14px; border: 1px solid var(--line-soft); cursor: pointer; transition: border-color .12s, background .12s; }
.choice:hover { border-color: var(--accent); }
.choice input { margin-top: 4px; accent-color: var(--accent); }
.choice:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.choice-body { display: flex; flex-direction: column; gap: 3px; }
.choice-title { font-weight: 700; }
.choice-desc { font-size: .85rem; color: var(--ink-mid); }

.fields { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.field label { font-size: .85rem; font-weight: 700; color: var(--ink-mid); }
input[type=text], input[type=password], select {
  background: var(--bg); border: 2px solid var(--line-soft);
  padding: 11px 13px; color: var(--ink); font-size: 1rem; font-family: inherit; width: 100%;
  transition: border-color .12s;
}
input[type=text]:focus, input[type=password]:focus, select:focus { border-color: var(--accent); outline: none; }
input:focus-visible, .btn:focus-visible, a:focus-visible, .tab:focus-visible {
  outline: 2px solid var(--accent); outline-offset: 2px;
}
.actions { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }

/* ---------- progress ---------- */
.progress-card { margin-top: 26px; border: 1px solid var(--line-soft); border-left: 4px solid var(--accent); padding: 22px; background: var(--bg-card); box-shadow: var(--shadow); }
.progress-card h2 { font-size: 1.05rem; }
.bar { height: 8px; background: var(--line-soft); overflow: hidden; margin: 14px 0 10px; }
.bar-fill { height: 100%; width: 0; background: var(--accent); transition: width .5s ease; }
.job-card { margin-top: 14px; }
.job-card .job-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.job-card .job-title { font-size: 1rem; margin: 0; }
.job-state { font-size: .72rem; font-weight: 700; letter-spacing: .06em; padding: 3px 9px; border: 1px solid var(--line-soft); color: var(--ink-dim); white-space: nowrap; }
.job-state.running { color: var(--accent); border-color: var(--accent); }
.job-state.done { color: var(--ok, #2e7d32); border-color: currentColor; }
.job-state.error { color: var(--danger); border-color: currentColor; }
.report-list .game-date { display: block; font-size: .78rem; color: var(--ink-dim); font-weight: 400; margin-top: 2px; }
.progress-message { margin: 0; color: var(--ink-mid); font-size: .93rem; }

/* ---------- report browser ---------- */
.type-blurb { color: var(--ink-mid); max-width: 740px; margin: 4px 0 20px; font-size: .95rem; }
.tagline { font-style: italic; font-size: 1.1rem; color: var(--accent); margin: -6px 0 6px; }
.report-controls { display: flex; gap: 10px; flex-wrap: wrap; margin: 0 0 6px; }
.report-controls input[type="search"] {
  flex: 1 1 240px; padding: 10px 14px; font: inherit;
  border: 2px solid var(--line); background: var(--paper); color: var(--ink);
}
.report-controls select {
  padding: 10px 12px; border: 2px solid var(--line);
  background: var(--paper); color: var(--ink);
  font-family: var(--display); font-weight: 700; font-size: .8rem;
  text-transform: uppercase; letter-spacing: .05em; cursor: pointer;
}
.report-controls input:focus, .report-controls select:focus {
  outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent);
}
.list-heading {
  font-family: var(--display); font-weight: 800; text-transform: uppercase;
  letter-spacing: .06em; font-size: .95rem; margin: 24px 0 10px;
}
.list-heading .count, .more-reports .count { color: var(--ink-dim); font-weight: 400; }
.week-note { color: var(--ink-mid); padding: 20px 12px; border-top: 3px solid var(--line); margin: 0; }
.more-reports { margin-top: 28px; }
.more-reports summary {
  cursor: pointer; padding: 13px 14px; border: 2px solid var(--line);
  font-family: var(--display); font-weight: 700; font-size: .88rem;
  text-transform: uppercase; letter-spacing: .06em; list-style-position: inside;
  transition: background .12s;
}
.more-reports summary:hover { background: var(--accent-soft); }
.more-reports[open] summary { border-bottom: 0; margin-bottom: 0; }

/* ---------- about editor ---------- */
.about-form textarea {
  width: 100%; padding: 12px 14px; font: inherit; line-height: 1.55;
  border: 2px solid var(--line); background: var(--paper); color: var(--ink);
  resize: vertical;
}
.about-form textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.about-form input[type="text"] {
  width: 100%; padding: 10px 14px; font: inherit;
  border: 2px solid var(--line); background: var(--paper); color: var(--ink);
}
.about-form input[type="text"]:focus { outline: 2px solid var(--accent); outline-offset: 1px; }

.row-actions { display: flex; gap: 6px; white-space: nowrap; }

/* ---------- the wire ---------- */
.wire-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 34px; align-items: start; }
@media (max-width: 860px) { .wire-grid { grid-template-columns: 1fr; } }
.wire-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; border-bottom: 3px solid var(--line); padding-bottom: 6px; }
.wire-head h2 { margin: 0; }
.wire-more { font-size: .82rem; white-space: nowrap; }
.wire-list { list-style: none; margin: 12px 0 0; padding: 0; }
.wire-item { padding: 14px 0; border-bottom: 1px solid var(--line-soft); }
.wire-meta { display: flex; align-items: center; gap: 10px; margin-bottom: 4px; }
.wire-headline { margin: 0 0 4px; font-size: 1.02rem; line-height: 1.35; }
.wire-status { margin: 0 0 4px; font-size: .88rem; font-weight: 600; color: var(--accent); }
.wire-detail { margin: 0 0 4px; font-size: .92rem; color: var(--ink-mid); }
.wire-source { margin: 0; }
.wire-history { max-width: 760px; }

/* ---------- live feed scheduler cards (console) ---------- */
.feed-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 860px) { .feed-cards { grid-template-columns: 1fr; } }
.feed-card { border: 1px solid var(--line-soft); border-radius: var(--radius); padding: 14px 16px; background: var(--bg-raised); }
.feed-card h3 { margin: 0 0 8px; }
.feed-card .fields { margin-top: 8px; }
.feed-card input[type="number"], .feed-card input[type="text"], .feed-card select { width: 100%; }

/* ---------- podcast ---------- */
/* A control the selected model does not support stays visible but greyed out,
   so the form's shape is stable and capability differences are legible. */
.field-off label { opacity: .5; }
.field input:disabled, .field select:disabled {
  opacity: .45; cursor: not-allowed; background: var(--bg);
}

.script-help {
  border: 1px solid var(--line-soft); border-left: 4px solid var(--accent);
  border-radius: var(--radius); background: var(--bg-raised);
  padding: 12px 16px; margin: 14px 0;
}
.script-help-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.script-help-head h3 { margin: 0; font-size: .95rem; }
.script-help pre {
  margin: 10px 0 2px; white-space: pre-wrap; word-break: break-word;
  font-family: inherit; font-size: .88rem; line-height: 1.55;
  color: var(--ink-mid); user-select: text; cursor: text;
}

/* ---------- local voice studio ---------- */
/* The report picker is capped and scrolls: an account with two seasons of coverage
   would otherwise push the rest of the form off the screen. */
.picker-list {
  display: grid; gap: 8px; max-height: 320px; overflow-y: auto;
  border: 1px solid var(--line-soft); padding: 10px; margin-bottom: 14px;
  background: var(--bg);
}
.picker-list .choice { padding: 10px 12px; }
.picker-list .choice-title { font-weight: 700; font-size: .94rem; }
.picker-list:empty { display: none; }

#script-builder { padding-bottom: 4px; }
#script-builder > summary {
  cursor: pointer; font-size: .95rem; padding: 2px 0;
  list-style-position: inside;
}
#script-builder > summary:hover { color: var(--accent); }
#script-builder textarea, #script-builder input[type=text], #script-builder select {
  margin-bottom: 12px;
}
#studio-badge { margin-left: 6px; vertical-align: middle; }
#local-form .job-actions { margin-top: 10px; }

.episode-list { list-style: none; margin: 0; padding: 0; border-top: 3px solid var(--line); }
.episode { padding: 22px 0; border-bottom: 1px solid var(--line-soft); }
.episode-head { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.episode-title { margin: 0; font-size: 1.15rem; }
.episode audio { width: 100%; max-width: 720px; display: block; }

/* ---------- table ---------- */
.table { width: 100%; border-collapse: collapse; font-size: .92rem; margin-top: 14px; display: block; overflow-x: auto; }
.table th, .table td { text-align: left; padding: 11px 12px; border-bottom: 1px solid var(--line-soft); white-space: nowrap; }
.table th { color: var(--ink-dim); font-size: .76rem; text-transform: uppercase; letter-spacing: .07em; font-weight: 700; }
.table tr.going { opacity: .4; }

/* ---------- login ---------- */
.login-wrap { display: flex; justify-content: center; padding: 70px 20px; }
.login-card {
  width: 100%; max-width: 380px; background: var(--bg-card);
  border: 2px solid var(--line); border-top: 6px solid var(--accent);
  padding: 32px; box-shadow: var(--shadow-lift);
}
.login-logo {
  display: block; height: 84px; width: auto; margin: 0 auto 18px;
  background: #fff; padding: 6px; border: 1px solid var(--line-soft);
}
.login-card h1 { font-size: 1.3rem; }
.login-back { margin: 20px 0 0; text-align: center; font-size: .87rem; }
.login-back a { color: var(--ink-dim); text-decoration: none; }

/* ---------- legal ---------- */
.legal { max-width: 780px; }
.legal h2 { margin-top: 1.8em; font-size: 1.1rem; }
.legal ul { color: var(--ink-mid); padding-left: 1.2em; }
.legal li { margin-bottom: .5em; }
.legal hr { border: 0; border-top: 1px solid var(--line-soft); margin: 2.5em 0 1.5em; }

/* ---------- footer ---------- */
/* The same black band as the hero, closing the page the way it opened. */
.site-footer {
  border-top: 4px solid var(--accent); background: var(--band); color: var(--band-mid);
  padding: 30px 0; margin-top: auto;
}
.disclaimer { font-size: .84rem; color: var(--band-mid); max-width: 84ch; margin: 0 0 10px; }
.disclaimer strong { color: var(--band-ink); }
.disclaimer a { color: var(--band-mid); }
.disclaimer a:hover { color: var(--band-ink); }
.foot-meta { font-size: .82rem; color: var(--band-mid); margin: 0; }
.foot-meta a { color: var(--band-mid); text-decoration: none; }
.foot-meta a:hover { color: var(--band-ink); }
.foot-meta .quiet { opacity: .55; }

@media (max-width: 640px) {
  .report-list a { grid-template-columns: 1fr; gap: 6px; }
  .report-list time { grid-row: 1; }
  .header-inner { min-height: 56px; padding-top: 8px; padding-bottom: 8px; }
  .hero { padding: 46px 0 40px; }
  .section { padding: 38px 0; }
}

@media print {
  /* Reports are for on-site viewing. Printing yields the notice, not the pages. */
  .pages, .site-header, .site-footer, .viewer-actions { display: none !important; }
  body::after {
    content: "Reports from " attr(data-site) " are available for viewing on the site only.";
    display: block; padding: 40px; font-size: 14pt;
  }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}

/* ---------- admin: bulk report management ---------- */
.bulk-bar {
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  padding: 12px 0; border-bottom: 2px solid var(--line); margin-top: 8px;
}
.bulk-select { display: inline-flex; align-items: center; gap: 8px; font-size: .9rem; }
.bulk-select input, .table input[type=checkbox] { accent-color: var(--accent); width: 16px; height: 16px; }
.table th.tick, .table td.tick { width: 34px; padding-right: 0; }
.table tbody tr.picked { background: var(--accent-soft); }
.table tbody tr.going { opacity: .35; }
.sr-only {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

/* ---------- report text layer, team pages, about ---------- */
.report-lede { color: var(--ink-mid); max-width: 640px; margin: 8px 0 0; font-size: .95rem; }

.report-text details { border: 2px solid var(--line); background: var(--bg-raised); }
.report-text summary {
  cursor: pointer; padding: 16px 20px; list-style: none;
  display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap;
}
.report-text summary::-webkit-details-marker { display: none; }
.report-text summary::before { content: "+"; font-weight: 900; }
.report-text details[open] summary::before { content: "\2212"; }
.report-text summary:hover { background: var(--accent-soft); }
.report-text .summary-title {
  font-family: var(--display); font-weight: 700; text-transform: uppercase;
  letter-spacing: .06em; font-size: .95rem;
}
.report-text .text-page { padding: 4px 24px 18px; border-top: 1px solid var(--line-soft); }
.report-text .text-page h2 {
  font-size: .8rem; text-transform: uppercase; letter-spacing: .09em;
  color: var(--ink-dim); margin: 18px 0 6px;
}
.report-text .text-page p { max-width: 74ch; line-height: 1.6; margin: 0 0 12px; }

.team-links p { margin: 0; }
.team-chip {
  display: inline-block; margin: 6px 8px 0 0; padding: 8px 14px;
  border: 2px solid var(--line); text-decoration: none; color: var(--ink);
  font-family: var(--display); font-weight: 700; font-size: .85rem;
}
.team-chip:hover { background: var(--accent-soft); border-color: var(--accent); color: var(--ink); }

.team-index {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px;
}
.team-index a {
  display: flex; justify-content: space-between; align-items: center; gap: 10px;
  padding: 14px 16px; border: 2px solid var(--line); text-decoration: none;
  color: var(--ink); background: var(--bg-card);
  transition: background .12s, border-color .12s;
}
.team-index a:hover { background: var(--accent-soft); border-color: var(--accent); }
.team-index .team-name { font-family: var(--display); font-weight: 700; }

.prose { max-width: 74ch; }
.prose h2 { margin-top: 32px; }
.prose p { line-height: 1.65; }
