/* ==========================================================================
   Health Total — Design System
   Phase 8 build. Loaded after Bootstrap 5.3 so these tokens and components
   override framework defaults.

   Brand continuity: #00A651 and Poppins are taken from the live site and
   retained deliberately. Body copy moves to Inter at 17px, per the Phase 1
   finding that 14pt body copy is too small for an audience aged 28–55.
   ========================================================================== */

:root {
  /* --- Brand ------------------------------------------------------------ */
  --ht-green:       #00A651;   /* brand mark — non-text use only */
  --ht-green-600:   #00934A;
  --ht-green-700:   #007C3E;   /* white text passes AA here: 5.3:1 */
  --ht-green-800:   #00652F;
  --ht-forest:      #123B31;   /* authority dark — board document palette */
  --ht-forest-900:  #0B2720;
  --ht-mint:        #8FCBB6;
  --ht-tint:        #EDF4F1;
  --ht-tint-2:      #F7FAF9;

  /* --- Ink and neutrals ------------------------------------------------- */
  --ht-ink:         #1F2A26;
  --ht-body:        #2E3B36;
  --ht-grey:        #5C6B66;
  --ht-grey-light:  #616F6A;   /* 5.3:1 on white, 4.7:1 on --ht-tint */
  --ht-rule:        #D9E4DF;
  --ht-surface:     #FFFFFF;

  /* --- Signal ----------------------------------------------------------- */
  --ht-warn-bg:     #FDF6E7;
  --ht-warn-ink:    #6B4E06;
  --ht-danger:      #A03030;
  --ht-coral:       #F4735E;

  /* --- Type ------------------------------------------------------------- */
  --ht-font-head: 'Poppins', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --ht-font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

  /* Fluid scale. Body floor is 17px — never below 16. */
  --ht-fs-body:   1.0625rem;              /* 17px */
  --ht-fs-sm:     0.9375rem;              /* 15px */
  --ht-fs-xs:     0.8125rem;              /* 13px */
  --ht-fs-lead:   clamp(1.125rem, 0.4vw + 1.05rem, 1.3125rem);
  --ht-fs-h4:     clamp(1.125rem, 0.5vw + 1rem, 1.375rem);
  --ht-fs-h3:     clamp(1.3125rem, 1vw + 1.05rem, 1.75rem);
  --ht-fs-h2:     clamp(1.625rem, 2vw + 1.1rem, 2.5rem);
  --ht-fs-h1:     clamp(2rem, 3.4vw + 1.1rem, 3.5rem);
  --ht-fs-stat:   clamp(2rem, 3vw + 1.2rem, 3rem);

  /* --- Space ------------------------------------------------------------ */
  --ht-s-1: 0.25rem;  --ht-s-2: 0.5rem;   --ht-s-3: 0.75rem;
  --ht-s-4: 1rem;     --ht-s-5: 1.5rem;   --ht-s-6: 2rem;
  --ht-s-7: 3rem;     --ht-s-8: 4rem;     --ht-s-9: 5.5rem;

  /* --- Other ------------------------------------------------------------ */
  --ht-radius:    12px;
  --ht-radius-sm: 8px;
  --ht-radius-pill: 999px;
  --ht-shadow:    0 1px 2px rgba(18, 59, 49, .04), 0 8px 24px rgba(18, 59, 49, .07);
  --ht-shadow-sm: 0 1px 2px rgba(18, 59, 49, .06);
  --ht-tap:       48px;              /* minimum tap target — WCAG 2.2 / Android */
  --ht-sticky-h:  68px;              /* mobile sticky action bar */
}

/* ==========================================================================
   Base
   ========================================================================== */

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

body {
  margin: 0;
  font-family: var(--ht-font-body);
  font-size: var(--ht-fs-body);
  line-height: 1.65;
  color: var(--ht-body);
  background: var(--ht-surface);
  -webkit-font-smoothing: antialiased;
}

/* Room for the mobile sticky bar so it never covers the last element. */
@media (max-width: 991.98px) {
  body { padding-bottom: calc(var(--ht-sticky-h) + env(safe-area-inset-bottom, 0px)); }
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--ht-font-head);
  font-weight: 600;
  color: var(--ht-forest);
  line-height: 1.2;
  letter-spacing: -0.015em;
  margin: 0 0 var(--ht-s-4);
}
h1 { font-size: var(--ht-fs-h1); font-weight: 700; letter-spacing: -0.028em; }
h2 { font-size: var(--ht-fs-h2); }
h3 { font-size: var(--ht-fs-h3); }
h4 { font-size: var(--ht-fs-h4); }

p { margin: 0 0 var(--ht-s-4); }
p:last-child { margin-bottom: 0; }

a { color: var(--ht-green-700); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--ht-forest); }

img, svg, video { max-width: 100%; height: auto; }

/* Visible focus on everything. Never removed. */
:focus-visible {
  outline: 3px solid var(--ht-forest);
  outline-offset: 2px;
  border-radius: 4px;
}

.ht-skip {
  position: absolute; left: -9999px; top: 0; z-index: 2000;
  background: var(--ht-forest); color: #fff;
  padding: var(--ht-s-3) var(--ht-s-5);
  font-weight: 600; border-radius: 0 0 var(--ht-radius-sm) 0;
}
.ht-skip:focus { left: 0; color: #fff; }

.ht-visually-hidden {
  position: absolute !important; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* ==========================================================================
   Layout
   ========================================================================== */

.ht-wrap { width: 100%; max-width: 1200px; margin-inline: auto; padding-inline: var(--ht-s-4); }
.ht-wrap--narrow { max-width: 760px; }
.ht-wrap--mid { max-width: 940px; }
@media (min-width: 768px) { .ht-wrap { padding-inline: var(--ht-s-6); } }

.ht-section { padding-block: var(--ht-s-7); }
@media (min-width: 768px) { .ht-section { padding-block: var(--ht-s-9); } }
.ht-section--tight { padding-block: var(--ht-s-6); }
.ht-section--tint { background: var(--ht-tint-2); }
.ht-section--mint { background: var(--ht-tint); }
.ht-section--dark { background: var(--ht-forest); color: #E7F0EC; }
.ht-section--dark h1, .ht-section--dark h2, .ht-section--dark h3, .ht-section--dark h4 { color: #fff; }

.ht-kicker {
  font-family: var(--ht-font-head);
  font-size: var(--ht-fs-xs);
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ht-green-700);
  margin: 0 0 var(--ht-s-3);
}
.ht-section--dark .ht-kicker,
.ht-hero .ht-kicker { color: var(--ht-mint); }   /* the hero is dark but is not .ht-section--dark */

.ht-lead { font-size: var(--ht-fs-lead); line-height: 1.6; color: var(--ht-grey); }
.ht-section--dark .ht-lead { color: #BCD4CA; }

/* ==========================================================================
   Buttons — four labels only, per the Phase 5 CTA system
   ========================================================================== */

.ht-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  min-height: var(--ht-tap);
  padding: .8rem 1.6rem;
  font-family: var(--ht-font-head);
  font-size: 1rem; font-weight: 600; line-height: 1.2;
  text-align: center; text-decoration: none;
  border: 2px solid transparent; border-radius: var(--ht-radius-pill);
  cursor: pointer;
  transition: background-color .16s ease, border-color .16s ease, color .16s ease, transform .16s ease;
}
.ht-btn:active { transform: translateY(1px); }

.ht-btn--primary { background: var(--ht-green-700); color: #fff; border-color: var(--ht-green-700); }
.ht-btn--primary:hover { background: var(--ht-green-800); border-color: var(--ht-green-800); color: #fff; }

.ht-btn--secondary { background: #fff; color: var(--ht-forest); border-color: var(--ht-forest); }
.ht-btn--secondary:hover { background: var(--ht-forest); color: #fff; }

.ht-btn--ghost { background: transparent; color: var(--ht-forest); border-color: var(--ht-rule); }
.ht-btn--ghost:hover { border-color: var(--ht-forest); color: var(--ht-forest); }

.ht-section--dark .ht-btn--secondary { background: transparent; color: #fff; border-color: rgba(255,255,255,.55); }
.ht-section--dark .ht-btn--secondary:hover { background: #fff; color: var(--ht-forest); }

.ht-btn--lg { padding: 1rem 2rem; font-size: 1.0625rem; }
.ht-btn--block { width: 100%; }

.ht-btn[disabled], .ht-btn[aria-disabled="true"] { opacity: .45; cursor: not-allowed; }

/* ==========================================================================
   Header
   ========================================================================== */

.ht-header {
  position: sticky; top: 0; z-index: 900;
  background: rgba(255,255,255,.96);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--ht-rule);
}
.ht-header__bar { display: flex; align-items: center; gap: var(--ht-s-5); min-height: 72px; }

.ht-logo { display: inline-flex; flex-direction: column; justify-content: center; min-height: var(--ht-tap); text-decoration: none; line-height: 1.05; }
.ht-logo__name { font-family: var(--ht-font-head); font-weight: 700; font-size: 1.3rem; color: var(--ht-green-700); letter-spacing: -.02em; }
.ht-logo__sub  { font-size: .72rem; color: var(--ht-grey); letter-spacing: .02em; }

.ht-nav { display: none; margin-left: auto; }
@media (min-width: 992px) { .ht-nav { display: flex; align-items: center; gap: var(--ht-s-5); } }
.ht-nav a {
  display: inline-flex; align-items: center; min-height: var(--ht-tap);
  font-family: var(--ht-font-head); font-weight: 500; font-size: .98rem;
  color: var(--ht-ink); text-decoration: none; padding: .5rem 0;
  border-bottom: 2px solid transparent;
}
.ht-nav a:hover, .ht-nav a[aria-current="page"] { color: var(--ht-green-700); border-bottom-color: var(--ht-green); }

.ht-header__actions { display: none; margin-left: auto; gap: var(--ht-s-3); }
@media (min-width: 992px) { .ht-header__actions { display: flex; align-items: center; } }

.ht-burger {
  margin-left: auto; display: inline-flex; align-items: center; justify-content: center;
  width: var(--ht-tap); height: var(--ht-tap);
  background: none; border: 1px solid var(--ht-rule); border-radius: var(--ht-radius-sm);
  color: var(--ht-forest); cursor: pointer;
}
@media (min-width: 992px) { .ht-burger { display: none; } }

.ht-mobilenav { display: none; border-top: 1px solid var(--ht-rule); padding-block: var(--ht-s-4); }
.ht-mobilenav[data-open="true"] { display: block; }
/* :not(.ht-btn) — otherwise the CTA at the foot of the menu inherits the dark
   link colour and lands as dark text on dark green. */
.ht-mobilenav a:not(.ht-btn) {
  display: flex; align-items: center; min-height: var(--ht-tap);
  font-family: var(--ht-font-head); font-weight: 500;
  color: var(--ht-ink); text-decoration: none; border-bottom: 1px solid var(--ht-rule);
}

/* ==========================================================================
   Hero
   ========================================================================== */

.ht-hero { background: var(--ht-forest); color: #E7F0EC; position: relative; overflow: hidden; }
.ht-hero::after {
  content: ""; position: absolute; right: -12%; top: -34%;
  width: 62%; aspect-ratio: 1; border-radius: 50%;
  background: #17473A; pointer-events: none;
}
.ht-hero__inner { position: relative; z-index: 1; padding-block: var(--ht-s-7) var(--ht-s-8); }
@media (min-width: 992px) { .ht-hero__inner { padding-block: var(--ht-s-8) var(--ht-s-9); } }

.ht-hero h1 { color: #fff; max-width: 16ch; }
.ht-hero__sub { font-size: var(--ht-fs-lead); color: #BCD4CA; max-width: 52ch; margin-bottom: var(--ht-s-5); }
.ht-hero__cta { display: flex; flex-wrap: wrap; gap: var(--ht-s-3); margin-bottom: var(--ht-s-5); }

/* Assessment step one, inline in the hero — Phase 4A */
.ht-heroq { background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.16); border-radius: var(--ht-radius); padding: var(--ht-s-5); max-width: 620px; }
.ht-heroq__label { font-family: var(--ht-font-head); font-weight: 600; color: #fff; margin-bottom: var(--ht-s-3); display: block; }
.ht-heroq__opts { display: grid; gap: var(--ht-s-2); grid-template-columns: 1fr; }
@media (min-width: 560px) { .ht-heroq__opts { grid-template-columns: 1fr 1fr; } }
.ht-heroq__opt {
  display: flex; align-items: center; min-height: var(--ht-tap);
  padding: .7rem 1rem; text-align: left;
  background: rgba(255,255,255,.06); color: #fff;
  border: 1px solid rgba(255,255,255,.22); border-radius: var(--ht-radius-sm);
  font-family: var(--ht-font-body); font-size: var(--ht-fs-sm); cursor: pointer;
  text-decoration: none;
  transition: background-color .16s ease, border-color .16s ease;
}
.ht-heroq__opt:hover { background: rgba(255,255,255,.14); border-color: #fff; color: #fff; }

/* Trust strip — ratified fact set only */
.ht-trust { border-top: 1px solid rgba(255,255,255,.14); margin-top: var(--ht-s-6); padding-top: var(--ht-s-5); display: flex; flex-wrap: wrap; gap: var(--ht-s-5) var(--ht-s-7); }
.ht-trust__item strong { display: block; font-family: var(--ht-font-head); font-size: 1.5rem; color: #fff; line-height: 1.1; }
.ht-trust__item span { font-size: var(--ht-fs-xs); color: #9DBDB1; }

/* ==========================================================================
   Cards
   ========================================================================== */

.ht-grid { display: grid; gap: var(--ht-s-4); grid-template-columns: 1fr; }
@media (min-width: 640px) { .ht-grid--2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 640px) { .ht-grid--3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 992px) { .ht-grid--3 { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 640px) { .ht-grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 992px) { .ht-grid--4 { grid-template-columns: repeat(4, 1fr); } }

.ht-card {
  background: #fff; border: 1px solid var(--ht-rule); border-radius: var(--ht-radius);
  padding: var(--ht-s-5); box-shadow: var(--ht-shadow-sm);
  display: flex; flex-direction: column;
}
.ht-card--tint { background: var(--ht-tint-2); }
.ht-card--mint { background: var(--ht-tint); border-color: #CFE3DA; }
.ht-card--dark { background: var(--ht-forest); border-color: var(--ht-forest); color: #DDEAE4; }
.ht-card--dark h3, .ht-card--dark h4 { color: #fff; }
.ht-card h3, .ht-card h4 { margin-bottom: var(--ht-s-2); }
.ht-card p { color: var(--ht-grey); font-size: var(--ht-fs-sm); }
.ht-card__foot { margin-top: auto; padding-top: var(--ht-s-4); }

a.ht-card { text-decoration: none; color: inherit; transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease; }
a.ht-card:hover { border-color: var(--ht-mint); box-shadow: var(--ht-shadow); transform: translateY(-2px); }

.ht-card__link { font-family: var(--ht-font-head); font-weight: 600; font-size: var(--ht-fs-sm); color: var(--ht-green-700); }

/* Numbered marker */
.ht-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 2.25rem; height: 2.25rem; flex: 0 0 auto;
  border-radius: 50%; background: var(--ht-tint); color: var(--ht-forest);
  font-family: var(--ht-font-head); font-weight: 600;
}
.ht-section--dark .ht-num, .ht-card--dark .ht-num { background: var(--ht-mint); color: var(--ht-forest); }

/* ==========================================================================
   Callouts and evidence
   ========================================================================== */

.ht-callout {
  border-left: 4px solid var(--ht-green);
  background: var(--ht-tint); border-radius: 0 var(--ht-radius) var(--ht-radius) 0;
  padding: var(--ht-s-5);
}
.ht-callout--warn { border-left-color: #C9A227; background: var(--ht-warn-bg); color: var(--ht-warn-ink); }

/* Quick answer — the GEO extraction unit, Phase 6 */
.ht-quickanswer {
  background: var(--ht-tint); border: 1px solid #CFE3DA; border-radius: var(--ht-radius);
  padding: var(--ht-s-5); margin-bottom: var(--ht-s-6);
}
.ht-quickanswer p { font-size: var(--ht-fs-lead); color: var(--ht-forest); margin: 0; }

/* Byline — author, reviewer, dates. Required on every clinical page. */
.ht-byline {
  display: flex; flex-wrap: wrap; gap: var(--ht-s-4) var(--ht-s-6);
  padding: var(--ht-s-4) 0; margin-bottom: var(--ht-s-5);
  border-block: 1px solid var(--ht-rule);
  font-size: var(--ht-fs-sm);
}
.ht-byline dt { font-size: var(--ht-fs-xs); text-transform: uppercase; letter-spacing: .08em; color: var(--ht-grey-light); margin: 0 0 2px; }
.ht-byline dd { margin: 0; font-weight: 600; color: var(--ht-forest); }

/* Evidence table — audited results */
.ht-table { width: 100%; border-collapse: collapse; font-size: var(--ht-fs-sm); }
.ht-table caption { text-align: left; font-size: var(--ht-fs-xs); color: var(--ht-grey); padding-bottom: var(--ht-s-3); }
.ht-table th, .ht-table td { padding: .75rem .9rem; text-align: left; border-bottom: 1px solid var(--ht-rule); }
.ht-table thead th { background: var(--ht-forest); color: #fff; font-family: var(--ht-font-head); font-weight: 600; border-bottom: none; }
.ht-table tbody tr:nth-child(odd) { background: var(--ht-tint-2); }
.ht-table__num { text-align: right; font-variant-numeric: tabular-nums; }
.ht-tablewrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
/* A link in a table cell is 18px tall on its own — under the 24px minimum of
   WCAG 2.2 SC 2.5.8. Padding lifts it without disturbing the row rhythm. */
.ht-table a { display: inline-block; padding-block: .25rem; }

/* Inline code. Needs its own treatment on the dark callout card, where the
   default tint would sit at 2.75:1. */
code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .9em; padding: .1em .35em; border-radius: 4px;
  background-color: var(--ht-tint); color: var(--ht-forest);
}
.ht-card--dark code { background-color: rgba(255,255,255,.14); color: #FFFFFF; }

/* ==========================================================================
   Self-test widget — the content conversion mechanism, Phase 4B
   ========================================================================== */

.ht-selftest {
  border: 1px solid #CFE3DA; background: var(--ht-tint); border-radius: var(--ht-radius);
  padding: var(--ht-s-5); margin-block: var(--ht-s-6);
}
.ht-selftest__q { font-family: var(--ht-font-head); font-weight: 600; color: var(--ht-forest); margin-bottom: var(--ht-s-4); }
.ht-selftest__opts { display: grid; gap: var(--ht-s-2); }
.ht-choice {
  display: flex; align-items: center; gap: var(--ht-s-3);
  min-height: var(--ht-tap); padding: .7rem 1rem;
  background: #fff; border: 1.5px solid var(--ht-rule); border-radius: var(--ht-radius-sm);
  font-size: var(--ht-fs-sm); color: var(--ht-ink); text-align: left; cursor: pointer;
  transition: border-color .14s ease, background-color .14s ease;
}
.ht-choice:hover { border-color: var(--ht-mint); }
.ht-choice[aria-pressed="true"], .ht-choice[data-selected="true"] {
  border-color: var(--ht-green); background: #F1FBF5;
}
.ht-choice__tick { width: 1.1rem; height: 1.1rem; flex: 0 0 auto; border-radius: 4px; border: 1.5px solid var(--ht-rule); display: inline-block; }
.ht-choice[data-selected="true"] .ht-choice__tick { background: var(--ht-green); border-color: var(--ht-green); }

.ht-selftest__result { margin-top: var(--ht-s-4); }

/* ==========================================================================
   Assessment — nine steps, Phase 5
   ========================================================================== */

.ht-assess { max-width: 680px; margin-inline: auto; }
.ht-assess__progress { margin-bottom: var(--ht-s-5); }
.ht-assess__bar { height: 6px; background: var(--ht-rule); border-radius: var(--ht-radius-pill); overflow: hidden; }
.ht-assess__fill { height: 100%; background: var(--ht-green); border-radius: inherit; transition: width .3s ease; }
.ht-assess__count { display: flex; justify-content: space-between; font-size: var(--ht-fs-xs); color: var(--ht-grey); margin-top: var(--ht-s-2); }

.ht-step { display: none; }
.ht-step[data-active="true"] { display: block; }
.ht-step h2 { font-size: var(--ht-fs-h3); margin-bottom: var(--ht-s-2); }
.ht-step__help { font-size: var(--ht-fs-sm); color: var(--ht-grey); margin-bottom: var(--ht-s-5); }

.ht-tiles { display: grid; gap: var(--ht-s-3); grid-template-columns: 1fr; }
@media (min-width: 560px) { .ht-tiles--2 { grid-template-columns: 1fr 1fr; } }
.ht-tile {
  display: flex; flex-direction: column; justify-content: center; gap: .3rem;
  min-height: 84px; padding: var(--ht-s-4);
  background: #fff; border: 1.5px solid var(--ht-rule); border-radius: var(--ht-radius);
  text-align: left; cursor: pointer;
  transition: border-color .14s ease, background-color .14s ease;
}
.ht-tile:hover { border-color: var(--ht-mint); }
.ht-tile[data-selected="true"] { border-color: var(--ht-green); background: #F1FBF5; }
.ht-tile strong { font-family: var(--ht-font-head); font-weight: 600; color: var(--ht-forest); }
.ht-tile span { font-size: var(--ht-fs-xs); color: var(--ht-grey); }

/* Form fields — labelled, sized, autofill-ready. Phase 5 Part E. */
.ht-field { margin-bottom: var(--ht-s-4); }
.ht-field > label {
  display: block; font-family: var(--ht-font-head); font-weight: 600;
  font-size: var(--ht-fs-sm); color: var(--ht-forest); margin-bottom: .35rem;
}
.ht-field__hint { font-size: var(--ht-fs-xs); color: var(--ht-grey); margin-bottom: .4rem; }
.ht-input, .ht-select {
  width: 100%; min-height: var(--ht-tap);
  padding: .7rem .9rem;
  font-family: var(--ht-font-body); font-size: 1rem; color: var(--ht-ink);
  background: #fff; border: 1.5px solid var(--ht-rule); border-radius: var(--ht-radius-sm);
}
.ht-input:focus, .ht-select:focus { border-color: var(--ht-green); outline-offset: 1px; }
.ht-input[aria-invalid="true"] { border-color: var(--ht-danger); }
.ht-error { display: none; align-items: center; gap: .4rem; font-size: var(--ht-fs-sm); color: var(--ht-danger); margin-top: .35rem; }
.ht-error[data-show="true"] { display: flex; }
.ht-error::before { content: "!"; display: inline-flex; align-items: center; justify-content: center; width: 1.1rem; height: 1.1rem; border-radius: 50%; background: var(--ht-danger); color: #fff; font-size: .72rem; font-weight: 700; flex: 0 0 auto; }

.ht-inline { display: grid; gap: var(--ht-s-3); grid-template-columns: 1fr 1fr; }

.ht-assess__nav { display: flex; gap: var(--ht-s-3); align-items: center; margin-top: var(--ht-s-6); }
.ht-assess__nav .ht-btn--primary { margin-left: auto; }

/* Live readout — BMI and the gap to target */
.ht-readout { background: var(--ht-tint); border-radius: var(--ht-radius); padding: var(--ht-s-4); margin-top: var(--ht-s-4); }
.ht-readout[hidden] { display: none; }
.ht-readout__row { display: flex; justify-content: space-between; align-items: baseline; gap: var(--ht-s-4); }
.ht-readout__row + .ht-readout__row { margin-top: var(--ht-s-3); padding-top: var(--ht-s-3); border-top: 1px solid #CFE3DA; }
.ht-readout__k { font-size: var(--ht-fs-sm); color: var(--ht-grey); }
.ht-readout__v { font-family: var(--ht-font-head); font-weight: 700; font-size: 1.5rem; color: var(--ht-forest); }

.ht-stat { font-family: var(--ht-font-head); font-weight: 700; font-size: var(--ht-fs-stat); color: var(--ht-forest); line-height: 1; }

/* ==========================================================================
   Sticky mobile action bar
   Sits ABOVE the chat launcher in the stacking order. Phase 5 §5.4.
   ========================================================================== */

.ht-sticky {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 1200;
  display: flex; gap: var(--ht-s-2);
  padding: var(--ht-s-2) var(--ht-s-3);
  padding-bottom: calc(var(--ht-s-2) + env(safe-area-inset-bottom, 0px));
  background: rgba(255,255,255,.98);
  border-top: 1px solid var(--ht-rule);
  box-shadow: 0 -4px 16px rgba(18,59,49,.08);
}
.ht-sticky .ht-btn { flex: 1; padding-inline: .6rem; font-size: .95rem; }
@media (min-width: 992px) { .ht-sticky { display: none; } }

/* Chat launcher — a button, never an auto-opening panel. Phase 5 §6.3. */
.ht-chat {
  position: fixed; right: 1rem; z-index: 1100;
  bottom: calc(var(--ht-sticky-h) + 1rem + env(safe-area-inset-bottom, 0px));
  width: 56px; height: 56px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--ht-forest); color: #fff; border: none;
  box-shadow: var(--ht-shadow); cursor: pointer;
}
@media (min-width: 992px) { .ht-chat { bottom: 1.25rem; } }
.ht-chat__panel {
  position: fixed; right: 1rem; z-index: 1150;
  bottom: calc(var(--ht-sticky-h) + 4.75rem + env(safe-area-inset-bottom, 0px));
  width: min(360px, calc(100vw - 2rem)); max-height: 60vh; overflow: auto;
  background: #fff; border: 1px solid var(--ht-rule); border-radius: var(--ht-radius);
  box-shadow: var(--ht-shadow); padding: var(--ht-s-5);
}
@media (min-width: 992px) { .ht-chat__panel { bottom: 5.5rem; } }
.ht-chat__panel[hidden] { display: none; }

/* ==========================================================================
   Condition hub
   ========================================================================== */

.ht-breadcrumb { font-size: var(--ht-fs-sm); color: var(--ht-grey); padding-block: var(--ht-s-4); }
.ht-breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: .4rem; margin: 0; padding: 0; }
.ht-breadcrumb li + li::before { content: "/"; margin-right: .4rem; color: var(--ht-grey-light); }

.ht-toc { position: sticky; top: 92px; }
.ht-toc h2 { font-size: var(--ht-fs-xs); text-transform: uppercase; letter-spacing: .1em; color: var(--ht-grey-light); margin-bottom: var(--ht-s-3); }
.ht-toc ol { list-style: none; margin: 0; padding: 0; font-size: var(--ht-fs-sm); }
.ht-toc li { margin-bottom: .45rem; }
.ht-toc a { color: var(--ht-body); text-decoration: none; }
.ht-toc a:hover { color: var(--ht-green-700); text-decoration: underline; }

.ht-hublayout { display: grid; gap: var(--ht-s-7); grid-template-columns: 1fr; }
@media (min-width: 992px) { .ht-hublayout { grid-template-columns: 220px minmax(0, 1fr); gap: var(--ht-s-8); } }
@media (max-width: 991.98px) { .ht-toc { display: none; } }

.ht-prose h2 { margin-top: var(--ht-s-7); scroll-margin-top: 92px; }
.ht-prose h2:first-child { margin-top: 0; }
.ht-prose h3 { margin-top: var(--ht-s-5); font-size: var(--ht-fs-h4); }
.ht-prose ul, .ht-prose ol { padding-left: 1.25rem; margin-bottom: var(--ht-s-4); }
.ht-prose li { margin-bottom: .5rem; }

/* Inline CTA inside clinical content */
.ht-inlinecta {
  display: flex; flex-wrap: wrap; align-items: center; gap: var(--ht-s-4);
  background: var(--ht-forest); color: #DDEAE4;
  border-radius: var(--ht-radius); padding: var(--ht-s-5); margin-block: var(--ht-s-6);
}
.ht-inlinecta p { margin: 0; flex: 1 1 260px; color: #DDEAE4; }
.ht-inlinecta strong { color: #fff; display: block; font-family: var(--ht-font-head); margin-bottom: .2rem; }

/* FAQ */
.ht-faq details { border-bottom: 1px solid var(--ht-rule); padding-block: var(--ht-s-4); }
.ht-faq summary {
  font-family: var(--ht-font-head); font-weight: 600; color: var(--ht-forest);
  cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: var(--ht-s-4);
  min-height: var(--ht-tap); align-items: center;
}
.ht-faq summary::-webkit-details-marker { display: none; }
.ht-faq summary::after { content: "+"; font-size: 1.4rem; line-height: 1; color: var(--ht-green-700); }
.ht-faq details[open] summary::after { content: "–"; }
.ht-faq details > div { padding-top: var(--ht-s-3); color: var(--ht-grey); }

/* Case file */
.ht-casemeta { display: grid; gap: var(--ht-s-3); grid-template-columns: repeat(2, 1fr); font-size: var(--ht-fs-sm); }
@media (min-width: 640px) { .ht-casemeta { grid-template-columns: repeat(4, 1fr); } }
.ht-casemeta dt { font-size: var(--ht-fs-xs); text-transform: uppercase; letter-spacing: .07em; color: var(--ht-grey-light); }
.ht-casemeta dd { margin: 0; font-weight: 600; color: var(--ht-forest); }

.ht-badge {
  display: inline-flex; align-items: center; gap: .35rem;
  font-family: var(--ht-font-head); font-size: var(--ht-fs-xs); font-weight: 600;
  padding: .25rem .65rem; border-radius: var(--ht-radius-pill);
  background: var(--ht-tint); color: var(--ht-forest);
}
.ht-badge--audited { background: #E4F6EA; color: var(--ht-green-700); }

/* Variability disclosure — ASCI. Never hidden, never below the fold of a claim. */
.ht-disclosure { font-size: var(--ht-fs-xs); color: var(--ht-grey); margin-top: var(--ht-s-3); }

/* ==========================================================================
   Footer
   ========================================================================== */

.ht-footer { background: var(--ht-forest-900); color: #A9C4B9; padding-block: var(--ht-s-7); font-size: var(--ht-fs-sm); }
.ht-footer h2 { color: #fff; font-size: var(--ht-fs-xs); text-transform: uppercase; letter-spacing: .1em; margin-bottom: var(--ht-s-4); }
.ht-footer a { color: #CFE0D8; text-decoration: none; }
.ht-footer a:hover { color: #fff; text-decoration: underline; }
.ht-footer ul { list-style: none; margin: 0; padding: 0; }
.ht-footer li { margin-bottom: .55rem; }
.ht-footer__base { border-top: 1px solid rgba(255,255,255,.12); margin-top: var(--ht-s-6); padding-top: var(--ht-s-5); display: flex; flex-wrap: wrap; gap: var(--ht-s-4); justify-content: space-between; font-size: var(--ht-fs-xs); }
/* 13px text gives a 16px target. Padding lifts it past the 24px minimum
   without changing how the line reads. WCAG 2.2 SC 2.5.8. */
.ht-footer__base a { display: inline-block; padding-block: .45rem; }

/* ==========================================================================
   Print
   ========================================================================== */
@media print {
  .ht-header, .ht-sticky, .ht-chat, .ht-chat__panel, .ht-toc { display: none !important; }
  body { padding-bottom: 0; }
}

/* ==========================================================================
   Imagery and illustration
   Added after review: the build read as clinically correct but visually flat.

   Two motifs, repeated, and nothing else:
     1. A rounded image frame with an offset accent block behind it.
     2. Line icons inside tinted circles.

   Photography is kept deliberately sparse — three images across the estate —
   so that each one carries weight and the page stays inside its budget.
   ========================================================================== */

/* --- 1. Framed image with offset accent block --- */
.ht-figure { position: relative; margin: 0; }
.ht-figure::before {
  content: ""; position: absolute; inset: auto auto -14px -14px;
  width: 58%; height: 58%;
  background: var(--ht-mint); border-radius: var(--ht-radius);
  z-index: 0;
}
.ht-figure--alt::before { inset: -14px -14px auto auto; background: var(--ht-tint); }
.ht-figure img {
  position: relative; z-index: 1; display: block; width: 100%;
  border-radius: var(--ht-radius); box-shadow: var(--ht-shadow);
  object-fit: cover;
}
.ht-figure figcaption {
  position: relative; z-index: 1;
  margin-top: var(--ht-s-3); font-size: var(--ht-fs-xs); color: var(--ht-grey);
}
.ht-hero .ht-figure::before { background: rgba(143, 203, 182, .28); }
.ht-hero .ht-figure figcaption { color: #9DBDB1; }

/* --- 2. Icon in a tinted circle --- */
.ht-ico {
  display: inline-flex; align-items: center; justify-content: center;
  width: 3rem; height: 3rem; flex: 0 0 auto;
  border-radius: 50%; background: var(--ht-tint); color: var(--ht-green-700);
  margin-bottom: var(--ht-s-4);
}
.ht-ico svg { width: 1.5rem; height: 1.5rem; }
.ht-ico--lg { width: 3.75rem; height: 3.75rem; }
.ht-ico--lg svg { width: 1.85rem; height: 1.85rem; }
.ht-ico--solid { background: var(--ht-green-700); color: #fff; }
.ht-section--dark .ht-ico, .ht-card--dark .ht-ico { background: rgba(143,203,182,.16); color: var(--ht-mint); }

/* --- Split layout: media beside text --- */
.ht-split { display: grid; gap: var(--ht-s-6); align-items: center; grid-template-columns: 1fr; }
@media (min-width: 900px) {
  .ht-split { grid-template-columns: 1fr 1fr; gap: var(--ht-s-8); }
  .ht-split--media-right > :first-child { order: 1; }
  .ht-split--narrow-media { grid-template-columns: 1fr 1.25fr; }
}

/* Hero becomes two columns once there is room for the portrait. */
@media (min-width: 992px) {
  .ht-hero__grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: var(--ht-s-8); align-items: center; }
  .ht-hero__media { max-width: 400px; margin-left: auto; }
}
/* On mobile the portrait becomes a compact band rather than being hidden.
   Hiding it with display:none would still download it — wasted bytes on the
   device class that is 61.5% of this audience. */
@media (max-width: 991.98px) {
  .ht-hero__media { margin-top: var(--ht-s-6); max-width: 100%; }
  .ht-hero__media .ht-figure img { aspect-ratio: 16 / 9; object-position: center 30%; }
}

/* --- Founder band --- */
.ht-founder { background: var(--ht-tint); }
.ht-founder__quote {
  font-family: var(--ht-font-head); font-weight: 600;
  font-size: clamp(1.25rem, 1.4vw + 1rem, 1.75rem);
  line-height: 1.35; color: var(--ht-forest);
  margin: 0 0 var(--ht-s-4);
}
.ht-founder__who { font-size: var(--ht-fs-sm); color: var(--ht-grey); }
.ht-founder__who strong { display: block; font-family: var(--ht-font-head); font-size: 1.05rem; color: var(--ht-forest); }

/* --- Organic divider, used sparingly between light sections --- */
.ht-wave { display: block; width: 100%; height: 40px; color: var(--ht-tint-2); }
.ht-wave svg { display: block; width: 100%; height: 100%; }

/* --- Step list with connected icons --- */
.ht-steps { display: grid; gap: var(--ht-s-5); grid-template-columns: 1fr; counter-reset: htstep; }
@media (min-width: 640px) { .ht-steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .ht-steps { grid-template-columns: repeat(4, 1fr); } }
.ht-steps > * { position: relative; }
@media (min-width: 1000px) {
  .ht-steps > *:not(:last-child)::after {
    content: ""; position: absolute; top: 1.5rem; left: calc(3rem + var(--ht-s-3));
    right: calc(-1 * var(--ht-s-5)); height: 1px;
    background: linear-gradient(to right, var(--ht-rule), var(--ht-rule) 60%, transparent);
  }
}
.ht-steps h3 { font-size: var(--ht-fs-h4); margin-bottom: var(--ht-s-2); }
.ht-steps p { font-size: var(--ht-fs-sm); color: var(--ht-grey); margin: 0; }

/* --- Stat band --- */
.ht-stats { display: grid; gap: var(--ht-s-5); grid-template-columns: repeat(2, 1fr); }
@media (min-width: 900px) { .ht-stats { grid-template-columns: repeat(4, 1fr); } }
.ht-stats__n { font-family: var(--ht-font-head); font-weight: 700; font-size: clamp(1.75rem, 2.4vw + 1rem, 2.5rem); color: var(--ht-forest); line-height: 1; }
.ht-section--dark .ht-stats__n { color: #fff; }
.ht-stats__l { font-size: var(--ht-fs-sm); color: var(--ht-grey); margin-top: .35rem; }
.ht-section--dark .ht-stats__l { color: #9DBDB1; }

/* ==========================================================================
   Mega menu
   Any page to any condition, programme or solution in one move.
   Opens on hover for pointer users and on click/Enter for keyboard and touch,
   so it is reachable either way.
   ========================================================================== */

.ht-nav { position: static; }
.ht-nav__item { position: static; }

.ht-nav__trigger {
  display: inline-flex; align-items: center; gap: .35rem;
  min-height: var(--ht-tap);
  padding: .5rem 0;
  font-family: var(--ht-font-head); font-weight: 500; font-size: .98rem;
  color: var(--ht-ink); background: none; border: 0;
  border-bottom: 2px solid transparent; cursor: pointer;
}
.ht-nav__trigger:hover,
.ht-nav__trigger[aria-expanded="true"] { color: var(--ht-green-700); border-bottom-color: var(--ht-green); }
.ht-nav__trigger svg { width: .7rem; height: .7rem; transition: transform .18s ease; }

.ht-mega {
  position: absolute; left: 0; right: 0; top: 100%;
  background: #fff;
  border-top: 1px solid var(--ht-rule);
  box-shadow: 0 18px 40px rgba(18, 59, 49, .13);
  padding: var(--ht-s-5) 0 var(--ht-s-6);
  z-index: 950;
  max-height: calc(100vh - 72px);
  overflow-y: auto;
}
.ht-mega[hidden] { display: none; }

.ht-mega__grid { display: grid; gap: var(--ht-s-4) var(--ht-s-6); grid-template-columns: repeat(4, 1fr); }
@media (min-width: 1200px) { .ht-mega__grid--5 { grid-template-columns: repeat(5, 1fr); } }

.ht-mega__col h3 {
  font-size: var(--ht-fs-xs); text-transform: uppercase; letter-spacing: .1em;
  color: var(--ht-green-700); margin: 0 0 var(--ht-s-3);
}
.ht-mega__col ul { list-style: none; margin: 0; padding: 0; }
.ht-mega__col li { margin-bottom: .1rem; }
.ht-mega__col a {
  display: block; padding: .3rem 0;
  font-size: var(--ht-fs-sm); color: var(--ht-body); text-decoration: none;
  border-radius: 4px;
}
.ht-mega__col a:hover { color: var(--ht-green-700); text-decoration: underline; }

/* Promoted panel at the end of the row */
.ht-mega__promo {
  background: var(--ht-tint); border-radius: var(--ht-radius);
  padding: var(--ht-s-4); align-self: start;
}
.ht-mega__promo h3 { color: var(--ht-forest); text-transform: none; letter-spacing: 0; font-size: var(--ht-fs-h4); font-family: var(--ht-font-head); }
.ht-mega__promo p { font-size: var(--ht-fs-sm); color: var(--ht-grey); margin-bottom: var(--ht-s-4); }

.ht-mega__foot {
  margin-top: var(--ht-s-4); padding-top: var(--ht-s-3);
  border-top: 1px solid var(--ht-rule);
  display: flex; flex-wrap: wrap; gap: var(--ht-s-4); align-items: center;
  font-size: var(--ht-fs-sm);
}
.ht-mega__foot a {
  display: inline-flex; align-items: center; min-height: var(--ht-tap);
  font-family: var(--ht-font-head); font-weight: 600; color: var(--ht-green-700);
}

/* ---- Mobile: the same content as an accordion ---- */
.ht-mobilenav__group > button {
  display: flex; align-items: center; justify-content: space-between; gap: var(--ht-s-3);
  width: 100%; min-height: var(--ht-tap); padding: 0;
  font-family: var(--ht-font-head); font-weight: 500; font-size: 1rem;
  color: var(--ht-ink); background: none; border: 0; border-bottom: 1px solid var(--ht-rule);
  cursor: pointer; text-align: left;
}
.ht-mobilenav__group > button svg { width: .8rem; height: .8rem; flex: 0 0 auto; transition: transform .18s ease; }
.ht-mobilenav__panel { padding: var(--ht-s-3) 0 var(--ht-s-4) var(--ht-s-4); }
.ht-mobilenav__panel[hidden] { display: none; }
.ht-mobilenav__panel h3 {
  font-size: var(--ht-fs-xs); text-transform: uppercase; letter-spacing: .09em;
  color: var(--ht-green-700); margin: var(--ht-s-4) 0 var(--ht-s-2);
}
.ht-mobilenav__panel h3:first-child { margin-top: 0; }
.ht-mobilenav__panel a:not(.ht-btn) {
  display: flex; align-items: center; min-height: 44px;
  font-size: var(--ht-fs-sm); color: var(--ht-body); border-bottom: 0;
}

/* Backdrop while a mega panel is open */
.ht-megaveil {
  position: fixed; inset: 0; z-index: 890;
  background: rgba(11, 39, 32, .3);
}
.ht-megaveil[hidden] { display: none; }

/* ==========================================================================
   Hero — founder-led
   ========================================================================== */

.ht-hero__eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .35rem .85rem; margin-bottom: var(--ht-s-4);
  border: 1px solid rgba(143, 203, 182, .4); border-radius: var(--ht-radius-pill);
  font-family: var(--ht-font-head); font-size: var(--ht-fs-xs); font-weight: 600;
  letter-spacing: .06em; text-transform: uppercase; color: var(--ht-mint);
}
.ht-hero__eyebrow::before {
  content: ""; width: .45rem; height: .45rem; border-radius: 50%;
  background: var(--ht-mint);
}

.ht-hero h1 { font-size: clamp(2.35rem, 4.6vw + .9rem, 4rem); line-height: 1.04; max-width: 20ch; }
.ht-hero h1 em { font-style: normal; color: var(--ht-mint); }

/* Founder portrait — a circular medallion.
   The source photograph is shot on white, so it is masked to a circle rather
   than cut out: matting a white garment off a white background leaves holes. */
.ht-hero__portrait { position: relative; text-align: center; }
.ht-hero__portrait img {
  display: block; width: 100%; max-width: 380px; margin-inline: auto;
  border-radius: 50%;
  box-shadow: 0 0 0 10px rgba(143, 203, 182, .16), 0 24px 50px rgba(0, 0, 0, .28);
}
.ht-hero__portrait::before {
  content: ""; position: absolute; left: 50%; top: 50%;
  width: 118%; aspect-ratio: 1; transform: translate(-50%, -50%);
  background: radial-gradient(circle at 50% 50%, rgba(143,203,182,.20), rgba(143,203,182,0) 64%);
  z-index: 0; pointer-events: none;
}
.ht-hero__portrait picture { position: relative; z-index: 1; display: block; }

.ht-hero__sig {
  position: relative; z-index: 2;
  display: inline-block; margin-top: calc(-1 * var(--ht-s-5));
  background: rgba(11, 39, 32, .82);
  border: 1px solid rgba(143, 203, 182, .28);
  border-radius: var(--ht-radius-pill);
  padding: .5rem 1.1rem;
  font-size: var(--ht-fs-xs); color: #CFE0D8;
}
.ht-hero__sig strong { display: block; font-family: var(--ht-font-head); font-size: .95rem; color: #fff; }

@media (min-width: 992px) {
  .ht-hero__grid { grid-template-columns: 1.1fr .9fr; align-items: center; gap: var(--ht-s-7); }
}
@media (max-width: 991.98px) {
  .ht-hero__portrait { max-width: 240px; margin: var(--ht-s-6) auto 0; }
}

/* ==========================================================================
   Trust strip — larger, so it fills the width on desktop
   ========================================================================== */

.ht-trust { gap: var(--ht-s-5) var(--ht-s-8); }
.ht-trust__item strong { font-size: clamp(1.9rem, 2.2vw + 1.1rem, 3rem); letter-spacing: -.02em; }
.ht-trust__item span { font-size: var(--ht-fs-sm); }
@media (min-width: 992px) {
  .ht-trust { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--ht-s-6); }
}

/* Logo image */
.ht-logo img { display: block; height: 38px; width: auto; }
@media (min-width: 992px) { .ht-logo img { height: 44px; } }
.ht-footer .ht-logo img { height: 40px; filter: brightness(0) invert(1); opacity: .92; }

/* ==========================================================================
   Clinical page devices
   A condition page is long and it is read by someone who is worried. These
   exist to carry information visually rather than to decorate: the causal
   chain, the symptom set, the treatment pathway. Each one replaces prose
   that was harder to follow.
   ========================================================================== */

/* --- At a glance: the three facts people want before they read --- */
.ht-glance { display: grid; gap: var(--ht-s-3); grid-template-columns: repeat(2, 1fr); margin-bottom: var(--ht-s-6); }
@media (min-width: 720px) { .ht-glance { grid-template-columns: repeat(4, 1fr); } }
.ht-glance__i {
  background: var(--ht-tint); border-radius: var(--ht-radius);
  padding: var(--ht-s-4);
}
.ht-glance__k { font-size: var(--ht-fs-xs); text-transform: uppercase; letter-spacing: .08em; color: var(--ht-green-700); margin-bottom: .3rem; }
.ht-glance__v { font-family: var(--ht-font-head); font-weight: 600; font-size: 1.05rem; color: var(--ht-forest); line-height: 1.3; }

/* --- Ingredient list: two columns where there is room, one where there is not.
       Cards, not bullets, so a long ingredient wraps without losing its place. --- */
.ht-prose ul.ht-ingredients,
.ht-prose ul.ht-linkgrid {
  list-style: none; padding-left: 0; display: grid; gap: .5rem;
  grid-template-columns: 1fr; margin-bottom: var(--ht-s-6);
}
@media (min-width: 720px) { .ht-prose ul.ht-ingredients,
.ht-prose ul.ht-linkgrid { grid-template-columns: repeat(2, 1fr); } }
.ht-prose ul.ht-ingredients > li,
.ht-prose ul.ht-linkgrid > li {
  min-width: 0;
  background-color: var(--ht-tint-2);
  border-left: 3px solid var(--ht-mint);
  border-radius: var(--ht-radius);
  padding: .65rem .85rem;
  margin: 0;
  font-size: var(--ht-fs-sm);
  color: var(--ht-body);
}

/* --- The causal chain --- */
.ht-flow {
  display: grid; gap: var(--ht-s-4);
  grid-template-columns: 1fr;
  margin-block: var(--ht-s-5);
  counter-reset: flowstep;
}
@media (min-width: 860px) { .ht-flow { grid-template-columns: repeat(4, 1fr); gap: var(--ht-s-5); } }

.ht-flow__step {
  position: relative;
  background: #fff; border: 1px solid var(--ht-rule); border-left: 3px solid var(--ht-mint);
  border-radius: var(--ht-radius); padding: var(--ht-s-4);
}
.ht-flow__step:last-child { border-left-color: var(--ht-green-700); background: var(--ht-tint); }
.ht-flow__n {
  font-family: var(--ht-font-head); font-size: var(--ht-fs-xs); font-weight: 600;
  color: var(--ht-green-700); letter-spacing: .08em; text-transform: uppercase;
  display: block; margin-bottom: .3rem;
}
.ht-flow__step p { font-size: var(--ht-fs-sm); color: var(--ht-body); margin: 0; }

/* Connector: chevron between steps, rotating on small screens */
.ht-flow__step::after {
  content: ""; position: absolute; z-index: 1;
  width: 10px; height: 10px;
  border-right: 2px solid var(--ht-mint); border-bottom: 2px solid var(--ht-mint);
  left: 50%; bottom: calc(-1 * var(--ht-s-4) / 2 - 5px); transform: translateX(-50%) rotate(45deg);
}
.ht-flow__step:last-child::after { display: none; }
@media (min-width: 860px) {
  .ht-flow__step::after {
    left: auto; bottom: auto; top: 50%;
    right: calc(-1 * var(--ht-s-5) / 2 - 5px);
    transform: translateY(-50%) rotate(-45deg);
  }
}

/* --- Symptom grid --- */
.ht-symptoms { display: grid; gap: var(--ht-s-3); grid-template-columns: 1fr; margin-block: var(--ht-s-5); }
@media (min-width: 620px) { .ht-symptoms { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .ht-symptoms { grid-template-columns: repeat(3, 1fr); } }
.ht-symptom {
  display: flex; gap: var(--ht-s-3); align-items: flex-start;
  background: var(--ht-tint-2); border: 1px solid var(--ht-rule);
  border-radius: var(--ht-radius); padding: var(--ht-s-4);
}
.ht-symptom__mark {
  flex: 0 0 auto; width: 2rem; height: 2rem; border-radius: 50%;
  background: #fff; border: 1px solid var(--ht-rule);
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--ht-green-700);
}
.ht-symptom__mark svg { width: 1.05rem; height: 1.05rem; }
.ht-symptom strong { display: block; font-family: var(--ht-font-head); font-size: .98rem; color: var(--ht-forest); margin-bottom: .15rem; }
.ht-symptom span { font-size: var(--ht-fs-sm); color: var(--ht-grey); }

/* --- Treatment pathway --- */
.ht-pathway { list-style: none; margin: var(--ht-s-5) 0; padding: 0; position: relative; }
.ht-pathway::before {
  content: ""; position: absolute; left: 1.35rem; top: 1.5rem; bottom: 1.5rem;
  width: 2px; background: linear-gradient(to bottom, var(--ht-mint), var(--ht-tint));
}
.ht-pathway li { position: relative; padding: 0 0 var(--ht-s-5) 4rem; }
.ht-pathway li:last-child { padding-bottom: 0; }
.ht-pathway__n {
  position: absolute; left: 0; top: 0;
  width: 2.75rem; height: 2.75rem; border-radius: 50%;
  background: var(--ht-green-700); color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--ht-font-head); font-weight: 600; font-size: 1.05rem;
  box-shadow: 0 0 0 5px #fff;
}
.ht-pathway h3 { font-size: var(--ht-fs-h4); margin: .35rem 0 .35rem; }
.ht-pathway p { margin: 0; color: var(--ht-grey); font-size: var(--ht-fs-sm); }

/* --- Comparison / "is it this or that" --- */
.ht-compare { display: grid; gap: var(--ht-s-4); grid-template-columns: 1fr; margin-block: var(--ht-s-5); }
@media (min-width: 720px) { .ht-compare { grid-template-columns: 1fr 1fr; } }
.ht-compare__side { border: 1px solid var(--ht-rule); border-radius: var(--ht-radius); padding: var(--ht-s-5); }
.ht-compare__side h3 { font-size: var(--ht-fs-h4); margin-bottom: var(--ht-s-3); }
.ht-compare__side ul { margin: 0; padding-left: 1.1rem; }
.ht-compare__side li { font-size: var(--ht-fs-sm); color: var(--ht-grey); margin-bottom: .45rem; }
.ht-compare__side--ours { background: var(--ht-tint); border-color: #CFE3DA; }

/* --- Condition hero band --- */
.ht-chero { background: var(--ht-tint); border-bottom: 1px solid #DCE9E3; }
.ht-chero__inner { padding-block: var(--ht-s-6); }
.ht-chero h1 { margin-bottom: var(--ht-s-3); }
.ht-chero .ht-lead { color: var(--ht-body); max-width: 60ch; }
.ht-chero__cta { display: flex; flex-wrap: wrap; gap: var(--ht-s-3); margin-top: var(--ht-s-5); }

/* ==========================================================================
   Submenu affordance
   The presence of a submenu is signalled twice: a health-relevant leading icon
   marks the item as a section, and a caret in a soft disc marks it as opening.
   ========================================================================== */

.ht-nav__trigger { gap: .5rem; }
.ht-nav__ico {
  width: 1.15rem; height: 1.15rem; flex: 0 0 auto;
  color: var(--ht-green-700);
  fill: none; stroke: currentColor; stroke-width: 1.8;
  stroke-linecap: round; stroke-linejoin: round;
}
.ht-nav__trigger[aria-expanded="true"] .ht-nav__ico { color: var(--ht-green-800); }

.ht-nav__caret {
  display: inline-flex; align-items: center; justify-content: center;
  width: 1.1rem; height: 1.1rem; flex: 0 0 auto;
  border-radius: 50%; background: var(--ht-tint); color: var(--ht-green-700);
  transition: background-color .18s ease, color .18s ease;
}
/* The indicator is drawn with two bars rather than a rotated chevron: plus when
   closed, minus when open. It reads unambiguously as "this opens", and it does
   not depend on a transform, so it cannot silently fail. */
.ht-nav__caret { position: relative; }
.ht-nav__caret svg { display: none; }
.ht-nav__caret::before,
.ht-nav__caret::after {
  content: ""; position: absolute;
  background-color: currentColor; border-radius: 1px;
  transition: opacity .16s ease;
}
.ht-nav__caret::before { width: .5rem;  height: 2px;     left: calc(50% - .25rem); top: calc(50% - 1px); }
.ht-nav__caret::after  { width: 2px;    height: .5rem;   left: calc(50% - 1px);    top: calc(50% - .25rem); }

.ht-nav__trigger:hover .ht-nav__caret { background-color: var(--ht-mint); }

.ht-nav .ht-nav__trigger[aria-expanded="true"] .ht-nav__caret {
  background-color: var(--ht-green-700);
  color: #fff;
}
.ht-nav .ht-nav__trigger[aria-expanded="true"] .ht-nav__caret::after { opacity: 0; }

/* Mobile accordion buttons carry the same two signals */
.ht-mobilenav__group > button { gap: .6rem; }
.ht-mobilenav__group > button .ht-nav__ico { width: 1.15rem; height: 1.15rem; }
.ht-mobilenav__group > button > span:not(.ht-nav__caret) { flex: 1; }
.ht-mobilenav__group > button .ht-nav__caret { width: 1.35rem; height: 1.35rem; }
.ht-mobilenav__group > button .ht-nav__caret svg { width: .7rem; height: .7rem; }
.ht-mobilenav__group > button .ht-nav__caret::before { width: .6rem; left: calc(50% - .3rem); }
.ht-mobilenav__group > button .ht-nav__caret::after  { height: .6rem; top: calc(50% - .3rem); }
.ht-mobilenav__group > button[aria-expanded="true"] .ht-nav__caret {
  background-color: var(--ht-green-700); color: #fff;
}
.ht-mobilenav__group > button[aria-expanded="true"] .ht-nav__caret::after { opacity: 0; }

/* Each mega column head gets a quiet rule so the groups read as groups */
.ht-mega__col h3 { padding-bottom: .4rem; border-bottom: 1px solid var(--ht-rule); }

/* ==========================================================================
   Grid overflow guard
   A grid track sized `1fr` is really `minmax(auto, 1fr)`, so a long unbreakable
   word inside a child can push the track — and the page — wider than the
   viewport. `min-width: 0` lets the track shrink as intended. Applied to every
   grid container's children rather than fixing the one word that exposed it.
   ========================================================================== */

.ht-hublayout > *,
.ht-grid > *,
.ht-glance > *,
.ht-symptoms > *,
.ht-flow > *,
.ht-compare > *,
.ht-split > *,
.ht-steps > *,
.ht-stats > *,
.ht-mega__grid > *,
.ht-tiles > *,
.ht-hero__grid > * { min-width: 0; }

/* Long clinical terms wrap rather than forcing a scrollbar. */
.ht-prose,
.ht-glance__v,
.ht-symptom,
.ht-flow__step,
.ht-compare__side { overflow-wrap: break-word; }
