/* FERC Large Load Show Cause Orders — public-record identity.
   System fonts only. Flat surfaces, hairline rules, one navy masthead, one accent, one deadline hue. */

:root {
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, "Helvetica Neue", Arial, sans-serif;
  --font-serif: "Charter", "Source Serif 4", "Iowan Old Style", "Palatino", "Georgia", "Times New Roman", serif;
  --font-mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;

  --bg: #f4f1ea;          /* warm paper */
  --surface: #ffffff;
  --surface-2: #efeadf;
  --masthead: #0b2545;    /* FERC navy */
  --masthead-2: #102f56;
  --ink: #15212e;
  --text-muted: #51606e;
  --rule: #d9d2c4;
  --rule-strong: #b9b09c;

  --accent: #1a4480;      /* federal blue */
  --accent-ink: #12325f;
  --deadline: #9a3412;    /* burnt amber — 30/60-day clocks only */
  --deadline-bg: #fbeee6;

  /* semantic: justify/reform status */
  --status-justify: #2563a8;
  --status-reform: #7a5a12;

  /* stance (reception) */
  --stance-positive: #2f6b3a;
  --stance-mixed: #7b6016;
  --stance-negative: #9a3412;

  /* provenance tiers */
  --tier-ferc: #0b2545;
  --tier-doe: #5b3a8a;
  --tier-analysis: #1a4480;
  --tier-order: #6b7280;

  --maxw: 1180px;
  font-feature-settings: "tnum" 1;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }
/* screen-reader-only text: keeps the meaning of glyphs/lossy visuals available to assistive tech */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

html { -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
main, .panel, p, dd, li, h1, h2, h3, h4 { min-width: 0; overflow-wrap: anywhere; }

.wrap { max-width: var(--maxw); margin-inline: auto; padding-inline: 20px; min-width: 0; }

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

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

.skip-link {
  position: absolute; left: 8px; top: -48px; z-index: 50;
  background: var(--masthead); color: #fff; padding: 10px 16px; border-radius: 0 0 6px 6px;
  text-decoration: none; transition: top 120ms ease;
}
.skip-link:focus { top: 0; color: #fff; }

.mono { font-family: var(--font-mono); font-variant-ligatures: none; }
.eyebrow, .label {
  text-transform: uppercase; letter-spacing: 0.1em; font-size: 11px; font-weight: 700;
  color: var(--text-muted);
}

/* ---------------------------------------------------------------- masthead */
.masthead {
  background: linear-gradient(180deg, var(--masthead) 0%, var(--masthead-2) 100%);
  color: #eaf0f7;
  border-bottom: 3px solid var(--accent);
  box-shadow: inset 0 -1px 0 rgba(255,255,255,0.08);
}
.masthead-inner {
  display: grid; grid-template-columns: 1fr; gap: 9px; align-items: start;
  padding-block: 13px 15px;
}
.masthead .eyebrow { color: #9db4d0; font-size: 12px; }
.masthead-text { min-width: 0; }
.masthead .eyebrow, .masthead h1, .masthead-sub, .masthead-fresh { overflow-wrap: anywhere; }
.masthead h1 {
  font-family: var(--font-serif); font-weight: 700; font-size: clamp(22px, 3.6vw, 32px);
  line-height: 1.05; color: #fff; margin-top: 1px;
}
.masthead-sub { color: #cdd9e8; font-size: clamp(13px, 1.8vw, 15px); margin-top: 5px; max-width: 70ch; }
.masthead-fresh { color: #9db4d0; font-size: 12px; margin-top: 7px; }
.masthead-fresh .mono { color: #cdd9e8; }

/* ------------------------------------------------- Overview: stats + at-a-glance */
.kpis {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px;
  background: var(--rule); border: 1px solid var(--rule);
  margin: 18px 0 22px;
}
.kpi { background: var(--surface); padding: 14px 16px; }
.kpi .v { font-family: var(--font-serif); font-size: clamp(22px, 4vw, 30px); font-weight: 700; line-height: 1; color: var(--masthead); }
.kpi.deadline .v { color: var(--deadline); }
.kpi .l { text-transform: uppercase; letter-spacing: 0.07em; font-size: 10.5px; font-weight: 700; color: var(--ink); margin-top: 7px; }
.kpi .s { font-size: 12px; color: var(--text-muted); margin-top: 3px; line-height: 1.35; }
@media (min-width: 700px) { .kpis { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1000px) { .kpis { grid-template-columns: repeat(6, 1fr); } }
@media (max-width: 480px) { .kpis { grid-template-columns: 1fr; } }

.overview-bg { max-width: 74ch; }
.overview-bg p { font-size: 15.5px; color: var(--ink); margin-bottom: 9px; }

/* procedural clock: the §206 timeline, status computed against today */
.proc-board { list-style: none; display: grid; gap: 8px; margin: 4px 0 10px; padding: 0; }
.proc-step { display: grid; grid-template-columns: 140px 1fr; gap: 12px; background: var(--surface); border: 1px solid var(--rule); border-left: 3px solid var(--rule-strong); border-radius: 0 6px 6px 0; padding: 10px 14px; }
.proc-step.next { border-left-color: var(--deadline); background: var(--deadline-bg); }
.proc-step.past { opacity: 0.62; }
.proc-when { display: flex; flex-direction: column; gap: 4px; align-items: flex-start; }
.proc-date { font-size: 13px; font-weight: 700; color: var(--masthead); }
.proc-badge { font-size: 9.5px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; border-radius: 3px; padding: 1px 7px; }
.proc-badge.next { color: #fff; background: var(--deadline); }
.proc-badge.upcoming { color: var(--accent-ink); background: #e9f0f8; }
.proc-badge.past { color: var(--text-muted); background: var(--surface-2); }
.proc-badge.pending { color: #5a4a1a; background: #f6efdb; }
.proc-headline { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
.proc-label { font-weight: 700; font-size: 14px; color: var(--ink); }
.proc-period { font-size: 10.5px; color: var(--text-muted); }
.proc-desc { font-size: 12.5px; color: #2b3744; line-height: 1.45; margin-top: 3px; }
.proc-note { font-size: 10.5px; color: var(--text-muted); margin-top: 3px; }
.proc-foot { font-size: 11.5px; color: var(--text-secondary); margin: 2px 0 4px; max-width: 74ch; line-height: 1.5; }
@media (max-width: 560px) { .proc-step { grid-template-columns: 1fr; gap: 5px; } .proc-when { flex-direction: row; align-items: center; gap: 8px; } }
/* masthead next-deadline chip */
.mh-derived { color: #9db4d0; font-weight: 400; }
.glance {
  display: grid; grid-template-columns: 1fr; gap: 1px;
  background: var(--rule); border: 1px solid var(--rule); margin-top: 4px;
}
.glance > div { background: var(--surface); padding: 9px 14px; display: flex; flex-direction: column; gap: 2px; }
.glance dt { text-transform: uppercase; letter-spacing: 0.08em; font-size: 10px; font-weight: 700; color: var(--text-muted); }
.glance dd { font-size: 14px; color: var(--ink); }
@media (min-width: 760px) { .glance { grid-template-columns: repeat(2, 1fr); } .glance > div:last-child { grid-column: 1 / -1; } }

/* ---------------------------------------------------------------- tabs */
.tabs {
  display: flex; gap: 4px; margin-top: 14px;
  border-bottom: 2px solid var(--rule-strong);
  position: sticky; top: 0; z-index: 30; background: var(--bg);
  overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none;
}
.tabs::-webkit-scrollbar { display: none; }
.tab {
  appearance: none; border: 1px solid transparent; border-bottom: none; background: transparent;
  font-family: var(--font-sans); font-size: clamp(14px, 2.2vw, 16px); font-weight: 600; color: var(--text-muted);
  padding: 11px 15px; cursor: pointer; border-radius: 6px 6px 0 0;
  display: inline-flex; align-items: baseline; gap: 7px; position: relative; bottom: -2px;
  min-height: 44px; white-space: nowrap; flex: 0 0 auto;
}
.tab:hover { color: var(--ink); background: var(--surface-2); }
.tab .tab-no { font-family: var(--font-mono); font-size: 11px; color: var(--accent); font-weight: 700; }
.tab .tab-aside { font-family: var(--font-mono); font-size: 11px; color: var(--text-muted); }
.tab[aria-selected="true"] {
  color: var(--masthead); background: var(--surface);
  border-color: var(--rule-strong); border-bottom: 2px solid var(--surface);
}
.tab[aria-selected="true"]::after {
  content: ""; position: absolute; left: 0; right: 0; top: -2px; height: 3px; background: var(--accent);
  border-radius: 3px 3px 0 0;
}

/* ---------------------------------------------------------------- panels */
.panel { padding-top: 26px; padding-bottom: 8px; animation: fade 200ms ease; }
@keyframes fade { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

.section-head { margin: 30px 0 14px; }
.panel > .section-head:first-child { margin-top: 4px; }
.section-head h2 { font-family: var(--font-serif); font-size: clamp(20px, 3.4vw, 27px); font-weight: 700; color: var(--masthead); letter-spacing: -0.01em; }
.section-head .lede { color: var(--text-muted); font-size: 15px; margin-top: 6px; max-width: 72ch; }

/* Collapsible section (long flat tabs fold to cut scrolling) */
/* Author display rules on the body (e.g. .discourse{display:grid}) outrank the UA details-collapse,
   so close it explicitly — this selector is specific enough to win over those display declarations. */
details.acc:not([open]) > :not(summary) { display: none; }
details.acc { border-top: 1px solid var(--rule); margin-top: 18px; }
details.acc:first-child { border-top: none; margin-top: 4px; }
.acc-sum { cursor: pointer; list-style: none; display: flex; align-items: baseline; gap: 10px; padding: 18px 0 6px; }
.acc-sum::-webkit-details-marker { display: none; }
.acc-sum:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 3px; }
.acc-h2 { margin: 0; font-family: var(--font-serif); font-size: clamp(19px, 3vw, 25px); font-weight: 700; color: var(--masthead); letter-spacing: -0.01em; line-height: 1.15; }
.acc-count { flex: none; font-size: 12px; color: var(--text-muted); align-self: center; }
.acc-chev { flex: none; margin-left: auto; color: var(--accent); font-size: 20px; line-height: 1; transition: transform 0.15s ease; align-self: center; }
details.acc[open] .acc-chev { transform: rotate(90deg); }
.acc-lede { color: var(--text-muted); font-size: 15px; margin: 0 0 14px; max-width: 72ch; }

/* timeline */
.timeline { border-left: 2px solid var(--rule-strong); margin-left: 6px; }
.tl-item { position: relative; padding: 0 0 22px 26px; }
.tl-item::before {
  content: ""; position: absolute; left: -7px; top: 4px; width: 12px; height: 12px; border-radius: 999px;
  background: var(--surface); border: 2px solid var(--accent);
}
.tl-item.doe::before { border-color: var(--tier-doe); }
.tl-item.deadline::before { border-color: var(--deadline); background: var(--deadline); }
.tl-item.ferc::before { background: var(--accent); }
.tl-date { font-family: var(--font-mono); font-size: 12px; font-weight: 600; color: var(--accent-ink); }
.tl-item.deadline .tl-date { color: var(--deadline); }
.tl-title { font-weight: 700; font-size: 16px; margin: 2px 0 5px; color: var(--ink); }
.tl-body { font-size: 14.5px; color: #2b3744; max-width: 78ch; }
.kindpill {
  display: inline-block; font-family: var(--font-mono); font-size: 10px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.06em; padding: 1px 7px; border-radius: 999px; margin-left: 8px; vertical-align: 1px;
  border: 1px solid currentColor;
}
.kindpill.doe { color: var(--tier-doe); }
.kindpill.ferc { color: var(--accent); }
.kindpill.deadline { color: var(--deadline); background: var(--deadline-bg); }
.kindpill.milestone { color: var(--text-muted); }

/* Standalone per-docket pages (tools/build-docket-pages.mjs). Static HTML, no app JS, so they style
   from scratch off the shared tokens rather than reusing the accordion's classes. */
.dk-page { padding-bottom: 40px; }
.dk-nav { font-size: 12.5px; color: var(--text-muted); margin: 16px 0 18px; }
.dk-nav a { color: var(--accent-ink); }
.dk-facts { display: grid; gap: 10px 22px; margin: 0 0 16px; padding: 12px 14px; border: 1px solid var(--rule); border-radius: 10px; background: var(--surface); }
@media (min-width: 640px) { .dk-facts { grid-template-columns: repeat(3, 1fr); } }
.dk-facts dt { font-family: var(--font-mono); font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-muted); }
.dk-facts dd { margin: 2px 0 0; font-size: 14px; color: var(--ink); }
.dk-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin: 0 0 22px; font-size: 13.5px; }
.dk-cta { display: inline-block; background: var(--accent); color: #fff; padding: 8px 14px; border-radius: 8px; text-decoration: none; font-weight: 600; }
.dk-cta:hover { text-decoration: underline; }
.dk-page h2 { font-size: 17px; margin: 26px 0 8px; }
.dk-page > p { font-size: 14.5px; color: #2b3744; max-width: 78ch; }
.dk-list { max-width: 78ch; padding-left: 20px; }
.dk-list li { font-size: 14px; color: #2b3744; margin-bottom: 9px; }
.dk-quotes { max-width: 82ch; padding-left: 20px; }
.dk-quotes li { margin-bottom: 16px; }
.dk-topic { font-weight: 700; font-size: 14px; margin: 0 0 4px; color: var(--ink); }
.dk-cite { font-size: 11px; color: var(--text-muted); font-weight: 400; }
.dk-quotes blockquote, .dk-list blockquote {
  margin: 4px 0 5px; padding-left: 12px; border-left: 3px solid var(--rule-strong);
  font-size: 14px; color: #2b3744;
}
.dk-links { font-size: 12px; margin: 3px 0 0; }
.dk-comments-note { font-size: 13px; color: var(--text-muted); max-width: 78ch; line-height: 1.6; margin: 0 0 10px; }
.dk-roster { font-size: 13px; color: #2b3744; max-width: 82ch; line-height: 1.7; }
.dk-siblings { font-size: 13.5px; }
.dk-siblings a { margin-right: 4px; }
.docket-page-link { display: inline-block; margin-top: 12px; font-size: 13px; font-weight: 600; color: var(--accent-ink); }

/* Baked crawlable summary (tools/build-seo.mjs). app.js replaces it on first render, so with JS on
   it is visible for a frame at most; with JS off it IS the briefing, so it has to read properly. */
.seo-static { max-width: 78ch; }
.seo-static h2 { font-size: 17px; margin: 22px 0 6px; }
.seo-static p { font-size: 14.5px; color: #2b3744; margin: 0 0 10px; }
.seo-static ul { margin: 0 0 14px; padding-left: 20px; }
.seo-static li { font-size: 14px; color: #2b3744; margin-bottom: 7px; }

/* KPI deadline state — the two clock cards read their status off the procedural board. */
.kpi-state {
  margin-top: 6px; font-family: var(--font-mono); font-size: 10px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.05em;
}
.kpi-state.past { color: var(--text-muted); }
.kpi-state.upcoming { color: var(--deadline); }
.kpi-state .mono { font-weight: 400; text-transform: none; letter-spacing: 0; }

/* Discourse waves (news-tracks-plan.md Feature D) — two dated lanes, freshest first. */
.wave + .wave { margin-top: 22px; }
.wave-head { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; border-bottom: 1px solid var(--rule); padding-bottom: 5px; margin-bottom: 12px; }
.wave-title { font-size: 14px; margin: 0; }
.wave-stamp { font-size: 10.5px; color: var(--text-muted); }
.wave-2 .wave-title { color: var(--accent-ink); }
.quote-theme h3 .trackpill.is-static { cursor: default; }
.trackpill.is-static:hover { border-color: var(--rule-strong); color: var(--text-muted); }

/* Per-RTO filing matrix (news-tracks-plan.md Feature B). The chips are the at-a-glance layer and are
   lossy on their own, so each carries its full sentence in aria-label; the observation list below the
   grid holds the gist, date and sources in text. */
.proc-collide {
  font-size: 13px; color: #2b3744; border-left: 3px solid var(--deadline); background: var(--deadline-bg);
  padding: 8px 12px; border-radius: 0 8px 8px 0; margin: 12px 0;
}
.proc-collide-lbl {
  font-family: var(--font-mono); font-size: 10px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.06em; color: var(--deadline); margin-right: 6px;
}
.fm { border: 1px solid var(--rule); border-radius: 10px; padding: 12px 14px; margin: 14px 0; background: var(--surface); }
.fm-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.fm-head h4 { font-size: 14.5px; margin: 0; }
.fm-asof { font-size: 10.5px; color: var(--text-muted); }
.fm-lede { font-size: 12.5px; color: var(--text-muted); margin: 4px 0 10px; max-width: 80ch; }
.fm-scroll { overflow-x: auto; }
.fm-table { border-collapse: collapse; width: 100%; font-size: 12.5px; }
.fm-table th, .fm-table td { border: 1px solid var(--rule); padding: 6px 8px; text-align: left; vertical-align: top; }
.fm-table thead th { background: var(--bg); font-size: 11.5px; }
.fm-col { display: block; font-weight: 700; }
.fm-coldate { display: block; font-size: 10.5px; color: var(--text-muted); white-space: nowrap; }
.fm-rto { display: block; font-weight: 700; }
.fm-docket { display: block; font-size: 10.5px; color: var(--text-muted); white-space: nowrap; }
.fm-when { display: block; font-size: 10.5px; color: var(--text-muted); margin-top: 3px; }
.fm-chip {
  display: inline-block; font-family: var(--font-mono); font-size: 10px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.05em; padding: 2px 7px; border-radius: 999px;
  border: 1px solid currentColor; white-space: nowrap;
}
/* Weight reads off the evidence: a docket-confirmed filing is filled, a press report is outlined,
   an announced intent is quieter still, and the two derived states are grey. */
.fm-filed-verified { color: #fff; background: var(--accent); border-color: var(--accent); }
.fm-filed-reported { color: var(--accent-ink); }
.fm-signaled { color: var(--text-muted); font-style: italic; }
.fm-none-observed { color: var(--text-muted); border-style: dashed; }
.fm-upcoming { color: var(--text-muted); opacity: 0.75; }
.fm-na { color: var(--text-muted); opacity: 0.55; }
.fm-obs-h { font-size: 12.5px; margin: 14px 0 6px; }
.fm-obs-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.fm-obs { border-top: 1px solid var(--rule); padding-top: 8px; }
.fm-obs-head { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.fm-obs-who { font-weight: 700; font-size: 13px; color: var(--ink); }
.fm-obs-gist { font-size: 13px; color: #2b3744; margin: 4px 0 5px; max-width: 78ch; }
.mh-observed { font-size: 11px; color: var(--text-muted); }

/* "Where things stand" strip (Overview) — one line per track, generated from the registry. */
.stand { border: 1px solid var(--rule); border-radius: 10px; padding: 12px 14px; margin: 18px 0; background: var(--surface); }
.stand-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.stand-head h3 { font-size: 15px; margin: 0; }
.stand-asof { font-size: 10.5px; color: var(--text-muted); }
.stand-lede { font-size: 13px; color: var(--text-muted); margin: 3px 0 10px; max-width: 70ch; }
.stand-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.stand-row { border-top: 1px solid var(--rule); padding-top: 8px; }
.stand-row:first-child { border-top: 0; padding-top: 0; }
.stand-link { display: inline-flex; align-items: baseline; gap: 5px; text-decoration: none; }
.stand-label { font-weight: 700; font-size: 13.5px; color: var(--accent-ink); }
.stand-link:hover .stand-label { text-decoration: underline; }
.stand-go { color: var(--accent); font-size: 12px; }
.stand-line { font-size: 13px; color: #2b3744; margin: 2px 0 3px; max-width: 78ch; }
.stand-next { font-size: 12px; font-weight: 600; color: var(--deadline); }
.stand-next.none { color: var(--text-muted); font-weight: 400; }

/* parallel tracks (news-tracks-plan.md Feature A) — the intro grid, the filter chips, and the
   per-event pill. The trackpill is deliberately quieter than the kindpill (hairline border, muted
   fill, no color coding) so a rail carrying both pills doesn't read as confetti. */
.trk-h { font-size: 15px; margin: 18px 0 2px; }
.trk-lede { font-size: 13.5px; color: var(--text-muted); margin: 0 0 12px; max-width: 70ch; }
.trk-grid { display: grid; gap: 10px; margin-bottom: 14px; }
@media (min-width: 700px) { .trk-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .trk-grid { grid-template-columns: repeat(3, 1fr); } }
.trk-card {
  display: flex; flex-direction: column; gap: 5px; text-align: left; width: 100%;
  padding: 11px 13px; border: 1px solid var(--rule); border-radius: 10px;
  background: var(--surface); color: inherit; font: inherit; cursor: pointer;
}
.trk-card:hover { border-color: var(--rule-strong); }
.trk-card.is-active { border-color: var(--accent); box-shadow: inset 3px 0 0 var(--accent); }
.trk-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.trk-label { font-weight: 700; font-size: 14.5px; color: var(--ink); }
.trk-n { font-size: 11px; color: var(--text-muted); white-space: nowrap; }
.trk-venue { font-size: 11px; color: var(--accent-ink); }
.trk-what { font-size: 13px; color: #2b3744; }
.trk-why { font-size: 12.5px; color: var(--text-muted); }
.trk-why-lbl, .trk-next-lbl {
  font-family: var(--font-mono); font-size: 10px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.06em; color: var(--text-muted); margin-right: 4px;
}
.trk-aka { font-size: 12.5px; color: var(--text-muted); font-style: italic; }
.trk-status { font-size: 12.5px; color: #2b3744; border-top: 1px solid var(--rule); padding-top: 6px; margin-top: 2px; }
.trk-asof { font-size: 10.5px; color: var(--text-muted); white-space: nowrap; }
.trk-next { font-size: 12px; color: var(--deadline); font-weight: 600; }
.trk-next.none { color: var(--text-muted); font-weight: 400; }
.trk-next-note { display: block; font-size: 11px; color: var(--text-muted); font-weight: 400; }

.trk-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 14px; }
.trk-chip, .trackpill {
  font-family: var(--font-mono); font-size: 11px; font-weight: 600; letter-spacing: 0.02em;
  padding: 4px 10px; border-radius: 999px; border: 1px solid var(--rule-strong);
  background: var(--surface); color: var(--text-muted); cursor: pointer;
}
.trk-chip:hover, .trackpill:hover { border-color: var(--accent); color: var(--accent-ink); }
.trk-chip[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: #fff; }
.trk-chip[aria-pressed="true"] .trk-chip-n { color: #fff; opacity: 0.85; }
.trk-chip-n { color: var(--text-muted); }
.trackpill {
  font-size: 10px; text-transform: uppercase; letter-spacing: 0.06em; padding: 1px 7px;
  margin-left: 6px; vertical-align: 1px; background: var(--bg);
}
/* Touch targets reach the 44px floor only on coarse pointers, so these stay chip-scale on desktop
   instead of bloating next to the lightweight kindpill beside them. */
@media (pointer: coarse) {
  .trk-chip, .trackpill { min-height: 44px; display: inline-flex; align-items: center; }
}

/* cards / analysis */
.cards { display: grid; gap: 14px; }
@media (min-width: 820px) { .cards.cols-3 { grid-template-columns: repeat(3, 1fr); } }
.card {
  background: var(--surface); border: 1px solid var(--rule); border-radius: 6px; padding: 16px 18px;
}
.card.analysis { border-left: 3px solid var(--accent); }
.card h3 { font-family: var(--font-serif); font-size: 18px; font-weight: 700; color: var(--masthead); margin-bottom: 8px; line-height: 1.2; }
.card p { font-size: 14.5px; color: #2b3744; }
.card p + p { margin-top: 9px; }

.tier-flag {
  display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-mono);
  font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--text-muted); margin-bottom: 10px;
}
.tier-flag::before { content: ""; width: 8px; height: 8px; border-radius: 2px; background: var(--tier-analysis); }
.tier-flag.t-ferc::before { background: var(--tier-ferc); }
.tier-flag.t-doe::before { background: var(--tier-doe); }

/* category accordion */
.cat { background: var(--surface); border: 1px solid var(--rule); border-radius: 6px; margin-bottom: 10px; overflow: hidden; }
.cat > summary {
  list-style: none; cursor: pointer; padding: 14px 16px; display: grid; grid-template-columns: 38px 1fr auto; gap: 12px; align-items: center;
}
.cat > summary::-webkit-details-marker { display: none; }
.cat-no { font-family: var(--font-serif); font-size: 26px; font-weight: 700; color: var(--accent); line-height: 1; }
.cat-title { font-weight: 700; font-size: 15.5px; color: var(--ink); }
.cat-chev { font-family: var(--font-mono); color: var(--text-muted); transition: transform 200ms ease; }
.cat[open] .cat-chev { transform: rotate(90deg); }
.cat-body { padding: 2px 16px 16px 66px; border-top: 1px solid var(--rule); }
.cat-ferc { background: var(--surface-2); border-left: 3px solid var(--tier-ferc); padding: 10px 12px; border-radius: 0 4px 4px 0; font-size: 14px; margin: 12px 0; }
.cat-ferc .label { display: block; margin-bottom: 3px; }
.cat-detail { font-size: 14.5px; color: #2b3744; }
.cat-doe { margin-top: 12px; }
.cat-doe .label { display: block; margin-bottom: 6px; }
.cat-doe ul { list-style: none; display: grid; gap: 6px; }
.cat-doe li { font-size: 13.5px; color: #2b3744; padding-left: 18px; position: relative; }
.cat-doe li::before { content: "§"; position: absolute; left: 0; color: var(--tier-doe); font-family: var(--font-serif); font-weight: 700; }

/* docket accordion */
.dockets { display: grid; gap: 10px; }
.docket { background: var(--surface); border: 1px solid var(--rule); border-radius: 6px; overflow: hidden; }
.docket[open] { border-color: var(--rule-strong); }
.docket-sum { cursor: pointer; list-style: none; display: flex; align-items: center; gap: 7px 12px; flex-wrap: wrap; padding: 11px 14px; }
.docket-sum::-webkit-details-marker { display: none; }
.docket-sum:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.docket-sum .item { flex: none; font-family: var(--font-serif); font-weight: 700; font-size: 15px; line-height: 1; color: #fff; background: var(--masthead); border-radius: 5px; padding: 4px 9px; }
.docket-sum-id { min-width: 0; margin-right: auto; display: flex; flex-direction: column; gap: 1px; }
.docket-sum .rto { font-weight: 700; font-size: 16px; color: var(--masthead); }
.docket-sum:hover .rto { color: var(--accent-ink); }
.docket-sum .rto-full { font-size: 12px; color: var(--text-muted); }
.docket-cite { font-size: 11px; color: var(--accent-ink); }
.docket-status { flex: none; display: inline-block; font-size: 11px; font-weight: 700; color: var(--status-reform); background: #f6efdf; border: 1px solid #e6d8b0; border-radius: 999px; padding: 2px 9px; }
.docket-sum .region { flex: none; font-size: 11px; color: var(--text-muted); }
.docket-sum .chev { flex: none; color: var(--accent); font-size: 17px; line-height: 1; transition: transform 0.15s ease; }
.docket[open] .docket-sum .chev { transform: rotate(90deg); }
.docket-body { padding: 4px 15px 15px; }
.docket-body .order-links { margin: 10px 0 2px; }
.order-links { flex: none; display: inline-flex; align-items: center; gap: 10px; }
.order-link { flex: none; font-size: 11.5px; font-weight: 700; text-decoration: none; color: #fff; background: var(--accent); border-radius: 5px; padding: 4px 11px; white-space: nowrap; }
.order-link:hover { background: var(--accent-ink); color: #fff; }
.order-src { flex: none; font-size: 10.5px; font-weight: 600; text-decoration: none; color: var(--accent); white-space: nowrap; border-bottom: 1px dotted var(--accent); }
.order-src:hover { color: var(--accent-ink); border-bottom-style: solid; }
.order-src:focus-visible, .order-link:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 2px; }
.docket-cite { font-size: 11px; color: var(--accent-ink); margin-top: 5px; }
.docket-tags { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.docket-status { display: inline-block; font-size: 11px; font-weight: 700; color: var(--status-reform); background: #f6efdf; border: 1px solid #e6d8b0; border-radius: 999px; padding: 2px 9px; }
.docket-tags .region { font-size: 11px; color: var(--text-muted); }
.dir { margin-top: 13px; }
.dir .label { display: block; margin-bottom: 7px; }
.dir-item { padding: 0 0 0 11px; border-left: 2px solid var(--rule-strong); margin-bottom: 9px; }
.dir-head { display: flex; align-items: baseline; gap: 6px 8px; justify-content: space-between; flex-wrap: wrap; }
.dir-topic { font-weight: 700; font-size: 12px; color: var(--masthead); }
.dir-para { font-size: 10px; color: var(--accent); white-space: nowrap; flex: none; }
.dir-cite { display: inline-flex; align-items: baseline; gap: 6px; flex: none; white-space: nowrap; }
.cite-link { font-size: 10px; font-weight: 700; text-decoration: none; color: var(--accent); border: 1px solid var(--rule-strong); border-radius: 4px; padding: 0 5px; line-height: 1.7; transition: background .12s, border-color .12s, color .12s; }
.cite-link:hover { background: #e3ecf6; color: var(--accent-ink); border-color: var(--accent); }
.cite-link:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.cite-link .ext { font-size: 9px; }
.dir-quote { display: block; font-family: var(--font-serif); font-style: italic; font-size: 13px; color: #3a4753; line-height: 1.35; margin-top: 2px; }
.reg-cite { display: inline-flex; align-items: baseline; gap: 6px; white-space: nowrap; margin-left: 5px; }
details.dreg { margin-top: 12px; border-top: 1px solid var(--rule); padding-top: 9px; }
details.dreg > summary { cursor: pointer; list-style: none; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--accent-ink); padding: 11px 0; min-height: 44px; display: flex; align-items: center; }
details.dreg > summary::-webkit-details-marker { display: none; }
details.dreg > summary::before { content: "▸ "; color: var(--accent); }
details.dreg[open] > summary::before { content: "▾ "; }
details.dreg ul { list-style: none; display: grid; gap: 6px; margin-top: 8px; }
details.dreg li { font-size: 13px; color: #2b3744; padding-left: 14px; position: relative; line-height: 1.4; }
details.dreg li::before { content: "▸"; position: absolute; left: 0; color: var(--accent); font-size: 10px; top: 2px; }

/* What's-unique callout + system-specific asks (Dockets tab) */
.docket-unique { margin-top: 12px; background: var(--surface-2); border-left: 3px solid var(--accent); border-radius: 0 5px 5px 0; padding: 9px 13px; }
.docket-unique .label { display: block; margin-bottom: 3px; }
.docket-unique p { font-size: 13.5px; color: var(--ink); line-height: 1.45; }
.docket-asks { margin-top: 13px; }
.docket-asks .label { display: block; margin-bottom: 6px; }
.docket-asks ul { list-style: none; display: grid; gap: 5px; }
.docket-asks li { font-size: 12.5px; color: #2b3744; line-height: 1.4; padding-left: 16px; position: relative; }

/* Section IV briefing questions (Dockets tab) — numbered list with verbatim excerpts */
details.dbrief .brief-head { margin: 4px 0 2px; }
.brief-cite { display: inline-flex; align-items: baseline; gap: 7px; font-size: 11px; }
details.dbrief .brief-list { list-style: none; display: grid; gap: 12px; margin-top: 9px; padding: 0; counter-reset: brief; }
details.dbrief .brief-item { padding-left: 27px; position: relative; line-height: 1.4; }
details.dbrief .brief-item::before { counter-increment: brief; content: counter(brief); position: absolute; left: 0; top: 1px; width: 18px; height: 18px; border-radius: 999px; background: var(--accent); color: #fff; font-size: 10px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.brief-topic { font-size: 13px; font-weight: 700; color: var(--masthead); }
.brief-desc { font-size: 12.5px; color: #2b3744; line-height: 1.45; margin: 2px 0 4px; }
.brief-quote { display: block; font-family: var(--font-serif); font-style: italic; font-size: 12.5px; color: var(--accent-ink); line-height: 1.4; }
.docket-asks li::before { content: "?"; position: absolute; left: 0; top: 0; color: var(--accent); font-weight: 700; font-size: 12px; }
details.dros { margin-top: 9px; }
details.dros ul.roster { grid-template-columns: 1fr; }
@media (min-width: 560px) { details.dros ul.roster { grid-template-columns: 1fr 1fr; } }
ul.roster li { font-size: 12px; color: var(--text-muted); }
ul.roster li::before { content: "·"; }

/* Commissioner statements (Overview tab) */
.commish-list { display: grid; gap: 10px; }
.commish-rowcard { background: var(--surface); border: 1px solid var(--rule); border-left: 4px solid var(--masthead); border-radius: 0 6px 6px 0; padding: 12px 15px; }
.commish { background: transparent; border: 0; border-radius: 0; padding: 0; }
.commish-head { display: flex; align-items: baseline; gap: 6px 10px; flex-wrap: wrap; margin-bottom: 6px; }
.commish-name { font-weight: 700; font-size: 15px; color: var(--masthead); }
.commish-role { font-size: 11px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-muted); }
.commish-cite { margin-left: auto; display: inline-flex; gap: 6px; white-space: nowrap; }
.commish-gist { font-size: 13.5px; color: #2b3744; line-height: 1.45; }
.commish-quote { font-family: var(--font-serif); font-style: italic; font-size: 12.5px; color: var(--accent-ink); margin-top: 6px; }
.commish-quote .commish-cite { margin-left: 8px; vertical-align: baseline; font-family: var(--font-sans); font-style: normal; }
.commish-head .commish-tag { margin-left: auto; }
.commish-tag { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; color: var(--status-reform); background: #f6efdf; border: 1px solid #e6d8b0; border-radius: 999px; padding: 1px 8px; }

/* expandable themed read of a commissioner's statement (themes + verbatim quotes) */
.commish-full { margin-top: 9px; border-top: 1px solid var(--rule); }
.commish-full > summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 8px; font-size: 11px; font-weight: 700; color: var(--accent); padding: 9px 0; min-height: 44px; }
.commish-full > summary::-webkit-details-marker { display: none; }
.commish-full > summary::before { content: "\25B8"; color: var(--accent); transition: transform 0.15s ease; }
.commish-full[open] > summary::before { transform: rotate(90deg); }
.commish-full > summary:hover { color: var(--accent-ink); }
.commish-full > summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 3px; }
.commish-full-n { font-weight: 400; color: var(--text-muted); font-size: 10.5px; }
.commish-sum { font-size: 12.5px; line-height: 1.5; color: var(--ink); margin: 2px 0 11px; }
.commish-theme { margin: 0 0 11px; padding-left: 11px; border-left: 3px solid var(--rule-strong); }
.commish-theme-h { margin: 0 0 3px; font-size: 12px; font-weight: 700; color: var(--ink); }
.commish-theme-d { font-size: 12px; line-height: 1.5; color: #2b3744; margin: 0 0 6px; }
.commish-qs { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.commish-q { font-family: var(--font-serif); font-style: italic; font-size: 12.5px; line-height: 1.45; color: var(--accent-ink); padding-left: 9px; border-left: 2px solid var(--rule); }
.commish-q .commish-cite { margin-left: 7px; font-family: var(--font-sans); font-style: normal; vertical-align: baseline; }
.commish-q.spoken { color: #4a4753; border-left-color: var(--status-reform); }
.commish-q-src { display: inline-block; font-family: var(--font-sans); font-style: normal; font-size: 9px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-muted); margin-left: 6px; }
.commish-srcs { font-size: 10px; color: var(--text-muted); line-height: 1.4; margin: 8px 0 2px; }
/* per-order commissioner statements (nested in each docket accordion) */
details.dcom .commish-rows { display: grid; gap: 10px; margin-top: 8px; }
.commish-row { padding-left: 11px; border-left: 2px solid var(--rule-strong); }
.commish-row-head { display: flex; align-items: baseline; gap: 5px 8px; flex-wrap: wrap; }
.commish-row .commish-name { font-size: 13px; }
.commish-row .commish-cite { margin-left: auto; align-items: baseline; }
.commish-row .commish-quote { margin-top: 2px; }
.commish-rgist { font-size: 12.5px; line-height: 1.5; color: var(--text); margin: 4px 0 0; }
.commish-block-note { font-size: 11px; color: var(--text-muted); line-height: 1.45; margin: 6px 0 2px; }
/* a commissioner's genuinely order-specific addition, layered onto their normal row (e.g. Chang / E-10) */
.commish-aside { margin: 6px 0 0 9px; padding-left: 9px; border-left: 2px solid var(--status-reform); }
.commish-aside-label { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; color: var(--status-reform); margin: 0 0 2px; }
.commish-aside .commish-quote { margin-top: 2px; }

/* E-2 co-location order — distinguished from the six §206 cards */
.docket-section-label { grid-column: 1 / -1; margin: 16px 2px 2px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-muted); }
.docket-track { flex: none; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; color: var(--accent); background: #eaf0f8; border: 1px solid #cbd9ee; border-radius: 999px; padding: 1px 8px; }
.docket.docket-colo { border-left: 4px solid var(--accent); }
.docket-kind { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; color: var(--accent-ink); margin-bottom: 4px; }

/* RM26-4 comment corpus (Discourse tab) */
.cm-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin-bottom: 12px; }
@media (min-width: 640px) { .cm-stats { grid-template-columns: repeat(4, 1fr); } }
.cm-stat { background: var(--surface); border: 1px solid var(--rule); border-radius: 6px; padding: 9px 11px; display: flex; flex-direction: column; gap: 2px; }
.cm-stat .v { font-family: var(--font-serif); font-weight: 700; font-size: 21px; color: var(--masthead); line-height: 1; }
.cm-stat .l { font-size: 10.5px; color: var(--text-muted); line-height: 1.25; }
.cm-meta { font-size: 12px; color: var(--text-muted); line-height: 1.45; margin-bottom: 14px; max-width: 82ch; }
.cm-buckets { display: grid; gap: 12px; }
.cm-bhead { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.cm-label { font-weight: 700; font-size: 13.5px; color: var(--masthead); }
.cm-n { font-size: 12px; color: var(--accent-ink); flex: none; }
.cm-bar { height: 6px; background: var(--surface-2); border-radius: 999px; overflow: hidden; margin: 4px 0 5px; }
.cm-bar > span { display: block; height: 100%; background: var(--accent); border-radius: 999px; }
.cm-note { font-size: 12.5px; color: #2b3744; line-height: 1.45; }
.cm-eg { display: inline-block; font-size: 10.5px; color: var(--text-muted); background: var(--surface-2); border-radius: 999px; padding: 1px 8px; margin: 0 3px 2px 0; white-space: nowrap; }
/* respondent-type roster: every organization per camp, collapsed past 10 */
.cm-egs { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 7px; align-items: baseline; }
.cm-egs .cm-eg { margin: 0; white-space: normal; overflow-wrap: anywhere; max-width: 100%; }
.cm-eg-rest { display: none; }
.cm-egs.expanded .cm-eg-rest { display: contents; }
/* "Show all / fewer" is a disclosure toggle, not a CTA — keep it chip-scale beside the org pills,
   accent-colored with a quiet rotating chevron. The 44px touch target is restored on coarse
   pointers only (where it matters), so it doesn't tower over the pills on desktop. */
.cm-showmore { font: inherit; font-size: 10.5px; font-weight: 600; color: var(--accent); background: none; border: 1px solid var(--rule); border-radius: 999px; padding: 1px 9px; display: inline-flex; align-items: center; gap: 4px; line-height: 1.5; cursor: pointer; white-space: nowrap; }
.cm-showmore::after { content: "\203A"; font-weight: 700; line-height: 1; transition: transform 0.15s ease; }
.cm-showmore[aria-expanded="true"]::after { transform: rotate(90deg); }
.cm-showmore:hover { background: #eef3f9; border-color: var(--accent); color: var(--accent-ink); }
.cm-showmore:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
@media (pointer: coarse) { .cm-showmore { min-height: 44px; padding: 0 12px; } }

/* Comments tab: rounds, respondent types, themes, the full filterable list */
.cm-rounds { display: grid; gap: 8px; margin-bottom: 18px; }
@media (min-width: 600px) { .cm-rounds { grid-template-columns: repeat(3, 1fr); } }
.cm-round { background: var(--surface); border: 1px solid var(--rule); border-left: 3px solid var(--accent); border-radius: 0 6px 6px 0; padding: 9px 13px; display: flex; flex-direction: column; gap: 2px; text-decoration: none; color: inherit; }
.cm-round:hover { background: #eef3f9; border-color: var(--accent); }
.cm-round:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
/* compact coverage-honesty line under the stat row */
.cm-coverage { font-size: 11.5px; color: var(--text-secondary); margin: -6px 0 14px; letter-spacing: 0.01em; }
/* an aggregate whose label deep-links into By-issue */
.cm-agg-link { text-decoration: none; }
.cm-agg-link:hover { color: var(--accent); text-decoration: underline; }
.cm-agg-link:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 3px; }
.cm-agg-arrow { color: var(--accent); font-weight: 700; }
.cm-round-n { font-family: var(--font-serif); font-weight: 700; font-size: 19px; color: var(--masthead); line-height: 1; }
.cm-round-l { font-weight: 700; font-size: 13px; color: var(--ink); }
.cm-round-d { font-size: 10.5px; color: var(--text-muted); }
/* the 6-chip RTO/ISO region strip on the Comments overview */
.cm-regions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 18px; }
@media (min-width: 600px) { .cm-regions { grid-template-columns: repeat(6, 1fr); } }
.cm-region { background: var(--surface); border: 1px solid var(--rule); border-left: 3px solid var(--status-reform); border-radius: 0 6px 6px 0; padding: 9px 10px; display: flex; flex-direction: column; gap: 2px; text-decoration: none; color: inherit; }
.cm-region:hover { background: #eef3f9; border-color: var(--status-reform); }
.cm-region:focus-visible { outline: 2px solid var(--status-reform); outline-offset: 2px; }
.cm-region-n { font-family: var(--font-serif); font-weight: 700; font-size: 19px; color: var(--masthead); line-height: 1; }
.cm-region-l { font-weight: 700; font-size: 12px; color: var(--ink); }
.cm-types, .cm-themes { display: grid; gap: 9px 20px; margin-bottom: 4px; }
@media (min-width: 700px) { .cm-types, .cm-themes { grid-template-columns: 1fr 1fr; } }
.cm-bar.theme > span { background: var(--masthead); }
/* All-comments workbench: sticky search + Tags toggle + result count + active tokens, under the tablist */
.cm-workbench { position: sticky; top: 46px; z-index: 15; background: var(--bg); padding: 8px 0 9px; margin: 4px 0 12px; border-bottom: 1px solid var(--rule); }
.cm-wb-controls { display: flex; align-items: center; gap: 8px; }
.cm-workbench input[type="search"] { flex: 1; min-width: 0; font: inherit; font-size: 13.5px; padding: 7px 11px; border: 1px solid var(--rule-strong); border-radius: 6px; background: var(--surface); color: var(--ink); }
.cm-workbench input[type="search"]:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.cm-tags-toggle { flex: none; font: inherit; font-size: 11.5px; font-weight: 700; color: var(--accent); background: none; border: 1px solid var(--rule-strong); border-radius: 6px; padding: 6px 12px; cursor: pointer; }
.cm-tags-toggle:hover { background: #eef3f9; border-color: var(--accent); }
.cm-tags-toggle[aria-expanded="true"] { background: #eef3f9; border-color: var(--accent); color: var(--accent-ink); }
.cm-tags-toggle:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.cm-filter-count { flex: none; font-size: 11px; color: var(--text-muted); white-space: nowrap; }
.cm-tokens { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 8px; }
.cm-tokens[hidden] { display: none; }
.cm-token { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; font-weight: 600; color: var(--accent-ink); background: #e9f0f8; border: 1px solid var(--rule-strong); border-radius: 4px; padding: 2px 4px 2px 8px; }
.cm-token-x { font: inherit; font-size: 14px; line-height: 1; color: var(--accent); background: none; border: none; cursor: pointer; padding: 0 3px; border-radius: 3px; }
.cm-token-x:hover { color: var(--stance-negative); }
.cm-token-x:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
@media (pointer: coarse) { .cm-tags-toggle { min-height: 44px; } .cm-token-x { min-width: 30px; min-height: 30px; } }
.cm-listwrap { display: grid; gap: 18px; }
.cm-listgroup-h { font-family: var(--font-serif); font-size: 16px; color: var(--masthead); margin-bottom: 9px; padding-bottom: 4px; border-bottom: 1px solid var(--rule); }
.cm-listgroup-h .mono { font-size: 12px; color: var(--text-muted); font-weight: 400; }
.cm-list { display: grid; gap: 7px; list-style: none; }
.cm-row { background: var(--surface); border: 1px solid var(--rule); border-radius: 6px; padding: 8px 12px; scroll-margin-top: 120px; }
/* a permalinked row briefly highlights so a shared link lands the reader on the right comment */
.cm-row-flash { animation: cm-row-flash 1.8s ease-out; }
@keyframes cm-row-flash { 0%, 30% { background: #fbf3d8; border-color: var(--deadline, #b5791f); } 100% { background: var(--surface); border-color: var(--rule); } }
.cm-row-top { display: flex; align-items: baseline; gap: 6px 9px; flex-wrap: wrap; }
.cm-row-date { font-family: var(--font-mono); font-size: 11px; color: var(--accent-ink); flex: none; min-width: 80px; }
.cm-row-org { font-weight: 700; font-size: 13.5px; color: var(--masthead); }
.cm-row-type { font-size: 10.5px; color: var(--text-muted); background: var(--surface-2); border-radius: 999px; padding: 1px 9px; }
.cm-row-link { margin-left: auto; flex: none; font-size: 10.5px; font-weight: 700; text-decoration: none; color: var(--accent); border: 1px solid var(--rule-strong); border-radius: 4px; padding: 3px 8px; }
.cm-row-link:hover { background: #eef3f9; border-color: var(--accent); color: var(--accent-ink); }
/* copy-permalink button: same compact chip idiom as the eLibrary link, sits just after it */
.cm-row-permalink { flex: none; font: inherit; font-size: 10.5px; font-weight: 700; color: var(--accent); background: none; border: 1px solid var(--rule-strong); border-radius: 4px; padding: 3px 8px; cursor: pointer; white-space: nowrap; }
.cm-row-permalink:hover { background: #eef3f9; border-color: var(--accent); color: var(--accent-ink); }
.cm-row-permalink:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.cm-row-permalink.copied { color: var(--accent-ink); border-color: var(--accent); background: #eef3f9; }
/* full 44px tap target on touch viewports (kept compact on desktop to preserve list density) */
@media (max-width: 700px) { .cm-row-link, .cm-row-permalink { padding: 10px 12px; min-height: 44px; display: inline-flex; align-items: center; } }
.cm-row-desc { font-size: 12px; color: #2b3744; line-height: 1.4; margin-top: 4px; }
.cm-badge { flex: none; font-size: 11px; font-weight: 700; border-radius: 4px; padding: 0 5px; line-height: 1.5; }
.cm-badge.sum { color: #7a5a12; background: #f6efdb; }
.cm-badge.dl { color: var(--stance-positive); background: #e9f3ec; }
.cm-badge.no { color: var(--text-muted); }
.cm-jump-wrap { margin-top: 6px; }
.cm-jump { font-weight: 700; font-size: 13.5px; text-decoration: none; color: var(--accent); }
.cm-jump:hover { color: var(--accent-ink); text-decoration: underline; }
.cm-row-tags { display: flex; align-items: stretch; flex-wrap: wrap; gap: 4px; margin-top: 6px; }
.cm-tag { font: inherit; font-size: 9.5px; font-weight: 700; border: none; border-radius: 3px; padding: 2px 7px; letter-spacing: 0.02em; white-space: nowrap; cursor: pointer; line-height: 1.5; }
.cm-tag:hover { filter: brightness(0.94); }
.cm-tag:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.cm-tag.pr { color: var(--accent-ink); background: #e9f0f8; }
.cm-tag.rg { color: #5a4a1a; background: #f6efdb; }
.cm-tagsep { width: 1px; min-height: 13px; background: var(--rule-strong); margin: 0 3px; }
.cm-tag.aq { color: #2e5d4f; background: #e6f1ec; }
.cm-tag.round { color: #4a4a55; background: #ececf2; }
.cm-tag.st { color: #47506a; background: #eceef5; }
.cm-tag-n { font-weight: 400; opacity: 0.7; }

/* tag bar: the queryable lens/round/stance vocabulary, disclosed by the sticky Tags toggle */
.cm-tagbar { margin: 0 0 12px; border: 1px solid var(--rule); border-radius: 6px; background: var(--surface-2); }
.cm-tagbar[hidden] { display: none; }
.cm-tagbar-body { display: flex; flex-direction: column; gap: 10px; padding: 12px 11px; }
.cm-tagbar-group { display: flex; flex-wrap: wrap; gap: 5px; }
.cm-tagbar-label { flex: 0 0 100%; font-size: 9.5px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; color: var(--text-muted); }
/* tag-bar chips are a deliberate filter control — give them a comfortable touch target on coarse pointers (§12.12) */
@media (pointer: coarse) { .cm-tagbar .cm-tag { min-height: 44px; padding: 0 11px; display: inline-flex; align-items: center; } }
.cm-empty { background: var(--surface); border: 1px dashed var(--rule-strong); border-radius: 6px; padding: 18px; text-align: center; color: var(--text-muted); font-size: 13.5px; margin-top: 4px; }

/* per-comment audited analysis (expandable on each row) */
.cm-analysis { margin-top: 8px; border-top: 1px solid var(--rule); }
.cm-analysis > summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 8px; font-size: 11px; font-weight: 700; color: var(--accent); padding: 10px 0; min-height: 44px; }
.cm-analysis > summary::-webkit-details-marker { display: none; }
.cm-analysis > summary::before { content: "\25B8"; color: var(--accent); transition: transform 0.15s ease; }
.cm-analysis[open] > summary::before { transform: rotate(90deg); }
.cm-analysis > summary:hover { color: var(--accent-ink); }
.cm-analysis > summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 3px; }
.cm-analysis-n { font-weight: 400; color: var(--text-muted); font-size: 10.5px; }
.cm-analysis-sum { font-size: 12.5px; line-height: 1.5; color: var(--ink); margin: 2px 0 9px; }
.cm-analysis-foot { font-size: 10.5px; color: var(--text-muted); line-height: 1.4; margin: 9px 0 4px; }
.cm-bins { display: flex; flex-wrap: wrap; gap: 5px; }
.cm-bin { font-size: 11px; font-weight: 600; border-radius: 4px; padding: 2px 8px; border: 1px solid; border-left-width: 3px; }
.cm-bin.support { color: var(--stance-positive); border-color: var(--stance-positive); background: #eef5ef; }
.cm-bin.oppose { color: var(--stance-negative); border-color: var(--stance-negative); background: #f7ece6; }
.cm-bin.mixed { color: var(--stance-mixed); border-color: var(--stance-mixed); background: #f6efdf; }
.cm-bin.neutral { color: var(--text-muted); border-color: var(--rule-strong); background: var(--surface-2); }

/* lazy-loaded bin detail: positions grouped by lens, each with its description + verbatim quotes */
.cm-bindetail:empty { display: none; }
.cm-bindetail { margin: 10px 0 2px; display: flex; flex-direction: column; gap: 15px; }
.cm-lensgroup { display: flex; flex-direction: column; gap: 9px; }
.cm-lensgroup-h { display: flex; align-items: baseline; gap: 8px; margin: 0; padding-bottom: 4px; border-bottom: 1px solid var(--rule); font-size: 10.5px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; color: var(--text-muted); }
.cm-lensgroup-n { font-weight: 400; color: var(--text-muted); }
.cm-bin-loading, .cm-bin-error, .cm-bq-none { font-size: 11px; color: var(--text-muted); margin: 2px 0; line-height: 1.4; }
.cm-binitem { border-left: 3px solid var(--rule-strong); padding: 1px 0 1px 11px; }
.cm-binitem.support { border-left-color: var(--stance-positive); }
.cm-binitem.oppose { border-left-color: var(--stance-negative); }
.cm-binitem.mixed { border-left-color: var(--stance-mixed); }
.cm-binitem.neutral { border-left-color: var(--rule-strong); }
.cm-binitem-head { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 8px; }
.cm-binitem-name { font-size: 12px; font-weight: 700; color: var(--ink); }
.cm-binitem-stance { font-size: 9.5px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; border-radius: 3px; padding: 1px 5px; border: 1px solid; }
.cm-binitem-stance.support { color: var(--stance-positive); border-color: var(--stance-positive); background: #eef5ef; }
.cm-binitem-stance.oppose { color: var(--stance-negative); border-color: var(--stance-negative); background: #f7ece6; }
.cm-binitem-stance.mixed { color: var(--stance-mixed); border-color: var(--stance-mixed); background: #f6efdf; }
.cm-binitem-stance.neutral { color: var(--text-muted); border-color: var(--rule-strong); background: var(--surface-2); }
.cm-binitem-desc { font-size: 12px; line-height: 1.5; color: var(--ink); margin: 4px 0 6px; }
.cm-bqs { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.cm-bq { font-family: var(--font-serif); font-style: italic; font-size: 12.5px; line-height: 1.45; color: var(--accent-ink); padding-left: 9px; border-left: 2px solid var(--rule); }
.cm-bq-cite { font-family: var(--font-mono); font-style: normal; font-size: 10.5px; white-space: nowrap; color: var(--accent); text-decoration: none; }
.cm-bq-cite:hover { text-decoration: underline; }

/* stance map: stacked support / oppose / mixed / no-position per reform principle */
.cm-stancelegend { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-bottom: 11px; }
.cm-stancelegend .key { font-size: 11px; color: var(--text-muted); display: inline-flex; align-items: center; gap: 5px; }
.cm-stancelegend .key::before { content: ""; width: 11px; height: 11px; border-radius: 3px; display: inline-block; }
.cm-stancelegend .sup::before { background: var(--stance-positive); }
.cm-stancelegend .opp::before { background: var(--stance-negative); }
.cm-stancelegend .mix::before { background: var(--stance-mixed); }
.cm-stancelegend .neu::before { background: var(--rule-strong); }
.cm-stancebars { display: grid; gap: 12px; }
.cm-stancebar { display: flex; height: 18px; border-radius: 4px; overflow: hidden; border: 1px solid var(--rule); background: var(--surface-2); margin-top: 3px; }
.cm-stancebar .seg { display: flex; align-items: center; justify-content: center; font-size: 10px; font-weight: 700; color: #fff; min-width: 2px; }
.cm-stancebar .sup { background: var(--stance-positive); }
.cm-stancebar .opp { background: var(--stance-negative); }
.cm-stancebar .mix { background: var(--stance-mixed); }
.cm-stancebar .neu { background: var(--rule-strong); color: var(--ink); }

/* By-issue reader: two-pane on wide screens (outline + reader), stacked on narrow */
.cm-issues { display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); gap: 24px; align-items: start; }
@media (max-width: 900px) { .cm-issues { grid-template-columns: 1fr; gap: 14px; } }
.cm-issue-outline { min-width: 0; }
@media (min-width: 901px) { .cm-issue-outline { position: sticky; top: 116px; max-height: calc(100vh - 140px); overflow: auto; } }
.cm-issue-group + .cm-issue-group { margin-top: 16px; }
.cm-issue-group-h { font-size: 11px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 5px; }
.cm-issue-outline-list { list-style: none; display: grid; gap: 2px; margin: 0; padding: 0; }
.cm-issue-link { width: 100%; display: flex; align-items: center; gap: 8px; text-align: left; font: inherit; font-size: 12.5px; background: none; border: 1px solid transparent; border-radius: 6px; padding: 7px 9px; cursor: pointer; color: var(--ink); }
.cm-issue-link:hover { background: var(--surface-2); }
.cm-issue-link.active { background: #eef3f9; border-color: var(--rule-strong); }
.cm-issue-link:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.cm-issue-name { flex: 1; min-width: 0; font-weight: 600; line-height: 1.3; }
.cm-issue-count { flex: none; font-size: 11px; color: var(--text-muted); }
.cm-issue-micro { display: inline-flex; flex: none; height: 6px; width: 48px; border-radius: 2px; overflow: hidden; background: var(--surface-2); border: 1px solid var(--rule); }
.cm-issue-micro .seg { display: block; }
.cm-issue-micro .sup { background: var(--stance-positive); }
.cm-issue-micro .opp { background: var(--stance-negative); }
.cm-issue-micro .mix { background: var(--stance-mixed); }
.cm-issue-micro .neu { background: var(--rule-strong); }
@media (pointer: coarse) { .cm-issue-link { min-height: 44px; } }
.cm-issue-reader { min-width: 0; }
.cm-issue-hint { color: var(--text-muted); font-size: 13px; line-height: 1.5; }
.cm-issue-readhead { margin-bottom: 6px; }
.cm-issue-readtitle { font-family: var(--font-serif); font-size: 19px; color: var(--masthead); line-height: 1.25; }
.cm-issue-readdesc { font-size: 13px; color: #2b3744; line-height: 1.5; margin-top: 4px; }
.cm-issue-readmeta { font-size: 11px; color: var(--text-muted); margin-top: 7px; }
.cm-issue-splitbar { margin-top: 8px; }
.cm-issue-stancegroup { margin-top: 18px; }
.cm-issue-stancegroup-h { font-size: 12.5px; font-weight: 700; color: var(--masthead); padding-bottom: 4px; border-bottom: 2px solid var(--rule); }
.cm-issue-stancegroup.support .cm-issue-stancegroup-h { border-color: var(--stance-positive); }
.cm-issue-stancegroup.oppose .cm-issue-stancegroup-h { border-color: var(--stance-negative); }
.cm-issue-stancegroup.mixed .cm-issue-stancegroup-h { border-color: var(--stance-mixed); }
.cm-issue-stancegroup-h .mono { color: var(--text-muted); font-weight: 400; font-size: 11px; }
.cm-issue-letter { padding: 9px 0; border-bottom: 1px solid var(--rule); }
.cm-issue-letter-head { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.cm-issue-org { font-weight: 700; font-size: 13px; color: var(--accent); text-decoration: none; }
.cm-issue-org:hover { text-decoration: underline; }
.cm-issue-bucket { font-size: 10.5px; color: var(--text-muted); background: var(--surface-2); border-radius: 999px; padding: 1px 8px; }
.cm-issue-letter-desc { font-size: 12.5px; color: #2b3744; line-height: 1.45; margin-top: 4px; }
.cm-issue-quotes { margin-top: 6px; }
.cm-issue-quotes > summary { cursor: pointer; font-size: 11px; color: var(--accent); display: inline-flex; gap: 6px; align-items: center; list-style: none; }
.cm-issue-quotes > summary::-webkit-details-marker { display: none; }
.cm-issue-quotes > summary::before { content: "\203A"; font-weight: 700; transition: transform 0.15s ease; }
.cm-issue-quotes[open] > summary::before { transform: rotate(90deg); }
.cm-issue-quotes:focus-within > summary { outline: 2px solid var(--accent); outline-offset: 2px; }
.cm-issue-quotes .cm-bqs { display: grid; gap: 7px; margin-top: 6px; }
.cm-issue-quotes-n { color: var(--text-muted); }
@media (pointer: coarse) { .cm-issue-quotes > summary { min-height: 44px; } }

/* Record-to-rule crosswalk: the "from record to rule" strip + the policy-map landing grid.
   Status is a bracketed tag (a tag, not a pill), text + color, never color alone. */
.cm-pm-chip { font-size: 10px; font-weight: 700; letter-spacing: 0.02em; text-transform: uppercase; border-radius: 3px; padding: 1px 7px; border: 1px solid transparent; white-space: nowrap; flex: none; }
.cm-pm-directed { color: #fff; background: var(--accent); }
.cm-pm-resolved { color: #fff; background: var(--stance-positive); }
.cm-pm-briefed { color: var(--accent-ink); background: #e9f0f8; border-color: #cddcf0; }
.cm-pm-silent { color: var(--text-muted); background: var(--surface-2); border-color: var(--rule); }

.cm-pm-strip { margin: 10px 0 4px; padding: 12px 14px; background: var(--surface); border: 1px solid var(--rule); border-left: 3px solid var(--accent); border-radius: 6px; }
.cm-pm-head { display: flex; align-items: center; gap: 10px; margin-bottom: 7px; }
.cm-pm-kicker { font-size: 10.5px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; color: var(--text-muted); }
.cm-pm-lbl { font-size: 10px; font-weight: 700; letter-spacing: 0.03em; text-transform: uppercase; color: var(--text-muted); margin-right: 5px; }
.cm-pm-anopr { font-size: 12.5px; line-height: 1.5; color: #2b3744; }
.cm-pm-didline { margin-top: 8px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 10px; }
.cm-pm-quote { font-family: var(--font-serif); font-size: 13px; line-height: 1.45; color: var(--ink); }
.cm-pm-cite { display: inline-flex; align-items: baseline; gap: 6px; white-space: nowrap; flex: none; }
.cm-pm-forward { margin-top: 9px; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; }
.cm-pm-nextchip { font-size: 11.5px; color: var(--accent-ink); background: #eef3f9; border: 1px solid #cddcf0; border-radius: 4px; padding: 2px 8px; }
.cm-pm-next-lbl { font-weight: 700; text-transform: uppercase; font-size: 9.5px; letter-spacing: 0.04em; margin-right: 4px; }
.cm-pm-when { color: var(--deadline); font-weight: 700; }
.cm-pm-brief { font-size: 11.5px; color: var(--text-muted); }
.cm-pm-note { margin-top: 9px; font-size: 12px; line-height: 1.5; color: #2b3744; }
.cm-pm-foot { margin-top: 7px; font-size: 10.5px; color: var(--text-muted); font-style: italic; }

.cm-pm-landing-h { font-family: var(--font-serif); font-size: 18px; color: var(--masthead); line-height: 1.25; }
.cm-pm-landing-lede { font-size: 12.5px; color: #2b3744; line-height: 1.5; margin: 5px 0 12px; }
.cm-pm-lane { color: var(--text-muted); font-style: italic; }
.cm-pm-grid { display: grid; gap: 3px; }
.cm-pm-gridrow { display: grid; grid-template-columns: minmax(0, 1fr) auto 48px auto 74px; align-items: center; gap: 10px; width: 100%; text-align: left; font: inherit; background: none; border: 1px solid transparent; border-radius: 6px; padding: 8px 10px; cursor: pointer; color: var(--ink); }
.cm-pm-gridrow:hover { background: var(--surface-2); }
.cm-pm-gridrow.active { background: #eef3f9; border-color: var(--rule-strong); }
.cm-pm-gridrow:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.cm-pm-gname { font-weight: 600; font-size: 13px; line-height: 1.3; min-width: 0; }
.cm-pm-gcount { font-size: 11px; color: var(--text-muted); text-align: right; }
.cm-pm-gnext { font-size: 10.5px; color: var(--text-muted); text-align: right; white-space: nowrap; }
@media (pointer: coarse) { .cm-pm-gridrow { min-height: 44px; } }
@media (max-width: 620px) {
  .cm-pm-gridrow { grid-template-columns: minmax(0, 1fr) auto; grid-auto-rows: min-content; row-gap: 5px; }
  .cm-pm-gname { grid-column: 1; }
  .cm-pm-gcount { grid-column: 2; }
  .cm-pm-gridrow .cm-issue-micro { grid-column: 1 / -1; justify-self: start; }
  .cm-pm-chip { grid-column: 1; justify-self: start; }  /* a tag keeps its natural width, never a full-bleed bar */
  .cm-pm-gnext { grid-column: 2; align-self: center; }
}

/* Findability: a callout in the Comments overview pointing at the policy map (the highest-value view,
   otherwise two clicks deep under By issue), and a back link out of the drill-down reader. */
.cm-pm-promo { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin: 12px 0; padding: 11px 14px; background: var(--surface); border: 1px solid var(--rule); border-left: 3px solid var(--accent); border-radius: 6px; text-decoration: none; color: var(--ink); }
.cm-pm-promo:hover { background: #eef3f9; border-color: var(--rule-strong); border-left-color: var(--accent); }
.cm-pm-promo:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.cm-pm-promo-k { font-size: 10.5px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; color: var(--accent); flex: none; }
.cm-pm-promo-t { font-size: 13px; line-height: 1.4; color: #2b3744; }
.cm-issue-back { display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; font-weight: 600; color: var(--accent); text-decoration: none; margin-bottom: 6px; }
.cm-issue-back:hover { text-decoration: underline; }
.cm-issue-back:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
@media (pointer: coarse) { .cm-issue-back { min-height: 44px; } }

/* Crosswalk cross-links surfaced on the other tabs (Overview stance bars, Reforms cards, Section IV
   questions, the procedural board) — the clock and the aggregates become policy-aware. */
.cm-bhead .cm-pm-chip { margin-left: 6px; vertical-align: middle; }
.cm-xlink { margin-top: 10px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.cm-xlink .cm-agg-link { font-size: 12px; font-weight: 600; color: var(--accent); text-decoration: none; }
.cm-xlink .cm-agg-link:hover { text-decoration: underline; }
.cm-xlink-inline { font-size: 11.5px; font-weight: 600; color: var(--accent); text-decoration: none; white-space: nowrap; }
.cm-xlink-inline:hover { text-decoration: underline; }
.brief-record { font-weight: 400; }
.proc-lands { display: inline-flex; align-items: center; gap: 4px; margin-top: 7px; font-size: 11.5px; font-weight: 600; color: var(--accent); text-decoration: none; }
.proc-lands:hover { text-decoration: underline; }
.proc-lands:focus-visible, .cm-xlink-inline:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
@media (pointer: coarse) { .proc-lands, .cm-xlink .cm-agg-link, .cm-xlink-inline { min-height: 44px; display: inline-flex; align-items: center; } }

/* Consensus heatmap: stakeholder type x reform principle */
.cm-hm-legend { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; font-size: 11.5px; color: var(--text-secondary); margin-bottom: 4px; }
.cm-hm-key { display: inline-flex; align-items: center; gap: 5px; }
.cm-hm-sw { width: 13px; height: 13px; border-radius: 3px; flex: none; }
.cm-hm-sw.support.strong { background: var(--stance-positive); }
.cm-hm-sw.support { background: #cfe4d2; }
.cm-hm-sw.mixed { background: #f6efdf; border: 1px solid var(--stance-mixed); }
.cm-hm-sw.oppose { background: #f7ece6; border: 1px solid var(--stance-negative); }
.cm-hm-sw.neutral { background: var(--surface-2); border: 1px solid var(--rule); }
.cm-hm-note { font-size: 11px; color: var(--text-muted); margin-left: auto; }
.cm-heatmap { display: grid; grid-template-columns: minmax(120px, 1.7fr) repeat(5, minmax(0, 1fr)); gap: 3px; margin-top: 8px; align-items: stretch; }
.cm-hm-corner { }
.cm-hm-col { font-size: 11px; font-weight: 700; color: var(--text-muted); text-align: center; align-self: end; padding-bottom: 4px; line-height: 1.15; }
.cm-hm-rowlabel { display: flex; align-items: center; justify-content: space-between; gap: 6px; font-size: 12px; color: var(--ink); padding-right: 8px; }
.cm-hm-letters { font-size: 10px; color: var(--text-muted); flex: none; }
.cm-hm-cell { display: flex; align-items: center; justify-content: center; min-height: 30px; border-radius: 5px; font-size: 12px; font-weight: 700; text-decoration: none; }
a.cm-hm-cell { cursor: pointer; }
a.cm-hm-cell:hover { outline: 2px solid var(--accent); outline-offset: -2px; }
a.cm-hm-cell:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.cm-hm-cell.support { background: #dcebde; color: #1f5a35; }
.cm-hm-cell.support.strong { background: var(--stance-positive); color: #fff; }
.cm-hm-cell.oppose { background: #f7ece6; color: var(--stance-negative); }
.cm-hm-cell.mixed { background: #f6efdf; color: var(--stance-mixed); }
.cm-hm-cell.neutral { background: var(--surface-2); color: var(--text-muted); border: 1px solid var(--rule); }
.cm-hm-cell.empty { background: repeating-linear-gradient(45deg, var(--surface-1), var(--surface-1) 4px, var(--surface-2) 4px, var(--surface-2) 8px); }
@media (pointer: coarse) { .cm-hm-cell { min-height: 40px; } }

/* Comments sub-tabs (Overview / Respondent types / Comment summaries) */
.cm-subtabs { display: flex; gap: 2px; margin-bottom: 18px; border-bottom: 2px solid var(--rule); flex-wrap: wrap; }
.cm-subtab { font: inherit; font-size: 13.5px; font-weight: 700; color: var(--text-muted); background: none; border: none; border-bottom: 2px solid transparent; margin-bottom: -2px; padding: 12px 14px; min-height: 44px; cursor: pointer; }
.cm-subtab:hover { color: var(--ink); }
.cm-subtab[aria-selected="true"] { color: var(--accent); border-bottom-color: var(--accent); }
.cm-subtab:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 3px; }

/* generic two-col blocks (jurisdiction / regional) */
.blocks { display: grid; gap: 12px; }
@media (min-width: 760px) { .blocks.two { grid-template-columns: 1fr 1fr; } }
.block { background: var(--surface); border: 1px solid var(--rule); border-radius: 6px; padding: 14px 16px; }
.block.warn { border-left: 3px solid var(--deadline); }
.block h4 { font-size: 14.5px; color: var(--masthead); margin-bottom: 6px; }
.block p { font-size: 14px; color: #2b3744; }

/* reception */
.reception { display: grid; gap: 10px; }
.recep { background: var(--surface); border: 1px solid var(--rule); border-radius: 6px; padding: 14px 16px; border-left: 3px solid var(--stance-mixed); }
.recep.positive { border-left-color: var(--stance-positive); }
.recep.mixed { border-left-color: var(--stance-mixed); }
.recep.negative { border-left-color: var(--stance-negative); }
.recep-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 6px; flex-wrap: wrap; }
.recep-group { font-weight: 700; font-size: 15px; color: var(--ink); }
.stance-pill { font-family: var(--font-mono); font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; padding: 1px 8px; border-radius: 999px; }
.stance-pill.positive { color: var(--stance-positive); background: #e9f3ec; }
.stance-pill.mixed { color: var(--stance-mixed); background: #f6efdb; }
.stance-pill.negative { color: var(--stance-negative); background: var(--deadline-bg); }
.recep p { font-size: 14px; color: #2b3744; }
.source-line { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-top: 11px; padding-top: 8px; border-top: 1px solid var(--rule); }
.source-line .label { margin-right: 2px; }

/* commentary themes */
.quote-themes { display: grid; gap: 14px; }
.quote-theme { background: var(--surface); border: 1px solid var(--rule); border-left: 4px solid var(--tier-order); border-radius: 0 6px 6px 0; padding: 13px 16px; }
.quote-theme h3 { font-family: var(--font-serif); font-size: 18px; color: var(--masthead); margin-bottom: 6px; }
.quote-theme > p { font-size: 14px; color: #2b3744; line-height: 1.45; margin-bottom: 10px; }
.quote-list { list-style: none; display: grid; gap: 10px; padding: 0; margin: 0; }
.quote-list li { border-top: 1px solid var(--rule); padding-top: 9px; }
.quote-list li:first-child { border-top: 0; padding-top: 0; }
.quote-list blockquote { font-family: var(--font-serif); font-size: 15px; line-height: 1.42; color: var(--ink); margin: 0 0 6px; }

/* consensus / friction columns */
.discourse { display: grid; gap: 16px; }
@media (min-width: 820px) { .discourse { grid-template-columns: 1fr 1fr; } }
.disc-col h3 { font-family: var(--font-serif); font-size: 18px; color: var(--masthead); margin-bottom: 10px; }
.disc-col.friction h3 { color: var(--deadline); }
.disc-list { display: grid; gap: 9px; }
.disc-item { background: var(--surface); border: 1px solid var(--rule); border-radius: 6px; padding: 12px 14px; font-size: 14px; color: #2b3744; }
.disc-col.consensus .disc-item { border-left: 3px solid var(--stance-positive); }
.disc-col.friction .disc-item { border-left: 3px solid var(--deadline); }
.outlets { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.outlet { font-size: 11.5px; font-weight: 600; color: var(--accent-ink); background: var(--surface); border: 1px solid var(--rule-strong); border-radius: 999px; padding: 3px 10px; text-decoration: none; }
.outlet:hover { border-color: var(--accent); background: #f3f7fc; color: var(--accent-ink); }

/* participate — docket links + action links */
.docket-links { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin-bottom: 16px; }
@media (min-width: 720px) { .docket-links { grid-template-columns: repeat(4, 1fr); } }
.docket-link {
  display: grid; grid-template-columns: auto 1fr auto; align-items: baseline; gap: 8px;
  text-decoration: none; background: var(--surface); border: 1px solid var(--rule); border-left: 3px solid var(--accent);
  border-radius: 5px; padding: 9px 12px;
}
.docket-link:hover { border-color: var(--accent); background: #f3f7fc; }
.docket-link .dl-item { font-family: var(--font-serif); font-weight: 700; color: var(--accent); font-size: 14px; }
.docket-link .dl-rto { font-weight: 600; color: var(--ink); font-size: 13px; }
.docket-link .dl-no { font-size: 10.5px; color: var(--text-muted); }
.action-links { display: grid; gap: 8px; }
@media (min-width: 720px) { .action-links { grid-template-columns: repeat(3, 1fr); } }
.action-link {
  display: flex; flex-direction: column; gap: 2px; text-decoration: none;
  background: var(--surface); border: 1px solid var(--rule); border-radius: 5px; padding: 11px 13px;
}
.action-link:hover { border-color: var(--accent); background: #f3f7fc; }
.action-link strong { color: var(--accent-ink); font-size: 14px; }
.action-link span { color: var(--text-muted); font-size: 12.5px; line-height: 1.35; }

/* source chips */
.srcs { margin-top: 10px; display: flex; flex-wrap: wrap; gap: 5px; align-items: center; }
.srcs .label { margin-right: 2px; }
.src-chip {
  font-family: var(--font-mono); font-size: 10.5px; font-weight: 600; text-decoration: none;
  color: var(--accent-ink); background: var(--surface-2); border: 1px solid var(--rule-strong);
  border-radius: 4px; padding: 1px 7px; line-height: 1.7; white-space: nowrap;
}
.src-chip:hover { background: #e3ecf6; color: var(--accent-ink); border-color: var(--accent); }
.src-chip[data-tier="doe"] { border-left: 3px solid var(--tier-doe); }
.src-chip[data-tier="ferc"] { border-left: 3px solid var(--tier-ferc); }
.src-chip[data-tier="order"] { border-left: 3px solid var(--tier-order); border-style: dashed; }
.src-chip[data-tier="secondary"] { border-left: 3px solid var(--accent); }

/* provenance */
.provenance { margin: 34px 0 10px; background: var(--surface); border: 1px solid var(--rule-strong); border-radius: 6px; }
.provenance > summary { cursor: pointer; padding: 14px 16px; font-weight: 700; color: var(--masthead); list-style: none; }
.provenance > summary::-webkit-details-marker { display: none; }
.provenance > summary::before { content: "▸ "; font-family: var(--font-mono); color: var(--accent); }
.provenance[open] > summary::before { content: "▾ "; }
.provenance-body { padding: 4px 18px 18px; border-top: 1px solid var(--rule); font-size: 14px; color: #2b3744; }
.provenance-body h4 { color: var(--masthead); margin: 14px 0 5px; font-size: 14px; }
.provenance-body p { margin-bottom: 8px; max-width: 86ch; }
.provenance-body ul { margin: 0 0 8px 18px; }
.provenance-body li { margin-bottom: 5px; }
.legend { display: flex; flex-wrap: wrap; gap: 14px; margin: 10px 0; }
.legend span { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; }
.legend i { width: 12px; height: 12px; border-radius: 3px; display: inline-block; }

.noscript { background: var(--deadline-bg); border: 1px solid #e6c3b0; border-radius: 6px; padding: 14px; margin-top: 20px; }

/* footer */
.footer { margin-top: 40px; background: var(--masthead); color: #cdd9e8; border-top: 3px solid var(--accent); }
.footer-inner { padding-block: 22px 28px; }
.footer p { font-size: 13px; max-width: 90ch; }
.footer strong { color: #fff; }
.footer a { color: #fff; text-underline-offset: 3px; }
.footer a:hover { color: #f6d27a; }
.footer-meta { margin-top: 8px; color: #8fa6c4; font-size: 12px; }

/* motion / a11y */
@media (prefers-reduced-motion: reduce) {
  .panel { animation: none; }
  .cat-chev { transition: none; }
  .skip-link { transition: none; }
}
