/* Gaming Financials. One sans throughout; the data is the only loud thing.
   Brand: the kit's navy (#07182c) carries the header and tints the greys; the logo's
   green, red and blue stay in the logo. Chart colours are the validated categorical
   palette (light and dark steps, dark checked against the navy surface); series keep
   their slot (c1–c8) on every chart. */

:root {
  color-scheme: light;
  --brand-navy: #07182c;
  --page: #f4f6f9;
  --surface: #ffffff;
  --surface-2: #edf0f5;
  --ink: #0f1b2a;
  --ink-2: #566175;
  --ink-3: #848fa0;
  --line: #e0e5ec;
  --grid: #e6e9ef;
  --axis: #c2c9d3;
  --ring: rgba(7, 24, 44, 0.1);
  --accent: #1b64be;
  --good: #006c10;
  --bad: #c62f30;
  --c1: #257de0;
  --c2: #f47230;
  --c3: #00b894;
  --c4: #f2a600;
  --c5: #ee7fac;
  --c6: #008a17;
  --c7: #6a4ce2;
  --c8: #ec4647;
  --n0: #eceff3;
  --n1: #78818f;
  --n2: #a1a9b5;
  --n3: #c5cbd4;
  --on-light-neutral: #0b0b0b;
  --hover: rgba(7, 24, 44, 0.05);
  --shadow: 0 6px 24px rgba(0, 0, 0, 0.12), 0 1px 3px rgba(0, 0, 0, 0.08);
  --radius: 12px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root:where(:not([data-theme="light"])) {
    color-scheme: dark;
    --page: #08121f;
    --surface: #111d2e;
    --surface-2: #182638;
    --ink: #edf1f6;
    --ink-2: #a6b0bf;
    --ink-3: #7b8697;
    --line: #23324a;
    --grid: #26354c;
    --axis: #3e4d64;
    --ring: rgba(255, 255, 255, 0.1);
    --accent: #6aabf1;
    --good: #53c556;
    --bad: #f07778;
    --c1: #338ced;
    --c2: #e76624;
    --c3: #00a888;
    --c4: #d28e05;
    --c5: #e24d8b;
    --c6: #0aac23;
    --c7: #9887ef;
    --c8: #eb6263;
    --n0: #1d2a3c;
    --n1: #56657a;
    --n2: #44536a;
    --n3: #34435a;
    --on-light-neutral: #efefef;
    --hover: rgba(255, 255, 255, 0.06);
    --shadow: 0 6px 24px rgba(0, 0, 0, 0.5), 0 1px 3px rgba(0, 0, 0, 0.4);
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --page: #08121f;
  --surface: #111d2e;
  --surface-2: #182638;
  --ink: #edf1f6;
  --ink-2: #a6b0bf;
  --ink-3: #7b8697;
  --line: #23324a;
  --grid: #26354c;
  --axis: #3e4d64;
  --ring: rgba(255, 255, 255, 0.1);
  --accent: #6aabf1;
  --good: #53c556;
  --bad: #f07778;
  --c1: #338ced;
  --c2: #e76624;
  --c3: #00a888;
  --c4: #d28e05;
  --c5: #e24d8b;
  --c6: #0aac23;
  --c7: #9887ef;
  --c8: #eb6263;
  --n0: #1d2a3c;
  --n1: #56657a;
  --n2: #44536a;
  --n3: #34435a;
  --on-light-neutral: #efefef;
  --hover: rgba(255, 255, 255, 0.06);
  --shadow: 0 6px 24px rgba(0, 0, 0, 0.5), 0 1px 3px rgba(0, 0, 0, 0.4);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: 76px;
}
body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font: 16px/1.55 var(--font);
}
a {
  color: var(--accent);
  text-underline-offset: 2px;
}
h1,
h2,
h3 {
  line-height: 1.2;
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
}
h1 {
  font-size: clamp(1.9rem, 4vw, 2.6rem);
}
h2 {
  font-size: 1.45rem;
  margin-top: 0;
}
h3 {
  font-size: 1.02rem;
}
p {
  margin: 0 0 1em;
}
.wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}
.skip {
  position: absolute;
  left: -999px;
}
.skip:focus {
  left: 12px;
  top: 12px;
  z-index: 10;
  background: var(--surface);
  padding: 8px 12px;
  border-radius: 8px;
}
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* ---- Header and footer ---- */
/* The header is the brand's navy in both themes, with the kit's dark-background logo. */
.site-header {
  background: var(--brand-navy);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.header-row {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 64px;
}
.brand {
  display: flex;
  align-items: center;
  flex: none;
}
.brand img {
  display: block;
  height: 36px;
  width: auto;
}
.site-header :focus-visible {
  outline-color: #6aabf1;
}
.site-nav {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: none;
  flex: 1;
}
.site-nav a {
  color: rgba(255, 255, 255, 0.72);
  text-decoration: none;
  padding: 6px 8px;
  border-radius: 8px;
  white-space: nowrap;
  font-size: 0.95rem;
}
.site-nav a:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}
.site-nav a[aria-current] {
  color: #ffffff;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.12);
}
.theme-toggle {
  border: 0;
  background: none;
  color: rgba(255, 255, 255, 0.8);
  width: 36px;
  height: 36px;
  border-radius: 8px;
  cursor: pointer;
  flex: none;
}
.theme-toggle:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}
.theme-toggle svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
}
.i-moon {
  display: none;
}
:root[data-theme="dark"] .i-sun {
  display: none;
}
:root[data-theme="dark"] .i-moon {
  display: inline;
}
@media (prefers-color-scheme: dark) {
  :root:where(:not([data-theme="light"])) .i-sun {
    display: none;
  }
  :root:where(:not([data-theme="light"])) .i-moon {
    display: inline;
  }
}
/* The footer is navy like the header: brand block, link columns, a bottom line. */
.site-footer {
  margin-top: 72px;
  background: var(--brand-navy);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: minmax(220px, 1.6fr) repeat(4, minmax(0, 1fr));
  gap: 28px;
}
/* More specific than .wrap, whose phone padding would otherwise zero these. */
.site-footer .footer-grid {
  padding-top: 44px;
  padding-bottom: 36px;
}
.site-footer .footer-bottom {
  padding-top: 18px;
  padding-bottom: 28px;
}
.footer-logo img {
  display: block;
  height: 34px;
  width: auto;
}
.footer-brand p {
  margin: 14px 0 0;
  max-width: 300px;
}
.footer-note {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.82rem;
}
.site-footer nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.site-footer h2 {
  color: #ffffff;
  font-size: 0.8rem;
  font-weight: 650;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin: 4px 0 6px;
}
.site-footer nav a {
  color: rgba(255, 255, 255, 0.72);
  text-decoration: none;
}
.site-footer nav a:hover {
  color: #ffffff;
  text-decoration: underline;
}
.site-footer :focus-visible {
  outline-color: #6aabf1;
}
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.8rem;
}
.footer-bottom p {
  margin: 0;
}
@media (max-width: 860px) {
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .footer-brand {
    grid-column: 1 / -1;
  }
}

/* ---- Brand page ---- */
:root .only-dark {
  display: none;
}
:root[data-theme="dark"] .only-light {
  display: none;
}
:root[data-theme="dark"] .only-dark {
  display: block;
}
@media (prefers-color-scheme: dark) {
  :root:where(:not([data-theme="light"])) .only-light {
    display: none;
  }
  :root:where(:not([data-theme="light"])) .only-dark {
    display: block;
  }
}
.brand-hero {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 36px;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 32px;
  margin: 28px 0 8px;
}
.brand-hero h2 {
  margin-top: 0;
}
.brand-hero p {
  max-width: 640px;
}
.brand-hero-mark img {
  display: block;
  width: 100%;
  height: auto;
}
.muted {
  color: var(--ink-2);
}
.brand-page h2 small {
  color: var(--ink-3);
  font-size: 0.8rem;
  font-weight: 500;
  margin-left: 8px;
}
.assets {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 14px;
}
.assets-icons {
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
}
.asset {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
}
.asset-img {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 170px;
  padding: 24px;
}
.asset-light .asset-img {
  background: #ffffff;
}
.asset-dark .asset-img {
  background: var(--brand-navy);
}
.asset-img img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
}
.asset-preview {
  max-width: 600px;
}
.asset-preview .asset-img {
  height: auto;
  padding: 0;
}
.asset-preview .asset-img img {
  width: 100%;
}
.asset figcaption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 14px;
  border-top: 1px solid var(--line);
  font-size: 0.88rem;
}
.asset figcaption span {
  display: flex;
  gap: 6px;
}
.chip-link {
  font-size: 0.78rem;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--ink);
  text-decoration: none;
}
.chip-link:hover {
  background: var(--line);
}
.swatches {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 12px;
}
.swatch {
  display: grid;
  grid-template-columns: 1fr;
  text-align: left;
  font: inherit;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0 0 12px;
  overflow: hidden;
  cursor: pointer;
}
.swatch-chip {
  display: block;
  height: 72px;
  background: var(--c);
  border-bottom: 1px solid var(--line);
  margin-bottom: 10px;
}
.swatch b,
.swatch code,
.swatch small {
  padding: 0 14px;
}
.swatch code {
  color: var(--ink-2);
  font-size: 0.85rem;
}
.swatch small {
  color: var(--ink-3);
  font-size: 0.78rem;
  margin-top: 2px;
}
.swatch:hover {
  border-color: var(--axis);
}
.swatch.is-copied code::after {
  content: "  Copied";
  color: var(--good);
  font-family: var(--font);
  font-weight: 600;
}
.sw-navy { --c: #07182c; }
.sw-green { --c: #16b82e; }
.sw-red { --c: #ff2835; }
.sw-blue { --c: #0875ed; }
.sw-white { --c: #ffffff; }
.sw-white .swatch-chip {
  box-shadow: inset 0 0 0 1px var(--line);
}
.copy-field {
  position: fixed;
  left: -9999px;
  opacity: 0;
}
.copy-status {
  min-height: 1.4em;
  color: var(--ink-3);
  font-size: 0.85rem;
  margin: 8px 0 0;
}
@media (max-width: 640px) {
  .brand-hero {
    grid-template-columns: 1fr;
    padding: 22px;
  }
  .brand-hero-mark {
    max-width: 160px;
  }
}

/* ---- Home ---- */
.hero {
  padding: 48px 0 28px;
  max-width: 820px;
}
.lede {
  font-size: 1.12rem;
  color: var(--ink-2);
  max-width: 760px;
}
.home section {
  margin-bottom: 40px;
}
.section-intro {
  color: var(--ink-2);
  max-width: 820px;
}
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 14px;
}
.company-card {
  display: block;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 18px 14px;
  color: var(--ink);
  text-decoration: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.company-card:hover {
  border-color: var(--axis);
  box-shadow: var(--shadow);
}
.company-card h3 {
  font-size: 1.2rem;
  margin-bottom: 4px;
}
.card-blurb {
  color: var(--ink-2);
  font-size: 0.9rem;
  min-height: 2.8em;
  margin-bottom: 10px;
}
.card-label {
  color: var(--ink-2);
  font-size: 0.82rem;
  margin: 0;
}
.card-label span {
  color: var(--ink-3);
}
.card-value {
  font-size: 1.5rem;
  font-weight: 650;
  margin: 2px 0 8px;
}
.card-value .delta {
  font-size: 0.85rem;
  font-weight: 600;
  margin-left: 6px;
}
.card-empty {
  color: var(--ink-3);
  font-size: 0.9rem;
}
.spark {
  display: block;
}
.spark-past {
  fill: var(--n3);
}
.spark-now {
  fill: var(--c1);
}
.delta.good {
  color: var(--good);
}
.delta.bad {
  color: var(--bad);
}
.delta.flat {
  color: var(--ink-2);
}
.how-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin-bottom: 24px;
}
.how-grid h3 {
  margin-bottom: 6px;
}
.how-grid p {
  color: var(--ink-2);
  font-size: 0.95rem;
}

/* ---- Company page ---- */
.company-head {
  padding-top: 36px;
}
.eyebrow {
  color: var(--ink-2);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  margin-bottom: 6px;
}
.status-note {
  background: var(--surface-2);
  border-radius: 10px;
  padding: 10px 14px;
  max-width: 820px;
}
.facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 10px 24px;
  margin: 18px 0 24px;
  font-size: 0.9rem;
}
.facts dt {
  color: var(--ink-3);
  font-size: 0.78rem;
  font-weight: 600;
}
.facts dd {
  margin: 0;
}
.tiles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 12px;
}
.tile {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 16px;
}
.tile p {
  margin: 0;
}
.tile-label {
  color: var(--ink-2);
  font-size: 0.85rem;
}
.tile-value {
  font-size: 1.6rem;
  font-weight: 650;
  margin: 2px 0 !important;
}
.tile .delta {
  font-size: 0.85rem;
  font-weight: 600;
}
.vs {
  color: var(--ink-3);
  font-weight: 400;
}
.tile-period {
  color: var(--ink-3);
  font-size: 0.76rem;
  margin-top: 4px !important;
}
.series-about {
  color: var(--ink-2);
  font-size: 0.82rem;
  margin: 6px 0 10px;
  padding-left: 18px;
}
.series-about li {
  margin-bottom: 4px;
}
.series-about .official {
  color: var(--ink-3);
}
.tiles-note {
  color: var(--ink-3);
  font-size: 0.8rem;
  margin: 8px 0 0;
}
abbr[title] {
  text-decoration: none;
  cursor: help;
}

.sticky-bar {
  position: sticky;
  top: 0;
  z-index: 5;
  background: color-mix(in srgb, var(--page) 92%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
  margin-top: 28px;
}
.sticky-bar .sticky-row {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 54px;
  flex-wrap: wrap;
  padding-top: 6px;
  padding-bottom: 6px;
}
.section-nav {
  display: flex;
  gap: 2px;
  overflow-x: auto;
  scrollbar-width: none;
  flex: 1 1 300px;
}
.section-nav a {
  color: var(--ink-2);
  text-decoration: none;
  font-size: 0.88rem;
  padding: 5px 9px;
  border-radius: 7px;
  white-space: nowrap;
}
.section-nav a:hover {
  background: var(--hover);
}
.section-nav a[aria-current] {
  color: var(--ink);
  background: var(--surface-2);
  font-weight: 600;
}
.toolbar {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.seg {
  display: inline-flex;
  background: var(--surface-2);
  border-radius: 9px;
  padding: 2px;
}
.seg button {
  border: 0;
  background: none;
  font: inherit;
  font-size: 0.84rem;
  color: var(--ink-2);
  padding: 4px 10px;
  border-radius: 7px;
  cursor: pointer;
  white-space: nowrap;
}
.seg button.sym {
  min-width: 36px;
}
.seg button:hover {
  color: var(--ink);
}
.seg button[aria-pressed="true"] {
  background: var(--surface);
  color: var(--ink);
  font-weight: 600;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.12);
}

.data-section {
  padding-top: 40px;
}
.chart-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
@media (max-width: 900px) {
  .chart-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ---- Charts ---- */
.chart {
  position: relative;
  margin: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 16px 10px;
  min-width: 0;
}
.chart.wide {
  grid-column: 1 / -1;
}
/* "Other charts": a folded card at the end of a section; its charts sit inside without a card of their own. */
.more-charts {
  grid-column: 1 / -1;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.more-charts > summary {
  cursor: pointer;
  padding: 12px 16px;
  font-weight: 600;
}
.more-charts > summary span {
  color: var(--ink-3);
  font-weight: 400;
  font-size: 0.85rem;
  margin-left: 6px;
}
/* A table card that starts folded: title and a count in the summary. */
.chart.collapsible summary {
  cursor: pointer;
}
.chart.collapsible summary h3 {
  display: inline;
}
.collapsible-hint {
  color: var(--ink-3);
  font-size: 0.85rem;
  margin-left: 8px;
}
.chart.collapsible details[open] > summary {
  margin-bottom: 6px;
}
.more-charts-body > .chart {
  border: 0;
  border-top: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
}
.chart-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px 12px;
  flex-wrap: wrap;
}
.chart-head h3 {
  margin: 0;
}
.chart-tools {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
/* Full width / half width. Not shown where the grid has one column anyway, nor in "Other charts". */
.chart-size {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 0;
  border-radius: 7px;
  background: none;
  color: var(--ink-2);
  cursor: pointer;
}
.chart-size:hover {
  background: var(--surface-2);
  color: var(--ink);
}
.chart-size svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.chart-size .i-shrink,
.chart.wide .chart-size .i-grow {
  display: none;
}
.chart.wide .chart-size .i-shrink {
  display: inline;
}
.more-charts-body .chart-size {
  display: none;
}
@media (max-width: 900px) {
  .chart-size {
    display: none;
  }
}
.chart-desc {
  color: var(--ink-2);
  font-size: 0.88rem;
  margin: 6px 0 0;
  max-width: 760px;
}
.chart-unit {
  color: var(--ink-3);
  font-size: 0.8rem;
  margin: 4px 0 0;
  min-height: 1.2em;
}
.chart-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 14px;
  margin: 10px 0 4px;
  font-size: 0.82rem;
  color: var(--ink-2);
}
.legend-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.key {
  display: inline-block;
  flex: none;
}
.key-box {
  width: 10px;
  height: 10px;
  border-radius: 3px;
  background: currentColor;
}
.key-line {
  width: 14px;
  height: 2px;
  border-radius: 1px;
  background: currentColor;
}
.tip-row .key {
  width: 12px;
  height: 2px;
  border-radius: 1px;
  background: currentColor;
}
.c1 { color: var(--c1); }
.c2 { color: var(--c2); }
.c3 { color: var(--c3); }
.c4 { color: var(--c4); }
.c5 { color: var(--c5); }
.c6 { color: var(--c6); }
.c7 { color: var(--c7); }
.c8 { color: var(--c8); }
.n0 { color: var(--n0); }
.n1 { color: var(--n1); }
.n2 { color: var(--n2); }
.n3 { color: var(--n3); }
.chart-plot {
  width: 100%;
  min-height: 230px;
}
.chart-svg {
  display: block;
  overflow: visible;
  font-family: var(--font);
}
.gridline {
  stroke: var(--grid);
  stroke-width: 1;
  shape-rendering: crispEdges;
}
.baseline {
  stroke: var(--axis);
  stroke-width: 1;
  shape-rendering: crispEdges;
}
.tick {
  fill: var(--ink-2);
  font-size: 11px;
  font-variant-numeric: tabular-nums;
}
.mark {
  fill: currentColor;
}
.line {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linejoin: round;
  stroke-linecap: round;
}
.dot {
  fill: currentColor;
  stroke: var(--surface);
  stroke-width: 2;
}
.hover-band {
  fill: var(--hover);
}
.crosshair {
  stroke: var(--axis);
  stroke-width: 1;
  shape-rendering: crispEdges;
}
.hit {
  fill: transparent;
  cursor: crosshair;
  outline: none;
}
.hit:focus-visible {
  stroke: var(--accent);
  stroke-width: 2;
}
.value-label {
  fill: var(--ink);
  font-size: 11.5px;
  font-weight: 600;
}
.rank-name {
  fill: var(--ink);
  font-size: 12.5px;
}
.rank-platform {
  fill: var(--ink-3);
  font-size: 11px;
}
.rank-hit {
  fill: transparent;
}
.rank-row {
  outline: none;
}
.rank-row.on .rank-hit,
.rank-row:focus-visible .rank-hit {
  fill: var(--hover);
}
tr.group-start th,
tr.group-start td {
  border-top: 2px solid var(--line);
}
td.left,
th.left {
  text-align: left;
}
.chart-empty {
  color: var(--ink-3);
  padding: 40px 0;
  text-align: center;
}
.chart-tip {
  position: absolute;
  z-index: 4;
  min-width: 180px;
  max-width: 300px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: var(--shadow);
  padding: 10px 12px;
  font-size: 0.82rem;
  pointer-events: none;
}
.tip-head {
  display: flex;
  flex-direction: column;
  margin-bottom: 6px;
}
.tip-head span {
  color: var(--ink-3);
  font-size: 0.78rem;
}
.tip-row {
  display: grid;
  grid-template-columns: 14px auto 1fr;
  align-items: center;
  gap: 2px 8px;
  line-height: 1.35;
  padding: 2px 0;
}
.tip-row b {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.tip-row span {
  color: var(--ink-2);
}
.tip-row small {
  grid-column: 2 / -1;
  color: var(--ink-3);
}
.key-blank {
  visibility: hidden;
}
.tip-total {
  border-top: 1px solid var(--line);
  margin-top: 4px;
  padding-top: 5px;
}
.tip-note {
  color: var(--ink-3);
  margin: 6px 0 0;
  font-size: 0.76rem;
}
.chart-notes {
  color: var(--ink-3);
  font-size: 0.8rem;
  margin: 8px 0 0;
  padding-left: 18px;
}
.chart-table {
  margin-top: 8px;
  border-top: 1px solid var(--line);
  padding-top: 6px;
  font-size: 0.85rem;
}
.chart-table summary {
  cursor: pointer;
  color: var(--ink-2);
  padding: 4px 0;
}
.chart-year-label {
  font-size: 0.84rem;
  color: var(--ink-2);
}
.chart-year {
  font: inherit;
  margin-left: 6px;
  padding: 3px 6px;
  border-radius: 7px;
  border: 1px solid var(--line);
  background: var(--surface-2);
  color: var(--ink);
}

/* Sunburst: the rings beside a breakdown list that doubles as the legend. */
.has-sunburst .chart-plot {
  float: none;
}
.has-sunburst {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  grid-template-areas: "cap cap" "plot legend" "notes notes" "table table";
  column-gap: 28px;
}
.has-sunburst figcaption {
  grid-area: cap;
}
.has-sunburst .chart-plot {
  grid-area: plot;
  display: flex;
  justify-content: center;
  align-items: center;
}
.has-sunburst .chart-legend {
  grid-area: legend;
  align-self: center;
}
.has-sunburst .chart-notes {
  grid-area: notes;
}
.has-sunburst .chart-table {
  grid-area: table;
}
@media (max-width: 760px) {
  .has-sunburst {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "cap" "plot" "legend" "notes" "table";
  }
}
.arc {
  fill: currentColor;
  stroke: var(--surface);
  stroke-width: 2;
  transition: opacity 0.12s;
}
.focus .arc:not(.on) {
  opacity: 0.35;
}
.arc-label {
  font-size: 11px;
  font-weight: 600;
  fill: #ffffff;
  pointer-events: none;
}
.arc-label.on-c4 {
  fill: #0b0b0b;
}
.arc-label.on-n0,
.arc-label.on-n3 {
  fill: var(--on-light-neutral);
}
.center-value {
  fill: var(--ink);
  font-size: 17px;
  font-weight: 700;
}
.center-label {
  fill: var(--ink-2);
  font-size: 11px;
}
.chart-svg circle.arc.n0 {
  stroke-width: 0;
}
.breakdown {
  list-style: none;
  margin: 0;
  padding: 0;
  width: 100%;
  font-size: 0.86rem;
}
.breakdown li {
  display: grid;
  grid-template-columns: 12px minmax(0, 1fr) auto 48px;
  align-items: center;
  gap: 8px;
  padding: 5px 6px;
  border-radius: 7px;
  cursor: default;
}
.breakdown li.on,
.breakdown li:hover {
  background: var(--hover);
}
.breakdown .name {
  color: var(--ink-2);
}
.breakdown b {
  font-variant-numeric: tabular-nums;
  text-align: right;
  white-space: nowrap;
}
.breakdown small {
  color: var(--ink-3);
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.breakdown .level-0 .name {
  color: var(--ink);
  font-weight: 600;
}
.breakdown .level-2 .name { padding-left: 12px; }
.breakdown .level-3 .name { padding-left: 24px; }
.breakdown .level-4 .name { padding-left: 36px; }
.breakdown .derived .name::after {
  content: " ≈";
  color: var(--ink-3);
}
.breakdown .level-0 .key {
  outline: 1px solid var(--axis);
}

/* ---- Tables ---- */
.table-wrap {
  overflow-x: auto;
  margin: 6px 0 12px;
  max-height: 480px;
  overflow-y: auto;
}
table {
  border-collapse: collapse;
  font-size: 0.84rem;
  width: max-content;
  min-width: 100%;
}
caption {
  text-align: left;
  color: var(--ink-3);
  font-size: 0.8rem;
  padding: 4px 0;
}
th,
td {
  padding: 5px 10px;
  border-bottom: 1px solid var(--line);
  text-align: right;
  vertical-align: top;
  font-variant-numeric: tabular-nums;
}
thead th {
  position: sticky;
  top: 0;
  background: var(--surface);
  color: var(--ink-2);
  font-weight: 600;
  z-index: 1;
}
th[scope="row"],
thead th:first-child {
  text-align: left;
  font-weight: 500;
  position: sticky;
  left: 0;
  background: var(--surface);
}
th small,
td small {
  display: block;
  color: var(--ink-3);
  font-weight: 400;
  font-size: 0.76rem;
}
td.src {
  text-align: left;
  white-space: nowrap;
  font-size: 0.78rem;
}
td.src a {
  margin-right: 6px;
}
.indent-1 { padding-left: 22px; }
.indent-2 { padding-left: 34px; }
.indent-3 { padding-left: 46px; }
.indent-4 { padding-left: 58px; }

/* ---- Terms, sources, gaps ---- */
.terms {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 14px;
  margin: 0;
}
.term {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 16px;
}
.term dt {
  font-weight: 650;
  margin-bottom: 6px;
}
.term dd {
  margin: 0;
  font-size: 0.92rem;
}
.term-source > summary {
  cursor: pointer;
  color: var(--ink-2);
  font-size: 0.84rem;
  margin-top: 8px;
}
.term blockquote {
  margin: 6px 0 0;
  padding: 8px 12px;
  border-left: 3px solid var(--line);
  color: var(--ink-2);
  font-size: 0.86rem;
}
.term blockquote p {
  margin: 0 0 4px;
}
.term blockquote footer {
  font-size: 0.78rem;
}
.sources-box > summary {
  cursor: pointer;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 16px;
  font-weight: 600;
}
.sources-box[open] > summary {
  margin-bottom: 10px;
}
.source-year {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  margin-bottom: 8px;
}
.source-year summary {
  cursor: pointer;
  padding: 10px 14px;
  font-weight: 600;
}
.source-year summary span {
  color: var(--ink-3);
  font-weight: 400;
  font-size: 0.85rem;
  margin-left: 6px;
}
.source-year ul {
  margin: 0;
  padding: 0 14px 12px 14px;
  list-style: none;
  font-size: 0.88rem;
}
.source-year li {
  padding: 4px 0;
  border-top: 1px solid var(--line);
}
.src-period {
  display: inline-block;
  min-width: 92px;
  color: var(--ink-2);
}
.src-date {
  color: var(--ink-3);
  font-size: 0.8rem;
  margin-left: 6px;
}
.gaps-list summary {
  cursor: pointer;
  color: var(--ink-2);
  padding: 4px 0;
}
.gaps {
  color: var(--ink-2);
  max-width: 900px;
  font-size: 0.92rem;
}

/* ---- Prose pages ---- */
.prose-page {
  padding-top: 40px;
}
.prose-page > p,
.prose-page > ul {
  max-width: 760px;
}
.prose-page h2 {
  margin-top: 32px;
}
.cross-table td,
.cross-table th {
  text-align: left;
  min-width: 140px;
  max-width: 220px;
  white-space: normal;
}
.cross-table th[scope="row"] {
  min-width: 200px;
  font-weight: 600;
}
.cross-table .none {
  color: var(--ink-3);
}
.cross.table-wrap {
  max-height: none;
}
.term-index {
  columns: 3 220px;
  padding-left: 18px;
  font-size: 0.92rem;
}
.history-list {
  margin-top: 24px;
}
.fy-table td,
.fy-table th {
  text-align: left;
  white-space: normal;
}

/* Below this width the menu doesn't fit beside the logo: it gets a row of its own. */
@media (max-width: 1120px) {
  .site-header .header-row {
    flex-wrap: wrap;
    gap: 0 12px;
    padding-top: 12px;
  }
  .brand {
    flex: 1;
  }
  .brand img {
    height: 32px;
  }
  .site-nav {
    order: 3;
    flex-basis: 100%;
    margin: 4px -6px 6px;
  }
}
@media (max-width: 600px) {
  .wrap {
    padding: 0 14px;
  }
  .chart {
    padding: 12px 10px 8px;
  }
  .sticky-bar .sticky-row {
    gap: 8px;
  }
  .site-nav a {
    padding: 6px 7px;
  }
}

@media print {
  .sticky-bar,
  .theme-toggle,
  .chart-size,
  .chart-views {
    display: none;
  }
}
