/* Long-form article layout + chart kit for /blog posts.
   Link AFTER tokens.css, components.css and site.css. Every color is a token or a mix of tokens. */

.article {
  --rail: 16.5rem;                                   /* left rail that carries each section title */
  --measure: 41rem;                                  /* running-text line length */
  --a-pad: calc(var(--space-8) + var(--space-5));    /* 72px section rhythm */
  --a-small: 0.875rem;                               /* chart labels, table cells, notes */

  /* Surface-aware ink. Light grounds here; .surface-dark flips them below. */
  --a-text: var(--text-body-light);
  --a-strong: var(--c-evergreen);
  --a-muted: var(--text-muted);
  --a-hair: var(--border);
  --a-accent: var(--c-coral-deep);

  /* Chart palette. Evergreen carries the data; coral never touches a price.
     Band ramp passes the ordinal checks on the white card (2.2:1 at the light end); context bar is 3.6:1. */
  --viz-ink: var(--c-evergreen);
  --viz-ink-hover: var(--evergreen-hover);
  --viz-context: color-mix(in srgb, var(--c-mist) 80%, var(--c-evergreen));
  --viz-track: color-mix(in srgb, var(--c-evergreen) 8%, var(--surface));
  --viz-row-hover: color-mix(in srgb, var(--c-evergreen) 4%, transparent);
  --viz-band-1: color-mix(in srgb, var(--c-evergreen) 36%, var(--surface));
  --viz-band-2: color-mix(in srgb, var(--c-evergreen) 56%, var(--surface));
  --viz-band-3: color-mix(in srgb, var(--c-evergreen) 78%, var(--surface));
  --viz-band-4: var(--c-evergreen);
}
.article .surface-dark {
  --a-text: color-mix(in srgb, var(--c-sandstone) 88%, var(--c-evergreen));
  --a-strong: var(--c-sandstone);
  --a-muted: var(--c-mist);
  --a-hair: color-mix(in srgb, var(--c-sandstone) 16%, transparent);
  --a-accent: var(--c-coral-base);
  --viz-ink: var(--c-sandstone);
  --viz-ink-hover: var(--surface-hover);
  --viz-track: color-mix(in srgb, var(--c-sandstone) 12%, transparent);
  --viz-row-hover: color-mix(in srgb, var(--c-sandstone) 6%, transparent);
}
/* Browsers without color-mix(): flat tokens, so no bar or hairline goes missing. */
@supports not (color: color-mix(in srgb, white, black)) {
  .article { --viz-context: var(--c-mist); --viz-track: var(--border); --viz-row-hover: transparent;
    --viz-band-1: var(--surface-sunken); --viz-band-2: var(--c-mist); --viz-band-3: var(--text-muted); }
  .article .surface-dark { --a-text: var(--c-sandstone); --a-hair: var(--evergreen-hover);
    --viz-track: var(--evergreen-hover); --viz-row-hover: transparent; }
}
.article .section { padding: var(--a-pad) 0; }
.article [id] { scroll-margin-top: calc(64px + var(--space-5)); }
.article strong { font-weight: var(--weight-semibold); }
.article .surface-light .eyebrow, .article .surface-sunken .eyebrow { color: var(--c-evergreen); }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap; border: 0; }

/* ---------- Article head ---------- */
.ahead { padding-bottom: var(--a-pad); }
.ahead h1 { max-width: none; text-wrap: balance; }
.ahead h1 .accent { display: block; color: var(--c-coral-base); }
.crumb a { font-size: var(--text-caption); font-weight: var(--weight-medium); color: var(--a-muted); text-decoration: none; }
.crumb a:hover { text-decoration: underline; text-underline-offset: 3px; }
.crumb a:focus-visible { outline: var(--focus-width) solid var(--focus); outline-offset: 2px; border-radius: var(--radius-sm); }
.byline { display: flex; align-items: center; gap: var(--space-3); margin-top: var(--space-5); }
.byline__photo { width: 44px; height: 44px; border-radius: var(--radius-full); object-fit: cover; object-position: 50% 12%; }
.ahead .byline__text { margin: 0; opacity: 1; font-size: var(--text-caption); font-weight: var(--weight-medium);
  line-height: 1.5; color: var(--a-muted); }
.byline__name { display: block; font-size: var(--a-small); font-weight: var(--weight-semibold); color: var(--a-strong); }
.short { margin-top: var(--space-8); padding-top: var(--space-6); border-top: 1px solid var(--a-hair); }
.short__list { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-6) var(--space-8); margin: 0; }
.short__list dd { margin: var(--space-2) 0 0; color: var(--a-text); }
.short__list strong { color: var(--a-strong); }

/* ---------- Rail + body grid ---------- */
.a-grid { display: grid; grid-template-columns: var(--rail) minmax(0, 1fr); column-gap: var(--space-8); row-gap: var(--space-6); }
.a-grid + .a-grid { margin-top: var(--space-8); padding-top: var(--space-8); border-top: 1px solid var(--a-hair); }
/* The rail stretches to its own row; the title sticks inside it, so it lets go before a full-width figure. */
.a-rail { grid-column: 1; }
.a-rail > .h2 { position: sticky; top: calc(64px + var(--space-5)); }
.a-rail .h2, .a-rail .h3 { text-wrap: balance; }
.a-rail .h2 span { display: block; }
.a-rail .eyebrow { display: block; margin: 0 0 var(--space-2); }
.a-body { grid-column: 2; min-width: 0; }
.a-wide { grid-column: 1 / -1; min-width: 0; margin: 0; }
.a-body > * { margin: 0; }
.a-body > * + * { margin-top: var(--space-4); }
.a-body > p, .a-body > ul, .a-body > ol { max-width: var(--measure); }
.a-body > p { color: var(--a-text); text-wrap: pretty; }
.a-body > figure, .a-body > aside { margin-top: var(--space-5); }
.a-body > figure + *, .a-body > aside + * { margin-top: var(--space-5); }
.a-body > h3, .a-body > figure + h3 { margin-top: var(--space-8); }
/* In-text links: ink carries the contrast (coral-deep is under 3:1 on the sunken ground); coral only underlines. */
.a-body p .link, .viz__source .link { color: var(--a-strong); text-decoration: underline; text-decoration-color: var(--a-accent);
  text-decoration-thickness: 1px; text-underline-offset: 3px; }
.a-body p .link:hover, .viz__source .link:hover { text-decoration-thickness: 2px; }

/* Footnote markers */
.fn { font-size: 0.7em; line-height: 0; }
.fn a { padding: 0 2px; color: var(--a-strong); font-weight: var(--weight-semibold); text-decoration: none; }
.fn a:hover { text-decoration: underline; }
.fn a:focus-visible, .toc a:focus-visible, .notes__back:focus-visible { outline: var(--focus-width) solid var(--focus);
  outline-offset: 2px; border-radius: var(--radius-sm); }

/* ---------- In this guide ---------- */
.toc ol { list-style: none; margin: var(--space-3) 0 0; padding: 0; counter-reset: toc; border-top: 1px solid var(--a-hair); }
.toc li { counter-increment: toc; border-bottom: 1px solid var(--a-hair); }
.toc a { display: flex; gap: var(--space-3); padding: var(--space-2) 0; font-size: var(--a-small); font-weight: var(--weight-medium);
  line-height: 1.4; color: var(--a-strong); text-decoration: none; }
.toc a::before { content: counter(toc, decimal-leading-zero); color: var(--a-muted); font-variant-numeric: tabular-nums; }
.toc a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Three quotes, one description ---------- */
.tabs__row { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-4); list-style: none; margin: 0; padding: 0; }
.tabs__tab { padding: var(--space-4) var(--space-5) var(--space-5); }
.tabs__tab .eyebrow { margin: 0; }
.tabs__price { margin: var(--space-2) 0 0; font-size: clamp(1.25rem, 0.6rem + 2.6vw, 1.875rem); font-weight: var(--weight-semibold);
  line-height: 1.1; color: var(--a-strong); }
.tabs__desc { margin: var(--space-2) 0 0; font-size: var(--a-small); line-height: 1.4; color: var(--a-muted); }
.tabs__gap { position: relative; margin: var(--space-3) 0 0; text-align: center; font-size: var(--text-caption);
  font-weight: var(--weight-semibold); color: var(--a-strong); }
/* Dimension line from the first quote to the third */
.tabs__gap::before { content: ""; position: absolute; top: 50%; height: 9px; margin-top: -4px;
  left: calc((100% - 2 * var(--space-4)) / 6); right: calc((100% - 2 * var(--space-4)) / 6);
  border: solid var(--border-strong); border-width: 0 1px;
  background: linear-gradient(var(--border-strong), var(--border-strong)) center / 100% 1px no-repeat; }
.tabs__gap span { position: relative; padding: 0 var(--space-3); background: var(--bg-light); }

/* ---------- Chart kit ---------- */
.viz { margin: 0; }
.viz__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between;
  gap: var(--space-2) var(--space-5); margin-bottom: var(--space-4); }
.viz__title { margin: 0; font-size: var(--text-body); font-weight: var(--weight-semibold); line-height: 1.35; color: var(--a-strong); }
.viz__sub { margin: var(--space-1) 0 0; font-size: var(--text-caption); line-height: 1.4; color: var(--a-muted); }
.viz__legend { display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-4); list-style: none; margin: 0; padding: 0;
  font-size: var(--text-caption); font-weight: var(--weight-medium); line-height: 1.4; color: var(--a-muted); }
.viz__legend li { display: flex; align-items: center; gap: var(--space-2); }
.viz__key { flex: none; width: 10px; height: 10px; border-radius: var(--radius-sm); background: var(--viz-ink); }
.viz__key--context { background: var(--viz-context); }
.viz__key--line { width: 2px; height: 14px; border-radius: 0; }
.viz__foot { margin-top: var(--space-4); padding-top: var(--space-4); border-top: 1px solid var(--a-hair); }
.viz__source { margin: var(--space-4) 0 0; font-size: var(--text-caption); line-height: 1.5; color: var(--a-muted); }
.viz__source .link { white-space: nowrap; }

/* Horizontal bars. Each row is a label/value pair, so the chart is its own table view. */
.bars { margin: 0; --tick: 5.5rem; }
.bars__row { display: grid; grid-template-columns: min(var(--bars-label, 16rem), 48%) minmax(0, 1fr); column-gap: var(--space-4);
  align-items: center; margin: 0 calc(-1 * var(--space-2)); padding: 0 var(--space-2); border-radius: var(--radius-sm); }
.bars__row:hover { background: var(--viz-row-hover); }
.bars__label { padding: var(--space-2) 0; font-size: var(--a-small); line-height: 1.35; color: var(--a-text); }
.bars__plot { display: flex; align-items: center; gap: var(--space-2); min-height: 44px; margin: 0;
  border-left: 1px solid var(--border-strong); }
.bars__bar { display: block; flex: none; width: calc((100% - var(--tick)) * var(--v) / var(--max)); height: 20px;
  border-radius: 0 var(--radius-md) var(--radius-md) 0; overflow: hidden; }
.bars__fill { display: block; height: 100%; background: var(--viz-ink); }
.bars__row:hover .bars__fill { background: var(--viz-ink-hover); }
.bars__row--context .bars__fill, .bars__row--context:hover .bars__fill { background: var(--viz-context); }
.bars__value { font-size: var(--a-small); font-weight: var(--weight-semibold); color: var(--a-strong);
  font-variant-numeric: tabular-nums; white-space: nowrap; }

/* Track variant: every bar is read against the same total */
.bars--track .bars__plot { border-left: 0; }
.bars__track { flex: 1; min-width: 0; height: 20px; background: var(--viz-track); border-radius: 0 var(--radius-md) var(--radius-md) 0; }
.bars--track .bars__bar { width: calc(100% * var(--v) / var(--max)); }
/* The share leads; the count sits beside it, smaller and quieter */
.bars--track .bars__value { min-width: 2.75rem; text-align: right; font-size: var(--text-body); }
.bars__count { min-width: 2.5rem; text-align: right; font-size: var(--text-caption); font-weight: var(--weight-medium);
  color: var(--a-muted); font-variant-numeric: tabular-nums; white-space: nowrap; }

/* Bars + one headline figure */
.viz__split { display: grid; grid-template-columns: minmax(0, 1fr) 10.5rem; column-gap: var(--space-6); align-items: center; }
.stat { margin: 0; padding-left: var(--space-6); border-left: 1px solid var(--a-hair); }
.stat__value { display: block; font-size: var(--text-display); font-weight: var(--weight-semibold); line-height: 1;
  letter-spacing: -0.02em; color: var(--a-strong); }
.stat__label { display: block; margin-top: var(--space-2); font-size: var(--text-caption); font-weight: var(--weight-medium);
  line-height: 1.4; color: var(--a-muted); }

/* Meter: one share against the whole */
.meter__text { margin: 0; font-size: var(--a-small); color: var(--a-text); }
.meter__value { margin-right: var(--space-1); font-size: var(--text-h3); line-height: 1; color: var(--a-strong); }
.meter__track { display: block; height: 8px; margin-top: var(--space-3); background: var(--viz-track);
  border-radius: var(--radius-sm); overflow: hidden; }
.meter__fill { display: block; width: calc(100% * var(--v) / 100); height: 100%; background: var(--viz-ink); }

/* Calls chart: rows grouped under the check they belong to */
.calls { --max: 95; border-bottom: 1px solid var(--a-hair); }
.calls__cols { display: flex; justify-content: flex-end; gap: var(--space-2); margin: 0 0 var(--space-2);
  font-size: var(--text-caption); font-weight: var(--weight-medium); white-space: nowrap; color: var(--a-muted); }
.calls__cols span { text-align: right; }
.calls__cols span:last-child { min-width: 2.5rem; }   /* sits over the count column */
.calls__group { display: grid; grid-template-columns: 4.25rem minmax(0, 1fr); column-gap: var(--space-4);
  padding: var(--space-1) 0; border-top: 1px solid var(--a-hair); }
.calls__check { margin: 0; padding-top: calc((44px - 1.3em) / 2); }
.calls .bars { --bars-label: 17.5rem; }

/* Hover readout (blog/article.js). Enhances only: every value is already printed in the chart. */
.viz-tip { position: fixed; left: 0; top: 0; z-index: 60; max-width: 17rem; padding: var(--space-2) var(--space-3);
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md); box-shadow: var(--elev-3);
  font-family: var(--font-body); font-size: var(--text-caption); line-height: 1.4; color: var(--text-muted);
  pointer-events: none; opacity: 0; transition: opacity var(--motion-fast) var(--ease-out); }
.viz-tip.is-on { opacity: 1; }
.viz-tip strong { display: block; font-size: var(--a-small); color: var(--c-evergreen); }

/* ---------- Price bands: range chart + what each band usually buys ----------
   Small screens: one card per band, each with its range on the same $0 to $8,000 scale.
   Wide screens: the bands become columns under one shared plot (subgrid keeps the rows aligned). */
.bands { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-4); }
.bands__labels { display: none; }
.bands__key { margin-bottom: var(--space-4); }
.band { margin: 0; }
.band__range { margin: 0; font-family: var(--font-body); font-size: var(--text-body-lg); font-weight: var(--weight-semibold);
  line-height: 1.3; color: var(--a-strong); }
.band__plot { position: relative; height: 20px; margin-top: var(--space-3); background: var(--viz-track);
  border-radius: 0 var(--radius-md) var(--radius-md) 0; }
.band__bar { position: absolute; top: 0; bottom: 0; left: calc(100% * var(--from) / 8000);
  width: calc(100% * (var(--to) - var(--from)) / 8000); border-radius: 0 var(--radius-md) var(--radius-md) 0; overflow: hidden; }
.band__fill { display: block; width: 100%; height: 100%; background: var(--tone); }
/* "And up": the top band has no ceiling, so its bar fades instead of ending */
.band--open .band__bar { -webkit-mask-image: linear-gradient(to right, black 55%, rgb(0 0 0 / 0.3));
  mask-image: linear-gradient(to right, black 55%, rgb(0 0 0 / 0.3)); }
/* National average, $1,800. The surface-colored edge keeps it legible where it crosses a bar. */
.band__plot::after { content: ""; position: absolute; top: -4px; bottom: -4px; left: calc(100% * 1800 / 8000); width: 1px;
  background: var(--viz-ink); box-shadow: 1px 0 0 var(--surface), -1px 0 0 var(--surface); }
.band__ref { display: none; }
.band__scale { display: flex; justify-content: space-between; margin: var(--space-1) 0 0; font-size: var(--text-caption);
  line-height: 1.4; color: var(--a-muted); font-variant-numeric: tabular-nums; }
.band__facts { margin: var(--space-4) 0 0; }
.band__facts > div { display: grid; grid-template-columns: 4rem minmax(0, 1fr); column-gap: var(--space-3);
  padding: var(--space-2) 0; border-top: 1px solid var(--a-hair); font-size: var(--a-small); line-height: 1.45; }
.band__facts > div:first-child { grid-template-columns: minmax(0, 1fr); }   /* "Who it usually is" reads as the card's subtitle */
.band__facts dt { font-weight: var(--weight-semibold); color: var(--a-strong); }
.band__facts dd { margin: 0; color: var(--a-text); }

@media (max-width: 999.98px) {
  .bandfig.card { padding: 0; background: none; border: 0; border-radius: 0; box-shadow: none; }   /* each band is the card */
}
@media (max-width: 640px) { .bands { grid-template-columns: 1fr; } }
@supports not (grid-template-rows: subgrid) {
  .bandfig.card { padding: 0; background: none; border: 0; border-radius: 0; box-shadow: none; }
}
@media (min-width: 1000px) {
  @supports (grid-template-rows: subgrid) {
    .bands { grid-template-columns: 8rem repeat(4, minmax(0, 1fr)); grid-template-rows: auto auto repeat(5, auto);
      gap: 0; margin-top: var(--space-5); }
    .bands__labels, .band { display: grid; grid-template-rows: subgrid; grid-row: 1 / -1; }
    .band.card { padding: 0; background: none; border: 0; border-radius: 0; box-shadow: none; }
    .bands__key { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip-path: inset(50%); }

    /* Row 1: shared plot. Gridlines sit on the band boundaries: $0, $1,200, $2,500, $5,000, $8,000. */
    .band__plot { grid-row: 1; height: 16rem; margin: 0; border-radius: 0;
      background:
        linear-gradient(var(--border-strong), var(--border-strong)) 0 100% / 100% 1px no-repeat,
        linear-gradient(var(--border), var(--border)) 0 85% / 100% 1px no-repeat,
        linear-gradient(var(--border), var(--border)) 0 68.75% / 100% 1px no-repeat,
        linear-gradient(var(--border), var(--border)) 0 37.5% / 100% 1px no-repeat,
        linear-gradient(var(--border), var(--border)) 0 0 / 100% 1px no-repeat; }
    .band__bar { top: auto; left: var(--space-3); width: 24px; bottom: calc(100% * var(--from) / 8000);
      height: calc(100% * (var(--to) - var(--from)) / 8000); border-radius: var(--radius-md) var(--radius-md) 0 0; }
    .band--open .band__bar { border-radius: 0;
      -webkit-mask-image: linear-gradient(to top, black 55%, rgb(0 0 0 / 0.3));
      mask-image: linear-gradient(to top, black 55%, rgb(0 0 0 / 0.3)); }
    .band__plot::after { top: auto; left: 0; right: 0; bottom: calc(100% * 1800 / 8000); width: auto; height: 1px;
      box-shadow: 0 1px 0 var(--surface), 0 -1px 0 var(--surface); }
    .band__ref { display: block; position: absolute; right: 0; bottom: calc(100% * 1800 / 8000 + var(--space-1));
      font-size: var(--text-caption); font-weight: var(--weight-semibold); line-height: 1; white-space: nowrap; color: var(--a-strong); }
    .band__scale { display: none; }
    .bands__axis { position: relative; }
    .bands__axis span { position: absolute; right: var(--space-3); bottom: calc(100% * var(--at) / 8000); transform: translateY(50%);
      font-size: var(--text-caption); line-height: 1; color: var(--a-muted); font-variant-numeric: tabular-nums; }

    /* Row 2: the band. Rows 3 to 7: what it usually buys. */
    .band__range { grid-row: 2; padding: var(--space-4) var(--space-3) var(--space-3); font-size: var(--text-body); }
    .band__facts { grid-row: 3 / -1; display: grid; grid-template-rows: subgrid; margin: 0; }
    .band__facts > div { display: block; padding: var(--space-3); }
    .band__facts dt { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip-path: inset(50%); }
    .bands__labels > span:nth-child(n + 3) { padding: var(--space-3) var(--space-3) var(--space-3) 0; border-top: 1px solid var(--a-hair);
      font-size: var(--text-caption); font-weight: var(--weight-semibold); line-height: 1.5; color: var(--a-strong); }
  }
}

/* ---------- What moves the price ---------- */
.drivers { display: grid; grid-template-columns: 1fr 1fr; column-gap: var(--space-6); border-bottom: 1px solid var(--a-hair); }
.drivers > div { padding: var(--space-4) 0; border-top: 1px solid var(--a-hair); }
.drivers dt { font-weight: var(--weight-semibold); color: var(--a-strong); }
.drivers dd { margin: var(--space-1) 0 0; color: var(--a-text); }
.callout__lead { margin: 0; font-size: var(--text-body-lg); font-weight: var(--weight-semibold); line-height: 1.4; color: var(--a-strong); }
.callout p + p { margin: var(--space-2) 0 0; color: var(--a-text); text-wrap: pretty; }

/* ---------- What the fee is for ---------- */
.runsheet { display: grid; grid-template-columns: repeat(3, 1fr); column-gap: var(--space-5); list-style: none;
  padding: 0; border-top: 1px solid var(--a-hair); }
.a-body > .runsheet { margin-top: var(--space-6); }
.a-body > .runsheet + * { margin-top: var(--space-6); }
.runsheet li { position: relative; padding-top: var(--space-4); }
.runsheet li::before { content: ""; position: absolute; left: 0; top: -1px; width: var(--space-5); height: 2px; background: var(--a-accent); }
.runsheet__time { display: block; font-size: var(--text-h3); font-weight: var(--weight-semibold); line-height: 1.1;
  color: var(--a-strong); }
.runsheet__what { display: block; margin-top: var(--space-2); font-size: var(--a-small); line-height: 1.5; color: var(--a-text); }
.a-body > p.statement { margin-top: var(--space-6); padding-top: var(--space-5); border-top: 2px solid var(--a-accent);
  font-family: var(--font-head); font-weight: var(--weight-semibold); font-size: clamp(1.375rem, 1.05rem + 1vw, 1.75rem);
  line-height: 1.38; color: var(--a-strong); }

/* ---------- Lists ---------- */
.checklist { list-style: none; padding: 0; border-bottom: 1px solid var(--a-hair); }
.checklist li { position: relative; padding: var(--space-4) 0 var(--space-4) calc(var(--space-5) + var(--space-3));
  border-top: 1px solid var(--a-hair); color: var(--a-text); }
.checklist li::before { content: ""; position: absolute; left: 0; top: calc(var(--space-4) + 0.25em); width: 16px; height: 16px;
  background: var(--surface); border: 1px solid var(--border-strong); border-radius: var(--radius-sm); }
.checklist strong { color: var(--a-strong); }
.flist { list-style: none; margin: 0; padding: 0; }
.flist li { position: relative; padding-left: var(--space-5); color: var(--a-text); }
.flist li + li { margin-top: var(--space-3); }
.flist li::before { content: ""; position: absolute; left: 0; top: 0.72em; width: 10px; height: 2px; background: var(--a-accent); }

/* ---------- The Four Checks ---------- */
.check { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); column-gap: var(--space-6);
  padding: var(--space-6) 0; border-top: 1px solid var(--a-hair); }
.a-body > .check { margin-top: 0; }
.a-body > figure + .check { margin-top: var(--space-8); }
.check__num { display: block; font-family: var(--font-head); font-weight: var(--weight-bold); font-size: var(--text-h2);
  line-height: 1; color: var(--a-accent); }
.check__head .h3 { margin-top: var(--space-3); text-wrap: balance; }
.check__why { margin: var(--space-3) 0 0; font-size: var(--a-small); line-height: var(--lh-body); color: var(--a-text); }
.check__ask { padding-left: var(--space-6); border-left: 1px solid var(--a-hair); }
.check__ask .eyebrow { margin: 0 0 var(--space-3); }
.a-body > .gear { margin-top: 0; padding-top: var(--space-5); border-top: 1px solid var(--a-hair); }

/* ---------- Closing + notes ---------- */
.closing { text-align: center; }
.closing .measure { margin-left: auto; margin-right: auto; }
.closing .h2 { text-wrap: balance; }
.closing .closing__text { margin-top: var(--space-4); margin-bottom: 0; opacity: 1; color: var(--a-text); }
.closing__cta { margin-top: var(--space-6); }
.article .notes.section { padding: var(--space-8) 0; }
.notes ol { list-style: none; margin: 0; padding: 0; counter-reset: note; }
.notes li { counter-increment: note; position: relative; max-width: var(--measure); padding-left: var(--space-5);
  font-size: var(--a-small); line-height: var(--lh-body); color: var(--a-text); }
.notes li + li { margin-top: var(--space-4); }
.notes li::before { content: counter(note); position: absolute; left: 0; top: 0.15em; font-size: var(--text-caption);
  font-weight: var(--weight-semibold); color: var(--a-strong); }
.notes strong { color: var(--a-strong); }
.notes__back { margin-left: var(--space-1); color: var(--a-strong); text-decoration: none; }

/* ---------- Motion: bars draw in once with their figure's reveal (transform only) ---------- */
html.js .reveal .bars__fill, html.js .reveal .meter__fill, html.js .reveal .band__fill {
  transform: translateX(-101%);
  transition: transform var(--motion-reveal) var(--ease-out) calc(160ms + var(--i, 0) * 70ms); }
html.js .reveal.is-in .bars__fill, html.js .reveal.is-in .meter__fill, html.js .reveal.is-in .band__fill { transform: none; }
@media (min-width: 1000px) {
  @supports (grid-template-rows: subgrid) {
    html.js .reveal .band__fill { transform: translateY(101%); }
    html.js .reveal.is-in .band__fill { transform: none; }
  }
}
@media (prefers-reduced-motion: reduce) {
  html.js .reveal .bars__fill, html.js .reveal .meter__fill, html.js .reveal .band__fill { transform: none; transition: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 999.98px) {
  .a-grid { grid-template-columns: minmax(0, 1fr); row-gap: var(--space-5); }
  .a-rail, .a-body { grid-column: 1; }
  .a-rail > .h2 { position: static; }
  .a-rail .h2 span:not(.eyebrow) { display: inline; }
  .toc { order: 2; }
}
@media (max-width: 760px) {
  .article { --a-pad: var(--space-8); }
  .short { margin-top: var(--space-6); }
  .viz__split { grid-template-columns: minmax(0, 1fr); row-gap: var(--space-4); }
  .stat { padding: var(--space-4) 0 0; border-left: 0; border-top: 1px solid var(--a-hair); }
}
@media (max-width: 640px) {
  .short__list, .drivers { grid-template-columns: 1fr; }
  .short__list { row-gap: var(--space-5); }
  .tabs__row { gap: var(--space-2); }
  .tabs__tab { padding: var(--space-3); }
  .tabs__gap::before { left: calc((100% - 2 * var(--space-2)) / 6); right: calc((100% - 2 * var(--space-2)) / 6); }
  .tabs__desc { font-size: var(--text-caption); }
  .viz.card:not(.bandfig) { padding: var(--space-4); }   /* the bands figure is not a card here; its band cards are */
  .bars { --tick: 4.5rem; }
  .bars__row { grid-template-columns: minmax(0, 1fr); padding-top: var(--space-2); padding-bottom: var(--space-2); }
  .bars__label { padding: 0 0 var(--space-1); }
  .bars__plot { min-height: 28px; }
  .calls__group { grid-template-columns: minmax(0, 1fr); padding: var(--space-3) 0 var(--space-1); }
  .calls__check { padding-top: 0; }
  .runsheet { grid-template-columns: 1fr; border-top: 0; }
  .runsheet li { padding: var(--space-4) 0; border-top: 1px solid var(--a-hair); }
  .check { grid-template-columns: minmax(0, 1fr); row-gap: var(--space-5); }
  .check__ask { padding: var(--space-5) 0 0; border-left: 0; border-top: 1px solid var(--a-hair); }
}
@media (max-width: 359.98px) {   /* narrowest phones: the three quote cards share the column instead of running past it */
  .tabs__row { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .tabs__tab { padding: var(--space-3) var(--space-2); }
  .tabs__price { font-size: 1.125rem; }
}

/* ---------- Print: evergreen ink on white paper, charts kept, chrome dropped ---------- */
@media print {
  .nav, .crumb, .toc, .viz-tip, .closing, .footer__grid { display: none; }
  .article .surface-dark, .footer { background: none; color: var(--c-evergreen);
    --c-mist: var(--text-muted); --a-text: var(--text-body-light); --a-strong: var(--c-evergreen); --a-muted: var(--text-muted);
    --a-hair: var(--border); --a-accent: var(--c-coral-deep); --viz-ink: var(--c-evergreen);
    --viz-track: color-mix(in srgb, var(--c-evergreen) 8%, var(--surface)); }
  .article .surface-light, .article .surface-sunken { background: none; }
  .ahead h1 .accent { color: var(--c-coral-deep); }
  .article .page-head { padding-top: var(--space-5); }
  .footer { padding: var(--space-5) 0; }
  .footer .footer__legal { margin-top: 0; border-top-color: var(--border); }
  .footer .footer__legal p, .footer .footer__legal a { color: var(--c-charcoal); opacity: 1; }
  .a-rail > .h2 { position: static; }
  html.js .reveal, html.js .reveal .bars__fill, html.js .reveal .meter__fill, html.js .reveal .band__fill { opacity: 1; transform: none; }
  .viz, .check, .band, .callout, .runsheet, .flist { break-inside: avoid; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
