/* Novecento for the wordmark: uses the copy installed on this Mac if there is one.
   For the live site, a licensed web-font file gets added here. Until then the
   fallback is Montserrat, the nearest free match. */
@font-face {
  font-family: "Wordmark";
  src: local("Novecento Wide Normal"), local("NovecentoWide-Normal"), local("Novecento Wide"),
       local("Novecento Sans Wide Normal"), local("NovecentoSansWide-Normal"), local("Novecento");
}

:root {
  --wordmark: "Wordmark", "Montserrat", "Helvetica Neue", Arial, sans-serif;
  --cream: #F3EEE3;
  --cream-deep: #E9E2D3;
  --ink: #121212;
  --ink-2: #4A4744;
  --ink-3: #8C877F;
  --rule: #D8D0BF;
  --claret: #9A2E45;
  --lavender: #8E7CC8;
  --mustard: #C9961A;
  --other: #8C877F;
  --yellow: #F2D35B;
  --up: #2F6B3A;
  --down: #9A2E45;
  --display: "Inter Tight", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --pixel: "Silkscreen", ui-monospace, monospace;
}

* { box-sizing: border-box; }

html { background: var(--cream); }
body {
  margin: 0;
  color: var(--ink);
  font-family: var(--display);
  font-size: 15px;
  line-height: 1.45;
  background-color: var(--cream);
  /* paper grain: fine noise over the cream */
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.35  0 0 0 0 0.3  0 0 0 0 0.22  0 0 0 .09 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  -webkit-font-smoothing: antialiased;
}

.pixel { font-family: var(--pixel); font-weight: 400; letter-spacing: .02em; }
.muted { color: var(--ink-3); }

/* header: wordmark on its own line, tabs beneath */
.top {
  position: relative;
  display: flex; flex-direction: column; align-items: center; gap: 22px;
  padding: 44px 56px 0;
}
.wordmark {
  font-family: var(--wordmark); font-weight: 700; font-size: 34px; line-height: 1;
  letter-spacing: .32em; margin-right: -.32em; color: var(--ink);
}
.tabs { display: flex; justify-content: center; gap: 36px; overflow-x: auto; scrollbar-width: none; max-width: 100%; padding-bottom: 14px; }
.tab {
  font-family: var(--pixel); font-size: 12px; text-transform: uppercase; color: var(--ink-3);
  text-decoration: none; padding: 6px 0; white-space: nowrap; position: relative;
}
.tab:hover { color: var(--ink); }
.tab.is-active { color: var(--ink); }
.stamp {
  position: absolute; top: 16px; right: 20px;
  font-family: var(--pixel); font-size: 9px; text-transform: uppercase; white-space: nowrap;
  background: var(--yellow); color: var(--ink); padding: 3px 7px;
}

main, .soon { padding: 0 56px 80px; max-width: 1240px; margin: 0 auto; }

/* period total, sitting at the left of the breakdown menu */
/* the total's text wraps inside its own space, so a long label never pushes the menu beside it
   onto a second line; below ~320px of room the menu drops underneath, as it should on a phone */
.total { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin-right: auto; flex: 1 1 320px; min-width: 0; }
.total-label { font-size: 12px; text-transform: uppercase; color: var(--ink-2); }
.total-number { font-weight: 600; font-size: 14px; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.total-number::before { content: ""; display: inline-block; width: 6px; height: 6px; background: var(--lavender); margin-right: 10px; vertical-align: 1px; }
.total-compare { font-family: var(--pixel); font-size: 12px; text-transform: uppercase; }
.change { font-family: var(--pixel); font-size: 11px; }
/* the % next to the total matches the total's font */
#hero-change { font-family: var(--display); font-weight: 600; font-size: 14px; }
.change.up { color: var(--up); }
.change.down { color: var(--down); }

/* controls */
/* fine frame around the date menu and the chart */
.panel { border: 1px solid var(--ink); margin-top: 28px; padding: 14px 22px 10px; }
.controls { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding: 0 0 4px; }
.seg { display: flex; flex-wrap: wrap; gap: 0; }
.seg-btn {
  font-family: var(--pixel); font-size: 11px; text-transform: uppercase; color: var(--ink-2);
  background: transparent; border: 0; margin: 0 6px 0 0;
  padding: 8px 8px; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; min-height: 36px;
}
/* hover and selected: lavender box, ink text */
.seg-btn:hover, .seg-btn.is-active { color: var(--ink); background: var(--lavender); }
.seg-select select {
  font: inherit; color: inherit; text-shadow: inherit; text-transform: uppercase;
  background: transparent; border: 0; padding: 0; margin: 0; cursor: pointer;
  appearance: none; -webkit-appearance: none; outline: none;
}
.seg-select select:focus-visible { outline: 1px dotted var(--ink-3); outline-offset: 2px; }
.seg-select select option { color: var(--ink); background: var(--cream); font-family: var(--display); }
/* Month - Oct 2026 */
.seg-select > span::after { content: "-"; margin-left: 6px; }
.seg-small .seg-btn { font-size: 10px; padding: 6px 10px; min-height: 30px; }

/* chart */
.chart-wrap { position: relative; padding: 24px 0 8px; }
.legend { display: flex; gap: 20px; font-size: 12px; color: var(--ink-2); margin-bottom: 10px; }
.legend[hidden], .seg-btn[hidden] { display: none; }
.sw { display: inline-block; width: 10px; height: 10px; margin-right: 7px; vertical-align: -1px; }
.sw-spotify { background: var(--claret); }
.sw-youtube { background: var(--lavender); }
.sw-apple { background: var(--mustard); }
.sw-other { background: var(--other); }
.chart svg { display: block; width: 100%; height: auto; overflow: visible; }
.chart .axis-label { font-family: var(--pixel); font-size: 9px; fill: var(--ink-3); }
.chart .grid { stroke: var(--rule); stroke-width: 1; stroke-dasharray: 2 3; }
.chart .baseline { stroke: var(--ink); stroke-width: 1; }
.chart .col { cursor: crosshair; }
.chart .col:hover .cell-ink { fill: var(--lavender); }
.chart .col.is-hot .hit { fill: rgba(18,18,18,.04); }

.tooltip {
  position: absolute; pointer-events: none; background: var(--ink); color: var(--cream);
  padding: 10px 12px; font-size: 12px; min-width: 170px; z-index: 10;
}
.tooltip .t-date { font-family: var(--pixel); font-size: 10px; text-transform: uppercase; opacity: .7; margin-bottom: 4px; }
.tooltip .t-total { font-weight: 700; font-size: 18px; letter-spacing: -.02em; margin-bottom: 6px; font-variant-numeric: tabular-nums; }
.tooltip .t-row { display: flex; justify-content: space-between; gap: 16px; font-variant-numeric: tabular-nums; }
.tooltip .sw { width: 8px; height: 8px; }

/* breakdown */
.breakdown { padding-top: 28px; }
.breakdown-head { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; padding: 0 2px; }
.dims { display: flex; flex-wrap: wrap; gap: 6px; }
.dim {
  font-family: var(--pixel); font-size: 11px; text-transform: uppercase; background: transparent; border: 0; padding: 4px 8px;
  color: var(--ink-3); cursor: pointer;
}
.dim:hover { color: var(--ink); }
.dim.is-active { color: var(--ink); box-shadow: inset 0 -3px 0 var(--lavender); }
.dim-note { font-size: 12px; min-height: 18px; margin: 10px 0 4px; }

.table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.table th { font-family: var(--pixel); font-weight: 400; font-size: 10px; text-transform: uppercase; color: var(--ink-3);
  text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--rule); }
.table td { padding: 12px 8px; border-bottom: 1px solid var(--rule); font-size: 14px; }
.table tr:hover td { background: rgba(142,124,200,.08); }
.table .num { text-align: right; width: 1%; white-space: nowrap; }
.table td.rank { font-family: var(--pixel); font-size: 10px; color: var(--ink-3); }
.share-col { width: 34%; }
.sharebar { display: flex; align-items: center; gap: 10px; }
.sharebar .cells { display: flex; gap: 1px; flex: 1; }
.sharebar .cells i { display: block; height: 10px; flex: 1; background: var(--cream-deep); }
.sharebar .cells i.on { background: var(--ink); }
.sharebar .pct { font-size: 12px; color: var(--ink-2); width: 44px; text-align: right; }
.has-note { position: relative; cursor: help; outline: none; }
.has-note > .row-tip {
  display: none; position: absolute; left: 8px; top: 100%; z-index: 10; width: min(360px, 80vw);
  background: var(--ink); color: var(--cream); padding: 10px 12px; font-size: 12px; line-height: 1.4;
}
.has-note:hover > .row-tip, .has-note:focus > .row-tip { display: block; }
.name-sw { display: inline-block; width: 8px; height: 8px; margin-right: 10px; vertical-align: 1px; }

/* placeholder pages */
.soon { padding-top: 80px; }
.soon[hidden], main[hidden] { display: none; }
.soon-label { font-size: 12px; text-transform: uppercase; color: var(--ink-2); }
.soon-title { font-weight: 800; font-size: clamp(48px, 9vw, 120px); letter-spacing: -.055em; line-height: .9; margin: 14px 0; }

@media (max-width: 760px) {
  .top { gap: 16px; padding: 40px 16px 0; }
  .wordmark { font-size: 26px; }
  .tabs { justify-content: flex-start; width: 100%; gap: 20px; }
  main, .soon { padding: 0 16px 60px; }
  .panel { padding: 10px 10px 6px; }
  .share-col, .sharebar .cells { display: none; }
  .table td.share { display: none; }
}

/* other chart styles (body data-chart="bars" | "line"); pixel is the default */
.chart .bar.cell-ink { fill: var(--bar, var(--ink)); }
.chart .line { fill: none; stroke: var(--line, var(--ink)); stroke-width: 2; stroke-linejoin: round; }
.chart .area { fill: var(--area, rgba(18,18,18,.06)); stroke: none; }
.chart .dot { fill: var(--lavender); opacity: 0; }
.chart .col:hover .dot { opacity: 1; }


/* ===== The live look: brutalism, Schur colours. Everything below overrides the base styles above.
   It came from design/themes/brutalism-schur.css, so don't layer that theme on top again. ===== */
/* chart: bars */
/* fonts: https://fonts.googleapis.com/css2?family=Archivo+Black&family=IBM+Plex+Mono:wght@400;500;700&display=swap */
/* Brutalism, Schur colours: concrete grey and black, with the first version's claret and lavender
   and the mockup-tag yellow as accents. Monospace everything, slab wordmark, hard 2px borders,
   inverted selections, solid black bars. */

:root {
  --wordmark: "Archivo Black", "Arial Black", sans-serif;
  --display: "IBM Plex Mono", ui-monospace, monospace;
  --pixel: "IBM Plex Mono", ui-monospace, monospace;
  --cream: #E3E2DD;
  --cream-deep: #C9C8C2;
  --ink: #000000;
  --ink-2: #222222;
  --ink-3: #5E5E5A;
  --rule: #000000;
  --claret: #9A2E45;    /* Spotify */
  --lavender: #8E7CC8;  /* YouTube */
  --mustard: #E39B00;   /* Apple Music and Tour: amber, so it stands apart from the hover yellow */
  --accent: #F2D35B;    /* hover and highlight */
  --up: #000000;
  --down: #9A2E45;
  --total: #000000;     /* headline totals: black text on a dusty teal block, opposite the claret on */
  --total-bg: #9DBFBF;  /* the wheel so the two complement; pale text alone is too faint on cream */
  /* Revenue types, in families: masters claret, publishing lavender, tour amber, merch grey */
  --rev-ah: #C9768A;      /* Artist House masters: light claret */
  --rev-youtube: #5C1A2C; /* YouTube channel: deep claret */
  --rev-ascap: #4E3F8C;   /* ASCAP performance: deep lavender */
  --rev-merch: #5E5E5A;   /* merch: warm grey */
  --rev-royalties: #2E5E4E; /* All royalties: deep green, so it doesn't read as the black overall line */
}
body { background-image: none; -webkit-font-smoothing: auto; }

.top { align-items: stretch; padding-top: 40px; gap: 0; }
.wordmark {
  font-size: clamp(56px, 13vw, 150px); letter-spacing: -.04em; margin-right: 0; line-height: .82;
  border: 2px solid var(--ink); border-bottom: 0; padding: 14px 12px 4px; background: var(--ink); color: var(--cream);
}
.tabs { justify-content: flex-start; gap: 0; border: 2px solid var(--ink); padding: 0; }
.tab { font-size: 12px; font-weight: 500; padding: 10px 14px; color: var(--ink); }
.tab:hover { background: var(--accent); }
.tab.is-active { background: var(--ink); color: var(--cream); }
.stamp { top: 8px; right: 16px; font-family: var(--display); font-weight: 700; border: 2px solid var(--ink); }

/* date range on the left, chart view on the right */
.panel { border: 2px solid var(--ink); margin-top: 20px; padding: 0; }
.controls { border-bottom: 2px solid var(--ink); padding: 0; gap: 0; }
.seg-btn { margin: 0; font-weight: 500; min-height: 40px; padding: 8px 12px; }
.seg-btn:hover { background: var(--accent); color: var(--ink); }
.seg-btn.is-active { background: var(--ink); color: var(--cream); }
.seg-small .seg-btn { min-height: 40px; }
.chart-wrap { padding: 20px 16px 8px; }
.chart .bar.cell-ink { fill: var(--ink); }
.chart .col:hover .cell-ink { fill: var(--accent); }
.chart .bar { stroke: none; }
/* months not reported yet: a projection, drawn grey so it never reads as real money */
.chart .bar.projected { fill: #A9A69F; }
.chart .col:hover .bar.projected { fill: var(--accent); }
.tooltip .t-proj { font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.tooltip .t-basis { width: 240px; margin-top: 6px; white-space: normal; line-height: 1.4; }
.sw.sw-proj { background: #A9A69F; }
.sw.sw-line { background: var(--claret); height: 3px; vertical-align: middle; }
.chart .inv-line { fill: none; stroke: var(--claret); stroke-width: 3; stroke-linejoin: round; pointer-events: none; }
/* ROI on the Revenue page: sits after the total, explains itself on hover */
.roi[hidden] { display: none; }
.roi { margin-left: 8px; padding-left: 12px; border-left: 2px solid var(--ink); font-size: 13px; }
.roi b { font-size: 16px; }
.roi > .row-tip { width: 320px; white-space: normal; text-transform: none; }
.chart .grid { stroke: var(--ink); stroke-dasharray: 1 4; }
.chart .baseline { stroke-width: 2; }
.chart .axis-label { fill: var(--ink); font-size: 14px; font-weight: 500; }
.tooltip { border: 2px solid var(--ink); background: var(--cream); color: var(--ink); box-shadow: none; }
/* yellow is pale on the grey, so colour swatches get a black edge */
.sw, .name-sw { box-shadow: 0 0 0 1px var(--ink); }

.breakdown { padding-top: 20px; }
/* the total and menu head the table: one frame, one thin line under the column headings */
.breakdown-head { border: 2px solid var(--ink); border-bottom: 0; padding: 10px 12px; }
.dim-note { margin: 0; min-height: 0; padding: 0 12px 8px; border: 2px solid var(--ink); border-top: 0; border-bottom: 0; }
.dim-note:empty { display: none; }
.total-number { font-weight: 700; color: var(--total); background: var(--total-bg); padding: 0 6px; }
/* sign-in (live site only): until both steps pass, only the sign-in box shows */
.signin { display: none; }
/* live build only (config.js sets data-gate): blank until auth.js has decided in or out */
html[data-gate] body:not([data-auth]) > :not(script) { display: none !important; }
body[data-auth="out"] > :not(.signin):not(script) { display: none !important; }
/* one centred column: the SCHUR block and the box share the same width, middle of the screen */
body[data-auth="out"] .signin { display: flex; flex-direction: column; align-items: stretch; justify-content: center; gap: 16px; width: min(420px, 100% - 32px); min-height: 100vh; margin: 0 auto; padding: 24px 0; box-sizing: border-box; }
.signin .wordmark { border-bottom: 2px solid var(--ink); text-align: center; font-size: clamp(56px, 22vw, 104px); padding: 18px 12px 8px; }
.signin .si-error { text-align: center; }
.si-box { border: 2px solid var(--ink); padding: 16px; display: flex; flex-direction: column; gap: 12px; width: 100%; box-sizing: border-box; }
.si-box[hidden] { display: none; }
.si-box label { display: flex; flex-direction: column; gap: 6px; font-size: 12px; text-transform: uppercase; }
.si-box input { font: inherit; font-size: 16px; text-transform: none; padding: 8px 10px; border: 2px solid var(--ink); background: var(--cream); color: var(--ink); border-radius: 0; }
.si-box input:focus { outline: none; background: var(--accent); }
.si-box button { font: inherit; font-weight: 700; padding: 10px 14px; border: 2px solid var(--ink); background: var(--ink); color: var(--cream); cursor: pointer; border-radius: 0; }
.si-box button:hover { background: var(--accent); color: var(--ink); }
.si-box button:disabled { opacity: .5; cursor: wait; }
.si-box p { margin: 0; font-size: 13px; }
.si-box img { border: 2px solid var(--ink); background: #fff; image-rendering: pixelated; }
.si-box code { word-break: break-all; }
.si-error { min-height: 1.2em; margin: 0; font-size: 13px; font-weight: 700; color: var(--down); }
.signout { margin-left: auto; font: inherit; background: none; border: 0; border-left: 2px solid var(--ink); cursor: pointer; }

/* Contracts: each deal's total keeps its own colour square, so no block there */
.spent .total-number { background: none; padding: 0; color: var(--ink); }
.total-number::before { width: 10px; height: 10px; background: var(--accent); border: 2px solid var(--ink); vertical-align: -1px; }
/* totals go without the box; Contracts keeps it to mark each deal */
#page .total-number::before, #analysis .total-number::before { display: none; }
#hero-change { font-family: var(--display); font-weight: 700; }
.dim { font-size: 12px; color: var(--ink-2); }
.dim:hover { background: var(--accent); color: var(--ink); }
.dim.is-active { box-shadow: none; background: var(--ink); color: var(--cream); }
.table, .table-wrap { border: 2px solid var(--ink); border-top: 0; }
.table-wrap .table { border: 0; }
/* a long table scrolls in its own box, so the chart stays in view while picking rows */
.table-wrap.is-capped { max-height: 480px; overflow-y: auto; }
.table-wrap.is-capped thead th { position: sticky; top: 0; z-index: 1; background: var(--cream); box-shadow: inset 0 -1px 0 var(--ink); }
.table-more { display: block; width: 100%; font: inherit; font-size: 12px; color: var(--ink); background: transparent;
  border: 2px solid var(--ink); border-top: 0; padding: 10px 12px; cursor: pointer; text-align: left; }
.table-more:hover { background: var(--accent); }
.table-more[hidden] { display: none; }
.table th, .table td { border-bottom: 1px solid var(--ink); }
.table tbody tr:last-child td { border-bottom: 0; }
.table th { color: var(--ink); background: transparent; }
.table tr:hover td { background: var(--accent); }
/* a service row picks what the chart shows */
.table tr.pickable { cursor: pointer; }
.table tr.is-picked td { background: var(--accent); font-weight: 700; }
.legend.is-picked { justify-content: flex-end; align-items: center; }
.legend .show-all { font: inherit; font-size: 12px; color: var(--ink); background: transparent;
  border: 2px solid var(--ink); padding: 0 8px; cursor: pointer; }
.legend .show-all:hover { background: var(--accent); }
.sharebar .cells { gap: 1px; border: 0; }
.sharebar .cells i { height: 10px; background: var(--cream-deep); }
.sharebar .cells i.on { background: var(--ink); }

/* header spans the same width as the panels below it */
.top { max-width: 1240px; margin: 0 auto; padding-left: 56px; padding-right: 56px; }
@media (max-width: 760px) { .top { padding-left: 16px; padding-right: 16px; } }

/* % change: black number, only the arrow is coloured (true red, strong green) */
:root { --up-vivid: #00962F; --down-vivid: #E00000; }
.change.up, .change.down { color: #000; font-weight: 700; }
.change.up .arr { color: var(--up-vivid); }
.change.down .arr { color: var(--down-vivid); }
.table tr:hover .change .arr { color: #000; }

/* Other (DistroKid): white, with the black swatch edge above */
:root { --other: #FFFFFF; }

/* the smaller investment categories: lighter and darker shades of the same three colours */
:root {
  --wine: #5E1A2B; --rose: #D98A9B;
  --violet: #4B3A86; --lilac: #C8BFE6;
  --ochre: #7E5A06; --butter: #F8EBB0;
}

/* hover note on a table row, matching the chart tooltip */
.has-note > .row-tip { border: 2px solid var(--ink); background: var(--cream); color: var(--ink); }

/* Contracts: one recoupment bar per deal, then where each deal's money went */
.deal { padding: 18px 16px 14px; }
.deal + .deal { border-top: 2px solid var(--ink); }
.deal-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; margin-bottom: 12px; }
.deal-name { font-weight: 700; font-size: 14px; text-transform: uppercase; }
.deal-kind { font-size: 12px; color: var(--ink-3); }
.deal-pct { margin-left: auto; font-size: 13px; }
.deal-pct b { font-size: 16px; }
.recoup { position: relative; display: flex; height: 48px; border: 2px solid var(--ink); }
.rb { height: 100%; }
.rb-done { background: var(--ink); }
.rb-proj { background: #A9A69F; }
.rb:hover, .rb:focus { background: var(--accent); }
.recoup .tick { position: absolute; top: 0; bottom: 0; border-left: 1px dashed #8A8A86; pointer-events: none; }
.rb > .row-tip { width: 320px; white-space: normal; top: calc(100% + 4px); left: 0; }
.rb-proj > .row-tip { left: auto; right: 0; }
.recoup-scale { position: relative; height: 16px; font-size: 11px; color: var(--ink-3); margin-top: 4px; }
.recoup-scale span { position: absolute; top: 0; transform: translateX(-50%); }
.recoup-scale span:first-child { left: 0; transform: none; }
.recoup-scale span:last-child { right: 0; transform: none; }
.deal-foot { margin-top: 8px; font-size: 13px; }
.spent-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; padding-top: 20px; align-items: start; }
.spent .share-col { width: 30%; }
.spent .total-label.has-note > .row-tip { width: 320px; white-space: normal; text-transform: none; }
@media (max-width: 760px) {
  .spent-grid { grid-template-columns: 1fr; }
  .deal-pct { margin-left: 0; width: 100%; }
}
/* each deal's table is marked by one box: yellow for the first deal, purple for the second */
.spent:nth-child(2) .total-number::before { background: var(--lavender); }
/* and its status bar lights up in the same colour on hover */
.deal:nth-child(2) .rb:hover, .deal:nth-child(2) .rb:focus { background: var(--lavender); }

/* Analysis: what to do first, then the evidence, then every push */
#analysis { position: relative; }
.an-block, .an-advice { padding: 14px 16px 16px; }
.an-block, .an-advice { margin-top: 20px; }
.an-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; margin-bottom: 12px; }
.an-title { font-weight: 700; font-size: 14px; text-transform: uppercase; }
.an-title.has-note > .row-tip { width: 340px; white-space: normal; text-transform: none; font-weight: 400; }
.an-asof { font-size: 12px; margin-left: auto; }
.an-legend { margin: 0 0 0 auto; }
.an-points { margin: 0; padding: 0; list-style: none; counter-reset: pt; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.an-points li { counter-increment: pt; border: 2px solid var(--ink); padding: 10px 12px; position: relative; }
.an-points li::before { content: counter(pt, decimal-leading-zero); font-size: 11px; color: var(--ink-3); display: block; margin-bottom: 4px; }
.an-points b { display: block; font-size: 14px; margin-bottom: 4px; }
.an-points p { margin: 0; font-size: 13px; }
.an-points li.has-note > .row-tip { width: 340px; white-space: normal; top: calc(100% + 4px); left: 0; }
.an-points li.has-note:hover { background: var(--accent); }
/* one row of four equal-height boxes: the headline r (wider), then three supporting figures */
.an-fit-row { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: 12px; }
.an-fit-cells { display: contents; }
.an-fit-big, .an-fit-cells li { border: 2px solid var(--ink); padding: 14px 16px; position: relative; min-width: 0;
  display: flex; flex-direction: column; justify-content: space-between; gap: 12px; }
.an-fit-r { font-family: var(--display); font-weight: 700; font-size: 64px; line-height: 1; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.an-fit-v { font-family: var(--display); font-weight: 700; font-size: 32px; line-height: 1; letter-spacing: -.02em; font-variant-numeric: tabular-nums; padding-top: 16px; }
.an-fit-label { font-size: 12px; line-height: 1.35; text-transform: uppercase; color: var(--ink-2); }
.an-fit-big:hover, .an-fit-cells li:hover { background: var(--accent); }
.an-fit .has-note > .row-tip { width: 340px; white-space: normal; top: calc(100% + 4px); left: 0; text-transform: none; }
.an-fit-cells li:last-child > .row-tip { left: auto; right: 0; }
.an-fit-verdict { margin: 14px 0 0; font-size: 13px; max-width: 72ch; }
.an-lead { margin: 0 0 14px; font-size: 13px; max-width: 80ch; }
.an-grid { display: grid; grid-template-columns: 3fr 2fr; gap: 20px; }
.an-grid.an-grid-even { grid-template-columns: 1fr 1fr; }
.an-sub { font-size: 13px; margin: -4px 0 10px; }
.an-years { border: 2px solid var(--ink); }
.an-sources { font-size: 11px; margin: 12px 0 0; line-height: 1.6; }
.an-sources a { color: inherit; }
.an-chart .bar.alt { fill: var(--lavender); }
.an-chart .col:hover .bar.alt { fill: var(--accent); }
.an-grid .an-block { margin-top: 20px; }
.an-chart svg { width: 100%; height: auto; display: block; overflow: visible; }
.an-chart .bar { fill: var(--ink); }
.an-chart .bar.base { fill: #A9A69F; }
.an-chart .col:hover .bar { fill: var(--accent); }
.an-chart .listen { fill: none; stroke: var(--claret); stroke-width: 3; stroke-linejoin: round; pointer-events: none; }
.an-chart .val { font-size: 11px; fill: var(--ink); font-weight: 700; }
.an-kind { display: grid; grid-template-columns: 110px 1fr; align-items: center; gap: 10px; margin-bottom: 14px; font-size: 13px; }
.an-kind .kbar { height: 28px; background: var(--ink); position: relative; }
.an-kind .kbar.re { background: var(--lavender); }
.an-kind .kbar span { position: absolute; left: calc(100% + 8px); top: 5px; white-space: nowrap; font-weight: 700; }
.an-kind-foot { font-size: 12px; margin-top: 4px; }
.an-table th.sortable { cursor: pointer; }
.an-table th.sortable:hover { background: var(--accent); }
.an-table th.is-sorted::after { content: " ▾"; }
.an-table td.kind { font-size: 12px; text-transform: uppercase; }
.an-table td .has-note > .row-tip { width: 300px; white-space: normal; }
@media (max-width: 760px) {
  .an-points, .an-grid, .an-grid.an-grid-even { grid-template-columns: 1fr; }
  .an-fit-row { grid-template-columns: 1fr; }
  .an-fit-r { font-size: 56px; }
  .an-legend { margin-left: 0; }
  .an-table .opt { display: none; }
}

/* EN / FR switch, top right inside the black wordmark bar */
.top .wordmark { position: relative; }
.lang { position: absolute; top: 10px; right: 10px; display: flex; letter-spacing: 0; line-height: 1; }
.lang button {
  font-family: var(--pixel); font-size: 11px; font-weight: 500; padding: 4px 6px;
  background: none; color: var(--cream); border: 1px solid var(--cream); cursor: pointer;
}
.lang button + button { border-left: 0; }
.lang button.is-active { background: var(--cream); color: var(--ink); }
.lang button:not(.is-active):hover { background: var(--accent); color: var(--ink); }
