/* BuckBallot token extension: on top of css/tokens.css (a verbatim copy of brand/reference/brand/tokens.css; never edit that file).
   Owner-approved deviation (Nov 13 2026), for the 4.5:1 rule: the pack's gold #B8955A is 2.81:1 as text on white (2.65:1 on paper), so gold
   TEXT (eyebrows, small caps labels) uses --bb-gold-text. --bb-gold stays for hairlines, rings and frames.
     light #7D5F2E: 5.92:1 on --bb-card #FFFFFF, 5.58:1 on --bb-paper #FBF8F1
     dark  #B8955A: 5.91:1 on --bb-card #16211A, 6.47:1 on --bb-paper #0F1712
   --bb-gold-text-on-cream: gold text on the fills that stay LIGHT at night (Buck's speech bubble, art labels, chart labels: they use the
   cream --bb-ink as their background in dark mode), so it keeps the light-mode value in both themes: 5.15:1 on #F2EFE8, 5.92:1 on white. */
:root{ --bb-gold-text:#7D5F2E; --bb-gold-text-on-cream:#7D5F2E; }
:root[data-theme="dark"], .bb-dark{ --bb-gold-text:#B8955A; }
/* the pack's eyebrow helper, with the readable gold */
.bb-eyebrow{ color:var(--bb-gold-text); }
/* App feel D, item 20 (Chris, Nov 15): three corner radii and two shadows, app-wide. Every border-radius in css/ is one of these
   three tokens: 16px for cards and sheets, 12px for controls (buttons, inputs, chips, small bars), and a full pill (circles too).
   Every raised surface uses one of two shadows: --bb-shadow-card (cards, chips that lift) or --bb-shadow-sheet (bottom sheets,
   popovers, the result sheet). Rings drawn with box-shadow (focus rings, selected outlines, medallion frames) are outlines, not
   shadows, and stay as they are. */
:root{ --bb-radius-card:16px; --bb-radius-button:12px; --bb-radius-pill:999px;
  --bb-shadow-sheet:0 -1px 2px rgba(28,38,32,.06), 0 12px 32px rgba(28,38,32,.16); }
:root[data-theme="dark"], .bb-dark{ --bb-shadow-sheet:0 0 0 1px var(--bb-rule), 0 12px 32px rgba(0,0,0,.5); }
/* Rough pass R2 (Chris, lead transcript line 4437, 2026-11-16: "The demo is looking really rough from a UI perspective."): shared pieces, one look each.
   Eyebrow tracking: about .06em (was .3em, read as wide-spaced letters). Casing is the sentence-case lane's (L5). */
:root{ --bb-track-eyebrow:.06em; }
/* ONE certainty tag (.bb-tag). Caption size, weight 600, muted ink, no box and no dashed border: the same shape for every level,
   with a leading 8px dot: filled = Close, hollow ring = Estimate. An official figure (Actual, Audited) gets NO tag, as How our
   numbers work says, so those never show. At most one per hero number, none on list rows (row certainty is in the source sheet);
   it sits after the number on the source / meta line. The older tag classes (.bkp-badge, .atb-tag, .ftb-tag, .ftb-q, .mstamp__tag, and the line page's .bl-tag--close/--estimate/--actual)
   take the same look until their lanes swap to .bb-tag. Tokens only; light and dark come from them. */
.bb-tag,html body :is(.bkp-badge,.atb-tag,.ftb-tag,.ftb-q,.mstamp__tag,.bl-tag--close,.bl-tag--estimate,.bl-tag--actual,.bl-tag--audited){display:inline-flex;align-items:center;gap:5px;margin:0;padding:0;border:0;border-radius:0;
  background:none;box-shadow:none;color:var(--bb-muted);font:600 var(--bb-fs-caption)/1.3 var(--bb-font-body);letter-spacing:0;text-transform:none;
  white-space:nowrap;vertical-align:baseline;cursor:inherit;user-select:none;-webkit-user-select:none}
.bb-tag::before,html body :is(.bkp-badge,.atb-tag,.ftb-tag,.ftb-q,.mstamp__tag,.bl-tag--close,.bl-tag--estimate,.bl-tag--actual,.bl-tag--audited)::before{content:"";flex:none;width:8px;height:8px;box-sizing:border-box;
  border:1.5px solid currentColor;border-radius:var(--bb-radius-pill);background:currentColor}
.bb-tag--estimate::before,html body :is(.bkp-badge--estimate,.atb-tag--estimate,.ftb-tag--estimate,.ftb-q--estimate,.bl-tag--estimate)::before{background:transparent}
.bb-tag--actual,.bb-tag--audited,html body :is(.bkp-badge--actual,.bkp-badge--audited,.atb-tag--actual,.atb-tag--audited,.ftb-tag--actual,.ftb-q--actual,.bl-tag--actual,.bl-tag--audited){display:none}
/* How our numbers work defines the words: there "Actual" is a plain term with no dot (it is the "no tag" level) */
html body dt > .bkp-badge--actual{display:inline;color:var(--bb-ink)}
html body dt > .bkp-badge--actual::before{content:none}
@media (forced-colors: active){ .bb-tag::before,html body :is(.bkp-badge,.atb-tag,.ftb-tag,.ftb-q,.mstamp__tag,.bl-tag--close,.bl-tag--estimate,.bl-tag--actual,.bl-tag--audited)::before{border-color:CanvasText} }
/* the line page's tag (.bl-tag--*, css/books-lines.css) also drops its pill height */
html body :is(.bl-tag--close,.bl-tag--estimate,.bl-tag--actual,.bl-tag--audited){min-height:0;font-weight:600}
/* v38 part 10 (BB-411; Chris's prompt v35 Part 7, items 1-4 and 11, docs/CLAUDE_CODE_PROMPTS_v35.md on the handoff branch): chart colour tokens. Every chart colour is one of these; the build's
   palette check (scripts/palette-check.mjs) fails when one that must show is under 3:1 on Light paper #FBF8F1 or Night paper #1A1714
   (and the app's own page colours). The values are Chris's (item 1 and item 3); the edge, hatch-line and vote-nay values are Claude's
   suggestion, not approved, each chosen to pass 3:1.
   Light: brick #A8503A for Borrowed and Interest (lighter than hunter green #2F4D36; #7A2E22 stays for text only). Ochre text and lines
   #7D5F2E; brass #B8955A only for labelled fills. Fills keep their pale engraved look; each band gets a 1 px darker edge (>= 3:1).
   Night: green #8DB096, rose / brick #D08A72, ochre #D4B27A, ink #E8E0CC. Hatching: engraved diagonal lines >= 3:1 against their fill. */
:root{
  --chart-green:#2F4D36; --chart-brick:#A8503A; --chart-ochre:#7D5F2E; --chart-brass:#B8955A; --chart-ink:#1C2620;
  --chart-sage:#5B8466; --chart-olive:#8C7A55; --chart-sand:#CFC5AE; --chart-mint:#82A38A; --chart-pale:#AFC6B4;
  /* one darker edge per band (>= 3:1 on the paper) */
  --chart-edge-green:#2F4D36; --chart-edge-brick:#8E4430; --chart-edge-brass:#8A6A32; --chart-edge-sage:#4E7358; --chart-edge-olive:#6E5F3F;
  --chart-edge-sand:#6B7569;
  /* the engraved hatch: lines in the paper colour across the brick fill; a hatched stream keeps this much of its fill */
  --chart-hatch-fill:var(--chart-brick); --chart-hatch-line:#FBF8F1; --chart-hatch-o:.8; --chart-hatch-line-pale:#1C2620;   /* lines across a pale fill */
  --chart-block-line:#FBF8F1;   /* Every block: lines across an Estimate block's colour stripe */
  --chart-block-line-sage:#FBF8F1;   /* … across the sage stripe of what it owns */
  --chart-block-line-brick:#FBF8F1; --chart-block-line-green:#FBF8F1;   /* … across Money it borrowed and Loans (dark lines in Night, where those stripes are light) */
  /* Yea / Nay and side-by-side comparisons: neutral green and ochre, never red or blue (No / Nay left, Aye / Yea right, D-17) */
  --chart-yea:#2F4D36; --chart-nay:#7D5F2E;
  /* item 4: a label over a chart sits on a solid cream pad, never on hatching */
  --chart-pad:#FBF8F1; --chart-pad-ink:#1C2620;
}
:root[data-theme="dark"], .bb-dark{
  --chart-green:#8DB096; --chart-brick:#D08A72; --chart-ochre:#D4B27A; --chart-brass:#D4B27A; --chart-ink:#E8E0CC;
  --chart-sage:#4F7A5C; --chart-olive:#A08D63; --chart-sand:#8E866F; --chart-mint:#8DB596; --chart-pale:#B4CDB9;
  --chart-edge-green:#8DB096; --chart-edge-brick:#D08A72; --chart-edge-brass:#D4B27A; --chart-edge-sage:#7FA488; --chart-edge-olive:#B8A57A;
  --chart-edge-sand:#A39A82;
  --chart-hatch-fill:var(--chart-brick); --chart-hatch-line:#1A1714; --chart-hatch-o:.8; --chart-hatch-line-pale:#1A1714; --chart-block-line:#E8E0CC; --chart-block-line-sage:#1A1714; --chart-block-line-brick:#1A1714; --chart-block-line-green:#1A1714;
  --chart-yea:#8DB096; --chart-nay:#D4B27A;
  --chart-pad:#E8E0CC; --chart-pad-ink:#17281D;
}
/* item 8: every number column and every number that animates uses even-width lining figures, so columns line up and a changing
   number doesn't jiggle. Fraunces (the serif) is kept for headline numbers and titles only: its files have no even-width figures (checked
   Nov 17: "1111" and "0000" differ in width with tabular-nums on), so a column of numbers is never set in it. */
html body :is(.ftb-rlbl b,.ftb-hlbl b,.ftb-hlbl span,.ftb-block__v,.ftb-poollbl,.ftb-learn__rows dd,.ftb-tie__rows dd,.ftb-layer__t b,.ftb-owelbl b,.ftb-ownlbl b,
.bkv-line__v,.bkv-card__v,.sp-val,.sd-val,.sd-bucks,.bb-row__val,[data-fig],.d1-guess__num,.rc-total,.rc-amt,.quiz-score,.d60-timer__v,.bd-row__v){font-variant-numeric:tabular-nums lining-nums}
