/* Polish pass (17 Nov 2026). Loaded last. One type scale (12 / 13 / 14 / 16 / 20 / 28 / display),
   spacing on a 4px grid, no tracking on small text, sentence-case labels, the square marker kept for "now". */

/* ---------- Menu ---------- */
.hd-side { gap: 24px; padding: 24px 16px; }
.hd-side__brand { gap: 12px; padding: 0 8px; }
.hd-side__name { font-size: 16px; letter-spacing: 0; }
.hd-side__name small { margin-top: 4px; font-size: 12px; }
.hd-side__label { margin: 0 0 8px; padding: 0 12px; font-size: 12px; letter-spacing: 0; text-transform: none; color: rgba(255, 255, 255, .48); }
.hd-side__page { padding: 8px 12px; font-size: 14px; }
.hd-side__gap { height: 16px; }
.hd-side .hd-side__sub { margin: 4px 0 8px 12px; padding-left: 8px; }
.hd-side .hd-side__sub a { padding: 4px 8px; font-size: 13px; }

/* ---------- Masthead: the home page's top lives in mast.css; these two also set the other pages' titles ---------- */
.hd-title { font-size: clamp(36px, 5cqi, 60px); line-height: 1.04; max-width: 14em; }
.hd-lede { margin-top: 24px; font-size: clamp(16px, 1.5cqi, 18px); }

/* ---------- Key figures: numbers only ---------- */
.hd-kpis { margin-top: 40px; }
.hd-kpi { padding: 16px 20px; }
.hd-kpi .hd-spark { display: none; }
.hd-kpi__label { font-size: 13px; }
.hd-kpi__value { margin-top: 8px; font-size: 28px; letter-spacing: -.02em; }
.hd-kpi__class, .hd-kpi__ctx { font-size: 12px; }
.hd-delta { margin: 8px 0 4px; font-size: 13px; }

/* ---------- So far today ---------- */
.hd-today { margin-top: 32px; gap: 8px 40px; }
.hd-today__title { font-size: 16px; letter-spacing: 0; }
.hd-today__asof { margin-top: 4px; font-size: 13px; }

/* ---------- Sections: one highlight on the page, in the masthead ---------- */
.hd-section__head { column-gap: 56px; margin-bottom: 32px; padding-top: 16px; }
.hd-section h2 { font-size: clamp(24px, 2.6cqi, 28px); }
.hd-section h2 .hd-hl { color: inherit; }
.hd-kicker { font-size: 13px; }
.hd-kicker::before { display: none; }
.hd-sub { font-size: 16px; }
.hd-grid { column-gap: 40px; }
.hd-card { gap: 12px; padding-top: 16px; }
.hd-card h3 { font-size: 16px; letter-spacing: 0; }
.hd-card__sub { margin-top: 4px; font-size: 13px; }
.hd-note { font-size: 13px; }
.hd-legend { font-size: 12px; }
.hd-sw--muted { background: var(--color-fg-muted); }
.hd-sw--dash { background: repeating-linear-gradient(90deg, var(--color-fg-muted) 0 4px, transparent 4px 7px); }
.hd-stat { padding: 12px 0 8px; }
.hd-stat__k, .hd-stat__s { font-size: 12px; }
.hd-stat__v .hd-unit { font-size: 12px; }
.hd-callout { font-size: 14px; }
.hd-cb__k { font-size: 12px; }
.hd-cb__seg { font-size: 12px; }

/* ---------- Charts: two text sizes ---------- */
.hd-axis text, .hd-tick, .hd-ref-label, .hd-band-label, .hd-vline-label, .hd-lane-dose, .hd-lane-note, .hd-point-label { font-size: 11px; }
.hd-end-label, .hd-lane-label, .hd-panel-title { font-size: 12px; }
.hd-tip { padding: 12px; font-size: 12px; }
.hd-tip__t { font-size: 13px; }

/* ---------- Tables, lists, timeline ---------- */
.hd-table th { padding: 8px 16px 8px 0; }
.hd-table td { padding: 12px 16px 12px 0; }
.hd-table .hd-td-date, #status-table .hd-status-note { font-size: 12px; }
.hd-pill, .hd-trend { font-size: 13px; }
.hd-tl__date { font-size: 12px; }
.hd-tl__tag, .hd-tl__src { font-size: 12px; }
.hd-tl__d { font-size: 13px; }
.hd-tl.is-year .hd-tl__date { font-size: 20px; letter-spacing: 0; }
.hd-tl.is-key .hd-tl__t { font-size: 16px; letter-spacing: 0; }

/* ---------- Medications ---------- */
.hd-meds { gap: 32px 40px; }
.hd-meds__group h3 { font-size: 16px; letter-spacing: 0; }
.hd-meds__group h3::before { display: none; }
.hd-med { gap: 12px 16px; }
.hd-med__name { font-size: 16px; letter-spacing: 0; }
.hd-med__meta, .hd-med__note { font-size: 12px; }
.hd-med__tag { font-size: 12px; }
.hd-med__buy { padding: 8px 16px; }

/* ---------- About and footer ---------- */
.hd-about summary { font-size: 16px; }
.hd-about__body h4 { font-size: 14px; }
.hd-foot__in { padding-block: 16px 32px; font-size: 12px; }
.hd-foot__name { font-size: 14px; }

/* ---------- Widths: the earlier width rules, restated on the grid ---------- */
@container hd (max-width: 900px) {
  .hd-side { gap: 8px 16px; padding: 12px 16px 0; }
  .hd-side__brand { padding: 0; }
  .hd-side__page { padding: 12px; font-size: 13px; }
}
@container hd (max-width: 600px) {
  .hd-kpis { margin-top: 28px; }
  .hd-kpi { padding: 12px 16px; }
  .hd-kpi:nth-child(2n+1) { padding-left: 0; }
  .hd-kpi__value { font-size: 24px; }
  .hd-tl.is-year .hd-tl__date { font-size: 16px; }
}
