/* ==========================================================================
   A1 Sliding Door Repair — app.css
   Plain, dependency-free CSS that defines every component class used by the
   PHP partials. Tailwind (CDN) handles layout utilities; this file owns the
   design system, focus states, zero-CLS guards and print rules.
   ========================================================================== */

/* --------------------------------------------------------------------------
   00. Self-hosted type
   --------------------------------------------------------------------------
   These three files replace the two render-blocking Google Fonts requests
   (fonts.googleapis.com for the stylesheet, fonts.gstatic.com for the woff2)
   that sat on the critical path and produced the intermittent 0.163 CLS.
   The shift was FOUT: under PSI throttling the page painted on the fallback
   stack, then re-wrapped every heading when Outfit finally arrived, because
   the chain was serial — HTML, then the GF stylesheet, then the fonts, across
   two extra TLS handshakes. Self-hosted and preloaded in <head>, the fonts
   now download in parallel with this stylesheet on the connection that is
   already open, and arrive before first paint.

   Each family is ONE file, not one per weight. Google serves these three as
   variable fonts: the URL behind `Outfit:wght@700` is byte-identical to the
   one behind `wght@800` and to the full `wght@100..900` request. So there is
   no such thing as a separate `outfit-700.woff2` to download — asking for
   eight static instances would have fetched the same three files eight times.
   Declaring the real axis range below lets the browser interpolate each
   weight from the one file, with no synthetic bolding.

   Verified with fontTools against the downloaded files:

     outfit-var.woff2          32,228 B   wght 100-900   upem 1000
     public-sans-var.woff2     26,636 B   wght 100-900   upem 2000
     jetbrains-mono-var.woff2  31,340 B   wght 400-800   upem 1000
                               --------
                               90,204 B   latin subset, 223-229 glyphs each

   Three notes on what is deliberately NOT here:

   1. No italic face. Public Sans italic 400 was in the old GF query but
      nothing uses it — zero `font-style: italic`, zero `<em>` or `<i>` in
      templates, includes or the JSON data layer, and Tailwind never emitted
      an `.italic` utility. Saved 26 KB. If an italic ever appears the browser
      synthesises an oblique from the variable file rather than dropping to a
      system font, so there is no visible cliff.
   2. No `unicode-range`. It only earns its keep when it lets the browser skip
      a file, and there is one file per family. Splitting here would just stop
      these fonts covering codepoints they already contain. The latin subset
      has the degree sign and both dashes; U+2192 (the arrow) is in none of
      Google's subsets either, so it falls back to a system glyph exactly as
      it already did.
   3. No cache-busting query on these URLs. The preload in head.php must match
      this request byte for byte or the browser fetches the font twice, and
      asset_url() appends ?v=<mtime>. Fonts are immutable like content images,
      versioned by filename — same reasoning as image_url().

   Refetching: the paths these came from are pinned to Outfit v15, Public Sans
   v21 and JetBrains Mono v24. Google bumps those directories, so re-resolve
   the URLs through the css2 API rather than editing a version by hand.
   -------------------------------------------------------------------------- */

@font-face {
    font-family: 'Outfit';
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url('../fonts/outfit-var.woff2') format('woff2');
}

@font-face {
    font-family: 'Public Sans';
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url('../fonts/public-sans-var.woff2') format('woff2');
}

/* JetBrains Mono's axis genuinely starts at 400, not 100. app.css asks this
   family for 500, 600 and 700 — and 700 was never in the Google Fonts query,
   which only requested 500;600, so every mono bold on the site was a
   synthetic smear until now. The one variable file covers all three. */
@font-face {
    font-family: 'JetBrains Mono';
    font-style: normal;
    font-weight: 400 800;
    font-display: swap;
    src: url('../fonts/jetbrains-mono-var.woff2') format('woff2');
}

/* --------------------------------------------------------------------------
   0. Design tokens
   --------------------------------------------------------------------------
   Every colour below was measured, not eyeballed. Ratios on #FFFFFF unless
   noted; the three surfaces are close enough in luminance that a value
   clearing its target on white clears it on --surface-warm and
   --surface-tint too, with the one exception flagged on --control-line.

     --primary        #0B3559  12.59   headings, inverse surfaces
     --primary-600    #0E4474  10.01
     --primary-500    #12558F   7.72
     --primary-800    #092945  14.84
     --primary-900    #071E34  16.88
     --primary-950    #041322  18.73
     --accent         #12558F   7.72   links; the old #1D6FA5 was 4.74
     --ink            #0F172A  17.85
     --ink-muted      #44576B   7.44   navy-tinted, never neutral gray
     --control-line   #6E869E   3.77 / 3.46 warm / 3.38 tint
                                       form + control boundaries need >=3:1
                                       non-text contrast; --line (1.33) and
                                       --line-strong (1.76) are decorative
                                       rules only and must not bound an input
     --cta  + ink     #F59E0B   8.90   with --cta-ink #140F02
     --cta-600 + ink  #D97706   6.00   hover keeps the dark ink
     --cta-700 + ink  #C86E06   5.18   #B45309 was only 3.81 with dark ink,
                                       so it survives as --cta-edge, an ink
                                       and border value (5.02 on white)
     --success        #0F6E3C   6.33
     --danger         #B42318   6.57
     --on-dark-muted  #B8CDE2  10.34 on --primary-900
   -------------------------------------------------------------------------- */

:root {
    --primary: #0B3559;
    --primary-600: #0E4474;
    --primary-500: #12558F;
    --primary-800: #092945;
    --primary-900: #071E34;
    --primary-950: #041322;
    --primary-100: #E8EEF5;
    --primary-50: #F2F6FA;
    --accent: #12558F;
    --accent-700: #0E4474;
    --accent-50: #F2F6FA;
    --cta: #F59E0B;
    --cta-600: #D97706;
    --cta-700: #C86E06;
    --cta-edge: #B45309;
    --cta-ink: #140F02;
    --cta-50: #FEF6E7;
    --ink: #0F172A;
    --ink-muted: #44576B;
    --line: #D8E0E8;
    --line-strong: #B8C5D3;
    --control-line: #6E869E;
    --surface: #FFFFFF;
    --surface-warm: #F6F5F2;
    --surface-tint: #EEF3F7;
    /* Retained name: ~40 selectors predate the warm/tint split. */
    --surface-alt: #F6F5F2;
    --on-dark: #FFFFFF;
    --on-dark-muted: #B8CDE2;
    --success: #0F6E3C;
    --danger: #B42318;

    /* Type. One display face, one reading face, one measuring face. */
    --font-display: 'Outfit', 'Public Sans', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
    --font-body: 'Public Sans', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

    /* Geometry. This trade is machined, not pillowy: a 2px structural radius
       reads as a milled edge, and 0 is the default for anything with a frame. */
    --radius: 2px;
    --radius-sm: 2px;
    --radius-lg: 3px;

    /* Measure. In ch, so a cap stays correct when the type size under it
       changes — a rem cap is just a pixel width that does not know what it is
       holding, which is how prose here ended up running 90 to 106 characters a
       line. 1ch in Public Sans is about 0.61em while the average character is
       nearer 0.44em, so 54ch lands around 72 rendered characters. */
    --measure: 54ch;

    /* Depth. Offset + blur, tinted from the navy, never a zero-offset halo. */
    --shadow-sm: 0 1px 2px rgba(4, 19, 34, .10), 0 2px 4px rgba(4, 19, 34, .06);
    --shadow-md: 0 6px 12px -2px rgba(4, 19, 34, .12), 0 12px 28px -8px rgba(4, 19, 34, .14);
    --shadow-lg: 0 12px 24px -4px rgba(4, 19, 34, .16), 0 28px 56px -12px rgba(4, 19, 34, .22);

    /* Motion. Exponential ease-out, from an already-visible default. */
    --ease-out: cubic-bezier(.16, 1, .3, 1);
    --ease-std: cubic-bezier(.4, 0, .2, 1);

    --header-height: 4.75rem;
    /* .5rem pad + 3rem button + .5rem pad + 1px top border. Keep in step with
       .mobile-action-bar; the safe-area inset is added at the use site. */
    --mobile-bar-height: 4.3125rem;

    /* Drawn arrow, masked rather than typed. Forty links used to end in a
       literal &rarr;, which inherits whatever the fallback font decides an
       arrow looks like and is announced as "rightwards arrow" by a screen
       reader. Painted through a mask it takes currentColor, scales with the
       type, and is invisible to the accessibility tree. */
    --icon-arrow-right: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.25' stroke-linecap='round' stroke-linejoin='round'><path d='M4 12h14M12 5l7 7-7 7'/></svg>");
}

/* --------------------------------------------------------------------------
   1. Base & Native Layout Primitives
   -------------------------------------------------------------------------- */

*,
*::before,
*::after {
    box-sizing: border-box;
}

/* overflow-x uses `clip`, not `hidden`, on html AND body deliberately.
   `hidden` on html makes body a real scroll container (the browser propagates
   the first non-visible overflow it finds to the viewport), body's scrollport
   becomes the full page height, and [data-site-header] then has nothing to
   stick to — measured in Chrome, the header top reached -692px after an 800px
   scroll. `clip` never creates a scroll container, so the sticky header keeps
   working while both axes stay bounded. The @supports block below falls back
   to `hidden` on html ONLY, for the same reason. */
html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-height) + 1rem);
    max-width: 100%;
    overflow-x: clip;
}

/* `html body`, not `body`, throughout the base layer. Tailwind's CDN build
   injects its preflight <style> into <head> at runtime, which lands AFTER
   this file's <link>; at equal specificity the later sheet wins, so plain
   `body { line-height }` loses to preflight's `body { line-height: inherit }`
   and plain `h1 { font-size }` loses to `h1 { font-size: inherit }`. Measured
   in Chrome: body resolved to 24px and headings to their parent's size. One
   extra element in the selector (0,0,2 vs 0,0,1) settles it without
   !important. The same applies to ::placeholder and control borders, where
   the forms plugin otherwise forces #6B7280 (4.07:1) and #CBD5E1 (1.49:1). */
html body {
    margin: 0;
    max-width: 100%;
    overflow-x: clip;
    color: var(--ink);
    background: var(--surface);
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.65;
    font-synthesis-weight: none;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

@supports not (overflow-x: clip) {
    html {
        overflow-x: hidden;
    }
}

/* Keep the sticky mobile action bar from covering the end of the page. The
   bar's own padding carries env(safe-area-inset-bottom), so the reserve has
   to carry it as well — otherwise the dock grows by the inset on a notched
   iPhone while the reserve stays flat, and the last footer line disappears
   under it on exactly the devices this bar exists for. */
@media (max-width: 767.98px) {
    body {
        padding-bottom: calc(var(--mobile-bar-height) + env(safe-area-inset-bottom));
    }
}

/* Native container & spacing fallbacks (zero dependency on Tailwind CDN timing) */
.max-w-content {
    width: 100%;
    max-width: 72rem;
    margin-left: auto;
    margin-right: auto;
}

.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

.px-4 {
    padding-left: 1rem;
    padding-right: 1rem;
}

@media (min-width: 640px) {
    .px-4 {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
}

/* Universal grid & flex child overflow guard */
.grid > *,
.card-grid > *,
.city-grid > *,
.layout-with-sidebar > *,
.cta-banner-inner > *,
.lead-form-grid > * {
    min-width: 0;
    max-width: 100%;
}

img,
svg,
video,
iframe {
    max-width: 100%;
    height: auto;
}

/* Zero-CLS: reserve intrinsic space whenever dimensions are declared. */
img[width][height] {
    height: auto;
}

a {
    color: var(--accent);
    text-decoration-thickness: from-font;
    text-underline-offset: 0.18em;
    transition: color .18s var(--ease-std);
}

a:hover {
    color: var(--primary);
    text-decoration-thickness: 2px;
}

/* --------------------------------------------------------------------------
   1a. Type scale
   --------------------------------------------------------------------------
   Outfit at 800 for the display voice. Tracking tightens as size grows —
   -0.025em at section scale, -0.035em at hero scale — and never crosses the
   -0.04em floor. Sizes clamp instead of stepping at breakpoints so a 320px
   phone and a 1600px desktop both land inside the measure.
   -------------------------------------------------------------------------- */

html h1,
html h2,
html h3,
html h4,
html h5,
html h6 {
    color: var(--primary);
    font-family: var(--font-display);
    font-weight: 800;
    text-wrap: balance;
    overflow-wrap: break-word;
    margin-block: 0;
}

html h1 {
    font-size: clamp(2.125rem, 1.35rem + 3.4vw, 3.75rem);
    line-height: 1.04;
    letter-spacing: -0.035em;
}

html h2 {
    font-size: clamp(1.75rem, 1.28rem + 2.05vw, 2.625rem);
    line-height: 1.08;
    letter-spacing: -0.03em;
}

html h3 {
    font-size: clamp(1.25rem, 1.1rem + 0.65vw, 1.5rem);
    line-height: 1.16;
    letter-spacing: -0.022em;
}

html h4 {
    font-size: 1.0625rem;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: -0.015em;
}

html h5,
html h6 {
    font-size: 0.9375rem;
    font-weight: 700;
    line-height: 1.35;
    letter-spacing: -0.01em;
}

/* More space above a heading than below it: the heading belongs to the text
   that follows, not the one it closes. */
html * + h2 {
    margin-top: 2.5rem;
}

html * + h3,
html * + h4 {
    margin-top: 1.75rem;
}

html h1 + p,
html h2 + p,
html h3 + p,
html h4 + p {
    margin-top: 0.625rem;
}

p,
li,
dd,
td,
th {
    text-wrap: pretty;
    overflow-wrap: break-word;
}

/* Reading measure. Grid and card children opt out because their container
   already sets the width.
   68ch rendered at about 95 characters a line, which is well past the point
   where the eye starts losing the return sweep; --measure is the calibrated
   value. .cta-banner is no longer in the opt-out list — the banner's body
   paragraph is ordinary prose in a wide column, and the blanket exemption was
   the reason it ran 93 characters on every page on the site. */
p {
    max-width: var(--measure);
}

.card-grid p,
.city-grid p,
.hero-aside p,
.lead-form p,
.media-card p,
.svc-card p,
table p,
.pill-list p,
.sidebar-sticky p {
    max-width: none;
}

/* The measuring voice: phone numbers, ZIPs, tolerances, dates, counts.
   Mono here is for data, not for atmosphere. */
.mono,
.metric,
.tnum,
time,
[href^="tel:"] .mono {
    font-family: var(--font-mono);
    font-variant-numeric: tabular-nums;
    font-feature-settings: "tnum" 1, "zero" 1;
}

.metric {
    font-weight: 600;
    letter-spacing: -0.01em;
}

/* Data tables align on the decimal, always. */
td,
th {
    font-variant-numeric: tabular-nums;
}

strong,
b {
    font-weight: 700;
    color: var(--primary-800);
}

/* --------------------------------------------------------------------------
   1b. Browser surfaces
   --------------------------------------------------------------------------
   Selection, caret, scrollbar and spinner all ship with defaults that belong
   to no design system. They are drawn from the palette here so the chrome
   the page did not author still reads as part of it.
   -------------------------------------------------------------------------- */

::selection {
    background: var(--cta);
    color: var(--cta-ink);
    /* 8.90:1 — selected text stays readable, which the default blue does not
       guarantee over a navy surface. */
}

::-moz-selection {
    background: var(--cta);
    color: var(--cta-ink);
}

html input,
html textarea,
html select,
html button {
    font-family: inherit;
    font-size: inherit;
    caret-color: var(--primary-600);
}

html input::placeholder,
html textarea::placeholder {
    color: #566980;
    /* Placeholder text is text: 5.63 on --surface, 5.17 on --surface-warm,
       5.04 on --surface-tint, so it clears AA wherever a field lands. */
    opacity: 1;
}

html {
    scrollbar-color: var(--line-strong) var(--surface-warm);
    scrollbar-width: thin;
}

@media (min-width: 1024px) {
    ::-webkit-scrollbar {
        width: 12px;
        height: 12px;
    }

    ::-webkit-scrollbar-track {
        background: var(--surface-warm);
    }

    ::-webkit-scrollbar-thumb {
        background: var(--line-strong);
        border: 3px solid var(--surface-warm);
    }

    ::-webkit-scrollbar-thumb:hover {
        background: var(--control-line);
    }
}

html hr {
    border: 0;
    border-top: 1px solid var(--line);
    margin-block: 2rem;
}

/* --------------------------------------------------------------------------
   2. Accessibility primitives
   -------------------------------------------------------------------------- */

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

.skip-link {
    position: absolute;
    left: 1rem;
    top: -4rem;
    z-index: 100;
    padding: .625rem 1rem;
    border-radius: 0 0 var(--radius-sm) var(--radius-sm);
    background: var(--cta);
    color: var(--primary-900);
    font-weight: 700;
    font-size: .875rem;
    text-decoration: none;
    transition: top .15s ease-in-out;
}

.skip-link:focus {
    top: 0;
}

/* Two-tone focus ring. A single colour cannot clear 3:1 on both the white
   bands and the navy ones (--cta is 7.86 on --primary-900 but only 2.15 on
   white). Pairing an amber inner band with a near-black outer band means one
   of the two always has >=3:1 against whatever surface the control sits on,
   and the pair always has 7.86 against each other. */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible,
[tabindex]:focus-visible {
    outline: 2px solid var(--primary-950);
    outline-offset: 2px;
    box-shadow: 0 0 0 2px var(--cta);
    border-radius: var(--radius-sm);
}

/* On navy the bands swap roles so the bright one lands outside. */
.site-footer a:focus-visible,
.trust-bar a:focus-visible,
.trust-bar button:focus-visible,
.cta-banner a:focus-visible,
.hero-dark a:focus-visible,
.hero-dark button:focus-visible {
    outline-color: var(--cta);
    box-shadow: 0 0 0 2px var(--primary-950);
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: .001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .001ms !important;
    }
}

/* --------------------------------------------------------------------------
   3. Buttons
   -------------------------------------------------------------------------- */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    padding: .6875rem 1.125rem;
    min-height: 2.75rem;
    max-width: 100%;
    border: 1px solid transparent;
    border-radius: var(--radius);
    font-family: var(--font-body);
    font-size: .9375rem;
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -0.005em;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    white-space: normal;
    overflow-wrap: break-word;
    transition: background-color .18s var(--ease-std), color .18s var(--ease-std), box-shadow .18s var(--ease-std), transform .12s var(--ease-std), border-color .18s var(--ease-std);
}

/* Disabled and busy states are part of the component, not an afterthought. */
.btn[disabled],
.btn[aria-disabled="true"] {
    cursor: not-allowed;
    opacity: 1;
    background: var(--surface-tint);
    border-color: var(--line-strong);
    color: #566980;
    box-shadow: none;
    transform: none;
}

.btn[data-busy="true"] {
    cursor: progress;
    pointer-events: none;
}

/* Long CTA labels must wrap on 320–430px phones; from sm up there is always
   room for a single line, so keep the tighter nowrap presentation there. */
@media (min-width: 640px) {
    .btn {
        white-space: nowrap;
    }
}

.btn:active {
    transform: translateY(1px);
}

.btn-sm {
    padding: .5rem .75rem;
    min-height: 2.5rem;
    font-size: .875rem;
}

.btn-lg {
    padding: .75rem 1.125rem;
    min-height: 3rem;
    font-size: 1rem;
}

@media (min-width: 640px) {
    .btn-lg {
        padding: .875rem 1.5rem;
        min-height: 3.25rem;
        font-size: 1.0625rem;
    }
}

/* The CTA keeps its dark ink through every state. White on --cta-600 is
   3.19:1 and fails AA for a button label, so the hover darkens the plate and
   leaves the ink alone; --cta-edge then does the work a lighter bevel would,
   as a machined bottom rule. */
.btn-cta {
    background: var(--cta);
    color: var(--cta-ink);
    box-shadow: inset 0 -2px 0 var(--cta-edge), var(--shadow-sm);
}

.btn-cta:hover {
    background: var(--cta-600);
    color: var(--cta-ink);
    box-shadow: inset 0 -2px 0 var(--cta-edge), var(--shadow-md);
}

.btn-cta:active {
    background: var(--cta-700);
    color: var(--cta-ink);
    box-shadow: inset 0 2px 0 var(--cta-edge);
}

.btn-call {
    background: var(--primary);
    color: var(--on-dark);
    box-shadow: inset 0 -2px 0 var(--primary-950), var(--shadow-sm);
}

.btn-call:hover {
    background: var(--primary-600);
    color: var(--on-dark);
    box-shadow: inset 0 -2px 0 var(--primary-950), var(--shadow-md);
}

.btn-call:active {
    box-shadow: inset 0 2px 0 var(--primary-950);
}

.btn-secondary {
    background: var(--accent);
    color: var(--on-dark);
    box-shadow: inset 0 -2px 0 var(--primary-900);
}

.btn-secondary:hover {
    background: var(--accent-700);
    color: var(--on-dark);
}

/* Outline buttons carry a 1px --control-line edge, not --line: a button
   boundary is a non-text UI component and needs >=3:1 to be perceivable. */
.btn-outline {
    background: transparent;
    border-color: var(--control-line);
    color: var(--primary);
    box-shadow: inset 0 0 0 0 var(--primary);
}

.btn-outline:hover {
    background: var(--primary-50);
    border-color: var(--primary);
    color: var(--primary-800);
}

.btn-outline-light {
    background: rgba(255, 255, 255, .08);
    border-color: rgba(255, 255, 255, .62);
    color: var(--on-dark);
    backdrop-filter: blur(2px);
}

.btn-outline-light:hover {
    background: var(--on-dark);
    border-color: var(--on-dark);
    color: var(--primary-900);
}

/* Trailing arrows advance on hover — one small, consistent gesture rather
   than a lift on every element. */
.btn .btn-arrow {
    flex: none;
    transition: transform .22s var(--ease-out);
}

.btn:hover .btn-arrow {
    transform: translateX(3px);
}

/* --------------------------------------------------------------------------
   4. Trust bar + header navigation
   -------------------------------------------------------------------------- */

/* The dispatch strip. Darkest surface on the page so the header reads as a
   lit panel below it, and the items are divided by hairline rules instead of
   bullet glyphs. Only the measured values — ZIP, phone — take the mono face;
   the labels stay in the reading face so the strip is a status line and not a
   terminal costume. */
.trust-bar {
    background: var(--primary-950);
    color: var(--on-dark-muted);
    font-size: .75rem;
    line-height: 1.45;
    border-bottom: 1px solid rgba(255, 255, 255, .09);
}

@media (min-width: 640px) {
    .trust-bar {
        font-size: .8125rem;
    }
}

.trust-bar-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: .25rem 1rem;
    padding-block: .5rem;
    text-align: center;
}

@media (min-width: 1024px) {
    .trust-bar-inner {
        justify-content: space-between;
        text-align: left;
    }
}

.trust-bar-items {
    margin: 0;
    max-width: none;
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: .125rem 0;
}

.dispatch-live {
    display: inline-flex;
    align-items: center;
    gap: .4375rem;
    padding-right: .75rem;
    color: var(--on-dark);
    font-weight: 600;
    letter-spacing: -0.005em;
}

/* 6px core, 1px ring, one expanding pulse. The animation is purely additive:
   the dot is fully drawn at rest, so prefers-reduced-motion collapsing the
   duration leaves a correct static indicator rather than an invisible one. */
.dispatch-pulse {
    position: relative;
    flex: none;
    width: .375rem;
    height: .375rem;
    border-radius: 50%;
    background: var(--cta);
    box-shadow: 0 0 0 1px rgba(245, 158, 11, .45);
}

.dispatch-pulse::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 1px solid var(--cta);
    opacity: 0;
    animation: dispatch-ping 2.8s var(--ease-out) infinite;
}

@keyframes dispatch-ping {
    0% {
        transform: scale(1);
        opacity: .8;
    }

    70%,
    100% {
        transform: scale(3.4);
        opacity: 0;
    }
}

.trust-item {
    padding-inline: .75rem;
    border-left: 1px solid rgba(255, 255, 255, .16);
}

/* The strip must stay one line on every width. Allowed to wrap it cost 99px of
   a 812px phone screen — four centred rows that pushed the hero CTAs clean off
   the first screen — so items are dropped instead, widest-first. Nothing is
   lost: the radius, the ZIP and the 24/7 status are all repeated verbatim in
   the hero datum line immediately below, and the two things a phone user acts
   on (live status, phone number) are the two that always survive. */
@media (max-width: 1023.98px) {
    .trust-bar-inner {
        flex-wrap: nowrap;
        justify-content: space-between;
        gap: .75rem;
        padding-block: .4375rem;
        text-align: left;
    }

    .trust-bar-items {
        flex-wrap: nowrap;
        justify-content: flex-start;
        min-width: 0;
    }

    .trust-item-wide {
        display: none;
    }
}

@media (max-width: 767.98px) {
    .trust-item {
        display: none;
    }

    .dispatch-live {
        padding-right: 0;
    }
}

/* Below 480px the two survivors still did not fit side by side, and both
   wrapped internally — which broke the phone number across two lines in the
   middle of the digits. The descriptive tail goes; "Open 24/7" beside the
   live dot carries the same meaning in a third of the width, and the full
   phrase is restated in the hero datum line a few pixels below. */
@media (max-width: 479.98px) {
    .dispatch-live-tail {
        display: none;
    }

    .trust-bar-inner {
        gap: .5rem;
    }
}

.trust-bar-call {
    display: inline-flex;
    align-items: center;
    gap: .4375rem;
    color: var(--on-dark);
    font-weight: 700;
    text-decoration: none;
    border-bottom: 2px solid var(--cta);
    padding-bottom: 1px;
    transition: color .18s var(--ease-std), border-color .18s var(--ease-std);
}

/* Neither the status nor the number may break. */
.dispatch-live,
.trust-bar-call {
    white-space: nowrap;
}

.trust-bar-call:hover {
    color: var(--cta);
    border-bottom-color: var(--on-dark);
}

.trust-bar-call-icon {
    flex: none;
    width: .875rem;
    height: .875rem;
    color: var(--cta);
}

/* Native sticky/background so the header never depends on Tailwind's
   `sticky top-0 z-50 bg-white` utilities arriving from the CDN. */
[data-site-header] {
    position: sticky;
    top: 0;
    z-index: 50;
    background: var(--surface);
    border-bottom: 1px solid var(--line-strong);
    transition: box-shadow .24s var(--ease-std);
}

[data-site-header].is-scrolled {
    box-shadow: var(--shadow-md);
}

.site-header-inner {
    /* Three drawn layers, no extra elements and nothing the overflow guard can
       catch: vertical rules at the content-column edges (the blueprint datum
       lines the hero also uses), plus a short amber tick at the bottom-left
       that registers the column origin. A full-bleed amber rule was the
       obvious move and reads as a marketing banner; a measured tick reads
       like a drawing. */
    background-image:
        linear-gradient(to bottom, var(--line), var(--line)),
        linear-gradient(to bottom, var(--line), var(--line)),
        linear-gradient(to right, var(--cta), var(--cta));
    background-size: 1px 100%, 1px 100%, 4.5rem 3px;
    background-position: left top, right top, left bottom;
    background-repeat: no-repeat;
}

@media (max-width: 1023.98px) {
    .site-header-inner {
        background-image: none;
    }
}

/* The logo is a 3.78:1 horizontal lockup that already contains the logotype,
   so the lockup is height-driven: height is fixed per breakpoint, width is
   auto, and max-width caps it so a wide image can never crowd the nav. The
   adjacent brand name/tagline is sr-only in the markup. */
header .brand-lock {
    display: inline-flex;
    align-items: center;
    min-width: 0;
    flex-shrink: 0;
    margin-right: .5rem;
    text-decoration: none;
}

/* The [width][height] arms are load-bearing, not decoration. The zero-CLS rule
   `img[width][height] { height: auto }` in Section 1 scores (0,2,1) and was
   beating the old single-class `.brand-logo` (0,1,0), so height fell back to
   auto and the logo rendered at its max-width instead — 184px wide / ~49px
   tall at xl, which is what collided with the Services link. Matching the two
   attributes here scores (0,3,2) and wins outright, so no !important is
   needed and these values stay overridable further down the cascade. */
/* Mobile (< 640px): sized up so the logotype stays legible on a phone. The
   row has the headroom for it — at 320px a 36px-tall logo is 136px wide
   (height-driven, well inside the 160px cap), which leaves ~41px of slack
   against the Call + hamburger pair. */
header img.brand-logo[width][height],
header .brand-logo {
    display: block;
    width: auto;
    height: 2.25rem;
    max-width: min(10rem, 50vw);
    object-fit: contain;
    object-position: left center;
    flex-shrink: 0;
}

@media (min-width: 400px) {
    header img.brand-logo[width][height],
    header .brand-logo {
        height: 2.5rem;
        max-width: 11.5rem;
    }
}

/* Tablet and up is unchanged: these are the sizes the desktop row was
   balanced against. */
@media (min-width: 640px) {
    header img.brand-logo[width][height],
    header .brand-logo {
        height: 2.25rem;
        max-width: 10.75rem;
    }
}

/* Steps back down at lg: this is where the seven-item nav and both CTAs join
   the row, so the lockup gives width back rather than taking it. */
@media (min-width: 1024px) {
    header img.brand-logo[width][height],
    header .brand-logo {
        height: 2rem;
        max-width: 9.5rem;
    }
}

@media (min-width: 1280px) {
    header img.brand-logo[width][height],
    header .brand-logo {
        height: 2.375rem;
        max-width: 11.25rem;
    }
}

/* --------------------------------------------------------------------------
   Strict device separation: Mobile/Tablet (< 1024px) vs. Desktop (>= 1024px)

   The markup already carries Tailwind's `hidden lg:flex` / `lg:hidden`, but
   Tailwind arrives from a CDN <script> and app.css can be served from cache.
   These guards are the layer that does not depend on either: they are plain
   media queries in the site's own stylesheet, and !important so that neither
   a stale Tailwind build nor a component rule such as `.btn { display:
   inline-flex }` can resurrect the wrong set of controls.

   This is the rule that stops the desktop nav and the mobile Call/Hamburger
   pair from rendering at the same time and stretching the header.
   -------------------------------------------------------------------------- */

@media (max-width: 1023.98px) {
    .desktop-only-nav,
    .desktop-only-ctas {
        display: none !important;
    }

    .mobile-only-controls {
        display: flex !important;
        align-items: center;
        gap: .5rem;
        flex-shrink: 0;
    }
}

@media (min-width: 1024px) {
    .desktop-only-nav {
        display: flex !important;
        align-items: center;
        gap: .125rem;
        flex-shrink: 0;
    }

    .desktop-only-ctas {
        display: flex !important;
        align-items: center;
        gap: .5rem;
        flex-shrink: 0;
    }

    .mobile-only-controls,
    .mobile-drawer,
    .drawer-backdrop,
    .mobile-action-bar {
        display: none !important;
    }
}

@media (min-width: 1200px) {
    .desktop-only-nav {
        gap: .25rem;
    }
}

.header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    padding-top: .75rem;
    padding-bottom: .75rem;
}

/* Nav items are marked by a rule that grows from the baseline, not by a
   filled pill. One gesture, one axis, and it leaves the row's rhythm intact
   because nothing changes size on hover. */
.nav-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: .25rem;
    padding: .5rem .5rem;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: var(--primary);
    font-size: .8125rem;
    font-weight: 600;
    letter-spacing: -0.008em;
    text-decoration: none;
    cursor: pointer;
    white-space: nowrap;
}

.nav-link::after {
    content: "";
    position: absolute;
    left: .5rem;
    right: .5rem;
    bottom: .125rem;
    height: 2px;
    background: var(--cta);
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform .26s var(--ease-out);
}

.nav-link:hover::after,
.nav-link[aria-expanded="true"]::after,
.nav-link[aria-current="page"]::after {
    transform: scaleX(1);
}

/* The content column caps at 72rem, so usable row width stops growing past
   ~1200px. The upsize tier is therefore capped at 1200px and never widened
   again: at 1280px the brand tagline appears, and pairing that with a further
   nav upsize cost 66px measured — the combination that made 1280px a worse
   fit than 1024px. */
@media (min-width: 1200px) {
    .nav-link {
        padding: .5rem .625rem;
        font-size: .875rem;
    }
}

.nav-link:hover,
.nav-link[aria-expanded="true"] {
    background: transparent;
    color: var(--primary-950);
}

.nav-caret {
    width: .875rem;
    height: .875rem;
    flex-shrink: 0;
    color: var(--control-line);
    transition: transform .22s var(--ease-out), color .18s var(--ease-std);
}

.nav-link:hover .nav-caret,
.nav-link[aria-expanded="true"] .nav-caret {
    color: var(--cta-edge);
}

.nav-link[aria-expanded="true"] .nav-caret {
    transform: rotate(180deg);
}

/* The two header CTAs sit on the same row as seven nav links, so they run one
   step below the default .btn scale. This breakpoint is pointer-only by
   construction, so sub-44px targets are acceptable here. */
.desktop-only-ctas .btn {
    padding: .5rem .75rem;
    min-height: 2.375rem;
    font-size: .8125rem;
    white-space: nowrap;
}

@media (min-width: 1200px) {
    .desktop-only-ctas .btn {
        padding: .5625rem .875rem;
        min-height: 2.5rem;
        font-size: .875rem;
    }
}

/* Both panels go static so the containing block becomes the header's relative
   .max-w-content container. The panel width is then derived from the content
   column, never from the viewport, so a dynamic scrollbar cannot push it out
   (100vw includes the scrollbar; the container's padding box does not).
   Anchoring the Services panel to its own trigger is what broke before —
   measured: left:50% + translateX(-50%) landed at x = -47px between 1024px
   and 1200px; right:0 landed at x = -435px. */
.nav-dropdown,
.nav-dropdown-wide {
    position: static;
}

/* The 1.5rem inset matches the container's own px-4 gutter at this breakpoint
   (px-4 resolves to 1.5rem from 640px up), so the panel edges line up with the
   nav row above instead of sitting 0.5rem outside the text column. */
.mega-menu,
.area-menu {
    position: absolute;
    top: 100%;
    left: 1.5rem;
    right: 1.5rem;
    z-index: 60;
    padding: 0;
    border: 1px solid var(--line-strong);
    border-top: 3px solid var(--cta);
    border-radius: 0 0 var(--radius) var(--radius);
    background: var(--surface);
    box-shadow: var(--shadow-lg);
    max-height: calc(100vh - var(--header-height) - 2rem);
    overflow-y: auto;
    /* Opens by sliding 6px down and clearing a blur — one authored moment,
       from an already-correct resting state. */
    animation: mega-open .26s var(--ease-out) both;
}

@keyframes mega-open {
    from {
        opacity: 0;
        transform: translateY(-6px);
        filter: blur(3px);
    }

    to {
        opacity: 1;
        transform: none;
        filter: blur(0);
    }
}

.mega-menu {
    max-width: 60rem;
    margin: 0 auto;
}

.area-menu {
    max-width: 32rem;
    margin: 0 auto;
}

.mega-menu[hidden],
.area-menu[hidden] {
    display: none !important;
}

/* Columns are separated by real structural dividers that run the full height
   of the panel, so the four silos read as bays in a rack rather than as four
   floating lists. The gap is zero because the rule does the separating. */
.mega-grid {
    gap: 0;
    padding: 1.25rem 0;
}

.mega-col {
    padding-inline: 1.25rem;
}

@media (min-width: 1024px) {
    .mega-col + .mega-col {
        border-left: 1px solid var(--line);
    }
}

.mega-silo-title {
    display: block;
    padding-bottom: .5rem;
    margin-bottom: .5rem;
    border-bottom: 1px solid var(--line-strong);
    color: var(--primary);
    font-family: var(--font-display);
    font-size: .9375rem;
    font-weight: 800;
    letter-spacing: -0.015em;
    text-decoration: none;
}

.mega-silo-title:hover {
    color: var(--primary-950);
    border-bottom-color: var(--cta);
}

.mega-menu ul,
.area-menu ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.mega-list,
.area-list {
    gap: 0;
}

.area-list {
    padding: 1.25rem 1.25rem .25rem;
    column-gap: 1.5rem;
}

/* The link indents on hover and reveals its leading rule: the row moves
   toward the reader instead of lifting off the surface. */
.mega-link {
    position: relative;
    display: block;
    padding: .3125rem 0 .3125rem .75rem;
    color: var(--ink-muted);
    font-size: .875rem;
    line-height: 1.4;
    text-decoration: none;
    transition: color .16s var(--ease-std), padding-left .2s var(--ease-out);
}

.mega-link::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    width: .375rem;
    height: 1px;
    background: var(--control-line);
    transform: translateY(-50%) scaleX(0);
    transform-origin: left center;
    transition: transform .2s var(--ease-out), background-color .16s var(--ease-std);
}

.mega-link:hover {
    color: var(--primary-800);
    padding-left: 1rem;
}

.mega-link:hover::before {
    transform: translateY(-50%) scaleX(1);
    background: var(--cta-edge);
}

/* The conversion bar. Highest-contrast surface in the panel so the two exits
   — browse everything, or just call — are the last thing the eye lands on. */
.mega-footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: .5rem 1.25rem;
    margin-top: 0;
    padding: .875rem 1.25rem;
    border-top: 1px solid var(--line-strong);
    background: var(--primary-900);
    font-size: .875rem;
}

.mega-footer-link {
    display: inline-flex;
    align-items: center;
    gap: .375rem;
    color: var(--on-dark);
    font-weight: 600;
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, .35);
    padding-bottom: 1px;
}

.mega-footer-link:hover {
    color: var(--cta);
    border-bottom-color: var(--cta);
}

.mega-footer-link:hover .btn-arrow {
    transform: translateX(3px);
}

.mega-footer-call {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .4375rem .75rem;
    border-radius: var(--radius);
    background: var(--cta);
    color: var(--cta-ink);
    font-weight: 700;
    text-decoration: none;
    box-shadow: inset 0 -2px 0 var(--cta-edge);
}

.mega-footer-call:hover {
    background: var(--cta-600);
    color: var(--cta-ink);
}

.mega-footer-call-icon {
    flex: none;
    width: .875rem;
    height: .875rem;
}

/* --------------------------------------------------------------------------
   5. Mobile drawer
   -------------------------------------------------------------------------- */

.drawer-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    border: 1px solid var(--control-line);
    border-radius: var(--radius-sm);
    background: var(--surface);
    color: var(--primary);
    cursor: pointer;
    transition: background-color .16s var(--ease-std), border-color .16s var(--ease-std);
}

.drawer-toggle:hover,
.drawer-toggle[aria-expanded="true"] {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--on-dark);
}

/* --- Touch targets ---------------------------------------------------- */

/* Measured at 320px: the header's call button came out 40x42 and the menu
   toggle 44x44, so the two controls sitting side by side were neither the
   same size nor large enough. Both go to 48 square below the tablet break,
   which is the floor this project works to. */
@media (max-width: 1023.98px) {
    .drawer-toggle {
        width: 3rem;
        height: 3rem;
    }

    .site-header .btn-call.btn-sm {
        min-width: 3rem;
        min-height: 3rem;
    }

    /* The floor above was scoped to the header, so every other .btn-sm stayed
       at 40px on a phone — including the sidebar emergency call button on
       Contact and FAQ, which is the highest-intent target on either page. */
    .btn-sm {
        min-height: 2.75rem;
    }

    /* The logotype is the only route home on a phone. */
    .brand-lock {
        min-height: 2.75rem;
    }
}

/* The strip is 36px tall and the call link inside it was 21px, so half the
   band looked tappable and was not. Rather than pad the link on top of the
   container and grow the strip to 49px, the container's vertical padding is
   handed to its children: the strip keeps its height and the link now owns
   all of it. The 44px floor is waived here deliberately — the header
   immediately below carries a 48px call button to the same number, which is
   the documented equivalent-target exception. */
@media (max-width: 1023.98px) {
    .trust-bar-inner {
        padding-block: 0;
    }

    .trust-bar-items,
    .trust-bar-call {
        padding-block: .4375rem;
    }
}

/* Standalone block links — not words inside a sentence — so they carry their
   own target height rather than only their line box. */
.silo-link {
    padding-block: .5rem;
}

footer li>a {
    display: inline-block;
    padding-block: .1875rem;
}

.drawer-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    padding-bottom: .75rem;
    border-bottom: 1px solid var(--line-strong);
}

.drawer-head-label {
    font-family: var(--font-display);
    font-size: 1.0625rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--primary);
}

.drawer-nav {
    padding-block: .5rem;
}

.drawer-actions {
    display: grid;
    gap: .5rem;
    padding-top: .875rem;
    border-top: 1px solid var(--line-strong);
}

.mobile-drawer {
    position: fixed;
    inset: 0 0 0 auto;
    z-index: 80;
    width: min(22rem, 90vw);
    padding: 1rem;
    overflow-y: auto;
    overscroll-behavior: contain;
    background: var(--surface);
    box-shadow: var(--shadow-lg);
    -webkit-overflow-scrolling: touch;
}

.mobile-drawer[hidden] {
    display: none;
}

.mobile-drawer-inner {
    display: flex;
    min-height: 100%;
    flex-direction: column;
}

.mobile-drawer-inner nav {
    flex: 1 1 auto;
}

.drawer-group {
    border-bottom: 1px solid var(--line);
}

.drawer-group>summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: .75rem .25rem;
    color: var(--primary);
    font-size: .9375rem;
    font-weight: 700;
    cursor: pointer;
    list-style: none;
}

.drawer-group>summary::-webkit-details-marker {
    display: none;
}

.drawer-group>summary::after {
    content: "";
    width: .5rem;
    height: .5rem;
    margin-left: .75rem;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
    transition: transform .15s ease;
}

.drawer-group[open]>summary::after {
    transform: rotate(-135deg);
}

.drawer-group ul,
.drawer-flat {
    margin: 0;
    padding: 0 0 .625rem;
    list-style: none;
}

.drawer-group ul a,
.drawer-flat a {
    display: block;
    padding: .5rem .25rem .5rem 1rem;
    color: var(--ink-muted);
    font-size: .875rem;
    text-decoration: none;
}

.drawer-flat a {
    padding-left: .25rem;
    color: var(--primary);
    font-weight: 600;
}

.drawer-group ul a:hover,
.drawer-flat a:hover {
    color: var(--accent);
}

.drawer-flat {
    padding-top: .5rem;
}

.drawer-backdrop {
    position: fixed;
    inset: 0;
    z-index: 70;
    background: rgba(6, 31, 55, .55);
}

.drawer-backdrop[hidden] {
    display: none;
}

body.drawer-open {
    overflow: hidden;
}

/* --------------------------------------------------------------------------
   6. Breadcrumbs
   -------------------------------------------------------------------------- */

.breadcrumbs {
    background: var(--surface-alt);
    border-bottom: 1px solid var(--line);
    font-size: .8125rem;
}

.breadcrumbs ol {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .25rem .375rem;
    margin: 0;
    padding: .625rem 0;
    list-style: none;
}

.breadcrumbs li {
    display: inline-flex;
    align-items: center;
    gap: .375rem;
}

.breadcrumbs a {
    color: var(--ink-muted);
    text-decoration: none;
}

.breadcrumbs a:hover {
    color: var(--accent);
    text-decoration: underline;
}

.breadcrumbs [aria-current="page"] {
    color: var(--primary);
    font-weight: 600;
}

.breadcrumb-sep {
    width: .75rem;
    height: .75rem;
    color: #94A3B8;
}

/* --------------------------------------------------------------------------
   7. Section primitives
   -------------------------------------------------------------------------- */

.section-title {
    margin: 0;
    font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.125rem);
    font-weight: 800;
}

/* Measure is capped in ch, not rem. A rem cap is a fixed pixel width that does
   not know the type size it is holding, so this ran 83 characters a line at
   17px — past the point where the eye reliably finds the next line. */
.section-intro {
    margin: .75rem 0 0;
    max-width: var(--measure);
    color: var(--ink-muted);
    font-size: 1.0625rem;
    line-height: 1.6;
}

/* A run of body paragraphs under a section heading. The paragraphs carry no
   class of their own, so preflight's `p { margin: 0 }` — injected after this
   sheet, see the note on `html body` — left every one of them touching the
   next: on the four silo hubs that welded seven paragraphs into one 1,000px
   slab with no visible breaks. The rhythm is set on a container class rather
   than on bare `p + p` because a global rule would also prise apart the card,
   form, alert and ticket-head paragraphs that zero their margins on purpose. */
.prose-stack {
    margin-top: 1.25rem;
}

.prose-stack > p {
    margin: 0;
    max-width: var(--measure);
    font-size: 1.0625rem;
    line-height: 1.75;
}

.prose-stack > p + p {
    margin-top: 1.125rem;
}

/* The same preflight collision, second casualty: `a { color: inherit;
   text-decoration: inherit }` beats the base `a` rule at equal specificity,
   so every contextual link inside these paragraphs rendered as plain body
   text — same colour, no underline. The class selector (0,1,1) settles it
   without !important, exactly as .legal-prose a already does. These are the
   silo links the hubs exist to pass, so they have to look clickable. */
.prose-stack a,
.hub-diagnostic-lead a {
    color: var(--accent);
    font-weight: 600;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

.prose-stack a:hover,
.hub-diagnostic-lead a:hover {
    color: var(--primary);
    text-decoration-thickness: 2px;
}

/* Hub diagnostic band: standfirst rail + body. The diagnostic answer is the
   test the reader physically performs on the door; the paragraphs beside it
   are what each outcome costs. Splitting them keeps the test on screen while
   the body is read, and fills a 72rem band that a single measure-capped
   column left two thirds empty. */
.hub-diagnostic {
    display: grid;
    gap: 1.75rem;
    margin-top: 1.5rem;
}

.hub-diagnostic-lead {
    padding-top: .875rem;
    border-top: 2px solid var(--cta);
}

.hub-diagnostic-lead .section-intro {
    margin: 0;
    max-width: var(--measure);
    color: var(--primary);
    font-size: clamp(1.0625rem, .95rem + .45vw, 1.3125rem);
    font-weight: 500;
    line-height: 1.5;
}

/* Grid gap owns the space between the two cells, so the body must not also
   carry its standalone top margin or it would start lower than the rail. */
.hub-diagnostic > .prose-stack {
    margin-top: 0;
}

@media (min-width: 1024px) {
    /* The body column is pinned at the measure and the rail takes whatever is
       left, so the pair always spans the band instead of leaving a dead
       gutter. Sticky because the rail is shorter than the body it explains. */
    .hub-diagnostic {
        grid-template-columns: minmax(0, 1fr) minmax(0, 34rem);
        align-items: start;
        gap: 3.5rem;
        margin-top: 2rem;
    }

    .hub-diagnostic-lead {
        position: sticky;
        top: calc(var(--header-height) + 1.75rem);
    }
}

/* A section datum line — never a kicker. It survives on exactly four screens,
   and on each one it carries a countable fact the heading does not: "Specialty
   2 of 4", "14 questions across 5 services", "7 communities dispatched from
   15217". Every other instance was a small-caps restatement of the H2 beneath
   it and was deleted from the template rather than restyled, because no
   typography rescues a line that says nothing. Set in the measuring face on
   the same terms as the hero datum line, with a drawn callout tick. */
.eyebrow {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: .125rem .5rem;
    margin: 0 0 .625rem;
    color: var(--ink-muted);
    font-family: var(--font-mono);
    font-size: .75rem;
    font-weight: 500;
    font-variant-numeric: tabular-nums;
    letter-spacing: 0;
    line-height: 1.5;
    text-transform: none;
}

.eyebrow::before {
    content: "";
    flex: none;
    align-self: center;
    width: .875rem;
    height: 2px;
    background: var(--cta);
}

/* On ink the same line keeps its ratio against primary-900. */
.hero .eyebrow,
.band-dark .eyebrow {
    color: var(--on-dark-muted);
}

.card {
    padding: 1.25rem;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: var(--shadow-sm);
}

/* --------------------------------------------------------------------------
   8. FAQ accordion
   -------------------------------------------------------------------------- */

.faq-section {
    padding: 3rem 0;
    background: var(--surface-alt);
}

/* A knowledge base, not a stack of pill-shaped accordions. Entries are
   referenced (Q01, Q02 …) in the measuring face and ruled off from each
   other; the open entry is marked by an amber datum rule along its top edge
   and by its question going to full ink, so the state is carried by two
   signals and not by colour alone.

   The <details>/<summary> pair is load-bearing and stays: every answer is in
   the DOM at first paint, which is what keeps it crawlable and what keeps the
   FAQPage JSON-LD emitted from the same array truthful. */
.faq-list {
    counter-reset: faq;
    margin-top: 1.5rem;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius);
    background: var(--surface);
    overflow: hidden;
}

.faq-item {
    counter-increment: faq;
}

.faq-item+.faq-item {
    border-top: 1px solid var(--line);
}

.faq-item>summary {
    display: flex;
    align-items: flex-start;
    gap: .875rem;
    padding: 1rem 1.125rem;
    cursor: pointer;
    list-style: none;
    transition: background-color .16s var(--ease-std);
}

.faq-item>summary::-webkit-details-marker {
    display: none;
}

/* Entry reference. Pseudo-element, so it stays out of the accessibility tree
   and the summary still announces only the question. */
.faq-item>summary::before {
    content: "Q" counter(faq, decimal-leading-zero);
    flex: none;
    margin-top: .1875rem;
    color: var(--ink-muted);
    font-family: var(--font-mono);
    font-size: .6875rem;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    letter-spacing: .03em;
    line-height: 1.4;
}

.faq-item>summary:hover {
    background: var(--primary-50);
}

.faq-question {
    flex: 1 1 auto;
    min-width: 0;
    color: var(--primary);
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.4;
    text-wrap: pretty;
}

.faq-item[open]>summary {
    background-image: linear-gradient(to right, var(--cta), var(--cta));
    background-size: 100% 2px;
    background-position: left top;
    background-repeat: no-repeat;
}

.faq-item[open] .faq-question {
    color: var(--primary-900);
}

.faq-icon {
    width: 1.125rem;
    height: 1.125rem;
    flex: 0 0 auto;
    margin-top: .1875rem;
    color: var(--cta-edge);
    transition: transform .2s var(--ease-out);
}

.faq-item[open] .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    padding: 0 1.125rem 1.25rem 3.25rem;
    max-width: 72ch;
    color: var(--ink-muted);
    font-size: .9375rem;
    line-height: 1.65;
}

@media (max-width: 479.98px) {
    .faq-answer {
        padding-left: 1.125rem;
    }
}

.faq-answer p {
    margin: 0;
    max-width: var(--measure);
}

.faq-footer {
    margin: 1.25rem 0 0;
    color: var(--ink-muted);
    font-size: .9375rem;
}

/* --------------------------------------------------------------------------
   9. CTA banner
   -------------------------------------------------------------------------- */

.cta-banner {
    padding: 2.75rem 0;
}

/* Same drawing sheet as the hero, not a 135deg colour sweep. The three-stop
   navy-to-blue diagonal was the last generic-SaaS gradient left on the site and
   it was the odd one out in a language otherwise built from flat ink, drawn
   rules and a blueprint grid. Flat primary-900 also means every label here sits
   on one known ground instead of drifting lighter toward the action panel. */
.cta-banner-dark {
    position: relative;
    isolation: isolate;
    /* The footer is the same primary-900, so without these hairlines the
       conversion band runs straight into it and reads as footer chrome. The
       old gradient ended on a lighter stop and got this edge for free. */
    border-top: 1px solid rgba(255, 255, 255, .14);
    border-bottom: 1px solid rgba(255, 255, 255, .14);
    background-color: var(--primary-900);
    color: #E6EEF6;
}

.cta-banner-dark::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background-image:
        linear-gradient(to right, rgba(255, 255, 255, .05) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255, 255, 255, .05) 1px, transparent 1px);
    background-size: 1.75rem 1.75rem;
    -webkit-mask-image: linear-gradient(100deg, #000 0%, rgba(0, 0, 0, .4) 38%, transparent 72%);
    mask-image: linear-gradient(100deg, #000 0%, rgba(0, 0, 0, .4) 38%, transparent 72%);
    pointer-events: none;
}

.cta-banner-dark .cta-banner-heading {
    color: #fff;
}

.cta-banner-light {
    background: var(--accent-50);
    color: var(--ink-muted);
}

.cta-banner-amber {
    background: var(--cta-50);
    color: #4B3306;
}

.cta-banner-amber .cta-banner-heading,
.cta-banner-light .cta-banner-heading {
    color: var(--primary);
}

.cta-banner-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 1.75rem;
    align-items: center;
}

@media (min-width: 1024px) {
    .cta-banner-inner {
        grid-template-columns: minmax(0, 1.65fr) minmax(16rem, 1fr);
        gap: 2.5rem;
    }
}

.cta-banner-copy {
    min-width: 0;
}

/* Three standing facts, not a decorative kicker — the radius, the hours and
   the price of a diagnosis are the terms of the offer the heading below is
   about to make. So it is set as a datum line, matching .eyebrow: mono,
   sentence case, tabular figures for the radius and the hours, and an amber
   tick marking it as measured rather than written. */
.cta-eyebrow {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: .125rem .5rem;
    margin: 0 0 .625rem;
    color: var(--on-dark-muted);
    font-family: var(--font-mono);
    font-size: .75rem;
    font-weight: 500;
    font-variant-numeric: tabular-nums;
    letter-spacing: 0;
    line-height: 1.5;
    text-transform: none;
}

.cta-eyebrow::before {
    content: "";
    flex: none;
    align-self: center;
    width: .875rem;
    height: 0;
    border-top: 2px solid var(--cta);
}

.cta-banner-light .cta-eyebrow,
.cta-banner-amber .cta-eyebrow {
    color: var(--ink-muted);
}

.cta-banner-amber .cta-eyebrow::before {
    background: var(--primary);
}

.cta-banner-heading {
    margin: 0;
    font-size: clamp(1.375rem, 1.1rem + 1.3vw, 2rem);
    font-weight: 800;
}

.cta-banner-body {
    margin: .75rem 0 0;
    max-width: var(--measure);
    font-size: 1rem;
    line-height: 1.65;
}

.cta-badges {
    display: flex;
    flex-wrap: wrap;
    gap: .375rem 1.25rem;
    margin: 1.125rem 0 0;
    padding: 0;
    list-style: none;
    font-size: .875rem;
    font-weight: 600;
}

.cta-badges li {
    display: inline-flex;
    align-items: center;
    gap: .375rem;
}

.cta-badges svg {
    color: var(--cta);
}

.cta-banner-light .cta-badges svg,
.cta-banner-amber .cta-badges svg {
    color: var(--success);
}

.cta-banner-actions {
    display: grid;
    gap: .625rem;
}

.cta-promise {
    margin: 0;
    font-size: .8125rem;
    line-height: 1.5;
    opacity: .85;
    text-align: center;
}

/* --------------------------------------------------------------------------
   10. Lead form
   -------------------------------------------------------------------------- */

/* The quote panel is a work order, not a marketing card. A dark header band
   states the desk and its hours; below it the request is filled in two ruled
   passes — who to call back, then what is broken — so the panel reads as a
   form that gets actioned rather than a box that collects an address.

   Every control boundary here is restated deliberately. The Tailwind forms
   plugin paints inputs #CBD5E1, which is 1.49:1 on white: a control edge owes
   3:1, and at 1.49 the fields simply were not visible as fields. --control-line
   is 3.38:1 against the worst surface they sit on. */
.lead-form {
    width: 100%;
    max-width: 100%;
    padding: 0;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: var(--shadow-md);
}

.lead-form-head {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: .375rem 1rem;
    padding: .875rem 1.25rem;
    background: var(--primary-900);
    border-bottom: 3px solid var(--cta);
}

.lead-form-body {
    padding: 1.25rem;
}

@media (min-width: 640px) {
    .lead-form-head {
        padding-inline: 1.5rem;
    }

    .lead-form-body {
        padding: 1.5rem;
    }
}

.lead-form-sidebar {
    position: sticky;
    top: calc(var(--header-height) + 1rem);
}

.lead-form-title {
    margin: 0;
    color: #fff;
    font-family: var(--font-display);
    font-size: 1.1875rem;
    font-weight: 800;
    letter-spacing: -.02em;
    line-height: 1.2;
}

/* Status datum, in the measuring face, on the opposite edge of the band from
   the title — a toolbar reading, not a kicker above a heading. */
.lead-form-status {
    display: inline-flex;
    align-items: center;
    gap: .4375rem;
    margin: 0;
    color: var(--on-dark-muted);
    font-family: var(--font-mono);
    /* 12px floor. "Open 24/7" is the one line in the ticket head that answers
       "will anyone actually pick up", so it does not get set smaller than
       anything else a visitor is expected to read. */
    font-size: .75rem;
    font-weight: 500;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.lead-form-status-dot {
    flex: none;
    width: .375rem;
    height: .375rem;
    border-radius: 50%;
    background: var(--cta);
    box-shadow: 0 0 0 1px rgba(245, 158, 11, .45);
}

.lead-form-intro {
    margin: 0 0 1.125rem;
    color: var(--ink-muted);
    font-size: .875rem;
    line-height: 1.55;
}

.field-set {
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
}

.field-set+.field-set {
    margin-top: 1.125rem;
    padding-top: 1.125rem;
    border-top: 1px solid var(--line);
}

/* The legend names the pass, so it is set as a label on the rule rather than
   a heading: measuring face, with the same callout tick the section datum
   lines use, so the two read as one system. */
.field-legend {
    display: flex;
    align-items: center;
    gap: .5rem;
    float: left;      /* legend + grid child: float keeps it out of the grid */
    width: 100%;
    margin: 0 0 .625rem;
    padding: 0;
    color: var(--primary);
    font-family: var(--font-mono);
    /* 12px floor. These are the two labels that tell someone what the next
       four fields are for; they were the smallest type in the form. */
    font-size: .75rem;
    font-weight: 600;
    letter-spacing: .01em;
}

.field-legend::before {
    content: "";
    flex: none;
    width: .875rem;
    height: 2px;
    background: var(--cta);
}

.lead-form-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: .875rem;
    clear: both;
}

@media (min-width: 640px) {
    .lead-form-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .field-full {
        grid-column: 1 / -1;
    }
}

.field {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: .3125rem;
    min-width: 0;
}

.field label {
    color: var(--primary);
    font-size: .8125rem;
    font-weight: 700;
}

.req {
    color: var(--danger);
}

/* min-width: 0 and text-overflow keep a long <option> string from setting the
   select's intrinsic width and stretching the whole form past the viewport.
   min-height is 2.75rem = 44px, the smallest comfortable touch target, and
   the inputs grow to 48px on phones below. */
.lead-form input,
.lead-form select,
.lead-form textarea {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    min-height: 2.75rem;
    padding: .625rem .75rem;
    border: 1px solid var(--control-line);
    border-radius: var(--radius-sm);
    background: var(--surface);
    color: var(--ink);
    font: inherit;
    font-size: .9375rem;
    line-height: 1.4;
    text-overflow: ellipsis;
    transition: border-color .16s var(--ease-std), box-shadow .16s var(--ease-std);
}

/* Measured values get the measuring face and tabular figures, so a phone
   number and a ZIP sit on a fixed grid while being typed. */
.lead-form input[type="tel"],
.lead-form input[name="zip"] {
    font-family: var(--font-mono);
    font-variant-numeric: tabular-nums;
    letter-spacing: .01em;
}

/* 16px prevents iOS Safari zooming the viewport on focus, which on a phone
   leaves the user scrolled sideways inside a form they cannot see the edge of. */
@media (max-width: 767.98px) {

    .lead-form input,
    .lead-form select,
    .lead-form textarea {
        min-height: 3rem;
        font-size: 1rem;
    }
}

.lead-form textarea {
    resize: vertical;
    min-height: 6rem;
}

.lead-form input:hover,
.lead-form select:hover,
.lead-form textarea:hover {
    border-color: var(--primary-500);
}

.lead-form input:focus,
.lead-form select:focus,
.lead-form textarea:focus {
    border-color: var(--primary);
    box-shadow: inset 0 0 0 1px var(--primary), 0 0 0 3px rgba(18, 85, 143, .22);
    outline: none;
}

.lead-form input:user-invalid,
.lead-form textarea:user-invalid {
    border-color: var(--danger);
    box-shadow: inset 0 0 0 1px var(--danger);
}

.lead-form-submit {
    margin-top: 1.25rem;
    padding-top: 1.125rem;
    border-top: 1px solid var(--line);
}

.lead-form-note {
    margin: .625rem 0 0;
    color: var(--ink-muted);
    font-size: .75rem;
    line-height: 1.5;
    text-align: center;
}

/* Honeypot: present in the DOM, invisible and unreachable for humans. */
.honeypot {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
    opacity: 0;
}

.lead-alert {
    margin-bottom: 1rem;
    padding: .875rem 1rem;
    border-left: 4px solid currentColor;
    border-radius: var(--radius-sm);
    font-size: .875rem;
    line-height: 1.5;
}

.lead-alert p {
    margin: 0;
}

.lead-alert p+p {
    margin-top: .25rem;
}

.lead-alert-success {
    background: #F0FDF4;
    color: var(--success);
}

.lead-alert-error {
    background: #FEF2F2;
    color: var(--danger);
}

/* --------------------------------------------------------------------------
   11. Footer
   -------------------------------------------------------------------------- */

/* The logotype is dark navy on transparent, so it would be near-invisible
   directly on the #061F37 footer. The light plate restores full contrast
   without needing a second, inverted copy of the asset. */
.footer-brand-lock {
    display: inline-flex;
    align-items: center;
    max-width: 100%;
    padding: .5rem .875rem;
    border-radius: var(--radius);
    background: rgba(255, 255, 255, .96);
    box-shadow: var(--shadow-sm);
    text-decoration: none;
}

/* Same (0,3,2) vs (0,2,1) specificity lock as the header logo. */
footer img.footer-brand-logo[width][height],
.footer-brand-logo {
    display: block;
    width: auto;
    height: 2.375rem;
    max-width: min(11.5rem, 100%);
    object-fit: contain;
}

/* Column headings are the display face at reading case, each one opened by a
   short rule. Four stacked blocks of letter-spaced uppercase was the footer
   reading as four identical grey slabs; a drawn rule separates the columns
   far more clearly than tracking ever did, and the names stay legible at
   13px instead of being stretched into a texture. */
.footer-heading {
    margin: 0;
    padding-top: .625rem;
    border-top: 2px solid var(--cta);
    color: #fff;
    font-family: var(--font-display);
    font-size: .9375rem;
    font-weight: 700;
    letter-spacing: -.01em;
    line-height: 1.3;
}

.footer-link {
    color: #CBD5E1;
    text-decoration: none;
}

.footer-link:hover {
    color: var(--cta);
    text-decoration: underline;
}

/* Keyboard parity: hovering reveals these links, so tabbing must too. */
.footer-link:focus-visible,
.footer-heading a:focus-visible {
    outline: 2px solid var(--cta);
    outline-offset: 2px;
    border-radius: 1px;
    color: #fff;
}

footer ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.footer-rating {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .375rem;
    margin: 1rem 0 0;
    color: #CBD5E1;
    font-size: .875rem;
}

.footer-rating .star-icon {
    color: var(--cta);
}

.footer-rating-score {
    color: #fff;
    font-family: var(--font-mono);
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

/* Eight profile names, so they are separated by drawn rules rather than by
   spacing alone — at 12px a gap-separated row reads as one long string. */
.footer-social {
    display: flex;
    flex-wrap: wrap;
    gap: .25rem .625rem;
    margin-top: 1rem;
    font-size: .75rem;
}

.footer-social li+li {
    padding-left: .625rem;
    border-left: 1px solid rgba(255, 255, 255, .22);
}

/* Credentials are stamped, not bubbled — same square tag as .pill, inverted
   for the dark ground. */
.footer-badge {
    display: inline-flex;
    align-items: center;
    padding: .3125rem .5625rem;
    border: 1px solid rgba(255, 255, 255, .26);
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, .07);
    color: #E2E8F0;
    /* 12px, not 11px. These badges were the only sub-12px text rendered
       anywhere on the site, and they carry the license, insurance and warranty
       claims — the three things a homeowner checks before calling a stranger to
       their house. Smallest type on the page is the wrong place for them. */
    font-size: .75rem;
    font-weight: 600;
    letter-spacing: 0;
    line-height: 1.3;
}

/* --------------------------------------------------------------------------
   12. Sticky mobile conversion bar
   -------------------------------------------------------------------------- */

/* The dock floats over the page, so it is built as glass rather than as an
   opaque slab bolted to the bottom: the content keeps scrolling visibly
   underneath, which tells you the page continues past it. Two details make
   that safe. The blur sits on the dock's own ground only — both buttons are
   fully opaque, so no text contrast depends on what happens to be behind
   them. And the @supports block below swaps in an opaque ground wherever
   backdrop-filter is unavailable, because translucency without blur is just
   a contrast bug. The -webkit- prefix is load-bearing here and not legacy
   cargo: this component only ever renders on phones, and iOS Safari still
   needs it. */
.mobile-action-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 65;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: .5rem;
    padding: .5rem .625rem calc(.5rem + env(safe-area-inset-bottom));
    border-top: 1px solid var(--line-strong);
    background: rgba(255, 255, 255, .72);
    -webkit-backdrop-filter: saturate(180%) blur(16px);
    backdrop-filter: saturate(180%) blur(16px);
    box-shadow: 0 -8px 24px rgba(7, 30, 52, .16);
}

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
    .mobile-action-bar {
        background: var(--surface);
    }
}

/* Same failure mode as the header controls: the rule above sets display:grid
   unconditionally and the bar's own visibility came only from Tailwind's
   `md:hidden`. If Tailwind has not executed yet, or app.css is served stale,
   the sticky conversion bar appears on desktop. The bar is a <=767px feature
   (body only reserves --mobile-bar-height below 768px), so it is switched off
   here in the site's own stylesheet rather than relying on the CDN. */
@media (min-width: 768px) {
    .mobile-action-bar {
        display: none !important;
    }
}

/* 48px minimum, and opaque so the glass behind them never touches contrast. */
.mobile-action-call,
.mobile-action-quote {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .375rem;
    min-height: 3rem;
    padding: .625rem .5rem;
    border-radius: var(--radius);
    font-family: var(--font-display);
    font-size: .875rem;
    font-weight: 700;
    letter-spacing: -.01em;
    line-height: 1.15;
    text-align: center;
    text-decoration: none;
}

.mobile-action-call:focus-visible,
.mobile-action-quote:focus-visible {
    outline: 3px solid var(--primary-900);
    outline-offset: 2px;
}

.mobile-action-call {
    background: var(--primary-900);
    color: #fff;
}

/* A phone number is a measured value and it is never broken. */
.mobile-action-number {
    font-family: var(--font-mono);
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.mobile-action-quote {
    background: var(--cta);
    color: var(--cta-ink);
}

.mobile-action-quote:focus-visible {
    outline-color: var(--primary);
}

/* --------------------------------------------------------------------------
   13. Print
   -------------------------------------------------------------------------- */

@media print {
    .skip-link,
    .trust-bar,
    [data-site-header],
    .mobile-drawer,
    .drawer-backdrop,
    .mobile-action-bar,
    .breadcrumbs,
    .cta-banner,
    .lead-form,
    form {
        display: none !important;
    }

    body {
        padding: 0;
        color: #000;
        background: #fff;
        font-size: 12pt;
    }

    footer {
        background: #fff !important;
        color: #000 !important;
        border-top: 1px solid #000;
    }

    /* `footer { color: #000 }` only reaches descendants that inherit. The NAP
       block is built from Tailwind utilities — text-white on the business name
       and the Hours/Location/Email/Phone labels, text-slate-300/400 on the
       address and the legal line — and each of those is an own declaration, so
       it beat the inherited ink and printed #fff or #CBD5E1 on white paper.
       The name and address of the company were literally blank on the printout.
       .footer-badge (#E2E8F0) and .footer-rating-score (#fff) had the same
       problem. Anchors were already covered; everything else needs saying. */
    footer,
    footer *,
    .footer-link,
    .footer-heading {
        color: #000 !important;
    }

    /* The badges are a white hairline on a white-tint fill: both discarded. */
    .footer-badge {
        border-color: #000 !important;
        background: none !important;
    }

    /* Browsers drop backgrounds by default when printing, so anything that
       relies on white-on-navy comes out white-on-white — invisible. Each of
       these is re-stated in ink: the hero headline, the table's header row
       and the step plates were all literally blank on paper before. */
    .hero,
    .hero::before,
    .lead-form-head,
    .table-compare thead th,
    .step-list li::before,
    .cta-eyebrow {
        background: none !important;
        color: #000 !important;
    }

    /* The descendant selector is doing real work: the lede's opening
       "Repair First. Replace Last." is a <strong> set in #fff, so colouring
       only the paragraph left a blank gap at the top of the one sentence
       the page most wants read. */
    .hero-title,
    .hero-sub,
    .hero-sub *,
    .hero-note,
    .hero-eyebrow,
    .hero-eyebrow *,
    .trust-row,
    .trust-row * {
        color: #000 !important;
    }

    /* Buttons are white-on-navy and white-on-amber. On paper the fill is
       gone, so the label would be white on white; the outline keeps the
       phone number and the quote link legible and still button-shaped. */
    .btn {
        border: 1px solid #000 !important;
        background: none !important;
        color: #000 !important;
        box-shadow: none !important;
    }

    .table-compare thead th {
        border-bottom: 2px solid #000;
    }

    .step-list li::before {
        border: 1px solid #000;
    }

    .step-list li:not(:last-child)::after {
        border-left-color: #000;
    }

    .step-list li,
    .faq-item>summary,
    .faq-answer {
        page-break-inside: avoid;
    }

    details:not([open])>*:not(summary) {
        display: block;
    }

    a[href^="http"]::after {
        content: " (" attr(href) ")";
        font-size: 10pt;
    }
}

/* --------------------------------------------------------------------------
   14. Page templates: heroes, bands, cards, tables, local blocks
   -------------------------------------------------------------------------- */

/* The hero is a drawing sheet, not a gradient banner.
   Flat primary-900 ink carries a two-weight blueprint grid (1.75rem minor,
   7rem major) that is masked away toward the baseline so the body copy and
   the quote panel sit on flat ink and keep their measured contrast. The old
   blue radial bloom was the single loudest generic-SaaS tell on the site. */
.hero {
    position: relative;
    isolation: isolate;
    padding: 3.25rem 0 3rem;
    background-color: var(--primary-900);
    color: var(--on-dark-muted);     /* 10.34:1 on primary-900 */
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background-image:
        linear-gradient(to right, rgba(255, 255, 255, .055) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255, 255, 255, .055) 1px, transparent 1px),
        linear-gradient(to right, rgba(255, 255, 255, .028) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255, 255, 255, .028) 1px, transparent 1px);
    background-size: 7rem 7rem, 7rem 7rem, 1.75rem 1.75rem, 1.75rem 1.75rem;
    background-position: 0 0;
    -webkit-mask-image: linear-gradient(170deg, #000 0%, rgba(0, 0, 0, .55) 42%, transparent 88%);
    mask-image: linear-gradient(170deg, #000 0%, rgba(0, 0, 0, .55) 42%, transparent 88%);
    pointer-events: none;
}

.hero-compact {
    padding: 2.5rem 0 2.25rem;
}

/* Metadata datum line, not a marketing kicker: every hero's first line is
   real information (ZIP, county, silo, service radius), so it is set as
   sheet metadata — mono, sentence case, hairline-divided — rather than the
   uppercase amber micro-eyebrow it used to be. */
.hero-eyebrow {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .25rem .625rem;
    margin: 0 0 1rem;
    padding-bottom: .625rem;
    border-bottom: 1px solid rgba(255, 255, 255, .14);
    max-width: 46rem;
    color: var(--on-dark-muted);
    font-family: var(--font-mono);
    font-size: .75rem;
    font-weight: 500;
    font-variant-numeric: tabular-nums;
    letter-spacing: 0;
    line-height: 1.4;
    text-transform: none;
}

/* The authored &bull; separators become drawn rules — a divider, never a
   glyph standing in for one.
   The height is in px because it cannot be in em: font-size is 0 here (that is
   what suppresses the bullet glyph), so .85em resolved to .85 × 0 and every
   divider in the eyebrow rendered at zero height. The row had no separators at
   all, on every page, and the measurement is the only way that shows. */
.hero-eyebrow span[aria-hidden] {
    display: inline-block;
    width: 1px;
    height: 11px;
    background: rgba(255, 255, 255, .3);
    font-size: 0;
    line-height: 0;
    opacity: 1;
    vertical-align: middle;
}

/* Named for the hero, but blog-post reuses it inside the .eyebrow on a white
   band, where the unconditional #fff made it white on white — 1:1, and that
   link is the only route from a guide back up to its silo. The base is the
   light-ground ink; the navy heroes override it. */
.hero-eyebrow-link {
    color: var(--primary);
    text-decoration: underline;
    text-decoration-color: var(--cta);
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

.hero-eyebrow-link:hover {
    color: var(--cta-edge);
}

.hero-eyebrow .hero-eyebrow-link {
    color: #fff;
}

.hero-eyebrow .hero-eyebrow-link:hover {
    color: var(--cta);
}

.hero-title {
    margin: 0;
    max-width: 20ch;
    color: #fff;
    font-family: var(--font-display);
    font-size: clamp(2rem, 1.3rem + 3.05vw, 3.5rem);
    font-weight: 800;
    line-height: 1.04;
    letter-spacing: -.032em;
    text-wrap: balance;
}

.hero-sub {
    margin: 1.125rem 0 0;
    max-width: 58ch;
    font-size: 1.0625rem;
    line-height: 1.65;
}

/* The lede's in-prose links had no class, so the global `a { color: --accent }`
   put #12558F on primary-900 — 2.19:1. White is 16.88:1, amber hover 7.86:1.
   Scoped to .hero-sub, not .hero: `.hero a` would be (0,1,1) and would outrank
   .btn-cta/.btn-call in .hero-actions and repaint the CTAs.

   No underline, by request. The weight is not decoration — it is the thing
   that makes these links a link. Against the surrounding --on-dark-muted
   lede, white is only 1.63:1, well under the 3:1 that axe's
   `link-in-text-block` wants, and no colour can fix that: clearing 4.5:1 on
   the navy needs luminance >= 0.230 while clearing 3:1 against #B8CDE2 needs
   <= 0.164, so the window is empty. axe's second path, elementIsDistinct,
   compares text-decoration-line/-style, font-weight, font-size and
   font-style against the parent block — the lede inherits 400, so 600 is a
   real difference and satisfies it. Public Sans ships 600, so this is a
   loaded weight, not a synthesised one. Do not drop this to 400 or set it
   back to `inherit` without restoring an underline in the same edit. */
.hero-sub a {
    color: var(--on-dark);
    font-weight: 600;
    text-decoration: none;
}

.hero-sub a:hover {
    color: var(--cta);
}

/* Phone first screen, budgeted rather than guessed. 812px tall, minus the
   dispatch strip, the header and the sticky action dock, leaves ~600px for
   the hero to seat the H1, the rating and both CTAs. The lede is the only
   elastic part — it is the one element here that is read after the decision,
   not before it — so it tightens by ~50px and nothing else moves. */
@media (max-width: 639.98px) {
    .hero {
        padding: 2rem 0 2.5rem;
    }

    .hero-eyebrow {
        margin-bottom: .875rem;
        padding-bottom: .5rem;
    }

    .hero-sub {
        margin-top: .875rem;
        font-size: 1rem;
        line-height: 1.55;
    }

    .hero-actions {
        margin-top: 1.25rem;
    }
}

/* The same budget re-run for a 320x720 screen, where the figures stop
   working: the lede alone was 298px — twelve lines standing between the H1
   and the only two buttons on the page — and the first CTA landed at 687
   against a 651px fold. Nothing is hidden or truncated to fix it; the type
   steps down one notch and the leading tightens, which returns ~75px and
   puts both CTAs back on the first screen with the full lede still read-
   able above the scroll. 15px body copy is deliberate and safe: the 16px
   floor that stops iOS zooming applies to form controls, and every input on
   this site is held at 16px by the .lead-form rules. */
@media (max-width: 374.98px) {
    .hero {
        padding: 1.25rem 0 2rem;
    }

    .hero-title {
        font-size: 1.75rem;
    }

    .hero-sub {
        margin-top: .75rem;
        font-size: .9375rem;
        line-height: 1.5;
    }

    .hero-eyebrow {
        margin-bottom: .75rem;
        font-size: .6875rem;
    }

    .hero-actions {
        margin-top: 1rem;
    }
}

.hero-sub strong {
    color: #fff;
    font-weight: 700;
}

/* Full-width stacked CTAs below 480px; side-by-side once there is room for
   two buttons without either one wrapping. */
.hero-actions {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: .625rem;
    margin-top: 1.5rem;
}

@media (min-width: 480px) {
    .hero-actions {
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
    }
}

.hero-split {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 2rem;
    align-items: start;
}

@media (min-width: 1024px) {
    .hero-split {
        grid-template-columns: minmax(0, 1.15fr) minmax(21rem, 1fr);
        gap: 2.5rem;
    }
}

/* 42rem on 13px type would run past 110 characters whenever the note is long.
   It is short on today's copy, so nothing renders wrong yet — the cap is in ch
   so it cannot start rendering wrong when someone lengthens the sentence. */
.hero-note {
    margin: 1.25rem 0 0;
    max-width: var(--measure);
    font-size: .8125rem;
    line-height: 1.5;
    opacity: .8;
}

.trust-row {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    margin: 1.5rem 0 0;
    padding: 0;
    list-style: none;
}

/* Credential tags, not pills. A 999px radius on a four-up row of claims is
   the most-copied badge in the category; these are square-cut, hairline-
   bounded cells with a short amber datum tick on the leading edge, so they
   read as stamped plate markings and match the header's column origin. */
.chip,
.chip-light,
.chip-strong {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: .375rem;
    max-width: 100%;
    padding: .375rem .625rem .375rem .75rem;
    border-radius: var(--radius-sm);
    font-size: .75rem;
    font-weight: 600;
    line-height: 1.3;
    font-variant-numeric: tabular-nums;
    white-space: normal;
}

.chip::before,
.chip-light::before,
.chip-strong::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    width: 2px;
    height: .875rem;
    transform: translateY(-50%);
    background: var(--cta);
}

.chip-light {
    border: 1px solid rgba(255, 255, 255, .22);
    background: rgba(255, 255, 255, .07);
    color: #fff;
}

.chip {
    border: 1px solid var(--line-strong);
    background: var(--surface);
    color: var(--ink);
}

.chip-strong {
    border: 1px solid var(--cta-edge);
    background: var(--cta-50);
    color: #5A3703;     /* 8.1:1 on --cta-50 */
}

.band {
    padding: 3rem 0;
}

.band-alt {
    background: var(--surface-alt);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.plain-link {
    color: inherit;
    text-decoration: none;
}

.plain-link:hover {
    color: var(--accent);
}

.micro-title {
    margin: 1rem 0 .375rem;
    color: var(--primary-900);
    font-family: var(--font-display);
    font-size: .875rem;
    font-weight: 700;
    letter-spacing: -.01em;
    line-height: 1.35;
}

.anchor-nav {
    position: relative;
    z-index: 1;
    border-bottom: 1px solid var(--line);
    background: var(--surface);
}

.anchor-nav ul {
    display: flex;
    flex-wrap: wrap;
    gap: .375rem;
    margin: 0;
    padding: .75rem 0;
    list-style: none;
}

/* Square tabs on a measured edge, not pills. The system's radius is 2px
   everywhere; a 999px capsule here was the one shape on the page that
   belonged to a different site. The jump keeps the tap target: the padding
   is unchanged, only the corner is. */
.anchor-nav a {
    display: inline-flex;
    align-items: center;
    gap: .4375rem;
    min-height: 2.25rem;
    padding: .375rem .75rem;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-sm);
    color: var(--primary);
    font-size: .8125rem;
    font-weight: 700;
    text-decoration: none;
    transition: border-color .18s var(--ease-std), background-color .18s var(--ease-std);
}

.anchor-nav a:hover {
    border-color: var(--primary);
    background: var(--surface-tint);
}

.anchor-nav a:focus-visible {
    outline: 3px solid var(--primary);
    outline-offset: 2px;
}

/* A count is a measured value, so it is set like every other one on the
   site: mono, tabular, in the amber chip. */
.anchor-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.375rem;
    height: 1.25rem;
    padding: 0 .3125rem;
    border-radius: var(--radius-sm);
    background: var(--cta);
    color: var(--cta-ink);
    font-family: var(--font-mono);
    font-size: .6875rem;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    letter-spacing: 0;
}

/* --- Silo blocks --- */

/* Each silo opens on a section rule: a 2px datum at the content origin
   running into a hairline across the measure. The two-weight rule is the same
   move as the header's edge and the hero's grid, at section scale. */
.silo-block {
    margin-top: 2.75rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--line);
    background-image: linear-gradient(to right, var(--primary), var(--primary));
    background-size: 3.5rem 2px;
    background-position: left top;
    background-repeat: no-repeat;
}

.silo-head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem 1.5rem;
}

.silo-title {
    margin: 0;
    font-family: var(--font-display);
    font-size: clamp(1.25rem, 1.1rem + .6vw, 1.5rem);
    font-weight: 700;
    letter-spacing: -.02em;
    line-height: 1.2;
}

.silo-title a {
    color: var(--primary);
    text-decoration: none;
}

.silo-title a:hover {
    color: var(--accent);
    text-decoration: underline;
}

.silo-title-city {
    color: var(--ink-muted);
    font-size: 1rem;
    font-weight: 600;
}

/* 48rem on 15px type is 111 characters a line — the widest prose left on the
   site. Capped in ch like the rest of the running text. */
.silo-desc {
    margin: .375rem 0 0;
    max-width: var(--measure);
    color: var(--ink-muted);
    font-size: .9375rem;
    line-height: 1.6;
}

.silo-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .5rem .75rem;
    margin: 0;
    font-size: .8125rem;
}

.silo-link {
    display: inline-flex;
    align-items: center;
    gap: .4375rem;
    font-weight: 700;
    color: var(--accent);
    text-decoration: none;
}

.silo-link:hover {
    color: var(--primary);
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* --- Card grids --- */

.card-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 1rem;
    margin: 1.25rem 0 0;
    padding: 0;
    list-style: none;
}

@media (min-width: 640px) {
    .card-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 1024px) {
    .card-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .card-grid-2 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .card-grid-3 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

/* Spec-sheet cells, not floating cards.
   What was here before was the default internet card: 1px #e2e8f0, a soft
   radius, a drop shadow, and a 2px lift on hover — three cards wide, repeated
   down the page. The replacement keeps the same grid but changes what the
   object is. Each cell is framed on a measured edge (--line-strong clears the
   1.33:1 that --line gave it), carries an amber datum tick at its top-left
   origin, and is numbered in the measuring face at the opposite corner, so a
   silo reads as a numbered run of specs.

   Hover is material, not levitational: the tick runs the full width of the
   cell and the frame darkens. Nothing moves, so nothing reflows, and the
   response survives prefers-reduced-motion untouched. */
.svc-card,
.climate-card,
.post-card,
.city-card {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 1.25rem 1.125rem 1.125rem;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius);
    background: var(--surface);
    background-image: linear-gradient(to right, var(--cta), var(--cta));
    background-size: 2.5rem 2px;
    background-position: left top;
    background-repeat: no-repeat;
    transition: background-size .28s var(--ease-out), border-color .18s var(--ease-std), box-shadow .18s var(--ease-std);
}

.svc-card:hover,
.post-card:hover,
.city-card:hover,
.svc-card:focus-within,
.post-card:focus-within,
.city-card:focus-within {
    border-color: var(--primary);
    background-size: 100% 2px;
    box-shadow: var(--shadow-sm);
}

/* Sheet reference. Decorative-by-position (a pseudo-element, so it is not in
   the accessibility tree) but real information: this is spec 03 of the six in
   this silo, and the run is what makes the grid legible as a set. */
.card-grid {
    counter-reset: spec;
}

.svc-card {
    counter-increment: spec;
}

.svc-card::before {
    content: counter(spec, decimal-leading-zero);
    position: absolute;
    top: .8125rem;
    right: 1.125rem;
    color: var(--ink-muted);   /* 7.44:1 — a sheet reference still has to be readable */
    font-family: var(--font-mono);
    font-size: .6875rem;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    letter-spacing: .04em;
    line-height: 1;
}

.svc-card-title,
.climate-title,
.post-title,
.city-card-title {
    margin: 0;
    font-family: var(--font-display);
    font-size: 1.0625rem;
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -.015em;
    text-wrap: balance;
}

/* Clear of the sheet reference in the corner. */
.svc-card-title {
    padding-right: 2rem;
}

.svc-card-title a,
.post-title a,
.city-card-title a {
    color: var(--primary);
    text-decoration: none;
}

.svc-card-title a:hover,
.post-title a:hover,
.city-card-title a:hover {
    color: var(--accent);
    text-decoration: underline;
}

.svc-card-desc,
.climate-desc,
.post-excerpt,
.city-card-copy {
    margin: .5rem 0 0;
    color: var(--ink-muted);
    font-size: .875rem;
    line-height: 1.6;
}

/* Action bar: ruled off from the body so the cell ends on a decision, and
   pushed to the cell floor by margin-top:auto so every card in a row ends on
   the same line regardless of how much copy is above it. */
.svc-card-link,
.svc-card-actions {
    margin-top: auto;
    padding-top: .875rem;
    border-top: 1px solid var(--line);
}

.svc-card-link {
    display: inline-flex;
    align-items: center;
    gap: .4375rem;
    color: var(--accent);
    font-size: .8125rem;
    font-weight: 700;
    text-decoration: none;
}

.svc-card-link:hover {
    color: var(--primary);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.svc-card-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: .375rem .75rem;
    margin-bottom: 0;
}

/* A standalone block-level tel: link, so it is a target in its own right, not
   a phone number inside a sentence — the WCAG 2.5.8 inline exception does not
   cover it and at 13px with no padding it measured 21px tall. Padding is the
   fix rather than a larger type size, which would compete with the card title
   sitting directly above it. */
.svc-card-call {
    display: inline-block;
    padding: .375rem 0;
    min-height: 1.5rem;
    color: var(--cta-edge);        /* 5.02:1 on white */
    font-size: .8125rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    text-decoration: none;
}

.svc-card-call:hover {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.svc-card-detailed {
    padding: 1.25rem;
}

.svc-card-detailed .svc-card-title {
    font-size: 1.125rem;
}

.city-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: .375rem;
    margin: .625rem 0 0;
}

/* --- Lists --- */

.pain-list,
.symptom-list,
.check-list {
    margin: .375rem 0 0;
    padding: 0;
    list-style: none;
}

.pain-list li,
.symptom-list li,
.check-list li {
    position: relative;
    max-width: var(--measure);
    padding-left: 1.5rem;
    color: var(--ink-muted);
    font-size: .875rem;
    line-height: 1.55;
}

.pain-list li+li,
.symptom-list li+li,
.check-list li+li {
    margin-top: .375rem;
}

/* Symptoms are marked with a drawn fault bar, not a typed "!" in a circle.
   A glyph in a pill was both a Unicode stand-in for an icon and the one shape
   this design had already retired; a short amber bar with a gap beneath it
   reads as the same warning at a tenth of the weight, and it matches the
   datum ticks used everywhere else. Solutions take the drawn check below, so
   problem and fix are told apart by form as well as colour — which keeps the
   distinction for anyone who cannot separate amber from green. */
.pain-list li::before,
.symptom-list li::before {
    content: "";
    position: absolute;
    left: .1875rem;
    top: .3125rem;
    width: 2px;
    height: .5rem;
    background: var(--cta-600);
}

.pain-list li::after,
.symptom-list li::after {
    content: "";
    position: absolute;
    left: .1875rem;
    top: .9375rem;
    width: 2px;
    height: 2px;
    background: var(--cta-600);
}

.check-list li::before {
    content: "";
    position: absolute;
    left: .125rem;
    top: .375rem;
    width: .5rem;
    height: .3125rem;
    border-left: 2px solid var(--success);
    border-bottom: 2px solid var(--success);
    transform: rotate(-45deg);
}

.check-list-lg li {
    font-size: .9375rem;
    line-height: 1.65;
}

.check-list-lg li+li {
    margin-top: .5rem;
}

/* Repair protocol timeline.
   A process is a sequence, so the sequence is drawn: a continuous rule
   threads the plates together instead of a stack of rows divided by
   horizontal rules, which read as unrelated items rather than steps. The
   numbers come from a CSS counter, which means (a) they are zero-padded
   reference marks in mono, matching every other measured value on the site,
   (b) they stay out of the accessibility tree, so the <ol>'s own ordering
   is announced once rather than twice, and (c) ordered lists authored
   without a number span — the blog body blocks — are numbered too, which
   the old markup-dependent .step-num could not do. */
.step-list {
    counter-reset: step;
    position: relative;
    margin: 1.5rem 0 0;
    padding: 0;
    list-style: none;
}

.step-list li {
    counter-increment: step;
    position: relative;
    display: flex;
    gap: 1rem;
    padding-bottom: 1.25rem;
}

.step-list li:last-child {
    padding-bottom: 0;
}

/* The plate. Square-cornered and bordered, because it is a stamped step
   reference on a procedure sheet, not a bubble. */
.step-list li::before {
    content: counter(step, decimal-leading-zero);
    position: relative;
    z-index: 1;
    flex: none;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.125rem;
    height: 2.125rem;
    border-radius: var(--radius-sm);
    background: var(--primary-900);
    color: #fff;
    font-family: var(--font-mono);
    font-size: .8125rem;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    letter-spacing: 0;
}

/* The thread. Runs from under this plate to the top of the next one, so the
   last step terminates the line rather than trailing off. */
/* Border, not a painted 2px column, so the thread that makes this a
   sequence rather than a stack survives forced-colors. */
.step-list li:not(:last-child)::after {
    content: "";
    position: absolute;
    left: 1rem;
    top: 2.125rem;
    bottom: 0;
    width: 0;
    border-left: 2px solid var(--line-strong);
}

.step-copy {
    padding-top: .3125rem;
    color: var(--ink);
    font-size: .9375rem;
    line-height: 1.6;
}

.pill-list {
    display: flex;
    flex-wrap: wrap;
    gap: .375rem;
    margin: .5rem 0 0;
    padding: 0;
    list-style: none;
}

/* Square tags, not 999px pills. The capsule is the single most generic shape
   on the web and it was doing the work of four different objects here — a
   brand name, a related-service link, a category, a next step. Squared off and
   given a leading amber datum tick, they belong to the same drawing as the
   credential tags in the hero and the sheet references on the cards. */
.pill,
.brand-chip {
    display: inline-flex;
    align-items: center;
    gap: .4375rem;
    max-width: 100%;
    padding: .3125rem .625rem;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-sm);
    background: var(--surface);
    color: var(--ink-muted);
    font-size: .75rem;
    font-weight: 600;
    line-height: 1.3;
    text-decoration: none;
    white-space: normal;
    transition: border-color .16s var(--ease-std), color .16s var(--ease-std), background-color .16s var(--ease-std);
}

.pill:hover {
    border-color: var(--primary);
    background: var(--primary-50);
    color: var(--primary);
}

/* The strong variant is the one that navigates, so it is the one that gets a
   drawn arrow — replacing the &rarr; glyph that used to be typed into the
   link text in forty places. */
.pill-strong {
    border-color: var(--cta-edge);
    background: var(--cta-50);
    color: #5A3703;            /* 9.86:1 on --cta-50 */
    font-weight: 700;
}

.pill-strong:hover {
    border-color: var(--cta-700);
    background: var(--cta-50);
    color: #5A3703;
}

/* One drawn arrow, one rule, every "go here" link on the site. */
.svc-card-link::after,
.silo-link::after,
.pill-strong::after {
    content: "";
    flex: none;
    width: .875rem;
    height: .875rem;
    background-color: currentColor;
    -webkit-mask: var(--icon-arrow-right) no-repeat center / contain;
    mask: var(--icon-arrow-right) no-repeat center / contain;
    transition: transform .22s var(--ease-out);
}

.svc-card-link:hover::after,
.silo-link:hover::after,
.pill-strong:hover::after {
    transform: translateX(3px);
}

.pill-strong::after {
    width: .75rem;
    height: .75rem;
}

.brand-chip-legacy {
    background: var(--surface-warm);
    border-style: dashed;
}

/* --- Comparison table --- */

/* The 46rem table scrolls inside this box; max-width keeps that scroll local
   so it never widens the page itself. */
.table-scroll {
    width: 100%;
    max-width: 100%;
    margin-top: 1.5rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius);
    background: var(--surface);
}

/* It is focusable, so it has to show focus. */
.table-scroll:focus-visible {
    outline: 3px solid var(--primary);
    outline-offset: 2px;
}

.table-compare {
    width: 100%;
    min-width: 46rem;
    border-collapse: collapse;
    font-size: .875rem;
}

.table-compare th,
.table-compare td {
    padding: .9375rem 1rem;
    border-bottom: 1px solid var(--line);
    text-align: left;
    vertical-align: top;
    line-height: 1.55;
}

/* Three columns doing three different jobs, so they are weighted three
   different ways rather than drawn as an even grid. The factor column is a
   quiet index; the repair column is the recommendation and is raised and
   bounded like a selected option; the replacement column is recessed. A
   symmetrical table asks the reader to do the comparing — this one states
   the conclusion the surrounding copy already commits to. */
.table-compare thead th {
    background: var(--primary-900);
    color: #fff;
    font-family: var(--font-display);
    font-size: .8125rem;
    font-weight: 700;
    letter-spacing: 0;
    vertical-align: bottom;
}

/* The amber datum caps the recommended column and nothing else; the 2px
   side rules continue down every cell below it, so the column reads as one
   bounded object rather than five separately tinted cells. */
.table-compare thead th:nth-child(2) {
    box-shadow:
        inset 0 3px 0 0 var(--cta),
        inset 2px 0 0 0 var(--primary),
        inset -2px 0 0 0 var(--primary);
}

/* A factor name is a label, not a measurement, so it stays in the reading
   face — mono here would be costume. */
.table-compare tbody th {
    width: 11rem;
    background: var(--surface-warm);
    color: var(--ink);
    font-size: .8125rem;
    font-weight: 700;
    letter-spacing: 0;
    line-height: 1.5;
}

.table-compare tbody tr:last-child th,
.table-compare tbody tr:last-child td {
    border-bottom: 0;
}

/* Both verdict cells carry a drawn mark as well as a tint, so the verdict
   survives greyscale printing, forced colours and colour-blind reading. The
   gutter the mark sits in has to beat `.table-compare td` (0,2,0), hence the
   prefixed selector — at equal weight the generic padding would win and the
   marks would print straight through the first word. */
.table-compare .cell-good,
.table-compare .cell-bad {
    position: relative;
    padding-left: 2.5rem;
}

/* Raised: the page's own white, bounded, with full-strength ink. */
.table-compare .cell-good {
    background: var(--surface);
    box-shadow:
        inset 2px 0 0 0 var(--primary),
        inset -2px 0 0 0 var(--primary);
    color: var(--ink);
    font-weight: 500;
}

/* Tick: two borders of an empty box, rotated. */
.cell-good::before {
    content: "";
    position: absolute;
    left: 1.0625rem;
    top: 1.0625rem;
    width: .5625rem;
    height: .3125rem;
    border-left: 2px solid var(--success);
    border-bottom: 2px solid var(--success);
    transform: rotate(-45deg);
}

/* Recessed: the warm grey the page uses for secondary ground, muted ink. */
.table-compare .cell-bad {
    background: var(--surface-warm);
    color: var(--ink-muted);
}

/* Cross: one bar, mirrored by the ::after below.
   The bar is a border rather than a 2px-tall painted box, because Windows
   high-contrast mode discards backgrounds but keeps borders. Painted, the
   crosses vanished in forced-colors while the ticks — already drawn with
   borders — survived, so every row silently read as a "yes". */
.cell-bad::before,
.cell-bad::after {
    content: "";
    position: absolute;
    left: 1rem;
    top: 1.1875rem;
    width: .625rem;
    height: 0;
    border-top: 2px solid var(--control-line);
}

.cell-bad::before {
    transform: rotate(45deg);
}

.cell-bad::after {
    transform: rotate(-45deg);
}

/* The worst measure on the site: 143 characters a line, because a 52rem cap on
   14px type is nearly twice the width that size wants. */
.table-note {
    margin: 1rem 0 0;
    max-width: var(--measure);
    color: var(--ink-muted);
    font-size: .875rem;
    line-height: 1.6;
}

/* --- City grids --- */

.city-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: .625rem;
    margin: 1.25rem 0 0;
    padding: 0;
    list-style: none;
}

@media (min-width: 640px) {
    .city-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 1024px) {
    .city-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

/* Same datum tick as the spec cells, so a city reads as one more entry in
   the same sheet. The 3px amber left stripe it replaces was the stock
   "accent bar on a card" — the one move this redesign set out to delete,
   and it was running down 20+ tiles in a three-column grid. */
.city-link {
    display: block;
    height: 100%;
    padding: .75rem .875rem;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-sm);
    background: var(--surface);
    background-image: linear-gradient(to right, var(--cta), var(--cta));
    background-size: 1.75rem 2px;
    background-position: left top;
    background-repeat: no-repeat;
    text-decoration: none;
    transition: background-size .28s var(--ease-out), border-color .18s var(--ease-std);
}

.city-link:hover,
.city-link:focus-visible {
    border-color: var(--primary);
    background-size: 100% 2px;
}

.city-name {
    display: block;
    color: var(--primary);
    font-size: .9375rem;
    font-weight: 700;
    line-height: 1.3;
}

.city-meta {
    display: block;
    margin-top: .1875rem;
    color: var(--ink-muted);
    font-size: .75rem;
    line-height: 1.4;
}

/* --- Blog cards --- */

.post-meta {
    margin: 0;
    color: var(--ink-muted);
    font-size: .75rem;
    font-weight: 600;
}

.post-title {
    margin-top: .375rem;
}

/* --- Two-column article layout --- */

.layout-with-sidebar {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 2rem;
    align-items: start;
}

@media (min-width: 1024px) {
    .layout-with-sidebar {
        grid-template-columns: minmax(0, 1fr) minmax(19rem, 22rem);
        gap: 2.5rem;
    }
}

.article-body,
.sidebar {
    min-width: 0;
    max-width: 100%;
}

.article-body>section+section {
    margin-top: 2.75rem;
    padding-top: 2.25rem;
    border-top: 1px solid var(--line);
}

.local-prose {
    margin: 1rem 0 0;
    max-width: 44rem;
    color: var(--ink);
    font-size: 1.0625rem;
    line-height: 1.75;
}

.fact-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: .75rem;
    margin: 1.5rem 0 0;
}

@media (min-width: 640px) {
    .fact-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.fact-grid>div {
    padding: .75rem .875rem;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-sm);
    background: var(--surface-warm);
}

/* A term in a definition list, set as a term: 11px / 800 / uppercase at
   .06em was the micro-eyebrow signature again, applied here to text that
   actually has to be read rather than glanced at. */
.fact-grid dt {
    color: var(--primary-900);
    font-size: .8125rem;
    font-weight: 700;
    letter-spacing: 0;
    line-height: 1.4;
    text-transform: none;
}

.fact-grid dd {
    margin: .1875rem 0 0;
    color: var(--ink-muted);
    font-size: .875rem;
    line-height: 1.5;
}

.local-svc-list {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: .5rem;
    margin: .875rem 0 0;
    padding: 0;
    list-style: none;
}

@media (min-width: 768px) {
    .local-svc-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.local-svc-link {
    display: block;
    height: 100%;
    padding: .75rem .875rem;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: var(--surface);
    text-decoration: none;
}

.local-svc-link:hover {
    border-color: var(--accent);
    background: var(--accent-50);
}

.local-svc-title {
    display: block;
    color: var(--primary);
    font-size: .9375rem;
    font-weight: 700;
    line-height: 1.35;
}

.local-svc-desc {
    display: block;
    margin-top: .25rem;
    color: var(--ink-muted);
    font-size: .8125rem;
    line-height: 1.5;
}

/* --- Sidebar --- */

.sidebar-sticky {
    display: grid;
    gap: 1rem;
}

@media (min-width: 1024px) {
    .sidebar-sticky {
        position: sticky;
        top: calc(var(--header-height) + 1rem);
    }
}

.sidebar-card {
    padding: 1.125rem;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: var(--shadow-sm);
}

/* Marked the same way every other interruption on the site is marked: a 2px
   rule across the top in the warning amber, over the warm ground. It was a 4px
   amber frame on all four sides — louder than the article it sat beside, and
   the only card in the system wearing a coloured outline. */
.sidebar-emergency {
    border-top: 2px solid var(--cta-700);
    background: var(--cta-50);
}

.sidebar-title {
    margin: 0;
    color: var(--primary);
    font-size: 1rem;
    font-weight: 800;
    line-height: 1.3;
}

.sidebar-copy {
    margin: .5rem 0 0;
    color: var(--ink-muted);
    font-size: .8125rem;
    line-height: 1.55;
}

.sidebar-list {
    margin: .875rem 0 0;
    padding: 0;
    list-style: none;
}

.sidebar-list li {
    position: relative;
    padding: .3125rem 0 .3125rem 1rem;
    color: var(--ink-muted);
    font-size: .8125rem;
    line-height: 1.45;
}

.sidebar-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: .6875rem;
    width: .375rem;
    height: .375rem;
    border-radius: 999px;
    background: var(--cta-600);
}

.sidebar-list-links a {
    color: var(--accent);
    font-weight: 600;
    text-decoration: none;
}

.sidebar-list-links a:hover {
    text-decoration: underline;
}

/* In the sidebar the form already sits inside a sticky column. */
.sidebar .lead-form-sidebar {
    position: static;
    top: auto;
}

/* --------------------------------------------------------------------------
   15. Forced-colors / high-contrast
   -------------------------------------------------------------------------- */

/* Windows high-contrast throws away background, background-image and
   box-shadow, and forces every colour to a four-value system palette. Every
   accent in this design that lives in one of those three properties is
   therefore invisible here, and anything that was carrying meaning has to be
   restated as a border. What follows is that restatement, component by
   component — not a decorative repair. */
@media (forced-colors: active) {
    .btn,
    .footer-badge,
    .anchor-count,
    .mobile-action-call,
    .mobile-action-quote {
        border: 1px solid currentColor;
    }

    /* The amber datum tick is a background-image (it animates its width on
       hover), so the cells lose their origin mark and their hover response.
       The frame is the only thing left to carry "this is a cell", and
       ButtonBorder keeps it distinct from the page text. */
    .svc-card,
    .climate-card,
    .post-card,
    .city-card,
    .city-link {
        border: 1px solid ButtonBorder;
    }

    .svc-card:hover,
    .post-card:hover,
    .city-card:hover,
    .city-link:hover,
    .svc-card:focus-within,
    .post-card:focus-within,
    .city-card:focus-within {
        border-color: Highlight;
    }

    /* The counter plate is white-on-navy, which collapses to text on canvas.
       A frame keeps it reading as a plate rather than as a loose number that
       has drifted away from its step. */
    .step-list li::before {
        border: 1px solid currentColor;
    }

    /* The recommended column is marked by two inset box-shadows and a white
       ground against a warm grey one — all three are discarded. Real borders
       restate the column, and the header cell keeps its top rule, so the
       "repair" side is still unmistakably the one being pointed at. */
    .table-compare thead th:nth-child(2),
    .table-compare .cell-good {
        border-left: 2px solid Highlight;
        border-right: 2px solid Highlight;
    }

    .table-compare thead th:nth-child(2) {
        border-top: 3px solid Highlight;
    }

    /* The open answer is flagged by an amber background-image rule. */
    .faq-item[open]>summary {
        border-top: 2px solid Highlight;
    }

    /* Translucency plus blur resolves to the system canvas; without this the
       dock and the page behind it share an edge and the bar stops reading as
       a separate surface floating over the content. */
    .mobile-action-bar {
        border-top: 2px solid currentColor;
    }

    /* The live-status ring animates opacity on a painted dot. The dot itself
       is a background too, so the whole indicator goes; the adjacent text
       still says "Open 24/7", which is the information it was decorating. */
    .dispatch-pulse {
        border: 2px solid currentColor;
    }
}

/* --------------------------------------------------------------------------
   16. Step 4B page templates
   Blog hub, article body, about, contact, reviews, brands, FAQ hub, legal
   pages and the 404 recovery page.
   -------------------------------------------------------------------------- */

/* --- Non-interactive chip inside an anchor nav (tag cloud) --- */

.anchor-static {
    display: inline-flex;
    align-items: center;
    padding: .375rem .75rem;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-sm);
    background: var(--surface-warm);
    color: var(--ink-muted);
    font-size: .8125rem;
    font-weight: 700;
}

/* --- Blog hub: featured post --- */

/* The featured post is the one card on the hub that is not in the grid, so
   it is marked by a full-width datum across its head rather than a stripe
   down its side — the same tick the spec cells wear, already run out. */
.post-feature {
    margin-top: 1.5rem;
    padding: 1.5rem;
    border: 1px solid var(--line-strong);
    border-top: 2px solid var(--cta);
    border-radius: var(--radius);
    background: var(--surface-warm);
}

.post-feature-title {
    margin: .5rem 0 0;
    font-size: 1.625rem;
    font-weight: 800;
    line-height: 1.25;
}

.post-feature-title a {
    color: var(--primary);
    text-decoration: none;
}

.post-feature-title a:hover {
    color: var(--accent);
    text-decoration: underline;
}

/* The last 48rem cap: 97 characters a line on the featured post's standfirst,
   which is the first prose a visitor reads on the guides index. */
.post-feature-excerpt {
    margin: .75rem 0 0;
    max-width: var(--measure);
    color: var(--ink-muted);
    font-size: 1.0625rem;
    line-height: 1.7;
}

@media (min-width: 768px) {
    .post-feature {
        padding: 2rem;
    }

    .post-feature-title {
        font-size: 1.875rem;
    }
}

/* --- Article header --- */

.post-header {
    max-width: 48rem;
}

.post-h1 {
    margin: .5rem 0 0;
    color: var(--primary);
    font-size: 1.875rem;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.01em;
}

@media (min-width: 768px) {
    .post-h1 {
        font-size: 2.375rem;
    }
}

.post-excerpt-lead {
    margin: 1rem 0 0;
    max-width: var(--measure);
    color: var(--ink);
    font-size: 1.125rem;
    font-weight: 500;
    line-height: 1.65;
}

.post-byline {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: .75rem 1.5rem;
    margin-top: 1.25rem;
    padding: .875rem 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.post-byline-text {
    min-width: 0;
}

.post-byline-name {
    margin: 0;
    font-size: .9375rem;
    font-weight: 700;
}

.post-byline-role {
    margin: .125rem 0 0;
    color: var(--ink-muted);
    font-size: .8125rem;
}

.post-byline-dates {
    margin: 0;
    color: var(--ink-muted);
    font-size: .8125rem;
}

/* --- Table of contents --- */

.toc {
    margin: 0 0 2rem;
    padding: 1.125rem 1.25rem 1.25rem;
    border: 1px solid var(--line-strong);
    border-top: 2px solid var(--primary);
    border-radius: var(--radius);
    background: var(--surface-tint);
}

/* "In This Guide" is a heading, so it is set as one. It was 12px, 800
   weight, uppercase at .08em tracking — the generic micro-eyebrow, which
   this redesign deletes wherever it appears, and here it was standing in
   for a real <h2>. */
.toc-title {
    margin: 0;
    color: var(--primary-900);
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: -.015em;
    line-height: 1.3;
    text-transform: none;
}

.toc-list {
    margin: .75rem 0 0;
    padding-left: 1.25rem;
    color: var(--ink);
    font-size: .9375rem;
    line-height: 1.6;
}

.toc-list li + li {
    margin-top: .375rem;
}

.toc-list a {
    color: var(--accent-700);
    font-weight: 600;
    text-decoration: none;
}

.toc-list a:hover {
    text-decoration: underline;
}

/* --- Article prose headings generated by the content_blocks renderer --- */

.local-prose h2 {
    margin: 2.25rem 0 0;
    color: var(--primary);
    font-size: 1.5rem;
    font-weight: 800;
    line-height: 1.25;
    scroll-margin-top: calc(var(--header-height) + 1rem);
}

.local-prose h3 {
    margin: 1.75rem 0 0;
    color: var(--primary);
    font-size: 1.1875rem;
    font-weight: 800;
    line-height: 1.3;
    scroll-margin-top: calc(var(--header-height) + 1rem);
}

.local-prose h3.micro-title {
    margin: 1.5rem 0 0;
    color: var(--ink-muted);
}

.local-prose p {
    margin: 1rem 0 0;
    max-width: var(--measure);
}

/* The same class lands on a wrapper <div> on some templates and directly on a
   <p> on others. In the second case .local-prose p never matched and the 44rem
   wrapper width governed the text, which ran 88 characters a line. The cap goes
   on the paragraph form only — putting it on .local-prose itself would also
   squeeze the callouts, tables and step lists inside the wrapper form. */
p.local-prose {
    max-width: var(--measure);
}

.local-prose .step-list,
.local-prose .check-list,
.local-prose .pain-list {
    margin-top: 1rem;
}

/* --- Callouts --- */

/* A callout interrupts the article, so it is marked across the top of the
   interruption, not down its edge. The rule colour is the only thing that
   separates a tip from a warning in the frame; the title says which it is
   in words, so the colour is reinforcement rather than the sole carrier. */
.callout {
    margin: 1.75rem 0 0;
    padding: 1rem 1.25rem 1.125rem;
    border: 1px solid var(--line-strong);
    border-top: 2px solid var(--primary);
    border-radius: var(--radius);
    background: var(--surface-tint);
}

.callout-warning {
    border-top-color: var(--cta-700);
    background: var(--cta-50);
}

.callout-title {
    margin: 0;
    color: var(--primary-900);
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: -.015em;
    line-height: 1.3;
}

.callout-text {
    margin: .5rem 0 0;
    max-width: var(--measure);
    color: var(--ink);
    font-size: .9375rem;
    line-height: 1.65;
}

/* --- In-article CTAs --- */

.inline-cta {
    margin: 1.75rem 0 0;
    padding: 1.25rem;
    border: 1px solid var(--primary-600);
    border-radius: var(--radius);
    background: var(--primary);
    color: #FFFFFF;
    box-shadow: var(--shadow-sm);
}

.inline-cta-final {
    border-color: var(--cta-600);
    background: linear-gradient(180deg, var(--primary-800), var(--primary-900));
}

.inline-cta-head {
    margin: 0;
    font-size: 1.0625rem;
    font-weight: 800;
    line-height: 1.3;
}

.inline-cta-text {
    margin: .5rem 0 0;
    max-width: var(--measure);
    color: rgba(255, 255, 255, .88);
    font-size: .9375rem;
    line-height: 1.6;
}

.inline-cta-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    margin: 1rem 0 0;
}

/* --- Author bio box --- */

.author-box {
    margin-top: 2.5rem;
    padding: 1.25rem;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface-alt);
}

.author-name {
    margin: .5rem 0 0;
    color: var(--primary);
    font-size: 1.0625rem;
    font-weight: 800;
}

.author-role {
    margin: .125rem 0 0;
    color: var(--ink-muted);
    font-size: .8125rem;
    font-weight: 600;
}

.author-bio {
    margin: .625rem 0 0;
    max-width: var(--measure);
    color: var(--ink);
    font-size: .9375rem;
    line-height: 1.65;
}

.author-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .25rem 1rem;
    margin: .875rem 0 0;
}

/* --- Post sub-sections (services, FAQ, areas, read next) --- */

.post-related {
    margin-top: 2.75rem;
    padding-top: 1.75rem;
    border-top: 1px solid var(--line);
}

.post-related .faq-section .mx-auto,
.post-related + .faq-section .mx-auto {
    padding-left: 0;
    padding-right: 0;
}

/* faq-accordion.php is included inside .article-body, so its own band
   background and nested .mx-auto.max-w-content.px-4 would otherwise paint a
   padded grey box inside the left column. Neutralise both: the inner wrapper
   must also drop the native 72rem cap added in Section 1, or it re-centres
   itself inside an already-narrow column. */
.article-body > .faq-section {
    margin-top: 2.75rem;
    padding: 1.75rem 0 0;
    background: transparent;
    border-top: 1px solid var(--line);
}

.article-body > .faq-section > .mx-auto {
    max-width: none;
    padding-left: 0;
    padding-right: 0;
}

/* --- About: timeline --- */

.timeline {
    margin: 0;
    padding: 0;
    list-style: none;
}

.timeline-item {
    position: relative;
    padding: 0 0 1.5rem 1.75rem;
    border-left: 2px solid var(--line);
}

.timeline-item:last-child {
    padding-bottom: 0;
    border-left-color: transparent;
}

.timeline-item::before {
    content: "";
    position: absolute;
    top: .3125rem;
    left: -0.4375rem;
    width: .75rem;
    height: .75rem;
    border: 2px solid var(--surface);
    border-radius: 999px;
    background: var(--cta);
}

.timeline-year {
    display: block;
    color: var(--primary);
    font-size: .8125rem;
    font-weight: 800;
    letter-spacing: .06em;
}

.timeline-text {
    margin: .25rem 0 0;
    color: var(--ink);
    font-size: .9375rem;
    line-height: 1.65;
}

/* --- About: team cards --- */

.team-card {
    padding: 1.25rem;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: var(--shadow-sm);
    scroll-margin-top: calc(var(--header-height) + 1rem);
}

.team-name {
    margin: 0;
    color: var(--primary);
    font-size: 1.125rem;
    font-weight: 800;
}

.team-role {
    margin: .125rem 0 0;
    color: var(--accent-700);
    font-size: .875rem;
    font-weight: 700;
}

.team-meta {
    display: flex;
    flex-wrap: wrap;
    gap: .375rem;
    margin: .625rem 0 0;
}

.team-bio {
    margin: .75rem 0 0;
    color: var(--ink);
    font-size: .9375rem;
    line-height: 1.65;
}

/* --- Contact: detail lists --- */

.contact-list,
.hours-list {
    margin: .75rem 0 0;
    padding: 0;
    list-style: none;
}

.contact-list li {
    display: flex;
    flex-direction: column;
    gap: .125rem;
    padding: .625rem 0;
    border-top: 1px solid var(--line);
}

.contact-list li:first-child {
    border-top: 0;
    padding-top: 0;
}

.contact-label {
    color: var(--ink-muted);
    font-size: .8125rem;
    font-weight: 600;
    letter-spacing: 0;
    line-height: 1.4;
}

.contact-value {
    color: var(--primary);
    font-size: .9375rem;
    font-weight: 700;
    overflow-wrap: anywhere;
}

a.contact-value {
    color: var(--accent);
    text-decoration: none;
}

a.contact-value:hover {
    text-decoration: underline;
}

.hours-list li {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
    padding: .375rem 0;
    border-top: 1px solid var(--line);
}

.hours-list li:first-child {
    border-top: 0;
}

.hours-day {
    color: var(--ink);
    font-size: .875rem;
    font-weight: 700;
}

.hours-time {
    color: var(--ink-muted);
    font-size: .8125rem;
    font-variant-numeric: tabular-nums;
}

/* --- Contact: map embed (zero-CLS aspect box) --- */

.map-embed {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface-alt);
}

.map-embed iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

@supports not (aspect-ratio: 16 / 9) {
    .map-embed {
        height: 22rem;
    }
}

/* --- Reviews: aggregate summary --- */

.rating-summary {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 1.25rem 1.5rem;
    border: 1px solid var(--line-strong);
    border-top: 2px solid var(--cta);
    border-radius: var(--radius);
    background: var(--surface-warm);
}

.rating-big {
    display: flex;
    align-items: baseline;
    gap: .25rem;
    margin: 0;
}

/* 4.9 is a measurement, so it is set in the measuring face — the same
   treatment the footer score and every other figure on the site gets. */
.rating-number {
    color: var(--primary-900);
    font-family: var(--font-mono);
    font-size: 2.75rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    line-height: 1;
    letter-spacing: -0.03em;
}

.rating-outof {
    color: var(--ink-muted);
    font-size: 1.125rem;
    font-weight: 700;
}

/* Stars are drawn, not typed. The U+2605 glyph that used to fill these rows
   rendered at a different weight, baseline and optical size in every fallback
   font, and read to a screen reader as "black star" when the row was not
   hidden. One path, sized in em so it tracks whatever it sits inside. */
.star-icon {
    flex: none;
    width: 1em;
    height: 1em;
    vertical-align: -0.125em;
}

.star-icon-empty {
    opacity: .5;
}

.rating-stars,
.review-stars {
    display: flex;
    align-items: center;
    gap: .1875rem;
    margin: 0;
    color: var(--cta-600);
    line-height: 1;
}

.rating-stars {
    margin-top: .625rem;
    font-size: 1.25rem;
}

.rating-stars svg,
.review-stars svg {
    flex: none;
}

.review-stars span {
    display: inline-flex;
    gap: .1875rem;
}

.rating-caption {
    margin: .5rem 0 0;
    color: var(--ink-muted);
    font-size: .875rem;
}

/* --- Reviews: platform cards --- */

.platform-card {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: .375rem 1rem;
    padding: 1rem 1.25rem;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: var(--shadow-sm);
}

.platform-name {
    margin: 0;
    flex: 1 1 auto;
    color: var(--primary);
    font-size: 1rem;
    font-weight: 800;
}

/* --cta-edge, not --cta-700. --cta-700 is a plate colour: 5.18:1 with the dark
   CTA ink on top of it, but only 3.70:1 as ink itself on white, and 15px/800 is
   not large text. The aggregate rating is the number a visitor came to this page
   to read, so it gets the ink-grade amber. */
.platform-rating {
    display: inline-flex;
    align-items: center;
    gap: .3125rem;
    margin: 0;
    color: var(--cta-edge);
    font-size: .9375rem;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
}

.platform-count {
    margin: 0;
    color: var(--ink-muted);
    font-size: .8125rem;
}

/* --- Reviews: testimonial cards --- */

.review-card {
    display: flex;
    flex-direction: column;
    padding: 1.25rem;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: var(--shadow-sm);
}

.review-stars {
    font-size: 1rem;
}

.review-headline {
    margin: .625rem 0 0;
    color: var(--primary);
    font-size: 1.0625rem;
    font-weight: 800;
    line-height: 1.3;
}

.review-body {
    margin: .625rem 0 0;
    padding: 0;
    border: 0;
}

.review-body p {
    margin: 0;
    color: var(--ink);
    font-size: .9375rem;
    line-height: 1.7;
}

.review-attrib {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: .25rem .625rem;
    margin: .875rem 0 0;
    padding-top: .75rem;
    border-top: 1px solid var(--line);
}

.review-name {
    color: var(--primary);
    font-size: .875rem;
    font-weight: 800;
}

.review-area {
    color: var(--ink-muted);
    font-size: .8125rem;
    font-weight: 600;
}

.review-date {
    color: var(--ink-muted);
    font-size: .75rem;
}

.review-service {
    margin: .75rem 0 0;
}

/* --- Brands: per-brand cards --- */

.brand-card {
    padding: 1.25rem;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: var(--shadow-sm);
    scroll-margin-top: calc(var(--header-height) + 1rem);
}

.brand-card-title {
    margin: 0;
    color: var(--primary);
    font-size: 1.1875rem;
    font-weight: 800;
    line-height: 1.3;
}

.brand-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: .375rem;
    margin: .625rem 0 0;
}

/* --- FAQ hub: per-answer service link --- */

.faq-source {
    margin: .625rem 0 0;
    font-size: .875rem;
}

/* --- Legal pages --- */

/* Privacy and Terms are the two pages on this site that are purely read, so
   measure matters more here than anywhere. 46rem was running 89–93 characters
   a line; the cap is in ch so it stays right if the type size ever moves. */
.legal-prose {
    max-width: var(--measure);
    color: var(--ink);
    font-size: 1rem;
    line-height: 1.75;
}

.legal-prose h3 {
    margin: 2rem 0 0;
    color: var(--primary);
    font-size: 1.25rem;
    font-weight: 800;
    line-height: 1.3;
    scroll-margin-top: calc(var(--header-height) + 1rem);
}

/* A fourth-level heading set at 12px uppercase was smaller and lighter
   than the body text it introduced, which inverted the hierarchy on the
   two pages people actually have to read carefully. */
.legal-prose h4 {
    margin: 1.375rem 0 0;
    color: var(--primary-900);
    font-family: var(--font-display);
    font-size: .9375rem;
    font-weight: 700;
    letter-spacing: -.01em;
    line-height: 1.4;
}

.legal-prose p {
    margin: .875rem 0 0;
}

.legal-prose ul {
    margin: .875rem 0 0;
    padding-left: 1.25rem;
}

.legal-prose li + li {
    margin-top: .375rem;
}

.legal-prose a {
    color: var(--accent);
    font-weight: 600;
    text-decoration: underline;
}

.legal-updated {
    margin: 2rem 0 0;
    padding-top: 1rem;
    border-top: 1px solid var(--line);
    color: var(--ink-muted);
    font-size: .875rem;
    font-weight: 600;
}

/* --- Print: drop conversion furniture from articles and legal pages --- */

@media print {
    .toc,
    .inline-cta,
    .author-links,
    .map-embed {
        display: none !important;
    }
}

/* --- Forced-colors additions for the Step 4B components --- */

@media (forced-colors: active) {
    .callout,
    .inline-cta,
    .toc,
    .review-card,
    .platform-card,
    .brand-card,
    .team-card,
    .post-feature,
    .rating-summary {
        border: 1px solid currentColor;
    }
}

/* ==========================================================================
   17. Professional Photo Gallery & Media Cards (Responsive Production-Grade)

   Mobile-first: one column under 640px, two from 640px, three from 1024px
   for .media-grid-3. Every image sits in a bounded aspect-ratio frame so the
   grid reserves its exact box before the bytes arrive — zero CLS.
   ========================================================================== */

.media-section {
    margin-top: 3rem;
    margin-bottom: 3rem;
}

.media-section:first-child {
    margin-top: 0;
}

/* `minmax(0, 1fr)` not `1fr`: a caption containing a long unbroken part
   number would otherwise set the track's min-content width and overflow. */
.media-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 1.25rem;
    margin: 1.25rem 0 0;
    padding: 0;
    list-style: none;
}

/* Tablet (>= 640px): 2 columns */
@media (min-width: 640px) {
    .media-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 1.5rem;
        margin-top: 1.5rem;
    }
}

/* Desktop (>= 1024px): explicit support for 2 or 3 columns */
@media (min-width: 1024px) {
    .media-grid-3 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .media-grid-2 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* Inspection records, not photo cards.
   These frames hold evidence — a component we pulled, a failure we diagnosed —
   so they are mounted and labelled rather than styled to be clicked. The lift
   and the 4% zoom are gone: nothing about a photographic record should move
   when a cursor passes over it, and neither gesture was attached to an action
   because these cards are not links. What is left is a mounted plate with a
   ruled caption and a record number. */
.media-card {
    min-width: 0;
    display: flex;
    flex-direction: column;
    counter-increment: record;
    background: var(--surface);
    border: 1px solid var(--line-strong);
    border-radius: var(--radius);
    overflow: hidden;
}

.media-grid {
    counter-reset: record;
}

.media-figure {
    display: flex;
    flex-direction: column;
    min-width: 0;
    height: 100%;
    margin: 0;
}

/* The frame is the CLS lock. The ratio lives here, not on the <img>, so a
   photo whose intrinsic ratio drifts is cropped by object-fit instead of
   resizing the grid row once it decodes. */
.media-frame {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: var(--primary-50);
}

/* The duplicated [width][height] attribute selector is load-bearing, not
   noise. Section 1 sets `img[width][height] { height: auto }` for zero CLS,
   which scores (0,2,1) and would otherwise beat a plain `.media-frame img`
   at (0,1,1) — the photo would ignore `height: 100%` and the frame's crop
   would never engage. At (0,3,1) this wins on specificity alone, so no
   !important is needed and the values stay overridable downstream. */
.media-frame img[width][height],
.media-frame img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* Caption plate. The record number is set in the measuring face and floated
   into the first line, so a long caption wraps under it the way a figure
   reference does on a drawing sheet rather than being indented wholesale. */
.media-caption {
    position: relative;
    flex: 1 1 auto;
    min-width: 0;
    /* + the 3.875rem of horizontal padding, so the cap governs the text
       itself rather than the box that holds the record number. */
    max-width: calc(var(--measure) + 3.875rem);
    padding: .875rem 1.125rem 1rem 2.75rem;
    font-size: .9375rem;
    line-height: 1.55;
    color: var(--ink-muted);
    background: var(--surface);
    border-top: 2px solid var(--primary-900);
    overflow-wrap: break-word;
}

.media-caption::before {
    content: counter(record, decimal-leading-zero);
    position: absolute;
    left: 1.125rem;
    top: .9375rem;
    color: var(--cta-edge);        /* 5.02:1 on white */
    font-family: var(--font-mono);
    font-size: .6875rem;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    letter-spacing: .04em;
    line-height: 1.55;
}

/* Standalone featured image on service, silo and blog-post pages.
   `.media-feature` is the class the templates emit; `.service-feature-media`
   is kept as an accepted alias so either name renders identically. */
.media-feature,
.service-feature-media {
    margin: 0 0 2rem;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    background: var(--surface);
}

.media-feature .media-frame,
.service-feature-media .media-frame {
    aspect-ratio: 16 / 9;
}

.media-feature .media-caption,
.service-feature-media .media-caption {
    display: block;
    padding: 1rem 1.25rem 1.25rem;
    font-size: 1rem;
}

/* Blog / post card thumbnails. A fixed ratio keeps a row of cards aligned
   even when one post's featured image has not been published yet.

   Inset rather than full-bleed on purpose: .post-card and .post-feature both
   carry their own padding, so bleeding to the card edge would need negative
   margins fighting the card's border-radius at every breakpoint. */
.post-card-media {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    margin-bottom: 0.875rem;
    overflow: hidden;
    border-radius: var(--radius-sm);
    background: var(--primary-50);
}

.post-card-media img[width][height],
.post-card-media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* The lift and the 1.04 zoom are both vestibular triggers, so they are
   dropped rather than merely shortened when reduced motion is requested. */
@media (prefers-reduced-motion: reduce) {
    .media-card,
    .media-card:hover,
    .media-frame img,
    .media-card:hover .media-frame img {
        transition: none;
        transform: none;
    }
}

@media (forced-colors: active) {
    .media-card,
    .media-feature,
    .service-feature-media,
    .post-card-media {
        border: 1px solid currentColor;
    }

    .media-caption {
        border-top: 1px solid currentColor;
    }
}

@media print {
    .media-section {
        margin: 1rem 0;
    }

    .media-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.5rem;
    }

    .media-card {
        box-shadow: none;
        break-inside: avoid;
    }
}
