/* Healthcare Data Factory presentation layer (WO-LAUNCH-UX-002 preview).
   Loaded after CMSDS Core 18.2.0 (core-theme.css, index.css) and the existing site.css.
   Colors, type, spacing, focus and components come from CMSDS Core tokens and ds-c-* classes.
   Independent brand extensions (documented in docs/launch/ux-002/design-system.md):
     --hdf-ink    brand ink, used for the hero and footer band (not a CMS brand color)
     --hdf-teal   brand accent (5.2:1 on white)   --hdf-mint accent on ink (9.8:1 on --hdf-ink)
   Nothing here imitates CMS, Medicare.gov or HealthCare.gov branding; no USA banner is used. */
:root {
  --hdf-ink: #0f2a33;
  --hdf-ink-2: #173a45;
  --hdf-teal: #0b7a72;
  --hdf-teal-light: #e3f2f0;
  --hdf-mint: #8fe0d2;
  --hdf-radius: 6px;
  --hdf-gap: var(--spacer-3, 1.5rem);
  --hdf-wide: 76rem;
}

/* ---------- frame ---------- */
.hdf-header { background: var(--color-background); border-bottom: 1px solid var(--color-border); }
.hdf-header .hdf-bar { max-width: var(--hdf-wide); margin: 0 auto; padding: 0.75rem 1.25rem; display: flex; align-items: center; gap: 0.5rem 1.5rem; flex-wrap: wrap; }
.hdf-brand { display: inline-flex; align-items: center; gap: 0.55rem; color: var(--hdf-ink); text-decoration: none; font: 700 1.125rem/1.1 var(--font-family-heading, "Open Sans", sans-serif); letter-spacing: -0.01em; }
.hdf-brand svg { flex: none; }
.hdf-brand:hover, .hdf-brand:visited { text-decoration: none; color: var(--hdf-ink); }
.hdf-nav { margin-left: auto; }
.hdf-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.15rem 0.25rem; }
.hdf-nav a { display: block; padding: 0.5rem 0.65rem; border-radius: var(--hdf-radius); color: var(--color-base); text-decoration: none; font-size: 0.9375rem; font-weight: 600; }
.hdf-nav a:hover { background: var(--color-gray-lightest); text-decoration: none; }
.hdf-nav a[aria-current="page"] { color: var(--hdf-teal); box-shadow: inset 0 -3px 0 var(--hdf-teal); border-radius: 0; }
.hdf-menu-toggle { display: none; }
.hdf-membership-entry, .hdf-membership-entry:visited {
  display: inline-flex; align-items: center; justify-content: center; min-height: 44px;
  margin-left: auto; padding: 0 0.85rem; border-radius: var(--hdf-radius);
  background: var(--hdf-teal); color: white; text-decoration: none; font-weight: 700;
}
.hdf-membership-entry:hover { background: var(--hdf-ink); color: white; text-decoration: underline; }
.hdf-membership-entry:focus-visible { outline: 3px solid var(--hdf-ink); outline-offset: 2px; }
.hdf-membership-entry ~ .hdf-nav { margin-left: 0; }
@media (min-height: 32rem) {
  .js .hdf-header:has(.hdf-membership-entry) {
    position: sticky; top: 0; z-index: 5;
  }
  html.js:has(.hdf-membership-entry) { scroll-padding-top: 7rem; }
}
/* The open phone menu stays pinned with the header, so it appears where the reader is. It sits above page layers, and
   when it is taller than the screen it scrolls on its own. */
@media (min-height: 32rem) and (max-width: 54em) {
  .js .hdf-header:has(.hdf-membership-entry):has(.is-open) {
    z-index: 30; max-height: 100vh; max-height: 100dvh; overflow-y: auto; overscroll-behavior: contain;
  }
}
@media (max-width: 54em) {
  .hdf-header .hdf-bar:has(.hdf-membership-entry) { gap: 0.4rem; padding-inline: 0.65rem; }
  .hdf-bar:has(.hdf-membership-entry) .hdf-brand { flex: 1 1 5rem; }
  .hdf-bar:has(.hdf-membership-entry) .beta { display: none; }
  .js .hdf-membership-entry + .hdf-menu-toggle { margin-left: 0; }
}

/* The menu collapses only when ux.js has run (it adds .js to <html>). Without JavaScript the navigation stays visible
   as a column list and the toggle stays hidden: every page keeps its navigation, including at 200% zoom. */
@media (max-width: 54em) {
  .hdf-nav { flex-basis: 100%; }
  .js .hdf-menu-toggle { display: inline-flex; margin-left: auto; }
  .js .hdf-nav { display: none; }
  .js .hdf-nav.is-open { display: block; }
  .hdf-nav ul { flex-direction: column; }
  .hdf-nav a[aria-current="page"] { box-shadow: inset 3px 0 0 var(--hdf-teal); }
}
.hdf-main { max-width: var(--hdf-wide); margin: 0 auto; padding: 2.5rem 1.25rem 4rem; }
.hdf-main--flush { max-width: none; padding: 0; }
.hdf-wrap { max-width: var(--hdf-wide); margin: 0 auto; padding: 0 1.25rem; }

/* ---------- type ---------- */
.hdf-eyebrow { font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--hdf-teal); margin: 0 0 0.5rem; }
.hdf-lede { font-size: 1.25rem; line-height: 1.55; color: var(--color-gray-dark); max-width: 62ch; }
.hdf-section { padding: 3.5rem 0; }
.hdf-section--tint { background: var(--color-gray-lightest); }
.hdf-section h2 { font-size: 1.75rem; margin: 0 0 0.5rem; max-width: 30ch; }
.hdf-section-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 0.5rem 2rem; margin-bottom: 1.75rem; }
.hdf-section-head p { margin: 0; max-width: 64ch; color: var(--color-gray-dark); }

/* ---------- hero ---------- */
.hdf-hero { background: var(--hdf-ink); color: var(--color-white); padding: 4rem 0 3.5rem; }
.hdf-hero .hdf-wrap { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 3rem; align-items: start; }
.hdf-hero h1 { color: var(--color-white); font-size: clamp(2.25rem, 1.6rem + 2.6vw, 3.5rem); line-height: 1.08; letter-spacing: -0.02em; margin: 0 0 1.25rem; max-width: 16ch; }
.hdf-hero .hdf-lede { color: #d5e4e8; margin: 0 0 2rem; }
.hdf-hero .hdf-eyebrow { color: var(--hdf-mint); }
.hdf-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.hdf-hero a:not(.ds-c-button) { color: var(--hdf-mint); }
.hdf-hero :focus-visible { outline-color: var(--color-white); }
@media (max-width: 60em) { .hdf-hero .hdf-wrap { grid-template-columns: 1fr; gap: 2rem; } .hdf-hero { padding: 2.5rem 0; } }

/* question/organization finder */
.hdf-finder { background: var(--color-background); color: var(--color-base); border-radius: 10px; padding: 1.5rem; box-shadow: 0 12px 40px rgba(0,0,0,0.25); }
.hdf-finder h2 { font-size: 1.25rem; margin: 0 0 0.25rem; }
.hdf-finder .ds-c-field { max-width: none; }
.hdf-finder-results { list-style: none; margin: 1rem 0 0; padding: 0; max-height: 22rem; overflow: auto; }
.hdf-finder-results li { border-top: 1px solid var(--color-border); padding: 0.6rem 0; }
.hdf-finder-results a { font-weight: 600; }
.hdf-finder-results .hdf-meta { display: block; font-size: 0.875rem; color: var(--color-gray-dark); margin-top: 0.15rem; }
.hdf-suggest { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.75rem; }
.hdf-chip { border: 1px solid var(--color-border); background: var(--color-background); border-radius: 999px; padding: 0.3rem 0.75rem; font: inherit; font-size: 0.875rem; color: var(--color-base); cursor: pointer; }
.hdf-chip:hover, .hdf-chip[aria-pressed="true"] { border-color: var(--hdf-teal); background: var(--hdf-teal-light); }

/* ---------- stats ---------- */
.hdf-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr)); gap: 1px; background: var(--color-border); border: 1px solid var(--color-border); border-radius: var(--hdf-radius); overflow: hidden; margin: 0; }
.hdf-stats > div { background: var(--color-background); padding: 1.25rem 1.25rem 1.1rem; }
.hdf-stats dt { font-size: 0.875rem; color: var(--color-gray-dark); margin-top: 0.35rem; }
.hdf-stats dd { margin: 0; font: 700 2rem/1.1 var(--font-family-heading, "Open Sans", sans-serif); color: var(--hdf-ink); font-variant-numeric: tabular-nums; }
.hdf-stats > div { display: flex; flex-direction: column-reverse; justify-content: flex-end; }
.hdf-source-note { font-size: 0.875rem; color: var(--color-gray-dark); margin-top: 0.75rem; }

/* ---------- cards ---------- */
.hdf-grid { display: grid; gap: var(--hdf-gap); grid-template-columns: repeat(auto-fill, minmax(18rem, 1fr)); }
.hdf-grid--2 { grid-template-columns: repeat(auto-fit, minmax(22rem, 1fr)); }
.hdf-card { background: var(--color-background); border: 1px solid var(--color-border); border-radius: var(--hdf-radius); padding: 1.5rem; display: flex; flex-direction: column; gap: 0.6rem; position: relative; }
.hdf-card h3 { margin: 0; font-size: 1.2rem; line-height: 1.3; }
.hdf-card h3 a { color: var(--hdf-ink); text-decoration: none; }
.hdf-card h3 a::after { content: ""; position: absolute; inset: 0; border-radius: var(--hdf-radius); }
.hdf-card h3 a:focus-visible { outline: none; }
.hdf-card:focus-within { outline: 3px solid var(--color-focus-dark); outline-offset: 2px; }
.hdf-card:hover { border-color: var(--hdf-teal); box-shadow: 0 4px 16px rgba(15,42,51,0.08); }
.hdf-card p { margin: 0; color: var(--color-gray-dark); }
.hdf-card .hdf-card-foot { margin-top: auto; padding-top: 0.75rem; border-top: 1px solid var(--color-border); font-size: 0.875rem; color: var(--color-gray-dark); display: flex; flex-wrap: wrap; gap: 0.25rem 1rem; }
.hdf-card--flag { border-top: 4px solid var(--hdf-teal); }
.hdf-card--plain:hover { border-color: var(--color-border); box-shadow: none; }

/* ---------- availability ---------- */
.hdf-status { display: inline-flex; align-items: center; gap: 0.4rem; font-size: 0.8125rem; font-weight: 600; white-space: nowrap; }
.hdf-status::before { content: ""; width: 0.6rem; height: 0.6rem; border-radius: 50%; flex: none; border: 2px solid currentColor; }
.hdf-status--available { color: var(--color-success-darker, #0d600a); }
.hdf-status--available::before { background: currentColor; }
.hdf-status--data_only { color: var(--color-primary-darker, #004f84); }
.hdf-status--data_only::before { background: linear-gradient(90deg, currentColor 50%, transparent 50%); }
.hdf-status--in_progress { color: var(--color-warn-darkest, #8a5c00); }
.hdf-status--planned, .hdf-status--discovered { color: var(--color-gray-dark); }
.hdf-status--restricted, .hdf-status--unavailable { color: var(--color-error-darker, #9f142b); }
.hdf-status--restricted::before, .hdf-status--unavailable::before { border-radius: 2px; }
.hdf-legend { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; padding: 0; margin: 0 0 1.25rem; list-style: none; }

/* ---------- tables ---------- */
.hdf-table-wrap { overflow-x: auto; border: 1px solid var(--color-border); border-radius: var(--hdf-radius); background: var(--color-background); }
.hdf-table-wrap table { margin: 0; width: 100%; }
.hdf-table-wrap caption { text-align: left; padding: 0.75rem 1rem; font-weight: 600; }
.hdf-num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }

/* ---------- toolbar ---------- */
.hdf-toolbar { display: flex; flex-wrap: wrap; gap: 1rem 1.5rem; align-items: end; margin-bottom: 1.25rem; }
.hdf-toolbar .ds-c-field, .hdf-toolbar .ds-c-field select { max-width: 22rem; }
.hdf-count { color: var(--color-gray-dark); font-size: 0.9375rem; margin: 0 0 0.75rem; }

/* ---------- question detail ---------- */
.hdf-q { border: 1px solid var(--color-border); border-radius: var(--hdf-radius); background: var(--color-background); margin-bottom: 0.75rem; }
.hdf-q > summary { list-style: none; cursor: pointer; padding: 1rem 1.25rem; display: grid; grid-template-columns: 1fr auto; gap: 0.25rem 1rem; align-items: center; }
.hdf-q > summary::-webkit-details-marker { display: none; }
.hdf-q > summary h3 { margin: 0; font-size: 1.0625rem; }
.hdf-q > summary .hdf-meta { grid-column: 1 / -1; font-size: 0.875rem; color: var(--color-gray-dark); }
.hdf-q[open] > summary { border-bottom: 1px solid var(--color-border); }
.hdf-q .hdf-q-body { padding: 1rem 1.25rem 1.25rem; display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); gap: 1rem 2rem; }
.hdf-q .hdf-q-body h4 { font-size: 0.875rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--color-gray-dark); margin: 0 0 0.35rem; }
.hdf-q .hdf-q-body ul { margin: 0; padding-left: 1.1rem; }
.hdf-q .hdf-q-body p { margin: 0; }
.hdf-prompt { background: var(--hdf-teal-light); border-radius: var(--hdf-radius); padding: 0.5rem 0.75rem; font-size: 0.9375rem; }
code.hdf-code { background: var(--color-gray-lightest); padding: 0.1rem 0.35rem; border-radius: 3px; font-size: 0.875em; }

/* ---------- data universe map ---------- */
.hdf-map { background: var(--color-background); border: 1px solid var(--color-border); border-radius: var(--hdf-radius); padding: 1rem; overflow-x: auto; }
.hdf-map svg { display: block; min-width: 60rem; width: 100%; height: auto; }
.hdf-map .node rect { fill: var(--color-background); stroke: var(--color-gray-light); stroke-width: 1; }
.hdf-map .node.st-available rect { stroke: var(--color-success-dark); }
.hdf-map .node.st-discovered rect { stroke-dasharray: 4 3; }
.hdf-map .node.st-restricted rect { fill: var(--color-error-lightest); stroke: var(--color-error-dark); }
.hdf-map .node.st-planned rect { fill: var(--color-gray-lightest); stroke-dasharray: 2 3; }
.hdf-map .node text { font: 12px/1 var(--font-family-body, sans-serif); fill: var(--color-base); }
.hdf-map .node:focus { outline: none; }
.hdf-map .node:focus rect, .hdf-map .node:hover rect, .hdf-map .node.is-on rect { stroke: var(--hdf-teal); stroke-width: 2.5; }
.hdf-map .lane-title { font: 700 13px var(--font-family-heading, sans-serif); fill: var(--hdf-ink); }
.hdf-map .edge { fill: none; stroke-width: 1.6; }
.hdf-map .edge.validated { stroke: var(--hdf-teal); }
.hdf-map .edge.conceptual { stroke: var(--color-gray); stroke-dasharray: 5 4; }
.hdf-map .edge.dim { opacity: 0.12; }
.hdf-map-key { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; font-size: 0.875rem; margin: 0.75rem 0 0; padding: 0; list-style: none; }
.hdf-map-key svg { vertical-align: middle; margin-right: 0.35rem; }

/* ---------- article ---------- */
.hdf-article { display: grid; grid-template-columns: minmax(0, 1fr) 18rem; gap: 3rem; }
.hdf-article-body { max-width: 70ch; }
.hdf-article aside { font-size: 0.9375rem; }
.hdf-article aside section { border-top: 1px solid var(--color-border); padding: 1rem 0; }
.hdf-article aside h2 { font-size: 0.875rem; text-transform: uppercase; letter-spacing: 0.05em; margin: 0 0 0.5rem; color: var(--color-gray-dark); }
.hdf-findings { background: var(--hdf-teal-light); border-radius: var(--hdf-radius); padding: 1.25rem 1.5rem; }
.hdf-findings h2 { margin-top: 0; font-size: 1.25rem; }
.hdf-byline { display: flex; flex-wrap: wrap; gap: 0.25rem 1.5rem; color: var(--color-gray-dark); font-size: 0.9375rem; margin: 0 0 1.5rem; }
@media (max-width: 60em) { .hdf-article { grid-template-columns: 1fr; } }

/* ---------- pipeline (editorial and data lifecycle) ---------- */
.hdf-steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr)); gap: 0.5rem; counter-reset: s; }
.hdf-steps li { background: var(--color-background); border: 1px solid var(--color-border); border-radius: var(--hdf-radius); padding: 0.75rem; font-size: 0.875rem; counter-increment: s; }
.hdf-steps li::before { content: counter(s); display: block; font-weight: 700; color: var(--hdf-teal); }
.hdf-steps li.is-public { border-color: var(--hdf-teal); background: var(--hdf-teal-light); }

/* ---------- breadcrumbs ---------- */
.hdf-crumbs ol { list-style: none; padding: 0; margin: 0 0 1rem; display: flex; flex-wrap: wrap; gap: 0.25rem; font-size: 0.875rem; }
.hdf-crumbs li + li::before { content: "/"; margin-right: 0.25rem; color: var(--color-gray); }

/* ---------- footer band ---------- */
.hdf-trust { background: var(--hdf-ink); color: #d5e4e8; padding: 3rem 0; }
.hdf-trust h2, .hdf-trust h3 { color: var(--color-white); }
.hdf-trust a { color: var(--hdf-mint); }
.hdf-trust :focus-visible { outline-color: var(--color-white); }
.hdf-trust .hdf-grid { grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); }
.hdf-trust p { color: #d5e4e8; }

.hdf-visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; } }

/* CMSDS 18 lays out every un-roled ul/ol as a column flexbox; restore row layouts for our inline lists. */
.hdf-nav ul, .hdf-legend, .hdf-map-key, .hdf-crumbs ol { flex-direction: row; padding-inline-start: 0; margin-block: 0; }
.hdf-legend { margin-bottom: 1.25rem; }
.hdf-finder-results, .hdf-steps { padding-inline-start: 0; gap: 0; }
.hdf-steps { gap: 0.5rem; }
@media (max-width: 54em) { .hdf-nav ul { flex-direction: column; } }

[hidden] { display: none !important; }

/* Deviation: CMSDS inline-error red (#e31c3d) is 4.1:1 on the site's #f2f2f2 page background; use the darker error token (7.2:1). */
.ds-c-inline-error { color: var(--color-error-darker, #9f142b); }
.hdf-flush { display: block; }

/* Beta journey (Use with AI) */
.hdf-js-only { display: none; }
.js .hdf-js-only { display: inline-flex; }
.hdf-prompt-text { white-space: pre-wrap; overflow-wrap: anywhere; background: var(--color-gray-lightest); border: 1px solid var(--color-border); border-radius: var(--hdf-radius); padding: 1rem; font-size: 0.9375rem; max-width: 80ch; }
.hdf-all-acos { margin: 1rem 0; }
.hdf-all-acos summary { cursor: pointer; font-weight: 600; color: var(--color-primary); }
.hdf-all-acos .hdf-table-wrap { max-height: 28rem; overflow: auto; margin-top: 0.75rem; }
.hdf-footnav ul { list-style: none; padding: 0; margin: 0 0 1rem; display: flex; flex-direction: row; flex-wrap: wrap; gap: 0.25rem 1.25rem; }
#aco-pick-results { display: flex; flex-direction: row; flex-wrap: wrap; gap: 0.5rem; max-height: none; }
#aco-pick-results li { border: 0; padding: 0; }
#aco-selected { margin-bottom: 1rem; }
.hdf-lede + .hdf-steps { margin-top: 1.5rem; }
.hdf-sample { max-width: 80ch; }
.hdf-sample hr { border: 0; border-top: 1px solid var(--color-border); margin: 1.5rem 0; }

/* Homepage: a short heading, search, and three entry points on the first screen */
.hdf-hero--entry { padding: 2.25rem 0 2rem; }
.hdf-hero--entry h1 { font-size: clamp(1.9rem, 1.4rem + 1.8vw, 2.6rem); max-width: 22ch; margin-bottom: 0.75rem; }
.hdf-hero--entry .hdf-lede { margin-bottom: 0; }
.hdf-hero .hdf-wrap.hdf-entries { list-style: none; margin: 1.75rem auto 0; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--hdf-gap); align-items: stretch; }
.hdf-hero .hdf-entry { color: var(--color-base); }
.hdf-hero .hdf-entry .hdf-eyebrow { color: var(--hdf-teal); margin: 0; }
.hdf-entry h2 { margin: 0; font-size: 1.2rem; line-height: 1.3; }
.hdf-hero .hdf-entry h2 a { color: var(--hdf-ink); }
.hdf-entry h2 a::after { content: ""; position: absolute; inset: 0; border-radius: var(--hdf-radius); }
.hdf-entry h2 a:focus-visible { outline: none; }
.hdf-hero .hdf-entry:focus-within { outline-color: var(--color-white); }
.hdf-entry .hdf-entry-fact { color: var(--color-base); font-weight: 600; }
.hdf-hero .hdf-wrap.hdf-entries-more { display: block; margin-top: 1.25rem; color: #d5e4e8; }
@media (max-width: 60em) { .hdf-hero .hdf-wrap.hdf-entries { grid-template-columns: 1fr; } }

/* A brief and its copy block */
.hdf-brief { margin: 1.5rem 0 2.5rem; }
.hdf-evidence { border-left: 4px solid var(--hdf-teal); padding: 0.25rem 0 0.25rem 1.25rem; margin: 1.5rem 0; }
.hdf-evidence h3 { margin-top: 0; }
.hdf-evidence .hdf-prompt-text { max-height: 26rem; overflow: auto; }
.hdf-prompt-text:focus-visible { outline: 3px solid var(--color-focus-dark); outline-offset: 2px; }
.hdf-worked li { margin-bottom: 0.5rem; }

/* Questions and release-pinned analysis pages */
.hdf-question-tasks {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  padding: 0;
  list-style: none;
}
.hdf-question-task { border-top: 4px solid #0b7a72; display: flex; flex-direction: column; align-items: start; }
.hdf-question-task h2 { font-size: 1.25rem; margin: 0; }
.hdf-question-task a { margin-top: auto; font-weight: 700; }
.hdf-question-period { color: #356061; font-size: .9375rem; font-weight: 700; margin-block: .55rem; }
.hdf-track-answer { margin-block: 2.25rem; padding-block: 1.25rem; border-block: 1px solid #c5d8d7; }
.hdf-analysis { scroll-margin-top: 1rem; }
.hdf-analysis h1, .hdf-track-answer h2 { max-width: 43ch; }
.hdf-analysis .table-scroll { margin-block: 1rem; }
.hdf-answer-disclosure { margin-block: .75rem; }
.hdf-answer-disclosure summary { cursor: pointer; font-weight: 700; padding-block: .55rem; }
.hdf-answer-agent { border: 1px solid #a3c4c3; border-radius: .4rem; padding: .2rem 1rem; background: #f0f8f7; }
.hdf-answer-agent h3 { margin-top: 1rem; font-size: 1.125rem; }
.hdf-question-copy { margin-bottom: 1.25rem; }
.hdf-prompt { overflow-wrap: anywhere; }
.hdf-question-selector:not([hidden]) {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 1rem;
  align-items: end;
  margin-block: 1.5rem .5rem;
}
.hdf-question-selector > div:first-child { flex: 2 1 18rem; min-width: 0; }
.hdf-question-selector > div:nth-child(2) { flex: 1 0 8rem; }
.hdf-question-selector .ds-c-field { width: 100%; margin-bottom: 0; margin-top: .25rem; }
.hdf-question-selector .ds-c-hint { flex-basis: 100%; margin: 0; }
.hdf-selection-links { font-size: .9375rem; }
.hdf-question-limit { padding: .7rem 1rem; background: #f6f8f9; border-left: 3px solid #0b7a72; }
.hdf-footprint-totals { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .75rem; }
.hdf-footprint-totals > div { padding: .75rem; background: #f0f8f7; }
.hdf-footprint-totals dd { margin: 0; font-size: 1.2rem; font-weight: 700; overflow-wrap: anywhere; }
.hdf-footprint-coverage meter { display: block; width: min(100%, 34rem); height: 1.2rem; accent-color: #0b7a72; }
.hdf-file-hash { overflow-wrap: anywhere; }
.hdf-library-link { padding: .8rem 1rem; }

@media (max-width: 700px) {
  .hdf-question-tasks { grid-template-columns: minmax(0, 1fr); }
  .hdf-footprint-totals { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---------- prompt workspace (Figma AdJYPE8u1Ns1tPy6uAJBaV: 8:41 home, 7:29 desktop, 7:104 mobile, 7:63 memo) ---------- */
:root {
  --ws-canvas: #f7f5ee; --ws-ink: #103c3b; --ws-action: #086c60; --ws-brand: #126455; --ws-muted: #4b605d;
  --ws-rule: #d6ddd4; --ws-on-dark: #d9ebd8; --ws-tint: #eff4eb; --ws-fine: #74918b;
  --ws-serif: "Lora", Georgia, "Times New Roman", serif; --ws-sans: "Open Sans", var(--font-family-body, system-ui), sans-serif;
}
.hdf-flush:has(.hdf-ws-page), main:has(> .hdf-ws-page) { background: var(--ws-canvas); }
.hdf-ws-page { max-width: 69.25rem; margin: 0 auto; padding: 2.2rem 1.5rem 3rem; color: var(--ws-ink); font-family: var(--ws-sans); }
.hdf-ws-eyebrow { margin: 0 0 .5rem; font: 700 .75rem/1.3 var(--ws-sans); letter-spacing: .02em; text-transform: uppercase; color: var(--ws-action); }
.hdf-ws-eyebrow--dark { color: var(--ws-on-dark); }
.hdf-ws-title { margin: 0 0 .75rem; font: 400 clamp(2.1rem, 4.5vw, 3.25rem)/1.15 var(--ws-serif); color: var(--ws-ink); }
.hdf-ws-intro { margin: 0 0 2.2rem; font-size: 1.1875rem; line-height: 1.45; color: var(--ws-muted); max-width: 68rem; }
.hdf-ws + .hdf-ws { margin-top: 4rem; padding-top: 2.5rem; border-top: 1px solid var(--ws-rule); }
.hdf-ws-grid { display: grid; grid-template-columns: minmax(0, 550fr) minmax(0, 534fr); gap: 1.5rem; align-items: stretch; }
.hdf-ws-panel { background: #fff; border-radius: 12px; padding: 1.55rem 1.5rem 1.5rem; }
.hdf-ws-fields { display: flex; flex-wrap: wrap; gap: .7rem; margin-bottom: 1.75rem; }
.hdf-ws-field { display: flex; flex-direction: column; min-width: 9.375rem; }
.hdf-ws-field label { font: 700 .75rem/1.2 var(--ws-sans); text-transform: uppercase; color: var(--ws-muted); padding: .45rem .7rem 0; border: 1px solid var(--ws-rule); border-bottom: 0; border-radius: 5px 5px 0 0; background: #fff; }
.hdf-ws-field input, .hdf-ws-field select { font: 600 1.125rem/1.3 var(--ws-sans); color: var(--ws-ink); padding: .2rem .7rem .55rem; border: 1px solid var(--ws-rule); border-top: 0; border-radius: 0 0 5px 5px; background: #fff; width: 100%; }
.hdf-ws-field:focus-within label, .hdf-ws-field:focus-within input, .hdf-ws-field:focus-within select { border-color: var(--ws-action); }
.hdf-ws-field input:focus, .hdf-ws-field select:focus { outline: 3px solid var(--ws-action); outline-offset: 2px; }
.hdf-ws-hint { font-size: .75rem; color: var(--ws-muted); margin-top: .25rem; }
.hdf-ws-subtitle { margin: 0 0 .75rem; font: 700 1.25rem/1.3 var(--ws-sans); color: var(--ws-ink); }
.hdf-ws-prompt { margin: 0 0 1.75rem; padding: 0; background: none; border: 0; white-space: pre-wrap; font: 400 1.125rem/1.5 var(--ws-sans); color: var(--ws-ink); }
.hdf-ws-prompt:focus { outline: 3px solid var(--ws-action); outline-offset: 4px; }
.hdf-ws-prompt--small { font-size: 1rem; margin-bottom: .75rem; }
.hdf-ws-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .9rem 1rem; margin: 0 0 .5rem; }
.hdf-ws-copy { min-height: 44px; min-width: 10.9rem; padding: .55rem .95rem; border: 0; border-radius: 6px; background: var(--ws-action); color: #fff; font: 700 1rem/1.2 var(--ws-sans); text-align: left; cursor: pointer; }
.hdf-ws-copy:hover { background: var(--ws-brand); }
.hdf-ws-copy:focus-visible, .hdf-ws-link:focus-visible, .hdf-ws-sample-link:focus-visible, .hdf-home-lead:focus-visible, .hdf-home-card:focus-visible { outline: 3px solid #f5b62a; outline-offset: 3px; }
.hdf-ws-copy[disabled] { background: var(--ws-fine); cursor: not-allowed; }
.hdf-ws-link { font: 700 .875rem/1.3 var(--ws-sans); color: var(--ws-brand); background: none; border: 0; padding: 0; cursor: pointer; text-decoration: none; }
.hdf-ws-link:hover { text-decoration: underline; }
.hdf-ws-note { margin: .6rem 0 0; font-size: .9375rem; color: var(--ws-muted); }
.hdf-ws-error { margin: 0 0 1rem; padding: .5rem .75rem; border-left: 4px solid #b50909; background: #fbeaea; color: #6b0505; font-size: .9375rem; }
.hdf-ws-follow { margin-top: 1rem; border-top: 1px solid var(--ws-rule); padding-top: .75rem; }
.hdf-ws-follow summary { cursor: pointer; font-weight: 700; color: var(--ws-brand); }
.hdf-ws-sample { background: var(--ws-ink); color: #fff; border-radius: 12px; padding: 1.8rem 1.75rem 1.75rem; display: flex; flex-direction: column; }
.hdf-ws-sample-name { margin: .4rem 0 .5rem; font: 400 clamp(1.75rem, 3vw, 2.375rem)/1.2 var(--ws-serif); color: #fff; }
.hdf-ws-vs { font-size: .6em; color: var(--ws-on-dark); }
.hdf-ws-sample-id { margin: 0 0 1.75rem; font-size: 1rem; color: var(--ws-on-dark); }
.hdf-ws-figure { margin: 0; font: 700 clamp(2.75rem, 5.5vw, 3.875rem)/1.1 var(--ws-sans); color: #fff; font-variant-numeric: tabular-nums; }
.hdf-ws-figure-label { margin: .6rem 0 1.3rem; font: 600 1.1875rem/1.3 var(--ws-sans); color: #fff; }
.hdf-ws-rule { border: 0; border-top: 1px solid var(--ws-fine); margin: 0 0 1.5rem; width: 100%; }
.hdf-ws-sample-text { margin: 0 0 1rem; font-size: 1.125rem; line-height: 1.45; }
.hdf-ws-preview { margin: 0 0 1rem; font-size: .9375rem; color: var(--ws-on-dark); }
.hdf-ws-preview:empty { display: none; }
.hdf-ws-sample-link { margin-top: auto; font: 700 1.0625rem/1.3 var(--ws-sans); color: var(--ws-on-dark); text-decoration: none; }
.hdf-ws-sample-link:hover { text-decoration: underline; color: #fff; }
.hdf-ws-source { margin: 1.2rem 0 0; font-size: .8125rem; color: var(--ws-muted); }
.hdf-ws-tabs ul { list-style: none; display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; margin: 0 0 2rem; padding: 0; }
.hdf-ws-tabs a { font-weight: 600; color: var(--ws-ink); }
.hdf-ws-library { margin-top: 4rem; padding-top: 2rem; border-top: 1px solid var(--ws-rule); }
.hdf-ws-return { margin: 0 0 1rem; font-weight: 700; }
.hdf-ws-return a { color: var(--ws-brand); }
.hdf-ws-selected { margin-bottom: 2rem; }
.hdf-verify { margin: 2.5rem 0; padding: 1.5rem; background: #fff; border-radius: 12px; }
.hdf-files { margin: 2.5rem 0; }
.hdf-files summary { cursor: pointer; }
.hdf-files summary h2 { display: inline; font-size: 1.375rem; }
/* home */
.hdf-home-grid { display: grid; grid-template-columns: minmax(0, 550fr) minmax(0, 537fr); grid-template-rows: auto auto; gap: 1.35rem 1.4rem; margin-bottom: 2.75rem; }
.hdf-home-lead { grid-row: 1 / span 2; display: flex; flex-direction: column; background: var(--ws-ink); color: #fff; border-radius: 10px; padding: 1.7rem 1.6rem 1.6rem; text-decoration: none; min-height: 21.4rem; }
.hdf-home-lead-title { font: 400 clamp(2rem, 3.6vw, 2.5rem)/1.2 var(--ws-serif); margin: .5rem 0 1.6rem; }
.hdf-home-lead-text { font-size: 1.125rem; line-height: 1.45; }
.hdf-home-lead-action { margin-top: auto; padding-top: 1.5rem; font-weight: 700; font-size: 1.125rem; color: var(--ws-on-dark); }
.hdf-home-card { display: flex; flex-direction: column; background: #fff; border-radius: 8px; padding: 1.25rem 1.5rem 1.4rem; color: var(--ws-ink); text-decoration: none; }
.hdf-home-card-title { font: 400 1.8125rem/1.25 var(--ws-serif); margin: .2rem 0 .7rem; }
.hdf-home-card-text { font-size: 1rem; line-height: 1.45; }
.hdf-home-lead:hover .hdf-home-lead-action, .hdf-home-card:hover .hdf-home-card-title { text-decoration: underline; }
.hdf-home-foot { padding-top: 1.4rem; border-top: 1px solid var(--ws-rule); font-weight: 600; color: var(--ws-action); }
.hdf-home-foot a { color: var(--ws-action); }
/* memo (7:63) */
.hdf-memo { max-width: 46rem; margin: 2rem auto 3rem; padding: 1.75rem 2rem 2rem 2.6rem; background: #fff; border-left: 12px solid var(--ws-ink); color: var(--ws-ink); }
.hdf-memo-kicker { text-align: right; }
.hdf-memo-title { margin: 0 0 .6rem; font: 400 clamp(2.2rem, 4.4vw, 3.0625rem)/1.15 var(--ws-serif); }
.hdf-memo-sub { margin: 0 0 1.9rem; color: var(--ws-muted); font-size: .9375rem; }
.hdf-memo-lead { background: var(--ws-tint); border-radius: 8px; padding: 1.25rem 1.3rem; margin-bottom: 2rem; }
.hdf-memo-lead h2 { margin: 0 0 .75rem; font: 400 clamp(1.6rem, 3vw, 2.1875rem)/1.2 var(--ws-serif); }
.hdf-memo-lead p { margin: 0; font-size: 1.0625rem; line-height: 1.45; }
.hdf-memo-table { width: 100%; border-collapse: collapse; font-size: 1rem; font-variant-numeric: tabular-nums; }
.hdf-memo-table caption { text-align: left; font: 700 .75rem/1.3 var(--ws-sans); text-transform: uppercase; color: var(--ws-action); padding-bottom: .9rem; }
.hdf-memo-table th, .hdf-memo-table td { text-align: left; padding: .55rem .75rem .55rem 0; border-bottom: 1px solid var(--ws-rule); font-weight: 400; vertical-align: top; }
.hdf-memo-table thead th { font: 700 .75rem/1.3 var(--ws-sans); color: var(--ws-muted); text-transform: uppercase; border-top: 0; }
.hdf-memo-total th, .hdf-memo-total td:last-child { font-weight: 700; }
.hdf-memo-h2 { margin: 1.75rem 0 .75rem; font: 400 1.8125rem/1.2 var(--ws-serif); }
.hdf-memo-questions { font-size: 1.0625rem; line-height: 1.5; padding-left: 1.25rem; }
.hdf-memo-evidence { margin-top: 1.5rem; padding-top: 1.2rem; border-top: 1px solid var(--ws-rule); font-size: .875rem; color: var(--ws-muted); }
@media (max-width: 52rem) {
  .hdf-ws-grid, .hdf-home-grid { grid-template-columns: 1fr; }
  .hdf-home-lead { grid-row: auto; min-height: 0; }
  .hdf-ws-page { padding: 1.25rem 1rem 2rem; }
  .hdf-ws-panel, .hdf-ws-sample { padding: 1.25rem 1rem; }
  .hdf-ws-fields { flex-wrap: nowrap; }
  .hdf-ws-field { min-width: 0; flex: 1 1 0; }
  .hdf-memo { padding: 1.25rem 1rem 1.5rem 1.4rem; border-left-width: 8px; }
}
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; } }

/* Workspace: the pinned sample keeps its own label when the selection differs (Figma 8:65 states) */
.hdf-ws-pinned { margin: .25rem 0 .75rem; padding: .5rem .75rem; border-left: 4px solid #f2c94c; background: rgba(242, 201, 76, .14); font-weight: 600; line-height: 1.4; }
.hdf-ws-sample .hdf-ws-pinned { color: #fff; background: rgba(242, 201, 76, .18); }
.hdf-ws-sample--other .hdf-ws-figure, .hdf-ws-sample--other .hdf-ws-sample-name { opacity: .78; }

.hdf-board-hero, .hdf-board-offers { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:2rem; }
.hdf-board-hero { align-items:center; padding:1rem 0 2rem; }
.hdf-board-action { display:inline-flex; align-items:center; text-decoration:none; color:white !important; }
.hdf-board-excerpt { padding:1.6rem; background:white; border-left:.45rem solid var(--ws-ink); border-radius:5px; }
.hdf-board-excerpt h2, .hdf-results-status h2 { font:400 1.85rem/1.2 var(--ws-serif); margin:.4rem 0; }
.hdf-board-excerpt dl { display:flex; flex-wrap:wrap; gap:1rem; padding:1rem; background:var(--ws-tint); }
.hdf-board-excerpt dd { margin:0; font:400 1.9rem/1.3 var(--ws-serif); }
.hdf-results-status { border-block:1px solid var(--ws-rule); margin:1rem 0 2rem; padding:1rem 0; }
.hdf-results-status p { margin:.4rem 0; }
.hdf-board-offers dl div { display:flex; justify-content:space-between; gap:.5rem; border-bottom:1px solid var(--ws-rule); padding:.35rem 0; }
.hdf-board-offers dl, .hdf-board-offers dd { margin:0; }
.hdf-board-offers { margin-bottom:1.5rem; }
.hdf-footer-groups { display:grid; grid-template-columns:repeat(3,1fr); gap:1rem; }
.hdf-footer-groups ul, .hdf-footer-utility { list-style:none; padding:0; margin:.5rem 0; }
.hdf-footer-groups li { margin:.4rem 0; }
footer.site .hdf-footer-utility { display:flex; flex-flow:row wrap; gap:.5rem 1.25rem; border-top:1px solid var(--ws-rule); padding-top:1rem; }
.hdf-home-foot { max-width:none; }
footer.site a:focus-visible { outline:3px solid currentColor; outline-offset:2px; }
@media(max-width:44rem) {
 .hdf-board-hero,.hdf-board-offers { grid-template-columns:1fr; gap:1rem; }
 .hdf-board-hero .hdf-ws-intro { margin-bottom:1rem; }
 .hdf-footer-groups { grid-template-columns:repeat(auto-fit,minmax(8rem,1fr)); }
}

.hdf-national-prompt { overflow-wrap:anywhere; }
.hdf-results-banner { margin:0 0 1rem; padding:.75rem 1rem; background:var(--ws-tint); border-left:.35rem solid var(--ws-ink); border-radius:4px; }
.hdf-results-banner p { margin:0; overflow-wrap:anywhere; }
.hdf-results-banner a { white-space:nowrap; margin-left:.35rem; }
.hdf-results-banner[data-results-state="checking"] { border-left-color:#b45f06; }
.hdf-results-lead { border-left:.35rem solid var(--ws-ink); padding:.25rem 0 .25rem 1rem; margin:1rem 0 1.5rem; }
.hdf-results-jump ul { display:flex; flex-wrap:wrap; gap:.4rem 1.25rem; list-style:none; padding:0; margin:.75rem 0; }
.hdf-results-dates { display:grid; grid-template-columns:repeat(auto-fit,minmax(14rem,1fr)); gap:.5rem 1.5rem; margin:.75rem 0; }
.hdf-results-dates dt { font-weight:700; } .hdf-results-dates dd { margin:0; }
.hdf-results-find input[type="search"] { max-width:28rem; width:100%; }
.hdf-results-find [data-results-find-out] { margin:.75rem 0; }
:is(#aco-leaders,#aco-per-beneficiary,#aco-changes,#aco-examples) th[scope="row"] { min-width:10rem; overflow-wrap:normal; }
:is(#aco-leaders,#aco-per-beneficiary,#aco-changes,#aco-examples) td.num { white-space:nowrap; }
@media(max-width:44rem) { .hdf-results-banner a { white-space:normal; display:inline-block; margin:.25rem 0 0; } }
.hdf-ws-preview { overflow-wrap:anywhere; }

/* Homepage worked finding (WO "ACO and regional profiles"): search on the left, one sourced finding on the right */
.hdf-explore-search { margin: 0 0 1rem; }
.hdf-explore-search .ds-c-label { font-weight: 700; color: var(--ws-ink); }
.hdf-explore-row { display: flex; gap: .5rem; align-items: flex-start; flex-wrap: wrap; }
.hdf-explore-row .aco-search { flex: 1 1 16rem; min-width: 0; }
.hdf-explore-row .ds-c-field { width: 100%; max-width: none; margin-top: 0; }
.hdf-explore-row .ds-c-button { white-space: nowrap; }
.hdf-explore-routes { list-style: none; padding: 0; margin: .25rem 0 0; display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; }
.hdf-explore-routes a { font-weight: 600; color: var(--ws-action); }
.hdf-hero-finding h2 { font-size: 1.5rem; }
.hdf-hero-headline { font: 400 1.35rem/1.35 var(--ws-serif); margin: .25rem 0 .9rem; }
.hdf-hero-headline strong { font-weight: 600; }
.hdf-hero-chart { margin: 0 0 1rem; padding: .75rem 1rem; background: var(--ws-tint); border-radius: 4px; }
.hdf-hero-chart figcaption { font: 700 .75rem/1.3 var(--ws-sans); text-transform: uppercase; color: var(--ws-muted); margin-bottom: .4rem; }
.hdf-hero-bars { list-style: none; margin: 0; padding: 0; }
.hdf-hero-bars li { display: grid; grid-template-columns: 4rem 1fr 6.5rem; align-items: center; gap: .6rem; margin: .3rem 0; }
.hdf-hero-bars b { font: 600 1.05rem/1.2 var(--ws-sans); text-align: right; font-variant-numeric: tabular-nums; }
.hdf-hero-track { position: relative; display: block; height: 1rem; border-left: 1px solid var(--ws-muted); }
.hdf-hero-bar { position: absolute; top: 0; bottom: 0; border-radius: 0 2px 2px 0; }
.hdf-hero-earned { background: var(--ws-brand); }
.hdf-hero-owed { background: #9b3d2a; border-radius: 2px 0 0 2px; }
.hdf-hero-zero { background: transparent; }
.hdf-hero-findings { margin: 0 0 .9rem; padding-left: 1.1rem; }
.hdf-hero-findings li { margin: 0 0 .65rem; line-height: 1.45; }
.hdf-hero-findings .meta { display: block; font-size: .8rem; color: var(--ws-muted); }
.hdf-hero-limit { list-style: "–  "; color: var(--ws-muted); }
.hdf-hero-actions { display: flex; flex-wrap: wrap; gap: .75rem 1.25rem; align-items: center; margin: .75rem 0 0; }
@media (max-width: 44rem) {
  .hdf-hero-bars li { grid-template-columns: 3.6rem 1fr 5.6rem; }
  .hdf-hero-finding { padding: 1.1rem; }
}
.hdf-hero-alias { margin: 0 0 .5rem; color: var(--ws-muted); font-size: .9375rem; }
/* Suggested comparators and serving ACOs inside the dark sample panel: readable links, no bullets crowding the text. */
.hdf-ws-peers { margin: .5rem 0 0; padding-left: 1.1rem; font-size: .875rem; }
.hdf-ws-peers li { margin: 0 0 .4rem; }
.hdf-ws-peers a { color: var(--ws-on-dark); text-decoration: underline; font-weight: 700; }
.hdf-worked-examples { margin: .5rem 0 1rem; }

/* ---------- discovery, gallery, pricing, coverage (work order: from a public finding to a paid analysis) ---------- */
.hdf-start { display: flex; flex-wrap: wrap; gap: 0.5rem 0.75rem; max-width: var(--hdf-wide); margin: 0.75rem auto 0; padding: 0 1.25rem; }
.hdf-start a { display: inline-block; padding: 0.45rem 0.9rem; border: 2px solid var(--hdf-teal); border-radius: var(--hdf-radius); color: var(--hdf-teal); font-weight: 700; text-decoration: none; }
.hdf-start a.hdf-start-primary { background: var(--hdf-teal); color: #fff; }
.hdf-start a:hover { text-decoration: underline; }
.hdf-gallery { max-width: var(--hdf-wide); margin: 2rem auto; padding: 0 1.25rem; }
.hdf-gallery-h { margin: 0 0 0.25rem; color: var(--hdf-ink); }
.hdf-gallery-intro { max-width: 52rem; margin: 0 0 1rem; }
.hdf-g-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 21rem), 1fr)); gap: 1rem; }
.hdf-g-card { border: 1px solid var(--color-border, #d6d7d9); border-radius: var(--hdf-radius); padding: 1rem 1.1rem; display: flex; flex-direction: column; gap: 0.35rem; background: #fff; }
.hdf-g-card .hdf-ws-eyebrow { margin: 0; }
.hdf-g-title { margin: 0; font-size: 1.2rem; color: var(--hdf-ink); }
.hdf-g-sub { margin: 0; color: #4a4a4a; }
.hdf-g-preview { margin: 0.25rem 0; display: grid; gap: 0.2rem; }
.hdf-g-preview div { display: flex; justify-content: space-between; gap: 1rem; border-bottom: 1px dotted #c9cbcd; padding: 0.15rem 0; }
.hdf-g-preview dt { font-weight: 400; }
.hdf-g-preview dd { margin: 0; font-weight: 700; font-variant-numeric: tabular-nums; text-align: right; }
.hdf-g-meta, .hdf-g-note { margin: 0; font-size: 0.875rem; color: #4a4a4a; }
.hdf-g-custom { margin: 0.25rem 0 0; font-size: 0.95rem; }
.hdf-g-foot { margin: auto 0 0; padding-top: 0.5rem; display: flex; flex-wrap: wrap; gap: 0.4rem 0.75rem; align-items: center; justify-content: space-between; }
.hdf-g-access { font-size: 0.8rem; font-weight: 700; padding: 0.15rem 0.5rem; border-radius: 999px; background: #f1f3f6; color: var(--hdf-ink); }
.hdf-g-access--free { background: var(--hdf-teal-light); color: #075e58; }
.hdf-g-action { font-weight: 700; }
.hdf-g-chart { margin: 0.25rem 0; }
.hdf-g-bar { display: grid; grid-template-columns: 5.5rem 1fr 4.5rem; gap: 0.5rem; align-items: center; font-size: 0.875rem; }
.hdf-g-bar-track { background: #f1f3f6; height: 0.75rem; border-radius: 2px; overflow: hidden; }
.hdf-g-bar-fill { display: block; height: 100%; background: var(--hdf-teal); }
.hdf-g-bar-value { text-align: right; font-variant-numeric: tabular-nums; font-weight: 700; }
.hdf-g-chart figcaption { font-size: 0.8rem; color: #4a4a4a; }
.hdf-ws-section-h { max-width: var(--hdf-wide); margin: 2rem auto 0.5rem; padding: 0 1.25rem; }
.hdf-ws-instructions > summary { cursor: pointer; font-weight: 700; color: var(--hdf-teal); padding: 0.5rem 0; }
.hdf-paths { max-width: var(--hdf-wide); margin: 2rem auto; padding: 0 1.25rem; }
.hdf-paths-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 24rem), 1fr)); gap: 1rem; }
.hdf-path { border: 1px solid var(--color-border, #d6d7d9); border-radius: var(--hdf-radius); padding: 1rem 1.1rem; }
.hdf-path h3, .hdf-path h2 { margin-top: 0.25rem; }
.hdf-paths-packet { max-height: 16rem; overflow: auto; white-space: pre-wrap; }
.hdf-pricing, .hdf-coverage, .hdf-connect { max-width: var(--hdf-wide); margin: 0 auto; padding: 1rem 1.25rem 2rem; }
.hdf-pricing-mode { background: #fff4cc; border: 1px solid #e6c84f; padding: 0.5rem 0.75rem; border-radius: var(--hdf-radius); }
.hdf-pricing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr)); gap: 1rem; margin: 1rem 0 2rem; }
.hdf-plan { border: 1px solid var(--color-border, #d6d7d9); border-radius: var(--hdf-radius); padding: 1rem 1.25rem; }
.hdf-plan--pro { border: 2px solid var(--hdf-teal); }
.hdf-plan h2 { margin-top: 0; }
.pf-preview-sections { max-width: var(--measure); display: grid; gap: .75rem; }
.pf-preview-sections dt { font-weight: 700; }
.pf-preview-sections dd { margin: .125rem 0 0; }
.pf-preview-open li { margin: .375rem 0; }
.pf-member { border: 2px solid var(--hdf-teal); border-radius: var(--hdf-radius); padding: 1rem 1.25rem; margin: 2rem 0; max-width: var(--measure); }
.pf-member h2 { margin-top: 0; }
.pf-member-price { font-size: 1.75rem; font-weight: 700; margin: .25rem 0; }
.pf-member-next { display: flex; flex-wrap: wrap; gap: .75rem 1.25rem; align-items: center; }
.hdf-plan-price { font-size: 1.75rem; font-weight: 700; color: var(--hdf-ink); margin: 0.25rem 0; }
.hdf-pricing-table, .hdf-coverage-table { width: 100%; border-collapse: collapse; }
.hdf-pricing-table th, .hdf-pricing-table td, .hdf-coverage-table th, .hdf-coverage-table td { border-bottom: 1px solid #d6d7d9; padding: 0.45rem 0.5rem; text-align: left; vertical-align: top; }
@media (max-width: 40rem) { .hdf-g-bar { grid-template-columns: 4.5rem 1fr 3.75rem; } .hdf-start a { flex: 1 1 auto; text-align: center; } }

.pf-hero .pf-scorecard-note { color: #e6f4f0; font-size: .9rem; margin: .65rem 0 0; }
.pf-hero .pf-scorecard-note a { color: #a9eadb; }
