/* Opinionated Systems — the one stylesheet.
   Banknote idiom (after csszengarden.com/126 "C-Note"): intaglio green-black
   ink on note paper, guilloché lattice at the head, engraved letterspaced
   caps, double-hairline certificate rules, square corners. The Tufte rules
   underneath are unchanged: type carries the page, color is strictly
   semantic, and no number renders without its denominator. */

:root {
  --ink: #212823;      /* intaglio green-black */
  --paper: #f0efe6;    /* note paper — warm cream, kept off-white so light mode isn't a stark white ground */
  --muted: #5d6b5d;    /* the C-Note gray-green, darkened for contrast */
  --rule: #d5dacb;
  --rule-soft: #e4e7da;
  --up: #266b45;       /* treasury green — supports / hit, semantic only */
  --down: #8f2f28;     /* seal red — challenges / miss, semantic only */
  --accent: #42557b;   /* guilloché slate — interactive elements only */
  --neutral: #8f9588;  /* the grey midpoint between --up and --down (ticker statement bars) */
  --affil: #7a5a1f;    /* bronze: a call about the speaker's (former) employer */
  --qa: #b8641a;       /* burnt orange: controls only QA reviewers and admins see */
  --qa-watermark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='28'%3E%3Ctext x='6' y='18' transform='rotate(-14 28 14)' font-family='monospace' font-size='10' font-weight='700' letter-spacing='0.5' fill='%23b8641a' fill-opacity='0.16'%3EQ%26amp;A%3C/text%3E%3C/svg%3E");
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --serif: Georgia, "Times New Roman", serif;
  --display: Didot, "Bodoni MT", "Bodoni 72", "GFS Didot", Georgia, serif;
  /* vertical rhythm scale — every gap derives from these, so stacked
     components share one grid instead of drifting on hand-picked rems */
  --space-xs: 0.4rem;
  --space-sm: 0.7rem;
  --space: 1.4rem;    /* one rhythm unit */
  --space-lg: 2.1rem;
  --space-xl: 2.8rem;
  /* content measures: prose reads narrow (--measure), the page frame is wider.
     --frame stays at the current 44rem for now — the research-sidebar rail
     geometry is pinned to it; widening it needs a coordinated rail pass. */
  --measure: 36rem;   /* text column */
  --frame: 44rem;     /* page frame */
  /* one quiet surface tint — depth without chrome */
  --surface: color-mix(in srgb, var(--ink) 4%, var(--paper));
  /* ground behind transparent logos/marks — stays LIGHT in both themes
     (brand marks are drawn for light grounds; the assets themselves ship
     with transparency so this is the only place the ground is chosen) */
  --logo-chip: #f7f6ef;
  --tint-accent: color-mix(in srgb, var(--accent) 9%, transparent);
  --tint-up: color-mix(in srgb, var(--up) 12%, transparent);
  --tint-down: color-mix(in srgb, var(--down) 12%, transparent);
  /* engine-turned lattice line, for the masthead band */
  --lattice: color-mix(in srgb, var(--muted) 55%, transparent);
}

/* Dark plate. TWO triggers, ONE palette — keep the token blocks below in
   sync. The OS setting applies it by default (guarded with :not([data-theme
   ="light"]) so an explicit Light choice from the nav toggle still wins), and
   an explicit data-theme="dark" applies it regardless of the OS. A bare
   :root (light, above) is the base; data-theme is set by js/theme.js from the
   saved preference, or left unset to follow the OS. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ink: #e4e8dc;    /* pale sage — ink on the engraver's plate */
    --paper: #141713;
    --muted: #97a292;
    --rule: #2c3129;
    --rule-soft: #232720;
    --up: #79b893;
    --down: #d18f85;
    --accent: #94aacf;
    --neutral: #646a62;
    --affil: #d2b06a;
    --qa: #e39a52;
    --qa-watermark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='28'%3E%3Ctext x='6' y='18' transform='rotate(-14 28 14)' font-family='monospace' font-size='10' font-weight='700' letter-spacing='0.5' fill='%23e39a52' fill-opacity='0.16'%3EQ%26amp;A%3C/text%3E%3C/svg%3E");
    /* Graph kind palette, lifted for the dark plate — the light values are
       mid-tone and go muddy against #141713. Same hues, so a kind keeps its
       identity across themes. */
    --k-company: #8fabd8;
    --k-security: #79bda6;
    --k-person: #c6a570;
    --k-filing: #b3a3c4;
    --k-prediction: #d8a48c;
  }
}
:root[data-theme="dark"] {
    --ink: #e4e8dc;    /* pale sage — ink on the engraver's plate */
    --paper: #141713;
    --muted: #97a292;
    --rule: #2c3129;
    --rule-soft: #232720;
    --up: #79b893;
    --down: #d18f85;
    --accent: #94aacf;
    --neutral: #646a62;
    --affil: #d2b06a;
    --qa: #e39a52;
    --qa-watermark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='28'%3E%3Ctext x='6' y='18' transform='rotate(-14 28 14)' font-family='monospace' font-size='10' font-weight='700' letter-spacing='0.5' fill='%23e39a52' fill-opacity='0.16'%3EQ%26amp;A%3C/text%3E%3C/svg%3E");
    /* Graph kind palette, lifted for the dark plate — the light values are
       mid-tone and go muddy against #141713. Same hues, so a kind keeps its
       identity across themes. */
    --k-company: #8fabd8;
    --k-security: #79bda6;
    --k-person: #c6a570;
    --k-filing: #b3a3c4;
    --k-prediction: #d8a48c;
}

* { box-sizing: border-box; }

/* the hidden attribute must always win, whatever display the element has */
[hidden] { display: none !important; }

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

body {
  margin: 0;
  font: 17px/1.55 var(--serif);
  color: var(--ink);
  background: var(--paper);
  /* the page itself never scrolls sideways; wide tables scroll inside their
     own .table-scroll instead of being clipped off the right edge (mobile) */
  overflow-x: hidden;
}

/* the note's engraved edge: an engine-turned band across every page head */
body::before {
  content: "";
  display: block;
  height: 9px;
  background:
    repeating-linear-gradient(45deg, var(--lattice) 0 1px, transparent 1px 4px),
    repeating-linear-gradient(-45deg, var(--lattice) 0 1px, transparent 1px 4px);
  border-bottom: 1px solid var(--rule);
}

main {
  max-width: var(--frame);
  margin: 0 auto;
  padding: var(--space-lg) 1.25rem calc(var(--space) * 4);
}
/* With the research rail mounted, the frame is centred only while the right
   margin can hold the rail column (2.5rem gap + 22.5rem + 1.25rem gutter =
   26.25rem). Narrower than that, the frame slides LEFT instead of the rail
   collapsing into a bottom sheet — a browser side panel (the extension) eats
   ~30rem, and at 94rem the old threshold sheeted the rail on every laptop
   with the panel open. The sheet now starts where frame + rail column no
   longer fit at all: 44 + 26.25 = 70.25rem. .rail's `left` uses the SAME
   expression; keep them in sync. */
body.has-rail main,
body.has-rail header nav,
body.has-rail .release-footer,
body.has-rail .page-feedback {
  margin-left: max(0px, min(calc((100% - var(--frame)) / 2), calc(100% - 70.25rem)));
  margin-right: auto;
}
@media (max-width: 70.25rem) {
  /* rail is a bottom sheet here: nothing to make room for, centre again */
  body.has-rail main,
  body.has-rail header nav,
  body.has-rail .release-footer,
  body.has-rail .page-feedback { margin-left: auto; }
  /* clear the closed sheet's head, which sits over the page's last lines */
  body.has-rail .release-footer { padding-bottom: calc(var(--space) * 3); }
}

/* the app's version (js/release.js): one line of microprint in the page
   frame, drawn up into <main>'s bottom padding */
.release-footer {
  max-width: var(--frame);
  box-sizing: border-box;
  margin: calc(var(--space) * -2.5) auto 0;
  padding: 0 1.25rem var(--space-lg);
}

/* the QA page feedback box (js/page-feedback.js, docs/plans/page-qa-feedback.md
   section 2). The element is always right after <main>.
   In the page flow (the default, and the class .in-flow): the frame column,
   main's side padding. Its bottom margin clears the release footer's
   negative top margin, plus one rhythm unit. */
.page-feedback {
  max-width: var(--frame);
  box-sizing: border-box;
  margin: 0 auto calc(var(--space) * 3.5);
  padding: 0 1.25rem;
  font-size: 0.85rem;                  /* the rail's scale */
}
/* In the left page margin: a window wider than 87rem (the box's 14rem, the
   1.25rem gutter and a 1.5rem gap fit the margin of body.has-rail main) and
   no margin picture shown (page-feedback.js sets .in-flow otherwise). The
   margin is the SAME expression as body.has-rail main; keep them in sync.
   Its top is the rail's (alignRail sets --rail-top; 4.75rem is .rail's own
   top when alignRail leaves it unset). At most 20.8rem wide (owner,
   2026-10-19: "+30% width please" on 16rem); narrower margins shrink it. */
@media (min-width: 87rem) {
  body.has-rail .page-feedback:not(.in-flow) {
    position: fixed;
    top: var(--rail-top, 4.75rem);
    left: 1.25rem;
    width: min(20.8rem, calc(max(0px, min(calc((100% - var(--frame)) / 2), calc(100% - 70.25rem))) - 2.75rem));
    max-height: calc(100vh - var(--rail-top, 4.75rem) - 1.25rem);
    overflow-y: auto;
    margin: 0;
    padding: 0;
    z-index: 20;
  }
}
.page-feedback .page-feedback-zone { margin: 0; }
/* the rail title's type, so the two heads read as one row (scoped: .label,
   later in this sheet, sets its own size) */
.page-feedback .page-feedback-head { margin: 0 0 0.4rem; font-size: 0.72rem; letter-spacing: 0.09em; }
.page-feedback-form { max-width: none; display: flex; flex-direction: column; align-items: flex-start; gap: 0.4rem; }
.page-feedback-quote { margin: 0; font-style: italic; color: var(--muted); overflow-wrap: anywhere; }
.page-feedback-quote button.quiet { min-height: 0; padding: 0 0.4rem; font-style: normal; }
.page-feedback-input {
  margin: 0; padding: 0.35rem; font-size: 0.85rem; resize: vertical;
  background: var(--paper);
}
.page-feedback-input[aria-invalid="true"] { border-color: var(--accent); outline: 1px solid var(--accent); }
.page-feedback .page-feedback-note { margin: 0; }  /* .status, later, sets a top margin */
.page-feedback-list {
  list-style: none; margin: 0.6rem 0 0; padding: 0;
  display: flex; flex-direction: column; gap: 0.5rem;
}
.page-feedback-list:empty { display: none; }
/* entries carry the margin-note rule, as the rail's do */
.page-feedback-entry { border-left: 2px solid var(--rule); padding-left: 0.5rem; overflow-wrap: anywhere; }
.page-feedback-entry .event-meta { margin-top: 0; }
.page-feedback-entry-text { display: block; }

/* ---- type scale: engraved display caps over Georgia text ---------------- */

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 500;
  line-height: 1.25;
  text-wrap: balance;
}
h1 {
  font-size: 1.4rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin: 0 0 var(--space);
}
h2 {
  font-size: 1.18rem;
  font-variant-caps: small-caps;
  letter-spacing: 0.08em;
  margin: var(--space-xl) 0 var(--space-sm);
  padding-bottom: var(--space-xs);
  border-bottom: 3px double var(--rule);
}
/* h3 is a sub-section divider; a single hairline relates it to .band-head
   without the heavier double-rule the page heading (h2) carries */
h3 {
  font-size: 1.05rem;
  letter-spacing: 0.02em;
  margin: var(--space-lg) 0 var(--space-sm);
  padding-bottom: var(--space-xs);
  border-bottom: 1px solid var(--rule-soft);
}

p { max-width: var(--measure); margin: var(--space-sm) 0; }
ul, ol { max-width: var(--measure); }

a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.15em;
  text-decoration-color: color-mix(in srgb, var(--accent) 45%, transparent);
}
a:hover { text-decoration-color: var(--accent); }

/* statement links read as prose, not chrome */
a.plain { color: inherit; text-decoration: none; }
a.plain:hover { text-decoration: underline; text-decoration-color: var(--muted); }

hr {
  border: 0;
  border-top: 3px double var(--rule);
  margin: calc(var(--space) * 1.5) 0;
}

/* page inscription: the microprint line under a page h1 naming the surface's
   nature on the shared/private axis (like a note stating what it is) */
h1 + p.label { margin: -1.1rem 0 0.9rem; }

/* labels above data — mono microprint, letterspaced */
.label {
  font-family: var(--mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.11em;
  color: var(--muted);
}

/* numbers align in columns; every figure carries its denominator inline */
.num { font-family: var(--mono); font-size: 0.92em; font-variant-numeric: tabular-nums; white-space: nowrap; }
/* a heading with an inline action (e.g. a share button) beside the title text */
.title-with-action { display: flex; align-items: baseline; gap: 0.75rem; flex-wrap: wrap; }
.title-with-action .title-action button { font-size: 0.8rem; }
/* leaderboard sits above the voices directory — separate them with the site's
   double-rule so the two lists don't run together */
#leaderboard-sec { border-bottom: 3px double var(--rule); padding-bottom: 1.5rem; margin-bottom: 1.75rem; }
/* by-security holdings: a dense, reader-sortable table (click a header to sort,
   a row to reveal that security's filings) */
table.holdings th.sortable { cursor: pointer; user-select: none; white-space: nowrap; }
table.holdings th.sortable:hover { color: var(--ink); }
table.holdings th[aria-sort="ascending"]::after { content: " ▲"; font-size: 0.65em; vertical-align: middle; }
table.holdings th[aria-sort="descending"]::after { content: " ▼"; font-size: 0.65em; vertical-align: middle; }
table.holdings tr.sec-row { cursor: pointer; }
table.holdings tr.sec-row:hover td,
table.holdings tr.sec-row[aria-expanded="true"] td { background: var(--rule-soft); }
table.holdings tr.sec-detail > td { padding: 0.25rem 0.75rem 0.9rem; }
/* Ticker + company stacked in the merged "Security" cell: ticker leads, the
   company name sits quieter beneath it. */
.sec-ticker { display: block; font-family: var(--mono); }
.sec-company { display: block; font-size: 0.85em; color: var(--muted); margin-top: 0.05rem; }
.denom { color: var(--muted); font-size: 0.85em; }
/* credibility column: one uniform size; color alone carries the tier signal */
.cred { font-size: 0.9em; }
.cred-ok { color: var(--up); }
.cred-bad { color: var(--down); }
.cred-muted { color: var(--muted); }

.up { color: var(--up); }
.down { color: var(--down); }
.muted { color: var(--muted); }

/* ---- shell nav: the note's title strip ---------------------------------- */

header nav {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.35rem 1.1rem;
  max-width: 44rem;
  margin: 0 auto;
  padding: 0.9rem 1.25rem 0.75rem;
  border-bottom: 1px solid var(--rule-soft);
  font-family: var(--mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.09em;
}
header nav a {
  text-decoration: none;
  padding: 0.35rem 0;   /* honest touch target without visual bulk */
}
header nav a[aria-current="page"] {
  color: var(--ink);
  border-bottom: 2px solid var(--accent);
}
header nav .nav-id {
  margin-left: auto;
  display: inline-flex;
  align-items: baseline;
  gap: 1.1rem;
}
header nav .nav-right { text-transform: none; letter-spacing: 0; }
/* theme toggle: a nav-native control (System / Light / Dark), styled as the
   mono nav text so it reads as part of the title strip, not a form button.
   Stays visible on mobile (unlike the email, which yields). */
header nav button.theme-toggle {
  font: inherit;
  text-transform: inherit;
  letter-spacing: inherit;
  color: var(--muted);
  background: none;
  border: 0;
  padding: 0.35rem 0;
  cursor: pointer;
}
header nav button.theme-toggle:hover { color: var(--ink); }

@media (max-width: 40rem) {
  header nav .nav-right { display: none; }  /* email yields to the links */
  /* the six links keep the desktop order and share the first line on a
     phone (owner, 2026-10-12: a reordered strip with Channels wrapped to the
     second line read as a different menu). The side padding matches main's,
     so the strip lines up with the page; the gaps and tracking tighten, and
     the size steps down only below ~390px. */
  header nav {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
    column-gap: 0.7rem;
    letter-spacing: 0.05em;
    font-size: clamp(0.62rem, 2.9vw, 0.72rem);
  }
  header nav .nav-id { gap: 0.9rem; }

  /* reclaim edge width; the release line keeps main's edge */
  main, .release-footer, .page-feedback { padding-left: 0.75rem; padding-right: 0.75rem; }
  .co-name-sm { max-width: 8rem; }
}

/* ---- forms: quiet, obvious focus --------------------------------------- */

form { max-width: 28rem; }
/* thesis intake: as wide as the theses table above it, not the generic
   28rem login-style form — a multi-line thesis reads cramped in a narrow box
   sitting under a table that spans the whole center column. */
#intake-form, #confirm-form { max-width: none; }
label { display: block; margin-bottom: 0.9rem; }
input[type="email"],
input[type="text"],
input[type="url"],
input[type="number"],
textarea {
  display: block;
  width: 100%;
  margin-top: 0.35rem;
  padding: 0.6rem 0.65rem;
  font: inherit;          /* 17px base also prevents iOS focus zoom */
  color: inherit;
  background: transparent;
  border: 1px solid var(--rule);
  border-radius: 0;
}
/* Browser autofill paints its own yellow. Chrome ignores background on
   :autofill, so an opaque inset shadow covers it; the fill is the accent
   tint over paper so an autofilled field still reads as filled, in our ink. */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
textarea:-webkit-autofill,
input:autofill,
textarea:autofill {
  -webkit-box-shadow: 0 0 0 1000px color-mix(in srgb, var(--accent) 9%, var(--paper)) inset;
  box-shadow: 0 0 0 1000px color-mix(in srgb, var(--accent) 9%, var(--paper)) inset;
  -webkit-text-fill-color: var(--ink);
  caret-color: var(--ink);
}
input:focus-visible, textarea:focus-visible,
button:focus-visible, a:focus-visible, summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
button {
  font-family: var(--mono);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  min-height: 2.6rem;     /* comfortable touch target */
  padding: 0.5rem 1.4rem;
  color: var(--paper);
  background: var(--accent);
  border: 0;
  border-radius: 0;
  cursor: pointer;
}
button[disabled] { opacity: 0.5; cursor: default; }

/* secondary actions: quiet outline, same target size */
button.quiet, a.quiet {
  font-family: var(--mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  min-height: 2rem;
  padding: 0.25rem 0.7rem;
  color: var(--accent);
  background: transparent;
  border: 1px solid var(--rule);
  border-radius: 0;
  cursor: pointer;
  text-decoration: none;
}
button.quiet:hover, a.quiet:hover { border-color: var(--accent); }

/* status lines rendered by JS — text only, never markup */
.status { margin-top: 1rem; }
.status.error { color: var(--down); }
.status:empty { margin: 0; }

/* ---- data tables ------------------------------------------------------- */
/* Wide tables scroll inside their own container; the page never scrolls
   sideways. */

.table-scroll { overflow-x: auto; max-width: 100%; -webkit-overflow-scrolling: touch; }
table {
  border-collapse: collapse;
  width: 100%;
  margin: 0.4rem 0;
}
th {
  text-align: left;
  font-family: var(--mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.11em;
  color: var(--muted);
  font-weight: 400;
  border-bottom: 1px solid var(--rule);
  padding: 0.35rem 0.9rem 0.35rem 0;
  white-space: nowrap;
}
td {
  padding: 0.55rem 0.9rem 0.55rem 0;
  border-bottom: 1px solid var(--rule-soft);
  vertical-align: baseline;
}
td:last-child, th:last-child { padding-right: 0; }
td .event-meta { display: block; margin-top: 0.1rem; }

/* ---- event lists: statements as prose, metadata as a quiet suffix ------ */

ul.events { list-style: none; margin: 0.4rem 0 0; padding: 0; }
ul.events li {
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--rule-soft);
  max-width: none;
}
ul.events li:last-child { border-bottom: 0; }
/* Theme subheader inside a stance's evidence list — leads each grouped run of
   rows (byThemeSize). Quieter than the stance .label above it, and it heads
   rows rather than being one, so no rule line. */
ul.events li.theme-head {
  padding: 0.85rem 0 0.1rem;
  border-bottom: 0;
  font-family: var(--mono);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
}
ul.events li.theme-head:first-child { padding-top: 0.2rem; }
/* a site's feeds, nested under one host header on the voice page — indented,
   tighter, and quieter than a top-level channel row */
ul.events.channel-sub { margin: 0.3rem 0 0 1.1rem; }
ul.events.channel-sub li { padding: 0.28rem 0; border-bottom: 0; font-size: 0.95em; }
.event-meta {
  font-family: var(--mono);
  font-size: 0.72rem;
  line-height: 1.6;
  color: var(--muted);
  display: block;
  margin-top: 0.25rem;
}
.event-meta a { color: var(--muted); }
.event-meta a:hover { color: var(--accent); }

/* officials-trading list: politician heads the group, each disclosed trade a
   compact indented line beneath (no trade merged into another) */
.official-head { margin-bottom: 0.15rem; }
.official-trade { padding: 0.1rem 0 0.1rem 1rem; line-height: 1.5; }
.official-trade .event-meta { display: inline; margin-top: 0; }

/* ---- ticker headings carry their counts inline ------------------------- */

.ticker-head {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.35rem 0.8rem;
  margin: calc(var(--space) * 1.4) 0 0;
}
.ticker-head h1, .ticker-head h3 { margin: 0; }
/* company name beside the ticker symbol — named, never a bare symbol */
.ticker-head h1 .co-name {
  font-weight: 400; font-size: 0.9rem; color: var(--muted);
  margin-left: 0.6rem; letter-spacing: 0;
}
/* Wikidata one-line company description under the header */
p.co-descr { margin: 0.15rem 0 0.6rem; font-size: 0.95rem; max-width: 44rem; }
/* compact company name under a ticker in tables — truncated so it can't widen
   the column (keeps narrow/mobile layouts from overflowing) */
.co-name-sm {
  display: block; font-size: 0.78rem; font-weight: 400; color: var(--muted);
  max-width: 11rem; overflow: hidden; text-overflow: ellipsis;
  white-space: nowrap; margin-top: 0.1rem; letter-spacing: 0;
}
.ticker-head h3 { font-family: var(--mono); font-size: 1rem; letter-spacing: 0; }
.ticker-head .spacer { flex: 1; }

/* ---- panels: one quiet surface, framed like a certificate --------------- */

.panel {
  background: var(--surface);
  border: 3px double var(--rule);
  padding: 0.9rem 1.1rem;
  margin: 0.8rem 0;
}
.panel > :first-child { margin-top: 0; }
.panel > :last-child { margin-bottom: 0; }
.panel ul.events li:last-child { border-bottom: 0; padding-bottom: 0.2rem; }

/* table rows that lead somewhere respond to the pointer */
tbody tr:has(a):hover td { background: var(--tint-accent); }

/* ---- pills: status as text, semantic color only ------------------------ */

.pill {
  font-family: var(--mono);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border: 1px solid var(--rule);
  padding: 0.12rem 0.45rem;
  white-space: nowrap;
  background: var(--surface);
}
.pill.up { border-color: var(--up); color: var(--up); background: var(--tint-up); }
.pill.down { border-color: var(--down); color: var(--down); background: var(--tint-down); }
/* Disclosed official-trade flag: not a value judgment (not up/down) — a
   notable-attention signal. Accent, not a semantic colour; bold + ⚑ so the
   "an official traded this" flag reads at a glance. */
.pill.flag {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--tint-accent);
  font-weight: 600;
}
/* committee-access overlap — the insider-access signal, stronger than .flag */
.pill.access {
  border-color: var(--accent);
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 18%, transparent);
  font-weight: 700;
}
.access-flag { color: var(--accent); font-weight: 600; }
/* Rows an official traded carry a quiet accent rail so the signal is prominent
   down the whole idea row, not just in its cell. The rail is an inset shadow on
   the left edge, so the desk's first column needs a left gutter (header + body,
   to keep the column aligned) or the ticker butts right against the rail. */
.desk-table th:first-child, .desk-table td:first-child { padding-left: 0.75rem; }
tr.has-officials > td:first-child { box-shadow: inset 0.18rem 0 0 var(--accent); }
/* the ⚑ officials pill wraps below the ticker in the desk name cell — give it
   vertical breathing room so it isn't cramped against the symbol */
tr.lead td:first-child .pill.flag { display: inline-block; margin-top: 0.3rem; }

/* ---- stance history: bare inline sparkbar, no chart library ------------- */

.spark-fig { margin: 0.8rem 0 0; }
.spark { display: flex; align-items: flex-end; gap: 2px; height: 2.2rem; }
.spark span { width: 5px; background: var(--rule); }
.spark span.up { background: var(--up); }
.spark span.down { background: var(--down); }

/* ---- premise tests: a filed figure's series against its threshold -------- */

.premise-tests { list-style: none; padding-left: 0; margin: var(--space-xs) 0; }
.premise-tests > li { margin-bottom: var(--space-xs); }
.premise-series { display: block; max-width: 100%; height: auto; margin-top: 0.2rem; }
.premise-series rect { fill: var(--neutral); }
.premise-series rect.derived { fill: var(--rule); }
.premise-series line.threshold { stroke: var(--ink); stroke-width: 1; stroke-dasharray: 3 2; }
.premise-test-form form { margin: var(--space-xs) 0; }

/* ---- backfill progress: horizontal fill bars, no chart library ---------- */

.bf-agg { display: flex; align-items: baseline; gap: 0.6rem 1.1rem;
  flex-wrap: wrap; margin: 0.6rem 0 1rem; }
.bf-agg .bf-headline { font-size: 1.5rem; font-variant-numeric: tabular-nums;
  color: var(--accent); font-weight: 600; }
/* one wide bar for the whole universe, mirrors the per-row track */
.bf-overall { height: 0.7rem; border: 1px solid var(--rule);
  background: var(--surface); border-radius: 2px; overflow: hidden;
  width: 100%; max-width: 44rem; margin: 0.2rem 0 0.4rem; }
.bf-overall > i { display: block; height: 100%; background: var(--accent);
  transition: width 0.5s ease; }

.bf-list { display: grid;
  grid-template-columns: minmax(4rem, max-content) 1fr minmax(3rem, max-content);
  align-items: center; gap: 0.3rem 0.7rem; max-width: 44rem;
  margin: 0.4rem 0; }
.bf-list .bf-sym { font-family: ui-monospace, Menlo, monospace;
  font-size: 0.85rem; }
.bf-list .bf-sym.off { color: var(--muted); }
.bf-track { height: 0.6rem; border: 1px solid var(--rule);
  background: var(--surface); border-radius: 2px; overflow: hidden; }
.bf-track > i { display: block; height: 100%; background: var(--accent);
  transition: width 0.5s ease; }
.bf-track.done > i { background: var(--up); }
.bf-track.err { border-color: var(--down); }
.bf-pct { font-variant-numeric: tabular-nums; font-size: 0.8rem;
  text-align: right; color: var(--muted); }
.bf-pct.done { color: var(--up); }

/* ---- admin: collapsible sections (native <details>, no JS) -------------- */
details.admin-section { border-top: 1px solid var(--rule); margin: 0.4rem 0; }
details.admin-section > summary,
details.admin-group > summary {
  cursor: pointer; list-style: none; display: flex; align-items: center;
  gap: 0.5rem;
}
details.admin-section > summary::-webkit-details-marker,
details.admin-group > summary::-webkit-details-marker { display: none; }
details.admin-section > summary::before,
details.admin-group > summary::before {
  content: "\25B8"; color: var(--muted); transition: transform 0.15s ease;
  flex: none;
}
details.admin-section[open] > summary::before,
details.admin-group[open] > summary::before { transform: rotate(90deg); }
details.admin-section > summary {
  padding: 0.7rem 0; font-size: 1.2rem; font-weight: 600; color: var(--ink);
}
details.admin-group { margin: 0.45rem 0; }
details.admin-group > summary { padding: 0.3rem 0; font-size: 0.95rem; }
details.admin-group > summary .grp-title { font-weight: 600; }
/* the disclosure focus ring should track the row, not the glyph */
details > summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ---- ticker desk (Plate 5) ---------------------------------------------- */

.thesis-strip {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.35rem 0.9rem;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  padding: 0.6rem 0;
  margin: 0.9rem 0;
}
.thesis-strip .grow { flex: 1; min-width: 12rem; }
.price-canvas { margin: calc(var(--space) * 1.2) 0; }
.price-canvas svg { display: block; }
.price-canvas figcaption { margin-top: 0.35rem; }
.price-canvas g.mark { cursor: help; }
.price-canvas g.mark:hover circle:not([fill="transparent"]),
.price-canvas g.mark:hover rect { stroke-width: 3; }

blockquote.quote {
  margin: 0.45rem 0 0.2rem;
  padding-left: 0.8rem;
  border-left: 2px solid var(--rule);
  color: var(--muted);
  font-style: italic;
  max-width: 34rem;
}

/* folded evidence: native details, quiet marker */
details.quote-fold { margin: 0.3rem 0 0.1rem; }
details.quote-fold summary { cursor: pointer; width: fit-content; }
details.quote-fold summary:hover { color: var(--accent); }

/* ---- intake parse-confirm: editable premise blocks ---------------------- */

fieldset.premise {
  border: 1px solid var(--rule);
  margin: 0 0 0.9rem;
  padding: 0.7rem 0.9rem;
}
fieldset.premise legend {
  font-family: var(--mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.11em;
  color: var(--muted);
  padding: 0 0.3rem;
}

/* suggested-ticker chips */
#suggestion-chips button {
  margin: 0 0.35rem 0.3rem 0;
  font-family: var(--mono);
  font-size: 0.72rem;
}
#suggestion-chips button[disabled] { opacity: 0.45; }

/* ticker typeahead (universe add form) */
.suggest-wrap { position: relative; display: block; }
ul.suggest {
  position: absolute;
  left: 0; right: 0;
  z-index: 20;
  margin: 2px 0 0;
  padding: 0;
  list-style: none;
  background: var(--paper);
  border: 1px solid var(--rule);
  max-height: 16rem;
  overflow-y: auto;
  box-shadow: 0 2px 8px color-mix(in srgb, var(--ink) 12%, transparent);
}
ul.suggest li {
  padding: 0.45rem 0.65rem;
  cursor: pointer;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
ul.suggest li .num { font-family: var(--mono); }
ul.suggest li:hover, ul.suggest li.active { background: var(--tint-accent); }
/* the follow search's last line says what was found: it wraps, never cut */
ul.suggest li.suggest-note { white-space: normal; cursor: default; }
ul.suggest li.suggest-note:hover { background: none; }

/* sources add-forms */
form.add-form { margin: 0.9rem 0 0; }
form.add-form .status { margin-top: 0.4rem; }
/* Clear separation below the "Follow a voice" box before the directory table. */
#follow-voice { margin-bottom: 2.75rem; }

/* sources: a followed show expanded into its imported episodes */
tr.feed-episodes > td { padding-left: 0.9rem; }
/* Podcast show-detail panel: a real header (hosts/stats/description) +
   paginated episodes, opened in place of the old raw-RSS title link. */
button.linklike { background: none; border: none; padding: 0; margin: 0;
  color: var(--link, #94aacf); font: inherit; cursor: pointer;
  text-align: left; text-decoration: underline;
  /* a link inside a line of text: undo the global button's touch-target
     height (it pushed the line apart) and its uppercase label */
  min-height: 0; line-height: inherit; vertical-align: baseline;
  text-transform: none; letter-spacing: inherit; }
/* The detail panel reads as PART OF the show above it: an accent bar down
   the left, an inset background, and (on mobile) NO top-border separator —
   the flat separator made it look like a separate show entirely. */
tr.show-detail > td {
  padding: 0.75rem 0.9rem 0.9rem;
  border-left: 3px solid var(--accent);
  background: var(--surface);
}
/* the panel is its row's last cell: keep its right padding against the desk
   table's `td:last-child { padding-right: 0 }`, which ran the text and the
   "more" toggles into the panel's edge */
table.source-table tr.show-detail > td { padding-right: 0.9rem; }
/* the panel is not one link: hovering it must not tint it like a row */
tbody tr.show-detail:hover > td { background: var(--surface); }
tr.show-detail .show-detail-title { margin: 0 0 0.15rem; font-size: 1.02rem; }
tr.show-detail .actions { display: flex; align-items: center; gap: 0.75rem;
  margin-top: 0.6rem; }
/* Show / channel detail (channels.html renderDetail): header, search, then
   the items, each set apart by a full rule. The preview image sits left: a
   video's at 16:9, an episode's square. */
/* a followed source's text column folds its detail in and out */
.source-row.activates { cursor: pointer; }
.detail-head {
  display: grid; grid-template-columns: 64px minmax(0, 1fr);
  column-gap: 0.8rem; align-items: start;
}
.detail-head-body > p { margin: 0.1rem 0; max-width: none; }
.detail-head .detail-stats { margin-top: 0; }
.detail-search {
  display: flex; align-items: baseline; gap: 0.6rem;
  margin: 0.9rem 0 0; padding-bottom: 0.45rem; border-bottom: 1px solid var(--rule);
}
.detail-search .detail-search-box {
  flex: 1 1 auto; min-width: 0; max-width: 28rem;
  font: inherit; font-size: 0.9rem; padding: 0.25rem 0.45rem;
  border: 1px solid var(--rule); border-radius: 2px;
  background: var(--paper); color: inherit;
}
.detail-search .detail-search-box:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.detail-search .detail-count { margin-left: auto; white-space: nowrap; font-family: var(--mono); font-size: 0.72rem; }
ul.detail-items { list-style: none; margin: 0; padding: 0; max-width: none; }
ul.detail-items > li {
  display: grid; grid-template-columns: 96px minmax(0, 1fr);
  column-gap: 0.75rem; align-items: start;
  padding: 0.75rem 0; border-bottom: 1px solid var(--rule); max-width: none;
}
ul.detail-items.podcast > li { grid-template-columns: 54px minmax(0, 1fr); }
ul.detail-items > li.detail-none { display: block; }
.agent-img.thumb-wide { width: 96px; height: 54px; }
.agent-img.thumb-sq { width: 54px; height: 54px; }
/* the panel's own ground while an image loads or fails, not the logo chip,
   which flashed light in the dark theme */
img.agent-img.thumb-wide, img.agent-img.thumb-sq { background: var(--surface); }
span.agent-img.avatar-ph.thumb-sq { font-size: 18px; }
/* a video with no preview image: an empty frame, so the rows stay aligned */
span.agent-img.thumb-empty { display: block; background: var(--paper); border: 1px solid var(--rule); }
.detail-item-title { line-height: 1.35; overflow-wrap: anywhere; }
.detail-item-meta { margin-top: 0.15rem; }
.detail-item-meta .part, .detail-stats .part { white-space: nowrap; }
.detail-item-meta .item-voices { white-space: normal; }
.detail-item-meta a.voice-link { color: inherit; }
.detail-item-meta a.voice-link:hover { color: var(--accent); }
.detail-item-meta .pill { font-size: 0.6rem; padding: 0.05rem 0.35rem; }
/* long text folded to two lines; "more" (shown only when the fold cuts the
   text) sits at the end of the second line */
.desc-fold {
  display: grid; grid-template-columns: minmax(0, 1fr) auto;
  column-gap: 0.5rem; align-items: end; margin-top: 0.25rem;
}
.fold-text {
  margin: 0; max-width: none; font-size: 0.88rem; line-height: 1.45;
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2;
  line-clamp: 2; overflow: hidden; overflow-wrap: anywhere;
}
.fold-text.open { display: block; -webkit-line-clamp: unset; line-clamp: none; white-space: pre-line; }
button.linklike.fold-toggle {
  color: var(--accent); font-family: var(--mono); font-size: 0.72rem;
  text-decoration: none; white-space: nowrap;
}
button.linklike.fold-toggle:hover { text-decoration: underline; }
@media (max-width: 40rem) {
  .detail-head { grid-template-columns: 48px minmax(0, 1fr); }
  .detail-head > .agent-img.md { width: 48px; height: 48px; }
  .detail-search .detail-search-box { max-width: none; }
}
/* the show whose detail is open loses its bottom rule so the two read as one
   block, and gains the same accent so the pair is unmistakably grouped. */
tr.has-open-detail > td { border-bottom: 0; }
@media (max-width: 40rem) {
  /* kill the card separator that made the panel look like its own show */
  .stack-sm tbody tr.show-detail { border-top: 0; padding-top: 0; }
  .stack-sm tbody tr.has-open-detail { border-bottom: 0; }
  .stack-sm tbody tr.show-detail > td:first-child {
    display: block; padding: 0.75rem 0.9rem 0.9rem;  /* keep the panel padding */
  }
}
tr.feed-episodes ul.events li { padding: 0.45rem 0; }

/* identifiers (killswitch names, worker names) read as code */
.mono { font-family: var(--mono); font-size: 0.85em; }
/* admin: inline reason input sits beside its confirm/cancel buttons */
td .filter-input { max-width: 14rem; margin: 0 0.4rem 0 0; }

/* ---- sources: sub-headings, episode preview + filter -------------------- */
h3.sub { margin: calc(var(--space) * 1.2) 0 0.15rem; font-size: 1rem; }
.preview-actions { display: flex; align-items: baseline; gap: 0.6rem;
  flex-wrap: wrap; margin: 0.6rem 0; }
input.filter-input {
  width: 100%; max-width: 24rem; margin: 0.4rem 0 0.6rem;
  padding: 0.35rem 0.5rem; font: inherit;
  border: 1px solid var(--rule); border-radius: 0;
  background: var(--surface); color: var(--ink);
}

/* ---- motion: only where it means something ------------------------------ */

@media (prefers-reduced-motion: no-preference) {
  button, a, summary { transition: opacity 120ms ease, border-color 120ms ease, color 120ms ease; }
}

select {
  display: block;
  margin-top: 0.35rem;
  padding: 0.55rem 0.65rem;
  font: inherit;
  color: inherit;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 0;
}

/* Plate 3 desk table: sparkline column fixed, loudest takes the room */
table.desk-table td.loudest { min-width: 14rem; max-width: 22rem; }
table.desk-table td svg { display: block; }
/* Top-align every cell: the spark <svg>'s baseline sits at its bottom edge, so
   under baseline alignment the tall signal cell starts low and its wrapped tail
   spills onto the row rule. Top alignment lets its padding-bottom clear the
   edge. Width floor keeps short buckets from wrapping to five lines. */
table.desk-table td { vertical-align: top; }
table.desk-table td.sig { min-width: 8rem; }

/* Fit six columns inside the 44rem reading column so the desk never has to
   clip/scroll sideways on desktop: the sparkline and per-cell padding are the
   width drivers, trimmed here. Still overflowed by ~26-70px with realistic
   content (a long "N filing statements" signal + a large "· N unseen"
   backlog both grew past the original budget, user-reported 2026-08-21) —
   trimmed further and let New's backlog clause drop to its own line instead
   of padding the column out with a nowrap run. */
table.desk-table th, table.desk-table td { padding-right: 0.35rem; }
table.desk-table th:last-child, table.desk-table td:last-child { padding-right: 0; }
/* long column headers wrap rather than forcing the table past the reading column */
table.desk-table th { white-space: normal; }
table.desk-table .spark-cell svg { width: 84px; height: auto; }
table.desk-table .spark-cell { gap: 0.3rem; }
table.desk-table .ret { min-width: 2.4rem; }
table.desk-table .newdelta { max-width: 6.5rem; }
table.desk-table .newdelta .backlog { display: block; }
/* any opted-in table: let headers wrap so columns can narrow to fit the
   reading column on desktop instead of clipping/scrolling sideways */
.stack-sm th { white-space: normal; }

/* Articles listing: the free-text title is the only wrapping column. Left to
   itself it squeezes to a sliver and a long headline wraps to eight lines while
   every numeric cell sits alone on line one — a tall band of dead space. Hand
   the title the room and clamp it to two lines with an ellipsis so row height
   stays bounded; the other cells then keep their own single line too. */
#articles-table td:first-child { width: 48%; }
#articles-table td:first-child a {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
#articles-table td { vertical-align: top; }

/* ---- narrow screens: desk tables reflow to stacked cards ----------------- */
/* Below the reading column each ticker becomes a card and every cell a
   labelled line (label from the cell's data-label), so nothing is clipped and
   there is no sideways scroll. Opt-in via .stack-sm on the .table-scroll. */
@media (max-width: 40rem) {
  .stack-sm { overflow-x: visible; }
  .stack-sm table { display: block; width: 100%; }
  .stack-sm thead { display: none; }         /* labels come from data-label */
  .stack-sm tbody { display: block; }
  .stack-sm tbody tr {
    display: block;
    padding: 0.7rem 0 0.35rem;
    border-top: 1px solid var(--rule);
  }
  .stack-sm tbody tr:first-child { border-top: 0; }
  .stack-sm tbody td {
    display: flex; align-items: baseline; flex-wrap: wrap;
    /* a value too long to sit beside its label wraps to the RIGHT, still
       one unit with it (Desk's "184 scored · 208 filing statements" started
       the next line at the left edge, as if it were a new label) */
    justify-content: flex-end;
    gap: 0 0.4rem; text-align: left;
    padding: 0.16rem 0; border-bottom: 0; white-space: normal;
  }
  /* an avatar beside a name centres on it; baseline put the name on the
     image's bottom edge */
  .stack-sm tbody td.name-cell { align-items: center; }
  /* Desk's New cell: the desktop column cap squeezed the whole card line, so
     "0 new" sat at the left and the backlog fell under the label */
  .stack-sm table.desk-table .newdelta { max-width: none; }
  .stack-sm table.desk-table .newdelta .backlog { flex-basis: 100%; text-align: right; }
  /* the officials leaderboard: the rank leads the name on one line instead of
     standing alone above it */
  .stack-sm #leaderboard-table tbody td:first-child {
    display: inline-block; vertical-align: middle;
    min-width: 1.6rem; padding: 0;
  }
  .stack-sm #leaderboard-table tbody td.name-cell {
    display: inline-flex; vertical-align: middle; padding: 0;
  }
  /* label pinned left, value pieces flow together at the right as one unit */
  .stack-sm tbody td[data-label]::before {
    content: attr(data-label);
    flex: none; margin-right: auto; text-align: left;
    font-family: var(--mono); font-size: 0.64rem; text-transform: uppercase;
    letter-spacing: 0.08em; color: var(--muted);
  }
  /* first cell heads the card: full width, no label, left-aligned */
  .stack-sm tbody td:first-child {
    display: block; text-align: left;
    padding: 0 0 0.2rem;
    font-size: 1.02rem;
  }
  .stack-sm .co-name-sm { max-width: none; }
  /* the voice second tier stays prose beneath its lead, part of the same card */
  .stack-sm tbody tr.voice:not(.lead) { border-top: 0; padding-top: 0; }
  .stack-sm td.voice-line { display: block; text-align: left; padding: 0 0 0.4rem; }
  /* the spark cell keeps its own layout on the value side */
  .stack-sm .spark-cell { justify-content: flex-end; }
  /* actions (watch button / pump pill) align right without a label */
  .stack-sm td.actions { justify-content: flex-end; }
  /* the thesis stance strip wraps instead of running off the right edge
     (specificity beats the base .stance nowrap defined later in the sheet) */
  .thesis-head .stance, .deskbar .stance { white-space: normal; }
}

/* transcript: turns as prose, sentences are the seek handles */
.turn { margin: 1.1rem 0; }
.turn .label { margin: 0 0 0.15rem; }
.turn-text { max-width: 38rem; margin: 0; }
.sentence { cursor: pointer; border-radius: 2px; }
.sentence:hover { background: color-mix(in srgb, var(--accent) 12%, transparent); }
/* deliberately NOT --accent: a cited sentence needs to read as marked-up,
   the way a highlighter pen does, not as another interactive-blue element —
   translucent so it still sits on both the light and dark paper correctly.
   It also wins over a note's tint on hover and focus (.q:hover, .q:focus). */
.sentence.highlight,
.sentence.highlight:hover,
.sentence.highlight:focus { background: color-mix(in srgb, #ffd400 42%, transparent); }
audio { margin: 0.6rem 0 0.2rem; }

/* thought boundaries within a speaker's turn: a quiet gap + hairline tick */
.turn.thought { margin-top: 0.7rem; padding-top: 0.55rem; position: relative; }
.turn.thought::before {
  content: "";
  position: absolute; top: 0; left: 0;
  width: 2.2rem; border-top: 1px solid var(--rule);
}

/* Sponsor reads: marked AND faded — the whole turn recedes so an ad never
   reads as the speaker's own view; hover restores it for anyone who wants
   to actually read the copy. */
/* an advertising paragraph in the article reader: same half-tone as an ad turn */
p.para.para-ad { opacity: 0.5; transition: opacity 0.15s ease; }
p.para.para-ad:hover, p.para.para-ad:focus-within { opacity: 1; }
.ad-label { font-family: var(--mono); font-size: 0.68rem; text-transform: uppercase;
  letter-spacing: 0.08em; color: var(--muted); margin-right: 0.5rem; }
.turn.turn-ad { opacity: 0.5; transition: opacity 0.15s ease; }
.turn.turn-ad:hover, .turn.turn-ad:focus-within { opacity: 1; }
.turn.turn-ad .turn-text { color: var(--muted); }
.ad-chip {
  margin-left: 0.5rem;
  padding: 0 0.3rem;
  border: 1px solid var(--rule);
  border-radius: 2px;
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  color: var(--muted);
  vertical-align: 1px;
}
.speaker-link { color: inherit; }
.speaker-link:hover { color: var(--accent); }
/* the speaker list: names in the text face, no boxes. The face sits beside
   the name (the avatar is a block-level .agent-img, so the button is flex). */
.speaker-filter { display: flex; flex-wrap: wrap; gap: 0.1rem 1.1rem; margin: 0.6rem 0 0; }
.speaker-filter button[data-speaker] {
  display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.25rem 0;
  font-family: var(--serif); font-size: 0.95rem; text-transform: none; letter-spacing: normal;
  color: var(--ink); border-color: transparent;
}
.speaker-filter button[data-speaker]:hover { border-color: transparent; color: var(--accent); }
/* the selected speaker: accent ink and a rule under it */
.speaker-filter button[data-speaker].active { color: var(--accent); border-bottom-color: var(--accent); }
.speaker-chip { display: inline-flex; align-items: center; gap: 0.1rem; max-width: 100%; }
.speaker-chip > button:first-child { min-width: 0; }
/* the follow control: one lowercase word in the link colour, after a muted
   dot that parts it from the muted speaking time (transcript) or the
   channel's name (voice page) */
.speaker-filter button.speaker-follow, .channel-chip button.channel-follow {
  min-height: 2rem; padding: 0.25rem 0.35rem; background: none; border: 0;
  font-family: var(--serif); font-size: 0.85rem; text-transform: none; letter-spacing: normal;
  color: var(--accent);
}
/* inline-block: the hover underline stops at the word, not under the dot */
.speaker-filter button.speaker-follow::before, .channel-chip button.channel-follow::before {
  content: "\00B7"; display: inline-block; color: var(--muted); margin-right: 0.45rem;
}
.speaker-filter button.speaker-follow:hover, .channel-chip button.channel-follow:hover { text-decoration: underline; }

.thesis-strip.panel { border-top: 3px double var(--rule); border-bottom: 3px double var(--rule); }

/* account: sessions as a readable list, not a cramped 4-column table */
ul.session-list { list-style: none; margin: 0.6rem 0 0; padding: 0; max-width: none; }
ul.session-list li.session {
  display: flex;
  align-items: center;
  gap: 0.75rem 1.2rem;
  flex-wrap: wrap;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--rule-soft);
}
ul.session-list li.session:last-child { border-bottom: 0; }
.session-main {
  flex: 1;
  min-width: 12rem;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}
.session-device { font-weight: 600; }
.session-device .pill { margin-left: 0.35rem; vertical-align: 0.05em; }
ul.session-list button.quiet { white-space: nowrap; }

/* universe: inline weight editor — compact, quiet until focused */
input.weight-input {
  width: 4.2rem;
  margin: 0;
  padding: 0.25rem 0.4rem;
  font-family: var(--mono);
  font-size: 0.9em;
  text-align: right;
  border-color: var(--rule-soft);
  background: var(--surface);
}
input.weight-input:hover { border-color: var(--rule); }

/* public-agent images: engraved-plate square, quiet ring */
.agent-img { border-radius: 2px; background: var(--surface); flex: none; }
/* real images (headshots fill the box; transparent company logos need a
   light ground in dark theme too) */
img.agent-img { object-fit: cover; display: block; background: var(--logo-chip); }
.agent-img.sm { width: 36px; height: 36px; }
.agent-img.md { width: 64px; height: 64px; }
.agent-img.lg { width: 84px; height: 84px; }
/* no-headshot fallback: initials on the accent tint, same footprint as the img */
span.agent-img.avatar-ph {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--tint-accent); color: var(--accent); font-weight: 600;
  font-family: ui-monospace, Menlo, monospace; line-height: 1; letter-spacing: 0.02em;
}
span.agent-img.avatar-ph.sm { font-size: 14px; }
span.agent-img.avatar-ph.md { font-size: 24px; }
span.agent-img.avatar-ph.lg { font-size: 30px; }
/* the track-record seal (js/avatar.js withProvenSeal): scalloped, with ledger
   lines, at every size, cut out of the ground by a paper edge. Not a tick (reads
   as "correct"), never a bare dot (on an avatar's corner it reads as "online"). */
.avatar-seal { position: relative; display: inline-flex; flex: none; vertical-align: middle; }
.proven-seal { position: absolute; right: -7px; bottom: -7px; width: 20px; height: 20px; overflow: visible; }
.agent-img.md ~ .proven-seal { right: -9px; bottom: -9px; width: 26px; height: 26px; }
.agent-img.lg ~ .proven-seal { right: -10px; bottom: -10px; width: 30px; height: 30px; }
.proven-seal polygon { fill: var(--up); stroke: var(--paper); stroke-width: 1.6; stroke-linejoin: round; }
.proven-seal path { fill: none; stroke: var(--paper); stroke-width: 1.5; stroke-linecap: round; }
/* a site's favicon (js/siteicon.js) on the logo chip, since favicons are drawn
   for light browser tabs; until it loads, or when it never does, the site's
   first letter on the accent tint, the same footprint */
.site-icon {
  display: inline-flex; align-items: center; justify-content: center; flex: none;
  width: 20px; height: 20px; margin-right: 0.5rem; vertical-align: middle;
  border-radius: 2px; background: var(--tint-accent); color: var(--accent);
  font-family: ui-monospace, Menlo, monospace; font-size: 11px; font-weight: 600; line-height: 1;
}
.site-icon.has-img { background: var(--logo-chip); }
.site-icon img { display: block; width: 16px; height: 16px; }
.identity-head { display: flex; align-items: center; gap: 0.9rem; margin: 0 0 var(--space); }
.identity-head h1 { margin: 0; }
/* company logo on the ticker head — contain (never crop a logo), align to
   the h1 rather than the flex baseline */
img.ticker-logo {
  width: 56px; height: 56px; object-fit: contain; align-self: center;
  border-radius: 2px; background: var(--logo-chip); padding: 3px; display: block;
}
td.name-cell { display: flex; align-items: center; gap: 0.55rem; }
/* Directory only: title/tickers stack BELOW the name (not beside it, in a
   would-be-separate column) so the row reads as one identity block and costs
   nothing when a voice has no title — the common case. Top-aligns the avatar
   to the name rather than centring it against a block that is tall only when
   a title is present. */
/* Voice carries the avatar + a two-line name/title block now; the numeric
   columns hold a short count or a date, so fixed widths hand the room to the
   column that actually needs it instead of splitting it evenly. Statements
   also carries the own-channel count ("3,246 self-published") on a line of
   its own that may wrap: inside a nowrap .num cell it ran across the next two
   columns (Cory Ondrejka, 2026-10-12). DESKTOP ONLY — .stack-sm turns cells
   into stacked blocks below 40rem, where a percentage width would crush the
   card (mobile break, 2026-07-29, same failure the followed-voices table hit). */
@media (min-width: 40.01rem) {
  #directory-table { table-layout: fixed; }
  #directory-table th:nth-child(1), #directory-table td:nth-child(1) { width: 35%; }
  #directory-table th:nth-child(2), #directory-table td:nth-child(2) { width: 20%; }
  #directory-table th:nth-child(n+3), #directory-table td:nth-child(n+3) { width: 15%; }
}
/* count and word on lines of their own; the word breaks at its hyphen only
   when even it does not fit (the narrowest desktop width), never overflows */
#directory-table .self-pub { white-space: normal; }
#directory-table .self-pub > span { display: block; }
/* the phone card puts the count beside its label, one line: "3 · 3,246
   self-published" — stacked there, "3" and "3,246" read as one number */
@media (max-width: 40rem) {
  #directory-table .self-pub > span { display: inline; }
  #directory-table .self-pub::before { content: " · "; }
  #directory-table .self-pub > span + span::before { content: " "; }
}
/* table-layout:fixed assigns a column's width from the header row and hands
   it to every cell in that column — EXCEPT when the cell's own `display` is
   `flex`: measured in Chrome, such a cell shrinks to its flex content's width
   instead (110px, not the assigned 40%). td.name-cell's flex row moves to an
   inner wrapper so the <td> itself stays a plain table-cell and keeps its
   assigned column width. */
#directory-table td.name-cell { display: table-cell; }
.directory-voice-row { display: flex; align-items: flex-start; gap: 0.55rem; min-width: 0; }

/* ---- followed voices: identity / kind / card cells --------------------- */
/* Fixed layout so the columns hold their share — under auto layout the
   nowrap KIND chips grabbed the width and crushed the name/bio to slivers.
   DESKTOP ONLY: below 40rem .stack-sm turns cells into stacked blocks, and
   these percentage widths crushed each block to a sliver of the card
   (mobile break, 2026-07-29). */
@media (min-width: 40.01rem) {
  #voices-table { table-layout: fixed; }
  /* sum < 100% on purpose: leaves slack so a nowrap chip or the action button
     can't nudge content past the cells and trip .table-scroll's overflow-x */
  #voices-table th:nth-child(1), #voices-table td:nth-child(1) { width: 44%; }
  #voices-table th:nth-child(2), #voices-table td:nth-child(2) { width: 32%; }
  #voices-table th:nth-child(3), #voices-table td:nth-child(3) { width: 10%; }
  #voices-table th:nth-child(4), #voices-table td:nth-child(4) { width: 10%; }
}
/* mobile: the kind/status cells keep their stacked-card flex; the voice lead
   cell heads the card with the avatar row intact */
@media (max-width: 40rem) {
  .stack-sm td.kind-cell { justify-content: flex-end; }
  .stack-sm .chips { justify-content: flex-end; }
  .stack-sm .kind-note { text-align: right; }
}

/* The voice cell stays a real table cell (so fixed layout hands it its 45%);
   the flex row lives on .voice-inner. The avatar aligns to the name at the top
   rather than floating centred against the tall block. */
td.voice-cell { vertical-align: top; }
.voice-inner { display: flex; align-items: flex-start; gap: 0.7rem; min-width: 0; }
.voice-id { display: flex; flex-direction: column; gap: 0.12rem; min-width: 0; }
.voice-id > a { font-weight: 600; font-size: 1.02rem; line-height: 1.25; }
/* a person's bio is prose — serif and readable, not the mono metadata font —
   clamped to two lines so every row keeps the same rhythm and the avatar sets
   the row height instead of an eight-line paragraph */
.voice-bio {
  font-family: var(--serif); font-size: 0.82rem; line-height: 1.4;
  color: var(--muted); margin-top: 0.05rem;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Kind cell: a person is one quiet word; an official stacks a labelled role
   over chips, so seats + universe-overlapping trades read at a glance. */
.kind-plain { color: var(--muted); }
/* tag + role share one line (they fit the widened column); role carries the weight */
.kind-role { display: flex; align-items: center; flex-wrap: wrap; gap: 0.4rem; }
.kind-role > span:last-child { font-weight: 600; }
.kind-tag {
  font-family: var(--mono); font-size: 0.58rem; text-transform: uppercase;
  letter-spacing: 0.08em; color: var(--accent);
  border: 1px solid var(--accent); padding: 0.03rem 0.3rem; white-space: nowrap;
}
.kind-note {
  display: block; font-size: 0.72rem; color: var(--muted);
  font-style: italic; margin-top: 0.15rem;
}
.chips { display: flex; flex-wrap: wrap; gap: 0.3rem; margin-top: 0.3rem; }

/* Identity-card status: a labelled state, not a lone glyph, so the column
   reads without a hover. */
.card-status {
  display: inline-flex; align-items: baseline; gap: 0.3rem;
  font-family: var(--mono); font-size: 0.72rem;
}
.card-status.ready { color: var(--ink); }
.card-status.ready .up { font-size: 0.85rem; }
.card-status.account, .card-status.pending { color: var(--muted); }

/* ---- desk: temporal anchor + view toggle -------------------------------- */
.deskbar {
  display: flex; align-items: baseline; justify-content: space-between;
  flex-wrap: wrap; gap: 0.3rem 1rem; margin: 0 0 var(--space);
}
.deskbar .anchor { font-family: var(--mono); font-size: 0.75rem; color: var(--muted); }
.deskbar .anchor b { color: var(--ink); font-weight: 600; }

/* ---- desk band headings (briefing / book / ideas) ----------------------- */
.band-head {
  font-family: var(--mono); font-size: 0.7rem; text-transform: uppercase;
  letter-spacing: 0.11em; color: var(--muted);
  margin: var(--space-lg) 0 var(--space-sm);
  display: flex; align-items: baseline; gap: 0.6rem;
}
.band-head::after { content: ""; flex: 1; border-bottom: 1px solid var(--rule-soft); }

/* Group label inside the movers band (grouped by voice or by topic). Quieter
   than .band-head — it divides one band, it does not open a new one — and only
   rendered when a group actually holds more than one card. */
.gi-group {
  font-family: var(--mono); font-size: 0.66rem; text-transform: uppercase;
  letter-spacing: 0.09em; color: var(--muted);
  margin: var(--space-md) 0 0.15rem;
}
.gi-group:first-child { margin-top: 0; }

/* stance-shift card: the voice's avatar sits to the left of its headline,
   top-aligned the same way .voice-inner pairs an avatar with a name — the
   headline is a full sentence and can run to two lines. */
.gi-head-row { display: flex; align-items: flex-start; gap: 0.85rem; }
/* Box-top alignment alone still leaves a gap: the body's 1.55 line-height
   pads the first line with leading the avatar doesn't have, so the two
   "tops" read as offset even though the boxes are flush. Tightened line-height
   closes most of it; the remainder is the serif face's own cap-height inset
   (Georgia's caps start a few px below its em-box top) — no line-height value
   removes that, so the avatar gets the last nudge directly. */
.gi-head-row .gi-head { margin: 0; min-width: 0; line-height: 1.3; }
.gi-head-row .agent-img { margin-top: 0.2rem; }

/* ---- BAND 1: since you last looked (interrupts) ------------------------- */
ul.brief { list-style: none; margin: 0.2rem 0 0; padding: 0; max-width: none; }
ul.brief li {
  display: grid; grid-template-columns: 0.9rem 1fr auto; align-items: baseline;
  gap: 0.2rem 0.7rem; padding: 0.5rem 0; border-bottom: 1px solid var(--rule-soft);
  max-width: none;
}
ul.brief li:last-child { border-bottom: 0; }
.brief-dot { width: 7px; height: 7px; border-radius: 50%; align-self: center; }
.brief-dot.up { background: var(--up); }
.brief-dot.down { background: var(--down); }
.brief-dot.info { background: var(--muted); }
.brief-dot.bell { background: var(--accent); border-radius: 1px; transform: rotate(45deg); }
.brief-text { margin: 0; max-width: none; }
.brief-text .kind {
  font-family: var(--mono); font-size: 0.64rem; text-transform: uppercase;
  letter-spacing: 0.07em; color: var(--muted); margin-right: 0.45rem;
}
.brief-text .detail { color: var(--muted); }
.brief-at { font-family: var(--mono); font-size: 0.68rem; color: var(--muted); white-space: nowrap; }

/* grouped disclosure block: one person heads it, their trades listed beneath */
ul.brief li.brief-group { grid-template-columns: 0.9rem 1fr; }
.brief-text .actor { font-weight: 600; }
.brief-sub {
  grid-column: 1 / -1; list-style: none; margin: 0.25rem 0 0;
  padding: 0 0 0 0.1rem;
}
ul.brief .brief-sub li {
  display: flex; align-items: baseline; gap: 0.4rem;
  grid-template-columns: none; padding: 0.12rem 0; border-bottom: 0;
}
.brief-sub .detail { color: var(--muted); }
.brief-sub .brief-at { margin-left: auto; }

/* ---- BAND 2: thesis groups --------------------------------------------- */
/* Title and stance strip STACK rather than share one flex row: the strip is
   deliberately white-space:nowrap (a single scannable unit) and long enough
   ("63 support · 172 challenge · net -0.46 · was -0.46, 1d ago") that on
   anything but a wide screen it left the title too little room to keep even
   two words on a line, breaking one-word-per-line beside a cramped rename
   button. A full-width row each, title on top, is never ambiguous. */
.thesis-head {
  display: flex; flex-direction: column; align-items: flex-start; gap: 0.3rem;
  padding: 0.55rem 0 0.5rem; border-bottom: 1px solid var(--rule);
  margin-top: var(--space);
}
.thesis-head .t-title { font-size: 1.02rem; font-weight: 600; width: 100%; }
.thesis-head .t-title a { color: inherit; text-decoration: none; }
.thesis-head .t-title a:hover { text-decoration: underline; text-decoration-color: var(--muted); }
/* rename-in-place: the control is always present, just quiet. Hiding it until
   hover would hide the only clue that a name CAN be changed — and would hide it
   completely on touch. Dimmed and full-strength on hover or keyboard focus. */
.editable-name { display: inline-flex; align-items: center; gap: 0.5rem; }
.editable-name .rename-btn { opacity: 0.55; transition: opacity 0.12s ease; }
.editable-name:hover .rename-btn,
.editable-name .rename-btn:focus-visible { opacity: 1; }
/* thesis list only: push rename to the cell's right edge rather than
   hugging the name — with a wrapped two-line title the button otherwise
   floats mid-word instead of reading as acting on the row. */
#list-table td:first-child .editable-name {
  width: 100%; justify-content: space-between; align-items: flex-start;
}
/* Net stance and Support/Challenge are numbers — right-align them (and their
   headers, so the label sits over its column) the way every other numeric
   desk-table column on the site does. Tickers stays left: symbols, not a
   quantity. */
#list-table th:nth-child(3), #list-table td:nth-child(3),
#list-table th:nth-child(4), #list-table td:nth-child(4) {
  text-align: right;
}
/* Thesis carries a full title (+ rename button) and wrapped to two lines
   while the four short columns beside it sat in a sea of unused width —
   hand it the room. DESKTOP ONLY: .stack-sm turns cells into stacked blocks
   below 40rem, where a percentage width would crush the card. */
@media (min-width: 40.01rem) {
  #list-table { table-layout: fixed; }
  #list-table th:nth-child(1), #list-table td:nth-child(1) { width: 46%; }
  #list-table th:nth-child(2), #list-table td:nth-child(2) { width: 16%; }
  #list-table th:nth-child(3), #list-table td:nth-child(3) { width: 13%; }
  #list-table th:nth-child(4), #list-table td:nth-child(4) { width: 15%; }
  #list-table th:nth-child(5), #list-table td:nth-child(5) { width: 8%; }
  /* fixed layout stops auto-wrapping a header at its natural word breaks —
     "SUPPORT/CHALLENGE" ran past its column into STATUS instead of wrapping
     at the slash (user-reported 2026-08-21). Force the break explicitly. */
  #list-table th { white-space: normal; overflow-wrap: break-word; }
}
.rename-input {
  font: inherit; min-width: 12rem; max-width: 100%;
  padding: 0.15rem 0.35rem; border: 1px solid var(--rule); background: var(--bg);
  color: inherit;
}
.rename-error { font-size: 0.75rem; color: var(--down, #a33); }

.stance { font-family: var(--mono); font-size: 0.78rem; white-space: nowrap; }
.stance .net { font-weight: 600; }
.stance .trend { font-size: 0.72rem; color: var(--muted); }

/* magnitude-honest spark cell: baseline + printed % return */
.spark-cell { display: flex; align-items: center; gap: 0.5rem; }
.spark-cell svg { display: block; }
.ret { font-family: var(--mono); font-size: 0.78rem; font-variant-numeric: tabular-nums; min-width: 3.4rem; }

/* signal cell: scored voice vs filing-only, honestly distinguished */
.sig {
  font-family: var(--mono); font-size: 0.72rem;
  /* the buckets wrap to several lines in a narrow column — give them room to
     breathe and clear the row's bottom edge */
  line-height: 1.5; padding-bottom: 0.6rem;
}
.sig.voice { color: var(--accent); }
.sig.filings { color: var(--muted); }
.sig .badge {
  font-size: 0.6rem; text-transform: uppercase; letter-spacing: 0.06em;
  border: 1px solid var(--rule); padding: 0.05rem 0.35rem; margin-right: 0.4rem;
}
.sig.voice .badge { border-color: color-mix(in srgb, var(--accent) 55%, transparent); }
.newdelta { font-family: var(--mono); font-size: 0.75rem; font-variant-numeric: tabular-nums; }
.newdelta b { color: var(--ink); }

/* the voice statement, second tier — prose, only when a scored voice exists */
table.desk-table tr.voice td { border-bottom: 0; padding-bottom: 0.15rem; }
td.voice-line {
  font-family: var(--serif); font-size: 0.94rem; color: var(--ink);
  padding: 0 0 0.6rem 0; max-width: none;
}
td.voice-line .vmeta {
  font-family: var(--mono); font-size: 0.68rem; color: var(--muted);
  display: block; margin-top: 0.15rem;
}
.role-tag {
  font-family: var(--mono); font-size: 0.6rem; text-transform: uppercase;
  letter-spacing: 0.06em; color: var(--muted); margin-left: 0.4rem;
}

/* ---- desk: thesis core-idea preview (stored premises, inline) ------------ */
.premises {
  margin: 0.15rem 0 0.4rem;
  padding-left: 1.4rem;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.45;
}
.premises li.challenged { color: var(--down); }
.premises li.supported .premise-status { color: var(--up); }
.premises .premise-status { font-variant: small-caps; letter-spacing: 0.03em; }

/* ---- tablekit: sortable headers + pager ---------------------------------- */
th.sortable { cursor: pointer; user-select: none; }
th.sortable:hover { text-decoration: underline; text-decoration-color: var(--muted); }
.pager { margin: 0.3rem 0 0; font-size: 0.85rem; }
.pager button.quiet { padding: 0 0.4rem; }

/* ---- desk: stance-shift drill-down --------------------------------------- */
button.trend {
  background: none; border: none; font: inherit; color: var(--muted);
  cursor: pointer; padding: 0;
}
button.trend:hover { text-decoration: underline; }
.stance-delta { margin: 0.2rem 0 0.4rem; padding-left: 1.4rem; font-size: 0.86rem; }
.stance-delta .kind { font-variant: small-caps; margin-right: 0.4rem; }
.stance-delta li.up .kind { color: var(--up); }
.stance-delta li.down .kind { color: var(--down); }
.stance-delta-head { margin: 0.25rem 0 0; }

/* ---- desk: graph-insight leads ------------------------------------------- */
/* hairline-separated rows: a 5-card list reads as scannable items, not one
   undifferentiated stream (matches ul.events) */
.graph-insights { list-style: none; padding: 0; margin: var(--space-xs) 0; }
.graph-insights li { padding: var(--space-sm) 0; border-bottom: 1px solid var(--rule-soft); }
.graph-insights li:last-child { border-bottom: 0; }
/* Stance-shift cards only: a long list of hairline-separated cards with no
   fill between them reads as one undifferentiated column. Alternation is
   assigned in JS (each person's shifts sit in their OWN <ul>, so a plain
   nth-child would restart at every group boundary instead of running down
   the page). Horizontal padding + matching negative margin keeps the tint's
   edge off the text without shifting untinted rows out of alignment with it. */
#stance-shifts .graph-insights li {
  padding-left: 0.75rem; padding-right: 0.75rem;
  margin-left: -0.75rem; margin-right: -0.75rem;
}
#stance-shifts .graph-insights li.row-alt { background: var(--surface); }
.graph-insights .gi-head { margin: 0; }
.graph-insights .gi-why { margin: var(--space-xs) 0 0; font-size: 0.9rem; }
.graph-insights .gi-span { margin: var(--space-xs) 0 0; font-size: 0.82rem; }
/* download-the-source glyph on an evidence line: de-emphasized, no underline
   under a bare symbol, quieter than the transcript link it sits beside since
   reading the citation in context is the primary path. */
.source-dl { text-decoration: none; opacity: 0.65; }
.source-dl:hover { opacity: 1; }

/* ---- ticker: OHLC chart host --------------------------------------------- */
.price-chart { width: 100%; min-height: 260px; }
.price-chart.has-statements { min-height: 330px; }  /* + the statement pane */
/* the reading line keeps room for its longest text (three lines at 800 px,
   four on a 390 px phone: measured), so the chart does not move under the finger
   as the touched day's text changes length */
.chart-reading { font-family: var(--mono); font-size: 0.8rem; margin: 0 0 0.35rem;
  min-height: calc(3 * 1.4em); line-height: 1.4; font-variant-numeric: tabular-nums; }
@media (max-width: 30rem) { .chart-reading { min-height: calc(4 * 1.4em); } }
.chart-key-item { white-space: nowrap; }  /* a swatch never wraps away from its word */
.chart-key .swatch { display: inline-block; width: 0.7em; height: 0.7em;
  vertical-align: -0.05em; margin-right: 0.25em; }
.chart-key .swatch.up { background: var(--up); }
.chart-key .swatch.neutral { background: var(--neutral); }
.chart-key .swatch.down { background: var(--down); }

/* ---- ticker: topic-group headings ---------------------------------------- */
.topic-head { font-size: 0.92rem; margin: 0.7rem 0 0.15rem; font-variant: small-caps; letter-spacing: 0.03em; }

/* ---- read-throughs: reached-by-graph statements, grouped by topic -------- */
/* Each topic gets a top rule + more air so the groups read as distinct bands
   rather than one continuous scroll. The label carries its count as a chip. */
.readthroughs .topic-head {
  margin: calc(var(--space) * 1.1) 0 0.35rem;
  padding-top: 0.55rem;
  border-top: 1px solid var(--rule);
}
.readthroughs .topic-head:first-child { margin-top: 0.4rem; }
.readthroughs .topic-head .denom { font-variant: normal; letter-spacing: 0; }

/* The graph chain that reaches this name — the defining fact of a read-through,
   lifted onto its own quiet line instead of buried in the meta run-on. */
.readthrough-chain {
  display: block; margin-top: 0.3rem;
  font-family: var(--mono); font-size: 0.72rem; line-height: 1.5; color: var(--muted);
}
.readthrough-chain .chain-arrow { color: var(--accent); }
.readthrough-chain .chain-path { color: var(--accent); }

/* table chrome: filter is part of the table, never a peer of add-forms */
.table-toolbar {
  display: flex; align-items: baseline; justify-content: flex-end;
  gap: 0.6rem; margin: 0.4rem 0 0.2rem;
}
/* One chrome line above a table: a view switch on the left, the rows count +
   filter on the right (tablekit's toolbarSlot). Both sit on the same line
   instead of the switch floating a row above the filter box. */
.table-head {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 0.4rem 0.8rem; margin: 0.4rem 0 0.2rem;
}
.table-head > * { margin: 0; }
.table-head .table-toolbar { margin: 0; }
/* A short list gets no toolbar, so the slot is empty — don't reserve its line. */
.table-head:empty { display: none; }

/* Stance sparkline: a word-sized line of position-over-time sitting on the same
   baseline as the label that follows it. Data-ink only — one faint reference
   rule at neutral, the line, and the current point. */
.stance-line { display: flex; align-items: center; gap: 0.45rem; flex-wrap: wrap; }
.stance-spark { width: 108px; height: 20px; flex: none; overflow: visible; }
.spark-base { stroke: var(--rule-soft); stroke-width: 0.5; }
.spark-line { stroke: var(--ink); stroke-width: 1; fill: none; stroke-linejoin: round; }
.spark-now { fill: var(--accent); stroke: none; }
.table-toolbar .table-filter {
  width: 22rem; max-width: 70%;
  font-size: 0.85em; padding: 0.15rem 0.4rem;
  border: 1px solid var(--rule); border-radius: 2px;
  background: transparent; color: inherit;
}
.table-toolbar .table-filter:focus { outline: 1px solid var(--accent); }

/* voice rows whose identity card is still assembling: visibly in-progress */
tr.assembling td { background: color-mix(in srgb, var(--accent) 7%, transparent); }
tr.assembling td:first-child { border-left: 2px solid var(--accent); }

/* --- Article reader: prose + inline extraction marks + margin notes ------- */
/* Color stays semantic (up/down): entities are a QUIET dotted underline with
   the type on hover, never a standing color (Tufte rule kept). Prediction /
   knowledge quotes are interactive, so they carry the --accent interactive
   tint, consistent with every other clickable surface. */

.article-reader {
  /* Notes live in a real LEFT-hand margin that protrudes past the article. The
     research rail took the right margin, so the mirror of the original trick
     keeps the property that mattered: pulling the whole grid left by exactly the
     margin width leaves the PROSE where it was, still aligned with the
     header/title, and pushes the notes into the left page margin instead.
     A plain column swap would have shifted the body 18.5rem right while the h1
     stayed put. Placement is by grid-column, not DOM order: article.html emits
     <article> before <aside>, which is correct for reading and tab order. */
  display: grid;
  grid-template-columns: 16rem 40rem;
  column-gap: 2.5rem;
  margin-left: -18.5rem; /* 16rem track + 2.5rem gap */
  align-items: start;
  margin-top: 1.2rem;
}
/* grid-row: 1 on BOTH is load-bearing: with <article> first in the DOM and
   only columns pinned, auto-placement would put the aside in ROW 2 — the
   notes rendering below the article instead of beside it. */
.article-reader .reader-margin { grid-column: 1; grid-row: 1; }
.article-reader .article-body { grid-column: 2; grid-row: 1; }
.article-body { max-width: 40rem; }
.article-body .para { line-height: 1.65; margin: 0 0 1rem; }
.reader-hint { margin-bottom: 0.4rem; }

/* entity — quiet dotted underline, type revealed on hover/focus as a pill */
.ent {
  border-bottom: 1px dotted var(--muted);
  cursor: help;
  position: relative;
  transition: background 0.6s ease;
}
/* a person's full name opens the follow search */
.ent[role="button"] { cursor: pointer; }
.ent:hover::after,
.ent:focus::after {
  content: attr(data-type);
  position: absolute; left: 0; bottom: 100%; margin-bottom: 3px;
  font: 0.62rem/1.4 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: 0.04em; text-transform: uppercase;
  background: var(--ink); color: var(--paper);
  padding: 1px 5px; border-radius: 3px;
  white-space: nowrap; z-index: 5; pointer-events: none;
}

/* prediction / knowledge quote — interactive tint + a bottom rule to tell the
   two kinds apart without a second hue */
.q {
  background: var(--tint-accent);
  border-radius: 2px; padding: 0 1px; cursor: pointer;
  transition: background 0.6s ease;
}
.q:hover, .q:focus { background: color-mix(in srgb, var(--accent) 18%, transparent); }
.q-prediction { box-shadow: inset 0 -2px 0 color-mix(in srgb, var(--accent) 55%, transparent); }
.q-knowledge  { box-shadow: inset 0 -2px 0 color-mix(in srgb, var(--muted) 45%, transparent); }

/* margin notes */
.reader-margin { font-size: 0.85rem; display: flex; flex-direction: column; gap: 0.9rem; }
.note {
  border-left: 2px solid var(--rule);
  padding: 0.1rem 0 0.1rem 0.7rem;
  transition: background 0.6s ease, border-color 0.2s ease;
}
.note p { margin: 0.15rem 0; }
.note .kind { margin-bottom: 0.1rem; }
/* Border weight reads as the same value order the tiers already sort by, so
   the fold split (actionable/prediction always open, context behind a
   summary) looks like what it is — value-ordered — instead of arbitrary
   (user-reported 2026-08-23: "inconsistently folded, no clear pattern").
   Strongest ink for the always-open top tier, unchanged accent for
   prediction, and the existing faint default for context is now doing
   double duty as the "this one folds, it matters least" signal. */
.note-actionable { border-left-width: 3px; border-left-color: var(--accent); }
.note-prediction { border-left-color: color-mix(in srgb, var(--accent) 55%, var(--rule)); }
.note.linked { cursor: pointer; }
.note.linked:hover { border-left-color: var(--accent); background: var(--tint-accent); }
/* The context note's fold is the one behavior difference a border color
   alone can't say — spell it out with the same disclosure marker the admin
   panel uses, rather than leaving "click to expand" undiscoverable. */
.note-inline.note-context > summary {
  cursor: pointer; list-style: none; display: flex; align-items: center; gap: 0.4rem;
}
.note-inline.note-context > summary::-webkit-details-marker { display: none; }
.note-inline.note-context > summary::before {
  content: "\25B8"; color: var(--muted); transition: transform 0.15s ease; flex: none;
}
.note-inline.note-context[open] > summary::before { transform: rotate(90deg); }

/* transient jump highlight (inline anchor <-> margin note) */
.flash { background: color-mix(in srgb, var(--accent) 22%, transparent); border-radius: 3px; }

/* Not enough width to hold the protruding right margin without the notes
   running off the (never-horizontally-scrolling) page: stack them under the
   article and let both use the full body measure. */
/* ≤79rem: annotations RETURN TO THEIR ANCHORS instead of restacking as a
   flat pile after the content — a margin note's entire meaning is its
   sentence, and the restack divorced every note from it (Tufte review
   2026-08-23). The margin column disappears; the inline copies (.note-inline,
   rendered beside their anchor turn) carry the same ink. Exactly one
   representation is visible at any width. */
.note-inline {
  display: none;
  margin: 0.4rem 0 0.9rem 1rem;
  font-size: 0.85rem;              /* reader-margin scale */
  max-width: 34rem;
}
.note-inline summary { cursor: pointer; }
@media (max-width: 79rem) {
  .article-reader { grid-template-columns: minmax(0, 1fr); gap: 1.4rem; margin-left: 0; }
  .article-body { max-width: 100%; }
  /* unpinned from column 2, or the content sits a gap's width right of the
     title in an implicit second column */
  .article-reader .article-body { grid-column: 1; grid-row: 1; }
  .article-reader .reader-margin { display: none; }
  .note-inline { display: block; }
}
/* Both margins are spoken for once the rail is mounted. The frame slides left
   to keep the rail column (see body.has-rail main), so the left margin is
   viewport - 70.25rem; the notes protrude 17.25rem past main's padding, which
   fits only from 87.5rem. Below that they would be clipped by
   `overflow-x: hidden` — silently, the worst outcome — so the notes return to
   their anchors here too, as at 79rem and below (owner 2026-10-23, "Inline,
   after their turn"). Keyed to the rail being mounted, not open: the
   collapsed head holds the column too, and opening the rail no longer
   reflows the article. */
@media (max-width: 87.5rem) {
  body.has-rail .article-reader {
    grid-template-columns: minmax(0, 1fr);
    margin-left: 0;
    gap: 1.4rem;
  }
  body.has-rail .article-body { max-width: 100%; }
  /* the base rules pin the content to column 2. In one column that put it in
     an implicit second column, a gap's width right of the title, and from
     79rem to 87.5rem squeezed the margin into what was left: 34px of notes
     beside the text, a 56px signals graph. The signals script opens its graph
     under the selected card at this same width (signals.html). */
  body.has-rail .article-reader .article-body { grid-column: 1; grid-row: 1; }
  body.has-rail .article-reader .reader-margin { display: none; }
  body.has-rail .note-inline { display: block; }
}
.note-quote {
  font-style: italic; color: var(--muted); font-size: 0.95em;
  border-left: 1px solid var(--rule-soft); padding-left: 0.5rem; margin-top: 0.3rem;
}

/* --- Research rail ------------------------------------------------------- */
/* An ANNOTATION COLUMN, the mirror of the reader's margin notes: it sits in
   the right page margin beside the 44rem body — anchored to the CONTENT
   (left: 50% + half the body + gap), never to the viewport corner — with the
   notes' own idiom: quiet small type, left-ruled entries, no box chrome.
   position: fixed keeps it in view while the page scrolls under it (the log
   scrolls internally). It NEVER borrows .num/.denom: streamed prose cannot
   honour "no number renders without its denominator", and a rail that mimics
   page typography only sometimes teaches the reader two rules. */
.rail {
  position: fixed;
  top: 4.75rem;                        /* below the nav's natural height */
  /* the frame's left edge (same expression as body.has-rail main) + the
     frame + the reader gap */
  left: calc(max(0px, min(calc((100% - var(--frame)) / 2), calc(100% - 70.25rem))) + var(--frame) + 2.5rem);
  width: 22.5rem;
  max-height: calc(100vh - 6rem);
  display: flex;
  flex-direction: column;
  font-size: 0.85rem;                  /* reader-margin scale */
  z-index: 20;
}
.rail-head {
  /* flex-start, NOT baseline: the head holds a bare text label and a PADDED
     input, and baseline alignment drags the label down by the input's
     padding+border so their text baselines meet. That moved RESEARCH out of
     line with the nav's identity row (which alignRail measures against), and
     it moved again whenever the filter showed/hid per page. flex-start keeps
     the label's box top fixed regardless of what sits beside it. */
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 0.5rem; padding: 0 0 0.3rem;
  border-bottom: 1px solid var(--rule-soft);
  font-size: 0.72rem;   /* the nav's size, so the aligned rows are consonant */
}
.rail-toggle { font-size: 0.72rem; padding: 0.05rem 0.35rem; white-space: nowrap; }
.rail-head-actions { display: inline-flex; gap: 0.55rem; align-items: baseline; }
/* A real switch: hairline track, sliding knob, accent when on — the platform
   toggle idiom rendered in the site's quiet language. Side labels (summary ⇄
   full) let the knob visibly point at the active option; the active label is
   inked, the inactive muted. */
.switch {
  /* hardened against the global button styling (padding/min-height/font)
     which inflated the track into an egg */
  all: unset;
  box-sizing: border-box;
  position: relative; flex-shrink: 0;
  display: inline-block;
  width: 1.9rem; height: 1.05rem;
  border: 1px solid var(--rule); border-radius: 999px;
  background: var(--paper); cursor: pointer;
  vertical-align: middle;
}
.switch:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.switch::after {
  content: ""; position: absolute; top: 1px; left: 2px;
  width: calc(1.05rem - 6px); height: calc(1.05rem - 6px);
  border-radius: 50%; background: var(--muted);
  transition: left 0.15s ease, background 0.15s ease;
}
.switch[aria-checked="true"] { border-color: var(--accent); }
.switch[aria-checked="true"]::after {
  left: calc(100% - 1.05rem + 4px);
  background: var(--accent);
}
.switch-side { color: var(--muted); }
.switch-side.on { color: var(--ink); }
.switch-wrap { display: inline-flex; gap: 0.4rem; align-items: center; }
.rail-body { display: none; flex-direction: column; min-height: 0; }
body.sidebar-open .rail-body { display: flex; }
.rail-log {
  overflow-y: auto; padding: 0.6rem 0; display: flex; flex-direction: column;
  gap: 0.8rem;
}
/* entries carry the margin-note rule, not bubbles */
.rail-msg { border-left: 2px solid var(--rule); padding-left: 0.6rem; }
.rail-user { border-left-color: var(--accent); }
.rail-p { margin: 0 0 0.45rem; line-height: 1.5; }
.rail-p:last-child { margin-bottom: 0; }
.rail-list { margin: 0 0 0.45rem; padding-left: 1.05rem; }
.rail-list li { margin: 0.15rem 0; }
.rail-sources {
  margin: 0.45rem 0 0; padding-left: 1.3rem;
  font-size: 0.78rem; color: var(--muted);
}
.rail-sources li { margin: 0.1rem 0; }
.rail-byline { margin: 0.35rem 0 0; opacity: 0.75; }
/* live reasoning: a small serif-italic block with real line height — one
   status line was too cramped and per-delta repaints scrolled past reading
   speed. Never confusable with the answer: muted, ruled, outside the log. */
.rail-thinkbox {
  font-family: var(--serif);
  font-style: italic;
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.45;
  border-left: 2px solid var(--rule-soft);
  padding: 0.15rem 0 0.15rem 0.6rem;
  margin: 0.2rem 0;
  /* EXACTLY three lines (3 x 1.45 line-height) — a fractional cap sliced the
     third line in half. Bottom-anchored so overflow clips the OLD words at
     the top, never the newest at the bottom. */
  height: calc(3 * 1.45em);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  flex-shrink: 0;
}
.rail-note { margin: 0.2rem 0; text-align: center; opacity: 0.7; }
/* flex-shrink: 0 is load-bearing on both: under the rail's max-height the
   default shrink let these collapse and the form drew OVER wrapped status
   text. Only the log is allowed to give way (it scrolls). */
.rail-status { margin: 0; padding: 0.15rem 0; min-height: 1rem; flex-shrink: 0; }
.rail-form { max-width: none; padding: 0.3rem 0 0; display: flex; flex-direction: column; gap: 0.4rem; flex-shrink: 0; }
.rail-input {
  width: 100%; font: inherit; font-family: var(--serif); font-size: 0.85rem;
  border: 1px solid var(--rule); background: var(--paper); color: var(--ink);
  padding: 0.35rem; resize: vertical;
}
.rail-actions { display: flex; gap: 0.4rem; align-items: center; }
.rail-email-group { margin-left: auto; display: inline-flex; gap: 0.5rem; align-items: center; }

/* The column holds while the viewport fits frame + gap + column + gutter:
   44 + 2.5 + 22.5 + 1.25 = 70.25rem (the frame slides left to make room, see
   body.has-rail main). Below that it becomes a bottom sheet rather than
   overlapping the content it is meant to annotate. */
@media (max-width: 70.25rem) {
  .rail {
    top: auto; bottom: 0; right: 0; left: 0; width: auto;
    max-height: 60vh; padding: 0.15rem 0.75rem 0.5rem;
    background: var(--surface); border-top: 1px solid var(--rule);
    /* the sheet must READ as a sheet: a lifted edge + grabber pill. The bare
       one-line "RESEARCH" bar was invisible in practice — reported as "the
       sidecar is nowhere" on a phone podcast page (2026-08-23), while DOM
       inspection showed it present and correctly placed. Discoverability is
       the failure, so the closed state gets the universal sheet affordance
       rather than a floating button over content. */
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.18);
  }
  .rail::before {
    content: "";
    display: block;
    width: 2.5rem; height: 0.28rem;
    margin: 0.25rem auto 0.15rem;
    border-radius: 999px;
    background: var(--muted, #888);
    opacity: 0.55;
  }
  /* the whole head is the handle on a sheet, not just the label */
  .rail-head { cursor: pointer; }
  .rail-log { max-height: 40vh; }
  /* The sheet's CONTENT is the page frame's column, centred under it — not
     edge-to-edge. Full-bleed only looked right on a phone; on a laptop-width
     sheet it left the form parked at the far left (capped by the global
     `form { max-width: 28rem }`) and the filter stranded at the far right. */
  .rail-head, .rail-body {
    width: 100%;
    max-width: calc(var(--frame) - 2.5rem);  /* main's content width */
    margin-left: auto; margin-right: auto;
    box-sizing: border-box;
  }
}

/* voice calls — banded, glyph-spined (voices.html). The record must read
   vertically as a column of marks; everything non-spine lives in the fold. */
.calls .call-row { list-style: none; }
/* the call a permalink names, where the list has it too */
.calls .call-row.is-linked { box-shadow: inset 2px 0 0 var(--ink); padding-left: .4rem; }
/* The date label sits right of the statement while the statement keeps ~14rem;
   narrower (a phone), it wraps under the statement, still right-aligned, instead
   of squeezing the statement to a word per line. */
.call-spine { display: flex; flex-wrap: wrap; align-items: baseline; gap: .1rem .5rem; }
.call-glyph { flex: 0 0 1.1rem; text-align: center; font-weight: 600; }
.call-statement { flex: 1 1 14rem; min-width: 0; }
.call-when { flex: 0 0 auto; margin-left: auto; white-space: nowrap; }
.call-track { position: relative; height: 3px; margin: .15rem 0 .1rem 1.6rem;
  background: color-mix(in srgb, currentColor 8%, transparent); border-radius: 2px; }
.call-seg { position: absolute; top: 0; height: 3px; border-radius: 2px;
  background: currentColor; opacity: .45; min-width: 2px; }
.call-seg.up { opacity: .8; } .call-seg.down { opacity: .8; }
.call-tick { position: absolute; top: -2px; width: 1px; height: 7px; background: currentColor; opacity: .5; }
.channel-chips { display: flex; flex-wrap: wrap; gap: .35rem .9rem; margin: .3rem 0 0; }
/* one host's channels: the host once, its other channels beside it */
.channel-group { display: inline-flex; flex-wrap: wrap; align-items: baseline; gap: 0 .5rem; max-width: 100%; }
.channel-chip { white-space: nowrap; }
/* a read channel the reader does not follow: its name muted, underline too */
.channel-chip a.muted { text-decoration-color: color-mix(in srgb, var(--muted) 45%, transparent); }
/* platform glyph before a channel handle — sized to the text, quietly dimmed */
.chan-ico { width: 1em; height: 1em; vertical-align: -0.13em; opacity: 0.7; }
/* a site's favicon (js/siteicon.js) in the glyph's place and size: the globe
   until it loads and when there is none; a loaded favicon on the logo chip */
.site-icon.inline {
  font: inherit; width: 1em; height: 1em; margin: 0; vertical-align: -0.13em;
  background: none; color: inherit;
}
.site-icon.inline.has-img { background: var(--logo-chip); }
.site-icon.inline img { width: 1em; height: 1em; }
/* A company logo is a mark, not a face: never crop it. cover-cropping squared
   wide logos into fragments ("VER"). contain + a quiet plate instead. */
.org-logo img { object-fit: contain !important; background: #fff; padding: 4px; }

/* statements topic map — data-carrying rows with shared-axis sparklines.
   Grid, not flex: topic labels align in one column (no two-line wrap chaos),
   claims ellipsize in the middle, sparklines right-align under one axis. */
/* thesis layer: half-tone, never hidden — on the MARKS only. Type on a
   non-thesis row uses --muted at full opacity: 0.55 opacity on 0.85em prose
   is not layering, it is unreadable. */
.topic-map .call-fold.muted svg.spark-tm { opacity: 0.55; }
.topic-map .call-fold.muted .topic-name { color: var(--muted); }
/* the lead claim is an index label (synthesized canonical text), not a quote */
.topic-map .index-label { font-style: normal; }
.topic-map .provenance { margin: 0 0 0.4rem; }
.topic-map .topic-spine { display: grid; align-items: center; gap: 0 0.7em;
  grid-template-columns: minmax(9rem, 13rem) 1fr 6.5rem; padding: 0.22rem 0; }
.topic-map .topic-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.topic-map .topic-claim { min-width: 0; overflow: hidden;
  text-overflow: ellipsis; white-space: nowrap; }
.topic-map svg.spark-tm { justify-self: end; color: var(--ink-muted, #888); }
.topic-map h4 { margin: 1.3rem 0 0.3rem; padding-top: 0.5rem;
  border-top: 1px solid var(--rule); font-variant: small-caps;
  letter-spacing: 0.06em; }
.topic-map h4:first-child { border-top: none; margin-top: 0.4rem; }
.topic-map .call-fold { margin-left: 0.9rem; } /* topics sit inside their family */
.spark-legend { text-align: right; margin: 0 0 0.2rem; }
/* phone: keep the one element that carries time — a 64 px sparkline — and
   fold the lead claim (a 15-character ellipsized claim said nothing) */
@media (max-width: 40rem) {
  .topic-map .topic-spine { grid-template-columns: minmax(7rem, 1fr) 64px; }
  .topic-map .topic-claim { display: none; }
  .topic-map svg.spark-tm { width: 64px; height: 14px; } }

/* statements filter — grep, not chat */
input.topic-filter { width: 100%; max-width: 26rem; margin: 0.3rem 0 0.6rem;
  padding: 0.35rem 0.6rem; background: transparent; border: 1px solid var(--rule);
  color: inherit; font: inherit; }

/* focus layer — matched rows keep full ink, the rest stay VISIBLE but recede
   (a filter that removes rows hides what you are not looking at) */
.out-of-focus { opacity: 0.28; }
.focus-banner { display: flex; gap: 0.7em; align-items: baseline; margin: 0.2rem 0 0.6rem; }

/* steering controls in the rail: filter -> scope -> question, one column */
input.rail-filter { width: 100%; margin: 0 0 0.4rem; padding: 0.3rem 0.5rem;
  background: transparent; border: 1px solid var(--rule); color: inherit;
  font: inherit; font-size: 0.9em; }
.rail-prefs { display: flex; justify-content: flex-end; margin: 0 0 0.3rem; }

/* rail header: the title IS the panel control; the filter sits beside it and
   stays usable while the chat is collapsed */
button.rail-title { background: none; border: 0; padding: 0; cursor: pointer;
  /* the nav's exact type: alignRail pins this label to the nav's email span,
     and only equal font metrics make top-alignment equal baseline-alignment
     (inherited serif at 0.75rem sat visibly below the identity row) */
  font: inherit; font-family: var(--mono); font-size: 0.72rem;
  letter-spacing: 0.09em; color: inherit; opacity: 0.7; }
button.rail-title:hover { opacity: 1; }
/* the visible min/max cue on the panel's one control — same rotating
   disclosure marker the admin panel and context notes use, so "this
   toggles" reads at a glance instead of only "RESEARCH" as inert text. */
.rail-chevron { display: inline-block; margin-left: 0.3rem; transition: transform 0.15s ease; }
button.rail-title[aria-expanded="true"] .rail-chevron { transform: rotate(90deg); }
.rail-head .rail-head-actions { flex: 1 1 auto; display: flex; justify-content: flex-end; }
.rail-head input.rail-filter { margin: 0; max-width: 14rem; }

/* a table row that acts as a filter: it has to LOOK actionable before it is
   clicked, or the affordance exists only for whoever was told about it */
tr.row-filter { cursor: pointer; }
tr.row-filter:hover td { background: var(--rule); }
tr.row-filter:focus-visible { outline: 2px solid currentColor; outline-offset: -2px; }

/* the identity block is portrait + a text column, so what a voice IS can sit
   under its name in the space beside the portrait instead of below the fold */
.identity-head-text { display: flex; flex-direction: column; gap: 0.3rem; min-width: 0; }
.identity-head-title { display: flex; align-items: center; gap: 0.9rem; flex-wrap: wrap; }
.identity-head-text > p { margin: 0; }


/* ---- connection graph (Signals, left column) ---------------------------- */
/* One palette, defined once. Light and dark both go through these so a kind
   keeps its identity across themes. */
:root {
  --k-company: #4a6fa5;
  --k-security: #3f7d6a;
  --k-person: #8a6d3b;
  --k-filing: #7a6a8a;
  --k-prediction: #a2705a;
  --k-other: var(--rule);
}
/* Reuses .article-reader's grid so the picture sits in the same left margin the
   article and transcript readers use. Only the vertical rhythm differs: cards
   are a list, not prose. */
.graph-reader { margin-top: var(--space-sm); }
/* No graph -> no column. Collapsing to a single track (and dropping the
   negative pull) puts the cards back where they sit everywhere else, rather
   than leaving them indented past an empty margin. */
.graph-reader.no-graph {
  display: block;
  margin-left: 0;
}
.graph-reader.no-graph .reader-margin { display: none; }
/* Offset to the selected card by script; sticky so it follows once reached,
   rather than scrolling away from a card further down the list. */
.graph-reader .reader-margin { position: sticky; top: 1rem; transition: margin-top .18s ease; }
/* Narrow screens: the graph mounts under its selected card in a FIXED-height
   box — opening it must never reflow the list under the reader's finger
   (Tufte review 2026-08-23). Only ever shown ≤79rem, or ≤87.5rem with the
   research rail mounted (script-gated, signals.html).
   The box is a flex column with a HARD overflow clip: .cgraph is an SVG
   sized width:100%/height:auto, which in a full-width phone container grows
   past any fixed box and spilled the picture + legend over the next card's
   text (user screenshot 2026-08-23). The SVG now shrinks to the space the
   title/legend/hint leave (viewBox letterboxes it), and nothing escapes. */
.insight-graph-inline {
  height: 20rem;
  margin: 0.4rem 0 0.9rem;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.insight-graph-inline .cgraph { flex: 1 1 0; min-height: 0; height: auto; }

/* A voice's profile puts the network beside the portrait, so the picture is the
   first thing read WITH the name rather than a footnote below the statements.
   Its own grid rather than .article-reader's negative pull: that trick exists to
   keep an article's prose column aligned with the page header, and there is no
   prose column here to hold still. Collapses to one track when the world model
   has nothing to draw, so the profile is never indented past an empty margin. */
/* The picture hangs in the LEFT PAGE MARGIN and is OUT OF FLOW.
   A grid put it beside the identity but a grid row is as tall as its tallest
   cell, so a 15rem-wide picture 20rem tall pushed everything after it — the
   channel list, the track record, the whole page — down by its own height,
   leaving a band of dead space beside the bio. Absolute positioning is what
   makes a margin note behave like a margin note: it sits next to the content
   without occupying any of the content's vertical space. */
.voice-head-grid { position: relative; }
.voice-head-grid .voice-graph {
  position: absolute;
  top: 0;
  /* Matched to the RIGHT-hand research rail: same 22.5rem width and same
     2.5rem gutter, so the page has two margins of equal weight instead of a
     wide one on the right and a cramped one on the left. 15rem squeezed a
     thirty-node network into a column narrower than the portrait beside it. */
  left: -25rem; /* 22.5rem track + 2.5rem gap */
  width: 22.5rem;
}
/* No picture -> no margin track, and the pull comes off with it, or the
   identity would hang off the left edge of the page. */
.voice-head-grid.no-graph .voice-graph { display: none; }
/* One column on a narrow screen, picture UNDER the identity: the name and face
   are what the page is about, and a 15rem graph above them would push them off
   a phone's first screen. */
/* 94rem: with the rail mounted the frame's left margin is viewport - 70.25rem
   (body.has-rail main), and the picture needs 23.75rem of it (25rem pull
   minus main's 1.25rem padding) — 94rem exactly. At the old 60rem the picture hung off the left edge of every
   viewport between 60 and 94rem — invisible, and taking its clicks with it.
   Below the threshold it rejoins the flow UNDER the identity, because the name
   and face are what the page is about. */
@media (max-width: 94rem) {
  .voice-head-grid .voice-graph {
    position: static;
    width: auto;
    max-width: 22.5rem;
    margin-top: var(--space-sm);
  }
}

/* The universe picture is the shape of the WHOLE set. It sits in the same left
   page margin as the other two, so every graph on the site is in the same place
   and the table below keeps its full width and its alignment with the heading. */
/* Same margin, same out-of-flow reason: the table below must keep its position
   and its full width rather than being pushed down by the picture's height. The
   wrapper is a zero-height anchor, so it occupies nothing in the flow. */
.universe-graph-wrap { position: relative; height: 0; }
.universe-graph-wrap[hidden] { display: none; }
.universe-graph {
  position: absolute;
  top: 0;
  left: -25rem; /* matches .rail's 22.5rem + 2.5rem, see .voice-graph */
  width: 22.5rem;
}
@media (max-width: 94rem) {
  .universe-graph-wrap { height: auto; }
  .universe-graph {
    position: static;
    width: auto;
    max-width: 22.5rem;
    margin-bottom: var(--space-sm);
  }
}

.cgraph { width: 100%; height: auto; display: block; }
.cgraph-edge { stroke: var(--rule-soft); stroke-width: 1; }
/* Kind carries the colour. The world model types every node (Company, Security,
   Agent, Person, Filing, Prediction...), and drawing them all one grey threw
   that away — whether a bridge runs through people or through filings is most
   of what the picture is for. Muted on purpose: the ROLE (hinge/endpoint) still
   has to read first, so kinds are tints rather than a bright categorical set. */
.cgraph-node circle, .cgraph-node rect {
  fill: var(--k-other); stroke: var(--bg); stroke-width: 1.5; cursor: pointer;
}
.cgraph-node.k-company circle, .cgraph-node.k-company rect { fill: var(--k-company); }
/* GROUP colours (sector on the universe graph), assigned by a stable hash in
   cgraph.js rather than by name. A hand-kept name->colour map would need editing
   every time the SIC mapping produced a new tag, and until someone did, the new
   sector would fall to a default grey — which reads as a CATEGORY rather than as
   a gap. Ten slots, muted like the kind palette so the picture stays quiet, and
   distinguishable in order rather than by hue alone. */
.cgraph-node.g-0 circle { fill: #8fabd8; }
.cgraph-node.g-1 circle { fill: #79bda6; }
.cgraph-node.g-2 circle { fill: #c6a570; }
.cgraph-node.g-3 circle { fill: #b3a3c4; }
.cgraph-node.g-4 circle { fill: #d8a48c; }
.cgraph-node.g-5 circle { fill: #7fa8b8; }
.cgraph-node.g-6 circle { fill: #b8b378; }
.cgraph-node.g-7 circle { fill: #cf9aa8; }
.cgraph-node.g-8 circle { fill: #93b585; }
.cgraph-node.g-9 circle { fill: #a9a9bb; }
.cgraph-legend-item { white-space: nowrap; }  /* a swatch never wraps away from its word */
.cgraph-key.g-0 { background: #8fabd8; }
.cgraph-key.g-1 { background: #79bda6; }
.cgraph-key.g-2 { background: #c6a570; }
.cgraph-key.g-3 { background: #b3a3c4; }
.cgraph-key.g-4 { background: #d8a48c; }
.cgraph-key.g-5 { background: #7fa8b8; }
.cgraph-key.g-6 { background: #b8b378; }
.cgraph-key.g-7 { background: #cf9aa8; }
.cgraph-key.g-8 { background: #93b585; }
.cgraph-key.g-9 { background: #a9a9bb; }

.cgraph-node.k-security circle { fill: var(--k-security); }
.cgraph-node.k-agent circle, .cgraph-node.k-person circle { fill: var(--k-person); }
.cgraph-node.k-filing circle { fill: var(--k-filing); }
.cgraph-node.k-prediction circle { fill: var(--k-prediction); }
/* Three roles, and role NEVER touches the fill. Colour belongs to the kind and
   to the legend that explains it; an endpoint painted --accent was a colour that
   appeared in the picture and in no key, so the two most important nodes on
   screen were the two a reader could not look up. Size is out for the same
   reason: a bigger circle reads as "more of that kind", which is not the claim.
   The endpoints are marked by an OUTLINE and the hinge by its SHAPE, both of
   which are free of the colour channel. */
.cgraph-node.is-endpoint circle { stroke: var(--fg); stroke-width: 1.5; }
.cgraph-node.is-hinge rect { fill: var(--fg); stroke-width: 2; }
.cgraph-node:hover circle, .cgraph-node:focus circle,
.cgraph-node:hover rect, .cgraph-node:focus rect { fill: var(--accent); }
.cgraph-node:focus { outline: none; }
.cgraph-node:focus circle, .cgraph-node:focus rect {
  stroke: var(--accent); stroke-width: 2;
}
/* The detail line under the graph is not a caption, it is the ANSWER: click a
   node and this is what tells you who it is and how it connects
   ("Logan Green · agent · director of, proposed sale, acts on, traded"). It was
   inheriting `.denom`'s 0.85em on top of a rail that is already narrow, which
   compounded into something barely readable — the one line in the column a
   reader actually has to read was the smallest text on the page. Sized in rem
   so it cannot compound with whatever the container does. */
/* Ticker labels on the universe graph. Sized in viewBox units (the SVG scales
   with the fit), quiet enough that the dots stay the subject, and pointer-events
   off so a label can never swallow a click meant for its node. */
.cgraph-label {
  /* Set per-draw by the renderer from the fitted viewBox (see fitViewBox): the
     units are viewBox units, so a fixed size vanishes as soon as the layout
     spreads. The fallback matters only if the script has not run. */
  font-size: var(--cgraph-label-size, 11px);
  fill: var(--muted);
  pointer-events: none;
  font-family: var(--mono, ui-monospace, monospace);
  letter-spacing: 0.02em;
  /* labels sit in a layer above the dots (cgraph.js placeLabels); a halo in
     the page colour keeps one legible where it crosses a dot or an edge */
  paint-order: stroke;
  stroke: var(--paper);
  stroke-width: 0.25em;
  stroke-linejoin: round;
}

.cgraph-hint {
  margin: 0.5rem 0 0;
  line-height: 1.5;
  font-size: 0.92rem;
  color: var(--fg);
}
/* The name and kind lead it; the relation list stays quiet behind them. */
.cgraph-hint .cgraph-detail-name { font-weight: 600; }
.cgraph-hint .cgraph-detail-rel { color: var(--muted); }
/* Reads as a caption for the picture above it, so it needs a gap that separates
   it from the drawing rather than sitting on the last node. */
.cgraph-legend { margin: 0.9rem 0 0; line-height: 1.6; font-size: 0.82rem; }
.cgraph-key {
  display: inline-block; width: 0.55rem; height: 0.55rem; border-radius: 50%;
  background: var(--k-other); vertical-align: baseline;
}
.cgraph-key.k-company { background: var(--k-company); }
.cgraph-key.k-security { background: var(--k-security); }
.cgraph-key.k-agent, .cgraph-key.k-person { background: var(--k-person); }
.cgraph-key.k-filing { background: var(--k-filing); }
.cgraph-key.k-prediction { background: var(--k-prediction); }

/* Selecting a card swaps the picture; aria-current carries the state so it is
   not signalled by colour alone. */
.cgraph-pick { cursor: pointer; }
.cgraph-pick[aria-current="true"] {
  box-shadow: inset 2px 0 0 var(--accent);
  padding-left: 0.6rem;
}
.cgraph-pick:focus-visible { outline: 1px solid var(--accent); outline-offset: 2px; }

/* LinkedIn section on the voice page (posts + engagement graph) */
#linkedin-section .li-post {
  padding: 0.2rem 0;
  margin: 0.6rem 0;
}
#linkedin-section .li-post p { margin: 0.2rem 0; }
.linkedin-engagement {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}
.engagement-col { min-width: 12rem; }
ul.engagement { list-style: none; padding: 0; margin: 0.2rem 0; }
ul.engagement li { padding: 0.15rem 0; }
/* the "+ N more … no connection found" list: collapsed by default, click to check */
.engagement-others { margin-top: 0.3rem; }
.engagement-others > summary { cursor: pointer; }
.engagement-others[open] > summary { margin-bottom: 0.25rem; }
/* why an engager is on the page — stated inline, never implied */
.reason-chip {
  display: inline-block;
  margin-left: 0.5rem;
  padding: 0 0.4rem;
  font-size: 0.78em;
  color: var(--muted, #666);
  border: 1px solid var(--rule, #ddd);
  border-radius: 2px;
  white-space: nowrap;
}
.engagement-graph { margin-top: 0.6rem; max-width: 100%; }
.engagement-graph canvas { max-width: 100%; }

/* Sites & blogs (channels.html): one row per voice (picture and name), its
   sites stacked in the second column. Two columns keep the table inside the
   page on every width. Each site is two lines beside its icon: the domain,
   then its counts, any exception to being read and "latest" as meta, which
   opens the newest pages beneath, under the domain's left edge. The voice's
   name and its first domain share a line height, so they share a baseline. */
#sites-table td.site-voice { width: 12rem; }
/* voices are told apart by space: a voice's own sites sit 0.65rem apart, two
   voices 2rem apart across the full rule (the faint one between ordinary rows
   left them reading as one list) */
#sites-table tbody td { padding-top: 1rem; padding-bottom: 1rem; border-bottom-color: var(--rule); }
.site-voice-row > a { font-weight: 600; line-height: 1.4; }
ul.plain.sites { list-style: none; margin: 0; padding: 0; max-width: none; }
ul.plain.sites > li.site {
  display: grid; grid-template-columns: 20px minmax(0, 1fr);
  column-gap: 0.55rem; row-gap: 0.05rem; align-items: center;
}
ul.plain.sites > li.site + li.site { margin-top: 0.65rem; }
ul.plain.sites > li.site > * { grid-column: 2; }
ul.plain.sites > li.site > .site-icon { grid-column: 1; grid-row: 1; margin-right: 0; }
ul.plain.sites .site-head > a { line-height: 1.4; overflow-wrap: anywhere; }
/* a site that is not read recedes: its domain in the muted ink */
ul.plain.sites li.unread .site-head > a { color: var(--muted); }
ul.plain.sites .site-meta { font-size: 0.72rem; }
/* the read-anyway action rides the meta line at its height */
ul.plain.sites .site-meta button.quiet {
  min-height: 0; padding: 0.05rem 0.45rem; margin-left: 0.6rem; font-size: 0.62rem;
}
ul.plain.sites .site-meta .meta-item { white-space: nowrap; }
/* a phone wraps the meta line between whole items, spaced by a gap rather
   than " · " (a wrapped line ended on a dangling dot), and the read-anyway
   button starts at the line's edge when it wraps (its margin pushed it ~20px
   right of the line above) */
@media (max-width: 40rem) {
  ul.plain.sites .site-meta {
    display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 0.85rem; row-gap: 0.25rem;
  }
  ul.plain.sites .site-meta .sep { display: none; }
  ul.plain.sites .site-meta button.quiet { margin-left: 0; }
}
ul.plain.sites ul.latest {
  list-style: none; margin: 0.3rem 0 0.1rem; padding: 0;
  max-width: none; font-size: 0.9rem; line-height: 1.35;
}
ul.plain.sites ul.latest li + li { margin-top: 0.2rem; }
/* Followed sources (channels.html: YouTube, congressional channels, podcasts,
   newsletters), one row shape. The source's art spans two lines beside it:
   the name (with only its exceptions as notes), then what the corpus holds
   from it as meta, with "latest" opening the newest items beneath, under the
   name's left edge. On the right the run state (paused, the last run as a
   short date, named only when it failed) sits beside the button that changes
   it, one unit. Rows are told apart like sites & blogs: space and the full
   rule. */
.source-table tbody td {
  vertical-align: middle; padding-top: 0.7rem; padding-bottom: 0.7rem;
  border-bottom-color: var(--rule);
}
.source-row {
  display: grid; grid-template-columns: 36px minmax(0, 1fr);
  column-gap: 0.6rem; row-gap: 0.05rem; align-items: center; min-width: 0;
}
.source-row > * { grid-column: 2; }
.source-row > .agent-img, .source-row > .site-icon { grid-column: 1; grid-row: 1 / span 2; }
/* a newsletter's site icon sits in the same 36px column as a channel's art,
   drawn larger than in a list line so the two columns weigh alike */
.source-row > .site-icon {
  justify-self: center; margin-right: 0; width: 28px; height: 28px; font-size: 14px;
}
.source-row > .site-icon img { width: 22px; height: 22px; }
.source-row .source-head > a, .source-row .source-head > button.linklike {
  line-height: 1.4; overflow-wrap: anywhere;
}
/* a show's name opens its detail in place: a button, drawn as the link the
   other sources' names are */
.source-row .source-head > button.linklike {
  color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 0.15em;
  text-decoration-color: color-mix(in srgb, var(--accent) 45%, transparent);
}
.source-row .source-head > button.linklike:hover { text-decoration-color: var(--accent); }
.source-row .source-meta { font-size: 0.72rem; margin-top: 0; }
/* a channel's summary: the row's main line, set like an item's text */
.source-row .source-summary {
  margin: 0.1rem 0 0.15rem; max-width: none; font-size: 0.88rem; line-height: 1.45;
  overflow-wrap: anywhere;
}
.source-row .source-meta .part { white-space: nowrap; }
.source-row a.voice-link { color: inherit; }
.source-row a.voice-link:hover { color: var(--accent); }
.source-row ul.latest {
  list-style: none; margin: 0.3rem 0 0.1rem; padding: 0;
  max-width: none; font-size: 0.9rem; line-height: 1.35;
}
.source-row ul.latest li + li { margin-top: 0.2rem; }
.source-row ul.latest .item-meta {
  font-family: var(--mono); font-size: 0.72rem; color: var(--muted); white-space: nowrap;
}
/* "latest" is a control, not data: meta ink until hovered (sites & blogs too) */
button.latest-toggle { color: inherit; text-decoration: none; }
button.latest-toggle:hover { color: var(--accent); text-decoration: underline; }
button.latest-toggle::after { content: " \25B8"; }
button.latest-toggle[aria-expanded="true"]::after { content: " \25BE"; }
td.run { font-family: var(--mono); font-size: 0.72rem; color: var(--muted); white-space: nowrap; }
td.run .run-problem { color: var(--ink); }
.run-line { display: flex; align-items: center; justify-content: flex-end; gap: 0.6rem; }
td.run button.quiet { min-height: 0; padding: 0.05rem 0.45rem; font-size: 0.62rem; }
/* the run column is fixed, so every source table lines up */
.source-table td.run, .source-table thead th:nth-child(2) { width: 11rem; text-align: right; }
/* the processing pause, stated once above the list it holds */
.pause-note { font-size: 0.85rem; color: var(--muted); margin: 0.2rem 0 0.6rem; max-width: 40rem; }
@media (max-width: 40rem) {
  /* stacked into cards: tight inside a card, the space between cards */
  .stack-sm .source-table tbody td { padding-top: 0.16rem; padding-bottom: 0.16rem; }
  .stack-sm .source-table tbody tr { padding: 0.8rem 0 0.6rem; }
  .source-table td.run { width: auto; }
  .stack-sm .source-table td.source { font-size: 1rem; }
}
/* phone: the sites cell is a block list, not the stacked card's right-aligned
   label/value flex row */
@media (max-width: 40rem) {
  .stack-sm #sites-table td.site-list { display: block; text-align: left; padding-left: 0.75rem; }
  /* stacked, a voice's name and its sites are one card: tight inside, the
     space goes between cards */
  .stack-sm #sites-table tbody td { padding-top: 0.16rem; padding-bottom: 0.16rem; }
  .stack-sm #sites-table tbody tr { padding: 1rem 0 0.8rem; }
  #sites-table td.site-voice { width: auto; }
}

/* Named together (voice-portrait phase 3): one compact table, numbers right-aligned */
.associations { margin: 0.75rem 0 0.5rem; }
table.associations { border-collapse: collapse; font-size: 0.9rem; width: auto; }
table.associations th, table.associations td { padding: 0.15rem 0.6rem 0.15rem 0; text-align: left; vertical-align: baseline; }
table.associations th.num, table.associations td.num { text-align: right; font-variant-numeric: tabular-nums; }
table.associations td.denom { padding-left: 0.2rem; }

/* voice portrait (phase 4): the stance is line 2 of a theme row, full width,
   clamped to two lines; the drill-in holds the full text and the receipts */
.topic-map .stance-line { grid-column: 1 / -1; margin: 0.15em 0 0; display: -webkit-box;
  -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.topic-map .label-bar { white-space: nowrap; }
.topic-map .stance-text { font-style: italic; }
.topic-map .stance-full { margin: 0.4em 0 0.1em; }
.topic-map .receipt { margin: 0 0 0.2em 1.2em; }
@media (max-width: 40rem) {
  .topic-map .stance-line { -webkit-line-clamp: unset; }
}
.topic-map .rest-fold > summary { padding: 0.3rem 0; }
.rollup { margin: 0.4rem 0 0.8rem; }
.rollup .rollup-text { font-size: 1.05em; line-height: 1.45; margin: 0 0 0.3rem; }
/* voice portrait: the time column holds the density bars and, beneath them,
   the phase band; the drill-in shows each statement's label glyph and its
   occurrence tick on the same axis. Phone: the band and the label bar move
   into the drill-in (a month is under 3 px at 64 px over two years). */
.topic-map .time-col { display: inline-flex; flex-direction: column; gap: 2px; align-items: flex-start; }
.topic-map .phase-band { display: block; }
.events .label-glyph { font-family: monospace; margin-right: 0.2em; }
.events .occ { margin-left: 0.5em; vertical-align: middle; }
@media (max-width: 40rem) {
  .topic-map .phase-band { display: none; }
  .topic-map .label-bar { display: none; }
  .events .occ { display: none; }
}

/* owner review 2026-09-21: the lead above the fold, the byline under the
   name, evidence-first calls, the due-date strip */
.byline { margin: 0.2rem 0 0; }
.lead { margin: 0.6rem 0 1rem; }
.lead .lead-text { font-size: 1.1em; line-height: 1.5; margin: 0 0 0.4rem; }
/* whose views the portrait summarises (Tufte pass 2026-09-28): a
   section-size heading with a word-sized bar of first-hand vs reported
   sources, an intro line (role, counts), the account as a ruled block */
.lead .portrait-attribution { margin: var(--space-sm) 0 0.2rem; }
.lead .portrait-attribution .source-word { display: inline-flex; align-items: center;
  margin-left: 0.6rem; vertical-align: middle; }
.lead .portrait-intro { margin: 0 0 var(--space-sm); color: var(--muted); }
.source-bar .own { fill: var(--ink); }
.source-bar .others { fill: color-mix(in srgb, var(--muted) 35%, transparent); }
.lead .portrait-account { border-left: 3px solid var(--rule); padding-left: var(--space-sm);
  margin: 0 0 var(--space-xs); }
.due-legend svg { vertical-align: middle; margin-right: 0.4em; }
.topic-map .span-text { white-space: nowrap; font-size: 0.85em; }

/* owner, 2026-09-21 17:40 and 18:20: "too compact", "still all cut off, way
   too dense". The theme row is a stacked block, not a three-column grid:
   the title on its own full line (never cut), the stance beneath it at body
   size and full width, then one small line with the label counts and the
   time mark; air between rows. */
.topic-map .topic-spine { display: grid; grid-template-columns: 1fr auto;
  grid-template-areas: "name name" "stance stance" "claim time";
  gap: 0.3rem 1rem; padding: 0.9rem 0 0.7rem; align-items: center; }
.topic-map .topic-name { grid-area: name; white-space: normal; overflow: visible; text-overflow: clip;
  font-size: 1.08em; line-height: 1.3; }
.topic-map .stance-line { grid-area: stance; display: block; -webkit-line-clamp: unset; overflow: visible;
  margin: 0; line-height: 1.55; font-size: 1em; }
.topic-map .stance-text { font-style: normal; }
.topic-map .topic-claim { grid-area: claim; white-space: normal; overflow: visible; display: block; }
.topic-map .time-col { grid-area: time; }
.topic-map details.call-fold + details.call-fold { border-top: 1px solid var(--rule); }
@media (max-width: 40rem) {
  .topic-map .topic-spine { grid-template-columns: 1fr; grid-template-areas: "name" "stance" "claim"; }
  .topic-map .topic-claim { display: block; }
  .topic-map .time-col { display: none; }
}

/* the drill-in's receipts: numbered sentence, then one compact line per
   receipt; folds keep the wall away until asked for */
.receipt-groups { margin: 0.3rem 0 0 1.2rem; padding: 0; }
.receipt-groups > li { margin: 0.35rem 0; }
.receipts { list-style: none; margin: 0.2rem 0 0 0.6rem; padding: 0; }
.receipts .receipt { margin: 0.15rem 0; font-size: 0.9em; line-height: 1.4; }
.lead .lead-link { text-decoration: none; border-bottom: 1px solid var(--rule); }
.lead .lead-link:hover { border-bottom-color: currentColor; }
/* the panel's edge closes the table; a rule under the last row doubled it */
.panel table tbody tr:last-child td { border-bottom: none; }
/* drill-in: receipts read as prose, one indent, no second fold; forecast tag */
.receipt-groups { list-style: none; margin: 0.4rem 0 0; padding: 0; }
.receipt-groups > li.receipt-group { margin: 0 0 0.6rem; }
.stance-sentence { display: block; margin-bottom: 0.2rem; }
.receipts { list-style: none; margin: 0 0 0 1rem; padding: 0 0 0 0.7rem; border-left: 1px solid var(--rule); }
.receipts .receipt { margin: 0.2rem 0; font-size: 0.9em; line-height: 1.45; }
.stance-meta { margin: 0.2rem 0 0; }
.statements-fold { margin-top: 0.6rem; }
.forecast-tag { white-space: nowrap; }
/* a call naming the speaker's employer, then or former: a bordered tag, not
   an outcome colour (it says who spoke, not whether they were right) */
.affil-tag {
  color: var(--affil);
  border: 1px solid currentColor;
  border-radius: 3px;
  padding: 0 0.3em;
  margin-left: 0.35em;
  font-size: 0.82em;
  white-space: nowrap;
}
.calls-legend { margin: 0.1rem 0 0.6rem; }

/* reader lens: a receipt that reaches the reader's tracked tickers */
.lens-hit { color: var(--up, #6ab04c); font-weight: 600; white-space: nowrap; }
.receipt.lit { border-left: 2px solid var(--up, #6ab04c); padding-left: 8px; }

/* Reader lens panel: one folded section per holding, its summary line the
   voice's record on it; calls inside reuse the calls list's row. */
.lens-panel { margin: 0.75rem 0 0.5rem; }
.lens-panel > h4 { margin: 0 0 0.4rem; }
.lens-ticker { margin: 0 0 0.45rem; }
.lens-ticker > summary {
  cursor: pointer; font-size: 0.95rem;
  border-left: 2px solid var(--up, #6ab04c); padding-left: 8px;
}
.lens-ticker[open] > summary { margin-bottom: 0.3rem; }
.lens-calls { margin: 0.2rem 0 0.3rem; padding-left: 8px; }
.lens-fold { margin: 0.2rem 0 0.3rem 8px; }
.lens-fold > summary { cursor: pointer; }
.lens-divider { margin: 0.35rem 0 0 8px; font-size: 0.85rem; }
.lens-stmt { margin: 0.25rem 0 0.35rem 8px; font-size: 0.9rem; line-height: 1.35; }
.lens-via { white-space: nowrap; }
.lens-meta { white-space: nowrap; }
.lens-stmt a { text-decoration: none; }
.lens-stmt a:hover { text-decoration: underline; }

/* LinkedIn as updates to central points: grouped, belief-bearing posts. */
.linkedin-updates { margin: 0.5rem 0; }
.li-point { margin: 0 0 0.8rem; }
.li-point h5 {
  margin: 0 0 0.3rem; font-size: 0.95rem;
  border-left: 2px solid var(--up, #6ab04c); padding-left: 8px;
}
.li-update { margin: 0 0 0.6rem 8px; }
.li-update p { margin: 0.1rem 0; }

/* --- Voice track record (Tufte review 2026-09-23) -------------------------
   Every scored call as a made-to-deadline span, labelled in place; the
   unresolved calls as counts per deadline quarter underneath. Hits and misses
   are carried by POSITION (above / below the axis) as well as colour. */
.track-record .tr-sentence { max-width: var(--measure); line-height: 1.55; }
.trk { margin: var(--space-sm) 0 var(--space-xs); }
.trk-row { display: grid; grid-template-columns: minmax(0, 1fr) 40%; column-gap: 0.8rem; }
.trk-row[hidden] { display: none; }
.trk-head { font-family: var(--mono); font-size: 0.72rem; padding: 0.5rem 0 0.15rem; border-bottom: 1px solid var(--rule-soft); }
.trk-head.up { color: var(--up); } .trk-head.down { color: var(--down); }
.trk-more { padding: 0.1rem 0; }
.trk-call { font: inherit; font-size: 0.92rem; line-height: 1.35; text-align: left; color: var(--ink);
  background: none; border: 0; padding: 0.2rem 0; cursor: pointer; min-height: 1.6em;
  text-transform: none; letter-spacing: normal; font-family: var(--serif); }
.trk-call:hover, .trk-call[aria-expanded="true"] { color: var(--accent); }
.trk-receipt { grid-column: 1 / -1; padding: 0.2rem 0 0.6rem; max-width: var(--measure); }
.trk-receipt[hidden] { display: none; }
.trk-track { position: relative; min-height: 1.6em; }
.trk-track > span { position: absolute; }
.trk-seg { top: 0.72em; height: 3px; }
.trk-end { top: 0.52em; width: 3px; height: 9px; margin-left: -1px; }
.trk-seg.up, .trk-end.up { background: var(--up); }
.trk-seg.down, .trk-end.down { background: var(--down); }
.trk-seg.mid, .trk-end.mid { background: var(--muted); }
/* a call examined with no date: its verdict glyph where it was said, no span */
.trk-dot { top: 0.15em; margin-left: -0.3em; line-height: 1; }
.trk-dot.up { color: var(--up); } .trk-dot.down { color: var(--down); } .trk-dot.mid { color: var(--muted); }
.trk-today { top: 0; bottom: 0; border-left: 1px solid var(--ink); }
.trk-rug .trk-track { height: 3rem; border-bottom: 1px solid var(--rule); margin-top: 0.4rem; }
.trk-q { bottom: 0; box-sizing: border-box; min-width: 2px; }
.trk-q.due { border: 1px solid var(--muted); }
.trk-q.open { border: 1px dashed var(--lattice); }
.trk-axis .trk-track { min-height: 2.2em; }
.trk-year { font-family: var(--mono); font-size: 0.66rem; color: var(--muted); top: 0.1rem; }
/* its own line under the years: today sits within months of a year tick */
.trk-now { color: var(--ink); top: 1.1rem; }
@media (max-width: 40rem) {
  .trk-row { grid-template-columns: minmax(0, 1fr); }
  .trk-track { min-height: 12px; }
  .trk-seg { top: 4px; } .trk-end { top: 2px; }
}

/* A receipt the page handed the research rail (rail:show). Rail idiom: quiet
   small type, left-ruled, no box chrome. */
.rail-card { border-left: 2px solid var(--rule); padding: 0 0 0 0.6rem; margin: 0.6rem 0; }
.rail-card-row { margin: 0.3rem 0; }
.rail-card-meta { color: var(--muted); font-size: 0.85em; }

/* Roll-up receipts: a superscript per sentence, opened in the rail; the
   hovered sentence is tinted while the graph lights what it names. */
.lead-ref { font-family: var(--mono); font-size: 0.72em; font-weight: 700; vertical-align: super;
  text-decoration: none; padding: 0 0.15em; color: var(--accent); }
.lead-sentence.is-hovered { background: var(--tint-accent); }
.cgraph.has-lit .cgraph-node:not(.is-lit):not(.is-endpoint):not(.is-hinge) { opacity: 0.25; }
.cgraph.has-lit .cgraph-label:not(.is-lit):not(.is-endpoint):not(.is-hinge) { opacity: 0.25; }
.cgraph.has-lit .cgraph-edge:not(.is-lit) { opacity: 0.25; }
.cgraph .cgraph-edge.is-lit { stroke: var(--accent); stroke-width: 2; }
.cgraph .cgraph-node.is-lit circle, .cgraph .cgraph-node.is-lit rect { stroke: var(--accent); stroke-width: 2; }
.rail-card .rail-note { text-align: left; }
.holdings-line { margin: 0.3rem 0 0; }

/* The one calls list: views narrow it, a rule marks today. */
.call-views { display: flex; flex-wrap: wrap; gap: 0.2rem; margin: 0.4rem 0; }
.call-view { font: inherit; font-family: var(--mono); font-size: 0.78rem; background: none; border: 0;
  border-bottom: 1px solid transparent; padding: 0.6rem 0.4rem; min-height: 44px; color: var(--accent); cursor: pointer; }
.call-view[aria-pressed="true"] { color: var(--ink); border-bottom-color: var(--ink); }
/* QA zone: every control only QA reviewers or admins see sits in an orange
   box with a "Q&A" watermark, so a reviewer never takes it for the page. */
.qa-zone { position: relative; margin: var(--space-xs) 0; padding: var(--space-xs) var(--space-sm);
  border: 1px dashed color-mix(in srgb, var(--qa) 55%, transparent); border-left: 3px solid var(--qa);
  background-color: color-mix(in srgb, var(--qa) 9%, transparent); background-image: var(--qa-watermark); }
/* the account page's QA box opens with an h2: its page-level top margin
   (--space-xl) would sit inside the box; match the box's bottom space */
.qa-zone > h2:first-child { margin-top: var(--space-sm); }
/* QA vote: the chosen thumb stays visibly pressed until the vote changes */
.qa-vote-form button.qa-up, .qa-vote-form button.qa-down { border: 1px solid var(--rule); }
.qa-vote-form button[aria-pressed="true"] { background: var(--tint-accent); border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.qa-vote-form:has(button[aria-pressed="true"]) button[aria-pressed="false"] { opacity: 0.6; }
.qa-vote-form:has(button[aria-pressed="true"]) button[aria-pressed="false"]:hover { opacity: 1; }
.qa-reason[aria-invalid="true"] { border-color: var(--accent); outline: 1px solid var(--accent); }
.qa-send:disabled { opacity: 0.5; cursor: default; }
.qa-send-note.qa-send-failed { color: var(--down, var(--accent)); }
li.call-divider { list-style: none; border-top: 1px solid var(--ink); padding: 0.15rem 0; margin-top: 0.3rem; font-family: var(--mono); font-size: 0.72rem; }
li.call-more { list-style: none; padding: 0.2rem 0; }

/* ---- phone-width overrides (Pixel, 412px; owner review 2026-10-12) -------
   Kept at the END of the sheet on purpose: each overrides a base rule of equal
   specificity defined above, and an override placed before its base rule
   silently loses (the first pass did, and the toolbar stayed right-aligned). */
@media (max-width: 40rem) {
  /* a toolbar of "N rows" + filter starts at the column edge and the box
     takes the rest of the line, instead of a count floating mid-line */
  .table-toolbar { justify-content: flex-start; }
  .table-toolbar .table-filter { flex: 1 1 auto; width: auto; max-width: none; min-width: 0; }
  /* a band head with a control (the by-person/by-topic switch) wraps whole
     words onto a second line instead of breaking each label */
  .band-head { flex-wrap: wrap; row-gap: 0.3rem; }
  .band-head .switch-wrap, .band-head .switch-side { white-space: nowrap; }
}

/* the scoring fold on the Voices page reads as something that opens */
details.how-scored > summary { list-style: none; }
details.how-scored > summary::-webkit-details-marker { display: none; }
details.how-scored > summary::before { content: "\25B8\00a0"; color: var(--muted); }
details.how-scored[open] > summary::before { content: "\25BE\00a0"; }
details.how-scored ul { margin: 0.2rem 0 0.4rem; padding-left: 1.2rem; }

/* The voice page's record, by topic and by sector (voices.html recordRow):
   one grid line per topic — name, a word-sized bar, the exact fraction, the
   open count — with the units once in the head row, the domains and the
   records kept out of the hit rate as quiet lines beneath. Same grid on a
   phone: four short columns fit 360px, and the name wraps. */
.rec-list { margin: 0.4rem 0 1.4rem; }
.rec-head, .rec-line {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 4.5rem 3.4rem 2rem;
  align-items: center;
  column-gap: 0.7rem;
}
.rec-head {
  font-family: var(--mono); font-size: 0.64rem; text-transform: uppercase;
  letter-spacing: 0.08em; color: var(--muted);
  border-bottom: 1px solid var(--rule); padding-bottom: 0.3rem;
}
.rec-head .rec-span2 { grid-column: 2 / span 2; }
/* desktop has the room: a longer bar resolves small counts beside large ones */
@media (min-width: 40.01rem) {
  .rec-head, .rec-line { grid-template-columns: minmax(0, 1fr) 8rem 3.6rem 2.6rem; }
}
.rec-head .rec-unit, .rec-frac, .rec-open { text-align: right; }
.rec-row { padding: 0.5rem 0; border-bottom: 1px solid var(--rule-soft); }
.rec-name { font-weight: 600; color: var(--ink); }
.rec-name.loose { font-weight: 400; }
.rec-row.thin .rec-name, .rec-row.thin .rec-frac { color: var(--muted); }
.rec-frac, .rec-open { font-family: var(--mono); font-size: 0.85rem; font-variant-numeric: tabular-nums; }
.rec-open { color: var(--muted); }
.rec-bar { display: block; width: 100%; height: 0.45rem; }
.rec-bar .rec-wrong { fill: var(--rule); }
.rec-bar .rec-right { fill: var(--up); }
.rec-sub { font-size: 0.86rem; color: var(--muted); margin-top: 0.2rem; line-height: 1.45; }
.rec-filter { cursor: pointer; }
.rec-sub .rec-filter { text-decoration: underline dotted; text-underline-offset: 0.2em; }
.rec-filter:hover, .rec-filter:focus-visible { color: var(--accent); }

/* Signals: the "alert me" switch and its channel checkboxes, under the page
   title. Every piece centres on one midline: the switch, its label, each box,
   mark and name (owner, 2026-10-12: the first cut sat off the middle). */
.alert-control { margin: 0 0 1.25rem; }
.alert-control .alert-row { display: flex; align-items: center; flex-wrap: wrap; gap: 0.6rem 1.1rem; }
.alert-control .switch-wrap { display: inline-flex; align-items: center; }
.alert-control .alert-channel {
  display: inline-flex; align-items: center; gap: 0.35rem;
  font-family: var(--mono); font-size: 0.72rem; text-transform: uppercase;
  letter-spacing: 0.08em; line-height: 1; cursor: pointer;
  margin: 0;  /* the global `label` rule's 0.9rem bottom margin lifted it off the midline */
}
.alert-control .alert-channel input { margin: 0; accent-color: var(--accent); }
.alert-control .alert-channel.off { color: var(--muted); opacity: 0.55; cursor: not-allowed; }
.alert-control .channel-icon { width: 1.05rem; height: 1.05rem; flex: none; }
.alert-control .alert-note { margin: 0.4rem 0 0; }
