/* site.css — Tier 2 composition. Grows section by section through Step 5b.
 *
 * Never a raw hex, never a raw px, never a Tier 0A --color-* reference: compose
 * against Tier 0B roles only. New CSS belongs here ONLY when the core cannot
 * express it and nothing in the project manifest fits — otherwise it is a
 * brand value or a core ticket.
 */
@layer utilities {

  /* ── §container — THE COMP DRAWS 1440 OF CONTENT INSIDE 1600 ─────────────
     The core caps .container at 1320 and ships no width seam (raised on Elite
     as EHS-CORE-06, still absent in v1.2.11 — grepped). Before this every
     section sat at left 140 while the header's content runs from 80: the two
     disagreed by 60px a side on the same page. Brendan's standing call for
     comps drawn this way (Elite, 2026-09-17: match the Figma project): from
     1400 up, max-width 1600 with the comp's own 80px gutter, so content is
     min(100vw, 1600) − 160 = exactly 1440 at 1600. Lands by LAYER ORDER (this
     sheet is `utilities`, after the core's container). `:not(.mega-panel)`
     keeps the header's dropdown panels as they were (the pad inherits).
     ⚠️ A container change is a `sizes` change: every column-derived ladder
     carries a 1600 cap and a 1400 slope clause (config.php, gate:sizes). */
  @media (min-width: 1400px) {
    .container:not(.mega-panel) {
      max-width: 1600px;
      --container-pad-x: 5rem;
    }
  }

  /* ── §icons — A GLYPH'S PADDING SITS OUTSIDE ITS BOX ─────────────────────
     Font Awesome is self-hosted webfonts (doc-header.php), so an icon is the
     <i> itself, 1.25em wide. The kit used to swap each <i> for an <svg> that
     Font Awesome styled `box-sizing: content-box`, and the markup leans on
     it: the advantage and warning cards pad their glyph with .px-lg-3. Under
     the core's border-box reset that padding comes OUT of the 1.25em — the
     glyph overflows what is left, the card's text column widens to match and
     re-wraps (measured 2026-11-16: six repair pages came out up to 72px
     shorter). This keeps every icon the size it was as an <svg>. */
  :is(.fa-solid, .fa-regular, .fa-brands) { box-sizing: content-box; }

  /* ── §header (menu.php, comp 38112:905) ──────────────────────────────────
     The core ships the navbar SHELL and leaves the ARRANGEMENT to the site
     (core manifest, navbar shell). Heller's: the brand spans two rows — a
     white utility row over an Abyss link bar that runs to the right edge.
     Below XL it is one row: brand | call + menu. */
  .hha-navbar {
    --navbar-brand-width: 10rem;
    --navbar-brand-width-shrunk: 7rem;
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
  }
  .hha-navbar-mobile { grid-column: 2; }

  @media (min-width: 1200px) {
    .hha-navbar {
      /* 248 × 85 in the comp; 160 once shrunk. */
      --navbar-brand-width: 15.5rem;
      --navbar-brand-width-shrunk: 10rem;
      grid-template-rows: auto auto;
      column-gap: 1.5rem;
      row-gap: 0;
      /* THE BAR RUNS TO THE SCREEN EDGE (comp: x357 → 1600), so the grid drops
         its end inset and the utility row puts it back — the same formula the
         core's .navbar-inner uses, so the two edges cannot disagree. */
      padding-inline-end: 0;
    }
    .hha-navbar-brand { grid-row: 1 / span 2; }
    .hha-navbar-utility {
      min-height: 4rem;
      padding-inline-end: var(--navbar-pad-x, clamp(var(--container-pad-x, 0.75rem),
                                                    (100vw - var(--navbar-fit, 1460px)) / 2,
                                                    var(--navbar-inset, 5rem)));
    }
    /* THE BAR IS 36px, AS DRAWN, and its links keep the core's 44px .nav-link
       floor (no seam; a core component is never resized from a site): the bar
       is held to the comp's height and the links centre on it, overhanging
       4px above and below — invisible, and still a 44px target. */
    .hha-navbar-bar {
      display: flex;
      align-items: center;
      height: 2.25rem;  /* scale-exempt: the comp's 36px bar, not rhythm */
      border-start-start-radius: var(--radius-sm);
      padding-inline: 1.5rem var(--navbar-pad-x, clamp(var(--container-pad-x, 0.75rem),
                                                     (100vw - var(--navbar-fit, 1460px)) / 2,
                                                     var(--navbar-inset, 5rem)));
    }
    .hha-navbar-bar > .navbar-nav { flex: 1 1 auto; align-items: center; }
  }


  /* ── §utilities ─────────────────────────────────────────────────────────
     The comp's "Drop Shadow/Medium" (0 0 8px 20%) IS the core's
     --shadow-raised token, which the core ships no utility for (.shadow is
     --shadow-md, a different, offset shadow). Used on every raised card. */
  .hha-shadow-raised { box-shadow: var(--shadow-raised); }

  /* ── §hero (index.php 1, comp 38112:530) ───────────────────────────────
     168px of bottom padding in the comp: the room the five advantage cards
     take when they overlap 50px up into the hero (§opener). */
  .hha-hero-body { padding-bottom: 10rem; }  /* scale-exempt: overlap geometry — the comp's 168 = the cards' 150 + their 50px rise less the gap */

  /* ── §opener (index.php 2, comp 38112:543) ────────────────────────────── */
  /* The card row rides 50px up into the hero (Card Wrapper y = -50). */
  /* TOP + negative bottom margin, NOT a negative top margin: the section has
     no top padding, so a negative margin-top collapsed THROUGH it and moved
     the whole grey band up over the hero (measured 2026-10-26). */
  .hha-overlap-up { position: relative; top: -3rem; margin-bottom: -3rem; --card-padding: 0.5rem; }
  /* The 68px disc (size xl) wears a 4px white ring and overflows its card's
     top edge by 22px (38112:574 Extra Large Icon). */
  .hha-disc-overhang { margin-top: -2rem; }  /* scale-exempt: overlap geometry — the 68px disc rides 22px over the card edge */
  /* UNTIL THE CORE'S SCRIPT UPGRADES <fa-stack> IT IS EMPTY AND 0px TALL, so
     these five cards painted 64px short and jumped when the disc arrived:
     layout shift 0.037 on a throttled phone once first paint came ahead of
     the script (2026-11-16), and 0.019 on desktop before that. This holds the
     disc's box open until then, with the same inline-flex, 2em-at-xl size and
     vertical-align the core gives `.icon-stacked.xl`. It matches nothing once
     the element is defined, so check-css-reach lists it as unreached at rest.
     Delete it when the core reserves the box itself (HHA-CORE-03). */
  .hha-disc-overhang:not(:defined)::before { content: ""; display: inline-flex; width: 2em; height: 2em; font-size: 2rem; vertical-align: middle; }
  /* .card clips its content (core: overflow hidden, for radius-clipped
     media); these five cards carry no media, and their disc must ride over
     the top edge, so they let it show. */
  .hha-overlap-up .card { overflow: visible; }
  /* The comp's red discs wear a white ring (4px on the advantage cards, 3px
     on the Comfort Club badge — one value). */
  .hha-disc-ring > .icon-stacked { outline: 0.25rem solid var(--surface); }
  /* The hellermark sits centred between the columns, half hidden behind the
     form card's top edge (38112:556, 385×211 at x537 / y507). */
  /* Brendan, 2026-10-28: centred, its spikes ran behind the welcome copy on
     laptop widths (1280) — it now starts at the photo column's left edge
     (50% + half the g-lg-5 gutter), clear of the copy at every width. */
  .hha-mark-behind {
    position: absolute;
    top: 0;
    left: calc(50% + 1.5rem);
    width: 24rem;
    height: auto;
    /* bottom edge just behind the form card's top edge, as drawn */
    transform: translateY(-97%);
  }

  /* The comp paints the mark OVER the welcome photo; at the core's 1320
     container the copy runs longer than the comp's 1440, and the spikes would
     cover its last lines — so the copy column sits above the mark. */
  .hha-above-mark { position: relative; z-index: 1; }

  /* ── §services dropdowns (index.php 3, comp 38112:604–606) ──────────────
     Each row is a Neutral/100 pill (radius 8, 12/20 padding, 12 apart): a
     Lake Blue disc + Inter Bold 18 label left, a circled plus right (12/20
     padding and 12 apart in the comp, snapped to the scale: 8/16, 8). The
     label face, the indicator ink and the density are the core's seams; the
     pill ground is the site's (no core seam paints a collapse row). */
  .hha-svc-acc {
    --collapse-label-font: var(--font-body);
    --collapse-label-weight: var(--font-weight-bold);
    --collapse-indicator: var(--brand-secondary);
    --collapse-toggle-padding: 0.5rem 1rem;
    --accordion-separator: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
  }
  .hha-svc-acc rbmg-collapse {
    background: var(--surface-sunken-strong);
    border-radius: var(--radius-sm);
  }
  .hha-svc-acc [data-collapse-panel] { padding-inline: 1rem; }

  /* ── §faq (index.php 9, comp 38112:744) ───────────────────────────────────
     Questions are Inter Bold 18 in heading ink over a 1px Lake Blue rule;
     the comp's rows are dense (34px), the core's 44px floor stands. */
  .hha-faq {
    --collapse-label-font: var(--font-body);
    --collapse-label-weight: var(--font-weight-bold);
    --collapse-indicator: var(--heading);
    --collapse-toggle-padding: 0.25rem 0;
    /* a full border shorthand, not a colour: the core reads it as border-top */
    --accordion-separator: 1px solid var(--brand-secondary);
    color: var(--heading);
  }

  /* ── §our-story tiles (index.php 5, comp 38112:638) ──────────────────────
     The 68px ringed disc straddles each tile's LEFT edge, vertically centred;
     the tile insets its copy past it. The cards carry no media, so they let
     the disc show (core .card clips). */
  .hha-tiles .card { overflow: visible; }
  /* The tile is INSET 40px into its column (comp: Advantage pl-40) and the
     disc sits at the column's left edge, so it overlaps the tile by 24 and
     never reaches the neighbouring column (it did when it straddled the
     tile's edge: 32px out against a 24px gutter — Brendan, 2026-10-26). */
  /* THE DISC IS THE TILE'S HEIGHT (comp 38112:639: a 68px ringed disc on a
     68px tile — 20px padding round one 28px line). The disc here is the
     core's xl (64) + its 4px ring = 72, so the tile is held to that height
     and the disc centred on it: their top and bottom edges coincide. */
  .hha-tiles { --card-padding: 1rem; }
  .hha-tile {
    margin-inline-start: 2.5rem;  /* scale-exempt: overlap geometry — the comp's 40px inset */
    padding-inline-start: 1.5rem;
    min-height: 4.5rem;           /* scale-exempt: the disc's own height (64 + 2 × 4 ring) */
  }
  .hha-disc-left {
    position: absolute;
    left: -2.5rem;
    top: 50%;
    transform: translateY(-50%);
  }
  /* SMALL TILE — the same badge at the core's lg disc (48 + 2 × 4 ring = 56):
     every length above scaled to it (page_template other-services links,
     Brendan 2026-10-26: "re use these cool badges … but smaller"). */
  .hha-tile.hha-tile-sm {
    margin-inline-start: 2rem;    /* scale-exempt: overlap geometry */
    padding-inline-start: 1.25rem;
    min-height: 3.5rem;           /* scale-exempt: the lg disc's own height */
  }
  .hha-tile-sm .hha-disc-left { left: -2rem; }
  /* The badge now holds its description (Brendan): the paragraph's flow margin
     would sit inside the tile as dead space under it. */
  .hha-tile-sm .card-body > p:last-child { margin-block-end: 0; }

  /* A photo that FILLS its column's height from LG instead of setting it — the
     Comfort Club card (38112:654): the copy beside it decides the height, as
     drawn, and the photo crops to it. Below LG it stacks at its own ratio. */
  @media (min-width: 992px) {
    .hha-photo-fill {
      position: absolute;
      inset: 0 calc(var(--gutter-x) * 0.5) 0 calc(var(--gutter-x) * 0.5);
      width: calc(100% - var(--gutter-x));
      height: 100%;
    }
  }

  /* A column photo that stays IN VIEW instead of stretching (town pages'
     SERVICES-GRID, 8 badges): at LG it keeps its 4:5 shape and pins below the
     fixed header while the list scrolls. .hha-photo-fill would crop a sliver
     out of a column that tall. */
  @media (min-width: 992px) {
    .hha-photo-sticky { position: sticky; top: 8rem; }  /* scale-exempt: clears the fixed header */
  }

  /* ── §hover (Brendan's hover spec, 2026-10-26) ───────────────────────────
     Buttons take the core's own .btn-hover-invert (white fill, coloured edge
     and label) — markup, no CSS. The three below are the site's.

     FLIP — the opener advantage cards and the Our Story tiles: the white card
     fills red, its copy turns white, its disc turns Lake Blue (ring kept).
     The red is the DEEP red (--btn-primary): white copy on it is 5.69:1, where
     Stop Sign is 4.05 (the approved rule for red that carries text). A card
     cannot re-publish its ink on a state change (core E-041), so the copy's
     colour is set here, from the role the core derived for that fill. */
  /* ONE HOVER TIMING (Brendan, 2026-10-27: "smoother, they seem jumpy"). The
     core's 0.25s / fast-out curve suits small controls but snapped these big
     colour fills, and the copy inside a card set its own hover colour with
     no transition — the text jumped while the ground faded. Every hover
     below (cards, their copy and discs, pills, inverting buttons) now runs
     on this one duration and an even ease-in-out, so they move together. */
  :root {
    --hha-hover-duration: 0.35s;
    --hha-hover-ease: cubic-bezier(0.45, 0, 0.55, 1);
  }
  .hha-hover-flip {
    transition: background-color var(--hha-hover-duration) var(--hha-hover-ease),
                color var(--hha-hover-duration) var(--hha-hover-ease);
  }
  /* The copy that takes its own hover colour (the :hover rule below) fades
     with the ground instead of snapping; the disc keeps the core's
     box-shadow / transform transitions alongside. NOT the disc's glyph: it
     INHERITS the disc's colour, and a transition on an element whose
     inherited value is itself mid-transition restarts every frame (the
     stutter fixed 2026-10-27, see the :hover rule). */
  .hha-hover-flip :is(h2, h3, .h5, .text-primary, a) {
    transition: color var(--hha-hover-duration) var(--hha-hover-ease),
                text-decoration-thickness var(--hha-hover-duration) var(--hha-hover-ease);
  }
  .hha-hover-flip .icon-stacked {
    transition: background-color var(--hha-hover-duration) var(--hha-hover-ease),
                color var(--hha-hover-duration) var(--hha-hover-ease),
                box-shadow var(--hha-hover-duration) var(--hha-hover-ease),
                transform var(--hha-hover-duration) var(--hha-hover-ease);
  }
  /* CARD CTA LABEL (hub sub-page cards, Brendan 2026-10-27: "on hover i want
     the link to be white underlined"). The label is a span — the whole card is
     the stretched link — so it carries the core link's underline geometry
     itself. The line is always there in transparent and fades to the label's
     own (white, on the flip) colour, so it arrives with the ground. */
  .hha-card-cta {
    text-decoration-line: underline;
    text-decoration-color: transparent;
    text-decoration-thickness: calc(var(--link-underline-thickness, 0.0625em) * 2);
    text-underline-offset: var(--link-underline-offset, 0.15em);
  }
  .hha-hover-flip .hha-card-cta {
    transition: color var(--hha-hover-duration) var(--hha-hover-ease),
                text-decoration-color var(--hha-hover-duration) var(--hha-hover-ease);
  }
  /* The core's inverting buttons, on the same clock. */
  .btn-hover-invert {
    transition-duration: var(--hha-hover-duration);
    transition-timing-function: var(--hha-hover-ease);
  }
  /* Hover only where a pointer hovers: on touch, a tap would leave the card
     stuck in its hover colours (the core gates its button hovers the same way). */
  @media (hover: hover) {
    .hha-hover-flip:hover {
      background-color: var(--btn-primary);
      color: var(--on-btn-primary);
    }
    /* An explicit colour, not `inherit`: a transitioning element (links ease
       their colour) inheriting the card's MID-transition colour restarts its own
       transition every frame — the stutter Brendan saw on the badges. */
    .hha-hover-flip:hover :is(h2, h3, .h5, .text-primary, a) { color: var(--on-btn-primary); }
    .hha-hover-flip:hover .hha-card-cta { text-decoration-color: var(--on-btn-primary); }
    /* --icon-stacked-bg is the core's documented site seam for a disc's fill;
       the glyph ink re-derives from it. */
    .hha-hover-flip:hover .icon-stacked { --icon-stacked-bg: var(--brand-secondary); }

  }

  /* BLUE — the closer's red cards turn Lake Blue; the glyph turns red with a
     white edge (four zero-blur drop-shadows draw the comp's outline). */
  .hha-hover-blue {
    transition: background-color var(--hha-hover-duration) var(--hha-hover-ease);
  }
  .hha-hover-blue > .card-body > i {
    transition: color var(--hha-hover-duration) var(--hha-hover-ease),
                filter var(--hha-hover-duration) var(--hha-hover-ease);
  }
  @media (hover: hover) {
    .hha-hover-blue:hover { background-color: var(--brand-secondary); }
    .hha-hover-blue:hover > .card-body > i {
      color: var(--brand-primary);
      filter: drop-shadow(0.125rem 0 0 var(--surface)) drop-shadow(-0.125rem 0 0 var(--surface))
              drop-shadow(0 0.125rem 0 var(--surface)) drop-shadow(0 -0.125rem 0 var(--surface));
    }

  }

  /* TOWN PILLS (service areas) — flip like the buttons: white fill, the
     pill's own colour as edge and label. The edge is an inset ring so the
     pill keeps its size. Abyss pills ring in Abyss, Aurora in the
     deep red (the button red). */
  .hha-pill {
    transition: background-color var(--hha-hover-duration) var(--hha-hover-ease),
                color var(--hha-hover-duration) var(--hha-hover-ease),
                box-shadow var(--hha-hover-duration) var(--hha-hover-ease);
  }
  @media (hover: hover) {
    /* --surface-inverse (Abyss), NOT --heading: .bg-inverse re-publishes
       --heading as white on the pill itself, so the hover read white on
       white (measured 2026-10-26). */
    .hha-pill:hover {
      background-color: var(--surface);
      color: var(--surface-inverse);
      box-shadow: inset 0 0 0 0.125rem var(--surface-inverse);
    }
    .hha-pill.bg-accent:hover {
      color: var(--brand-accent);
      box-shadow: inset 0 0 0 0.125rem var(--brand-accent);
    }
  }
  .hha-pill:focus-visible { outline-offset: 0.125rem; }

  /* SERVICE DROPDOWNS — hovered or open, the row's disc turns red and the
     circled plus turns the body ink (comp: black). */
  .hha-svc-acc rbmg-collapse.is-open .icon-stacked { --icon-stacked-bg: var(--brand-accent); }
  .hha-svc-acc rbmg-collapse.is-open { --collapse-indicator: var(--on-surface); }
  @media (hover: hover) {
    .hha-svc-acc rbmg-collapse:hover .icon-stacked { --icon-stacked-bg: var(--brand-accent); }
    .hha-svc-acc rbmg-collapse:hover { --collapse-indicator: var(--on-surface); }
  }

  /* FOOTER LINKS — .link-bare at rest (the comp); hover brings the core's
     underline back (Brendan, 2026-10-27). .link-bare's `text-decoration:
     none` shorthand also resets the thickness, so the core's doubled hover
     rule is restated here; the offset survives the shorthand. */
  @media (hover: hover) {
    .hha-foot-link:hover {
      text-decoration-line: underline;
      text-decoration-thickness: calc(var(--link-underline-thickness, 0.0625em) * 2);
    }
  }

  /* ── §folder tabs (page_template.php action band) ─────────────────────────
     Brendan, 2026-10-26: tabs ON the card's top edge, bolder. The core's
     active="fill" is a pill, not a folder tab, and no seam paints an
     INACTIVE tab — so this wrapper styles its own tabs: solid Lake Blue
     with white labels (7.08:1), hover the deep red (white 5.69:1), the
     selected tab WHITE with a Lake Blue label so it reads as the open folder
     joined to the white card. Rounded top only; no rail border, no bar. */
  .hha-folder-tabs { display: block; }
  /* The rail is taller than its tabs (the scroll rail reserves room), so the
     tabs sit on its BOTTOM edge — flush on the card, no gap. */
  .hha-folder-tabs [role="tablist"] {
    align-items: flex-end;
    gap: 0.5rem;
    border-bottom: 0;
    padding-inline: 1.5rem;
  }
  .hha-folder-tabs [role="tab"] {
    /* bolder: the H5 size (Oswald 700 20/28), not the rail's label-md */
    font-size: var(--fs-h5);
    line-height: var(--lh-h5);
    padding: 1rem 1.5rem;
    border: 0;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    background-color: var(--brand-secondary);
    color: var(--on-secondary);
    transition: background-color var(--transition-standard) var(--ease-standard),
                color var(--transition-standard) var(--ease-standard);
  }
  @media (hover: hover) {
    .hha-folder-tabs [role="tab"]:not([aria-selected="true"]):hover {
      background-color: var(--btn-primary);
      color: var(--on-btn-primary);
    }
  }
  .hha-folder-tabs [role="tab"][aria-selected="true"] {
    background-color: var(--surface);
    color: var(--brand-secondary);
  }
  /* The mascot moves to the card's top-RIGHT corner here — the tabs own the left. */
  .hha-mark-corner.hha-mark-corner-end { left: auto; right: 1.75rem; width: 18rem; }  /* Brendan, 2026-10-26: larger sun on the form; the tabs sit mt-lg-7 to clear the header copy, and it shows from xl only (below 1200 it covers the Call Us tab) */

  /* ── §steps rail (page_template.php process; Brendan, 2026-10-27) ──────────
     Core <rbmg-tabs> (ARIA and keys unchanged) drawn as a progress rail:
     each tab is a numbered disc with its title under it, joined to the
     previous tab by a line. Tabs are equal width with no gap, so a line drawn
     from the previous tab's centre to this one's is exactly 100% of a tab.
     Everything up to and including the selected step is filled: the disc
     turns the deep red, the line fills left-to-right. :has(~ [selected])
     finds the steps before the selected one. */
  .hha-steps-rail [role="tablist"] {
    flex-wrap: nowrap;
    gap: 0;
    border-bottom: 0;
  }
  .hha-steps-rail [role="tab"] {
    position: relative;
    flex: 1 1 0;
    min-width: 9rem;
    flex-direction: column;
    justify-content: flex-start;
    gap: 0.75rem;
    padding: 0.5rem 0.75rem 1rem;
    border-bottom: 0;
    text-align: center;
    color: var(--on-surface-muted);
  }
  .hha-steps-rail [role="tab"][aria-selected="true"] { color: var(--heading); }
  .hha-step-disc {
    position: relative;
    z-index: 1;
    display: grid;
    place-items: center;
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 50%;
    background-color: var(--surface);
    box-shadow: inset 0 0 0 0.25rem var(--border-strong);
    color: var(--heading);
    font-family: var(--font-heading);
    font-size: var(--fs-h4);
    line-height: 1;
    transition: background-color var(--transition-standard) var(--ease-standard),
                box-shadow var(--transition-standard) var(--ease-standard),
                color var(--transition-standard) var(--ease-standard);
  }
  .hha-steps-rail [role="tab"] + [role="tab"]::before {
    content: "";
    position: absolute;
    top: 2.125rem;            /* scale-exempt: the disc's centre (0.5 pad + 1.75) less half the line */
    right: 50%;
    width: 100%;
    height: 0.25rem;
    background: linear-gradient(var(--brand-accent), var(--brand-accent)) left / 0% 100% no-repeat,
                var(--border-strong);
    transition: background-size 0.4s var(--ease-standard);
  }
  .hha-steps-rail [role="tab"][aria-selected="true"] .hha-step-disc,
  .hha-steps-rail [role="tab"]:has(~ [aria-selected="true"]) .hha-step-disc {
    background-color: var(--brand-accent);
    box-shadow: inset 0 0 0 0.25rem var(--brand-accent);
    color: var(--on-accent);
  }
  .hha-steps-rail [role="tab"][aria-selected="true"]::before,
  .hha-steps-rail [role="tab"]:has(~ [aria-selected="true"])::before {
    background-size: 100% 100%, auto;
  }
  @media (hover: hover) {
    .hha-steps-rail [role="tab"]:not([aria-selected="true"]):hover { color: var(--heading); }
    .hha-steps-rail [role="tab"]:not([aria-selected="true"]):hover .hha-step-disc {
      box-shadow: inset 0 0 0 0.25rem var(--brand-accent);
    }
  }
  @media (prefers-reduced-motion: reduce) {
    .hha-steps-rail [role="tab"]::before, .hha-step-disc { transition: none; }
  }

  /* ── §reviews (hha-block-reviews.php) ────────────────────────────────────
     The Elfsight mount is empty until the widget renders (lazy, near the
     viewport), then 255px at 390 and 1440 alike (measured 2026-10-27). The
     box is reserved so the CTAs under it do not jump when it lands (CLS). */
  .hha-reviews-mount { min-height: 16rem; }  /* scale-exempt: the widget's measured height */

  /* ── §sticky-cta (doc-footer.php; Brendan, 2026-10-27) ──────────────────
     A mobile bar pinned to the bottom edge; it slides up when custom.js adds
     .is-shown. Under the header's layer so the menu drawer covers it. The
     safe-area inset keeps the buttons above the iPhone home indicator. */
  .hha-sticky-cta {
    position: fixed;
    inset-inline: 0;
    bottom: 0;
    z-index: calc(var(--z-navbar, 1040) - 10);
    padding-bottom: env(safe-area-inset-bottom);
    box-shadow: var(--shadow-raised);
    transform: translateY(100%);
    visibility: hidden;
    transition: transform var(--transition-standard) var(--ease-standard),
                visibility 0s linear var(--transition-standard);
  }
  .hha-sticky-cta.is-shown {
    transform: none;
    visibility: visible;
    transition: transform var(--transition-standard) var(--ease-standard),
                visibility 0s;
  }
  @media (prefers-reduced-motion: reduce) {
    .hha-sticky-cta, .hha-sticky-cta.is-shown { transition: none; }
  }

  /* ── §strips (comp "Rectangle 4", 38112:624 / 643 / 743) ──────────────
     A 1600×19 red trapezoid along a section edge; the SVG stretches
     (preserveAspectRatio none). Bottom by default; -top flips it. */
  .hha-strip {
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 1.25rem;
  }
  .hha-strip-top { top: 0; bottom: auto; transform: scaleY(-1); }

  /* SUNRISE — the sub-page closer (page_template §10). The hellermark is a
     flat-bottomed half sun, so it RISES from the band's bottom edge on the
     right, clear of the col-lg-7 copy (Brendan, 2026-10-26). Shown from LG
     (d-lg-block); its right edge tracks the container's. */
  .hha-mark-rise {
    position: absolute;
    bottom: 0;
    right: max(1.5rem, calc((100% - 90rem) / 2 + 3rem));
    width: min(34rem, 36vw);  /* scales down so it stays clear of the copy column at LG/XL */
    height: auto;
  }

  /* ── §comfort-club (index.php 6, comp 38112:644) ────────────────────────
     The hellermark peeks over the frame's top-left corner (223×122 at
     x108 / y155 of the section, frame at y272). */
  .hha-mark-corner {
    position: absolute;
    top: 0;
    left: 1.75rem;
    width: 14rem;
    height: auto;
    /* its bottom edge just behind the frame, as drawn */
    transform: translateY(-96%);
  }

  /* ── §service-areas map (index.php 8, comp 38112:730) ─────────────────── */
  /* THE FRAME HAS THE COMP'S SHAPE (720 × 949) at every width, so the pins —
     placed as percentages of it — land on their towns however wide it is. The
     comp crops the basemap: scaled to the frame's height, shifted 7.22% of the
     frame's width left; object-position 29% of the overflow is the same crop. */
  .hha-map { aspect-ratio: 720 / 949; }
  .hha-map > img:first-child { object-position: 29% 50%; }
  /* Pins (38112:731–742): each SVG carries an 8px shadow margin, so a pin's box
     is its drawn size + 16. Percentages computed from the comp's right/top
     offsets, 2026-10-26. Aurora is the larger red pin. */
  .hha-map-pin { position: absolute; height: auto; }
  .hha-map-pin-aurora { left: 45.00%; top: 31.93%; width: 9.86%; }
  .hha-map-pin-1 { left: 20.00%; top: 40.67%; width: 7.50%; }
  .hha-map-pin-2 { left: 20.00%; top: 53.00%; width: 7.50%; }
  .hha-map-pin-3 { left: 50.00%; top: 53.95%; width: 7.50%; }
  .hha-map-pin-4 { left: 65.56%; top: 42.36%; width: 7.50%; }
  .hha-map-pin-5 { left: 9.72%; top: 36.67%; width: 7.50%; }
  .hha-map-pin-6 { left: 57.36%; top: 30.56%; width: 7.50%; }
  .hha-map-pin-7 { left: 66.94%; top: 22.23%; width: 7.50%; }
  .hha-map-pin-8 { left: 30.28%; top: 4.00%; width: 7.50%; }
  .hha-map-pin-9 { left: 36.25%; top: 35.62%; width: 7.50%; }
  .hha-map-pin-10 { left: 34.58%; top: 17.18%; width: 7.50%; }
  .hha-map-pin-11 { left: 58.19%; top: 78.50%; width: 7.50%; }

  /* ── §closer callout (index.php 10, comp 38112:808) ────────────────────
     The 436×239 mascot is clipped by the callout box at its left
     (left 37, top 0). */
  .hha-mark-clipped {
    position: absolute;
    top: 0;
    left: 2.25rem;
    /* Brendan, 2026-10-28: at 27rem its long right spike ran into the centred
       copy (col-lg-5 starts ~29% in from the card's left), so it is sized from
       the card: spike tip ~20px short of the copy at every LG+ width. */
    width: calc(29% - 2.75rem);
    height: auto;
  }

  /* The tagline is Abyss — the heading ink, not body ink (Label/Large). */
  .hha-tagline { color: var(--heading); }

}
