/* -----------------------------------------------------------------------------
   Self-hosted faces. Both families are named in --font-serif/--font-sans below;
   without these @font-face rules the page silently falls back to Georgia and
   system-ui. Paths are relative so FREEZER_RELATIVE_URLS keeps working when the
   frozen site is served from a subdirectory.

   Charter is free; Lato is OFL. Concourse (what sturdy-static uses for sans) is
   MB Type commercial and can't ship on a public URL — Lato stands in for it.
   sturdy-static also pairs each face with a unicode-range subset; skipped here,
   the ~150 KB it saves is noise next to a 4.5 MB index.html.
------------------------------------------------------------------------------- */

@font-face { font-family:"Bitstream Charter"; font-style:normal; font-weight:400; font-display:swap;
  src:url("fonts/charter/charter_regular-v01.woff2") format("woff2"); }
@font-face { font-family:"Bitstream Charter"; font-style:normal; font-weight:700; font-display:swap;
  src:url("fonts/charter/charter_bold-v01.woff2") format("woff2"); }
@font-face { font-family:"Bitstream Charter"; font-style:italic; font-weight:400; font-display:swap;
  src:url("fonts/charter/charter_italic-v01.woff2") format("woff2"); }
@font-face { font-family:"Bitstream Charter"; font-style:italic; font-weight:700; font-display:swap;
  src:url("fonts/charter/charter_bold_italic-v01.woff2") format("woff2"); }

/* only the weights this stylesheet asks for: 300/400/600/800 */
@font-face { font-family:"Lato Latin"; font-style:normal; font-weight:300; font-display:swap;
  src:url("fonts/lato-latin/LatoLatin-Light.woff2") format("woff2"); }
@font-face { font-family:"Lato Latin"; font-style:normal; font-weight:400; font-display:swap;
  src:url("fonts/lato-latin/LatoLatin-Regular.woff2") format("woff2"); }
@font-face { font-family:"Lato Latin"; font-style:normal; font-weight:600; font-display:swap;
  src:url("fonts/lato-latin/LatoLatin-Semibold.woff2") format("woff2"); }
@font-face { font-family:"Lato Latin"; font-style:normal; font-weight:800; font-display:swap;
  src:url("fonts/lato-latin/LatoLatin-Black.woff2") format("woff2"); }

:root {
  --font-serif: "Bitstream Charter", Georgia, "Times New Roman", Times, serif;
  --font-sans:  "Lato Latin", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-mono:  ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;

  --font-weight-light: 300; --font-weight-regular: 400; --font-weight-medium: 500;
  --font-weight-heavy: 600; --font-weight-bold: 700; --font-weight-black: 800;

  --all-caps-space: .08em; --all-caps-word-space: .12em;
  --line-height-serif: 1.55; --line-height-sans: 1.35;

  --font-size-huge: 28pt; --font-size-large: 15pt; --font-size-normal: 13pt;
  --font-size-small: 11.5pt; --font-size-smaller: 10pt; --font-size-tiny: 9pt;

  --space-1: .25rem; --space-2: .5rem; --space-3: .75rem;
  --space-4: 1rem; --space-5: 1.5rem; --space-6: 2rem; --space-7: 3rem; --space-8: 4rem;

  /* --maxw is the whole report's measure. Nothing inside re-clamps, so the
     excerpt text lands at ~85ch by nesting alone. Tune the page here. */
  --maxw: 56rem; --readw: 68ch;
  --border-radius: 10px; --border-radius-large: 14px;
  --hover-transition: .2s ease-in-out;

  --bg: #fdfbf7;
  --surface: #f8efde;
  --light-surface: #faf4e8;
  --text: #29353d;
  --muted-text: #6d899c;
  --border: #f4e6cd;
  --border-strong: #edd6ab;
  --neutral-border: #b6c4cd;

  --accent: #2e604b;
  --accent-hover: #214535;
  --accent-contrast: #fff;
  --highlight: #5aaf8a;
  --link: #285340;

  --pos: #148f6a; --neu: #64748b; --warn: #b26e2d; --neg: #b5382f;

  --shadow-0: 0 1px 2px rgba(0,0,0,.06);
  --shadow-1: 4px 8px 24px rgba(0,0,0,.10);
  --shadow-2: 8px 16px 32px rgba(0,0,0,.12);

  color-scheme: light;
}

/* -----------------------------------------------------------------------------
   Dark theme. Colors only — every rule below reads through these variables, so
   nothing else needs a dark branch. The .sentence highlight is a color-mix
   against --bg and re-derives itself for free.
------------------------------------------------------------------------------- */

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #14181b;
    --surface: #1c2226;
    --light-surface: #232b30;
    --text: #dfe6e9;
    --muted-text: #93a7b3;
    --border: #2a3339;
    --border-strong: #3a464d;
    --neutral-border: #46545c;

    --accent: #6fbf98;
    --accent-hover: #8fd3b0;
    --accent-contrast: #10201a;
    --highlight: #5aaf8a;
    --link: #86cfab;

    /* lifted off the light values, which go muddy against a dark ground */
    --pos: #3fbf8f; --neu: #94a3b8; --warn: #d99a4e; --neg: #e0655a;

    --shadow-0: 0 1px 2px rgba(0,0,0,.5);
    --shadow-1: 4px 8px 24px rgba(0,0,0,.45);
    --shadow-2: 8px 16px 32px rgba(0,0,0,.55);

    color-scheme: dark;
  }

  /* subpixel rendering fattens light-on-dark text; Charter needs the grayscale path */
  body { -webkit-font-smoothing: antialiased; }
}

*, *::before, *::after { box-sizing: border-box; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--font-serif);
  font-size: var(--font-size-normal); line-height: var(--line-height-serif);
  text-rendering: optimizeLegibility; -webkit-font-smoothing: subpixel-antialiased;
}
a { color: var(--link); }

/* Match the white ground of the cost explorer on the home and About pages. */
body.site-page { background: #fdfbf7; }
@media (prefers-color-scheme: dark) {
  body.site-page { background: var(--bg); }
}

.site-nav {
  max-width: var(--maxw); margin: 0 auto; padding: var(--space-4) var(--space-5);
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--space-4); border-bottom: 1px solid var(--border);
  font-family: var(--font-sans); font-size: var(--font-size-smaller);
}
.site-nav a { text-decoration: none; }
.site-nav__brand { color: var(--text); font-weight: var(--font-weight-heavy); }
.site-nav__brand span { color: var(--accent); }
.site-nav__links { display: flex; gap: var(--space-4); }
.site-nav__links a { color: var(--muted-text); }
.site-nav a[aria-current="page"] { color: var(--accent); font-weight: var(--font-weight-heavy); }

.home { max-width: var(--maxw); margin: 0 auto; padding: var(--space-8) var(--space-5); }
.home__header { max-width: var(--readw); margin-bottom: var(--space-7); }
.home__kicker {
  margin: 0 0 var(--space-2); color: var(--muted-text);
  font-family: var(--font-sans); font-size: var(--font-size-tiny);
}
.home__header h1 {
  margin: 0 0 var(--space-4); font-family: var(--font-sans);
  font-size: var(--font-size-huge); font-weight: var(--font-weight-light);
  line-height: 1.15;
}
.home__header p { margin: 0; color: var(--muted-text); font-size: var(--font-size-large); }
.report-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-5); }
.report-link { display: block; color: var(--text); text-decoration: none; transition: transform var(--hover-transition), border-color var(--hover-transition); }
.report-link:hover { transform: translateY(-2px); border-color: var(--border-strong); }
.report-link:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.report-link__date { color: var(--muted-text); font-family: var(--font-sans); font-size: var(--font-size-tiny); }
.report-link h2 { margin: var(--space-2) 0; font-family: var(--font-sans); font-size: var(--font-size-large); }
.report-link p { margin: 0 0 var(--space-5); color: var(--muted-text); }
.report-link__action { color: var(--link); font-family: var(--font-sans); font-weight: var(--font-weight-heavy); }

@media (max-width: 42rem) {
  .site-nav { align-items: flex-start; }
  .site-nav__links { flex-direction: column; gap: var(--space-1); text-align: right; }
  .home { padding-top: var(--space-7); }
  .report-list { grid-template-columns: 1fr; }
}

.site-footer {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-2) var(--space-4);
  padding: var(--space-5) 0;
  border-top: 1px solid var(--border);
  color: var(--muted-text);
  font-family: var(--font-sans);
  font-size: var(--font-size-tiny);
}
.site-footer a { color: var(--link); }
.site-footer__brand { text-decoration: none; }
.site-footer__brand:hover,
.site-footer__brand:focus-visible {
  text-decoration: underline;
  text-decoration-color: color-mix(in srgb, var(--link) 70%, transparent);
  text-underline-offset: .2em;
}

.about {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: var(--space-7) var(--space-5) var(--space-5);
}
.about__header {
  max-width: var(--readw);
  margin-bottom: var(--space-7);
}
.about__header h1 {
  font-size: clamp(2.3rem, 4.5vw, 3.35rem);
  line-height: 1.1;
  letter-spacing: -.025em;
  margin: 0 0 var(--space-4);
}
.about__header > p:last-child {
  font-size: 1.1rem;
  line-height: 1.55;
}
.about__section {
  border-top: 1px solid var(--border);
  padding: var(--space-5) 0;
  max-width: var(--readw);
}
.about__section h2 {
  font-size: 1.55rem;
  line-height: 1.2;
  margin: 0 0 var(--space-3);
}
.about__section p { margin: 0 0 var(--space-3); }
.about__section p:last-child { margin-bottom: 0; }

.spaced-all-caps {
  text-transform: uppercase; letter-spacing: var(--all-caps-space);
  word-spacing: var(--all-caps-word-space); font-weight: var(--font-weight-bold);
}

.report { max-width: var(--maxw); margin: 0 auto; padding: var(--space-6) var(--space-5); }
.topics { display: flex; flex-direction: column; gap: var(--space-4); }

.card {
  background: var(--surface); border: 1.5px solid var(--border);
  border-radius: var(--border-radius-large); box-shadow: var(--shadow-1);
  padding: var(--space-5);
}

/* Title block is centered — kicker, question, dateline — but the prose below it
   is not: the paragraph and the takeaway center as *blocks* and set flush left
   inside, so nothing longer than a line has to be read off a ragged center. */
.report__header { margin-bottom: var(--space-6); text-align: center; }
.report__kicker { font-size: var(--font-size-tiny); color: var(--muted-text); margin-bottom: var(--space-2); }
.report__title { font-family: var(--font-sans); font-weight: var(--font-weight-light); font-size: var(--font-size-huge); margin: 0 0 var(--space-3); }
.report__subtitle {
  max-width: var(--readw); margin: 0 auto var(--space-5);
  font-family: var(--font-sans); font-size: var(--font-size-smaller);
  letter-spacing: var(--all-caps-space); text-transform: uppercase;
  color: var(--muted-text);
}

.topic-card { padding: 0; overflow: hidden; border-left: 4px solid var(--accent); }

.topic-card__summary {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--space-4);
  padding: var(--space-4) var(--space-5);
  cursor: pointer; list-style: none; user-select: none;
  transition: background var(--hover-transition);
}
.topic-card__summary::-webkit-details-marker { display: none; }
.topic-card__summary:hover { background: var(--light-surface); }
.topic-card__summary:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }

.topic-card__heading { display: flex; flex-direction: column; gap: var(--space-1); }
.topic-card__label { font-family: var(--font-sans); font-weight: var(--font-weight-heavy); font-size: var(--font-size-large); margin: 0; }

.topic-card__count { margin-left: auto; display: flex; align-items: baseline; gap: var(--space-2); font-family: var(--font-sans); }
.topic-card__count-value { font-weight: var(--font-weight-black); font-size: var(--font-size-large); color: var(--accent); }
.topic-card__count-label { font-size: var(--font-size-tiny); color: var(--muted-text); }

.topic-card__toggle {
  flex: none; width: 0; height: 0;
  border-left: 7px solid var(--muted-text);
  border-top: 5px solid transparent; border-bottom: 5px solid transparent;
  transition: transform var(--hover-transition); transform: translateY(2px);
}
.topic-card[open] .topic-card__toggle { transform: rotate(90deg) translateX(2px); }

.topic-card__body {
  padding: var(--space-4) var(--space-5) var(--space-5);
  border-top: 1.5px solid var(--border);
}

.excerpts__title { font-size: var(--font-size-tiny); color: var(--muted-text); margin: 0 0 var(--space-3); }
.excerpts__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--space-2); }

/* No max-width anywhere in here on purpose: --maxw on .report is the single knob
   that sets the measure, and every box nests inside it. Clamping the excerpt or
   its text as well would leave a bordered edge floating away from the prose. */
.excerpt {
  padding: var(--space-4) var(--space-5); border-radius: var(--border-radius);
  background: var(--bg); border: 1.5px solid var(--border);
  font-size: var(--font-size-normal);
}
/* Excerpts are the reading surface, so they get full body size — the Lato/Charter
   family contrast against the card chrome carries the hierarchy instead. */
.excerpt__text { max-width: none; }
.excerpt__text p { margin: 0; text-indent: 0; }
.excerpt__text p + p { margin-top: var(--space-3); }
.excerpt__meta {
  margin-bottom: var(--space-3);
  padding-bottom: var(--space-2); border-bottom: 1px solid var(--border);
}
/* The subject is the excerpt's headline — it's what makes a wall of quoted
   comments skimmable, so it gets weight and --text rather than --muted-text. */
.excerpt__subject {
  font-family: var(--font-sans); font-weight: var(--font-weight-heavy);
  font-size: var(--font-size-large); line-height: 1.25;
  color: var(--text); margin: 0 0 var(--space-1);
}
.excerpt__sub {
  display: flex; align-items: baseline; flex-wrap: wrap; gap: var(--space-3);
  font-family: var(--font-sans); font-size: var(--font-size-smaller);
  color: var(--muted-text);
}
.excerpt__link {
  margin-left: auto; color: var(--link); text-decoration: none;
  font-weight: var(--font-weight-medium);
  border: 1px solid var(--border-strong); border-radius: 999px;
  padding: 1px var(--space-3); background: var(--light-surface);
  transition: background var(--hover-transition), color var(--hover-transition);
}
.excerpt__link:hover { color: var(--accent-contrast); background: var(--accent); border-color: var(--accent); }
.excerpt__link:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* An excerpt list runs long enough that the topic's header scrolls away; this
   is the way back to it without hunting for the scrollbar. A plain in-page
   #topic-N link, so it works with no JS and is middle-clickable; smooth is a
   scroll-behavior on <html>, not a scrollIntoView call. Sits after the page
   link, so both sit flush right whether or not the link is there. */
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

.excerpt__up {
  margin-left: auto; text-decoration: none;
  font-family: var(--font-sans); font-size: var(--font-size-smaller);
  line-height: 1; color: var(--muted-text);
  border: 1px solid var(--border-strong); border-radius: 999px;
  padding: 2px var(--space-2); background: var(--light-surface);
  transition: background var(--hover-transition), color var(--hover-transition);
}
.excerpt__link + .excerpt__up { margin-left: 0; }
.excerpt__up:hover { color: var(--accent-contrast); background: var(--accent); border-color: var(--accent); }
.excerpt__up:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.gap { margin: var(--space-3) 0; }
.gap__toggle {
  cursor: pointer; list-style: none; display: inline-block;
  font-family: var(--font-sans); font-size: var(--font-size-tiny);
  color: var(--muted-text); background: var(--light-surface);
  border: 1px solid var(--border); border-radius: 999px;
  padding: 1px var(--space-2);
}
.gap__toggle::-webkit-details-marker { display: none; }
.gap__toggle:hover { color: var(--link); border-color: var(--border-strong); }
.gap[open] .gap__toggle { margin-bottom: var(--space-3); }
.gap p { margin: 0 0 var(--space-3); color: var(--muted-text); }
.gap p:last-child { margin-bottom: 0; }

.more { margin-top: var(--space-3); }
.more__toggle {
  cursor: pointer; list-style: none; display: inline-block;
  font-family: var(--font-sans); font-size: var(--font-size-smaller);
  color: var(--link); border-bottom: 1px dotted var(--link);
}
.more__toggle::-webkit-details-marker { display: none; }
.more__toggle:hover { color: var(--accent-hover); }
.more[open] .more__toggle { margin-bottom: var(--space-3); }
.more[open] .more__toggle::after { content: " (hide)"; color: var(--muted-text); }

.sentence[data-matched="true"] {
  background: color-mix(in srgb, var(--warn) 18%, var(--bg));
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--warn) 30%, transparent);
  border-radius: 3px; padding: 0 2px;
}

/* -----------------------------------------------------------------------------
   Stance (metric_field). Two poles plus a neutral, used by the bar on each
   topic card and by the sunburst's inner ring. The report body overrides these
   defaults from config.metric.colors, keeping the chart and UI in sync.
------------------------------------------------------------------------------- */

:root {
  --stance-1: #a8443c;   /* open to cars */
  --stance-0: #3f6f9f;   /* keep car-free */
  --stance--1: var(--neutral-border);
}

@media (prefers-color-scheme: dark) {
  :root { --stance-1: #d2726a; --stance-0: #6f9fc9; }
}

/* Its own row at the foot of the summary, so the split is readable on a closed
   card — the point is not having to open the topic to see it. */
.stance__bar {
  flex: 0 0 100%; display: flex; height: 6px; border-radius: 3px;
  overflow: hidden; background: var(--border);
}
.stance__fill[data-stance="1"]  { background: var(--stance-1); }
.stance__fill[data-stance="0"]  { background: var(--stance-0); }
.stance__fill[data-stance="-1"] { background: var(--stance--1); }

/* The filter pills and the copy-link control share one row: the link is a
   per-topic affordance like the filter is, and putting it here keeps it out of
   the collapsed card, where 42 of them were just noise. */
.stance {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--space-4); margin-bottom: var(--space-5);
}
/* No stance data (an unlabeled hearing) — the link still needs its row. */
.stance--empty { justify-content: flex-end; }

/* Segmented control: exactly one selection, "All" being the unfiltered state. */
.stance__seg {
  display: inline-flex; border: 1px solid var(--border-strong);
  border-radius: 999px; padding: 2px; background: var(--bg);
}
.stance__opt {
  display: inline-flex; align-items: center; gap: var(--space-2);
  font-family: var(--font-sans); font-size: var(--font-size-tiny);
  color: var(--muted-text); background: none; border: 0; border-radius: 999px;
  padding: var(--space-1) var(--space-3); cursor: pointer; white-space: nowrap;
  transition: background var(--hover-transition), color var(--hover-transition);
}
.stance__opt:hover { color: var(--text); }
.stance__opt[aria-checked="true"] {
  background: var(--light-surface); color: var(--text); box-shadow: var(--shadow-0);
}
.stance__n { font-weight: var(--font-weight-black); color: inherit; }

.stance__swatch { width: 8px; height: 8px; border-radius: 2px; flex: none; }
.stance__swatch[data-stance="1"]  { background: var(--stance-1); }
.stance__swatch[data-stance="0"]  { background: var(--stance-0); }
.stance__swatch[data-stance="-1"] { background: var(--stance--1); }

.excerpt[hidden], .more[hidden] { display: none; }

.overview { margin: var(--space-5) 0 0; padding: 0; }
.overview__chart { width: 100%; min-height: 460px; }
/* A figure note, not a label: it has to carry the reading of the chart on its
   own, so it gets the serif measure and real leading rather than caption-sized
   sans. The lede is the hearing's question; the stance words are keyed to the
   same colors as the inner ring.

   It sits ABOVE the chart (source order in report.html) — with the question now
   the page's <h1>, this paragraph reads as the header's lede and the figure
   follows it, so it's flush left with the title rather than centered on the
   chart's axis. */
.overview__caption {
  max-width: var(--readw); margin: 0 auto var(--space-5);
  text-align: left; text-wrap: pretty;
  font-family: var(--font-serif); font-size: var(--font-size-small);
  line-height: var(--line-height-serif); color: var(--muted-text);
}
.overview__key { font-weight: var(--font-weight-bold); }
.overview__key[data-stance="1"]  { color: var(--stance-1); }
.overview__key[data-stance="0"]  { color: var(--stance-0); }
.overview__key[data-stance="-1"] { color: var(--stance--1); }
/* The invitation, not a footnote — it's the one line that tells a reader the
   chart is a thing to touch. Borrowed from p.takeaway in the Sturdy Stats blog
   (static/css/writeup.css): 120% size, tinted panel, accent rule down the left,
   narrow measure, centered in its own air. Tokens here, hardcoded colors there. */
.overview__explore {
  display: block; max-width: 34rem; margin: var(--space-5) auto 0;
  padding: var(--space-4); background: var(--light-surface);
  border-left: 5px solid var(--accent); border-radius: var(--border-radius);
  font-family: var(--font-serif); font-size: 120%;
  line-height: var(--line-height-serif); color: var(--text);
}
/* Prose links, lifted from sturdy-static's css/links.css: a highlight that
   wipes in left-to-right on hover instead of an underline. Same gradient trick
   and the same --link token, so this report reads as part of that family. The
   pill-shaped links (.excerpt__link, .excerpt__up) keep their own treatment. */
.overview__explore a, .report__subtitle a {
  position: relative; color: var(--link); text-decoration: none;
  border-radius: var(--space-1); padding: 0 .12em;
  transition: var(--hover-transition);
  background-image: linear-gradient(transparent 60%, color-mix(in srgb, var(--link) 25%, transparent) 0);
  background-size: 0% 100%; background-repeat: no-repeat;
}
.overview__explore a:hover, .overview__explore a:focus-visible,
.report__subtitle a:hover, .report__subtitle a:focus-visible {
  background-size: 100% 100%; outline: 0;
}
.overview__explore a:focus-visible, .report__subtitle a:focus-visible {
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--link) 35%, transparent);
}

/* The card a sunburst wedge sent you to, so the jump has a visible landing. */
.topic-card.is-target { box-shadow: 0 0 0 2px var(--border-strong); }

/* Per-comment stance: a filled pill, plus the same color on the excerpt's edge.
   The pill names the stance so color is never the only channel. */
.pill {
  display: inline-flex; align-items: center;
  padding: 1px var(--space-3) 2px; border-radius: 999px;
  font-family: var(--font-sans); font-size: var(--font-size-tiny);
  font-weight: var(--font-weight-heavy); letter-spacing: .01em;
  color: #fff; white-space: nowrap;
}
.pill[data-stance="1"]  { background: var(--stance-1); }
.pill[data-stance="0"]  { background: var(--stance-0); }
.pill[data-stance="-1"] { background: var(--stance--1); }
.template-pill, .action-pill {
  display: inline-flex; align-items: center;
  padding: 1px var(--space-3) 2px; border-radius: 999px;
  font-family: var(--font-sans); font-size: var(--font-size-tiny);
  font-weight: var(--font-weight-heavy); letter-spacing: .01em;
  color: var(--ink-muted); background: var(--surface-raised);
  border: 1px solid var(--border);
  white-space: nowrap;
}
.excerpt[data-stance="1"]  { border-left: 3px solid var(--stance-1); }
.excerpt[data-stance="0"]  { border-left: 3px solid var(--stance-0); }
.excerpt[data-stance="-1"] { border-left: 3px solid var(--stance--1); }

/* Copy-link buttons. Same pill as .excerpt__up so the row reads as one control
   group, but a <button>: there is no URL to middle-click, the href would be the
   page it is already on. Feedback is a data-copied label swapped in by JS —
   without it a click on a copy button looks like nothing happened. */
.copy {
  flex: none; cursor: pointer; font-family: var(--font-sans);
  display: inline-flex; align-items: center; gap: var(--space-1);
  text-decoration: none;
  font-size: var(--font-size-smaller); line-height: 1;
  color: var(--muted-text); background: var(--light-surface);
  border: 1px solid var(--border-strong); border-radius: 999px;
  padding: 2px var(--space-2);
  transition: background var(--hover-transition), color var(--hover-transition);
}
.copy:hover { color: var(--accent-contrast); background: var(--accent); border-color: var(--accent); }
.copy:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.copy[data-copied] {
  color: var(--accent-contrast); background: var(--accent); border-color: var(--accent);
}
.copy[data-copied]::after {
  content: " " attr(data-copied); font-size: var(--font-size-tiny);
}

/* .excerpt__up already claims margin-left:auto to sit flush right; the copy
   button follows it in the same cluster rather than starting a new one. */
.excerpt__copy { margin-left: 0; }
.excerpt__sub > .excerpt__copy:first-of-type { margin-left: auto; }

/* Icon only — the pills next to it already carry the row's text. */
.topic-card__copy { flex: none; padding: var(--space-1) var(--space-2); }

/* A linked-to excerpt gets the same ring the sunburst gives a linked-to card. */
.excerpt.is-target {
  box-shadow: 0 0 0 2px var(--border-strong); border-radius: var(--space-1);
}

/* Sized in ems so the icon tracks the pill's font-size, and stroked in
   currentColor so hover inverts it along with the border and text. */
.copy__icon { width: 1em; height: 1em; display: block; }
.copy:hover .copy__icon { color: inherit; }

/* Excerpt carousel. The list renders whole and only collapses to one-at-a-time
   once JS marks it ready, so with JS off the page is the old full list rather
   than a single excerpt with no way to reach the others. */
.excerpts__list[data-carousel] .excerpt:not(.is-active) { display: none; }

.excerpt-nav {
  display: grid; grid-template-columns: 1fr auto 1fr;
  align-items: center; gap: var(--space-3); margin-bottom: var(--space-4);
}
.excerpt-nav__btn {
  width: max-content; text-decoration: none;
  font-family: var(--font-sans); font-size: var(--font-size-smaller);
  font-weight: var(--font-weight-medium); line-height: 1;
  color: var(--link); background: var(--light-surface);
  border: 1px solid var(--border-strong); border-radius: 999px;
  padding: var(--space-2) var(--space-4);
  transition: background var(--hover-transition), color var(--hover-transition);
}
.excerpt-nav__btn:hover { color: var(--accent-contrast); background: var(--accent); border-color: var(--accent); }
.excerpt-nav__btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.excerpt-nav__btn[data-direction="next"] { justify-self: end; }
/* Hidden, not removed: the grid keeps its three columns so the position readout
   stays centered at either end of the run. */
.excerpt-nav__btn[aria-disabled="true"] { visibility: hidden; pointer-events: none; }
.excerpt-nav__pos {
  font-family: var(--font-sans); font-size: var(--font-size-tiny);
  color: var(--muted-text); letter-spacing: var(--all-caps-space);
}

/* Paging through excerpts, the card jumps as each one sets its own height —
   8 words to 3950, median 222. A floor stops the short ones from collapsing the
   card to a sliver between clicks, while long ones still grow and the page
   scrolls, so the length of a comment stays visible information.

   ~18em is a little under the median (roughly p35): high enough to catch the
   jitter, low enough that most excerpts fill it rather than sit in whitespace.
   No max — a cap here would mean a nested scroll region inside the card. */
.excerpts__list[data-carousel] .excerpt__text { min-height: 18em; }

/* Home index: the reports are a reading list, not a card gallery. */
.home {
  max-width: var(--maxw);
  padding-top: var(--space-7);
}
.home__header {
  max-width: var(--readw);
  margin-bottom: var(--space-7);
}
.home__header--compact { margin-bottom: var(--space-4); }
.home__header h1 {
  font-family: var(--font-serif);
  font-size: clamp(2.3rem, 4.5vw, 3.35rem);
  font-weight: var(--font-weight-bold);
  line-height: 1.1;
  letter-spacing: -.025em;
  margin-bottom: var(--space-4);
}
.home__header p {
  color: var(--text);
  font-family: var(--font-serif);
  font-size: 1.1rem;
  line-height: 1.55;
}
.home-section {
  border-top: 1px solid var(--neutral-border);
  padding: var(--space-6) 0 var(--space-7);
}
.home-section__heading {
  margin-bottom: var(--space-5);
}
.home-section__heading h1,
.home-section__heading h2 {
  font-family: var(--font-serif);
  font-size: clamp(1.65rem, 3vw, 2rem);
  line-height: 1.2;
  margin: 0 0 var(--space-2);
}
.home-section__heading p {
  color: var(--muted-text);
  font-size: 1rem;
  margin: 0;
}
.home-index {
  border-bottom: 1px solid var(--border);
}
.home-index__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(10rem, 13rem) 1rem;
  align-items: start;
  gap: var(--space-4);
  padding: var(--space-4) var(--space-2);
  border-top: 1px solid var(--border);
  color: var(--text);
  text-decoration: none;
}
.home-index__row:hover {
  background: color-mix(in srgb, var(--accent) 5%, var(--bg));
}
.home-index__row:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: -2px;
}
.home-index__main {
  display: grid;
  gap: var(--space-1);
  min-width: 0;
}
.home-index__main strong {
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: var(--font-weight-heavy);
  line-height: 1.35;
}
.home-index__main span {
  color: var(--muted-text);
  font-size: .94rem;
  line-height: 1.45;
}
.home-index__meta {
  color: var(--muted-text);
  font-family: var(--font-sans);
  font-size: .76rem;
  line-height: 1.5;
}
.home-index__arrow {
  color: var(--accent);
  font-family: var(--font-sans);
  font-size: 1.05rem;
  line-height: 1.2;
  text-align: right;
}
@media (max-width: 42rem) {
  .home-index__row {
    grid-template-columns: minmax(0, 1fr) 1rem;
    gap: var(--space-2);
  }
  .home-index__meta {
    grid-column: 1;
    grid-row: 2;
  }
  .home-index__arrow {
    grid-column: 2;
    grid-row: 1;
  }
}
