/* Prop 65 Trends Brief — values extracted from the locked design handoff. */
:root {
  --tb-page-background: oklch(98.4% 0.006 95);
  --tb-ink: oklch(18% 0.009 82);
  --tb-ink-strong: oklch(24% 0.02 82);
  --tb-muted: oklch(58% 0.012 82);
  --tb-ink-soft: oklch(42% 0.012 82);
  --tb-muted-light: oklch(64% 0.012 82);
  --tb-muted-lighter: oklch(62% 0.014 82);
  --tb-rule-strong: oklch(78% 0.028 264);
  --tb-rule: oklch(89% 0.011 88);
  --tb-rule-light: oklch(88% 0.012 88);
  --tb-navy: oklch(28% 0.07 264);
  --tb-navy-mid: oklch(44% 0.092 258);
  --tb-navy-muted: oklch(42% 0.035 264);
  --tb-amber: oklch(72% 0.15 72);
  --tb-amber-deep: oklch(55% 0.13 66);
  --tb-delta-positive: oklch(48% 0.14 150);
  --tb-delta-negative: oklch(52% 0.19 27);
  --tb-delta-neutral: oklch(58% 0.012 82);
  --tb-green: var(--tb-delta-positive);
  --tb-red: var(--tb-delta-negative);
  --tb-tooltip-bg: oklch(26% 0.02 82);
  --tb-tooltip-fg: oklch(97% 0.006 95);
  --tb-chip-hover: oklch(94.6% 0.012 88);
  --tb-track: oklch(94.8% 0.008 88);

  /* Shared product-surface content column. Same value as --page-max in
     website/reports/assets/threat-report.css, which caps the plaintiff-firm,
     network-map, settlement-benchmarks and notice-summary shells. This route
     does not load that stylesheet, so the token is restated here rather than
     inherited; keep the two in step. */
  --page-max: 1040px;

  --tb-font: 'Schibsted Grotesk', system-ui, sans-serif;
  --tb-h1: clamp(26px, 3.4vw, 32px);
  --tb-deck: 16px;
  --tb-sec-num: 15px;
  --tb-sec-title: 14px;
  --tb-sec-note: 11.5px;
  --tb-kpi: 28px;
  --tb-th: 10.5px;
  --tb-td: 13px;
  --tb-cell: 12px;
  --tb-ctl-label: 11.5px;
  --tb-ctl-value: 12.5px;
  --tb-chart-label: 13px;
  --tb-chart-label-secondary: 12px;
  --tb-chart-axis-svg: 20px;
  --tb-trajectory-axis-svg: 22px;
  --tb-matrix-axis-label: 12px;

  --tb-sec-pad: 34px clamp(20px, 4vw, 64px);
  --tb-masthead-pad: 44px clamp(20px, 4vw, 64px) 30px;
  --tb-col-gap: 20px 40px;
  --tb-r-tab: 4px;
  --tb-r-chip: 6px;
  --tb-r-tooltip: 5px;
  --tb-r-bar: 999px;
  --tb-shadow-tab: 0 1px 1.5px oklch(20% 0.01 82 / .14);
  --tb-shadow-panel: 0 0 0 1px oklch(78% 0.028 264);
}

/* Enforcement flow amendment, scoped to section 4's body. */
.tb-enforcement-flow-section .flow-cohort-note,
.tb-enforcement-flow-section .flow-stage2-note,
.tb-enforcement-flow-section .flow-source-line {
  color: var(--tb-muted);
  line-height: 1.4;
  font-size: 11px;
}

.tb-enforcement-flow-section .flow-chart-card {
  background: #ffffff;
  border: 1px solid #e6e4de;
  border-radius: 16px;
  padding: 16px 14px;
}

.tb-enforcement-flow-section .flow-picker {
  display: inline-flex;
  gap: 2px;
  margin: 0 0 14px;
  padding: 3px;
  background: #fafaf7;
  border: 1px solid #e6e4de;
  border-radius: 999px;
}

.tb-enforcement-flow-section .flow-picker button {
  appearance: none;
  padding: 7px 13px;
  color: #555555;
  background: transparent;
  border: 0;
  border-radius: 999px;
  font: 650 12.5px/1.2 "Schibsted Grotesk", system-ui, sans-serif;
  cursor: pointer;
}

.tb-enforcement-flow-section .flow-picker button.is-active {
  color: #fafaf7;
  background: #111111;
}

.tb-enforcement-flow-section .flow-picker button:focus-visible {
  outline: 2px solid #e89b2e;
  outline-offset: 2px;
}

.tb-enforcement-flow-section .flow-chart-wrap {
  overflow-x: auto;
}

.tb-enforcement-flow-section .flow-chart-wrap svg {
  display: block;
  width: 100%;
  min-width: 620px;
  height: auto;
}

.tb-enforcement-flow-section .is-hidden {
  display: none;
}

/* The element-qualified `display: block` above (0,2,1) outranks the plain
   `.is-hidden` class (0,2,0), so both charts painted and the picker read as
   dead. Hiding an SVG by class needs the same element qualifier. */
.tb-enforcement-flow-section .flow-chart-wrap svg.is-hidden {
  display: none;
}

.tb-enforcement-flow-section .flow-col-header {
  fill: #4a5a82;
  font: 700 var(--tb-chart-label-secondary) "Schibsted Grotesk", monospace;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.tb-enforcement-flow-section .flow-node-name {
  font: 650 var(--tb-chart-label) "Schibsted Grotesk", system-ui, sans-serif;
}

.tb-enforcement-flow-section .flow-node-value {
  font: 400 var(--tb-chart-label-secondary) "Schibsted Grotesk", system-ui, sans-serif;
}

.tb-enforcement-flow-section .flow-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin: 10px 2px 0;
  color: #555555;
  font-size: 13px;
}

.tb-enforcement-flow-section .flow-legend span {
  display: inline-flex;
  gap: 7px;
  align-items: center;
}

/* Same specificity trap as the chart SVG: this element-qualified rule (0,2,1)
   outranks a plain .is-hidden (0,2,0), so the "outcome still to come" swatch
   stayed on screen in the resolved-only state, which has no such outcomes. */
.tb-enforcement-flow-section .flow-legend span.is-hidden {
  display: none;
}

.tb-enforcement-flow-section .flow-legend-swatch {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 2px;
}

.tb-enforcement-flow-section .flow-legend-swatch.is-amber {
  background: #e89b2e;
  border: 1px solid #c67b16;
}

.tb-enforcement-flow-section .flow-legend-swatch.is-unresolved {
  background: #3f72c2;
  border: 1px solid #24518f;
}

.tb-enforcement-flow-section .flow-legend-swatch.is-neutral {
  background: #bdbab0;
  border: 1px solid #9c998f;
}

.tb-enforcement-flow-section .flow-stage2-note,
.tb-enforcement-flow-section .flow-cohort-note {
  margin: 6px 2px 0;
}

.tb-enforcement-flow-section .flow-source-line {
  margin: 10px 2px 0;
  padding-top: 8px;
  border-top: 1px solid #e6e4de;
}

* { box-sizing: border-box; }

body.tb-body {
  margin: 0;
  min-width: 0;
  overflow-x: clip;
  background: var(--tb-page-background);
  color: var(--tb-ink);
  font-family: var(--tb-font);
  -webkit-font-smoothing: antialiased;
}

.tb-article {
  /* Capped and centred like every other report shell. Without this the brief
     took the whole viewport, which stretched the enforcement-flow diagram and
     the stacked-area charts to absurd sizes on a widescreen monitor and pulled
     the matrix tables apart. Below --page-max nothing changes: the column is
     100% wide and the existing breakpoints still govern. */
  width: min(var(--page-max), 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  min-width: 0;
}

.tb-masthead {
  padding: var(--tb-masthead-pad);
  border-bottom: 1px solid var(--tb-rule-strong);
  display: flex;
  flex-wrap: wrap;
  gap: var(--tb-col-gap);
}

.tb-masthead-side { flex: 1 1 200px; min-width: 0; }
.tb-masthead-main { flex: 999 1 480px; min-width: 0; }

.tb-eyebrow {
  color: oklch(45% 0.055 264);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.tb-through,
.tb-section-through {
  color: var(--tb-muted);
  font-size: var(--tb-sec-note);
}

.tb-through { margin-top: 6px; }
.tb-section-through { margin-bottom: 8px; text-align: right; }

.tb-h1 {
  margin: 0;
  font-size: var(--tb-h1);
  font-weight: 700;
  letter-spacing: -.045em;
  line-height: 1.02;
  text-wrap: balance;
}

.tb-deck {
  margin: 12px 0 0;
  max-width: 62ch;
  color: var(--tb-ink);
  font-size: var(--tb-deck);
  font-weight: 400;
  line-height: 1.6;
}

.tb-export-control {
  padding: 18px clamp(20px, 4vw, 64px);
  border-bottom: 1px solid var(--tb-rule-strong);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px 28px;
  background: oklch(97.4% 0.011 92);
}

.tb-export-copy { flex: 1 1 420px; min-width: 0; }
.tb-export-title { margin: 0; color: var(--tb-ink-strong); font-size: 14px; }
.tb-export-description,
.tb-export-status { margin: 5px 0 0; color: var(--tb-muted); font-size: var(--tb-sec-note); line-height: 1.45; }
.tb-export-action { flex: 0 1 auto; text-align: right; }

.tb-export-link {
  display: inline-flex;
  min-height: 32px;
  padding: 7px 13px;
  align-items: center;
  border-radius: var(--tb-r-chip);
  background: var(--tb-navy);
  color: oklch(98% 0.004 95);
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
}

.tb-export-link.is-disabled {
  background: oklch(90% 0.008 88);
  color: var(--tb-muted);
  cursor: not-allowed;
}

.tb-section {
  padding: var(--tb-sec-pad);
  border-bottom: 1px solid var(--tb-rule);
  display: flex;
  flex-wrap: wrap;
  gap: var(--tb-col-gap);
  min-width: 0;
}

.tb-section > aside { flex: 1 1 200px; min-width: 0; }

.tb-section > main {
  flex: 999 1 480px;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  min-width: 0;
}

.tb-component-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  min-width: 0;
}

.tb-sec-head { display: flex; align-items: baseline; gap: 9px; }
.tb-sec-num { color: var(--tb-amber); font-size: var(--tb-sec-num); font-weight: 700; }
.tb-sec-title { margin: 0; color: var(--tb-ink); font-size: var(--tb-sec-title); font-weight: 700; }

.tb-sec-note,
.tb-matrix-null-note {
  margin: 8px 0 0;
  color: var(--tb-muted);
  font-size: var(--tb-sec-note);
  font-weight: 400;
  line-height: 1.6;
  text-wrap: pretty;
}

.tb-sec-note.is-caveat,
.tb-matrix-null-note.is-caveat { color: var(--tb-amber-deep); }

.tb-kpis {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr));
  gap: 0 40px;
}

.tb-kpi {
  padding: 12px 0;
  border-bottom: 1px solid var(--tb-rule);
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  min-width: 0;
}

.tb-kpi-label { color: var(--tb-ink-soft); font-size: 13.5px; }
.tb-kpi-label.is-defined { border-bottom: 1px dotted oklch(70% 0.02 82); }
.tb-kpi-value { display: flex; align-items: baseline; gap: 9px; }

.tb-kpi-figure {
  color: var(--tb-ink);
  font-size: var(--tb-kpi);
  font-weight: 700;
  font-variant-numeric: lining-nums;
  letter-spacing: -.02em;
  white-space: nowrap;
}

.tb-delta { margin-right: 8px; font-size: var(--tb-sec-note); font-weight: 700; white-space: nowrap; }
.tb-delta.is-up { color: var(--tb-delta-positive); }
.tb-delta.is-down { color: var(--tb-delta-negative); }
.tb-delta.is-neutral { color: var(--tb-delta-neutral); }
.tb-num { font-variant-numeric: lining-nums; }

.tb-controls {
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 16px;
}

.tb-control {
  flex: 1 1 260px;
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.tb-control-label {
  color: var(--tb-muted-light);
  font-size: var(--tb-ctl-label);
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  white-space: nowrap;
}

.tb-select {
  height: 26px;
  padding: 0 8px;
  flex: 1 1 0;
  min-width: 0;
  border: 1px solid var(--tb-rule-light);
  border-radius: var(--tb-r-chip);
  background: oklch(99% 0.004 95);
  color: oklch(28% 0.02 82);
  font: 600 var(--tb-ctl-value) var(--tb-font);
  cursor: pointer;
}

.tb-chart-context,
.tb-chart-footnote {
  color: var(--tb-muted);
  font-size: 12px;
}

.tb-chart-context { margin-bottom: 10px; }
.tb-chart-footnote { margin-top: 8px; }
.tb-svg-frame { min-width: 0; overflow-x: auto; overflow-y: hidden; }
.tb-inline-svg { display: block; width: 100%; min-width: 660px; height: auto; }
.tb-inline-svg text { font-size: var(--tb-chart-axis-svg); }

.tb-chart-heading {
  padding-bottom: 8px;
  border-bottom: 1px solid var(--tb-rule-strong);
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 20px;
}

.tb-chart-title { margin: 0; font-size: 15px; font-weight: 700; }
.tb-legend { display: flex; flex-wrap: wrap; gap: 8px 16px; color: var(--tb-ink-soft); font-size: var(--tb-chart-label-secondary); }
.tb-legend-item { display: inline-flex; align-items: center; gap: 5px; }
.tb-swatch { width: 9px; height: 9px; flex: 0 0 auto; border-radius: 2px; }
.tb-swatch.is-settlement { background: var(--tb-navy); }
.tb-swatch.is-judgment { background: var(--tb-amber); }

.tb-chart-scroll { margin-top: 16px; overflow-x: auto; }
.tb-recovery-chart { min-width: 520px; }
.tb-recovery-bars {
  height: 210px;
  border-bottom: 1px solid var(--tb-rule-strong);
  display: flex;
  align-items: flex-end;
  gap: clamp(6px, 1.2vw, 18px);
}

.tb-recovery-year {
  height: 100%;
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: stretch;
  min-width: 0;
}

.tb-recovery-year.is-partial > :not(.tb-recovery-total) { opacity: .42; }
.tb-recovery-total { margin-bottom: 4px; color: var(--tb-muted); font-size: var(--tb-chart-label); text-align: center; white-space: nowrap; }
.tb-recovery-settlement { width: 100%; min-height: 1px; background: var(--tb-navy); }
.tb-recovery-judgment { width: 100%; min-height: 1px; background: var(--tb-amber); }
.tb-recovery-years { margin-top: 7px; display: flex; gap: clamp(6px, 1.2vw, 18px); }
.tb-recovery-years > span { flex: 1 1 0; min-width: 0; color: var(--tb-muted); font-size: var(--tb-chart-label); text-align: center; }

.tb-component-row { display: flex; flex-wrap: wrap; gap: 24px 36px; min-width: 0; }
.tb-component { flex: 1 1 300px; min-width: 0; }

.tb-component-title {
  padding-bottom: 6px;
  border-bottom: 1px solid var(--tb-rule-strong);
  color: var(--tb-muted);
  font-size: var(--tb-chart-label);
  font-weight: 600;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.tb-rank-list { margin-top: 10px; display: grid; gap: 9px; }
.tb-rank-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(48px, 120px) 62px;
  align-items: center;
  column-gap: 12px;
  min-width: 0;
}

.tb-rank-name { min-width: 0; font-size: var(--tb-td); font-weight: 600; overflow-wrap: anywhere; }
.tb-rank-value { color: var(--tb-ink); font-size: var(--tb-td); text-align: right; }
.tb-bar-track { height: 7px; border-radius: var(--tb-r-bar); background: oklch(92% 0.01 88); position: relative; overflow: hidden; }
.tb-bar-fill { position: absolute; inset: 0 auto 0 0; border-radius: var(--tb-r-bar); background: var(--tb-navy); }

.tb-donut-frame { margin: 14px 0 6px; display: flex; justify-content: center; }
.tb-donut { width: 140px; height: 140px; overflow: visible; }
.tb-donut circle { cursor: pointer; transition: opacity .12s ease, stroke-width .12s ease; }
.tb-donut circle.is-muted { opacity: .22; }
.tb-donut circle.is-selected { stroke-width: 26px; }

/* SVG geometry elements (circle/path) sit outside the HTML-namespace list the
   browser's own :focus-visible-only outline suppression covers, so a mouse
   click on these tabindex="0" slices draws the raw UA focus ring unless we
   scope it ourselves. Keyboard focus still gets the site's standard ring. */
.tb-donut circle:focus { outline: none; }
.tb-donut circle:focus-visible {
  outline: 2px solid #e89b2e;
  outline-offset: 2px;
}
.tb-donut-total { fill: var(--tb-ink); font: 700 20px var(--tb-font); font-variant-numeric: lining-nums; }
.tb-donut-label { fill: var(--tb-muted); font: 400 var(--tb-chart-label-secondary) var(--tb-font); }
.tb-mix-list { margin-top: 10px; display: grid; gap: 0; }

.tb-mix-row {
  width: 100%;
  padding: 7px 0;
  border: 0;
  border-bottom: 1px solid var(--tb-rule);
  border-radius: var(--tb-r-tab);
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  background: transparent;
  color: var(--tb-ink);
  font: 400 var(--tb-td) var(--tb-font);
  cursor: pointer;
  transition: background-color .12s ease, opacity .12s ease;
}

.tb-mix-row:hover,
.tb-mix-row.is-selected { background: var(--tb-chip-hover); }
.tb-mix-row.is-muted { opacity: .28; }
.tb-mix-name { display: inline-flex; align-items: center; gap: 8px; min-width: 0; font-weight: 600; text-align: left; }

.tb-hierarchy {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 26px 36px;
  min-width: 0;
}
.tb-hierarchy-heading {
  padding-bottom: 6px;
  border-bottom: 1px solid var(--tb-rule-strong);
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
  font-weight: 700;
}

.tb-hierarchy-name { min-width: 0; overflow-wrap: anywhere; display: inline-flex; align-items: center; gap: 8px; }
.tb-hierarchy-children { margin-top: 9px; display: grid; gap: 7px; }
.tb-hierarchy-child { grid-template-columns: minmax(0, 1fr) minmax(48px, 90px) 58px; }
.tb-hierarchy--products .tb-hierarchy-child { grid-template-columns: minmax(0, 1fr) minmax(48px, 90px) 52px; }
.tb-hierarchy-child[hidden] { display: none; }
.tb-hierarchy-child .tb-rank-name { padding-left: 17px; color: var(--tb-ink-soft); font-weight: 400; }
.tb-hierarchy-child .tb-bar-track { height: 6px; }
.tb-hierarchy-child.is-other .tb-rank-name,
.tb-hierarchy-child.is-other .tb-rank-value { color: var(--tb-muted); }

.tb-hierarchy-toggle {
  margin-top: 8px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border: 0;
  border-radius: var(--tb-r-chip);
  background: transparent;
  color: var(--tb-navy-muted);
  font: 600 11px var(--tb-font);
  cursor: pointer;
  transition: background .12s ease, color .12s ease;
}

.tb-hierarchy-toggle:hover { background: var(--tb-chip-hover); color: var(--tb-navy); }
.tb-hierarchy-toggle svg { flex: 0 0 auto; opacity: .72; transition: transform .12s ease; }
.tb-hierarchy-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
.tb-composition-stack { display: grid; gap: 24px; min-width: 0; }
.tb-composition-block { min-width: 0; }
.tb-composition-block .tb-svg-frame { position: relative; margin-top: 8px; }
.tb-composition-block [data-comp-slice] { cursor: pointer; transition: opacity .12s ease; }
.tb-composition-block [data-comp-slice].is-muted { opacity: .18; }
.tb-composition-block [data-comp-slice].is-selected { opacity: 1; }

.tb-composition-tooltip {
  position: absolute;
  z-index: 5;
  box-sizing: border-box;
  width: max-content;
  max-width: calc(100% - 16px);
  padding: 5px 8px 6px;
  border-radius: var(--tb-r-tooltip);
  background: var(--tb-tooltip-bg);
  color: var(--tb-tooltip-fg);
  font: 400 11px/1.3 var(--tb-font);
  pointer-events: none;
}

.tb-composition-tooltip[hidden] { display: none; }

.tb-composition-tooltip-date {
  margin-bottom: 1px;
  font-size: 10px;
  font-weight: 600;
  color: oklch(90% 0.01 95);
}

.tb-composition-tooltip-value { font-weight: 500; }

/* Same SVG-namespace focus-ring gap as the donut above: these path slices
   carry tabindex="0" for keyboard access, but the browser's default
   mouse-click outline suppression doesn't reach SVG elements. */
.tb-composition-block [data-comp-slice]:focus { outline: none; }
.tb-composition-block [data-comp-slice]:focus-visible {
  outline: 2px solid #e89b2e;
  outline-offset: 2px;
}
.tb-composition-legend { margin-top: 8px; display: flex; flex-wrap: wrap; gap: 6px 14px; }

.tb-composition-key {
  padding: 0;
  border: 0;
  border-radius: var(--tb-r-tab);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: transparent;
  color: var(--tb-ink);
  font: 400 var(--tb-chart-label-secondary) var(--tb-font);
  cursor: pointer;
}

.tb-movement-grid {
  display: flex;
  grid-template-columns: minmax(0, 1fr);
  flex-wrap: wrap;
  gap: 24px 32px;
  min-width: 0;
}

.tb-movement-column { flex: 1 1 230px; min-width: 0; }
.tb-movement-list { margin-top: 8px; }
.tb-movement-row {
  padding: 7px 0;
  border-bottom: 1px solid var(--tb-rule);
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}

.tb-move-name { min-width: 0; font-size: var(--tb-td); font-weight: 600; overflow-wrap: anywhere; }
.tb-move-change { flex: 0 0 auto; font-size: var(--tb-td); font-weight: 700; }
.tb-move-change.is-up { color: var(--tb-delta-positive); }
.tb-move-change.is-down { color: var(--tb-delta-negative); }
.tb-move-change.is-neutral { color: var(--tb-delta-neutral); }

/* League tables and matrix instrument — reference geometry. */
.tb-control-cluster {
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px;
}

.tb-control-cluster .tb-control-label {
  color: var(--tb-muted-light);
  font-size: var(--tb-ctl-label);
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.tb-control-cluster .tb-control-label.is-timeframe { margin-left: 8px; }

.tb-metric-select {
  height: 26px;
  padding: 0 8px;
  border: 1px solid var(--tb-rule-light);
  border-radius: var(--tb-r-chip);
  background: oklch(99% 0.004 95);
  color: oklch(28% 0.02 82);
  font: 600 var(--tb-ctl-value) var(--tb-font);
  cursor: pointer;
}

.tb-timeframe {
  height: 26px;
  padding: 2px;
  border: 1px solid var(--tb-rule-light);
  border-radius: var(--tb-r-chip);
  display: inline-flex;
  gap: 2px;
  background: var(--tb-track);
}

.tb-timeframe > button {
  padding: 0 9px;
  border: 0;
  border-radius: var(--tb-r-tab);
  background: transparent;
  color: oklch(56% 0.014 82);
  font: 600 11px var(--tb-font);
  white-space: nowrap;
  cursor: pointer;
  transition: background .12s ease, color .12s ease;
}

.tb-timeframe > button[aria-selected="true"] {
  background: oklch(100% 0 0);
  color: var(--tb-ink-strong);
  box-shadow: var(--tb-shadow-tab);
  font-weight: 700;
}

.tb-league-component,
.tb-instrument-mount,
.tb-instrument-root,
.tb-matrix-component { min-width: 0; }

/* §16 firm trajectories — geometry is locked to the section handoff. */
.tb-trajectories { min-width: 0; }

.tb-trajectory-controls {
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px;
}

.tb-trajectory-control-label {
  color: var(--tb-muted-light);
  font-size: var(--tb-ctl-label);
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.tb-trajectory-control-label.is-timeframe { margin-left: 8px; }

.tb-trajectory-select {
  height: 26px;
  padding: 0 8px;
  border: 1px solid var(--tb-rule-light);
  border-radius: 6px;
  background: oklch(99% 0.004 95);
  color: oklch(28% 0.02 82);
  font: 600 var(--tb-ctl-value) var(--tb-font);
  cursor: pointer;
}

.tb-trajectory-charts {
  display: flex;
  flex-wrap: wrap;
  gap: 28px 32px;
  min-width: 0;
}

.tb-trajectory-chart { flex: 1 1 260px; min-width: 0; }

.tb-trajectory-header {
  min-height: 42px;
  padding-bottom: 7px;
  border-bottom: 1px solid var(--tb-rule-strong);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
}

.tb-trajectory-title {
  color: var(--tb-muted);
  font-size: var(--tb-chart-label);
  font-weight: 600;
  letter-spacing: .09em;
  line-height: 1.35;
  text-transform: uppercase;
}

.tb-trajectory-chart > svg {
  width: 100%;
  height: auto;
  margin-top: 10px;
  display: block;
  overflow: visible;
}

.tb-trajectory-axis {
  fill: var(--tb-muted);
  font-size: var(--tb-trajectory-axis-svg);
  font-family: var(--tb-font);
}

.tb-trajectory-tabs {
  height: 26px;
  padding: 2px;
  border: 1px solid var(--tb-rule-light);
  border-radius: 6px;
  display: inline-flex;
  gap: 2px;
  background: var(--tb-track);
}

.tb-trajectory-tabs > button {
  padding: 0 9px;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: oklch(56% 0.014 82);
  font: 600 var(--tb-chart-label-secondary) var(--tb-font);
  white-space: nowrap;
  cursor: pointer;
}

.tb-trajectory-tabs > button[aria-selected="true"] {
  background: oklch(100% 0 0);
  color: var(--tb-ink-strong);
  box-shadow: var(--tb-shadow-tab);
  font-weight: 700;
}

.tb-trajectory-stat { height: 22px; flex: 0 0 auto; }
.tb-trajectory-stat > button { padding: 0 8px; font-size: 11.5px; }

.tb-trajectory-legend {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tb-trajectory-legend > button {
  padding: 4px 9px;
  border: 1px solid transparent;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  color: oklch(28% 0.02 82);
  font: 600 var(--tb-chart-label-secondary) var(--tb-font);
  cursor: pointer;
  transition: background .12s ease;
}

.tb-trajectory-legend > button[aria-pressed="true"] {
  border-color: var(--tb-rule-strong);
  background: oklch(95.5% 0.014 88);
}

/* The isolate control dims the chips it is not isolating. This is a class
   rather than an inline opacity so the hover rules below can simply outrank
   it in source order instead of shouting !important. */
.tb-trajectory-legend > button.is-isolated-out {
  opacity: .5;
}

/* Firm cross-highlight. Hovering or focusing a line or a chip lights that
   firm in BOTH charts and dims every other firm. Wiring is the shared
   hover-highlight helper. */
.tb-trajectories [data-trajectory-series] {
  cursor: pointer;
  transition: opacity .12s ease, stroke-width .12s ease;
}

.tb-trajectories[data-hover] [data-trajectory-series] {
  opacity: .16;
}

.tb-trajectories[data-hover] [data-trajectory-series].is-hot {
  opacity: 1;
  stroke-width: 5.5;
}

.tb-trajectories[data-hover] .tb-trajectory-legend > button {
  opacity: .35;
}

.tb-trajectories[data-hover] .tb-trajectory-legend > button.is-hot {
  opacity: 1;
  border-color: var(--tb-rule-strong);
  background: oklch(95.5% 0.014 88);
}

.tb-trajectory-dot {
  width: 8px;
  height: 8px;
  flex: 0 0 auto;
  border-radius: 999px;
}

.tb-trajectory-caption {
  margin-top: 12px;
  color: var(--tb-muted);
  font-size: 11.5px;
  line-height: 1.6;
}

.tb-league-wrap,
.tb-matrix-wrap {
  min-width: 0;
  overflow-x: auto;
}

.tb-league-table {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
}

.tb-league-table th {
  padding: 6px 8px;
  border: 0 solid var(--tb-rule-strong);
  border-bottom-width: 1px;
  color: var(--tb-muted);
  font-size: var(--tb-th);
  font-weight: 700;
  letter-spacing: .08em;
  text-align: right;
  text-transform: uppercase;
}

.tb-league-table td {
  padding: 8px;
  border: 0 solid var(--tb-rule);
  border-bottom-width: 1px;
  font-size: var(--tb-td);
}

.tb-league-table th:first-child,
.tb-league-table td:first-child { padding-left: 0; text-align: left; }
.tb-league-table th:last-child,
.tb-league-table td:last-child { padding-right: 0; text-align: left; }
.tb-league-table td:first-child { font-weight: 600; }
.tb-league-number { text-align: right; }
/* Decision (brief, 2026-08-08): league deltas align on green/red, resolving
   the handoff's own unresolved note — the reference's amber/navy does not win here. */
.tb-league-number.is-up { color: var(--tb-delta-positive); }
.tb-league-number.is-down { color: var(--tb-delta-negative); }
.tb-league-number.is-neutral { color: var(--tb-delta-neutral); }

.tb-expander {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  border: 0;
  border-radius: 6px;
  background: none;
  color: oklch(42% 0.035 264);
  font: 600 11.5px var(--tb-font);
  cursor: pointer;
  transition: background .12s ease, color .12s ease;
}

.tb-expander:hover {
  background: oklch(94.6% 0.012 88);
  color: oklch(28% 0.07 264);
}

.tb-expander svg {
  flex: 0 0 auto;
  opacity: .72;
  transition: transform .12s ease;
}

.tb-expander[aria-expanded="true"] svg { transform: rotate(180deg); }
.tb-league-component > .tb-expander { margin: 10px 0 0 -11px; }

.tb-defined-term {
  border-bottom: 1px dotted oklch(70% 0.02 82);
}

.tb-matrix-table {
  --tb-row-label-width: 182px;
  --tb-matrix-col-width: 96px;
  width: max-content;
  min-width: 100%;
  border-collapse: collapse;
  display: grid;
  grid-template-columns: var(--tb-row-label-width) repeat(var(--tb-matrix-col-count), var(--tb-matrix-col-width));
  table-layout: fixed;
}

.tb-matrix-table.has-summary {
  grid-template-columns: var(--tb-row-label-width) repeat(var(--tb-matrix-col-count), var(--tb-matrix-col-width)) 70px;
}

.tb-matrix-table thead,
.tb-matrix-table tbody,
.tb-matrix-table tr { display: contents; }

.tb-matrix-table th {
  padding: 6px 3px;
  border: 0 solid var(--tb-rule-strong);
  border-bottom-width: 1px;
  color: var(--tb-muted);
  font-size: var(--tb-matrix-axis-label);
  font-weight: 700;
  line-height: 1.25;
  text-align: right;
  vertical-align: bottom;
  white-space: normal;
}

.tb-matrix-table .tb-matrix-corner,
.tb-matrix-table .tb-matrix-row-label {
  width: var(--tb-row-label-width);
  min-width: var(--tb-row-label-width);
  max-width: var(--tb-row-label-width);
  padding-left: 0;
  padding-right: 6px;
  text-align: left;
}

/* Real-corpus labels can exceed the pinned width (the design's placeholders
   never did); ellipsize instead of bleeding into the first data column. The
   full label stays in the sort button's custom tooltip. */
.tb-matrix-table .tb-matrix-row-label .tb-tooltip-wrap,
.tb-matrix-table .tb-matrix-corner .tb-tooltip-wrap {
  width: 100%;
  max-width: 100%;
  display: block;
}

.tb-matrix-table .tb-matrix-row-label .tb-matrix-sort {
  display: block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tb-matrix-table .tb-matrix-corner {
  font-size: var(--tb-matrix-axis-label);
  letter-spacing: .06em;
  text-transform: uppercase;
}

.tb-matrix-col-head {
  width: var(--tb-matrix-col-width);
  min-width: var(--tb-matrix-col-width);
  max-width: var(--tb-matrix-col-width);
}

.tb-matrix-total-head,
.tb-matrix-total {
  width: 70px;
  min-width: 70px;
  max-width: 70px;
  padding-right: 0 !important;
  padding-left: 6px !important;
  color: var(--tb-navy) !important;
  font-weight: 700 !important;
  text-align: right;
}

.tb-matrix-row-label,
.tb-matrix-cell,
.tb-matrix-total {
  padding: 7px 3px;
  border: 0 solid var(--tb-rule);
  border-bottom-width: 1px;
  font-size: var(--tb-cell);
  text-align: right;
  white-space: nowrap;
}

.tb-matrix-row-label {
  font-size: var(--tb-td);
  font-weight: 600;
  line-height: 1.25;
}

.tb-matrix-sort {
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  line-height: inherit;
  text-align: inherit;
  white-space: inherit;
  cursor: pointer;
}

.tb-matrix-cell[data-cell-state="null"] {
  background: transparent;
  color: oklch(68% 0.01 82);
}

.tb-matrix-cell[data-cell-state="zero"] {
  background: oklch(97.2% 0.006 95);
  color: var(--tb-ink);
}

.tb-matrix-cell-owner {
  position: relative;
  display: inline-block;
}

.tb-matrix-cell.has-tooltip { position: relative; }

.tb-cell-caveat {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.tb-matrix-summary > td { border-top: 1px solid var(--tb-rule-strong); }
.tb-matrix-summary.is-others > td { color: var(--tb-muted); font-style: italic; }
.tb-matrix-summary.is-total > td { border-bottom-color: var(--tb-rule-strong); font-weight: 700; }

[data-matchup-scroll][hidden] { display: none; }

.tb-matrix-group-spacer,
.tb-matrix-group-head {
  padding-top: 0 !important;
  padding-bottom: 5px !important;
  border-bottom: 0 !important;
  color: var(--tb-navy-muted) !important;
  font-size: var(--tb-matrix-axis-label) !important;
  letter-spacing: .04em;
  text-align: center !important;
}

.tb-matrix-group-head { grid-column: span var(--tb-group-span); }

.tb-matrix-actions {
  margin-top: 10px;
  margin-left: -11px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.tb-matrix-action-item { display: block; }

.tb-tooltip-wrap {
  position: relative;
  min-width: 0;
  display: inline-flex;
  flex: 0 0 auto;
}

.tb-custom-tooltip {
  position: absolute;
  bottom: calc(100% + 6px);
  left: 50%;
  z-index: 5;
  transform: translateX(-50%);
  padding: 4px 8px;
  border-radius: 5px;
  background: oklch(26% 0.02 82);
  color: oklch(97% 0.006 95);
  font: 600 10.5px var(--tb-font);
  line-height: 1.25;
  white-space: nowrap;
  pointer-events: none;
  text-align: left;
  text-transform: none;
  letter-spacing: 0;
}

.tb-custom-tooltip[hidden] { display: none; }

.tb-kpi .tb-custom-tooltip {
  left: 0;
  width: min(420px, 80vw);
  transform: none;
  white-space: normal;
}

.tb-fullscreen-button {
  width: 26px;
  height: 26px;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  border-radius: 6px;
  background: none;
  opacity: .62;
  cursor: pointer;
}

.tb-fullscreen-button:hover {
  background: oklch(94% 0.01 88);
  opacity: 1;
}

.tb-instrument-root.is-fullscreen {
  position: fixed;
  inset: 0;
  z-index: 60;
  margin: 0;
  padding: 28px clamp(16px, 3vw, 44px);
  overflow: auto;
  background: oklch(98.4% 0.006 95);
  box-shadow: var(--tb-shadow-panel);
}

.tb-matrix-unavailable {
  padding: 18px 0;
  color: var(--tb-muted);
  font-size: var(--tb-td);
}

.tb-report-unavailable { padding: var(--tb-sec-pad); font-size: var(--tb-td); line-height: 1.55; color: var(--tb-ink-soft); }
.tb-report-unavailable h2 { margin: 0 0 8px; font-size: 17px; font-weight: 600; color: var(--tb-ink-strong); }
.tb-report-unavailable p { max-width: 58ch; margin: 0; }

.tb-page-disclaimer { padding: 26px clamp(20px, 4vw, 64px) 40px; font-size: 11.5px; line-height: 1.6; color: oklch(58% 0.012 82); font-style: italic; margin: 0; }

/* §18: one chart, full width of the row. Everything else is §17's recipe. */
.tb-trajectory-chart.is-full-width { flex: 1 1 100%; }
