/* Berkshire, against its own record.
   The site's register: parchment stock, archival ink, crimson rules, brass
   numerals, lead hairlines. EB Garamond reads; JetBrains Mono records.
   Crimson fills a control only when it is pressed or hovered.

   Layout rule: one left edge. Every block -- heading, figure, fact, quote,
   citation, control -- starts on the same line, and nothing is drawn down
   the left of anything. Structure comes from type, spacing and horizontal
   rules, the way a printed record or a finding aid is set. No boxes around
   content, no vertical rails, no tinted panels. */

:root {
  --parchment:   #F7F5F0;
  --paper:       #FFFFFF;
  --parchment-2: #F1EEE6;
  --ink:    #1A1918;
  --ink-2:  #33312E;
  --ink-3:  #55524B;
  --muted:  #6E6A61;
  --crimson:   #A51C30;
  --crimson-2: #8A1727;
  --brass:     #C5A059;
  --brass-ink: #8A6A2A;   /* brass dark enough to read as text */
  --rule:      #D6D1C7;
  --rule-2:    #C2BCB0;
  --serif: 'EB Garamond', 'Baskerville', Caslon, Georgia, serif;
  --mono:  'JetBrains Mono', 'Courier New', Courier, monospace;
  --measure: 760px;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.5;
  background: var(--parchment);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--crimson); text-underline-offset: 3px; text-decoration-thickness: 1px; }
:where(a, button, [tabindex]):focus-visible { outline: 2px solid var(--crimson); outline-offset: 2px; }

.page, .foot {
  max-width: var(--measure);
  margin: 0 auto;
  padding: 0 16px;
}
.page { padding-top: 28px; padding-bottom: 24px; }

.eyebrow, .label, .meta, .crumb, .tag, .year, .cite, .fine, .fine-note,
.vote legend, .vote-btn, .ledger th, .ledger td, .pending, .draft-note {
  font-family: var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-variant-numeric: tabular-nums;
}
.eyebrow { font-size: 12px; font-weight: 600; color: var(--crimson); margin: 36px 0 10px; }
.page > .eyebrow:first-child { margin-top: 0; }
.label { font-size: 11px; font-weight: 600; color: var(--muted); margin: 18px 0 6px; }
.meta { font-size: 12px; color: var(--ink-3); margin: 6px 0; }
.crumb { font-size: 12px; margin-bottom: 14px; }
.crumb a { color: var(--ink-3); }

h1 {
  font-weight: 500;
  font-size: clamp(30px, 6vw, 44px);
  line-height: 1.1;
  margin: 0 0 14px;
  letter-spacing: -0.01em;
}
.standfirst { font-size: 20px; color: var(--ink-2); margin: 0 0 12px; }

section > h2.eyebrow { border-top: 1px solid var(--crimson); padding-top: 10px; }

.pending { font-size: 11px; color: var(--muted); }
.draft-note {
  font-size: 11px; color: var(--crimson-2);
  border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule);
  padding: 9px 0; margin: 18px 0 0;
}

/* At a glance */
.glance { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 0; margin: 0; border-top: 1px solid var(--rule); }
.glance-item { padding: 10px 12px 12px 0; border-bottom: 1px solid var(--rule); }
.glance dt { font-size: 15px; color: var(--ink-3); }
.glance dd { margin: 4px 0 0; }
.figure { font-size: 26px; font-variant-numeric: tabular-nums; margin-right: 6px; }
.src { font-family: var(--mono); font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; white-space: nowrap; }

/* A move: an entry in the record, not a card. A full-measure ink rule opens
   it; the content sits on the page's own left edge. */
.move { border-top: 1px solid var(--ink); padding: 22px 0 40px; margin: 0; }
.move > .eyebrow { margin: 0 0 18px; color: var(--ink); font-size: 13px; letter-spacing: 0.1em; }
.move .label { margin: 26px 0 8px; }
.move > .label:first-of-type { margin-top: 0; }
.fact { font-size: 22px; line-height: 1.4; margin: 0; max-width: 34em; }

/* Passages: set like entries in a concordance. Year and tag above, the words
   below, the citation under them; a hairline between entries. */
.passages { list-style: none; margin: 0; padding: 0; }
.passage { padding: 14px 0 16px; margin: 0; }
.passage + .passage { border-top: 1px solid var(--rule); }
.passage-meta { margin: 0 0 6px; }
.year { font-size: 12px; font-weight: 700; color: var(--ink); letter-spacing: 0.12em; }
.tag { font-size: 10px; font-weight: 600; color: var(--muted); letter-spacing: 0.1em; }
.passage-meta .tag::before { content: '\00B7'; margin: 0 8px; color: var(--rule-2); }
blockquote { margin: 0; }
blockquote p { margin: 0; font-size: 20px; line-height: 1.5; font-style: italic; color: var(--ink); max-width: 36em; }
blockquote p::before { content: '\201C'; }
blockquote p::after { content: '\201D'; }
.cite { font-size: 11px; margin: 8px 0 0; }
.not-addressed { font-style: italic; color: var(--ink-3); margin: 0; }
.follow { margin: 14px 0 0; font-size: 16px; }
.reverses { font-size: 16px; color: var(--ink-3); margin: 8px 0 0; }
.outcome ul { margin: 0; padding-left: 18px; }

/* The vote. Real buttons, 44px at the least. */
.vote { border: 0; border-top: 1px solid var(--rule); margin: 26px 0 0; padding: 16px 0 0; min-width: 0; }
.vote legend { font-size: 11px; font-weight: 600; color: var(--ink-2); padding: 0; margin-bottom: 8px; float: left; width: 100%; }
.vote-options { display: flex; gap: 8px; clear: both; }
.vote-btn {
  min-height: 44px; min-width: 72px;
  padding: 0 16px;
  font-size: 12px; font-weight: 600;
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--ink-3);
  border-radius: 2px;
  cursor: pointer;
}
.vote-btn:hover { border-color: var(--crimson); color: var(--crimson); }
.vote-btn[aria-pressed="true"] { background: var(--crimson); border-color: var(--crimson); color: var(--paper); }
.vote-status { min-height: 1.5em; font-size: 15px; color: var(--ink-2); margin: 8px 0 0; }
.fine-note { font-size: 10px; color: var(--muted); margin: 4px 0 0; text-transform: none; letter-spacing: 0.02em; }

/* The ledger: a ruled table set on the page, no frame. It scrolls sideways on
   a phone; the page never does. Horizontal rules only. */
.ledger-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.ledger { border-collapse: collapse; width: 100%; min-width: 480px; }
.ledger th, .ledger td { font-size: 12px; text-align: left; padding: 11px 16px 11px 0; border-bottom: 1px solid var(--rule); white-space: nowrap; vertical-align: top; }
.ledger thead th { color: var(--muted); font-weight: 600; border-bottom: 1px solid var(--ink); }
.ledger tbody th { position: sticky; left: 0; background: var(--parchment); color: var(--ink); font-weight: 600; padding-right: 24px; }
.ledger-note { font-size: 16px; color: var(--ink-3); margin: 0 0 14px; max-width: 36em; }
.ledger .measure { display: block; font-family: var(--serif); text-transform: none; letter-spacing: 0; font-weight: 400; font-size: 14px; color: var(--ink-3); margin-top: 3px; white-space: normal; max-width: 17em; }
.ledger .years { display: block; font-weight: 500; font-size: 10px; color: var(--brass-ink); margin-top: 4px; }
/* A figure is a link, and looks like one: the site's own underline. */
.ledger td { font-size: 13px; }
.ledger td a { text-decoration: underline; text-decoration-color: var(--rule-2); text-underline-offset: 4px; }
.ledger td a:hover { text-decoration-color: var(--crimson); }
.ledger td .pending { padding: 0 4px; }

.filings, .reversals { list-style: none; padding: 0; margin: 0; }
.filings li, .reversals li { padding: 8px 0; border-bottom: 1px solid var(--rule); font-size: 19px; }
.filings .meta { margin-left: 8px; }

/* Footer */
.foot { border-top: 1px solid var(--rule-2); margin-top: 24px; padding-top: 8px; padding-bottom: 40px; color: var(--ink-2); font-size: 16px; }
.legend { display: grid; grid-template-columns: max-content 1fr; gap: 6px 12px; margin: 0; }
.legend dd { margin: 0; }
.legend .tag { color: var(--ink-3); }
.corrections { padding-left: 18px; }
.fine { font-size: 11px; color: var(--muted); margin-top: 28px; }

/* On a phone the ledger is not a table to scroll sideways, which hides the
   older quarters with nothing saying they are there. Each move becomes a
   short list: its name and measure, then one line per quarter. */
@media (max-width: 560px) {
  .ledger, .ledger tbody, .ledger tr, .ledger th, .ledger td { display: block; min-width: 0; }
  .ledger thead { display: none; }
  .ledger tr { border-bottom: 1px solid var(--rule); padding: 14px 0 10px; }
  .ledger tr:first-child { border-top: 1px solid var(--ink); }
  .ledger th, .ledger td { border: 0; padding: 0; white-space: normal; }
  .ledger tbody th { position: static; background: none; padding: 0 0 8px; }
  .ledger .measure { max-width: none; }
  .ledger td { display: flex; justify-content: space-between; gap: 16px; padding: 5px 0; }
  .ledger td::before { content: attr(data-period); color: var(--muted); font-weight: 600; }
}

@media (max-width: 520px) {
  body { font-size: 17px; }
  .standfirst { font-size: 18px; }
  .move { padding: 18px 0 32px; }
  .fact { font-size: 19px; }
  blockquote p { font-size: 18px; }
  .vote-btn { flex: 1; }
}
.derived { font-size: 14px; color: var(--muted); margin: 4px 0 0; }

/* ================= The index, version 2 =================
   Two readings, the argument, the ledger drawn. Same rules as the rest:
   one left edge, horizontal rules only, no tinted panels, no rails. The
   one vertical mark is the dashed succession line inside each chart. */

.page-wide { max-width: 1080px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.h2 { font-weight: 500; font-size: clamp(26px, 4vw, 34px); line-height: 1.15; margin: 0 0 12px; letter-spacing: -0.005em; }
.record-index main > section { border-top: 1px solid var(--ink); padding-top: 26px; margin-top: 48px; }
.record-index main > section.readings { border-top: 0; padding-top: 0; margin-top: 22px; }
.fig-note { font-family: var(--mono); font-size: 10px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); margin: 8px 0 0; }

/* The switch */
.reading-switch { display: flex; gap: 10px; flex-wrap: wrap; margin: 0 0 22px; }
.reading-btn {
  min-height: 44px; padding: 0 18px; border-radius: 2px; cursor: pointer;
  font-family: var(--mono); font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  background: transparent; color: var(--ink); border: 1px solid var(--ink-3);
}
.reading-btn[aria-pressed="true"][data-reading="problem"] { background: var(--crimson); border-color: var(--crimson); color: var(--paper); }
.reading-btn[aria-pressed="true"][data-reading="discipline"] { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.reading-btn:hover { border-color: var(--crimson); }
.link-btn { background: none; border: 0; padding: 0; cursor: pointer; font: inherit; color: var(--crimson); text-decoration: underline; text-underline-offset: 3px; min-height: 44px; }

.readings-grid { display: grid; grid-template-columns: minmax(0, 2.1fr) minmax(0, 1fr); gap: 40px; align-items: start; }
.readings-figure { margin: 0; }
.chart { width: 100%; height: auto; display: block; overflow: visible; }
.chart text { font-family: var(--mono); fill: var(--muted); }
.chart .strip-label { font-size: 11px; letter-spacing: 0.04em; fill: var(--ink-3); }
.chart .tick { font-size: 10px; text-anchor: middle; }
.chart .tick.is-now { fill: var(--ink); font-weight: 600; }
.chart .axis { stroke: var(--ink); stroke-width: 1; }
.chart .succession, .spark .succession { stroke: var(--ink); stroke-width: 1; stroke-dasharray: 3 3; }
.chart .gap { font-size: 12px; text-anchor: middle; fill: var(--rule-2); }

/* Emphasis follows the reading; the values never change. */
.bar-cash, .bar-bb { transition: fill 160ms linear, opacity 160ms linear; }
.readings[data-reading="problem"] .bar-cash { fill: var(--crimson); }
.readings[data-reading="problem"] .bar-bb { fill: var(--rule-2); }
.readings[data-reading="problem"] .s-bb-label { fill: var(--rule-2); }
.readings[data-reading="discipline"] .bar-cash { fill: var(--rule-2); }
.readings[data-reading="discipline"] .bar-bb { fill: var(--ink); }
.sq-buy { fill: var(--ink); }
.sq-sell { fill: var(--parchment); stroke: var(--crimson); stroke-width: 1.5; }
.sq-none { fill: none; stroke: var(--rule-2); stroke-dasharray: 2 2; }
@media (prefers-reduced-motion: reduce) { .bar-cash, .bar-bb { transition: none; } }

.reading-panel .eyebrow { margin: 0 0 8px; }
.readings[data-reading="discipline"] .reading-panel .eyebrow { color: var(--ink); }
.stat-big { font-size: clamp(36px, 5vw, 48px); line-height: 1; margin: 0 0 12px; font-variant-numeric: tabular-nums; }
.stat-copy { font-size: 16px; line-height: 1.5; color: var(--ink-2); margin: 0 0 10px; }
.pq { margin: 18px 0 0; padding-top: 14px; border-top: 1px solid var(--rule); }
.pq-meta { margin: 0 0 6px; }
.pq-meta .tag::before, .ld-passage .tag::before { content: '\00B7'; margin: 0 8px; color: var(--rule-2); }
.pq blockquote p { font-size: 19px; }
.flip { margin: 14px 0 0; }
.lead-on { font-size: 18px; margin: 28px 0 0; }

.data { margin-top: 14px; }
.data summary { cursor: pointer; font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); min-height: 32px; }
.data-table { border-collapse: collapse; width: 100%; font-family: var(--mono); font-size: 12px; margin-top: 8px; }
.data-table caption { text-align: left; font-size: 11px; color: var(--muted); padding: 4px 0 8px; }
.data-table th, .data-table td { text-align: left; padding: 6px 12px 6px 0; border-bottom: 1px solid var(--rule); white-space: nowrap; }
.data-table thead th { border-bottom: 1px solid var(--ink); color: var(--muted); font-weight: 600; }

/* The argument */
.timeline { position: relative; margin: 26px 0 0; }
.lane { border-top: 1px solid var(--rule); padding: 10px 0 8px; }
.lane-label { font-family: var(--mono); font-size: 11px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; margin: 0 0 6px; color: var(--ink-3); }
.lane[data-lane="deploy"] .lane-label { color: var(--crimson-2); }
.lane-track { position: relative; height: 60px; }
.dot {
  position: absolute; top: 6px; transform: translateX(-50%);
  width: 44px; height: 44px; border-radius: 50%; cursor: pointer;
  font-family: var(--mono); font-size: 12px; font-weight: 600; background: var(--parchment);
}
.dot-deploy { border: 1.5px solid var(--crimson); color: var(--crimson-2); }
.dot-wait { border: 1.5px solid var(--ink); color: var(--ink); }
.dot-deploy[aria-pressed="true"] { background: var(--crimson); color: var(--paper); }
.dot-wait[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.lane-cash .t-annual { fill: var(--rule-2); }
.lane-cash .t-quarter { fill: var(--ink-3); }
.lane-cash .t-quarter.is-after { fill: var(--ink); }
.lane-cash .gap-note { font-size: 11px; text-anchor: middle; fill: var(--muted); }
.succession-mark { position: absolute; top: 0; bottom: 24px; width: 0; border-left: 1px dashed var(--ink); pointer-events: none; }
.argument-foot { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 40px; margin-top: 26px; padding-top: 18px; border-top: 1px solid var(--rule); }
.arg-detail blockquote p { font-size: 22px; }
.arg-detail .eyebrow { margin: 0 0 8px; }
.since .eyebrow { margin: 0 0 8px; }
.since-q { font-size: 20px; line-height: 1.35; margin: 12px 0 8px; }
.since-spark .spark { height: 48px; }
.since-spark { display: none; }
.arg-list { display: none; list-style: none; margin: 0; padding: 0; }

/* The ledger, drawn */
.ld-head, .ld-row { display: grid; grid-template-columns: 190px minmax(0, 1.3fr) 160px minmax(0, 1.4fr); gap: 24px; align-items: center; }
.ld-head { font-family: var(--mono); font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); padding: 10px 0; border-bottom: 1px solid var(--ink); }
.ld-row { padding: 18px 0; border-bottom: 1px solid var(--rule); }
.ld-title { font-family: var(--mono); font-size: 13px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; margin: 0; }
.ld-def { font-size: 15px; color: var(--ink-3); margin: 2px 0 0; }
.spark { width: 100%; height: 64px; display: block; }
.spark rect { fill: var(--rule-2); }
.spark rect.is-latest { fill: var(--ink); }
.spark rect.is-down { fill: var(--crimson); }
.spark rect.is-up { fill: var(--ink-3); }
.spark .axis { stroke: var(--ink-3); stroke-width: 1; }
.ld-value { font-size: 24px; margin: 0; font-variant-numeric: tabular-nums; }
.ld-value a { color: var(--ink); text-decoration-color: var(--rule-2); text-underline-offset: 5px; }
.ld-value a:hover { color: var(--crimson); text-decoration-color: var(--crimson); }
.ld-quote { margin: 0; font-size: 16px; font-style: italic; line-height: 1.45; }
.ld-quote::before { content: '\201C'; }
.ld-quote::after { content: '\201D'; }
.ld-passage .cite { margin-top: 4px; }

/* The next filing */
.next-filing p { max-width: 36em; }
.signup { display: flex; max-width: 30em; margin: 14px 0 8px; border: 1px solid var(--ink-3); border-radius: 2px; background: var(--paper); }
.signup[hidden] { display: none; }
.signup:focus-within { outline: 2px solid var(--crimson); outline-offset: 2px; }
.signup input { flex: 1; min-width: 0; height: 46px; padding: 0 14px; border: 0; outline: 0; background: transparent; font-family: var(--mono); font-size: 14px; color: var(--ink); }
.signup input::placeholder { color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; font-weight: 600; }
.signup button { border: 0; border-left: 1px solid var(--ink-3); background: transparent; padding: 0 18px; cursor: pointer; font-family: var(--mono); font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink); min-height: 46px; }
.signup button:hover { background: var(--crimson); border-left-color: var(--crimson); color: var(--paper); }
.signup-note { font-size: 15px; color: var(--ink-2); margin: 6px 0 0; }
.signup-note.is-bad { color: var(--crimson-2); }

.filings-sec .filings li { display: flex; justify-content: space-between; gap: 16px; align-items: baseline; }
.filings .is-later { color: var(--muted); font-size: 17px; }

@media (max-width: 760px) {
  .readings-grid, .argument-foot { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .reading-btn { flex: 1; }
  .timeline, .arg-detail { display: none; }
  .argument-foot { border-top: 0; margin-top: 0; padding-top: 0; }
  .arg-list { display: block; margin-top: 18px; }
  .arg-list li { padding: 16px 0; border-top: 1px solid var(--rule); }
  .arg-list li[data-lane="deploy"] .eyebrow { color: var(--crimson-2); }
  .arg-list li[data-lane="wait"] .eyebrow { color: var(--ink); }
  .arg-list .eyebrow { margin: 0 0 6px; font-size: 11px; }
  .arg-list blockquote p { font-size: 18px; }
  .since { border-top: 1px solid var(--ink); padding-top: 16px; }
  /* The list of passages first, then the succession, as the addendum's
     phone timeline ends. */
  .argument { display: flex; flex-direction: column; }
  .argument .arg-list { order: 1; }
  .argument .argument-foot { order: 2; margin-top: 8px; }
  /* The chart's viewBox is 760 wide and scales down about half on a phone;
     its text is set large enough to land at a readable size. */
  .readings-chart .strip-label { font-size: 21px; }
  .readings-chart .tick { font-size: 20px; }
  .since-spark { display: block; margin: 10px 0 4px; }
  .ld-head { display: none; }
  .ld-row { grid-template-columns: minmax(0, 1fr) auto; gap: 10px 16px; }
  .ld-spark { grid-column: 1 / -1; order: 3; }
  .ld-passage { grid-column: 1 / -1; order: 4; }
  .ld-value { font-size: 20px; }
}

.record-index .foot { max-width: 1080px; }

/* The site's masthead, as every page of Underlying carries it. */
.top {
  position: sticky; top: 0; z-index: 5;
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 10px; padding-top: max(12px, env(safe-area-inset-top));
  background: var(--parchment); border-bottom: 1px solid var(--ink);
}
.icon-space { width: 40px; }
/* The masthead's "New inquiry" link: the app's own + button, in the same
   place, leading to a blank session. */
.icon {
  width: 40px; height: 40px; border: 1px solid transparent;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--ink); text-decoration: none;
}
.icon:hover, .icon:focus-visible { border-color: var(--ink); background: var(--crimson); color: var(--paper); }
.brand { display: flex; flex-direction: column; align-items: center; gap: 3px; text-decoration: none; color: var(--ink); }
.brand-name { font-family: var(--serif); font-size: 27px; font-weight: 600; letter-spacing: 0.08em; line-height: 1; text-transform: uppercase; }
.brand-sub { font-family: var(--mono); font-size: 9px; font-weight: 500; letter-spacing: 0.06em; color: var(--muted); }

/* The way into the app: a question of the reader's own. */
.ask-record { border-top: 1px solid var(--ink); padding-top: 18px; margin-top: 40px; }
.ask-record .eyebrow { margin: 0 0 8px; border: 0; padding: 0; }
.ask-lede { font-size: 18px; margin: 0 0 12px; max-width: 34em; }
.ask-form input[type="search"] { -webkit-appearance: none; appearance: none; }
.ask-form input::-webkit-search-cancel-button { display: none; }

/* On a phone: labels no smaller than 11px, and every source link a
   comfortable tap, without changing how a line of text reads. */
@media (max-width: 560px) {
  .tag, .fig-note, .fine-note { font-size: 11px; }
  .src, .cite a { display: inline-block; padding: 10px 2px; margin: -10px 0; }
  .crumb a { display: inline-block; padding: 12px 0; margin: -12px 0; }
  .meta a { display: inline-block; padding: 10px 2px; margin: -10px 0; }
}
.ld-row:last-of-type { border-bottom: 0; }

/* The section's name sits inside the index's h1, so the heading a search
   engine reads names the page; it looks exactly like the eyebrow it was. */
h1 > .kicker { display: block; margin: 0 0 10px; line-height: 1.4; }

/* What to watch: the question each filing answers, set in the page's serif
   at the size of the fact above it, and the answer once the filing is in. */
.watch-q { font-size: 20px; line-height: 1.4; margin: 0; font-style: italic; color: var(--ink-2); max-width: 34em; }
.watch-answer { margin: 22px 0 0; padding-top: 12px; border-top: 1px solid var(--rule); }
.watch-answer .label { display: inline; margin: 0 8px 0 0; }
.watch-up { font-size: 18px; margin: 18px 0 8px; }
@media (max-width: 600px) { .watch-q { font-size: 18px; } }

/* What to watch: the charts. The record so far in the section's inks, the
   latest quarter in crimson, and the quarter to come as a dashed slot that
   breathes until the filing fills it. */
.wfig { margin: 18px 0 4px; }
.wchart .w-bar { fill: var(--rule-2); }
.wchart .w-bar.is-after { fill: var(--ink-3); }
.wchart .w-bar.is-latest { fill: var(--crimson); }
.wchart .w-bar.is-up { fill: var(--ink); }
.wchart .w-bar.is-down { fill: var(--crimson); opacity: 0.55; }
.wchart .w-bar.is-down.is-latest, .wchart .w-bar.is-up.is-latest { opacity: 1; }
.wchart .w-bar.is-answer { fill: var(--ink); }
.wchart .w-zero { stroke: var(--ink-3); stroke-width: 2; }
.wchart .w-line { fill: none; stroke: var(--rule-2); stroke-width: 1.5; }
.wchart .w-dot { fill: var(--parchment); stroke: var(--ink-3); stroke-width: 1.5; }
.wchart .w-dot.is-latest { fill: var(--crimson); stroke: var(--crimson); }
.wchart .w-dot.is-answer { fill: var(--ink); stroke: var(--ink); }
.wchart .w-threshold { stroke: var(--crimson); stroke-width: 1.25; stroke-dasharray: 4 4; }
.wchart .w-value { font-size: 12px; fill: var(--crimson); font-weight: 600; }
.wchart .tick.is-next { fill: var(--crimson); font-weight: 600; }
.wchart .w-slot rect, .wchart .w-slot circle { fill: none; stroke: var(--crimson); stroke-width: 1.5; stroke-dasharray: 5 4; animation: w-breathe 2.6s ease-in-out infinite; }
.wchart .w-slot text { font-family: var(--serif); font-size: 22px; fill: var(--crimson); }
.wchart-strip .w-rail { stroke: var(--rule-2); stroke-width: 1; }
.wchart-strip .w-q circle { fill: var(--ink); }
.wchart-strip .w-q.w-slot circle { fill: var(--parchment); }
@keyframes w-breathe { 0%, 100% { stroke-opacity: 1; } 50% { stroke-opacity: 0.3; } }

/* The rise, once, as a chart first scrolls into view (record-watch.js). */
.wchart.will-rise .w-bar { transform: scaleY(0); transform-box: fill-box; }
.wchart.will-rise .w-bar.grow-up { transform-origin: 50% 100%; }
.wchart.will-rise .w-bar.grow-down { transform-origin: 50% 0; }
.wchart.will-rise .w-dot, .wchart.will-rise .w-threshold, .wchart.will-rise .w-value, .wchart.will-rise .w-line { opacity: 0; }
.wchart.will-rise.is-in .w-bar { transform: scaleY(1); transition: transform 520ms cubic-bezier(.2,.7,.2,1) calc(var(--i, 0) * 45ms); }
.wchart.will-rise.is-in .w-dot { opacity: 1; transition: opacity 300ms linear calc(var(--i, 0) * 45ms); }
.wchart.will-rise.is-in .w-line { opacity: 1; transition: opacity 400ms linear 200ms; }
.wchart.will-rise.is-in .w-threshold, .wchart.will-rise.is-in .w-value { opacity: 1; transition: opacity 400ms linear 700ms; }
@media (prefers-reduced-motion: reduce) {
  .wchart .w-slot rect, .wchart .w-slot circle { animation: none; }
  .wchart.will-rise .w-bar, .wchart.will-rise .w-dot, .wchart.will-rise .w-threshold, .wchart.will-rise .w-value, .wchart.will-rise .w-line { transform: none; opacity: 1; transition: none; }
}
/* Chart type is in viewBox units; these charts are 600 wide, drawn at about
   350px on a phone, so their labels are set larger than the index's. */
.wchart .tick { font-size: 15px; }
.wchart .w-value { font-size: 17px; }
.wchart .w-slot text { font-size: 28px; }
.wchart-strip .tick { font-size: 17px; }
.wchart .w-slot text.tick { font-family: var(--mono); font-size: 17px; }

/* Single-idea pages (/b/): one number, set large in the page's serif; one
   line under it; the chart; the letters; one link on. Nothing else. */
.idea { max-width: 640px; }
.idea-big { font-family: var(--serif); font-size: clamp(64px, 17vw, 112px); line-height: 0.95; letter-spacing: -0.02em; margin: 26px 0 14px; color: var(--ink); }
.idea-line { font-size: clamp(22px, 5.2vw, 28px); font-weight: 400; line-height: 1.3; margin: 0 0 10px; }
.idea-sub { font-size: 19px; color: var(--ink-2); margin: 0 0 8px; }
.idea-src { margin: 0 0 6px; }
.idea-src .src { margin-right: 10px; }
.idea-q { font-size: 21px; font-style: italic; color: var(--ink-2); margin: 28px 0 14px; padding-top: 16px; border-top: 1px solid var(--rule); }
.idea-next { margin: 36px 0 10px; font-size: 22px; }
.idea-next a { text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 2px; }
.idea-more { font-size: 15px; color: var(--ink-3); margin: 0 0 30px; }
.idea-more a { color: var(--ink-3); }
.idea-next .label { display: block; margin: 0 0 6px; }
/* The value label sits above the latest mark and can cross a taller bar
   beside it: a halo of the page's paper keeps it legible. */
.wchart .w-value { paint-order: stroke; stroke: var(--parchment); stroke-width: 5px; stroke-linejoin: round; }

/* "Same idea": one quiet line linking the other forms of an idea (the one-page
   version, the quarter's move, the letters' answer page, what the next
   quarter will show). Sized like the follow link it replaces. */
.thread { margin: 16px 0 0; font-size: 16px; line-height: 1.7; }
.thread .label { display: inline; margin: 0 10px 0 0; }
.thread .sep { color: var(--ink-3); margin: 0 4px; }
.thread a { white-space: nowrap; }
@media (max-width: 600px) { .thread a { display: inline-block; min-height: 30px; line-height: 30px; } }

/* Question pages (/q/). */
.q-lead { font-size: 23px; line-height: 1.4; margin: 6px 0 10px; max-width: 34em; }
.q-lead strong { font-weight: 600; color: var(--crimson); }
.q-weight { font-size: 18px; color: var(--ink-2); margin: 0 0 8px; max-width: 38em; }
.q-weight .src { margin-left: 6px; }
.q-sec { margin-top: 34px; }
.q-help { font-size: 16px; color: var(--ink-3); margin: 0 0 12px; }
.pf-picker { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 12px; }
.pf-chip { font-family: var(--mono); font-size: 12px; letter-spacing: 0.04em; text-transform: uppercase; padding: 8px 11px; min-height: 36px; background: var(--parchment); color: var(--ink-2); border: 1px solid var(--rule-2); cursor: pointer; }
.pf-chip[aria-pressed="true"] { background: var(--crimson); color: var(--paper); border-color: var(--crimson); }
.pf-chip:hover { border-color: var(--crimson); }
.pf-more select { font-family: var(--mono); font-size: 12px; padding: 8px 10px; min-height: 36px; background: var(--parchment); color: var(--ink-2); border: 1px solid var(--rule-2); }
.pf-readout { font-size: 18px; margin: 4px 0 10px; min-height: 2.6em; }
.pf-chart .pf-seg { fill: var(--rule-2); stroke: var(--parchment); stroke-width: 1.2; cursor: pointer; transition: fill 160ms linear; }
.pf-chart .pf-seg.is-focus { fill: var(--crimson); }
.pf-chart .pf-seg:hover { fill: var(--ink-3); }
.sh-chart .sh-bar { fill: var(--rule-2); }
.sh-chart .sh-bar.is-latest { fill: var(--crimson); }
.q-monitor { margin: 16px 0 0; padding: 14px 0 0; border-top: 1px solid var(--rule); }
.q-monitor p { margin: 0 0 10px; font-size: 17px; }
.q-monitor .label { display: inline; margin-right: 10px; }
.q-sources { margin: 34px 0 10px; font-size: 15px; }
.q-sources summary { cursor: pointer; font-family: var(--mono); font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-3); min-height: 32px; }
.q-sources ul { columns: 2; padding-left: 18px; }
@media (max-width: 600px) { .q-sources ul { columns: 1; } .q-lead { font-size: 20px; } .pf-chip:nth-of-type(n+7) { display: none; } .pf-chip { font-size: 11px; padding: 7px 9px; } }
@media (prefers-reduced-motion: reduce) { .pf-chart .pf-seg { transition: none; } }

/* Compare holdings (src/record-compare.js). Series slots, in the validated
   order (crimson, blue, aqua, yellow, violet, magenta), follow the holding. */
#compare, #timeline { --s0: #A51C30; --s1: #2a78d6; --s2: #1baf7a; --s3: #eda100; --s4: #4a3aa7; --s5: #e87ba4; }
.cmp-controls { display: grid; gap: 10px; margin: 0 0 12px; }
.cmp-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.cmp-row > .label { display: inline-block; min-width: 88px; margin: 0; }
.cmp-seg, .cmp-chip { font-family: var(--mono); font-size: 12px; letter-spacing: 0.04em; text-transform: uppercase; padding: 8px 11px; min-height: 36px; background: var(--parchment); color: var(--ink-2); border: 1px solid var(--rule-2); cursor: pointer; }
.cmp-seg[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.cmp-chip[aria-pressed="true"] { background: var(--paper); color: var(--ink); border-color: var(--ink); box-shadow: inset 0 -3px 0 currentColor; }
.cmp-chip.s0 { box-shadow: inset 0 -3px 0 var(--s0); } .cmp-chip.s1 { box-shadow: inset 0 -3px 0 var(--s1); } .cmp-chip.s2 { box-shadow: inset 0 -3px 0 var(--s2); }
.cmp-chip.s3 { box-shadow: inset 0 -3px 0 var(--s3); } .cmp-chip.s4 { box-shadow: inset 0 -3px 0 var(--s4); } .cmp-chip.s5 { box-shadow: inset 0 -3px 0 var(--s5); }
.cmp-check { font-family: var(--mono); font-size: 12px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--ink-2); display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding-right: 10px; cursor: pointer; }
.cmp-check input { width: 18px; height: 18px; accent-color: var(--ink); }
.cmp-legend { list-style: none; margin: 4px 0 6px; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 16px; }
.cmp-legend li { display: inline-flex; align-items: center; gap: 8px; }
.cmp-key { display: inline-block; width: 18px; height: 0; border-top: 3px solid; vertical-align: middle; }
.cmp-key.s0 { color: var(--s0); } .cmp-key.s1 { color: var(--s1); } .cmp-key.s2 { color: var(--s2); } .cmp-key.s3 { color: var(--s3); } .cmp-key.s4 { color: var(--s4); } .cmp-key.s5 { color: var(--s5); }
.cmp-x { border: 0; background: none; font-size: 20px; line-height: 1; color: var(--ink-3); cursor: pointer; min-width: 28px; min-height: 28px; }
.cmp-x:hover { color: var(--crimson); }
.cmp-note { font-size: 15px; color: var(--crimson); min-height: 1.2em; margin: 0; }
.cmp-wrap { position: relative; }
.cmp-plot { margin: 6px 0 0; }
.cmp-chart { touch-action: pan-y; }
.cmp-chart:focus-visible { outline: 2px solid var(--crimson); outline-offset: 4px; }
.cmp-grid { stroke: var(--rule); stroke-width: 1; }
.cmp-ylab { font-size: 13px; }
.cmp-line { fill: none; stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; }
.cmp-line.s0 { stroke: var(--s0); } .cmp-line.s1 { stroke: var(--s1); } .cmp-line.s2 { stroke: var(--s2); } .cmp-line.s3 { stroke: var(--s3); } .cmp-line.s4 { stroke: var(--s4); } .cmp-line.s5 { stroke: var(--s5); }
.cmp-end { stroke: var(--parchment); stroke-width: 2; }
.cmp-end.s0 { fill: var(--s0); } .cmp-end.s1 { fill: var(--s1); } .cmp-end.s2 { fill: var(--s2); } .cmp-end.s3 { fill: var(--s3); } .cmp-end.s4 { fill: var(--s4); } .cmp-end.s5 { fill: var(--s5); }
.chart .cmp-dlab { font-family: var(--serif); font-size: 17px; fill: var(--ink); }
.chart .cmp-dkey { font-weight: 700; }
.chart .cmp-dkey.s0 { fill: var(--s0); } .chart .cmp-dkey.s1 { fill: var(--s1); } .chart .cmp-dkey.s2 { fill: var(--s2); } .chart .cmp-dkey.s3 { fill: var(--s3); } .chart .cmp-dkey.s4 { fill: var(--s4); } .chart .cmp-dkey.s5 { fill: var(--s5); }
.chart .cmp-slab { font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase; fill: var(--ink-3); }
.cmp-bar { fill: var(--rule-2); }
.cmp-bar.is-up { fill: var(--ink); }
.cmp-bar.is-down { fill: var(--crimson); opacity: 0.6; }
.cmp-xh { stroke: var(--ink); stroke-width: 1; stroke-dasharray: 2 3; pointer-events: none; }
.cmp-tip { position: absolute; top: 8px; z-index: 2; min-width: 190px; background: var(--paper); border: 1px solid var(--rule-2); box-shadow: 0 6px 18px rgba(26,25,24,.12); padding: 10px 12px; font-size: 15px; pointer-events: none; }
.cmp-tip p { margin: 2px 0; display: flex; align-items: center; gap: 6px; }
.cmp-tip strong { font-weight: 600; }
.cmp-tip .cmp-tq { font-family: var(--mono); font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 6px; }
.cmp-actions { margin: 6px 0 0; }
.cmp-share { font-family: var(--mono); font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; background: none; border: 0; border-bottom: 1px solid var(--crimson); color: var(--crimson); padding: 6px 0; min-height: 32px; cursor: pointer; }
.cmp-details { margin: 12px 0 0; }
.cmp-details summary { cursor: pointer; font-family: var(--mono); font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-3); min-height: 32px; }
.cmp-scroll { overflow-x: auto; max-height: 360px; overflow-y: auto; }
.cmp-table { border-collapse: collapse; font-family: var(--mono); font-size: 12px; font-variant-numeric: tabular-nums; }
.cmp-table th, .cmp-table td { padding: 4px 12px 4px 0; border-bottom: 1px solid var(--rule); text-align: right; white-space: nowrap; }
.cmp-table th:first-child, .cmp-table td:first-child { text-align: left; }
@media (max-width: 600px) {
  .cmp-row > .label { min-width: 100%; }
  .cmp-row .cmp-chip:nth-of-type(n+7) { display: none; }
}
/* Narrow layout: type sized for a phone, the read-out below the chart. */
.cmp-chart.is-narrow .cmp-ylab { font-size: 22px; }
.cmp-chart.is-narrow .tick { font-size: 20px; }
.cmp-chart.is-narrow .cmp-slab { font-size: 20px; }
.cmp-chart.is-narrow .cmp-line { stroke-width: 3.5; }
@media (max-width: 600px) {
  .cmp-tip { position: static; margin-top: 8px; box-shadow: none; min-width: 0; }
}

/* ---------- case studies (/cases/): one trade event, every record ----------
   Source labels are words, set like tags, each in its own ink; the timeline's
   lanes are rows of one figure, never boxes. */
.srcl { font-family: var(--mono); font-size: 10.5px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; white-space: nowrap; color: var(--ink-3); }
.srcl[data-src="Filing"] { color: var(--ink); }
.srcl[data-src="Flight data"] { color: var(--crimson); }
.srcl[data-src="Reported"] { color: var(--brass-ink); }
.srcl[data-src="Market data"] { color: #2a78d6; }
.srcl[data-src="Letter"] { color: var(--muted); }
.srcl-key { list-style: none; padding: 0; margin: 14px 0 0; display: flex; flex-wrap: wrap; gap: 4px 22px; font-size: 15px; color: var(--ink-3); }
.srcl-key .srcl { margin-right: 6px; }
.tl-plot { position: relative; }
.tl-chart .tl-wkend { fill: var(--parchment-2); }
.tl-chart .tl-lab { font-family: var(--serif); font-size: 15px; fill: var(--ink); font-weight: 500; }
.tl-chart .tl-src, .tl-chart .tl-co, .tl-chart .tl-ylab, .tl-chart .tl-base-lab, .tl-chart .tl-dlab, .tl-chart .tl-note, .tl-chart .tl-pending { font-family: var(--mono); font-size: 10px; letter-spacing: 0.05em; fill: var(--ink-3); }
.tl-chart .tl-src { text-transform: uppercase; fill: var(--muted); font-size: 9px; }
.tl-chart .tl-co { font-size: 10.5px; fill: var(--ink-2); }
.tl-chart .tl-note { text-transform: uppercase; font-weight: 600; fill: var(--ink-2); }
.tl-chart .tl-note.is-omaha { fill: var(--crimson); }
.tl-chart .tl-pending { font-size: 13px; text-transform: uppercase; fill: var(--muted); }
.tl-chart .tl-dlab { font-size: 11px; fill: var(--ink-2); }
.tl-chart .tl-dkey { font-weight: 700; }
.tl-chart .tl-base, .tl-chart .tl-row { stroke: var(--rule); stroke-width: 1; }
.tl-chart .tl-grid { stroke: var(--rule); stroke-width: 1; stroke-dasharray: 1 3; }
.tl-chart .tl-zero { stroke: var(--ink-3); stroke-width: 1; }
.tl-chart .tl-flight { stroke: var(--ink-3); stroke-width: 6; stroke-linecap: round; }
.tl-chart .tl-flight.is-key { stroke: var(--ink); }
.tl-chart .tl-flight.is-omaha { stroke: var(--crimson); }
.tl-chart .tl-tick { stroke: var(--ink-3); stroke-width: 1.5; }
.tl-chart .tl-key circle { fill: var(--ink); stroke: var(--parchment); stroke-width: 1.5; }
.tl-chart .tl-key text, .tl-chart .tl-press text { font-family: var(--mono); font-size: 9.5px; font-weight: 600; fill: var(--paper); }
.tl-chart .tl-press rect { fill: var(--brass-ink); stroke: var(--parchment); stroke-width: 1.5; }
.tl-chart .tl-vol { fill: var(--rule-2); }
.tl-line { fill: none; stroke-width: 2.25; stroke-linejoin: round; stroke-linecap: round; }
.tl-line.s0 { stroke: var(--s0); } .tl-line.s1 { stroke: var(--s1); } .tl-line.s2 { stroke: var(--s2); } .tl-line.s3 { stroke: var(--s3); } .tl-line.s4 { stroke: var(--s4); } .tl-line.s5 { stroke: var(--s5); }
.tl-end { stroke: var(--parchment); stroke-width: 2; }
.tl-end.s0 { fill: var(--s0); } .tl-end.s1 { fill: var(--s1); } .tl-end.s2 { fill: var(--s2); } .tl-end.s3 { fill: var(--s3); } .tl-end.s4 { fill: var(--s4); } .tl-end.s5 { fill: var(--s5); }
.tl-chart .tl-dkey.s0 { fill: var(--s0); } .tl-chart .tl-dkey.s1 { fill: var(--s1); } .tl-chart .tl-dkey.s2 { fill: var(--s2); } .tl-chart .tl-dkey.s3 { fill: var(--s3); } .tl-chart .tl-dkey.s4 { fill: var(--s4); } .tl-chart .tl-dkey.s5 { fill: var(--s5); }
.tl-xh { stroke: var(--ink); stroke-width: 1; stroke-dasharray: 2 3; pointer-events: none; }
.tl-chip .meta { text-transform: none; letter-spacing: 0; font-family: var(--serif); font-size: 13px; margin-left: 3px; }
.tl-chip:disabled { opacity: 0.45; cursor: not-allowed; }
.tl-readout { min-height: 96px; border-top: 1px solid var(--rule); margin-top: 6px; padding-top: 10px; font-size: 16px; }
.tl-readout ul { list-style: none; padding: 0; margin: 4px 0 0; }
.tl-readout li { margin: 3px 0; }
.tl-readout .srcl { margin-right: 8px; }
.tl-day { font-family: var(--mono); font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--crimson); margin: 0; font-weight: 600; }
.tl-hint { color: var(--ink-3); margin: 0; font-style: italic; }
.tl-share { font-family: var(--mono); font-size: 12px; letter-spacing: 0.04em; text-transform: uppercase; background: none; border: 0; padding: 8px 0; min-height: 36px; color: var(--crimson); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.seq { list-style: none; padding: 0; margin: 0; }
.seq li { padding: 10px 0; border-top: 1px solid var(--rule); display: grid; grid-template-columns: 72px 104px 1fr; gap: 0 12px; align-items: baseline; font-size: 17px; }
.seq li.is-omaha time { color: var(--crimson); }
.seq-day { font-family: var(--mono); font-size: 12px; letter-spacing: 0.04em; text-transform: uppercase; background: none; border: 0; padding: 4px 0; min-height: 32px; color: var(--ink); cursor: pointer; text-align: left; text-decoration: underline dotted; text-underline-offset: 3px; }
.seq q { font-style: italic; color: var(--ink-2); }
.seq .src { margin-left: 4px; }
.case-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px 24px; margin: 8px 0 16px; }
.case-facts dt { font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.case-facts dd { margin: 2px 0 0; font-size: 20px; }
.case-terms, .case-learn { padding-left: 20px; margin: 8px 0; }
.case-terms li, .case-learn li { margin: 0 0 12px; max-width: 42em; }
.case-terms q { font-style: italic; }
.case-trade { border-collapse: collapse; width: 100%; font-size: 16px; font-variant-numeric: tabular-nums; }
.case-trade th, .case-trade td { text-align: right; padding: 8px 10px; border-bottom: 1px solid var(--rule); vertical-align: top; }
.case-trade th:first-child { text-align: left; }
.case-trade thead th { font-family: var(--mono); font-size: 11px; letter-spacing: 0.05em; text-transform: uppercase; color: var(--ink-3); font-weight: 600; }
.case-trade .meta { font-size: 11px; color: var(--ink-3); }
.case-lead-2 { font-size: 19px; max-width: 38em; }
@media (max-width: 640px) {
  .seq li { grid-template-columns: 60px 1fr; }
  .seq li .seq-t { grid-column: 1 / -1; }
  .tl-chart.is-narrow .tl-lab { font-size: 21px; }
  .tl-chart.is-narrow .tl-src { font-size: 13px; }
  .tl-chart.is-narrow .tl-co { font-size: 15px; paint-order: stroke; stroke: var(--parchment); stroke-width: 4px; }
  .tl-chart.is-narrow .tl-dlab, .tl-chart.is-narrow .tl-ylab, .tl-chart.is-narrow .tl-note, .tl-chart.is-narrow .tl-base-lab { font-size: 15px; }
  .tl-chart.is-narrow .tick { font-size: 17px; }
  .tl-chart.is-narrow .tl-line { stroke-width: 3.25; }
  .srcl-key { font-size: 14px; }
}
.tl-chart .tl-omaha { stroke: var(--crimson); stroke-width: 1; stroke-dasharray: 3 3; opacity: 0.7; pointer-events: none; }
