/* Richard's Health: page styles. Colours, type and corners come from the dashboard's look (light and dark);
   the masthead keeps its own dark band in both themes. Everything is scoped to .hd. */
#dash-root { --dash-gutter: 0; }
.hd {
  --hd-c1: #7013ba; --hd-c2: #228cdb; --hd-c3: #e05a2b; --hd-c4: #13917a; --hd-c5: #a370e6; --hd-c6: #2f2d2e;
  --hd-display: var(--font-anthropic-serif, Poppins, 'Helvetica Neue', Arial, sans-serif);
  --hd-text: var(--font-anthropic-sans, 'DM Sans', 'Helvetica Neue', Arial, sans-serif);
  --hd-surface: var(--color-bg);
  /* purple for text, links and focus rings: chart colour 1 mixed toward the text colour, so it reads in both themes
     (4.7:1 on the dark background, 12:1 on white; plain chart colour 1 is only 2.1:1 on dark) */
  --hd-accent: color-mix(in srgb, var(--hd-c1) 60%, var(--color-fg));
  --hd-rule: var(--color-fg);
  --hd-line: var(--color-border-line);
  --hd-tint-ok: color-mix(in srgb, var(--color-ok) 13%, transparent);
  --hd-tint-bad: color-mix(in srgb, var(--color-bad) 13%, transparent);
  --hd-tint-warn: color-mix(in srgb, var(--color-warn) 16%, transparent);
  --hd-soft: color-mix(in srgb, var(--color-fg) 5%, transparent);
  container: hd / inline-size;
  font-family: var(--hd-text);
  font-size: 14px;
  line-height: 1.5;
  color: var(--color-fg);
}
.hd *, .hd *::before, .hd *::after { box-sizing: border-box; }
:where(.hd) :where(h1, h2, h3, h4, p, ol, ul, figure) { margin: 0; }
.hd b { font-weight: 600; }
.hd-wrap { width: 100%; max-width: 1240px; margin: 0 auto; padding-inline: clamp(16px, 4cqi, 44px); }
.hd-hl { color: var(--hd-accent); }
.hd-mark {
  display: inline-grid; place-items: center; flex: none; width: 28px; height: 28px; border-radius: 2px;
  background: #7013ba; color: #fff; font: 600 11px/1 var(--hd-display); letter-spacing: .02em;
}

/* ---------- Masthead: a dark band with a faint isometric grid ---------- */
.hd-mast {
  --hd-mast-bg: #19181b;
  --hd-mast-accent: #b48af5;
  --hd-mast-line: #c4a2f8;
  --hd-accent: var(--hd-mast-accent); /* always dark here, whatever the page theme */
  --color-fg: #ffffff;
  --color-fg-muted: rgba(255, 255, 255, .62);
  --color-border-line: rgba(255, 255, 255, .16);
  --color-panel: var(--hd-mast-bg);
  --hd-surface: var(--hd-mast-bg);
  --cds-text-secondary: rgba(255, 255, 255, .58);
  --cds-chart-grid: rgba(255, 255, 255, .1);
  --cds-chart-axis: rgba(255, 255, 255, .24);
  position: relative; isolation: isolate; overflow: hidden;
  background: var(--hd-mast-bg); color: var(--color-fg);
  padding: 30px 0 40px;
}
.hd-mast::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='64.66' viewBox='0 0 56 64.66'%3E%3Cpath d='M0 0V64.66M28 0V64.66M0 0L56 32.33M0 32.33L56 64.66M0 32.33L56 0M0 64.66L56 32.33' fill='none' stroke='white' stroke-opacity='.075' stroke-width='1'/%3E%3C/svg%3E");
  background-size: 56px 64.66px;
  -webkit-mask-image: linear-gradient(100deg, transparent 28%, #000 78%);
  mask-image: linear-gradient(100deg, transparent 28%, #000 78%);
}
.hd-brandline { display: flex; align-items: center; gap: 10px; margin-bottom: 36px; font-size: 13px; color: var(--color-fg-muted); }
.hd-mast__grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 56px; align-items: end; }
.hd-title { font-family: var(--hd-display); font-weight: 600; font-size: clamp(42px, 6.4cqi, 76px); line-height: 1; letter-spacing: -.03em; }
.hd-title .hd-hl { color: var(--hd-mast-accent); }
.hd-mast__period { margin-top: 22px; font-size: 15px; color: var(--color-fg-muted); }
.hd-mast__period span { color: var(--color-fg); }
.hd-lede { margin-top: 28px; max-width: 36em; font-size: clamp(16px, 1.5cqi, 18.5px); line-height: 1.6; color: rgba(255, 255, 255, .84); }
.hd-lede b { color: #fff; }
.hd-asof { margin-top: 18px; max-width: 46em; font-size: 12.5px; color: rgba(255, 255, 255, .5); }
.hd-mast__fig { position: relative; padding: 20px 20px 6px; border: 1px solid rgba(255, 255, 255, .2); background: rgba(255, 255, 255, .025); }
.hd-mast__fig::after { content: ""; position: absolute; top: -1px; right: -1px; width: 14px; height: 14px; background: var(--hd-mast-accent); }
.hd-hero__cap { font-size: 13px; color: var(--color-fg-muted); }
.hd-hero__big { display: flex; align-items: baseline; margin-top: 6px; font-family: var(--hd-display); font-weight: 600; font-size: clamp(54px, 7cqi, 86px); line-height: 1; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.hd-hero__big .hd-unit { margin-left: 12px; font-family: var(--hd-text); font-weight: 400; font-size: .28em; letter-spacing: 0; color: var(--color-fg-muted); }
.hd-hero__from { margin-top: 8px; font-size: 13px; color: var(--color-fg-muted); }
.hd-hero__from b { color: var(--color-fg); font-weight: 500; }
.hd-hero__chart { min-height: 190px; margin: 14px -6px 0; }
.hd-mast .hd-tip { background: #fff; color: #111; }

/* ---------- Sticky section bar ---------- */
.hd-nav { position: sticky; top: 0; z-index: 6; background: var(--color-bg); border-bottom: 1px solid var(--hd-line); }
.hd-nav__in { display: flex; align-items: center; gap: 18px; min-height: 52px; }
.hd-nav__brand { display: flex; align-items: center; gap: 9px; flex: none; padding-right: 18px; border-right: 1px solid var(--hd-line); font: 600 13.5px/1 var(--hd-display); letter-spacing: -.01em; }
.hd-nav__brand .hd-mark { width: 22px; height: 22px; font-size: 9px; }
.hd-nav__links { display: flex; flex: 1; align-self: stretch; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.hd-nav__links::-webkit-scrollbar { display: none; }
.hd-nav__links a {
  display: flex; align-items: center; flex: none; padding: 0 10px; white-space: nowrap; text-decoration: none;
  font-size: 13px; font-weight: 500; color: var(--color-fg-muted); box-shadow: inset 0 -2px 0 transparent;
}
.hd-nav__links a:hover { color: var(--color-fg); }
.hd-nav__links a.is-current { color: var(--color-fg); box-shadow: inset 0 -2px 0 var(--hd-c1); }

/* segmented controls: range, activity measure, milestone groups */
.hd-range, .hd-seg, .hd-filter { display: inline-flex; flex-wrap: wrap; border: 1px solid var(--hd-line); border-radius: var(--cds-radius, 2px); overflow: hidden; }
.hd-range { flex: none; }
.hd-range__label { display: flex; align-items: center; padding: 0 10px; font-size: 12px; color: var(--color-fg-muted); border-right: 1px solid var(--hd-line); }
.hd-chip, .hd-seg button, .hd-filter button {
  appearance: none; border: 0; margin: 0; cursor: pointer; font: inherit; font-size: 12.5px; font-weight: 500;
  padding: 6px 11px; background: transparent; color: var(--color-fg-muted); font-variant-numeric: tabular-nums;
}
.hd-chip + .hd-chip, .hd-seg button + button, .hd-filter button + button { box-shadow: inset 1px 0 0 var(--hd-line); }
.hd-chip:hover, .hd-seg button:hover, .hd-filter button:hover { color: var(--color-fg); background: var(--hd-soft); }
.hd-chip[aria-pressed="true"], .hd-seg button[aria-pressed="true"], .hd-filter button[aria-pressed="true"] { background: var(--color-fg); color: var(--color-bg); box-shadow: none; }
.hd-chip:focus-visible, .hd-nav__links a:focus-visible, .hd-seg button:focus-visible, .hd-filter button:focus-visible, .hd-about summary:focus-visible { outline: 2px solid var(--hd-accent); outline-offset: -2px; }

/* ---------- Key figures: a ruled ledger, not cards ---------- */
.hd-main { padding-bottom: 8px; }
.hd-kpis {
  display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 1px; margin-top: 44px;
  background: var(--hd-line); border-top: 2px solid var(--hd-rule); border-bottom: 1px solid var(--hd-line);
}
.hd-kpi { display: flex; flex-direction: column; gap: 2px; min-width: 0; padding: 16px 18px 14px; background: var(--color-bg); }
.hd-kpi__label { font-size: 13px; font-weight: 500; color: var(--color-fg); }
.hd-kpi__value { display: flex; flex-wrap: wrap; align-items: baseline; gap: 5px; margin-top: 8px; font-family: var(--hd-display); font-weight: 600; font-size: 32px; line-height: 1.1; letter-spacing: -.025em; font-variant-numeric: tabular-nums; }
.hd-kpi__value .hd-unit { font-family: var(--hd-text); font-weight: 400; font-size: 13px; letter-spacing: 0; color: var(--color-fg-muted); }
.hd-kpi__class, .hd-kpi__ctx { font-size: 12.5px; color: var(--color-fg-muted); }
.hd-kpi__ctx b { color: var(--color-fg); font-weight: 500; }
.hd-kpi .hd-spark { height: 34px; margin-top: auto; padding-top: 10px; }

/* change line: the arrow says which way, the colour says whether that is good */
.hd-delta { display: inline-flex; align-items: center; gap: 6px; align-self: flex-start; margin: 8px 0 2px; font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; color: var(--color-fg-muted); }
.hd-delta::before { content: ""; width: 0; height: 0; border-left: 4.5px solid transparent; border-right: 4.5px solid transparent; }
.hd-delta.is-down::before { border-top: 6px solid currentColor; }
.hd-delta.is-up::before { border-bottom: 6px solid currentColor; }
.hd-delta.is-good { color: var(--color-ok); }
.hd-delta.is-bad { color: var(--color-bad); }

/* ---------- Sections ---------- */
.hd-section { padding-top: 72px; scroll-margin-top: 60px; }
.hd-section__head {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); column-gap: 56px; row-gap: 8px; align-items: start;
  margin-bottom: 32px; padding-top: 14px; border-top: 2px solid var(--hd-rule);
}
.hd-kicker { grid-column: 1; display: flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 500; color: var(--color-fg-muted); }
.hd-kicker::before { content: ""; width: 8px; height: 8px; background: var(--hd-c1); }
.hd-section h2 { grid-column: 1; font-family: var(--hd-display); font-weight: 600; font-size: clamp(24px, 2.7cqi, 32px); line-height: 1.15; letter-spacing: -.02em; }
.hd-sub { grid-column: 2; grid-row: 1 / span 2; align-self: end; max-width: 44em; font-size: 15px; line-height: 1.6; color: var(--color-fg-muted); }
.hd-sub b { color: var(--color-fg); }

/* figures sit on hairlines rather than in boxes */
.hd-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 44px; row-gap: 48px; }
.hd-card { grid-column: span 6; display: flex; flex-direction: column; gap: 12px; min-width: 0; padding-top: 14px; border-top: 1px solid var(--hd-line); }
.hd-card--wide { grid-column: span 12; }
.hd-card--8 { grid-column: span 8; }
.hd-card--4 { grid-column: span 4; }
.hd-card__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 10px 24px; }
.hd-card h3 { font-family: var(--hd-display); font-weight: 500; font-size: 15.5px; line-height: 1.35; letter-spacing: -.005em; }
.hd-card__sub { max-width: 62em; margin-top: 3px; font-size: 12.5px; color: var(--color-fg-muted); }
.hd-note { font-size: 12.5px; color: var(--color-fg-muted); }
.hd-note b { color: var(--color-fg); }

/* legends: every swatch has a name */
.hd-legend { display: flex; flex-wrap: wrap; gap: 4px 16px; padding: 0; list-style: none; font-size: 12px; color: var(--color-fg-muted); }
.hd-legend li { display: inline-flex; align-items: center; gap: 7px; }
.hd-sw { flex: none; width: 10px; height: 10px; }
.hd-sw--line { width: 16px; height: 2.5px; }
.hd-sw--band { width: 12px; height: 10px; outline: 1px solid var(--hd-line); outline-offset: -1px; }
.hd-sw--round { border-radius: 50%; background: var(--color-fg-muted); }
.hd-sw--c1 { background: var(--hd-c1); } .hd-sw--c2 { background: var(--hd-c2); } .hd-sw--c3 { background: var(--hd-c3); }
.hd-sw--c4 { background: var(--hd-c4); } .hd-sw--c5 { background: var(--hd-c5); } .hd-sw--c6 { background: var(--hd-c6); }
.hd-sw--ok { background: var(--hd-tint-ok); } .hd-sw--warn { background: var(--hd-tint-warn); } .hd-sw--bad { background: var(--hd-tint-bad); }

/* small figures inside a panel */
.hd-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); column-gap: 20px; }
.hd-stat { padding: 10px 0 8px; border-top: 1px solid var(--hd-line); }
.hd-stat__k { font-size: 12.5px; color: var(--color-fg-muted); }
.hd-stat__v { font-family: var(--hd-display); font-weight: 600; font-size: 24px; line-height: 1.25; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.hd-stat__v .hd-unit { margin-left: 4px; font-family: var(--hd-text); font-weight: 400; font-size: 12.5px; letter-spacing: 0; color: var(--color-fg-muted); }
.hd-stat__s { font-size: 12.5px; color: var(--color-fg-muted); }

.hd-callout { padding: 12px 16px; border-left: 3px solid var(--hd-c1); background: color-mix(in srgb, var(--hd-c1) 7%, transparent); font-size: 14px; line-height: 1.55; }

/* then and now composition bars */
.hd-compbars { display: grid; gap: 12px; margin-top: 4px; }
.hd-cb { display: grid; gap: 5px; }
.hd-cb__k { display: flex; justify-content: space-between; gap: 8px; font-size: 12.5px; color: var(--color-fg-muted); font-variant-numeric: tabular-nums; }
.hd-cb__bar { display: flex; gap: 2px; height: 26px; }
.hd-cb__seg { display: flex; align-items: center; min-width: 0; padding: 0 8px; overflow: hidden; white-space: nowrap; color: #fff; font-size: 11.5px; font-weight: 600; }

/* ---------- Charts ---------- */
.hd-chart { position: relative; width: 100%; min-height: 220px; }
.hd-chart--tall { min-height: 340px; }
.hd-chart--short { min-height: 170px; }
.hd-viz { position: relative; width: 100%; }
.hd-svg { display: block; overflow: visible; }
.hd-svg text { font-family: var(--hd-text); }
.hd-axis text, .hd-tick { fill: var(--cds-text-secondary, var(--color-fg-muted)); font-size: 11px; font-variant-numeric: tabular-nums; }
.hd-axis line, .hd-axis path { stroke: var(--cds-chart-axis, var(--hd-line)); }
.hd-grid-line { stroke: var(--cds-chart-grid, var(--hd-line)); stroke-width: 1; shape-rendering: crispEdges; }
.hd-ref { stroke: var(--cds-chart-reference, var(--color-fg-muted)); stroke-width: 1; stroke-dasharray: 4 3; }
.hd-ref-label, .hd-band-label { fill: var(--cds-text-secondary, var(--color-fg-muted)); font-size: 10.5px; }
.hd-band--ok { fill: var(--hd-tint-ok); }
.hd-band--warn { fill: var(--hd-tint-warn); }
.hd-band--bad { fill: var(--hd-tint-bad); }
.hd-band--g1 { fill: color-mix(in srgb, var(--color-fg) 2.5%, transparent); }
.hd-band--g2 { fill: color-mix(in srgb, var(--color-fg) 5%, transparent); }
.hd-band--g3 { fill: color-mix(in srgb, var(--color-fg) 7.5%, transparent); }
.hd-band--g4 { fill: color-mix(in srgb, var(--color-fg) 10%, transparent); }
.hd-vline { stroke: var(--color-fg-muted); stroke-width: 1; stroke-dasharray: 2 3; opacity: .8; }
.hd-vline-label { fill: var(--color-fg-muted); font-size: 10.5px; }
.hd-end-label { fill: var(--color-fg); font-size: 11.5px; font-weight: 600; }
.hd-point-label { fill: var(--color-fg); font-size: 11px; font-weight: 600; paint-order: stroke; stroke: var(--hd-surface); stroke-width: 3px; stroke-linejoin: round; }
.hd-cross { stroke: var(--color-fg); stroke-width: 1; opacity: .35; pointer-events: none; }
.hd-sync { stroke: var(--color-fg-muted); stroke-width: 1; stroke-dasharray: 3 3; opacity: .6; pointer-events: none; }
.hd-focus { stroke: var(--hd-surface); stroke-width: 2; pointer-events: none; }
.hd-overlay { fill: transparent; cursor: crosshair; touch-action: pan-y; }
.hd-bar { transition: opacity .15s; }
.hd-bars.is-hovering .hd-bar:not(.is-hot) { opacity: .4; }
.hd-lane-label { fill: var(--color-fg); font-size: 11.5px; font-weight: 500; }
.hd-lane-dose { fill: #fff; font-size: 10.5px; font-weight: 600; pointer-events: none; }
.hd-lane-note { fill: var(--color-fg-muted); font-size: 10.5px; }
.hd-lane-track { fill: var(--hd-soft); }
.hd-panel-title { fill: var(--color-fg-muted); font-size: 11.5px; font-weight: 500; }

/* tooltip: an inverted label, kept inside its chart */
.hd-tip {
  position: absolute; top: 0; left: 0; z-index: 3; pointer-events: none;
  min-width: 150px; max-width: 270px; padding: 10px 12px; border-radius: var(--cds-radius, 2px);
  background: var(--color-fg); color: var(--color-bg); box-shadow: 0 10px 28px rgba(0, 0, 0, .2);
  font-size: 12px; line-height: 1.4; opacity: 0; transition: opacity .12s;
}
.hd-tip.is-on { opacity: 1; }
.hd-tip__t { margin-bottom: 6px; font-family: var(--hd-display); font-weight: 600; font-size: 12.5px; }
.hd-tip__r { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.hd-tip__r span:first-child { display: inline-flex; align-items: center; gap: 7px; color: color-mix(in srgb, currentColor 72%, transparent); }
.hd-tip__r b { font-weight: 600; font-variant-numeric: tabular-nums; }
.hd-tip__n { margin-top: 6px; font-size: 11px; color: color-mix(in srgb, currentColor 68%, transparent); }
.hd-tip .hd-sw { width: 8px; height: 8px; }

/* ---------- Tables ---------- */
.hd-table-wrap { overflow-x: auto; }
.hd-table { width: 100%; min-width: 660px; border-collapse: collapse; font-size: 13px; }
.hd-table th { padding: 8px 14px 8px 0; border-bottom: 1px solid var(--hd-rule); text-align: left; white-space: nowrap; font-size: 12px; font-weight: 500; color: var(--color-fg-muted); }
.hd-table td { padding: 10px 14px 10px 0; border-bottom: 1px solid var(--hd-line); vertical-align: middle; font-variant-numeric: tabular-nums; }
.hd-table tr:last-child td { border-bottom: 0; }
.hd-table td.hd-td-test { font-weight: 500; }
.hd-table .hd-td-date { display: block; margin-top: 2px; font-size: 11px; color: var(--color-fg-muted); white-space: nowrap; }
.hd-table .hd-td-spark { width: 150px; }
.hd-table .hd-td-spark svg { display: block; }
.hd-pill { display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; font-size: 12.5px; font-weight: 500; color: var(--color-fg); }
.hd-pill::before { content: ""; flex: none; width: 8px; height: 8px; background: var(--color-fg-muted); }
.hd-pill.is-good::before { background: var(--color-ok); }
.hd-pill.is-warn::before { background: var(--color-warn); }
.hd-pill.is-bad::before { background: var(--color-bad); }
.hd-pill.is-none::before { background: var(--hd-line); }
.hd-trend { white-space: nowrap; font-size: 12.5px; color: var(--color-fg-muted); }
.hd-trend.is-good { color: var(--color-ok); font-weight: 500; }
.hd-trend.is-bad { color: var(--color-bad); font-weight: 500; }

/* ---------- Conditions and medicines ---------- */
.hd-list { display: grid; padding: 0; list-style: none; }
.hd-list li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 16px; padding: 12px 0; border-bottom: 1px solid var(--hd-line); }
.hd-list li:last-child { border-bottom: 0; }
.hd-list .hd-li-t { font-size: 14px; font-weight: 500; }
.hd-list .hd-li-d { grid-column: 1 / -1; font-size: 12.5px; color: var(--color-fg-muted); }
.hd-list .hd-li-s { justify-self: end; align-self: start; }
.hd-card--4 h3 + .hd-list { margin-top: -4px; }
.hd-card--4 .hd-list + h3 { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--hd-line); }

/* ---------- Timeline ---------- */
.hd-filter { margin-bottom: 18px; }
.hd-timeline { position: relative; display: grid; padding: 0; list-style: none; }
.hd-timeline::before { content: ""; position: absolute; left: 102px; top: 8px; bottom: 8px; width: 1px; background: var(--hd-line); }
.hd-tl { --dot: var(--color-fg-muted); position: relative; display: grid; grid-template-columns: 84px 26px minmax(0, 1fr); gap: 0 6px; padding: 8px 0; }
.hd-tl__date { padding-top: 1px; text-align: right; font-size: 12px; color: var(--color-fg-muted); font-variant-numeric: tabular-nums; }
.hd-tl__dot { position: relative; z-index: 1; width: 9px; height: 9px; margin: 6px auto 0; background: var(--color-bg); border: 2px solid var(--dot); }
.hd-tl__body { min-width: 0; }
.hd-tl__t { font-size: 14px; font-weight: 500; }
.hd-tl__tag { margin-left: 8px; font-size: 11.5px; font-weight: 500; color: var(--color-fg-muted); }
.hd-tl__d { margin-top: 2px; font-size: 12.5px; color: var(--color-fg-muted); }
.hd-tl__src { margin-top: 2px; font-size: 11.5px; color: color-mix(in srgb, var(--color-fg-muted) 80%, transparent); }
.hd-tl.is-year { padding: 22px 0 6px; }
.hd-tl.is-year .hd-tl__date { font-family: var(--hd-display); font-weight: 600; font-size: 19px; letter-spacing: -.01em; color: var(--color-fg); }
.hd-tl.is-year .hd-tl__dot { width: 7px; height: 7px; margin-top: 10px; border: 0; background: var(--color-fg); }
.hd-tl[data-cat="Body"] { --dot: var(--hd-c1); }
.hd-tl[data-cat="Clinical"] { --dot: var(--hd-c2); }
.hd-tl[data-cat="Medication"] { --dot: var(--hd-c3); }
.hd-tl[data-cat="Activity"] { --dot: var(--hd-c4); }
.hd-tl.is-key .hd-tl__dot { background: var(--dot); }
.hd-tl.is-key .hd-tl__t { font-family: var(--hd-display); font-weight: 600; font-size: 15px; letter-spacing: -.005em; }

/* ---------- About and footer ---------- */
.hd-about { margin-top: 72px; padding-top: 4px; border-top: 2px solid var(--hd-rule); }
.hd-about summary { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 0; cursor: pointer; list-style: none; font-family: var(--hd-display); font-weight: 500; font-size: 15.5px; }
.hd-about summary::-webkit-details-marker { display: none; }
.hd-about summary::after { content: "+"; font-family: var(--hd-text); font-weight: 400; font-size: 20px; line-height: 1; color: var(--color-fg-muted); }
.hd-about[open] summary::after { content: "\2212"; }
.hd-about__body { display: grid; gap: 16px; max-width: 72em; padding: 8px 0 4px; font-size: 13px; color: var(--color-fg-muted); }
.hd-about__body h4 { margin: 6px 0 0; font-family: var(--hd-display); font-weight: 500; font-size: 13.5px; color: var(--color-fg); }
.hd-about__body ul { display: grid; gap: 5px; margin: 0; padding-left: 18px; }
.hd-about .hd-table { min-width: 540px; }
.hd-foot { margin-top: 56px; border-top: 1px solid var(--hd-line); }
.hd-foot__in { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; padding-block: 18px 30px; font-size: 12.5px; color: var(--color-fg-muted); }
.hd-foot__in .hd-mark { width: 22px; height: 22px; font-size: 9px; }
.hd-foot__name { font-family: var(--hd-display); font-weight: 600; font-size: 13.5px; color: var(--color-fg); }

[data-dash-source-state=refreshing] { opacity: .5; }

/* ---------- Widths (measured on the page itself, so a narrow pane gets these too) ---------- */
@container hd (min-width: 1081px) {
  .hd-kpi:nth-child(6n+1) { padding-left: 0; }
}
@container hd (max-width: 1080px) {
  .hd-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .hd-kpi:nth-child(3n+1) { padding-left: 0; }
  .hd-nav__name { display: none; }
  .hd-nav__brand { padding-right: 14px; }
}
@container hd (max-width: 880px) {
  .hd-mast__grid { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .hd-section__head { grid-template-columns: minmax(0, 1fr); }
  .hd-sub { grid-column: 1; grid-row: auto; margin-top: 4px; }
  .hd-grid { grid-template-columns: minmax(0, 1fr); }
  .hd-card, .hd-card--wide, .hd-card--8, .hd-card--4 { grid-column: 1 / -1; }
}
@container hd (max-width: 600px) {
  .hd-mast { padding: 22px 0 28px; }
  .hd-brandline { margin-bottom: 24px; }
  .hd-nav__in { flex-wrap: wrap; gap: 0; padding-block: 0 8px; }
  .hd-nav__brand { display: none; }
  .hd-nav__links { flex-basis: 100%; min-height: 44px; margin-inline: -10px; }
  .hd-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 28px; }
  .hd-kpi:nth-child(3n+1) { padding-left: 14px; }
  .hd-kpi:nth-child(2n+1) { padding-left: 0; }
  .hd-kpi { padding: 14px 14px 12px; }
  .hd-kpi__value { font-size: 27px; }
  .hd-section { padding-top: 52px; scroll-margin-top: 100px; }
  .hd-grid { row-gap: 36px; }
  .hd-stat__v { font-size: 21px; }
  .hd-list li { grid-template-columns: minmax(0, 1fr); }
  .hd-list .hd-li-s { justify-self: start; }
  .hd-timeline::before { left: 78px; }
  .hd-tl { grid-template-columns: 60px 26px minmax(0, 1fr); }
  .hd-tl.is-year .hd-tl__date { font-size: 17px; }
}
