/* ==========================================================================
   HOMEPAGE ONLY. Loaded by frontend/index.html after style.css, with its own
   ?v= stamp, never by any other page and never part of the site-wide
   ASSET_VER. Everything here is scoped under main.home, so the shared header,
   navigation, footer and alert modal keep style.css alone. Dark mode is the
   existing html.dark class; every colour below is a token set once per theme.

   Direction B, "Data Intelligence", phase 1a (2026-11-22): a CSS-only restyle
   of the homepage content. The markup, text, order, headings, landmarks and
   links are those of 2026-11-04 (hero variant C, 2026-11-08; the measures
   line, 2026-11-12; the fix batch, 2026-11-22). No transition or animation.

   Vocabulary: a grey page with white panels; one panel treatment (panel
   background, 1px rule border, 10px radius, no shadow); controls at 8px and
   the cite box at 6px; spacing on 4, 8, 12, 16, 20, 24, 32, 40, 56; type on
   60/36/26/24/18/16/15/14/13/12 (see the scale below each selector group).
   Round 2 (2026-11-22): a 70ch measure on the seven prose paragraphs, the
   plot at its design height beside the ledger, the hero text centred, dark
   separators on the rule token, h2 at 24.
   Follow-up (2026-11-23): one prose column on desktop, --hp-col-main, the
   width of the chart panel's grid track, shared by the record prose and the
   movement footnote; the dollar note and record links fill the record
   column under the chart; Track a product as a full-width tinted panel.
   ========================================================================== */

.home {
  /* Phase 1b: the page, panel, ink, rule, link and focus tokens alias the
     shared --mr-* set in style.css (same values as before). The Track tint,
     the tint-specific drop green and the segment colours stay here. */
  --hp-page: var(--mr-page);
  --hp-panel: var(--mr-panel);
  --hp-ink: var(--mr-ink);
  --hp-ink-2: var(--mr-ink-2);
  --hp-ink-3: var(--mr-muted);
  --hp-line: var(--mr-rule);
  --hp-sep: var(--mr-rule-2);
  --hp-tint: #EEF2FD;
  --hp-tint-sep: #CCD4EA;
  --hp-tint-down: #136C35;
  --hp-grid: var(--mr-rule-2);
  --hp-zero: var(--mr-muted);
  --hp-code: var(--mr-page);
  --hp-link: var(--mr-link);
  --hp-link-hover: var(--mr-link-hover);
  --hp-down: #15803D;
  --hp-focus: var(--mr-focus);
  --hp-on-link: var(--mr-on-link);
  /* Segment colours for lines, samples and dots, unchanged (CLAUDE.md rule).
     Text uses the -text variant: the line colour wherever that clears 4.5:1
     and a darker shade where it does not (DDR4 and NVMe on white). */
  --hp-ddr5: #3556D6;
  --hp-ddr4: #0F8B8D;
  --hp-nvme: #C97F00;
  --hp-sata: #8A4FBF;
  --hp-ddr5-text: #3556D6;
  --hp-ddr4-text: #0C7C7E;
  --hp-nvme-text: #9A6300;
  --hp-sata-text: #8A4FBF;
}
html.dark .home {
  /* The aliases above resolve to the dark --mr-* values by themselves; only
     the separators differ (rule, not rule-2, in dark) plus the tint and the
     segment colours. */
  --hp-sep: var(--mr-rule);
  --hp-tint: #141C33;
  --hp-tint-sep: #2C3A5E;
  --hp-tint-down: #4ADE80;
  --hp-down: #4ADE80;
  --hp-ddr5: #7D97FF;
  --hp-ddr4: #3DBDBF;
  --hp-nvme: #F2B83B;
  --hp-sata: #C095EC;
  --hp-ddr5-text: #7D97FF;
  --hp-ddr4-text: #3DBDBF;
  --hp-nvme-text: #F2B83B;
  --hp-sata-text: #C095EC;
}
/* Each segment's colour, its text colour and its line sample: a 28x6 SVG
   drawn with the chart's own stroke width and dash pattern (the .hp-line
   rules below), used by the ledger rows, the movement rows and the tooltip.
   A data URI cannot read a custom property, so each theme carries its own. */
.home .hp-s-ddr5 { --c: var(--hp-ddr5); --ct: var(--hp-ddr5-text); --hp-sample: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='28' height='6' viewBox='0 0 28 6'><line x1='1' y1='3' x2='27' y2='3' stroke='%233556D6' stroke-width='2.75' stroke-linecap='round'/></svg>"); }
.home .hp-s-ddr4 { --c: var(--hp-ddr4); --ct: var(--hp-ddr4-text); --hp-sample: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='28' height='6' viewBox='0 0 28 6'><line x1='1' y1='3' x2='27' y2='3' stroke='%230F8B8D' stroke-width='2.25' stroke-linecap='butt' stroke-dasharray='8 5'/></svg>"); }
.home .hp-s-nvme_ssd { --c: var(--hp-nvme); --ct: var(--hp-nvme-text); --hp-sample: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='28' height='6' viewBox='0 0 28 6'><line x1='1' y1='3' x2='27' y2='3' stroke='%23C97F00' stroke-width='2.75' stroke-linecap='round' stroke-dasharray='0.01 5'/></svg>"); }
.home .hp-s-sata_ssd { --c: var(--hp-sata); --ct: var(--hp-sata-text); --hp-sample: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='28' height='6' viewBox='0 0 28 6'><line x1='1' y1='3' x2='27' y2='3' stroke='%238A4FBF' stroke-width='2.25' stroke-linecap='butt' stroke-dasharray='10 4 2.5 4'/></svg>"); }
html.dark .home .hp-s-ddr5 { --hp-sample: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='28' height='6' viewBox='0 0 28 6'><line x1='1' y1='3' x2='27' y2='3' stroke='%237D97FF' stroke-width='2.75' stroke-linecap='round'/></svg>"); }
html.dark .home .hp-s-ddr4 { --hp-sample: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='28' height='6' viewBox='0 0 28 6'><line x1='1' y1='3' x2='27' y2='3' stroke='%233DBDBF' stroke-width='2.25' stroke-linecap='butt' stroke-dasharray='8 5'/></svg>"); }
html.dark .home .hp-s-nvme_ssd { --hp-sample: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='28' height='6' viewBox='0 0 28 6'><line x1='1' y1='3' x2='27' y2='3' stroke='%23F2B83B' stroke-width='2.75' stroke-linecap='round' stroke-dasharray='0.01 5'/></svg>"); }
html.dark .home .hp-s-sata_ssd { --hp-sample: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='28' height='6' viewBox='0 0 28 6'><line x1='1' y1='3' x2='27' y2='3' stroke='%23C095EC' stroke-width='2.25' stroke-linecap='butt' stroke-dasharray='10 4 2.5 4'/></svg>"); }
.home [hidden] { display: none !important; }

/* ------------------------------------------------------------------ base ---
   The page band is main.home itself, which style.css leaves unconstrained;
   each section's .container keeps its 1100px measure and 24px gutters. */
.home { padding-bottom: 56px; background: var(--hp-page); color: var(--hp-ink); }
.home p, .home h1, .home h2, .home h3, .home ul, .home ol { margin: 0; }
.home a { color: var(--hp-link); text-decoration: none; }
.home a:hover { color: var(--hp-link-hover); text-decoration: underline; text-underline-offset: 2px; }
.home a:focus-visible, .home button:focus-visible { outline: 2px solid var(--hp-focus); outline-offset: 2px; }
.home a:focus-visible { border-radius: 2px; }
/* Links inside running text are underlined, so colour is not their only cue. */
.home .hp-track-intro a, .home .hp-faq a { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 2px; }
.home .home-alert-btn,
html.dark .home .home-alert-btn { display: inline; padding: 0; background: none; border-radius: 0; color: var(--hp-link); font-size: inherit; font-weight: 600; transition: none; white-space: normal; }
.home .home-alert-btn:hover,
html.dark .home .home-alert-btn:hover { background: none; color: var(--hp-link-hover); }

/* The one panel treatment. */
.home .hp-hero-fig, .home .hp-chart-panel, .home .hp-ledger, .home .hp-moves, .home .hp-data, .home .hp-art, .home .hp-track-grid {
  background: var(--hp-panel);
  border: 1px solid var(--hp-line);
  border-radius: 10px;
  box-shadow: none;
}
/* Labels: 12/1.4/700, uppercase, 0.06em. */
.home .hp-cell-seg, .home .hp-data-item h3, .home .hp-art-kind { font-size: 12px; line-height: 1.4; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
/* Notes and meta: 13/1.55/400, muted. */
.home .hp-note, .home .hp-hero-fig-label, .home .hp-hero-fig-span, .home .hp-recordline, .home .hp-cell-span, .home .hp-cell-note, .home .hp-cell-foot, .home .hp-inspect-label, .home .hp-tip { font-size: 13px; line-height: 1.55; }

/* ------------------------------------------------------------------ hero ---
   h1 36/1.1/700 and the intro 16/1.6 on the left; the record figure as a
   panel on the right from 1024px, below them under that. */
.home .hp-intro { padding: 40px 0 0; }
.home .hp-h1 { font-size: 36px; line-height: 1.1; letter-spacing: -0.02em; font-weight: 700; max-width: 14ch; color: var(--hp-ink); text-wrap: balance; }
.home .hp-intro-text { margin-top: 12px; max-width: 70ch; font-size: 16px; line-height: 1.6; color: var(--hp-ink-2); }
.home .hp-hero-fig { display: flex; flex-direction: column; margin-top: 24px; padding: 20px 24px; }
.home .hp-hero-fig-label { color: var(--hp-ink-2); }
.home .hp-hero-fig-pct { margin-top: 8px; font-size: 60px; line-height: 1; letter-spacing: -0.03em; font-weight: 700; font-variant-numeric: tabular-nums; color: var(--hp-ink); }
.home .hp-hero-fig-span { margin-top: 8px; color: var(--hp-ink-3); }
.home .hp-hero-fig .hp-recordline { margin-top: 16px; padding-top: 12px; border-top: 1px solid var(--hp-line); color: var(--hp-ink-2); text-wrap: pretty; }
.home .hp-recordline strong { color: var(--hp-ink); font-weight: 600; }
@media (min-width: 1024px) {
  .home .hp-hero { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); column-gap: 32px; align-items: center; }
  .home .hp-h1 { max-width: none; }
  .home .hp-hero-fig { margin-top: 0; }
  .home .hp-hero-fig .hp-recordline { padding-top: 16px; }
  .home .hp-hero-fig-span { margin-bottom: 16px; }
}

/* -------------------------------------------------------------- sections ---
   h2 24/1.25/700 (20 below 600); 40px between sections (32 at 900 and below). */
.home .home-record, .home .hp-sec { padding: 40px 0 0; }
.home .hp-h2 { font-size: 24px; line-height: 1.25; letter-spacing: -0.01em; font-weight: 700; color: var(--hp-ink); }
/* h2 24/1.25/700 (20 below 600) sits a clear step above the 18px lede. */
.home .hp-sec-head { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 16px; margin-bottom: 12px; }
.home .hp-sec > .container > .hp-h2 { margin-bottom: 12px; }

/* ---------------------------------------------------------------- record ---
   The lede 18/1.55/500, the measures line 13 muted, then the chart panel and
   the ledger panel side by side from 1024px (the DOM order, chart then
   ledger, is the reading order and the tab order), stacked below that. The
   dollar note and the links span the full width under them. */
.home .hp-headline { margin: 0 0 8px; font-size: 18px; line-height: 1.55; letter-spacing: -0.005em; font-weight: 500; color: var(--hp-ink); }
.home .hp-note { color: var(--hp-ink-3); }
/* Prose measure. The hero intro keeps 70ch. From 1024px the record lede, the
   measures line, the dollar note, the record links and the movement footnote
   share one column, --hp-col-main: the chart panel's grid track, so they end
   on the chart panel's right edge. Below 1024 they run the container width. */
.home .hp-measures { margin: 0 0 20px; }
.home .hp-dollar-note { margin-top: 16px; }
.home .hp-links { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; margin-top: 12px; font-size: 15px; line-height: 1.55; font-weight: 600; }
.home .hp-links .pim-sep { margin: 0; color: var(--hp-ink-3); }
@media (min-width: 1024px) {
  /* The main column: 8 of 12 tracks of the container after the 20px gap.
     The record grid's first track and the prose caps both read it. */
  .home { --hp-col-main: calc((100% - 20px) * 8 / 12); }
  .home .home-record > .container { display: grid; grid-template-columns: var(--hp-col-main) minmax(0, 1fr); column-gap: 20px; align-items: start; }
  .home .home-record > .container > .hp-sec-head { grid-column: 1 / -1; grid-row: 1; }
  .home .home-record > .container > .hp-headline { grid-column: 1 / -1; grid-row: 2; max-width: var(--hp-col-main); }
  .home .home-record > .container > .hp-measures { grid-column: 1 / -1; grid-row: 3; max-width: var(--hp-col-main); }
  .home .home-record > .container > .hp-chart-panel { grid-column: 1; grid-row: 4; margin: 0; }
  .home .home-record > .container > .hp-dollar-note { grid-column: 1; grid-row: 5; }
  .home .home-record > .container > .hp-links { grid-column: 1; grid-row: 6; }
  /* DOM order stays chart, ledger, dollar note, links: the ledger is placed
     beside the chart and spans the rows the note and the links take, so the
     left column fills under the chart and nothing is moved in the tree. */
  .home .home-record > .container > .hp-ledger { grid-column: 2; grid-row: 4 / 7; }
  .home .hp-movement .hp-note { max-width: var(--hp-col-main); }
  /* The longer lines in that column read at 14/1.55 on desktop. */
  .home .hp-measures, .home .hp-dollar-note, .home .hp-movement .hp-note { font-size: 14px; line-height: 1.55; }
  .home .hp-links { font-size: 14px; line-height: 1.55; }
}
/* Between 1024 and 1199 the plot beside the ledger is under 460px, too narrow
   for nine month labels, so the minor months (every other label) are hidden,
   the same device the chart already uses at 640px and below. */
@media (min-width: 1024px) and (max-width: 1199px) {
  .home .hp-month--minor { display: none; }
}

/* ----------------------------------------------------------------- chart ---
   Built by backend/lib/homeChart.js. The plot heights must stay at or above
   homeChart.PLOT_PX (lg 300 above 900px wide, sm 220 at 900px and below):
   the end labels are placed for those heights. The band above the top
   gridline is the chart's own domain padding (homeChart.js rounds the domain
   outward, so +400% sits at 10% of the plot height): it scales with the plot,
   which is why the plot keeps its 300px design height beside the ledger
   rather than stretching to it. */
.home .hp-chart-panel { margin: 0 0 20px; padding: 20px 24px 16px; }
.home .hp-chart-top { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px 16px; margin: 0 0 16px; }
.home .hp-chart-title { margin: 0; font-size: 14px; font-weight: 600; line-height: 1.55; color: var(--hp-ink-2); }
/* Legend buttons: the line sample and the name, no box. The pressed state is
   a 2px ink rule under the button (ink on the panel clears 3:1 with room),
   so highlighting is never shown by colour alone. */
.home .hp-legend { display: flex; flex-wrap: wrap; gap: 0 16px; }
.home .hp-legend-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  padding: 0;
  border: 0;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  background: transparent;
  color: var(--hp-ink);
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.55;
  cursor: pointer;
}
.home .hp-legend-btn:disabled { cursor: default; color: var(--hp-ink); opacity: 1; }
.home .hp-legend-btn:hover:not(:disabled) { border-bottom-color: var(--hp-ink-3); }
.home .hp-legend-btn[aria-pressed="true"] { border-bottom-color: var(--hp-ink); }
.home .hp-legend-btn:focus-visible { outline: 2px solid var(--hp-focus); outline-offset: 2px; }
.home .hp-legend-line { width: 28px; height: 10px; overflow: visible; flex: none; }

/* Line encoding: colour plus a pattern, the same in the legend sample, the
   row samples and on the plot (DDR5 solid, DDR4 dashed, NVMe dotted, SATA
   dash-dot). Dimming only lowers opacity, so a pattern stays visible. */
.home .hp-line { fill: none; stroke: var(--c); stroke-width: 2.25px; stroke-linejoin: round; stroke-linecap: butt; }
.home .hp-line.hp-s-ddr5 { stroke-width: 2.75px; stroke-linecap: round; }
.home .hp-line.hp-s-ddr4 { stroke-dasharray: 8 5; }
.home .hp-line.hp-s-nvme_ssd { stroke-width: 2.75px; stroke-linecap: round; stroke-dasharray: 0.01 5; }
.home .hp-line.hp-s-sata_ssd { stroke-dasharray: 10 4 2.5 4; }

.home .hp-chart {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) 64px;
  grid-template-rows: auto auto;
  touch-action: pan-y pinch-zoom;
}
.home .hp-y, .home .hp-plot, .home .hp-ends { position: relative; height: 300px; }
.home .hp-y { grid-column: 1; grid-row: 1; }
.home .hp-plot { grid-column: 2; grid-row: 1; }
.home .hp-ends { grid-column: 3; grid-row: 1; }
.home .hp-x { grid-column: 2; grid-row: 2; position: relative; height: 18px; margin-top: 8px; }

/* Axis text is bound to the chart's baked geometry and is the one exception
   to the type scale: ticks and months 12/16 (11/16 at 900px and below, the x
   row is 18px tall), end labels 13/16 bold (12/16 at 900 and below; the 16px
   line box is what the 18px label-stacking rule in homeChart.js assumes),
   and the tooltip 12px at 640 and below. */
.home .hp-tick {
  position: absolute;
  right: 10px;
  transform: translateY(-50%);
  font-size: 12px;
  line-height: 16px;
  color: var(--hp-ink-3);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.home .hp-grid, .home .hp-marks { position: absolute; inset: 0; pointer-events: none; }
.home .hp-gridline, .home .hp-zero { position: absolute; left: 0; right: 0; height: 0; }
.home .hp-gridline { border-top: 1px solid var(--hp-grid); }
.home .hp-zero { border-top: 1.5px solid var(--hp-zero); margin-top: -0.75px; }
.home .hp-lines { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.home .hp-dot, .home .hp-hdot {
  position: absolute;
  border-radius: 50%;
  background: var(--c);
  box-shadow: 0 0 0 2px var(--hp-panel);
}
.home .hp-dot { left: 100%; width: 7px; height: 7px; margin: -3.5px 0 0 -3.5px; }
.home .hp-hdot { left: 0; top: 0; width: 9px; height: 9px; margin: -4.5px 0 0 -4.5px; }
.home .hp-cross { position: absolute; left: 0; top: 0; bottom: 0; width: 0; border-left: 1px dashed var(--hp-ink-2); }

/* End labels: at the endpoint, or stacked with a leader back to it. The
   positions are baked per breakpoint as --y-lg and --y-sm; --lt, --lh and --lk
   are the leader's top, height and whether it is drawn. */
.home .hp-end {
  position: absolute;
  left: 12px;
  top: var(--y-lg);
  transform: translateY(-50%);
  font-size: 13px;
  line-height: 16px;
  font-weight: 700;
  color: var(--ct);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.home .hp-end::before {
  content: '';
  position: absolute;
  left: -9px;
  top: 50%;
  width: calc(var(--lk-lg) * 6px);
  border-top: 1px solid var(--c);
}
.home .hp-lead { position: absolute; left: 3px; top: var(--lt-lg); height: var(--lh-lg); border-left: 1px solid var(--c); }

.home .hp-month {
  position: absolute;
  top: 0;
  transform: translateX(-50%);
  font-size: 12px;
  line-height: 16px;
  color: var(--hp-ink-3);
  white-space: nowrap;
}

/* The tooltip is a small panel (controls radius), no shadow. */
.home .hp-tip {
  position: absolute;
  left: 0;
  top: 8px;
  z-index: 2;
  min-width: 172px;
  padding: 8px 12px;
  background: var(--hp-panel);
  border: 1px solid var(--hp-line);
  border-radius: 8px;
  color: var(--hp-ink);
  pointer-events: none;
}
.home .hp-tip-month { margin: 0 0 4px; font-weight: 600; }
.home .hp-tip-row { display: flex; justify-content: space-between; gap: 16px; font-variant-numeric: tabular-nums; }
.home .hp-tip-name::before {
  content: '';
  display: inline-block;
  width: 28px;
  height: 6px;
  margin-right: 8px;
  background: var(--hp-sample) no-repeat left center / 28px 6px;
  vertical-align: 1px;
}
.home .hp-tip-val { font-weight: 600; }

/* Highlighting a segment dims the other segments' marks by opacity (lines,
   dots and leaders, so a dimmed pattern stays visible) and turns their end
   labels to the muted ink, which still clears 4.5:1. Text is never dimmed by
   opacity, and the tooltip is never dimmed at all. */
.home .hp-chart-panel[data-focus] .hp-lines .hp-line,
.home .hp-chart-panel[data-focus] .hp-dot,
.home .hp-chart-panel[data-focus] .hp-hdot,
.home .hp-chart-panel[data-focus] .hp-lead { opacity: 0.2; }
.home .hp-chart-panel[data-focus] .hp-end { color: var(--hp-ink-3); }
.home .hp-chart-panel[data-focus] .hp-end::before { opacity: 0.2; }
.home .hp-chart-panel[data-focus="ddr5"] .hp-s-ddr5:not(.hp-tip-row),
.home .hp-chart-panel[data-focus="ddr4"] .hp-s-ddr4:not(.hp-tip-row),
.home .hp-chart-panel[data-focus="nvme_ssd"] .hp-s-nvme_ssd:not(.hp-tip-row),
.home .hp-chart-panel[data-focus="sata_ssd"] .hp-s-sata_ssd:not(.hp-tip-row) { opacity: 1; color: var(--ct); }
.home .hp-chart-panel[data-focus="ddr5"] .hp-end.hp-s-ddr5::before,
.home .hp-chart-panel[data-focus="ddr4"] .hp-end.hp-s-ddr4::before,
.home .hp-chart-panel[data-focus="nvme_ssd"] .hp-end.hp-s-nvme_ssd::before,
.home .hp-chart-panel[data-focus="sata_ssd"] .hp-end.hp-s-sata_ssd::before { opacity: 1; }
.home .hp-chart-panel[data-focus] .hp-tip-row { opacity: 1; }
.home .hp-chart-panel[data-focus] .hp-tip-row .hp-tip-val { font-weight: 400; }
.home .hp-chart-panel[data-focus="ddr5"] .hp-tip-row.hp-s-ddr5 .hp-tip-val,
.home .hp-chart-panel[data-focus="ddr4"] .hp-tip-row.hp-s-ddr4 .hp-tip-val,
.home .hp-chart-panel[data-focus="nvme_ssd"] .hp-tip-row.hp-s-nvme_ssd .hp-tip-val,
.home .hp-chart-panel[data-focus="sata_ssd"] .hp-tip-row.hp-s-sata_ssd .hp-tip-val { font-weight: 700; }

/* The keyboard control. Its row is laid out without the script and shown by
   home-chart.js, so revealing it moves nothing. */
.home .hp-inspect {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 32px;
  margin: 8px 64px 0 48px;
  visibility: hidden;
}
.home .hp-chart-panel.hp-live .hp-inspect { visibility: visible; }
.home .hp-inspect-label { color: var(--hp-ink-2); white-space: nowrap; }
.home .hp-range { flex: 1; min-width: 0; margin: 0; accent-color: var(--hp-link); cursor: pointer; }
.home .hp-range:focus-visible { outline: 2px solid var(--hp-focus); outline-offset: 2px; }
html.dark .home .hp-range { color-scheme: dark; }

@media (max-width: 900px) {
  .home .hp-chart-panel { padding: 16px 16px 12px; }
  .home .hp-y, .home .hp-plot, .home .hp-ends { height: 260px; }
  .home .hp-chart { grid-template-columns: 42px minmax(0, 1fr) 56px; }
  .home .hp-inspect { margin: 8px 56px 0 42px; }
  .home .hp-end { top: var(--y-sm); left: 11px; font-size: 12px; }
  .home .hp-end::before { width: calc(var(--lk-sm) * 5px); left: -8px; }
  .home .hp-lead { top: var(--lt-sm); height: var(--lh-sm); }
  .home .hp-tick { font-size: 11px; right: 8px; }
  .home .hp-month { font-size: 11px; }
}
@media (max-width: 480px) {
  /* Five major months need about 260px at 11px; the plot is 180 to 250px
     here, so every other major label is hidden as well (three remain). */
  .home .hp-x .hp-month:nth-child(4n + 3) { display: none; }
}
/* Below 500px the four legend names no longer fit one row (410px plus the
   gutters and panel padding), so the legend is two rows of two rather than
   three names and then one. */
@media (max-width: 499px) {
  .home .hp-legend { display: grid; grid-template-columns: repeat(2, max-content); gap: 0 16px; }
}
@media (max-width: 640px) {
  .home .hp-y, .home .hp-plot, .home .hp-ends { height: 220px; }
  .home .hp-chart { grid-template-columns: 40px minmax(0, 1fr) 52px; }
  .home .hp-inspect { margin: 8px 0 0; }
  .home .hp-month--minor { display: none; }
  .home .hp-tip { min-width: 0; padding: 4px 8px; font-size: 12px; }
}

/* ---------------------------------------------------------------- ledger ---
   The four segment cards as rows in one panel: label with its line sample,
   the figure 26/1.1/700 right-aligned, the period and n, the notes, and the
   month-over-month line in ink (the site describes, it does not judge). */
.home .hp-ledger { padding: 4px 0; list-style: none; }
.home .hp-cell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-rows: auto auto auto auto;
  column-gap: 12px;
  row-gap: 4px;
  align-items: center;
  min-width: 0;
  padding: 12px 20px;
  text-wrap: pretty;
  border-top: 1px solid var(--hp-sep);
}
.home .hp-cell:first-child { border-top: 0; }
.home .hp-cell-seg { grid-column: 1; grid-row: 1; display: flex; align-items: center; gap: 8px; color: var(--hp-ink-2); }
.home .hp-cell-seg::before { content: ''; flex: none; width: 28px; height: 6px; background: var(--hp-sample) no-repeat left center / 28px 6px; }
.home .hp-cell-pct { grid-column: 2; grid-row: 1; align-self: center; margin: 0; font-size: 26px; line-height: 1.1; font-weight: 700; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; text-align: right; color: var(--hp-ink); }
.home .hp-cell-span { grid-column: 1 / -1; grid-row: 2; margin: 0; color: var(--hp-ink-3); }
.home .hp-cell-notes { grid-column: 1 / -1; grid-row: 3; }
.home .hp-cell-notes p { color: var(--hp-ink-2); }
.home .hp-cell-notes p + p { margin-top: 4px; }
.home .hp-cell-foot { grid-column: 1 / -1; grid-row: 4; margin: 0; padding: 0; border: 0; color: var(--hp-ink-3); }
.home .hp-mom, .home .hp-mom--up, .home .hp-mom--down, .home .hp-mom--flat { font-weight: 600; font-variant-numeric: tabular-nums; color: var(--hp-ink); }

/* -------------------------------------------------------------- movement ---
   The four sentences as rows in one panel, each with its line sample. The
   sample's box is one line tall, so it centres on the first line without an
   offset. Body 16/1.6. */
.home .hp-moves { display: block; margin-top: 0; padding: 4px 20px; list-style: none; }
.home .hp-move { display: grid; grid-template-columns: 28px minmax(0, 1fr); column-gap: 12px; align-items: start; padding: 12px 0; border-top: 1px solid var(--hp-sep); font-size: 16px; line-height: 1.6; color: var(--hp-ink); }
.home .hp-move:first-child { border-top: 0; }
.home .hp-move::before { content: ''; width: 28px; height: 1.6em; background: var(--hp-sample) no-repeat left center / 28px 6px; }
.home .hp-movement .hp-note { margin-top: 12px; }

/* ------------------------------------------------------------------ data ---
   One panel, four columns from 1024px, two from 600px, one below. Each h3
   is a label over a rule. Small text 14/1.55; the cite box in the page tone. */
.home .hp-data { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px 32px; margin-top: 0; padding: 20px 24px; }
.home .hp-data-item { min-width: 0; padding: 0; border: 0; font-size: 14px; line-height: 1.55; }
.home .hp-data-item h3 { margin-bottom: 12px; padding-bottom: 8px; border-bottom: 1px solid var(--hp-sep); color: var(--hp-ink-2); }
.home .hp-data-item ul { display: flex; flex-direction: column; gap: 8px; padding: 0; list-style: none; }
.home .hp-data-item p { color: var(--hp-ink-2); }
.home .hp-data-item p + p { margin-top: 8px; }
.home .hp-data-item strong { color: var(--hp-ink); font-weight: 600; }
.home .hp-data-item .hp-cite {
  padding: 8px 12px;
  border: 1px solid var(--hp-line);
  border-radius: 6px;
  background: var(--hp-code);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 13px;
  line-height: 1.55;
  color: var(--hp-ink);
  overflow-wrap: break-word;
}

/* -------------------------------------------------------------- research ---
   The four items as a row of small panels: the kind label, then the title
   15/1.55/600. Four across from 1024px, two from 600px, one below. */
.home .hp-research { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 0; padding: 0; list-style: none; }
.home .hp-art { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; padding: 12px 16px; }
.home .hp-art-kind { color: var(--hp-ink-3); }
.home .hp-art a { font-size: 15px; line-height: 1.55; font-weight: 600; color: var(--hp-ink); text-wrap: balance; }
.home .hp-art a:hover { color: var(--hp-link); }
.home .hp-more { margin-top: 12px; font-size: 15px; line-height: 1.55; font-weight: 600; }

/* #set-alert is the landing for the header "Set an Alert" link (/#set-alert)
   on pages without alert-modal.js. The margin keeps "Track a product" below
   the sticky header instead of under it. */
.home #set-alert { scroll-margin-top: calc(var(--header-height) + 16px); }

/* ----------------------------------------------------------------- track ---
   One full-width panel in the accent tint, as a single column: the intro at
   18px, the search row across the panel (input 56px tall at 18px, the button
   at least 140px wide), the falls note and the price-drop rows. The rows are
   not links: no hover, no pointer, no card styling. */
.home .hp-track-grid { display: flex; flex-direction: column; gap: 20px; margin-top: 0; padding: 32px; background: var(--hp-tint); }
.home .hp-track-intro { font-size: 18px; line-height: 1.55; color: var(--hp-ink-2); }
.home .search-form,
html.dark .home .search-form {
  display: flex;
  gap: 12px;
  max-width: none;
  margin: 16px 0 0;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  background: transparent;
  transition: none;
  position: relative;
  flex-direction: row;
}
.home .hp-search-input {
  flex: 1;
  min-width: 0;
  min-height: 56px;
  padding: 0 16px;
  border: 1px solid var(--hp-ink-3);
  border-radius: 8px;
  background: var(--hp-panel);
  color: var(--hp-ink);
  font: inherit;
  font-size: 18px;
  line-height: 1.55;
}
.home .hp-search-input::placeholder { color: var(--hp-ink-3); opacity: 1; }
.home .hp-search-input:focus-visible { outline: 2px solid var(--hp-focus); outline-offset: 2px; }
.home .hp-search-btn {
  min-height: 56px;
  min-width: 140px;
  padding: 0 20px;
  border: 0;
  border-radius: 8px;
  background: var(--hp-link);
  color: var(--hp-on-link);
  font: inherit;
  font-size: 16px;
  line-height: 1.55;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}
.home .hp-search-btn:hover { background: var(--hp-link-hover); }
.home .hp-search-btn:focus-visible { outline: 2px solid var(--hp-focus); outline-offset: 2px; }
.home .hp-track-drops .hp-note { margin-top: 0; }
.home .hp-drops {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  column-gap: 32px;
  margin-top: 8px;
  padding: 0;
  list-style: none;
  font-size: 15px;
  line-height: 1.55;
}
.home .hp-drop { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; column-gap: 16px; align-items: baseline; padding: 8px 0; border-top: 1px solid var(--hp-tint-sep); }
.home .hp-drop:first-child { border-top: 0; }
.home .hp-drop-name { min-width: 0; font-weight: 600; color: var(--hp-ink); }
.home .hp-drop-price { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; color: var(--hp-ink-2); }
.home .hp-drop-change { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; font-weight: 600; color: var(--hp-tint-down); }
/* One column of rows at every width: in two columns of 477px (1440) a
   40-character name no longer fits beside its price and change. */
.home .hp-faq { margin-top: 16px; font-size: 14px; line-height: 1.55; }

/* ----------------------------------------------------------- breakpoints ---
   600 to 1023: two columns in the data and research panels; the record
   section stacks (chart, then ledger). 900 and below: 32px sections. */
@media (max-width: 1023px) {
  .home .hp-data { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .home .hp-research { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .home .hp-intro { padding-top: 32px; }
  .home .home-record, .home .hp-sec { padding-top: 32px; }
  .home .hp-data { padding: 20px; }
}
@media (max-width: 599px) {
  .home .hp-h1 { font-size: 30px; }
  .home .hp-h2 { font-size: 20px; }
  .home .hp-hero-fig-pct { font-size: 48px; }
  .home .hp-cell-pct { font-size: 24px; }
  .home .hp-hero-fig { padding: 16px 20px; }
  .home .hp-data { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .home .hp-research { grid-template-columns: minmax(0, 1fr); }
  .home .hp-cell { padding: 12px 16px; }
  .home .hp-moves { padding: 4px 16px; }
  .home .hp-track-grid { padding: 24px; }
  /* The search row stacks: the input and the button each full width, 56px. */
  .home .search-form,
  html.dark .home .search-form { flex-direction: column; }
}
@media (max-width: 560px) {
  .home .hp-drop { grid-template-columns: auto minmax(0, 1fr); }
  .home .hp-drop-name { grid-column: 1 / -1; }
  .home .hp-drop-price { text-align: left; }
}
/* Touch: every control is at least 44px tall (the site's tap-target rule). */
@media (max-width: 768px) {
  .home .hp-legend-btn { min-height: 44px; }
  .home .hp-inspect { min-height: 44px; }
  .home .hp-range { min-height: 44px; }
}
/* Narrow screens stack the record links and drop the separators. */
@media (max-width: 640px) {
  .home .hp-links { flex-direction: column; align-items: flex-start; gap: 4px; }
  .home .hp-links .pim-sep { display: none; }
}
