/* =============================================================================
   Strategy factsheet pages (/classic/diversified, /classic/stable, /spike/stable, /spike/diversified;
   charter: CLASSIC-FACTSHEET.md; template: src/components/factsheet). Loaded by FactsheetPage.astro
   after site.css; every class is cd-*. Compact page, print view (html.cd-print-mode) and A4 print.

   Colour: page tokens below (--cd-*), switched to a light A4 set in @media print.
   Series colours are NOT here: the page writes --cd-s-<series> from the generated data's
   `styles` (style-guide/tokens/charts.json), on-dark on screen, on-light in print.

   Fee basis: the HTML holds all three panes ([data-b="gross|net25|net30"]); <html data-basis> picks the
   visible one (set before first paint, changed by src/scripts/factsheet/basis.ts). Print view:
   html.cd-print-mode (set from ?print=1); .cd-only-print / .cd-only-compact are its two renderings.
   ========================================================================== */

.cd-root {
  --cd-ink: var(--c-white);
  --cd-ink-2: rgba(255, 255, 255, 0.86);
  --cd-muted: var(--c-grey);
  --cd-accent: var(--c-gold);
  --cd-accent-2: var(--c-gold-light);
  --cd-line: var(--bd-card);
  --cd-line-accent: var(--bd-gold);
  --cd-card: var(--bg-card);
  --cd-surface: var(--bg-page);
  --cd-pop: #102546;
  --cd-pos: #4ADE80;
  --cd-neg: #F08A7E;
  --cd-up: 34 197 94;
  --cd-down: 220 80 70;
  --cd-grid: #222D4D;
  --cd-ddwash: rgba(235, 87, 87, 0.16);
  --cd-split-b: #5B6B8C;
  --cd-coll-stable: #6B8FB8;
  --cd-coll-yield: #4FA3A5;
  --cd-coll-equity: #9B7FD1;
  --cd-header-h: 72px;
}

.cd-sr {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.cd-nowrap { white-space: nowrap; }

/* ---- Fee basis: three panes in the HTML, one shown ---------------------------------- */
html:not([data-basis]) [data-b]:not([data-b="gross"]),
html[data-basis="gross"] [data-b]:not([data-b="gross"]),
html[data-basis="net25"] [data-b]:not([data-b="net25"]),
html[data-basis="net30"] [data-b]:not([data-b="net30"]) { display: none !important; }

/* ---- The two renderings of one source (compact page, print view) --------------------- */
.cd-only-print, .cd-printbar, .cd-fn { display: none; }
html.cd-print-mode .cd-only-print { display: revert; }
html.cd-print-mode .cd-printbar { display: flex; }
html.cd-print-mode .cd-fn { display: inline; }
html.cd-print-mode .cd-tip { display: none; }
html.cd-print-mode .cd-fold { border-bottom: 0; }
html.cd-print-mode .cd-fold__sum { cursor: default; pointer-events: none; padding: 0; margin: 64px 0 20px; }
html.cd-print-mode .cd-fold__h { font-size: clamp(24px, 3vw, 34px); letter-spacing: -0.025em; line-height: 1.15; }
html.cd-print-mode .cd-fold__icon, html.cd-print-mode .cd-subfold__sum { display: none; }
html.cd-print-mode .cd-fold__body { padding: 0; }
html.cd-print-mode .cd-subfold { border-top: 0; padding-top: 0; }

/* ---- Hero ---------------------------------------------------------------------- */
.cd-root .page-hero__inner { max-width: 1000px; }
.cd-root .page-hero__sub { max-width: 820px; margin-left: auto; margin-right: auto; }
.cd-root .page-hero h1 { font-size: clamp(40px, 5.2vw, 64px); white-space: nowrap; }
@media (max-width: 400px) { .cd-root .page-hero h1 { font-size: clamp(26px, 8.4vw, 36px); } }
@media (max-width: 760px) {
  .cd-root .page-hero h1 .cd-brand {
    position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0);
  }
  html:not(.cd-print-mode) .page-hero { padding-bottom: 28px; }
  .cd-root .page-hero__sub { font-size: 15px; line-height: 1.55; }
}

/* ---- Sticky as-of bar (phones) --------------------------------------------------- */
.cd-asofbar { display: none; }
@media (max-width: 759px) {
  .cd-asofbar {
    display: block;
    position: sticky;
    top: var(--cd-header-h);
    z-index: 40;
    background: rgba(8, 24, 47, 0.92);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--cd-line);
  }
  .cd-asofbar__in { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding-top: 6px; padding-bottom: 6px; }
  .cd-asofbar__date { font-size: 12px; font-weight: 600; color: var(--cd-accent-2); white-space: nowrap; }
  .cd-asofbar .cd-switch__btn { padding: 7px 10px; font-size: 12px; }
  /* The bar carries the basis switch on phones; the section heads drop theirs. */
  .cd-head .cd-switch-wrap { display: none; }
}

.cd-page { padding-top: 40px; }

/* ---- Section heads ---------------------------------------------------------------- */
.cd-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px 32px;
  margin: 64px 0 20px;
  scroll-margin-top: 96px;
}
.cd-head__text { flex: 1 1 420px; min-width: 0; }
.cd-head h2, .cd-head h3 {
  font-size: clamp(24px, 3vw, 34px);
  letter-spacing: -0.025em;
  line-height: 1.15;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0 4px;
}
.cd-head p { margin-top: 8px; color: var(--cd-muted); font-size: 15.5px; line-height: 1.55; max-width: 96ch; }
.cd-page .container > .cd-head:first-child,
.cd-page .container > .cd-printbar + .cd-head { margin-top: 0; }
.cd-basisline { color: var(--cd-ink); font-weight: 600; white-space: nowrap; }
@media (max-width: 759px) {
  .cd-head { margin: 40px 0 14px; scroll-margin-top: 130px; }
  .cd-head h2 { font-size: 22px; }
  .cd-root .page-hero__asof { display: none; }
  .cd-head p { font-size: 14px; }
}

/* ---- Basis switch ----------------------------------------------------------------- */
.cd-switch-wrap { display: inline-flex; align-items: center; gap: 6px; }
.cd-switch {
  display: inline-flex;
  padding: 3px;
  border: 1px solid var(--cd-line-accent);
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.02);
}
.cd-switch__btn {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--cd-muted);
  font: 600 13px/1 Inter, system-ui, sans-serif;
  letter-spacing: 0.01em;
  padding: 9px 16px;
  border-radius: var(--r-pill);
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s, color 0.15s;
}
.cd-switch__btn:hover { color: var(--cd-ink); }
.cd-switch__btn.is-active,
html:not([data-basis]) .cd-switch__btn[data-basis="gross"],
html[data-basis="gross"] .cd-switch__btn[data-basis="gross"],
html[data-basis="net25"] .cd-switch__btn[data-basis="net25"],
html[data-basis="net30"] .cd-switch__btn[data-basis="net30"] { background: var(--c-gold); color: var(--c-navy-dark); }
.cd-switch__btn:focus-visible { outline: 2px solid var(--cd-accent-2); outline-offset: 2px; }

/* ---- InfoTip: "?" in a circle with a popover --------------------------------------- */
.cd-tip { position: relative; display: inline-flex; align-items: center; margin-inline-start: 6px; vertical-align: middle; }
.cd-tip__btn {
  appearance: none;
  width: 18px; height: 18px;
  border-radius: 50%;
  border: 1px solid rgba(163, 132, 87, 0.75);
  background: transparent;
  color: var(--cd-accent);
  font: 700 11px/1 Inter, system-ui, sans-serif;
  padding: 0;
  display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.15s, color 0.15s;
}
.cd-tip__btn:hover, .cd-tip__btn[aria-expanded="true"] { background: var(--c-gold); color: var(--c-navy-dark); }
.cd-tip__btn:focus-visible { outline: 2px solid var(--cd-accent-2); outline-offset: 2px; }
/* The popover is portalled to <body>, outside .cd-root: it uses the site tokens. */
.cd-tip__pop {
  position: fixed;
  z-index: 1000;
  width: min(340px, calc(100vw - 24px));
  padding: 14px 16px;
  background: #102546;
  border: 1px solid var(--bd-gold);
  border-radius: var(--r-md);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
  color: rgba(255, 255, 255, 0.9);
  font: 400 13px/1.55 Inter, system-ui, sans-serif;
  letter-spacing: 0;
  text-transform: none;
  text-align: start;
  white-space: normal;
}
.cd-tip__pop::before { content: ""; position: absolute; left: 0; right: 0; top: -10px; height: 10px; }
.cd-tip__pop.is-above::before { top: auto; bottom: -10px; }
.cd-tip__title { display: block; font-weight: 600; color: var(--c-gold-light); margin-bottom: 2px; }
.cd-tip__p { display: block; margin-top: 6px; }
.cd-tip__p strong { color: var(--c-white); font-weight: 600; }

/* Footnote marker (extended view) */
.cd-fn { font-size: 0.62em; line-height: 0; margin-inline-start: 2px; vertical-align: super; letter-spacing: 0; font-weight: 600; }
.cd-fn__a { color: var(--cd-accent); text-decoration: none; }
.cd-fn__a:hover { text-decoration: underline; }
.cd-head h2 .cd-fn, .cd-head h3 .cd-fn { font-size: 13px; align-self: flex-start; margin-top: 4px; }

/* ---- KPI strip --------------------------------------------------------------------- */
.cd-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 16px; }
.cd-kpi { padding: 16px 18px; background: var(--cd-card); border: 1px solid var(--cd-line); border-radius: var(--r-md); }
.cd-kpi__label { font-size: 11px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--cd-accent); }
.cd-kpi__value { font-size: clamp(22px, 2.6vw, 32px); font-weight: 700; letter-spacing: -0.02em; margin-top: 6px; font-variant-numeric: tabular-nums; color: var(--cd-ink); }
.cd-kpi__sub { font-size: 12.5px; color: var(--cd-muted); margin-top: 4px; }
@media (max-width: 760px) {
  .cd-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .cd-kpi { padding: 11px 12px; }
  .cd-kpi__label { font-size: 10px; letter-spacing: 0.08em; }
  .cd-kpi__sub { font-size: 11.5px; }
}

/* ---- Chart ------------------------------------------------------------------------- */
.cd-chart { background: var(--cd-card); border: 1px solid var(--cd-line); border-radius: var(--r-lg); padding: 16px 16px 8px; }
.cd-chart__bar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 20px; margin-bottom: 4px; }
.cd-legend { display: grid; gap: 2px; min-width: 0; }
.cd-legend__row { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 4px; }
.cd-legend__item {
  appearance: none;
  display: inline-flex; align-items: center; gap: 7px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--cd-ink-2);
  font: 500 13px/1 Inter, system-ui, sans-serif;
  padding: 6px 8px;
  border-radius: var(--r-sm);
  cursor: pointer;
}
.cd-legend__item.is-strategy { color: var(--cd-ink); font-weight: 600; }
.cd-legend__item:hover { border-color: var(--cd-line); }
.cd-legend__item.is-off { opacity: 0.4; }
.cd-legend__item.is-off svg { filter: grayscale(1); }
.cd-legend__item:focus-visible { outline: 2px solid var(--cd-accent-2); outline-offset: 1px; }
.cd-legend__sim { font-style: italic; color: var(--cd-muted); font-weight: 400; }
.cd-chart__key { margin-inline-start: 8px; font-size: 12px; color: var(--cd-muted); }
.cd-scale { display: inline-flex; border: 1px solid var(--cd-line); border-radius: var(--r-sm); overflow: hidden; }
.cd-scale button {
  appearance: none; border: 0; background: transparent; color: var(--cd-muted);
  font: 600 12px/1 Inter, system-ui, sans-serif; padding: 7px 12px; cursor: pointer;
}
.cd-scale button.is-active { background: var(--c-navy-mid); color: var(--cd-ink); }
.cd-chart__plot { position: relative; }
.cd-chart__svg { display: block; width: 100%; height: auto; cursor: crosshair; overflow: visible; }
.cd-axis { font: 500 11px Inter, system-ui, sans-serif; fill: var(--cd-muted); }
.cd-grid { stroke: var(--cd-grid); opacity: 0.55; }
.cd-grid.is-zero { opacity: 0.95; }
.cd-endlabel { font: 600 11px Inter, system-ui, sans-serif; fill: var(--cd-ink); font-variant-numeric: tabular-nums; }
.cd-endlabel__sub { font-weight: 400; font-style: italic; font-size: 10px; fill: var(--cd-muted); }
.cd-enddot { stroke: var(--cd-surface); stroke-width: 1.5; }
.cd-crosshair { stroke: rgba(255, 255, 255, 0.3); stroke-dasharray: 3 3; }
.cd-hoverdot { fill: var(--cd-surface); }
.cd-ddwash { fill: var(--cd-ddwash); }
.cd-chart__ddhead {
  display: flex; align-items: center;
  margin: 8px 0 2px;
  font-size: 11px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--cd-accent);
}
.cd-chart__tip {
  position: absolute; top: 24px; z-index: 5; pointer-events: none;
  padding: 10px 12px;
  background: rgba(8, 24, 47, 0.96);
  border: 1px solid var(--cd-line-accent);
  border-radius: var(--r-md);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
  font-size: 12px;
}
.cd-chart__tipdate { font-weight: 600; color: var(--cd-accent-2); margin-bottom: 6px; }
.cd-chart__tiprow { display: grid; grid-template-columns: 1fr 64px 64px; gap: 6px; padding: 2px 0; font-variant-numeric: tabular-nums; }
.cd-chart__tiprow > span:not(:first-child) { text-align: end; }
.cd-chart__tiprow--head { color: var(--cd-muted); font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.08em; }
.cd-chart__tiplabel { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cd-chart__tipdd { color: var(--cd-neg); }
@media (max-width: 760px) {
  .cd-chart { padding: 10px 8px 4px; border-radius: var(--r-md); }
  .cd-legend__item { font-size: 12px; padding: 5px 6px; gap: 5px; }
  .cd-legend__item svg { width: 16px; }
}
.cd-note { margin-top: 10px; font-size: 13px; color: var(--cd-muted); }

/* Reference-account line under the chart */
.cd-refline { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; margin-top: 10px; font-size: 13px; color: var(--cd-muted); }
.cd-refline .btn--link { font-size: 13px; }

/* ---- Tables ------------------------------------------------------------------------ */
.cd-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain; }

.cd-monthly { width: 100%; border-collapse: separate; border-spacing: 3px; font-size: 12.5px; min-width: 900px; }
.cd-monthly th { font-size: 11px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--cd-muted); padding: 6px 4px; text-align: center; }
.cd-monthly tbody th { color: var(--cd-ink); text-align: start; font-size: 13px; letter-spacing: 0; padding-inline-end: 10px; }
.cd-monthly td { text-align: center; padding: 9px 4px; border-radius: var(--r-sm); font-variant-numeric: tabular-nums; white-space: nowrap; color: var(--cd-ink); }
.cd-monthly td.is-up { background: rgb(var(--cd-up) / var(--a)); }
.cd-monthly td.is-down { background: rgb(var(--cd-down) / var(--a)); }
.cd-monthly td.is-empty { border: 1px dashed var(--cd-line); }
.cd-monthly .cd-monthly__yr { font-weight: 700; background: rgba(255, 255, 255, 0.03); }
.cd-monthly td.cd-monthly__yr.is-pos { color: var(--cd-pos); }
.cd-monthly td.cd-monthly__yr.is-neg { color: var(--cd-neg); }
.cd-monthly .cd-monthly__since { font-weight: 700; color: var(--cd-accent-2); background: rgba(163, 132, 87, 0.14); }
.cd-monthly th.cd-monthly__since, .cd-monthly th.cd-monthly__yr { color: var(--cd-accent); background: transparent; }
@media (max-width: 760px) {
  .cd-monthly { font-size: 11.5px; min-width: 780px; border-spacing: 2px; }
  .cd-monthly td { padding: 7px 3px; }
}

.cd-table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 720px; }
.cd-table th, .cd-table td { padding: 10px 14px; border-bottom: 1px solid var(--cd-line); text-align: end; font-variant-numeric: tabular-nums; white-space: nowrap; }
.cd-table tbody th { text-align: start; font-weight: 500; color: var(--cd-ink-2); }
.cd-table tbody th .cd-tip { margin-inline-start: 8px; }
.cd-table thead th { vertical-align: bottom; border-bottom: 1px solid var(--cd-line-accent); padding-top: 12px; padding-bottom: 10px; }
.cd-table__name { display: block; font-size: 12px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--cd-ink); }
.cd-table__sub { display: block; font-size: 11.5px; font-weight: 500; color: var(--cd-muted); margin-top: 3px; }
.cd-table .cd-table__col--live, .cd-table .cd-table__col--sim { background: rgba(163, 132, 87, 0.16); }
.cd-table .cd-table__col--replay { background: rgba(163, 132, 87, 0.06); }
.cd-table thead .cd-table__col--live .cd-table__name,
.cd-table thead .cd-table__col--sim .cd-table__name,
.cd-table thead .cd-table__col--replay .cd-table__name { color: var(--cd-accent-2); }
.cd-table tbody td.cd-table__col--live, .cd-table tbody td.cd-table__col--sim { font-weight: 700; color: var(--cd-ink); }
.cd-table tbody td { color: var(--cd-ink-2); }
.cd-table tbody td.is-neg { color: var(--cd-neg); }
.cd-table tbody td.cd-table__col--live.is-pos, .cd-table tbody td.cd-table__col--sim.is-pos { color: var(--cd-pos); }
.cd-table tbody tr.is-emph th, .cd-table tbody tr.is-emph td { border-bottom-color: rgba(163, 132, 87, 0.35); }
.cd-table tbody tr.is-emph th { font-weight: 700; color: var(--cd-ink); }

/* Row labels stay put while a wide table scrolls sideways on a phone. */
.cd-table tbody th, .cd-table thead th:first-child,
.cd-monthly tbody th, .cd-monthly thead th:first-child { position: sticky; inset-inline-start: 0; z-index: 1; background: var(--cd-surface); }
@media (max-width: 760px) {
  .cd-table tbody th { white-space: normal; min-width: 140px; }
  .cd-table th, .cd-table td { padding: 9px 10px; font-size: 13px; }
}
/* Compact page on phones: the risk table shows the strategy's own column only. */
@media (max-width: 759px) {
  html:not(.cd-print-mode) .cd-table--risk { min-width: 0; }
  html:not(.cd-print-mode) .cd-table--risk .cd-col-other { display: none; }
  html:not(.cd-print-mode) .cd-table--risk tbody th { white-space: nowrap; min-width: 0; }
  html:not(.cd-print-mode) .cd-table--risk thead th { white-space: normal; }
  html:not(.cd-print-mode) .cd-table--risk tbody th .cd-tip { margin-inline-start: 4px; }
  html:not(.cd-print-mode) .cd-table--risk th, html:not(.cd-print-mode) .cd-table--risk td { padding: 8px 10px; }
}

/* ---- Cards ------------------------------------------------------------------------- */
.cd-card { padding: 20px 20px 16px; background: var(--cd-card); border: 1px solid var(--cd-line); border-radius: var(--r-lg); min-width: 0; }
.cd-card h3 { display: flex; align-items: center; font-size: 12px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--cd-accent); margin-bottom: 12px; }
.cd-card__lead { font-size: 14px; line-height: 1.6; color: var(--cd-ink-2); }
.cd-card__lead strong { color: var(--cd-ink); font-weight: 600; }
.cd-card__note { margin-top: 12px; font-size: 13px; line-height: 1.55; color: var(--cd-muted); }
.cd-dated { color: var(--cd-ink-2); }
.cd-grid2 { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.cd-grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; align-items: start; }
@media (max-width: 960px) { .cd-grid2, .cd-grid3 { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 760px) { .cd-card { padding: 14px 14px 12px; border-radius: var(--r-md); } .cd-grid2, .cd-grid3 { gap: 10px; } }

.cd-spec { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--cd-line); }
.cd-spec__h { display: flex; align-items: center; font-size: 11px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--cd-ink); margin-bottom: 6px; }
.cd-spec__b { font-size: 13.5px; line-height: 1.6; color: var(--cd-ink-2); }

.cd-split__bar { display: flex; height: 8px; border-radius: 4px; overflow: hidden; background: rgba(255, 255, 255, 0.06); }
.cd-split__seg--a, .cd-split__dot--a { background: var(--c-gold); }
.cd-split__seg--b, .cd-split__dot--b { background: var(--cd-split-b); }
.cd-split__legend { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 8px; font-size: 13px; color: var(--cd-ink-2); }
.cd-split__dot { display: inline-block; width: 9px; height: 9px; border-radius: 2px; margin-inline-end: 6px; vertical-align: -1px; }
.cd-split__range { margin-top: 10px; padding-top: 8px; border-top: 1px solid rgba(163, 132, 87, 0.3); font-size: 12.5px; color: var(--cd-muted); }
.cd-split__range strong, .cd-split__legend strong { color: var(--cd-ink); }

.cd-kv { width: 100%; border-collapse: collapse; font-size: 14px; }
.cd-kv th, .cd-kv td { padding: 8px 0; border-bottom: 1px solid var(--cd-line); vertical-align: top; }
.cd-kv tr:last-child th, .cd-kv tr:last-child td { border-bottom: 0; }
.cd-kv th { text-align: start; font-weight: 400; color: var(--cd-muted); padding-inline-end: 12px; white-space: nowrap; }
.cd-kv td { text-align: end; font-weight: 600; color: var(--cd-ink); font-variant-numeric: tabular-nums; }
.cd-kv th .cd-tip { margin-inline-start: 6px; }
@media (max-width: 760px) { .cd-kv { font-size: 13px; } .cd-kv th, .cd-kv td { padding: 5px 0; line-height: 1.4; } .cd-kv th { white-space: normal; } }

.cd-tiers-table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 420px; }
.cd-tiers-table th, .cd-tiers-table td { padding: 9px 8px; border-bottom: 1px solid var(--cd-line); text-align: end; font-variant-numeric: tabular-nums; white-space: nowrap; }
.cd-tiers-table thead th { font-size: 11px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--cd-accent); border-bottom-color: var(--cd-line-accent); }
.cd-tiers-table thead th:first-child, .cd-tiers-table tbody th { text-align: start; }
.cd-tiers-table tbody th { font-weight: 500; color: var(--cd-ink); }
.cd-tiers-table td { color: var(--cd-ink-2); }
@media (max-width: 760px) { .cd-tiers-table { font-size: 12px; min-width: 0; } .cd-tiers-table th, .cd-tiers-table td { padding: 6px 2px; } .cd-tiers-table thead th { font-size: 9.5px; letter-spacing: 0.02em; white-space: normal; } }

.cd-cap__bar { height: 12px; border-radius: 6px; background: rgba(255, 255, 255, 0.07); overflow: hidden; }
.cd-cap__bar span { display: block; height: 100%; background: var(--c-gold); border-radius: 6px; }
.cd-cap__stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 12px; }
.cd-cap__stats span, .cd-stats span { display: flex; align-items: center; font-size: 12px; color: var(--cd-muted); }
.cd-cap__stats strong, .cd-stats strong { display: block; font-size: 21px; font-weight: 700; letter-spacing: -0.01em; margin-top: 2px; font-variant-numeric: tabular-nums; color: var(--cd-ink); }
.cd-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 20px; }

/* ---- Collateral ------------------------------------------------------------------- */
.cd-coll { display: grid; gap: 14px; }
.cd-coll__now { padding: 16px 18px; background: var(--cd-card); border: 1px solid var(--cd-line); border-radius: var(--r-lg); }
.cd-coll__h { font-size: 11px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--cd-accent); margin-bottom: 10px; }
.cd-coll__bar { display: flex; height: 26px; border-radius: var(--r-sm); overflow: hidden; background: rgba(255, 255, 255, 0.05); }
.cd-coll__bar span { display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; color: var(--c-navy-dark); }
.cd-coll__legend { display: flex; flex-wrap: wrap; gap: 6px 20px; margin-top: 10px; font-size: 13.5px; color: var(--cd-ink-2); }
.cd-coll__legend i, .cd-coll__dot { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-inline-end: 8px; vertical-align: 0; }
.cd-coll__legend strong { color: var(--cd-ink); }
.cd-coll--stable { background: var(--cd-coll-stable); }
.cd-coll--yield { background: var(--cd-coll-yield); }
.cd-coll--btc { background: var(--cd-s-btc); }
.cd-coll--gold { background: var(--cd-s-gold); }
.cd-coll--equity { background: var(--cd-coll-equity); }
/* Rows of one type told apart (Spike Stable's thirds): three shades of the type's colour, a hairline between bar segments. */
.cd-coll--yield.cd-coll--s1 { background: #3F8587; }
.cd-coll--yield.cd-coll--s2 { background: #4FA3A5; }
.cd-coll--yield.cd-coll--s3 { background: #7FC4C5; }
.cd-coll__bar span + span { box-shadow: inset 1px 0 0 rgba(10, 22, 40, 0.35); }
.cd-coll__bar span { white-space: nowrap; }
.cd-table--coll { min-width: 520px; }
.cd-table--coll thead th { font-size: 11px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--cd-accent); }
.cd-table--coll thead th:first-child { text-align: start; }
.cd-table--coll .cd-coll__assets { text-align: start; color: var(--cd-ink-2); }
.cd-table--coll td.cd-coll__held { font-weight: 700; color: var(--cd-ink); }
.cd-table--coll td.cd-coll__zero { color: var(--cd-muted); }
.cd-coll__inline { display: none; }
@media (max-width: 760px) {
  .cd-table--coll { min-width: 0; }
  .cd-table--coll .cd-coll__assets { white-space: normal; }
  .cd-table--coll th, .cd-table--coll td { padding: 8px 6px; font-size: 12.5px; }
  .cd-table--coll thead th { font-size: 10px; letter-spacing: 0.04em; white-space: normal; }
  .cd-table--coll tbody th { min-width: 0; }
  .cd-table--coll .cd-coll__assets { display: none; }
  .cd-coll__inline { display: block; font-size: 11.5px; font-weight: 400; color: var(--cd-muted); margin: 1px 0 0 18px; }
}
.cd-coll__notes.cd-coll__notes--lead { grid-template-columns: minmax(0, 1fr); }
.cd-coll__notes--lead .cd-coll__note--history { grid-column: auto; max-width: 96ch; }
.cd-subfold { border-top: 1px solid var(--cd-line); padding-top: 10px; }
.cd-subfold__sum { cursor: pointer; font-size: 13px; font-weight: 600; color: var(--cd-accent-2); }
.cd-subfold[open] .cd-subfold__sum { margin-bottom: 10px; }
.cd-coll__notes { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px 20px; margin: 0; }
.cd-coll__note dt { font-size: 11px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--cd-accent); margin-bottom: 4px; }
.cd-coll__note dd { margin: 0; font-size: 13.5px; line-height: 1.55; color: var(--cd-ink-2); }
.cd-coll__note dd strong { color: var(--cd-ink); }
.cd-coll__note--history { grid-column: span 2; }
@media (max-width: 960px) { .cd-coll__notes { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) {
  .cd-coll__notes { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .cd-coll__note--history { grid-column: auto; }
  .cd-coll__note dd { font-size: 13px; line-height: 1.5; }
}

/* ---- Right and left stacks of the Trading signal fold ------------------------------- */
.cd-stack { display: grid; gap: 16px; align-content: start; min-width: 0; scroll-margin-top: 96px; }
@media (max-width: 760px) { .cd-stack { gap: 10px; } }

/* ---- Folds: collapsed on the compact page ------------------------------------------ */
.cd-folds { margin-top: 28px; border-top: 1px solid var(--cd-line); }
html.cd-print-mode .cd-folds { border-top: 0; margin-top: 0; }
.cd-fold { border-bottom: 1px solid var(--cd-line); scroll-margin-top: 96px; }
.cd-fold__sum { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 0; cursor: pointer; list-style: none; }
.cd-fold__sum::-webkit-details-marker { display: none; }
.cd-fold__sum:focus-visible { outline: 2px solid var(--cd-accent-2); outline-offset: 2px; }
.cd-fold__h { font-size: clamp(19px, 2.2vw, 24px); letter-spacing: -0.02em; line-height: 1.2; margin: 0; }
.cd-fold__icon { position: relative; width: 14px; height: 14px; flex-shrink: 0; }
.cd-fold__icon::before, .cd-fold__icon::after { content: ""; position: absolute; left: 0; right: 0; top: 6px; height: 2px; background: var(--cd-accent); border-radius: 1px; transition: transform 0.2s; }
.cd-fold__icon::after { transform: rotate(90deg); }
.cd-fold[open] .cd-fold__icon::after { transform: rotate(0deg); }
.cd-fold__body { padding: 0 0 24px; }
.cd-fold__body > .cd-head:first-child { margin-top: 0; }
.cd-fold__sub { margin: 0 0 14px; color: var(--cd-muted); font-size: 14.5px; line-height: 1.55; }
html.cd-print-mode .cd-fold__sub { margin-top: -8px; }
@media (max-width: 759px) { .cd-fold__sum { padding: 14px 0; } }

/* ---- Due-diligence downloads: always open, below the folds (Nik, 2026-10-02) ---------------------- */
.cd-dl { margin-top: 44px; padding: 0; scroll-margin-top: 96px; }
.cd-dl .cd-fold__h { margin-bottom: 6px; }
.cd-dl__list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 4px; }
.cd-dl__row { background: var(--cd-card); border-color: var(--cd-line); }
.cd-dl__row:hover { border-color: var(--cd-accent); }
.cd-dl__row .doc-link__title { color: var(--cd-ink); }
.cd-dl__row .doc-link__desc { color: var(--cd-muted); }
.cd-dl__row > svg { color: var(--cd-accent); margin-top: 8px; }
.cd-dl__meta { margin-top: 8px; font-size: 12.5px; font-weight: 600; color: var(--cd-ink-2); font-variant-numeric: tabular-nums; }
.cd-dl__url { display: none; margin-top: 4px; font-size: 12px; line-height: 1.4; color: var(--cd-muted); overflow-wrap: anywhere; text-align: start; }
.cd-dl__none { margin: 14px 0 0; font-size: 13.5px; line-height: 1.55; color: var(--cd-muted); }
@media (max-width: 860px) { .cd-dl__list { grid-template-columns: minmax(0, 1fr); } .cd-dl { margin-top: 32px; } }
/* Paper and the print view: the file rows show their URL as text; the print row has no use on paper. */
html.cd-print-mode .cd-dl__url { display: block; }
html.cd-print-mode .cd-dl__row--print, html.cd-print-mode .cd-dl__row > svg { display: none; }
html.cd-print-mode .cd-dl { margin-top: 64px; }
html.cd-print-mode .cd-dl__list { grid-template-columns: minmax(0, 1fr); }
html.cd-print-mode .cd-dl .cd-fold__sub { margin-top: 0; }

/* ---- Methodology, notes, legal (folds) -------------------------------- */
.cd-defs { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 28px; }
.cd-defs__item dt { font-size: 11px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--cd-accent); margin-bottom: 4px; }
.cd-defs__item dd { margin: 0; font-size: 13.5px; line-height: 1.6; color: var(--cd-ink-2); }
@media (max-width: 760px) { .cd-defs { grid-template-columns: minmax(0, 1fr); } }
.cd-sec { scroll-margin-top: 96px; }
.cd-legal__sec { margin-top: 14px; }
.cd-legal__sec h3 { font-size: 14px; font-weight: 600; color: var(--cd-ink); margin-bottom: 4px; }
.cd-legal__sec p { font-size: 13.5px; line-height: 1.6; color: var(--cd-ink-2); }
.cd-notes__list { margin: 0; padding-inline-start: 0; list-style: none; display: grid; gap: 10px; font-size: 13px; line-height: 1.55; color: var(--cd-ink-2); }
.cd-notes__list li { scroll-margin-top: 96px; padding-inline-start: 2px; }
html.cd-print-mode .cd-notes__list { padding-inline-start: 28px; list-style: decimal; }
.cd-notes__list li::marker { color: var(--cd-accent); font-weight: 600; }
.cd-notes__list li:target { outline: 1px solid var(--cd-line-accent); outline-offset: 4px; border-radius: 2px; }
.cd-notes__label { display: block; font-weight: 600; color: var(--cd-ink); }
.cd-notes__p { display: block; margin-top: 2px; }
.cd-notes__p strong, .cd-legal__sec strong, .cd-defs strong { color: var(--cd-ink); }

.cd-printbar { flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-bottom: 40px; }
.cd-printbar__note { font-size: 13px; color: var(--cd-muted); }

/* ---- Disclosure block at the foot of the page --------------------------------------- */
.cd-riskband { padding-top: 48px; padding-bottom: 48px; }
.cd-riskband__legal { max-width: 1080px; margin: 0 auto 26px; font-size: 14px; line-height: 1.6; color: var(--c-white); }
.cd-riskband__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 30px; }
@media (max-width: 760px) {
  .cd-riskband { padding-top: 28px; padding-bottom: 28px; }
  .cd-riskband .risk-ack-band__grid { gap: 16px; }
  .cd-riskband h3 { font-size: 15px; margin-bottom: 4px; }
  .cd-riskband p { font-size: 13px; line-height: 1.5; }
  .cd-riskband__legal { font-size: 13px; line-height: 1.5; margin-bottom: 18px; }
  .cd-riskband__actions { margin-top: 20px; }
}

/* Print view on screen (?print=1): the same light set, so the page behind the print
   dialog already looks like the paper copy. Mirrors the @media print tokens below. */
html.cd-print-mode {
    --c-white: #08182F;
    --c-grey: #4B5563;
    --bg-page: #FFFFFF;
    --bg-card: transparent;
    --bd-card: #D6DAE3;
    --bd-gold: #BE9A62;
    --c-gold-light: #6E5330;
}
html.cd-print-mode, html.cd-print-mode body { background: #FFFFFF !important; color: #08182F; }
html.cd-print-mode .cd-root {
    --cd-ink: #08182F;
    --cd-ink-2: #1E2743;
    --cd-muted: #4B5563;
    --cd-accent: #6E5330;
    --cd-accent-2: #6E5330;
    --cd-line: #D6DAE3;
    --cd-line-accent: #BE9A62;
    --cd-card: transparent;
    --cd-surface: #FFFFFF;
    --cd-pos: #15803D;
    --cd-neg: #B42318;
    --cd-grid: #E3E6EC;
    --cd-ddwash: rgba(224, 69, 69, 0.14);
    --cd-split-b: #8A94A8;
}
html.cd-print-mode .site-header, html.cd-print-mode .site-footer, html.cd-print-mode .cd-asofbar,
html.cd-print-mode .cd-riskband__actions, html.cd-print-mode .contact .form,
html.cd-print-mode .page-hero__corner { display: none !important; }
/* Chart chrome in the light print view: the hover box, the crosshair and the Log/Linear switch
   carry dark-theme colours of their own, so they are re-themed here (2026-10-02). */
html.cd-print-mode .cd-chart__tip {
    background: rgba(255, 255, 255, 0.97);
    border-color: var(--cd-line-accent);
    box-shadow: 0 8px 24px rgba(8, 24, 47, 0.14);
    color: var(--cd-ink);
}
html.cd-print-mode .cd-crosshair { stroke: rgba(8, 24, 47, 0.35); }
html.cd-print-mode .cd-scale { border-color: var(--cd-line); }
html.cd-print-mode .cd-scale button { color: var(--cd-muted); }
html.cd-print-mode .cd-scale button.is-active { background: #EEF0F4; color: var(--cd-ink); }
@media print { .cd-scale, .cd-chart__tip, .cd-crosshair { display: none !important; } }
html.cd-print-mode .page-hero, html.cd-print-mode .cd-riskband, html.cd-print-mode .contact { background: none !important; }
html.cd-print-mode .cd-root .page-hero h1, html.cd-print-mode .cd-riskband h3 { color: #08182F; }
html.cd-print-mode .cd-riskband p, html.cd-print-mode .cd-riskband__legal, html.cd-print-mode .cd-root .page-hero__sub { color: #1E2743; }
html.cd-print-mode .cd-table .cd-table__col--live, html.cd-print-mode .cd-table .cd-table__col--sim { background: rgba(190, 154, 98, 0.16); }

/* =============================================================================
   Print: light A4 (the extended view is the printable one; the compact page
   prints the same way). Running footer and page numbers: CSS @page margin boxes;
   their text is written by the component (it carries the as-of and printed dates).
   ========================================================================== */
@page {
  size: A4;
  margin: 14mm 12mm 18mm 12mm;
  @bottom-left { font: 6.5pt/1.3 Inter, system-ui, sans-serif; color: #4B5563; vertical-align: top; padding-top: 4mm; }
  @bottom-right { font: 6.5pt Inter, system-ui, sans-serif; color: #4B5563; vertical-align: top; padding-top: 4mm; width: 24mm; text-align: right; }
}

@media print {
  :root {
    --c-white: #08182F;
    --c-grey: #4B5563;
    --bg-page: #FFFFFF;
    --bg-card: transparent;
    --bd-card: #D6DAE3;
    --bd-gold: #BE9A62;
    --c-gold-light: #6E5330;
  }
  html, body { background: #FFFFFF !important; color: #08182F; }
  body { font-size: 10pt; }
  .cd-root {
    --cd-ink: #08182F;
    --cd-ink-2: #1E2743;
    --cd-muted: #4B5563;
    --cd-accent: #6E5330;
    --cd-accent-2: #6E5330;
    --cd-line: #D6DAE3;
    --cd-line-accent: #BE9A62;
    --cd-card: transparent;
    --cd-surface: #FFFFFF;
    --cd-pos: #15803D;
    --cd-neg: #B42318;
    --cd-grid: #E3E6EC;
    --cd-ddwash: rgba(224, 69, 69, 0.14);
    --cd-split-b: #8A94A8;
  }
  /* Site chrome and screen-only controls */
  .site-header, .site-footer, .cd-asofbar, .cd-switch-wrap, .cd-printbar, .cd-scale,
  .page-hero__corner, .hero__lattice, .hero__glow, .cd-chart__tip, .cd-riskband__actions,
  .cd-tip, .cd-coll__inline { display: none !important; }
  .cd-riskband { padding: 6mm 0 0 !important; background: none !important; border: 0 !important; }
  .cd-riskband__legal { font-size: 8.5pt; margin: 0 0 3mm; color: #1E2743; }
  .cd-riskband .risk-ack-band__grid { gap: 3mm; max-width: none; }
  .cd-riskband h3 { font-size: 9pt; color: #08182F; margin-bottom: 1mm; }
  .cd-riskband p { font-size: 8pt; color: #1E2743; line-height: 1.45; }
  .cd-riskband .risk-ack-band__grid > div { break-inside: avoid; }
  .cd-subfold > .cd-coll__notes { display: grid !important; }
  .page-hero { min-height: 0 !important; padding: 0 0 6mm !important; background: none !important; border: 0 !important; }
  .page-hero__inner { text-align: start !important; margin: 0 !important; max-width: none !important; }
  .cd-root .page-hero h1 { font-size: 22pt; white-space: normal; color: #08182F; }
  .cd-root .page-hero h1 .cd-brand { position: static; width: auto; height: auto; overflow: visible; clip: auto; }
  .cd-root .page-hero__sub { font-size: 9.5pt; margin: 2mm 0 0 !important; max-width: none; color: #1E2743; }
  .page-hero__eyebrow { color: #6E5330 !important; }
  .page-section, .cd-page { padding: 0 !important; background: none !important; }
  .container { max-width: none !important; padding: 0 !important; }

  .cd-head { margin: 7mm 0 3mm; break-after: avoid; }
  .cd-head h2, .cd-fold__h { font-size: 14pt; }
  .cd-head p { font-size: 9pt; }
  h2, h3, dt { break-after: avoid; }
  .cd-kpis { gap: 2mm; }
  .cd-kpi, .cd-card, .cd-coll__now, .cd-chart { border-color: #D6DAE3; }
  .cd-kpis, .cd-kpi, .cd-coll__now, .cd-chart__bar, .cd-chart__svg, .cd-scroll, .cd-grid3 > .cd-card, .cd-stack > .cd-card { break-inside: avoid; }
  .cd-chart__ddhead { break-after: avoid; }
  .cd-kpi { padding: 2.5mm 3mm; }
  .cd-kpi__value { font-size: 15pt; }
  .cd-chart { padding: 2mm; }
  .cd-chart__svg { cursor: default; }
  .cd-legend__item { padding: 1mm 2mm; font-size: 8pt; }
  .cd-legend__item.is-off { display: none; }

  .cd-scroll { overflow: visible !important; }
  .cd-monthly, .cd-table, .cd-table--coll, .cd-tiers-table { min-width: 0 !important; width: 100%; }
  .cd-monthly { font-size: 7pt; border-spacing: 1px; }
  .cd-monthly td { padding: 1.4mm 0.5mm; color: #08182F; }
  .cd-monthly th { font-size: 6.5pt; padding: 1mm 0.5mm; }
  .cd-table th, .cd-table td { padding: 1.4mm 2mm; font-size: 8pt; white-space: nowrap; }
  .cd-table tbody th { min-width: 0 !important; white-space: normal; }
  .cd-table__name { font-size: 7pt; }
  .cd-table__sub { font-size: 6.5pt; }
  .cd-table tbody th, .cd-table thead th:first-child, .cd-monthly tbody th, .cd-monthly thead th:first-child { position: static; }
  .cd-table .cd-table__col--live, .cd-table .cd-table__col--sim { background: rgba(190, 154, 98, 0.16); }
  .cd-table .cd-table__col--replay { background: rgba(190, 154, 98, 0.07); }
  tr, .contact .faq details, .cd-legal__sec, .cd-notes__list li, .cd-defs__item, .cd-spec, .cd-coll__note { break-inside: avoid; }
  thead { display: table-header-group; }
  html:not(.cd-print-mode) .cd-table--risk .cd-col-other { display: table-cell !important; }

  .cd-grid2, .cd-grid3 { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 3mm; }
  .cd-grid3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .cd-stack { gap: 3mm; }
  .cd-cap__stats strong, .cd-stats strong { font-size: 10.5pt; white-space: nowrap; }
  .cd-cap__stats, .cd-stats { gap: 2mm 3mm; }
  .cd-cap__stats span, .cd-stats span { font-size: 7pt; }
  .cd-card { padding: 3mm; }
  .cd-card__lead, .cd-spec__b, .cd-coll__note dd, .cd-defs__item dd, .cd-legal__sec p { font-size: 8.5pt; }
  .cd-kv, .cd-tiers-table { font-size: 8.5pt; }
  .cd-kv th, .cd-kv td { padding: 1.2mm 0; }
  .cd-coll__notes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cd-coll__note--history { grid-column: span 2; }
  .cd-defs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cd-notes__list { font-size: 8pt; gap: 1.5mm; }
  .cd-fn, .cd-head h2 .cd-fn, .cd-head h3 .cd-fn { font-size: 6.5pt; vertical-align: top; line-height: 1; margin-top: 0; align-self: auto; }
  .cd-fn__a { color: #6E5330; }
  .cd-legal { break-before: page; }
  .cd-fold__icon { display: none; }
  .cd-fold__sum { padding: 0; margin: 7mm 0 3mm; break-after: avoid; }
  .cd-fold__body { padding: 0; }
  .cd-subfold__sum { display: none; }
  .cd-fold, .cd-subfold { border: 0; }
  a { color: inherit; text-decoration: none; }
  .cd-refline a[href^="http"]::after { content: " " attr(href); font-size: 7pt; color: #4B5563; }
  .cd-refline .btn--link svg { display: none; }
  .cd-dl { margin-top: 7mm; break-inside: avoid; }
  .cd-dl__list { grid-template-columns: minmax(0, 1fr); gap: 2mm; }
  .cd-dl__row { padding: 2.5mm 3mm; grid-template-columns: 9mm minmax(0, 1fr); break-inside: avoid; background: none; }
  .cd-dl__row--print, .cd-dl__row > svg { display: none !important; }
  .cd-dl .doc-link__icon { width: 9mm; height: 9mm; font-size: 6.5pt; }
  .cd-dl .doc-link__body { font-size: 8.5pt; }
  .cd-dl .doc-link__desc, .cd-dl__none { font-size: 8pt; }
  .cd-dl__meta { font-size: 7.5pt; margin-top: 1mm; }
  .cd-dl__url { display: block; font-size: 7.5pt; margin-top: 0.5mm; }
}

/* Phones: the terms list as two columns of label-over-value tiles (screen only). */
@media screen and (max-width: 759px) {
  .cd-kv tbody { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 14px; }
  .cd-kv tr { display: flex; flex-direction: column; padding: 6px 0; border-bottom: 1px solid var(--cd-line); }
  .cd-kv th, .cd-kv td, .cd-kv tr:last-child th, .cd-kv tr:last-child td { border-bottom: 0; padding: 0; text-align: start; }
  .cd-kv th { font-size: 11.5px; display: flex; align-items: center; }
  .cd-kv td { font-size: 13px; }
}
.cd-root .page-hero__corner-side--right { gap: 6px 18px; flex-wrap: wrap; justify-content: flex-end; }
.cd-sec--open > .cd-head--plain + .cd-head { margin-top: 0; }
.cd-grid2--terms { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.cd-signalgrid--single, .cd-grid2--terms:has(> .cd-card:only-child) { grid-template-columns: minmax(0, 1fr); }
@media (max-width: 960px) { .cd-grid2--terms { grid-template-columns: minmax(0, 1fr); } }
.cd-tiers-table thead th { white-space: normal; vertical-align: bottom; }
.cd-tiers-table { min-width: 0; }
.cd-cap__stats strong { font-size: 18px; white-space: nowrap; }

/* Print overrides for rules declared after the main print block. */
@media print {
  .cd-cap__stats strong, .cd-stats strong { font-size: 10pt; }
  .cd-cap__bar, .cd-split__bar, .cd-coll__bar { background: #E3E6EC; }
}

/* Get Started block (shared PageContact: FAQ left, form right). On paper the FAQ
   is read, not clicked: answers are open (the ::details-content rule reveals the
   panels of closed <details> in current engines; the page script also sets
   [open] on beforeprint for the rest), the form is dropped and the grid is one column. */
@media print {
  .contact { background: none !important; padding: 6mm 0 0 !important; break-before: page; }
  .contact .form, .contact .faq__foot { display: none !important; }
  .contact__grid { display: block !important; }
  .contact .faq details::details-content { content-visibility: visible; display: block; height: auto; }
  .contact .faq summary::after { display: none; }
  .contact .faq details { padding: 2.5mm 0; }
  .contact .faq summary { font-size: 9.5pt; }
  .contact .faq__body { font-size: 8.5pt; }
}
.cd-kpi__basis { font-style: italic; }

/* ---- Right-to-left (ar): figures and chart geometry stay left-to-right ------------------- */
.cd-chart__svg, .cd-chart__svg text { direction: ltr; }
.cd-axis, .cd-endlabel { unicode-bidi: isolate; }
.cd-kpi__value, .cd-table td, .cd-monthly td, .cd-kv td, .cd-tiers-table td, .cd-cap__stats strong, .cd-stats strong,
.cd-coll__legend strong, .cd-split__legend strong, .cd-chart__tiprow > span:not(:first-child) { unicode-bidi: isolate; }

/* Smallest phones: the Gross / Net 25 / Net 30 switch fits without widening the page (2026-10-02). */
@media (max-width: 380px) {
  .cd-switch__btn, .cd-asofbar .cd-switch__btn { padding: 6px 7px; font-size: 11px; }
  .cd-asofbar__date { font-size: 11px; }
  .cd-asofbar__in { gap: 6px; }
}
