/* The OuterBox Marketing Report
   Paper/newspaper type design lifted from the SEO dashboard's `paper` theme:
   Playfair Display mastheads, Source Serif 4 body, mono for folio and labels,
   double rules, cream stock, oxblood accent. Dark theme kept as a second skin. */

:root {
  --mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --serif: 'Source Serif 4', Georgia, serif;
  --display: 'Playfair Display', Georgia, serif;

  /* paper */
  --bg: #f6f1e5;
  --ink: #171512;
  --ink-2: #453f33;
  --ink-3: #5d564a;
  --ink-4: #6b6353;
  --rule: #171512;
  --rule-soft: #d9cfba;
  --hover: #eee7d6;
  --accent: #9e2b25;
  --pos: #2f5d3f;
  --neg: #9e2b25;
}

html[data-theme=dark] {
  --bg: #0b0c0e;
  --ink: #e6e8eb;
  --ink-2: #b7bec7;
  --ink-3: #8b929c;
  --ink-4: #5b626c;
  --rule: #3a4048;
  --rule-soft: #262a30;
  --hover: #181b1f;
  --accent: #e0806a;
  --pos: #34d399;
  --neg: #f87171;
}

/* MODERN — the live outerboxdesign.com palette, lifted from their own CSS
   custom properties: --obx-blue #1d4e89, --bright-blue #0066dc, --gold #FFB703,
   --dark #17212e, --glacier #F7F9FB. Sans-serif throughout, so it reads as the
   website rather than as a newspaper. */
html[data-theme=modern] {
  --bg: #f7f9fb;
  --ink: #17212e;
  --ink-2: #2d3339;
  --ink-3: #5c6c80;
  --ink-4: #8a94a1;
  --rule: #17212e;
  --rule-soft: #dde3ea;
  --hover: #eef2f7;
  --accent: #0066dc;
  --pos: #0f7b4f;
  --neg: #c75300;
  --serif: ui-sans-serif, system-ui, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --display: ui-sans-serif, system-ui, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
html[data-theme=modern] h1,
html[data-theme=modern] .headline,
html[data-theme=modern] .hval,
html[data-theme=modern] .val { letter-spacing: -.02em; }
html[data-theme=modern] .stage,
html[data-theme=modern] .panel,
html[data-theme=modern] .branded,
html[data-theme=modern] .notes,
html[data-theme=modern] .method,
html[data-theme=modern] .hlblock { border-radius: 8px; }
html[data-theme=modern] .stage.on { --pick: #ffb703; }
html[data-theme=modern] header { border-bottom-color: var(--rule-soft); }

/* UNICORN — deliberately silly. Pastels, a rainbow rule, and a unicorn on the
   highlights badge. Same variables as every other theme, so nothing about the
   data rendering changes; only the paint does. */
html[data-theme=unicorn] {
  --bg: #fff7fd;
  --ink: #3b2450;
  --ink-2: #5b3a78;
  --ink-3: #8a63ad;
  --ink-4: #a98cc4;
  --rule: #c77dff;
  --rule-soft: #f0d9ff;
  --hover: #fdeeff;
  --accent: #ff5fa2;
  --pos: #17a398;
  --neg: #ff5fa2;
}
html[data-theme=unicorn] body {
  background:
    radial-gradient(circle at 12% 8%, #ffe6f7 0, transparent 42%),
    radial-gradient(circle at 88% 4%, #e6f0ff 0, transparent 38%),
    var(--bg);
}
html[data-theme=unicorn] .stage,
html[data-theme=unicorn] .panel,
html[data-theme=unicorn] .branded,
html[data-theme=unicorn] .notes,
html[data-theme=unicorn] .method,
html[data-theme=unicorn] .hlblock { border-radius: 14px; }
/* Rainbow rules wherever the paper theme uses a double rule. */
html[data-theme=unicorn] header,
html[data-theme=unicorn] .colophon,
html[data-theme=unicorn] .hlblock .mast {
  border-image: linear-gradient(90deg,#ff5fa2,#ffb703,#7ee787,#39c0ed,#c77dff) 1;
  border-bottom-style: solid; border-bottom-width: 3px;
}
html[data-theme=unicorn] .hlblock {
  border-left-width: 6px;
  border-left-color: transparent;
  background:
    linear-gradient(color-mix(in srgb, var(--ink) 4%, var(--bg)) 0 100%) padding-box,
    linear-gradient(180deg,#ff5fa2,#ffb703,#7ee787,#39c0ed,#c77dff) border-box;
}
html[data-theme=unicorn] .hlbadge {
  background: linear-gradient(90deg,#ff5fa2,#c77dff);
  border-radius: 0 0 10px 0;
}
/* The unicorn itself: inline SVG, no external request. Sized to actually be
   seen rather than read as a bullet. Sits in the block's top-right corner so
   it never collides with the lede text. */
html[data-theme=unicorn] .hlblock::after {
  content: "";
  position: absolute; top: 10px; right: 14px;
  width: 76px; height: 76px; pointer-events: none; opacity: .95;
  background: no-repeat center/contain url("data:image/svg+xml;utf8,\
<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'>\
<path d='M20 86c-4-14-1-30 10-40 7-7 17-11 27-12l7-20 7 21c9 5 14 14 14 24 0 15-12 27-27 27z' fill='%23ffffff' stroke='%23c77dff' stroke-width='2.5' stroke-linejoin='round'/>\
<path d='M71 14l6 21-14-5z' fill='%23ffb703' stroke='%23e09a00' stroke-width='2' stroke-linejoin='round'/>\
<path d='M42 30c9-6 20-4 26 3-9 1-16 6-21 13-3-6-5-11-5-16z' fill='%23ff5fa2'/>\
<path d='M46 40c8-3 15 0 20 6-8 0-14 4-18 10-2-6-2-11-2-16z' fill='%23ffb703'/>\
<path d='M49 51c7-2 13 1 17 6-7 0-12 4-15 9-2-5-2-10-2-15z' fill='%237ee787'/>\
<path d='M51 62c6-2 11 1 14 6-6 0-10 3-13 8-2-5-2-9-1-14z' fill='%2339c0ed'/>\
<circle cx='66' cy='45' r='3.4' fill='%233b2450'/>\
<path d='M24 88c8 3 20 3 28 0' fill='none' stroke='%23c77dff' stroke-width='2.5' stroke-linecap='round'/>\
</svg>");
}
@media (max-width: 760px) {
  html[data-theme=unicorn] .hlblock::after { width: 46px; height: 46px; top: 8px; right: 8px; }
  /* The kicker is centred and runs full width at this size, so it reaches
     under the unicorn. Nudge it clear rather than shrinking the graphic. */
  html[data-theme=unicorn] .hlblock .kicker { padding-right: 48px; }
}
html[data-theme=unicorn] .updated .ulbl {
  background: linear-gradient(90deg,#ff5fa2,#c77dff);
}
html[data-theme=unicorn] .bfill {
  background: linear-gradient(90deg,#ff5fa2,#ffb703);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

.wrap { max-width: 1360px; margin: 0 auto; padding: 18px 26px 70px; }

/* ------------------------------------------------------------- masthead */
header { text-align: center; }
header h1 {
  font-family: var(--display);
  font-weight: 900;
  font-size: 46px;
  letter-spacing: .5px;
  color: var(--ink);
  border-top: 3px double var(--rule);
  border-bottom: 1px solid var(--rule);
  padding: 12px 0 8px;
  margin: 0;
}
header .right {
  display: flex; flex-wrap: wrap; gap: 10px;
  align-items: center; justify-content: center;
  padding: 7px 0 5px;
}

.toggle { display: inline-flex; border: 1px solid var(--rule); }
.toggle button {
  font-family: var(--serif); font-size: 11.5px;
  text-transform: uppercase; letter-spacing: .08em;
  color: var(--ink-2); background: transparent; border: 0;
  padding: 5px 11px; cursor: pointer;
}
.toggle button + button { border-left: 1px solid var(--rule); }
.toggle button:hover { background: var(--hover); color: var(--ink); }
.toggle button.on { background: var(--ink); color: var(--bg); }

.themesw { display: inline-flex; border: 1px solid var(--rule); }
.themesw button {
  font-family: var(--mono); font-size: 9.5px; letter-spacing: .12em;
  text-transform: uppercase; color: var(--ink-3);
  background: transparent; border: 0; padding: 5px 9px; cursor: pointer;
}
.themesw button + button { border-left: 1px solid var(--rule); }
.themesw button.on { background: var(--ink); color: var(--bg); }

/* folio — the dateline strip under the nameplate */
#folio {
  font-family: var(--mono); font-size: 10px; letter-spacing: .28em;
  text-transform: uppercase; text-align: center; color: var(--ink);
  border-bottom: 3px double var(--rule);
  padding: 5px 0 8px;
}

/* -------------------------------------------------------------- lede */
.mast { text-align: center; padding: 18px 0 16px; border-bottom: 3px double var(--rule); margin-bottom: 16px; }
.mast .kicker {
  font-family: var(--mono); font-size: 10px; letter-spacing: .16em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 6px;
}
.mast .headline {
  font-family: var(--display); font-weight: 700;
  font-size: 34px; line-height: 1.12; margin: 0 0 8px; color: var(--ink);
}
.mast .deck {
  font-family: var(--serif); font-style: italic; font-size: 15px;
  color: var(--ink-2); max-width: 800px; margin: 0 auto; line-height: 1.5;
}
.mast .dateline {
  font-family: var(--mono); font-size: 10px; letter-spacing: .14em;
  text-transform: uppercase; color: var(--ink-3); margin-top: 10px;
}

/* -------------------------------------------------- notes / corrections */
/* Sits below the chart panel, which carries no bottom margin of its own —
   without this the two bordered boxes butt together. 24px matches .funnelwrap. */
.notes { border: 1px solid var(--rule); padding: 0; margin-top: 24px; margin-bottom: 20px; }
.notes .nhead {
  font-family: var(--mono); font-size: 9.5px; letter-spacing: .18em;
  text-transform: uppercase; color: var(--bg); background: var(--ink);
  padding: 4px 11px;
}
.note {
  display: flex; gap: 11px; align-items: baseline;
  padding: 8px 12px; border-top: 1px solid var(--rule-soft);
  font-size: 13.5px; line-height: 1.5; color: var(--ink-2);
}
.note:first-of-type { border-top: 0; }
.note b {
  font-family: var(--mono); font-size: 9px; letter-spacing: .1em;
  text-transform: uppercase; flex: none; width: 46px; color: var(--ink-3);
}
.note.warn b { color: var(--accent); }
.note.warn { background: rgba(158, 43, 37, .05); }

/* ----------------------------------------------------- highlights callout */
/* Sara's screenshot pointed at the masthead lede, so the lede and the four
   tiles share ONE called-out block. The nested .highlights drops its own
   border and background here, or it reads as a box inside a box. */
.hlblock {
  position: relative;
  background: color-mix(in srgb, var(--ink) 6%, var(--bg));
  border: 1px solid var(--rule);
  border-left: 4px solid var(--accent);
  padding: 20px 18px 14px;
  margin: 6px 0 22px;
}
.hlbadge {
  position: absolute; top: -1px; left: -4px;
  font-family: var(--mono); font-size: 8.5px; letter-spacing: .2em;
  text-transform: uppercase; color: var(--bg); background: var(--accent);
  padding: 3px 9px;
}
.hlblock .mast {
  border-bottom: 1px solid var(--rule-soft);
  padding: 4px 0 14px; margin-bottom: 14px;
}
.hlblock .highlights {
  background: none; border: 0; border-left: 0; padding: 0; margin: 0;
}
.hlblock .highlights .hhead { display: none; }

/* ------------------------------------------------------------ money panel */
.money { border: 1px solid var(--rule); padding: 13px 15px 14px; margin-top: 24px; }
.mgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.mtile { border-left: 1px solid var(--rule-soft); padding-left: 12px; }
.mtile:first-child { border-left: 0; padding-left: 0; }
.mlbl {
  font-family: var(--mono); font-size: 9px; letter-spacing: .12em;
  text-transform: uppercase; color: var(--ink-3); margin-bottom: 3px;
}
.mval {
  font-family: var(--display); font-weight: 900; font-size: 25px;
  line-height: 1.05; color: var(--ink); font-variant-numeric: tabular-nums;
}
.mval.na { font-size: 14px; font-weight: 700; color: var(--ink-4); font-style: italic; }
.mnote {
  font-family: var(--mono); font-size: 8.5px; letter-spacing: .08em;
  text-transform: uppercase; color: var(--ink-4); margin-top: 4px;
}
@media (max-width: 700px) { .mgrid { grid-template-columns: 1fr; gap: 12px; } }

/* ------------------------------------------------------- accounts panel */
.accounts { border: 1px solid var(--rule); border-left: 4px solid var(--accent);
            padding: 13px 15px 14px; margin-top: 24px; }
.agrid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.atile { border-left: 1px solid var(--rule-soft); padding-left: 12px; }
.atile:first-child { border-left: 0; padding-left: 0; }
.albl { font-family: var(--mono); font-size: 9px; letter-spacing: .12em;
        text-transform: uppercase; color: var(--ink-3); margin-bottom: 3px; }
.aval { font-family: var(--display); font-weight: 900; font-size: 25px;
        line-height: 1.05; color: var(--ink); font-variant-numeric: tabular-nums; }
.anote { font-family: var(--mono); font-size: 8.5px; letter-spacing: .08em;
         text-transform: uppercase; color: var(--ink-4); margin-top: 4px; }
/* Same treatment as the methodology warnings, so a caveat reads as a caveat
   wherever it appears on the page. */
.awarn {
  margin-top: 14px; padding: 6px 9px;
  border-left: 2px solid var(--accent); background: rgba(158, 43, 37, .05);
  font-size: 12.5px; color: var(--ink-2);
}
.atop { list-style: none; margin: 14px 0 0; padding: 10px 0 0;
        border-top: 1px solid var(--rule-soft); }
.atop li { display: flex; justify-content: space-between; gap: 12px;
           font-size: 13px; padding: 3px 0; color: var(--ink-2); }
.atop .tv { font-family: var(--mono); font-size: 11.5px; color: var(--ink);
            font-weight: 700; }
/* Five tiles need a mid step: at 5-across the dollar values start colliding
   before the 2-column breakpoint would rescue them. The border rule has to
   follow the column count, or the first tile of a wrapped row keeps a divider
   with nothing to its left. */
@media (max-width: 1060px) { .agrid { grid-template-columns: repeat(3, 1fr); }
  .atile:nth-child(3n+1) { border-left: 0; padding-left: 0; } }
@media (max-width: 860px) { .agrid { grid-template-columns: repeat(2, 1fr); }
  .atile { border-left: 1px solid var(--rule-soft); padding-left: 12px; }
  .atile:nth-child(odd) { border-left: 0; padding-left: 0; } }

/* ---------------------------------------------------------- branded split */
.branded { border: 1px solid var(--rule); padding: 13px 15px 14px; margin-top: 24px; }
.brow { display: grid; grid-template-columns: 92px 1fr; gap: 4px 12px; margin-top: 12px; }
.brow:first-of-type { margin-top: 4px; }
.blabel {
  font-family: var(--mono); font-size: 9.5px; letter-spacing: .12em;
  text-transform: uppercase; color: var(--ink-3); align-self: center;
}
.bbar {
  position: relative; height: 16px; background: var(--hover);
  border: 1px solid var(--rule-soft); overflow: hidden;
}
.bfill { position: absolute; inset: 0 auto 0 0; background: var(--accent); }
.bnums {
  grid-column: 2; display: flex; gap: 12px; flex-wrap: wrap;
  font-family: var(--mono); font-size: 10px; color: var(--ink-4);
}
.bnums .bbr { color: var(--accent); font-weight: 700; }
.bnums .bpc { color: var(--ink-2); font-weight: 700; }

/* --------------------------------------------------------- updated stamp */
/* Sits above the folio so it is the first thing read after the masthead.
   Deliberately louder than the colophon: people were reading the data-through
   date as the write date. */
.updated {
  display: flex; align-items: baseline; gap: 9px; flex-wrap: wrap;
  justify-content: center; padding: 7px 0 6px; margin-bottom: 2px;
  border-bottom: 1px solid var(--rule-soft);
}
.updated .ulbl {
  font-family: var(--mono); font-size: 9px; letter-spacing: .2em;
  text-transform: uppercase; color: var(--bg); background: var(--accent);
  padding: 3px 7px;
}
.updated .uval {
  font-family: var(--display); font-weight: 700; font-size: 15px;
  color: var(--ink);
}
.updated .uthru {
  font-family: var(--mono); font-size: 9.5px; letter-spacing: .1em;
  text-transform: uppercase; color: var(--ink-4);
}

/* ------------------------------------------------------------ highlights */
/* Tinted band so the summary reads differently from the data panels below.
   Uses colour-mix against --ink rather than a hardcoded tint, so it derives
   its shade from whichever theme is active instead of needing a dark-mode
   twin that someone will forget to update. */
.highlights {
  background: color-mix(in srgb, var(--ink) 6%, var(--bg));
  border: 1px solid var(--rule);
  border-left: 4px solid var(--accent);
  padding: 11px 14px 13px;
  margin-bottom: 22px;
}
.highlights .hhead {
  font-family: var(--mono); font-size: 9px; letter-spacing: .2em;
  text-transform: uppercase; color: var(--ink-3); margin-bottom: 9px;
}
/* auto-fit so a fifth tile (revenue) does not need a hardcoded column count */
.hgrid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px;
}
.htile { border-left: 1px solid var(--rule-soft); padding-left: 12px; }
.htile:first-child { border-left: 0; padding-left: 0; }
.hlbl {
  font-family: var(--mono); font-size: 9px; letter-spacing: .12em;
  text-transform: uppercase; color: var(--ink-3); margin-bottom: 3px;
}
.hval {
  font-family: var(--display); font-weight: 900; font-size: 27px;
  line-height: 1.05; color: var(--ink); font-variant-numeric: tabular-nums;
}
.hval.na { font-size: 15px; font-weight: 700; color: var(--ink-4); font-style: italic; }
.hmeta { display: flex; align-items: baseline; gap: 8px; margin-top: 4px; flex-wrap: wrap; }
.hcmp { font-family: var(--mono); font-size: 11px; font-weight: 700; }
.hcmp.pos { color: var(--pos); }
.hcmp.neg { color: var(--neg); }
.hcmp.flat { color: var(--ink-4); }
.hsrc {
  font-family: var(--mono); font-size: 8.5px; letter-spacing: .1em;
  text-transform: uppercase; color: var(--ink-4);
}

@media (max-width: 760px) {
  .hgrid { grid-template-columns: repeat(2, 1fr); gap: 12px 10px; }
  .htile:nth-child(odd) { border-left: 0; padding-left: 0; }
  .hval { font-size: 23px; }
}

/* ------------------------------------------------- methodology appendix */
/* Two columns on desktop (stage label | definition), stacked on narrow.
   Same bordered-block idiom as .notes so it reads as an appendix to the
   report rather than as another data panel. */
.method { border: 1px solid var(--rule); margin-top: 24px; }
.method .mhead {
  font-family: var(--mono); font-size: 9.5px; letter-spacing: .18em;
  text-transform: uppercase; color: var(--bg); background: var(--ink);
  padding: 4px 11px;
}
.mrow {
  display: grid; grid-template-columns: 190px 1fr; gap: 16px;
  padding: 11px 12px; border-top: 1px solid var(--rule-soft);
  font-size: 13.5px; line-height: 1.55; color: var(--ink-2);
}
.mrow:first-of-type { border-top: 0; }
.mstage {
  font-family: var(--display); font-weight: 700; font-size: 15px;
  color: var(--ink); line-height: 1.3;
}
.mstage em {
  display: block; font-family: var(--mono); font-style: normal;
  font-size: 8.5px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--ink-4); margin-top: 3px;
}
.mdef b { color: var(--ink); font-weight: 600; }
.mdef code {
  font-family: var(--mono); font-size: 11.5px;
  background: var(--hover); padding: .5px 4px; border-radius: 2px;
  color: var(--ink-2); word-break: break-word;
}
.mdef ol { margin: 6px 0 8px; padding-left: 20px; }
.mdef ol li { margin-bottom: 4px; }
.mgate {
  font-family: var(--mono); font-size: 9px; letter-spacing: .1em;
  text-transform: uppercase; color: var(--ink-3); margin-top: 8px;
}
.mwarn {
  margin-top: 8px; padding: 6px 9px;
  border-left: 2px solid var(--accent); background: rgba(158, 43, 37, .05);
  font-size: 12.5px;
}
.mrow.flag .mstage { color: var(--accent); }
.mrow.warnrow { background: rgba(158, 43, 37, .05); }
.mrow.warnrow .mstage {
  font-family: var(--mono); font-size: 10px; letter-spacing: .12em;
  text-transform: uppercase; color: var(--accent);
}

/* Build notes reuse the methodology shell; the date column is narrower and
   monospaced so the entries scan as a log rather than as more definitions. */
.buildnotes { margin-top: 20px; }
.buildnotes .mrow { grid-template-columns: 128px 1fr; }
.buildnotes .mstage {
  font-family: var(--mono); font-size: 10px; letter-spacing: .12em;
  text-transform: uppercase; color: var(--ink-3); padding-top: 2px;
}

@media (max-width: 700px) {
  .mrow { grid-template-columns: 1fr; gap: 6px; }
  .buildnotes .mrow { grid-template-columns: 1fr; }
}

/* ------------------------------------------------------------- sections */
.secthead {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 14px; flex-wrap: wrap;
  border-bottom: 2px solid var(--rule); padding-bottom: 5px; margin-bottom: 12px;
}
.secthead h3 {
  font-family: var(--display); font-weight: 700; font-size: 19px;
  margin: 0; color: var(--ink);
}
.meta {
  font-family: var(--serif); font-style: italic;
  font-size: 11.5px; color: var(--ink-3);
}

.funnelwrap { margin-bottom: 24px; }
.funnel { display: flex; flex-wrap: wrap; align-items: stretch; }

.stage {
  /* Sized so all ten stages + nine connectors clear one row at max-width
     (10*100 + 9*30 = 1270 inside a 1308px column). A wrapped stage strands
     its connector arrow pointing at nothing. */
  flex: 1 1 100px; min-width: 100px; max-width: 240px;
  border: 1px solid var(--rule);
  padding: 9px 10px 8px;
  display: flex; flex-direction: column; gap: 3px;
  cursor: pointer; background: transparent;
  font: inherit; color: inherit; text-align: left;
}
.stage:hover { background: var(--hover); }

/* Selected stages carry their own series colour as a top band rather than
   inverting to solid ink. With several picked at once, inversion made the
   funnel read as a wall of black and severed each stage from its line. */
.stage.on {
  background: var(--hover);
  border-color: var(--pick, var(--ink));
  box-shadow: inset 0 3px 0 0 var(--pick, var(--ink));
}
.stage.on .lbl { color: var(--ink-2); }
.stage.on .val { color: var(--ink); }

.stage .lbl {
  font-family: var(--mono); font-size: 8.5px; letter-spacing: .1em;
  text-transform: uppercase; color: var(--ink-3);
}
.stage .val {
  font-family: var(--serif); font-weight: 700; font-size: 21px;
  line-height: 1.15; color: var(--ink); font-variant-numeric: tabular-nums;
}
.stage .val.na { font-size: 14px; font-weight: 400; font-style: italic; color: var(--ink-4); }
.stage .cmp { font-family: var(--mono); font-size: 10px; font-variant-numeric: tabular-nums; }
.cmp.pos { color: var(--pos); }
.cmp.neg { color: var(--neg); }
.cmp.flat { color: var(--ink-4); }
/* Dollar figure under the count on the two sales stages. Deliberately smaller
   than .val: the count is the stage's headline and the money is its companion,
   and two figures at equal weight in a 100px tile read as two separate stages. */
.stage .smoney {
  margin-top: 3px;
  font-family: var(--serif); font-weight: 700; font-size: 13px;
  color: var(--ink-2); font-variant-numeric: tabular-nums;
}
.stage .smoney .mdelta {
  font-family: var(--mono); font-weight: 400; font-size: 9px;
}
.mdelta.pos { color: var(--pos); }
.mdelta.neg { color: var(--neg); }
.mdelta.flat { color: var(--ink-4); }
.stage .src {
  margin-top: auto; padding-top: 6px;
  font-family: var(--mono); font-size: 8px; letter-spacing: .08em;
  text-transform: uppercase; color: var(--ink-4);
}

/* connector between stages */
.link {
  flex: 0 0 30px; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 2px; color: var(--ink-3);
}
/* Arrow only — the conversion rate that used to sit under it was removed with
   stage-to-stage conversion, so the connector centres on the arrow alone. */
.link .arrow { font-family: var(--serif); font-size: 14px; line-height: 1; }

/* ---------------------------------------------------------------- chart */
.panel { border: 1px solid var(--rule); padding: 13px 15px 12px; }
.chartbox { position: relative; height: 340px; }

.legend { display: flex; flex-wrap: wrap; gap: 14px; margin: 0 0 8px; }
.lgd {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--serif); font-size: 12.5px; color: var(--ink);
}
.lgd i { width: 15px; height: 3px; flex: none; }
.lgd em {
  font-family: var(--mono); font-style: normal; font-size: 8.5px;
  letter-spacing: .1em; text-transform: uppercase; color: var(--ink-4);
}

.readline {
  margin-top: 11px; padding-top: 9px; border-top: 1px solid var(--rule-soft);
  font-family: var(--serif); font-size: 13.5px; line-height: 1.55; color: var(--ink-2);
  /* Two columns once several stages are selected — a stack of paragraphs
     runs long, and this is a newspaper. */
  columns: 2; column-gap: 30px; column-rule: 1px solid var(--rule-soft);
}
.readline p { margin: 0 0 9px; break-inside: avoid; }
.readline p:last-child { margin-bottom: 0; }
.readline b { color: var(--ink); font-weight: 700; }
.readline .swatch {
  display: inline-block; width: 9px; height: 9px;
  margin-right: 6px; vertical-align: baseline;
}
@media (max-width: 900px) { .readline { columns: 1; } }

/* No drop cap here: the read-out opens with the metric name in bold, and a
   floated initial splits that word ("S hare of Voice"). The serif body already
   carries the column feel. */

/* ------------------------------------------------------------ colophon */
.colophon {
  margin-top: 26px; padding-top: 10px; border-top: 3px double var(--rule);
  display: flex; flex-wrap: wrap; gap: 16px;
  font-family: var(--mono); font-size: 9.5px; letter-spacing: .1em;
  text-transform: uppercase; color: var(--ink-4);
}
.colophon b { color: var(--ink-3); font-weight: 400; }
.colophon .err b, .colophon .err { color: var(--accent); }

@media (max-width: 760px) {
  .wrap { padding: 14px 15px 50px; }
  header h1 { font-size: 30px; }
  .mast .headline { font-size: 24px; }
  .chartbox { height: 250px; }
}
