
/*
 * Site styles. There is no CSS framework and no build step — this file is
 * served exactly as written, so everything the site needs is here or in the
 * site's own additions below.
 *
 * ---------------------------------------------------------------------------
 * FLUID TYPE & SPACE SCALE
 *
 * Every size below is derived from the six anchor numbers in --u-*. Change an
 * anchor and the whole scale moves with it, in proportion. That is the point:
 * retuning a site is editing six numbers, not auditing every value in the file.
 *
 * Each step is a clamp() between its value at the minimum viewport and its
 * value at the maximum, so text and spacing scale smoothly with the viewport
 * instead of jumping at breakpoints. No media queries are needed for sizing.
 *
 * TO RETUNE FOR THIS SITE (see refs/design/DESIGN.md):
 *   --u-min-ratio / --u-max-ratio   how dramatic the jump between sizes is.
 *                                   1.2 (minor third) reads calm and even;
 *                                   1.333 (perfect fourth) reads confident;
 *                                   above ~1.4 gets shouty for a practice site.
 *   --u-min-font / --u-max-font     base body size at each end, in px.
 *   --u-min-vw / --u-max-vw         the viewport range the scale spans.
 *
 * A larger max-ratio with the same min-ratio gives a site that is restrained on
 * a phone and expressive on a desktop, which usually suits a hero-led page.
 */
:root {
    /* --- Anchors: the dial for this site ------------------------------- */
    --u-min-vw: 390;
    --u-max-vw: 1440;
    --u-min-font: 13.2;
    --u-max-font: 16.5;
    --u-min-ratio: 1.25;
    --u-max-ratio: 1.248;

    /* --- Derivation. Not usually edited by hand. ----------------------- */
    /* Slope and intercept of the line between the two anchor viewports,
     * expressed so each step can be written as clamp(min, calc(...), max). */
    --u-vw-range: calc(var(--u-max-vw) - var(--u-min-vw));

    /* Type steps, in rem at each anchor. Each step multiplies the previous
     * one by the ratio, so the relationship between sizes is fixed even as the
     * absolute values move. */
    --u-min-0: calc(var(--u-min-font) / 16);
    --u-max-0: calc(var(--u-max-font) / 16);

    --u-min--2: calc(var(--u-min-0) / var(--u-min-ratio) / var(--u-min-ratio));
    --u-max--2: calc(var(--u-max-0) / var(--u-max-ratio) / var(--u-max-ratio));
    --u-min--1: calc(var(--u-min-0) / var(--u-min-ratio));
    --u-max--1: calc(var(--u-max-0) / var(--u-max-ratio));
    --u-min-1: calc(var(--u-min-0) * var(--u-min-ratio));
    --u-max-1: calc(var(--u-max-0) * var(--u-max-ratio));
    --u-min-2: calc(var(--u-min-1) * var(--u-min-ratio));
    --u-max-2: calc(var(--u-max-1) * var(--u-max-ratio));
    --u-min-3: calc(var(--u-min-2) * var(--u-min-ratio));
    --u-max-3: calc(var(--u-max-2) * var(--u-max-ratio));
    --u-min-4: calc(var(--u-min-3) * var(--u-min-ratio));
    --u-max-4: calc(var(--u-max-3) * var(--u-max-ratio));
    --u-min-5: calc(var(--u-min-4) * var(--u-min-ratio));
    --u-max-5: calc(var(--u-max-4) * var(--u-max-ratio));

    /* --- Type scale ---------------------------------------------------- */
    /* step--2 fine print · step-0 body · step-2/3 section headings ·
     * step-4/5 hero display. Use these, not raw px. */
    --step--2: clamp(calc(var(--u-min--2) * 1rem), calc(var(--u-min--2) * 1rem + (var(--u-max--2) - var(--u-min--2)) * (100vw - var(--u-min-vw) * 1px) / var(--u-vw-range) * 16), calc(var(--u-max--2) * 1rem));
    --step--1: clamp(calc(var(--u-min--1) * 1rem), calc(var(--u-min--1) * 1rem + (var(--u-max--1) - var(--u-min--1)) * (100vw - var(--u-min-vw) * 1px) / var(--u-vw-range) * 16), calc(var(--u-max--1) * 1rem));
    --step-0: clamp(calc(var(--u-min-0) * 1rem), calc(var(--u-min-0) * 1rem + (var(--u-max-0) - var(--u-min-0)) * (100vw - var(--u-min-vw) * 1px) / var(--u-vw-range) * 16), calc(var(--u-max-0) * 1rem));
    --step-1: clamp(calc(var(--u-min-1) * 1rem), calc(var(--u-min-1) * 1rem + (var(--u-max-1) - var(--u-min-1)) * (100vw - var(--u-min-vw) * 1px) / var(--u-vw-range) * 16), calc(var(--u-max-1) * 1rem));
    --step-2: clamp(calc(var(--u-min-2) * 1rem), calc(var(--u-min-2) * 1rem + (var(--u-max-2) - var(--u-min-2)) * (100vw - var(--u-min-vw) * 1px) / var(--u-vw-range) * 16), calc(var(--u-max-2) * 1rem));
    --step-3: clamp(calc(var(--u-min-3) * 1rem), calc(var(--u-min-3) * 1rem + (var(--u-max-3) - var(--u-min-3)) * (100vw - var(--u-min-vw) * 1px) / var(--u-vw-range) * 16), calc(var(--u-max-3) * 1rem));
    --step-4: clamp(calc(var(--u-min-4) * 1rem), calc(var(--u-min-4) * 1rem + (var(--u-max-4) - var(--u-min-4)) * (100vw - var(--u-min-vw) * 1px) / var(--u-vw-range) * 16), calc(var(--u-max-4) * 1rem));
    --step-5: clamp(calc(var(--u-min-5) * 1rem), calc(var(--u-min-5) * 1rem + (var(--u-max-5) - var(--u-min-5)) * (100vw - var(--u-min-vw) * 1px) / var(--u-vw-range) * 16), calc(var(--u-max-5) * 1rem));

    /* --- Weight -------------------------------------------------------- */
    /* Named by the CSS value, not by a word. "bold" is a claim about how a
     * typeface renders; 700 is what you actually asked for, and two faces
     * disagree about which of their cuts reads as bold.
     *
     * THREE WEIGHTS, DELIBERATELY. Body, emphasis, headline — that is the
     * whole system, and it is expressed by which tokens exist rather than by
     * a rule asking politely. Adding --weight-800 needs a reason: the face
     * has a visibly distinct heavy cut AND 700 alone is not creating enough
     * contrast. If 700 and 800 render identically on screen, that is not one.
     * A flat hierarchy is almost always a spacing or size problem, not a
     * weight problem. */
    --weight-400: 400;  /* body */
    --weight-600: 600;  /* nav, card emphasis, eyebrows */
    --weight-700: 700;  /* headlines, CTAs */

    /* --- Leading ------------------------------------------------------- */
    /* A ladder rather than a derived scale, so it is t-shirt sized like
     * --space-* rather than numbered like --step-*. Tightest to loosest.
     *
     * The relationship worth holding: line-height falls as type size rises.
     * Display type at body leading looks unset; body copy at display leading
     * is unreadable. Pair --leading-xs with --step-4/5 and --leading-l with
     * --step-0. */
    --leading-xs: 1.05;   /* display, very large headlines */
    --leading-s: 1.18;     /* headings */
    --leading-m: 1.3;    /* subheadings, ledes, card copy */
    --leading-l: 1.5;     /* body copy */
    --leading-xl: 1.6;   /* long-form and small print, which need more air */

    /* --- Tracking ------------------------------------------------------ */
    /* Same shape: a ladder, tightest to loosest, in em so it scales with
     * whatever size it is applied to.
     *
     * The relationship: tracking tightens as size grows, and ALL-CAPS always
     * needs opening up — uppercase at 0 tracking reads cramped at any size.
     * Pair --tracking-xs with --step-4/5, --tracking-m with body, and
     * --tracking-l or --tracking-xl with any text-transform: uppercase. */
    --tracking-xs: -0.02em;  /* large display */
    --tracking-s: -0.01em;   /* headings */
    --tracking-m: 0;         /* body — the default, stated so it can be reset to */
    --tracking-l: 0.04em;    /* small caps-ish, buttons */
    --tracking-xl: 0.08em;   /* eyebrows and other all-caps runs */

    /* --- Space scale --------------------------------------------------- */
    /* Multiples of the base size rather than the type ratio, so spacing stays
     * predictable while type can be as dramatic as the site needs. */
    --space-3xs: clamp(0.25rem, calc(0.25rem + 0.1vw), 0.375rem);
    --space-2xs: clamp(0.5rem, calc(0.45rem + 0.2vw), 0.625rem);
    --space-xs: clamp(0.75rem, calc(0.68rem + 0.3vw), 0.9375rem);
    --space-s: clamp(1rem, calc(0.91rem + 0.43vw), 1.25rem);
    --space-m: clamp(1.5rem, calc(1.37rem + 0.65vw), 1.875rem);
    --space-l: clamp(2rem, calc(1.82rem + 0.87vw), 2.5rem);
    --space-xl: clamp(3rem, calc(2.73rem + 1.3vw), 3.75rem);
    --space-2xl: clamp(4rem, calc(3.64rem + 1.74vw), 5rem);
    --space-3xl: clamp(6rem, calc(5.46rem + 2.61vw), 7.5rem);

    /* --- Space pairs --------------------------------------------------- */
    /* A pair moves from the SMALLER step on a phone to the LARGER one on a
     * desktop, so the gap changes step rather than merely scaling. This is what
     * replaces per-breakpoint section padding: --space-l-2xl is roughly the old
     * "40-48px mobile, 80-96px desktop" rule, expressed once. */
    --space-2xs-xs: clamp(0.5rem, calc(0.35rem + 0.76vw), 0.9375rem);
    --space-xs-s: clamp(0.75rem, calc(0.57rem + 0.87vw), 1.25rem);
    --space-s-m: clamp(1rem, calc(0.7rem + 1.52vw), 1.875rem);
    --space-m-l: clamp(1.5rem, calc(1.13rem + 1.85vw), 2.5rem);
    --space-l-xl: clamp(2rem, calc(1.36rem + 3.15vw), 3.75rem);
    --space-xl-2xl: clamp(3rem, calc(2.27rem + 3.62vw), 5rem);
    --space-l-2xl: clamp(2rem, calc(0.91rem + 5.43vw), 5rem);
    --space-s-l: clamp(1.125rem, calc(0.72rem + 2.04vw), 2.5rem);  /* skip-a-step: grid gutter */
    --space-2xl-3xl: clamp(4rem, calc(2.55rem + 7.24vw), 7.5rem);

    /* --- Measure ------------------------------------------------------- */
    --measure: 65ch;        /* body copy */
    --measure-tight: 45ch;  /* card and caption copy */

    /* =====================================================================
     * COLOUR
     *
     * Three anchors drive the whole palette. Change them to match the
     * practice; everything else follows. See refs/design/DESIGN.md.
     *
     * That is the default path, and most sites never go past it. Underneath,
     * the palette is layered so a site can take more control WITHOUT hand-
     * writing hex values, which is what a migrated site needs:
     *
     *   1. Anchors        the three below. Tune these first.
     *   2. Per-role       --chroma-secondary, --l-tertiary and friends. A
     *                     brand's second colour is a designer's pick, not a
     *                     rotation of the first, so each role carries its own
     *                     hue, chroma and lightness, defaulting to the anchors.
     *   3. Neutrals       --hue-neutral, --chroma-ink, --chroma-ground. Greys
     *                     are their own decision -- see the block below.
     *   4. Polarity       --scheme. One number flips light/dark.
     *
     * Derive WITHIN a role, declare ACROSS roles. This is the same split
     * Bootstrap 5.3 makes (mix() generates each scale; the base of each theme
     * colour is declared) and the opposite of deriving everything from one
     * hue, which cannot express a real brand pair.
     *
     *   --palette-hue         the practice's brand hue, 0-360.
     *                         Roughly: 25 terracotta · 60 ochre · 145 green
     *                         · 195 teal · 240 blue · 275 violet · 340 rose
     *   --palette-chroma      how saturated the brand reads. OKLCH chroma is
     *                         NOT 0-1 — it runs about 0-0.37 in sRGB, and
     *                         above ~0.15 a surface colour starts to shout.
     *                         0.04 muted · 0.09 confident · 0.14 vivid
     *   --palette-secondary-shift
     *                         degrees from the primary to the secondary.
     *                         150-180 gives a complement; 30-60 an analogous
     *                         neighbour that reads calmer.
     * ===================================================================== */
    --palette-hue: 195;
    --palette-chroma: 0.09;
    --palette-secondary-shift: 150;

    --hue-primary: var(--palette-hue);
    --hue-secondary: calc(var(--palette-hue) + var(--palette-secondary-shift));

    /* Secondary and tertiary each carry their OWN chroma and lightness, not
     * the primary's. They default to it, so a site built from this template
     * still tunes with the three numbers above and renders identically.
     *
     * The override exists because a brand's second colour is often a designer's
     * choice rather than a systematic partner: on a migrated site the secondary
     * was measured at 3.6x the primary's chroma and 0.26 lighter in OKLCH
     * (deep forest green against warm terracotta). One shared chroma and one
     * shared lightness cannot express that pair, and forcing it produced a
     * washed-out grey-green beside a dusty mauve.
     *
     * This is the same concession the feedback colours below already make --
     * each of those carries its own chroma because "yellows need more to read
     * as yellow, reds less before they turn fluorescent". Brand colours want
     * the same latitude. */
    --chroma-secondary: var(--palette-chroma);
    --l-secondary: var(--l-solid);

    /* Tertiary: a third brand colour, typically doing button/CTA work, that is
     * neither a tint of the primary nor semantic. Practices routinely have one
     * ("Button Brown", "Morning Orange"). Defaults to an analogous neighbour of
     * the primary so it is harmless when unused. */
    --palette-tertiary-shift: 30;
    --hue-tertiary: calc(var(--palette-hue) + var(--palette-tertiary-shift));
    --chroma-tertiary: var(--palette-chroma);
    --l-tertiary: var(--l-solid);

    /* --- Neutrals: their own hue, not the brand's ---------------------
     *
     * --hue-neutral defaults to the brand hue, so a site that sets nothing
     * keeps the "greys feel of a piece with the accent" behaviour. But it is
     * a SEPARATE dial, because tying greys to the brand hue is not what any
     * mature system does and not what real practices choose:
     *
     *   - Tailwind ships five grey families (slate/gray/zinc/neutral/stone)
     *     precisely so the temperature of the greys is a decision.
     *   - Bootstrap keeps $gray independent of $theme-colors.
     *   - daisyUI declares base-100/200/300 per theme.
     *
     * And measured on our own migrated sites: both chose warm grounds at hue
     * 80-94 despite green brands at 145 and 166 -- roughly 80 degrees off the
     * brand. A green practice does not want green text, and at the default
     * hue 195 the old derivation gave --ink-strong an R-to-B spread of 17,
     * i.e. a visibly blue-black rather than a black.
     *
     * Set --hue-neutral to taste: the brand hue for a tinted-grey scheme, a
     * warm 70-90 for a settled off-black, or leave chroma at 0 for a true
     * neutral. --chroma-ink and --chroma-ground are separate because ink
     * carries tint better than a large ground does -- the same chroma that
     * reads as "warm grey" in a heading reads as "the wrong white" across a
     * full-bleed background. */
    /* +80 deg off the brand, which is what the previous code already did for
     * --ink-strong alone, and what both migrated practices independently
     * chose for their grounds (warm 80-94 against green brands at 145/166).
     * It defaults to the brand hue so that adding this dial changes nothing on
     * an existing site; the interesting values are elsewhere:
     *
     *   var(--palette-hue)              greys tinted toward the brand (default)
     *   calc(var(--palette-hue) + 80)   the offset real practices tend to pick
     *   70-90                           a warm, settled off-black
     *   with --chroma-ink: 0            a true neutral, no hue at all
     */
    --hue-neutral: var(--palette-hue);
    --chroma-ink: 0.012;    /* text. 0 = true grey; 0.03 = clearly tinted */
    --chroma-ground: calc(0.004 + 0.008 * (1 - var(--scheme)));  /* page background */
    --chroma-surface: calc(0.000 + 0.014 * (1 - var(--scheme))); /* raised surfaces */
    --chroma-border: calc(0.008 + 0.007 * (1 - var(--scheme)));  /* rules and outlines */
    /* Grounds carry MORE tint when dark and less when light: 0.014 across a
     * near-black reads as a warm dark, the same 0.014 across a near-white
     * reads as a colour cast. The old code expressed this by declaring the
     * light and dark neutrals separately; here it rides on --scheme. */

    /* Feedback hues are FIXED and do not follow the brand. A danger colour
     * that rotates with the practice's hue stops reading as danger — the
     * entire value of a semantic colour is that it means the same thing on
     * every site. Only the brand colours above derive from --palette-hue. */
    --hue-success: 145;
    --hue-warning: 75;
    --hue-danger: 27;
    --hue-info: 240;

    /* Lightness ramp. Dark mode overrides these below rather than declaring a
     * second palette — in OKLCH, dark mode is largely an inversion of these
     * four numbers. */
    --l-solid: 0.55;   /* solid fills: buttons, badges */
    --l-hover: 0.48;   /* one step darker for hover */
    --l-light: 0.66;   /* one step lighter: gradient partner for --primary */
    --l-muted: 0.92;   /* a touch stronger than pale, for wash gradients */
    --l-pale: 0.96;    /* tinted backgrounds */
    --l-on-solid: 0.99;/* text on a solid fill */

    /* --- Polarity -----------------------------------------------------
     *
     * --scheme is the one number that says which way round the site runs:
     * 1 = dark ink on a light ground (the norm), 0 = light ink on a dark
     * ground. Every neutral below is written as "light value, plus the
     * distance to its dark counterpart, times (1 - scheme)", so flipping the
     * one number inverts the whole set consistently.
     *
     * This is why the dark-mode block further down only sets --scheme and the
     * three brand-lightness values, instead of re-declaring eight neutrals
     * with a second set of hand-picked literals. Two hand-maintained sets
     * drift: the old block never declared --ink-strong at all, so headings
     * stayed at lightness 0.18 -- dark text on a dark ground.
     *
     * A site that should ALWAYS render dark sets --scheme: 0 here and deletes
     * the media query. A site that should never flip deletes the query alone. */
    --scheme: 1;

    /* Neutral lightness, light-mode value first, dark-mode value second.
     * Edit these to shift contrast; they are dials, not literals buried in
     * the colour definitions. */
    --l-ink-strong: calc(0.18 + 0.79 * (1 - var(--scheme)));
    --l-ink:        calc(0.25 + 0.70 * (1 - var(--scheme)));
    --l-ink-mid:    calc(0.45 + 0.35 * (1 - var(--scheme)));
    --l-ink-soft:   calc(0.54 + 0.12 * (1 - var(--scheme)));
    --l-bg:         calc(0.99 - 0.81 * (1 - var(--scheme)));
    --l-surface:    calc(1.00 - 0.78 * (1 - var(--scheme)));
    --l-border:     calc(0.90 - 0.58 * (1 - var(--scheme)));
    --l-border-strong: calc(0.82 - 0.40 * (1 - var(--scheme)));

    /* Brand */
    --primary: oklch(var(--l-solid) var(--palette-chroma) var(--hue-primary));
    --primary-hover: oklch(var(--l-hover) var(--palette-chroma) var(--hue-primary));
    --primary-light: oklch(var(--l-light) var(--palette-chroma) var(--hue-primary));
    --primary-muted: oklch(var(--l-muted) calc(var(--palette-chroma) * 0.35) var(--hue-primary));
    /* Chroma falls as lightness rises — a pale tint at full chroma reads
     * muddy rather than tinted. */
    --primary-pale: oklch(var(--l-pale) calc(var(--palette-chroma) * 0.25) var(--hue-primary));
    --on-primary: oklch(var(--l-on-solid) 0 0);

    --secondary: oklch(var(--l-secondary) var(--chroma-secondary) var(--hue-secondary));
    --secondary-hover: oklch(calc(var(--l-secondary) - 0.07) var(--chroma-secondary) var(--hue-secondary));
    --secondary-light: oklch(calc(var(--l-secondary) + 0.11) var(--chroma-secondary) var(--hue-secondary));
    --secondary-pale: oklch(var(--l-pale) calc(var(--chroma-secondary) * 0.25) var(--hue-secondary));
    --on-secondary: oklch(var(--l-on-solid) 0 0);

    /* Tertiary, same shape as the two above. */
    --tertiary: oklch(var(--l-tertiary) var(--chroma-tertiary) var(--hue-tertiary));
    --tertiary-hover: oklch(calc(var(--l-tertiary) - 0.07) var(--chroma-tertiary) var(--hue-tertiary));
    --tertiary-pale: oklch(var(--l-pale) calc(var(--chroma-tertiary) * 0.25) var(--hue-tertiary));
    --on-tertiary: oklch(var(--l-on-solid) 0 0);

    /* Aliases for the older names in DESIGN.md, so existing markup and any
     * site copied from an earlier template keep working. */
    --accent: var(--primary);
    --accent-dark: var(--primary-hover);
    --accent-pale: var(--primary-pale);

    /* Feedback. Chroma is per-hue: yellows need more to read as yellow, reds
     * less before they turn fluorescent. */
    --success: oklch(calc(var(--l-solid) - 0.03) 0.13 var(--hue-success));
    --success-pale: oklch(var(--l-pale) 0.03 var(--hue-success));
    --warning: oklch(0.75 0.14 var(--hue-warning));
    --warning-pale: oklch(var(--l-pale) 0.04 var(--hue-warning));
    --danger: oklch(var(--l-solid) 0.17 var(--hue-danger));
    --danger-pale: oklch(var(--l-pale) 0.03 var(--hue-danger));
    --info: oklch(var(--l-solid) 0.11 var(--hue-info));
    --info-pale: oklch(var(--l-pale) 0.03 var(--hue-info));

    /* Neutrals. DESIGN.md asked in prose for "a teal practice and a navy
     * practice want different --ink warmth"; --hue-neutral is that, made a
     * dial instead of a fixed derivation from the brand.
     *
     * Hue and chroma come from the --hue-neutral / --chroma-*
     * dials above, lightness from the --l-* dials, so all three are tunable
     * without editing any of these lines. Ink chroma tapers as text gets
     * lighter, and grounds use the lower --chroma-ground throughout. */
    --ink-strong: oklch(var(--l-ink-strong) calc(var(--chroma-ink) * 2.5) calc(var(--hue-neutral) + 80));  /* headings, dark surfaces */
    --ink: oklch(var(--l-ink) calc(var(--chroma-ink) * 1.25) var(--hue-neutral));
    --ink-mid: oklch(var(--l-ink-mid) var(--chroma-ink) var(--hue-neutral));
    --ink-soft: oklch(var(--l-ink-soft) calc(var(--chroma-ink) * 0.833) var(--hue-neutral));
    --bg: oklch(var(--l-bg) var(--chroma-ground) var(--hue-neutral));
    --surface: oklch(var(--l-surface) var(--chroma-surface) var(--hue-neutral));
    --border: oklch(var(--l-border) var(--chroma-border) var(--hue-neutral));
    --border-strong: oklch(var(--l-border-strong) calc(var(--chroma-border) * 1.25) var(--hue-neutral));

    /* Paired foreground for each ground, the way daisyUI's -content and
     * Bootstrap's -emphasis work. Use --on-bg rather than reaching for --ink
     * directly when the ground itself might be flipped. */
    --on-bg: var(--ink);
    --on-surface: var(--ink);

    /* --- Grid ---------------------------------------------------------- */
    /* Deliberately minimal: the container and gutter are fluid, placement is
     * left to each layout. Use .u-container and .u-grid below. */
    --grid-max-width: 77.5rem;
    --grid-gutter: var(--space-s-l);
    --grid-columns: 12;

    /* --- Radius -------------------------------------------------------- */
    /* Named by intent rather than by number, so a change of scale does not
     * mean auditing every --radius-3 in the stylesheet. */
    --radius-xs: 0.25rem;   /* tags, inline chips */
    --radius-s: 0.5rem;     /* buttons, inputs */
    --radius-m: 0.75rem;    /* cards */
    --radius-l: 1.25rem;    /* panels, modals, hero media */
    --radius-round: 50%;    /* avatars */
    --radius-pill: 999px;   /* pills, badges */

    /* --- Border widths ------------------------------------------------- */
    --border-thin: 1px;
    --border-medium: 2px;
    --border-thick: 4px;    /* accent rules, active states */

    /* --- Shadows ------------------------------------------------------- */
    /* Two knobs drive every shadow. --shadow-color takes the brand hue so a
     * raised card reads as part of this practice rather than as generic grey;
     * --shadow-strength is what dark mode adjusts, because a shadow on a dark
     * background needs MORE opacity to be seen, not less. */
    --shadow-color: var(--hue-primary, 220) 20% 15%;
    --shadow-strength: 1%;

    --shadow-s:
        0 1px 2px -1px hsl(var(--shadow-color) / calc(var(--shadow-strength) + 9%));
    --shadow-m:
        0 3px 5px -2px hsl(var(--shadow-color) / calc(var(--shadow-strength) + 3%)),
        0 7px 14px -5px hsl(var(--shadow-color) / calc(var(--shadow-strength) + 5%));
    --shadow-l:
        0 -1px 3px 0 hsl(var(--shadow-color) / calc(var(--shadow-strength) + 2%)),
        0 6px 12px -3px hsl(var(--shadow-color) / calc(var(--shadow-strength) + 3%)),
        0 15px 30px -6px hsl(var(--shadow-color) / calc(var(--shadow-strength) + 5%));

    --shadow-inner-s: inset 0 1px 2px 0 hsl(var(--shadow-color) / calc(var(--shadow-strength) + 6%));
    --shadow-inner-m: inset 0 2px 6px 0 hsl(var(--shadow-color) / calc(var(--shadow-strength) + 9%));

    /* --- Layers -------------------------------------------------------- */
    /* Six values, so z-index is never invented at the call site. */
    --layer-behind: -1;    /* decorative washes sitting behind content */
    --layer-base: 1;
    --layer-raised: 2;      /* hover cards, sticky rows */
    --layer-nav: 3;         /* sticky header */
    --layer-overlay: 4;     /* dropdowns, popovers */
    --layer-modal: 5;       /* dialogs and their backdrop */
    --layer-top: 2147483647;/* skip links, live-region alerts */

    /* --- Motion -------------------------------------------------------- */
    --duration-fast: 120ms;   /* hover, focus */
    --duration-base: 220ms;   /* most transitions */
    --duration-slow: 400ms;   /* entrances */
    --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
    --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
    --reveal-distance: 1.5rem;

    /* Typefaces. Set these per site; everything else references them. */
    --font-body: system-ui, -apple-system, 'Segoe UI', sans-serif;
    --font-heading: var(--font-body);   /* override for a display face */
}

/*
 * Dark mode. In OKLCH this is mostly an inversion of the lightness ramp
 * rather than a second palette — the hues and chroma above are unchanged.
 *
 * Two things are not simple inversions and are set explicitly:
 *   - the accent gets LIGHTER (0.68, not 0.55), because a mid-lightness
 *     accent loses contrast against a dark background;
 *   - --shadow-strength rises, because a shadow on a dark surface needs more
 *     opacity to be visible at all.
 *
 * Delete this block for a site that should only ever render light.
 */
@media (prefers-color-scheme: dark) {
    :root {
        /* Flipping --scheme inverts every neutral at once, via the --l-*
         * dials. The three brand values below are NOT a polarity flip -- a
         * brand colour has to get lighter and less contrasty on a dark
         * ground to stay legible, which is a different adjustment. */
        --scheme: 0;

        --l-solid: 0.68;
        --l-hover: 0.75;
        --l-pale: 0.24;
        --l-on-solid: 0.18;

        --shadow-strength: 12%;
    }
}

/* ═══════════════════════════════════════════════════════════════════════
 * RESET
 *
 * Josh Comeau's Custom CSS Reset (joshwcomeau.com/css/custom-css-reset/),
 * lightly adapted. Normalises browser defaults so the base layer below is
 * building on the same ground in every browser. Leave this alone; make
 * design decisions in the base layer and the tokens above it.
 * ═══════════════════════════════════════════════════════════════════════ */

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

* { margin: 0; }

html {
    -webkit-text-size-adjust: 100%;
    -moz-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

body {
    -webkit-font-smoothing: antialiased;
    line-height: 1.5;
}

/* Media is block-level and never overflows its container. */
img, picture, video, canvas, svg {
    display: block;
    max-width: 100%;
}

/* Form controls inherit typography rather than using browser chrome. */
input, button, textarea, select { font: inherit; }

/* Long words and URLs wrap instead of forcing a horizontal scrollbar. */
p, h1, h2, h3, h4, h5, h6 { overflow-wrap: break-word; }

/* A new stacking context on the root, so app-level layers cannot escape. */
#root, #__next { isolation: isolate; }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* ═══════════════════════════════════════════════════════════════════════
 * ELEMENT BASE LAYER
 *
 * Bare elements are styled here so a page is correct with no classes at
 * all. Without this, an unclassed <h2> falls back to the browser default
 * and whoever writes the page patches it with an inline style — which is
 * how a site ends up with a different heading treatment per page.
 *
 * Every heading has a matching .h1-.h6 class. Use the ELEMENT for document
 * structure (SEO, screen readers, outline) and the CLASS for appearance,
 * so an <h1> can look like an eyebrow without lying about the hierarchy:
 *
 *     <h1 class="h4">Still the page's real heading, just smaller</h1>
 *
 * Sites override these; they are a floor, not a straitjacket.
 * ═══════════════════════════════════════════════════════════════════════ */

body {
    font-family: var(--font-body);
    font-size: var(--step-0);
    font-weight: var(--weight-400);
    line-height: var(--leading-l);
    color: var(--ink);
    background: var(--bg);
}

/* Headings ─────────────────────────────────────────────────────────────
 * Margins are top-heavy on purpose: a heading belongs to what follows it,
 * so the space above is larger than the space below. */
h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
    margin: var(--space-l) 0 var(--space-s);
    font-family: var(--font-heading);
    font-weight: var(--weight-700);
    line-height: var(--leading-s);
    letter-spacing: var(--tracking-xs);
    color: var(--ink-strong);
    text-wrap: balance;
}

:where(h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6) + * {
    margin-top: 0;
}

/* A heading opening its container needs no space above it. */
:where(h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6):first-child {
    margin-top: 0;
}

h1, .h1 { font-size: var(--step-5); }
h2, .h2 { font-size: var(--step-4); }
h3, .h3 { font-size: var(--step-3); }
h4, .h4 { font-size: var(--step-2); }
h5, .h5 { font-size: var(--step-1); line-height: var(--leading-m); }
h6, .h6 {
    font-size: var(--step-0);
    line-height: var(--leading-m);
    letter-spacing: var(--tracking-m);
    text-transform: uppercase;
}

/* A highlighted phrase inside a heading. One mechanism, not three. */
:where(h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6) em {
    font-style: italic;
    color: var(--primary);
}

/* Text ─────────────────────────────────────────────────────────────── */
p, ul, ol, dl, blockquote, figure, table, pre {
    margin: 0 0 var(--space-m);
}

/*
 * Line length is a container's job, not every paragraph's — capping each <p>
 * leaves text hugging the left of any column already sized for reading.
 * Use .measure (or set a width on the container) where prose needs it.
 */
.measure { max-width: var(--measure); }
.measure-tight { max-width: var(--measure-tight); }

/* Opening paragraph: larger and looser than body copy. */
.lede {
    font-size: var(--step-1);
    line-height: var(--leading-m);
    color: var(--ink-mid);
}

/* Small label above a heading. */
.eyebrow {
    display: block;
    margin-bottom: var(--space-2xs);
    font-size: var(--step--1);
    font-weight: var(--weight-600);
    letter-spacing: var(--tracking-l);
    text-transform: uppercase;
    color: var(--primary);
}

small, .text-small { font-size: var(--step--1); }

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

a {
    color: var(--primary);
    text-decoration-thickness: 1px;
    text-underline-offset: 0.15em;
    transition: color var(--duration-fast) var(--ease-out);
}
a:hover { color: var(--primary-hover); }

/* A visible focus ring on every interactive element, always. */
:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
    border-radius: var(--radius-xs);
}

ul, ol { padding-left: var(--space-m); }

/*
 * List spacing applies to PROSE lists only. Navigation, button groups and
 * card grids are lists too, and flow margins on those knock flex/grid items
 * out of alignment (the site header) or balloon the spacing (the footer).
 *
 * Presence of a class is not the test — a footer nav is a nav whether or not
 * anyone put a class on it — so navigation context opts out explicitly.
 */
:where(ul, ol) > li { margin-bottom: var(--space-2xs); }
:where(ul, ol) > li:last-child { margin-bottom: 0; }

nav ul, nav ol,
header ul, header ol,
footer ul, footer ol,
menu {
    margin: 0;
    padding-left: 0;
    list-style: none;
}

nav li, header li, footer li, menu li {
    margin-bottom: 0;
}

/* A list explicitly used for layout carries no bullets, indent or margin. */
:where(ul, ol)[class] {
    margin: 0;
    padding-left: 0;
    list-style: none;
}

:where(ul, ol)[class] > li { margin-bottom: 0; }

blockquote {
    padding-left: var(--space-m);
    border-left: var(--border-thick) solid var(--primary-pale);
    color: var(--ink-mid);
    font-style: italic;
}

hr {
    height: 0;
    margin: var(--space-l) 0;
    border: 0;
    border-top: var(--border-thin) solid var(--border);
}

code, kbd, samp, pre {
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 0.9em;
}

/* Media ────────────────────────────────────────────────────────────────
 * Images are rounded by default. The square-photo bug on Wellbrook was an
 * <img> with no radius sitting beside cards that had one. */
img, picture, video, canvas, svg {
    height: auto;
}

img {
    border-radius: var(--radius-m);
    background: var(--surface);
}

/*
 * Logos, icons and inline SVG are not photographs — a background plate and a
 * radius are wrong for them, and show up as a white box on a dark footer.
 */
img[class*="logo"], img[class*="icon"], .logo img, svg {
    border-radius: 0;
    background: none;
}

/* Opt out where a radius is wrong: full-bleed art, decorative crops. */
img.is-flush, .is-flush img { border-radius: 0; background: none; }

figure { margin-inline: 0; }

figcaption {
    margin-top: var(--space-2xs);
    font-size: var(--step--1);
    color: var(--ink-soft);
}

/* Tables ───────────────────────────────────────────────────────────── */
table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

th, td {
    padding: var(--space-2xs) var(--space-xs);
    border-bottom: var(--border-thin) solid var(--border);
    vertical-align: top;
}

th {
    font-weight: var(--weight-600);
    color: var(--ink-strong);
}

tbody tr:last-child :where(th, td) { border-bottom: 0; }

/* Forms ────────────────────────────────────────────────────────────── */
label {
    display: block;
    margin-bottom: var(--space-3xs);
    font-size: var(--step--1);
    font-weight: var(--weight-600);
    color: var(--ink-strong);
}

input, select, textarea {
    width: 100%;
    padding: var(--space-2xs) var(--space-xs);
    font-family: inherit;
    font-size: var(--step-0);
    color: var(--ink);
    background: var(--surface);
    border: var(--border-thin) solid var(--border-strong);
    border-radius: var(--radius-s);
    transition: border-color var(--duration-fast) var(--ease-out);
}

input:hover, select:hover, textarea:hover { border-color: var(--ink-soft); }
input:focus, select:focus, textarea:focus { border-color: var(--primary); }

textarea { min-height: 8rem; resize: vertical; }

input[type="checkbox"], input[type="radio"] {
    width: auto;
    accent-color: var(--primary);
}

/* Buttons size to their content, not to the form-control full width. */
input[type="submit"], input[type="button"] { width: auto; }

/*
 * A bare <button> is usually a UI affordance — a menu toggle, a dropdown
 * trigger — not a visual button, so it gets a reset rather than a look.
 * Add .btn when you want one that looks like a button.
 */
button {
    font: inherit;
    color: inherit;
    background: none;
    border: 0;
    padding: 0;
    cursor: pointer;
}

::placeholder { color: var(--ink-soft); opacity: 1; }

fieldset { margin: 0 0 var(--space-m); padding: 0; border: 0; }

/* Buttons ──────────────────────────────────────────────────────────────
 * .btn is opt-in — put it on a <button> or an <a> that should look like a
 * button. Variants change colour, sizes change scale. A bare <button> is
 * reset above, not styled, because most of them are menu and dropdown
 * triggers rather than visual buttons. */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-3xs);
    padding: var(--space-2xs) var(--space-s);
    font-family: inherit;
    font-size: var(--step--1);
    font-weight: var(--weight-600);
    line-height: var(--leading-s);
    text-align: center;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    border: var(--border-thin) solid transparent;
    border-radius: var(--radius-s);
    transition: background var(--duration-fast) var(--ease-out),
                border-color var(--duration-fast) var(--ease-out),
                color var(--duration-fast) var(--ease-out);
}

.btn--primary {
    background: var(--primary);
    color: var(--on-primary);
}
.btn--primary:hover { background: var(--primary-hover); color: var(--on-primary); }

.btn--secondary {
    background: transparent;
    border-color: var(--primary);
    color: var(--primary);
}
.btn--secondary:hover { background: var(--primary-pale); color: var(--primary-hover); }

.btn--ghost {
    background: transparent;
    color: var(--ink-mid);
}
.btn--ghost:hover { background: var(--primary-pale); color: var(--primary); }

.btn--sm { padding: var(--space-3xs) var(--space-xs); font-size: var(--step--2); }
.btn--lg { padding: var(--space-xs) var(--space-m); font-size: var(--step-0); }

/*
 * ON A DARK GROUND
 *
 * Variants above assume a light background. On a dark or brand-coloured
 * section they invert: the solid button goes white, the outline picks up a
 * translucent white edge. Put .on-dark on the button or any ancestor.
 */
.on-dark .btn--primary,
.btn--primary.on-dark {
    background: var(--surface);
    color: var(--primary);
}

.on-dark .btn--primary:hover,
.btn--primary.on-dark:hover {
    background: var(--surface);
    color: var(--primary-hover);
}

.on-dark .btn--secondary,
.btn--secondary.on-dark {
    color: var(--on-primary);
    border-color: color-mix(in oklab, var(--on-primary) 40%, transparent);
}

.on-dark .btn--secondary:hover,
.btn--secondary.on-dark:hover {
    background: color-mix(in oklab, var(--on-primary) 12%, transparent);
    color: var(--on-primary);
}

.btn[disabled], .btn[aria-disabled="true"] {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Media frames ────────────────────────────────────────────────────────
 * A frame for an embed — map, video or photo — so the child fills a box of
 * known proportion instead of the element's natural size.
 *
 * The ratio, radius and any framing are DEFAULTS. Change them in this file
 * to suit the design; they are here so a frame is never unstyled, not to
 * fix how it should look. */
.media-frame {
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-radius: var(--radius-m);
    background: var(--surface);
}

.media-frame > :where(iframe, img, video) {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
    object-fit: cover;
    border-radius: 0;
}

.media-frame--square { aspect-ratio: 1; }
.media-frame--wide { aspect-ratio: 16 / 9; }

/* Cards ────────────────────────────────────────────────────────────────
 * Deliberately minimal — a surface with a radius. Sites compose their own
 * card variants on top; modelling every one here would be guesswork. */
.card {
    padding: var(--space-m);
    background: var(--surface);
    border: var(--border-thin) solid var(--border);
    border-radius: var(--radius-m);
}

/* Utility ──────────────────────────────────────────────────────────── */
.visually-hidden, .sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}

/*
 * Grid utilities. .u-container centres and pads; .u-grid lays out. Placement
 * within the grid is each layout's business — see refs/design/layouts.md.
 */
.u-container {
    max-width: var(--grid-max-width);
    margin-inline: auto;
    padding-inline: var(--grid-gutter);
}

.u-grid {
    display: grid;
    gap: var(--grid-gutter);
}

/*
 * Section rhythm. EVERY band on a page should be a .section — this is what
 * gives a page its vertical breathing room, and it is the single most
 * repeated review comment when it is missed ("this section is lacking top
 * and bottom padding", raised three separate times on one site).
 *
 * It is a class rather than a bare `section` selector because bands are not
 * always <section> elements, and because a band that deliberately runs flush
 * to its neighbour needs to say so out loud via --flush.
 *
 * Do not hand-roll the padding. --space-l-2xl is the site-wide "40px phone /
 * 80px desktop" step, already a clamp; a bespoke value breaks the rhythm.
 *
 * Verify with bandpad.mjs, which measures the real rendered ink gap between
 * adjacent bands and fails under 40px.
 */
.section { padding-block: var(--space-l-2xl); }
.section--tight { padding-block: var(--space-l); }
.section--flush { padding-block: 0; }

/* A centred intro (eyebrow + heading + standfirst) above a band's content. */
.section__head {
    max-width: 46rem;
    margin-inline: auto;
    text-align: center;
}

/*
 * Scroll entrance.
 *
 * Native scroll-driven animation — no library, no IntersectionObserver, no
 * JS. Add .reveal for a plain fade, or one of the directional modifiers.
 *
 * WHY THE WHOLE BLOCK IS INSIDE prefers-reduced-motion: a reveal implemented
 * as `opacity: 0` plus an animation leaves reduced-motion users staring at
 * invisible content when the animation never runs. Scoping the rule means
 * they simply get the content, with no trap to fall into.
 *
 * Safari and Firefox do not support animation-timeline yet, so content there
 * is simply visible. That is the correct failure for a practice site: no
 * entrance effect is always better than content that never arrives.
 */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        animation: reveal linear both;
        animation-timeline: view();
        animation-range: entry 0% cover 30%;
    }

    .reveal--up { --reveal-from: translateY(var(--reveal-distance)); }
    .reveal--down { --reveal-from: translateY(calc(var(--reveal-distance) * -1)); }
    .reveal--left { --reveal-from: translateX(var(--reveal-distance)); }
    .reveal--right { --reveal-from: translateX(calc(var(--reveal-distance) * -1)); }
}

@keyframes reveal {
    from {
        opacity: 0;
        transform: var(--reveal-from, none);
    }
}

/*
 * Doctor avatar fallback
 * Shows a gradient + person silhouette when no photo exists.
 * The <img> has onerror="this.style.display='none'" which hides
 * the broken image, revealing this CSS background underneath.
 *
 * Derived from the site's own --accent so a missing photo reads as part of
 * this practice rather than as a stray swatch. Define --accent in :root above.
 */
.doctor-avatar {
    position: relative;
    aspect-ratio: 4 / 5;
    overflow: hidden;
    border-radius: 0.5rem;
    background: linear-gradient(135deg,
        color-mix(in oklab, var(--primary) 85%, black),
        var(--primary));
    display: flex;
    align-items: center;
    justify-content: center;
}

.doctor-avatar::after {
    content: "";
    position: absolute;
    width: 40%;
    height: 40%;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='white' stroke-width='1.5'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M15.75 6a3.75 3.75 0 1 1-7.5 0 3.75 3.75 0 0 1 7.5 0ZM4.501 20.118a7.5 7.5 0 0 1 14.998 0A17.933 17.933 0 0 1 12 21.75c-2.676 0-5.216-.584-7.499-1.632Z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
}

.doctor-avatar img {
    position: relative;
    z-index: var(--layer-base);
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/*
 * Mediflare footer logo — dark/light variants.
 * Default: inverted (white text) for dark footers.
 * Add .footer-light to <footer> for light backgrounds.
 */
.mf-logo-light { display: none; }
.mf-logo-dark { display: inline; }
.footer-light .mf-logo-light { display: inline; }
.footer-light .mf-logo-dark { display: none; }

/* Hours: prevent time strings from breaking between number and am/pm */
.hours-table td:last-child,
.footer__hours-row span {
    white-space: nowrap;
}
/* ── 404 ──────────────────────────────────────────────────────────────
 * Served for any unmatched path, so it stands alone: say what happened, then
 * offer the way back rather than leaving a dead end.
 *
 * Deliberately written against fallbacks rather than this site's own token
 * names - every site in the fleet has a different vocabulary, and a 404 that
 * silently loses its layout because one variable is spelt differently is
 * worse than one that is slightly plainer. */
.notfound {
    padding-block: var(--space-3xl) var(--space-2xl);
    text-align: center;
}
.notfound__inner { max-width: 46rem; margin-inline: auto; }

/* Decorative, aria-hidden in the markup - the <h1> carries the meaning. Sized
 * large but kept at a legible contrast: a very pale numeral fails WCAG even
 * when it is ornamental. */
.notfound__code {
    font-size: calc(var(--step-5) * 2.4);
    font-weight: 700;
    line-height: 0.9;
    margin: 0 0 0.25em;
    opacity: 0.55;
}
.notfound h1 { margin-top: 0; }
.notfound__lede { font-size: var(--step-1); line-height: 1.5; margin-inline: auto; max-width: 40rem; }

.notfound__actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-xs);
    justify-content: center;
    margin-top: var(--space-m);
}

.notfound__links {
    margin-top: var(--space-xl);
    padding-top: var(--space-m);
    border-top: 1px solid currentColor;
    /* The rule is a hairline of the surrounding ink rather than a named border
     * token, so it works whatever the site's palette is. */
    border-color: color-mix(in oklab, currentColor 22%, transparent);
}
.notfound__links-title {
    font-size: var(--step-0);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin: 0 0 var(--space-xs);
}
.notfound__links ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2xs) var(--space-m);
    justify-content: center;
}
.notfound__links a {
    display: inline-block;
    /* WCAG 2.2 target size. */
    min-height: 24px;
    line-height: 24px;
    font-weight: 600;
}
/* ═══════════════════════════════════════════════════════════════════════
 * CAVENAGH MEDICAL CENTRE — site layer
 *
 * Everything above this line is the shared template. Everything below
 * retunes it to the practice's own design, transcribed from the WordPress
 * site at www.cavmed.com.au on 2026-09-08. Values are measured, not
 * chosen. Two conventions worth knowing before editing:
 *
 *  - The source sets its root font-size fluidly (12px + 0.3125vw: 16.5px at
 *    1440, 13.2px at 390) and sizes every piece of type in rem, so type here
 *    is in rem on the same root and scales exactly as the source does.
 *  - Paddings, gaps and box sizes are fixed pixels on the source, changed
 *    per breakpoint (tablet 1024, mobile 767), so they are pixels here too.
 * ═══════════════════════════════════════════════════════════════════════ */

:root {
    /* --- Palette (Elementor kit): blue primary, orange accent, navy ink --- */
    --palette-hue: 253.7;
    --palette-chroma: 0.107;
    --l-solid: 0.3854;              /* #10447B */
    --l-hover: 0.33;
    --palette-secondary-shift: 155.9;
    --chroma-secondary: 0.168;
    --l-secondary: 0.7214;          /* #F5812E */
    --hue-neutral: 250;
    --chroma-ink: 0;
    --l-ink-strong: 0.2465;
    --l-ink: 0.3791;
    --l-ink-mid: 0.45;
    --l-bg: 1;

    --blue: oklch(0.3854 0.1073 253.7);        /* #10447B primary */
    --orange: oklch(0.7214 0.1681 51.3);       /* #F5812E buttons, accents */
    --orange-dark: oklch(0.6553 0.1587 49.6);  /* #DB6E24 open FAQ title, hover */
    --navy: oklch(0.2465 0.0485 250.4);        /* #0D2237 headings */
    --text: oklch(0.3791 0 0);                 /* #424242 body */
    --text-alt: oklch(0.3211 0 0);             /* #333333 some body runs */
    --sub: oklch(0.3353 0.0119 258.4);         /* #33373D dropdown items */
    --pale: oklch(0.9324 0.0173 248);          /* #E0EAF4 pale-blue bands, pills */
    --hero-bg: oklch(0.8849 0.0291 241.6);     /* #C9DCEB behind the hero photo */
    --mid-blue: oklch(0.5498 0.1118 244.8);    /* #2E77AE FAQ band */
    --rule: oklch(0.8822 0 0);                 /* #D8D8D8 accordion rules */
    --white: oklch(1 0 0);
    --black: oklch(0 0 0);                     /* #000 backstop under hero photos */

    /* --- Type --- */
    --font-heading: Helvetica, Arial, sans-serif;
    --font-body: "Nunito", "Segoe UI", sans-serif;
    --font-accent: "Manrope", "Nunito", sans-serif;

    --shell-w: 1290px;
    --layer-nav: 3;
    --layer-overlay: 4;
}

html { font-size: 100%; }   /* the fluid scale carries this now; a fluid root here would scale every step twice */

body {
    font-family: var(--font-body);
    font-size: var(--step-0);
    line-height: 1.5;
    color: var(--text);
    background: var(--white);
}

/* The template tints every <img> with --surface and rounds it; this site's photos carry their own radius and no ground. */
img { background: none; border-radius: 0; }
h1, h2, h3, h4, h5, h6 { letter-spacing: normal; text-wrap: wrap; overflow-wrap: normal; }   /* the template tightens and balances headings; the source wraps plainly */

.skip-link { position: absolute; top: -100px; left: 0; z-index: var(--layer-top, 2147483647); padding: var(--space-3xs) var(--space-2xs); background: var(--white); color: var(--blue); }
.skip-link:focus { top: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

/* ── Shared pieces ────────────────────────────────────────────────── */

/* Mobile browsers paint -webkit-tap-highlight-color over a tapped link. The
 * default is a sky blue on Android/Chrome, which is not a colour in this
 * palette. Use the pale blue the sub-menu hover already uses, so a tap looks
 * like the hover state rather than a stray system colour. The alpha is low
 * because the highlight composites OVER the element: at 0.6 the orange active
 * pill washed out to a muddy (232,192,165), where 0.3 leaves it orange. */
a, button, [role="button"], summary, label { -webkit-tap-highlight-color: rgb(224 234 244 / 0.3); }

.shell { max-width: var(--shell-w); margin-inline: auto; }
.band .u-container { max-width: var(--shell-w); padding-inline: 0; }   /* the straddle gate looks for .overlap > .u-container > * */
.band { position: relative; padding-inline: var(--space-l); }
.title {
    margin: 0;
    font-family: var(--font-heading);
    font-size: var(--step-5);
    font-weight: 700;
    line-height: 1.2;
    color: var(--navy);
}
.intro-text { margin: 0; font-size: var(--step-1); line-height: 1.5; color: var(--text); }
.text-500 { font-weight: 500; }
.text-600 { font-weight: 600; }
p { margin: 0; }
p, li, td { line-height: 1.5; }

.pill {
    display: inline-block;
    margin: 0;
    padding: var(--space-xs) var(--space-s);   /* the rounded ends need noticeably more room across than down */
    line-height: 15px;
    border-radius: 25px;
    background: var(--pale);
    font-family: var(--font-body);
    font-size: var(--step--1);
    font-weight: 800;
    letter-spacing: normal;
    text-transform: uppercase;
    text-align: center;
    color: var(--navy);
}
.pill--outlined { padding-block: var(--space-2xs); border: 1px solid var(--navy); }   /* the visible outline makes the same padding read as roomier than on the filled pills */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-3xs);
    padding: var(--space-2xs) var(--space-s);
    border: 0;
    border-radius: 10px;
    background: var(--orange);
    font-family: var(--font-body);
    font-size: var(--step--1);
    font-weight: 700;
    line-height: 1.5;
    letter-spacing: 0.04em;                 /* deviation: the source has none; small uppercase on a saturated fill needs a little air */
    text-transform: uppercase;
    text-decoration: none;
    color: #fff;                            /* owner's decision 2026-09-17: white on live's #F5812E, 2.6:1 — below the 4.5:1 AA floor, accepted to match live */
}
.btn { transition: background var(--duration-base) var(--ease-out), transform var(--duration-base) var(--ease-out), box-shadow var(--duration-base) var(--ease-out); }
.btn:hover, .btn:focus-visible {   /* owner 2026-09-17: deepen a step and lift, rather than the blue swap */
    background: var(--orange-dark);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgb(13 34 55 / 0.22);
}
@media (prefers-reduced-motion: reduce) { .btn { transition: none; } .btn:hover, .btn:focus-visible { transform: none; } }
.btn__icon { width: 12px; height: 12px; fill: currentColor; flex: none; }

/* Elementor's highlight headline: a hand-drawn stroke under the words. */
.highlight { position: relative; display: inline-block; z-index: var(--layer-base); }
.squiggle {
    position: absolute;
    top: -10px; left: -10px;
    width: calc(100% + 20px);
    height: calc(100% + 20px);
    z-index: var(--layer-behind);
    fill: none;
    stroke: var(--orange);
    stroke-width: 9;
    stroke-linecap: round;
    stroke-linejoin: round;
    pointer-events: none;
}

/* The squiggle draws itself on as it scrolls into view. Same reasoning as the
 * .reveal block above: the animation only exists inside no-preference, and the
 * undrawn state (dashoffset: 600) is only ever set by the animation itself, so
 * a browser without animation-timeline — or a reduced-motion visitor — gets the
 * finished squiggle rather than a stroke that never arrives. 600 comfortably
 * exceeds the path's ~548-unit length, which preserveAspectRatio="none" stretches. */
@media (prefers-reduced-motion: no-preference) {
    .squiggle path {
        animation: squiggle-draw linear both;
        animation-timeline: view();
        animation-range: entry 20% cover 40%;
    }

    /* The hero squiggle is above the fold, where a view() timeline is already
     * past its range on load and would paint the finished stroke. It runs on a
     * plain time-based animation instead, delayed to land after the hero's
     * staggered reveal. Note it is the ANIMATION that hides the stroke, never a
     * static rule: if the animation never runs, the squiggle is simply there. */
    .hero__title .squiggle path {
        animation: squiggle-draw var(--duration-slow) var(--ease-out) 620ms both;
        animation-timeline: auto;
    }
}

@keyframes squiggle-draw {
    from { stroke-dasharray: 600; stroke-dashoffset: 600; }
    to   { stroke-dasharray: 600; stroke-dashoffset: 0; }
}

/* Tick lists: icon + text, 5px row padding, 5px between rows (the source's
 * icon-list widget). The default icon is 15px; the --big variant is 20px. */
.ticklist { list-style: none; margin: 0; padding: 0; }
.ticklist li { display: flex; align-items: center; padding-bottom: var(--space-3xs); }
.ticklist li + li { margin-top: var(--space-3xs); }
.ticklist li:last-child { padding-bottom: 0; }
.ticklist__icon { flex: none; width: 15px; height: 15px; margin-right: 3.75px; fill: var(--orange); }
.ticklist span { padding-left: var(--space-3xs); color: var(--navy); }
.ticklist--600 span { font-weight: 600; }
.ticklist--big .ticklist__icon { width: 20px; height: 20px; margin-right: var(--space-3xs); }

/* ── Waves (Elementor "waves" divider, three layered paths) ────────── */
.wave { position: absolute; left: 0; width: 100%; overflow: hidden; line-height: 0; pointer-events: none; }
/* --wave-render is the height the wave actually paints at; --wave-h is the
 * per-instance design height measured off live. They are the same above 1024,
 * where the viewport is wide enough for the shape to read as designed. Below
 * that, see the cap in the 1024 block: the SVG is viewBox 0 0 1000 100 with
 * preserveAspectRatio="none", so a fixed pixel height against a narrowing
 * viewport compresses the curve horizontally and the slopes get steep — at 390
 * a 50px wave is ~3.7x the slope it has at 1440. Anything keyed to a wave's
 * height must use --wave-render, not the raw --wave-h. */
.wave { --wave-render: var(--wave-h, 50px); }
.wave svg { position: relative; left: 50%; display: block; max-width: none; width: calc(100% + 1.3px); height: var(--wave-render); transform: translateX(-50%); }
.wave--wide svg { width: calc(130% + 1.3px); }
.wave--top { top: -1px; }
.wave--bottom { bottom: -1px; transform: rotate(180deg); }
.wave--flip { transform: scaleX(-1); }
.wave--bottom.wave--flip { transform: rotate(180deg) scaleX(-1); }
.wave--white path { fill: var(--white); }
.wave--blue path { fill: var(--blue); }
.wave--pale path { fill: var(--pale); }
.wave--navy path { fill: var(--navy); }

/* ── Header ───────────────────────────────────────────────────────── */
.site-header { position: relative; z-index: var(--layer-nav); }
.topbar {
    position: relative;
    z-index: var(--layer-raised);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-l);
    width: min(100%, 1200px);
    min-height: 130px;
    margin: 0 auto;
    padding: var(--space-m) var(--space-xl-2xl) var(--space-xs);   /* 95 at 1440; the logo column gives way first below ~1200 */
    background: var(--white);
}
.site-logo { flex: 0 1 460px; min-width: 200px; display: block; }
.site-logo img { display: block; width: 284px; height: auto; margin-left: 3px; }
.topbar__hours { flex: 0 0 230px; display: flex; align-items: flex-start; gap: var(--space-s); }
.topbar__icon { flex: none; width: 20px; height: 20px; fill: var(--orange); }
.topbar__icon--sm { width: 15px; height: 15px; }
.topbar__title {
    display: block;
    margin: 0;
    font-family: var(--font-heading);
    font-size: var(--step--1);
    font-weight: 700;
    line-height: 1.4;
    color: var(--navy);
    text-decoration: none;
}
.topbar__text { margin: 0; font-size: var(--step--1); line-height: 1.5; color: var(--text-alt); }
.topbar__text .hours-table, .topbar__text .hours-table tbody, .topbar__text .hours-table tr { display: block; margin: 0; padding: 0; border: 0; }
.topbar__text .hours-table td { display: inline; padding: 0; border: 0; font-size: inherit; line-height: inherit; color: inherit; white-space: normal; }
.topbar__text .hours-table td + td::before { content: " "; }
.topbar__book { flex: 0 0 241px; padding: var(--space-2xs); }
.topbar__phone { display: flex; align-items: center; gap: var(--space-s); margin: 0; }
.topbar__icon-link { display: inline-flex; }
.topbar__book .nav-cta { margin-top: var(--space-3xs); }

.nav-toggle { display: none; }

.navband { position: relative; z-index: var(--layer-base); background: var(--white); padding: var(--space-xs) var(--space-3xl) var(--space-l); }
.primary-nav { width: max-content; max-width: 100%; margin: 0 auto; padding-top: var(--space-s); border-top: 1px solid var(--blue); }
.nav-list { display: flex; flex-wrap: wrap; justify-content: center; margin: 0; padding: 0; list-style: none; }
.nav-list > li { position: relative; display: flex; }
.nav-link {
    display: inline-flex;
    align-items: center;
    margin: 0;
    padding: var(--space-xs) var(--space-s);
    border: 0;
    background: none;
    font-family: var(--font-heading);
    font-size: var(--step-0);
    font-weight: 600;
    line-height: 20px;
    color: var(--blue);
    text-decoration: none;
    cursor: pointer;
    transition: color 0.3s ease, transform 0.3s ease;
}
.nav-link:hover, .nav-link:focus-visible { color: var(--orange); transform: translateY(-8px); }   /* the source's "float" hover */
.nav-link.active, .nav-link[aria-current="page"] { color: var(--orange); }   /* deviation: matches live's active link exactly; 2.6:1 on white, below the 4.5:1 AA floor (owner's decision) */
.nav-caret { width: 16px; height: 16px; margin-left: var(--space-2xs); fill: currentColor; }
.nav-sub-toggle { display: inline-flex; align-items: center; margin-left: -10px; padding: var(--space-xs) var(--space-s) var(--space-xs) 0; border: 0; background: none; color: var(--blue); cursor: pointer; }
.nav-sub-toggle .nav-caret { margin-left: 0; }
.sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    z-index: var(--layer-overlay);
    display: none;
    min-width: max-content;
    margin: 0;
    padding: 0;
    list-style: none;
    background: var(--white);
    border-radius: 5px;
    box-shadow: 0 10px 30px rgba(13, 34, 55, 0.12);   /* the source shows none in a resting probe; a light lift keeps the panel legible over the hero photo */
}
.has-children:hover > .sub-menu, .has-children:focus-within > .sub-menu, .has-children.is-open > .sub-menu { display: block; }
.sub-menu a {
    display: block;
    padding: var(--space-xs) var(--space-s);
    font-family: var(--font-heading);
    font-size: var(--step-0);
    font-weight: 700;
    line-height: 20px;
    white-space: nowrap;
    color: var(--sub);
    text-decoration: none;
}
.sub-menu a:hover, .sub-menu a:focus-visible { background: var(--pale); color: var(--blue); }
.sub-menu li:first-child a { border-radius: 5px 5px 0 0; }
.sub-menu li:last-child a { border-radius: 0 0 5px 5px; }

/* ── Hero ─────────────────────────────────────────────────────────── */
.hero {
    position: relative;
    background: var(--hero-bg) url("/assets/images/hero-home.webp") center / cover no-repeat;
}
.hero__inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: var(--space-l) 0 650px;
    text-align: center;
}
.hero .pill { min-width: 250px; margin-bottom: var(--space-s); font-size: var(--step--1); font-weight: 700; line-height: 22px; }
.hero__title {
    margin: 0;
    font-family: var(--font-heading);
    font-size: var(--step-5);
    font-weight: 700;
    line-height: 1.2;
    color: var(--navy);
}
.hero__lede { max-width: 890px; margin: var(--space-s) 0 0; padding: 0; color: var(--navy); }
.hero .btn { margin-top: var(--space-xs); }

/* ── Blue icon strip ──────────────────────────────────────────────── */
.strip { background: var(--blue); padding: 0 var(--space-l) 0 var(--space-2xl); }
.strip__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: var(--space-xl);
    margin: 0 auto;
    padding: var(--space-l) 0;
    list-style: none;
}
.strip__grid li { display: flex; flex-direction: column; align-items: center; gap: var(--space-s); text-align: center; }
.strip__icon { width: 75px; height: 75px; }
.strip__grid h2 { margin: var(--space-3xs) 0 var(--space-2xs); font-family: var(--font-heading); font-size: var(--step-1); font-weight: 700; line-height: 1.4; color: var(--white); }

/* ── Bands ────────────────────────────────────────────────────────── */
.band__inner { padding: var(--space-3xl) 0; }
.spacer { position: relative; background: var(--blue); }
.spacer--a { height: 70px; }
.spacer--b { height: 40px; }

/* Two-column photo + copy (who we are, careers) */
.two-up { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-2xl); }
.two-up__photo { display: block; width: 100%; height: auto; border-radius: 20px; align-self: center; }
/* The source stacks widgets at a 35px gap, each pulling back with negative margins; the net rhythm is 22px, measured text-top to text-top. */
.two-up__text { display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: var(--space-s); }
.two-up__text > * { margin: 0; }
.two-up__text .btn { margin-top: var(--space-3xs); }
.two-up--who .text-500, .two-up--who .text-600 { color: var(--text); }
.counters { display: grid; grid-template-columns: 1fr 1fr; width: 100%; margin-top: var(--space-m); }
.counter { display: flex; flex-direction: column; gap: var(--space-2xs); padding: var(--space-m) 0 var(--space-m); text-align: center; }
.counter + .counter { border-left: 1px solid var(--rule); }   /* light-grey divider between the two counters */
.counter__num { margin: 0; font-family: var(--font-heading); font-size: var(--step-5); font-weight: 700; line-height: 1.2; color: var(--orange); }
.counter__label { margin: 0; font-size: var(--step-1); font-weight: 700; line-height: 1.5; text-transform: uppercase; color: var(--text); }

/* Core statement */
.band--core { background: linear-gradient(var(--pale) 0%, var(--white) 100%); }
.core { display: flex; flex-direction: column; align-items: center; text-align: center; }
.core__emblem { display: block; width: 90px; height: 90px; margin: var(--space-s) 0 var(--space-m); border-radius: 100px; }
.core__eyebrow { margin: 0 0 var(--space-s); font-size: var(--step-1); font-weight: 700; line-height: 1.5; text-transform: uppercase; color: var(--text); }
.core__statement { max-width: 100%; margin: 0 0 var(--space-s); font-family: var(--font-heading); font-size: var(--step-3); font-weight: 700; line-height: 1.3; color: var(--navy); }
.core__sig { display: flex; flex-direction: column; gap: 2px; margin: 0; text-transform: uppercase; }
.core__sig-name { font-family: var(--font-heading); font-size: var(--step-2); font-weight: 700; line-height: 1.4; color: var(--navy); }
.core__sig span { font-size: var(--step-0); color: var(--text); }

/* Services */
.services-head { display: flex; padding-bottom: var(--space-xl); }
.services-head__left { display: flex; flex: 0 0 60%; flex-direction: column; align-items: flex-start; gap: var(--space-s); }
.services-head__left .title { max-width: 579px; }
.services-head .pill { font-size: var(--step--1); }
.services-head__right { flex: 0 0 40%; padding-top: var(--space-2xl); text-align: right; }
.services-head__right p { color: var(--navy); }
.services-head__right .btn { margin-top: var(--space-s); }
.services-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-m); }   /* 300px tracks at 1440, shrinking with the shell */
.svc-list .ticklist { margin: -6px 0 -8px; }   /* the source's widget wrapper pulls the list up by this much */
.svc-list {
    padding: var(--space-l);
    background: var(--white);
    border: 1px solid var(--orange);
    border-radius: 20px;
    box-shadow: 0 1px 20px rgba(0, 0, 0, 0.04);
}
.svc-card { display: flex; flex-direction: column; align-items: center; text-align: center; }
.svc-card img { display: block; width: 100%; height: auto; margin-bottom: var(--space-s); border-radius: 20px; }
.svc-card h3 { margin: var(--space-3xs) 0 var(--space-xs); font-family: var(--font-heading); font-size: var(--step-2); font-weight: 700; line-height: 1.5; color: var(--navy); }
.svc-card p { margin: 0 0 var(--space-m); font-weight: 500; color: var(--text); }

/* General reminders */
.band--reminders { background: var(--pale); }
.band--reminders .band__inner { display: flex; flex-direction: column; padding: var(--space-3xl) 0 var(--space-2xl); }
.reminders-head { margin-bottom: var(--space-xl); }
.reminders-photo { margin-bottom: var(--space-xl); }
.reminders-head { text-align: center; }
.reminders-lede { max-width: 750px; margin: var(--space-s) auto 0; font-family: var(--font-accent); font-size: var(--step-0); font-weight: 500; line-height: 1.6; color: var(--navy); }
.reminders-photo { display: block; width: 100%; height: clamp(180px, 22vw, 380px); object-fit: cover; border-radius: 20px; }   /* the source is a 2560x595 banner (4.3:1), so height:auto rendered it 300px at 1440 and an 84px letterbox at 390; cover crops it to a usable shape instead */
.reminders { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-2xl); margin: 0; padding: 0; list-style: none; }
.reminders li { display: flex; flex-direction: column; align-items: center; margin-bottom: -6px; text-align: center; }
.reminders__num {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    margin-bottom: var(--space-s);
    border: 1px solid var(--orange);
    border-radius: 50%;
    font-family: var(--font-accent);
    font-size: var(--step-1);
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.4px;
    color: var(--orange);
}
.reminders h3 { margin: 0 0 var(--space-xs); font-family: var(--font-heading); font-size: var(--step-2); font-weight: 700; line-height: 1.5; color: var(--navy); }
.reminders h3 a { color: inherit; text-decoration: none; }
.reminders p { color: var(--text); }

/* Doctors */
.band--doctors .band__inner { padding: var(--space-3xl) 0 var(--space-3xl); }
.doctors { display: grid; grid-template-columns: 2fr 1fr; }
.doctors__intro { grid-column: 2; grid-row: 1; display: flex; flex-direction: column; align-items: flex-start; padding-left: var(--space-2xl); }
.doctors__intro .pill { margin-bottom: var(--space-s); }
.doctors__intro .title { margin-bottom: var(--space-s); }
.doctors__intro p { margin-bottom: var(--space-m); }
.doctors__grid { grid-column: 1; grid-row: 1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-m); }
.doctors__col { display: flex; flex-direction: column; gap: var(--space-m); margin: 0; padding: 0; list-style: none; }
.doc { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-m); align-items: center; }
.doc__photo { width: 150px; height: 150px; border-radius: 10px; object-fit: cover; justify-self: center; }
.doc__name { margin: 0 0 var(--space-2xs); font-family: var(--font-heading); font-size: var(--step-2); font-weight: 700; line-height: 1.5; color: var(--navy); }
.doc__quals { margin: 0; color: var(--text); }

/* FAQ */
.band--faq { background: var(--mid-blue); isolation: isolate; }
.band--faq::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: var(--layer-behind);
    background: url("/assets/images/home-faq-bg.webp") center / cover no-repeat;
    opacity: 0.77;
}
.band--faq .band__inner { padding: var(--space-3xl) 0; }
.faq-layout { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.faq-card { display: flex; flex-direction: column; align-items: flex-start; padding: var(--space-2xl); background: var(--white); border-radius: 20px 0 0 20px; }
.faq-card .pill { margin-bottom: var(--space-s); }
.faq-card .title { margin-bottom: var(--space-m); }
.faq-intro { margin-bottom: var(--space-l); font-size: var(--step-1); color: var(--text-alt); }
.faqs { width: 100%; }
.faq__q {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-2xs);
    padding: var(--space-s) 0;
    border-bottom: 1px solid var(--rule);
    font-family: var(--font-heading);
    font-size: var(--step-1);
    font-weight: 700;
    line-height: 1.4;
    color: var(--blue);
    list-style: none;
    cursor: pointer;
}
.faq__q::-webkit-details-marker { display: none; }
.faq[open] .faq__q { color: var(--orange-dark); }
.faq__plus, .faq__minus { flex: none; width: 13px; height: 15px; fill: currentColor; }
.faq__minus { display: none; }
.faq[open] .faq__minus { display: block; }
.faq[open] .faq__plus { display: none; }
.faq__a { padding: var(--space-s) 0 var(--space-s); border-bottom: 1px solid var(--rule); font-size: var(--step-1); color: var(--text); }
.faq__a p + p { margin-top: var(--space-xs); }
.faq__a a { color: var(--navy); }
.faq-photo { min-height: 100%; background: url("/assets/images/home-faq-photo.webp") center / cover no-repeat; border-radius: 0 20px 20px 0; }

/* Careers */
.two-up--careers { align-items: center; }

/* Location */
.band--location { background: var(--pale); }
.band--location .band__inner { padding: 175px 0 var(--space-3xl); }
.location { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.location__text { display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: var(--space-l); padding-right: var(--space-2xl); }
.location__copy { display: flex; flex-direction: column; align-items: flex-start; }
.location__copy .pill { margin-bottom: var(--space-m); }
.location__copy .title { margin-bottom: var(--space-s); }
.location .prose p { margin: 0 0 var(--space-xs); color: var(--text); }
.location .prose p:last-child { margin-bottom: 0; }
.location__map iframe { display: block; width: 100%; height: 550px; border: 0; border-radius: 20px; }

/* ── Footer ───────────────────────────────────────────────────────── */
.site-footer { color: var(--white); }
.footer-top { position: relative; padding: var(--space-2xl) var(--space-l) var(--space-l); background: var(--white); }
.footer-top__inner { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-l); align-items: center; }
.footer-logo { display: block; width: 350px; max-width: 100%; }
.footer-logo img { display: block; width: 100%; height: auto; }
.footer-top__cta { display: flex; justify-content: flex-end; align-items: center; gap: var(--space-m); }
.footer-tagline { margin: 0; font-family: var(--font-heading); font-size: var(--step-1); font-weight: 700; line-height: 1.4; color: var(--navy); }
.footer-main { position: relative; display: flex; min-height: 270px; background: var(--blue); }
.footer-main__inner {
    display: flex;
    flex-wrap: nowrap;                          /* three columns down to 1025; the gap gives way before the columns do */
    justify-content: flex-end;
    align-items: center;
    gap: var(--space-xl) var(--space-2xl-3xl);       /* 200 at 1440, as live */
    width: min(100%, 1400px);
    margin: 0 auto;
    padding: var(--space-l) 0 0;
}
.footer-col p { margin: 0 0 var(--space-xs); color: var(--white); }
.footer-col strong { font-weight: 700; }
.footer-col a { color: var(--white); text-decoration: none; }
.footer-col a:hover { text-decoration: underline; }
.footer-col--hours { flex: 0 1 20%; }
.footer-col--contact { flex: 0 1 32%; }
.footer-col--address { flex: 0 1 19%; }
.footer-col--hours p { margin: 0; }
.footer-col .hours-table, .footer-col .hours-table tbody, .footer-col .hours-table tr { display: block; margin: 0; padding: 0; border: 0; }
.footer-col .hours-table { margin-bottom: var(--space-xs); }
.footer-col .hours-table td { display: inline; padding: 0; border: 0; font-size: inherit; line-height: inherit; color: var(--white); white-space: normal; }
.footer-col .hours-table td:first-child { font-weight: 700; }
.footer-col .hours-table td + td::before { content: " "; }
.footer-bar { padding: var(--space-xs); background: var(--orange); font-size: var(--step--1); text-align: center; color: var(--navy); }   /* owner: one step smaller, even padding (live 1rem, 15/25) */   /* deviation: white on the orange bar is 2.6:1; navy matches the button decision */
.footer-links { margin: 0 0 4px; }
.footer-links a { color: var(--navy); text-decoration: none; }
.footer-links a:hover { text-decoration: underline; }
.footer-copy { margin: 0; }
.footer-powered { display: flex; align-items: center; justify-content: center; gap: var(--space-2xs); padding: var(--space-2xs) var(--space-3xs); background: var(--navy); }
.footer-powered p { margin: 0; font-size: var(--step--1); }
.footer-powered img { display: block; width: 75px; height: auto; }

/* ── Tablet (the source's 1024 breakpoint) ────────────────────────── */
@media (max-width: 1024px) {
    /* Tone down the wave slopes as the viewport narrows. preserveAspectRatio
     * is "none", so holding the design height while the width shrinks makes
     * the curve steeper and steeper; 7vw keeps the painted slope at a steady
     * ~0.70 instead of 1.28 (50px) to 3.69 (144px) at 390. The shape still
     * reads as a wave, just a calmer one. */
    .wave { --wave-render: min(var(--wave-h, 50px), 7vw); }

    .topbar { width: 100%; min-height: 0; padding: var(--space-s) var(--space-xs) var(--space-xs); gap: var(--space-l); }
    .site-logo { flex: 0 1 auto; }
    .site-logo img { width: clamp(180px, 25.7vw, 284px); margin-left: 0; }
    .topbar__hours { flex: 0 1 320px; }
    .topbar__book { flex: 0 1 auto; }
    .navband { padding: 0 var(--space-l) var(--space-l); }
    .primary-nav { width: 100%; padding-top: 0; }
    .nav-link { padding: var(--space-xs) 4px; }
    .nav-sub-toggle { margin-left: -4px; padding-right: 4px; }
    .hero { padding-inline: var(--space-l); }
    .hero__inner { padding: var(--space-xl) 0 550px; }
    .hero__lede { padding: 0; }
    .strip { padding: 0 var(--space-l); }
    .strip__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-l); }
    .band--who .band__inner { padding: var(--space-3xl) 0 var(--space-2xl); }
    .two-up { grid-template-columns: minmax(0, 1fr); }
    .two-up__photo { order: 2; }   /* the source reverses the columns below 1024: copy first, photo second */
    .two-up--who .title { max-width: 398px; }      /* the source's heading widget is width:initial at tablet, so it wraps early */
    .two-up--careers .title { max-width: 595px; }
    .two-up--careers img { width: 800px; max-width: 100%; justify-self: center; }
    .spacer { display: none; }
    .band--core .band__inner { padding: var(--space-2xl) 0; }
    .band--services .band__inner { padding: var(--space-3xl) 0 var(--space-2xl); }
    .services-head { flex-direction: column; padding-bottom: var(--space-xl); }
    .services-head__left, .services-head__right { flex: none; }
    .services-head__right { max-width: 54%; padding-top: var(--space-xs); text-align: left; }
    .services-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-l) var(--space-m); }
    .reminders-head { margin-bottom: var(--space-xl); }
    .reminders-photo { margin-bottom: var(--space-xl); }
    .reminders { gap: var(--space-l); }
    .band--doctors .band__inner { padding: var(--space-3xl) 0 var(--space-2xl); }
    .doctors { grid-template-columns: minmax(0, 1fr); gap: var(--space-xl); }
    .doctors__intro { grid-column: 1; grid-row: 1; padding-left: 0; }
    .doctors__grid { grid-column: 1; grid-row: 2; grid-template-columns: minmax(0, 1fr); }
    .faq-layout { grid-template-columns: minmax(0, 1fr); }
    .faq-card { padding: var(--space-xl); border-radius: 20px 20px 0 0; }
    .faq-photo { min-height: 450px; border-radius: 0 0 20px 20px; }
    .band--careers .band__inner { padding: var(--space-2xl) 0; }
    .band--location .band__inner { padding: var(--space-3xl) 0 var(--space-2xl); }
    .location { grid-template-columns: minmax(0, 1fr); gap: var(--space-l); }
    .location__text { padding-right: 0; }
    .location .prose { max-width: 545px; }
    .location__map iframe { height: 370px; }
    .footer-top { padding: var(--space-l) var(--space-l); }
    .footer-top__inner { grid-template-columns: minmax(0, 35fr) minmax(0, 65fr); }
    .footer-top__cta { justify-content: space-between; }
    .footer-main { min-height: 0; }
    .footer-main__inner { flex-wrap: nowrap; justify-content: flex-end; gap: var(--space-l); padding: var(--space-2xl) 3% var(--space-l) 10%; }   /* the 50px top wave sits inside this padding */
    .footer-col--hours, .footer-col--contact, .footer-col--address { flex: 1 1 0; }
}

/* ── Mobile (the source's 767 breakpoint) ─────────────────────────── */
@media (max-width: 767px) {
    .topbar { padding: var(--space-s); gap: var(--space-2xs); }
    .topbar__hours, .topbar__phone { display: none; }
    .site-logo { flex: 0 0 auto; min-width: 0; }
    .site-logo img { width: 130px; margin-left: 0; }
    .topbar__book { flex: 0 1 auto; padding: 0; margin-left: auto; }
    .topbar__book .nav-cta { margin-top: 0; padding: var(--space-2xs) var(--space-xs); letter-spacing: normal; }   /* 390 budget: 130 logo + 162 button + 34 toggle + gaps */
    .nav-toggle { flex: none; }
    .nav-cta .btn__icon { display: none; }
    .nav-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 34px;
        height: 34px;
        padding: var(--space-3xs);
        border: 0;
        border-radius: 3px;
        background: var(--orange);
        color: var(--white);
        cursor: pointer;
    }
    .nav-toggle svg { width: 23px; height: 23px; fill: currentColor; }
    .nav-toggle__close { display: none; }
    .nav-toggle[aria-expanded="true"] .nav-toggle__open { display: none; }
    .nav-toggle[aria-expanded="true"] .nav-toggle__close { display: block; }
    /* The bottom wave is 50px tall and sits at bottom: -1px, so the navband has
     * to be at least that tall for the white to run the full height of the wave
     * shape. At min-height: 37px the background stopped short and the wave met
     * the hero photo as a straight edge instead of flowing out of the nav. */
    .navband { min-height: calc(min(50px, 7vw) + 1px); padding: 0; }
    .primary-nav { display: none; width: 100%; padding: 0; border-top: 0; }
    .primary-nav.is-open { display: block; padding-bottom: var(--space-l); }   /* clear the navband's bottom wave, which otherwise paints over the last items (a margin would collapse out of the navband) */
    .nav-list { flex-direction: column; }
    .nav-list > li { display: block; }
    /* The link + caret pair stays centred, but the row itself must span the full
     * width so the sub-menu below it does too: justify-content: center shrank
     * the grid to its content, and the sub-menu's grid-column: 1 / -1 then
     * covered only those two narrow columns. */
    .nav-list > li.has-children { display: grid; grid-template-columns: 1fr auto auto 1fr; }
    .nav-list > li.has-children > .nav-link { grid-column: 2; }
    .nav-list > li.has-children > .nav-sub-toggle { grid-column: 3; }
    .nav-list > li.has-children .nav-link { width: auto; padding-right: 0; }   /* Services is a link plus a toggle; the pair sits centred like the single-button parents */
    .nav-link { display: flex; justify-content: center; width: 100%; padding: var(--space-2xs) var(--space-s); transform: none; }
    .nav-link:hover, .nav-link:focus-visible { transform: none; }
    .nav-link.active, .nav-link[aria-current="page"] { background: var(--orange); color: #fff; }   /* owner 2026-09-17: white on the orange pill, 2.6:1, matching the button decision */
    .nav-sub-toggle { margin: 0; padding: var(--space-2xs) var(--space-s) var(--space-2xs) var(--space-2xs); }
    .sub-menu { position: static; grid-column: 1 / -1; min-width: 0; width: 100%; box-shadow: none; border-radius: 0; background: var(--white); }   /* white like the rest of the open menu; min-width: max-content from the desktop rule kept it at content width */
    .has-children:hover > .sub-menu, .has-children:focus-within > .sub-menu { display: none; }
    .has-children.is-open > .sub-menu { display: block; }
    /* On white the sub-items' 700 weight and dark grey read as bolder than the
     * parent links they sit under; match the nav links so the open menu is one
     * consistent list. Desktop keeps the panel's own heavier styling. */
    /* Tighter rows inside the dropdown so the two or three child pages read as
     * one close-set group. They must be tighter than the PARENT rows, not just
     * tighter than the desktop panel: at --space-2xs they matched .nav-link
     * exactly (33.4px both), so the dropdown read as more of the same list.
     * --space-3xs plus a 1.3 line-height puts a sub-row near 25px against the
     * parents' 33.4px. Still clear of the 24x24 WCAG 2.2 AA target minimum
     * (2.5.8); the 44px figure is AAA (2.5.5). */
    .sub-menu a { padding-block: var(--space-3xs); line-height: 1.3; text-align: center; white-space: normal; font-weight: 600; color: var(--blue); }

    /* Now that the panel is white like the navband, nothing marked where one
     * item ended and the next began. A 1px --rule hairline — the same grey the
     * FAQ rules and the counters divider use — separates every row, including
     * the sub-items, without reintroducing a coloured block. Top border rather
     * than bottom, so the list never ends on a trailing line. */
    /* Hairline between the top-level items only. Inside an open sub-menu a
     * divider on every row pushed the children apart, so the group read as a
     * list of unrelated links rather than as the parent's children. Without
     * them the rows sit closer and read as one block.
     *
     * The rows keep their --space-xs block padding: they are already 40.3px
     * tall at 390, and trimming the padding to close the gap further would
     * drop them under the 44px touch target — not a trade worth making on
     * navigation links. The panel's own padding is trimmed instead. */
    .nav-list > li + li { border-top: 1px solid var(--rule); }
    .sub-menu { padding-block: var(--space-3xs); }
    .sub-menu li:first-child a, .sub-menu li:last-child a { border-radius: 0; }   /* the desktop panel's rounded ends read as a stray corner on a full-width band */
    .band { padding-inline: var(--space-s); }
    .hero { padding-inline: var(--space-s); }
    .hero__inner { padding: var(--space-xl) 0 500px; }
    .hero__title { font-size: var(--step-2); }
    .strip { padding: 0 var(--space-s); }
    .strip__grid { grid-template-columns: minmax(0, 1fr); gap: var(--space-l); padding: var(--space-xl) 0; }
    .counters { grid-template-columns: minmax(0, 1fr); }
    .counter + .counter { border-left: 0; border-top: 1px solid var(--rule); }   /* stacked: the divider turns horizontal */
    /* The waves keep their desktop height on mobile (58px on who, 50px on core)
     * while --space-xl computes to ~41px at 390, so the wave overlapped the
     * heading. Clear the tallest of them, then the normal padding below it. */
    .band--who .band__inner, .band--core .band__inner, .band--careers .band__inner { padding: calc(min(58px, 7vw) + var(--space-m)) 0 var(--space-xl); }
    .two-up { gap: var(--space-l); }
    .band--services .band__inner { padding: var(--space-3xl) 0 var(--space-xl); }
    .services-head { padding-bottom: var(--space-l); }
    .services-head__right { max-width: none; }
    .services-grid { grid-template-columns: minmax(0, 1fr); gap: var(--space-l); }
    .band--reminders .band__inner { padding: var(--space-3xl) 0 var(--space-xl); }
    .reminders-head { margin-bottom: var(--space-l); }
    .reminders-photo { margin-bottom: var(--space-l); }
    .reminders { grid-template-columns: minmax(0, 1fr); gap: var(--space-l); }
    .band--doctors .band__inner { padding: var(--space-3xl) 0 var(--space-2xl); }
    .doctors__grid, .doctors__col { gap: var(--space-l); }
    .doc { grid-template-columns: minmax(0, 1fr); gap: var(--space-m); text-align: center; }
    /* The doctor cards already centre here; the intro kept flex-start from the
     * desktop two-column layout, so the heading and button sat left of them. */
    .doctors__intro { align-items: center; text-align: center; }
    .band--faq .band__inner { padding: var(--space-3xl) 0; }
    .faq-card { padding: var(--space-l) var(--space-s); }
    .band--location .band__inner { padding: var(--space-3xl) 0 var(--space-xl); }
    .location__map iframe { height: 330px; }
    .footer-top { padding: calc(min(50px, 7vw) + var(--space-m)) var(--space-s) var(--space-l); }   /* clears the wave at whatever height the cap paints it */
    .footer-top__inner { grid-template-columns: minmax(0, 1fr); gap: var(--space-l); justify-items: center; text-align: center; }
    .footer-logo { width: 298px; }
    .footer-top__cta { flex-direction: column; align-items: center; gap: var(--space-l); }
    .footer-main__inner { flex-direction: column; align-items: stretch; gap: var(--space-xl); padding: var(--space-2xl) var(--space-s) var(--space-m); }
    .footer-col--hours, .footer-col--contact, .footer-col--address { flex: none; width: 100%; }
    .footer-bar { padding: var(--space-xs) var(--space-2xs); }
}

/* ── Entrance reveals ─────────────────────────────────────────────── */
/* Elements opt in with data-reveal="up|down|left|right|fade" and an optional
 * data-reveal-stagger="<ms>"; partials/scripts.html reveals them once, the
 * first time they enter the viewport, and never hides them again. Travel is
 * short on purpose — a nudge, not a slide. */
.js [data-reveal] {
    opacity: 0;
    transition: opacity 0.76s cubic-bezier(0.22, 1, 0.36, 1) var(--reveal-delay, 0ms), transform 0.76s cubic-bezier(0.22, 1, 0.36, 1) var(--reveal-delay, 0ms);
    will-change: opacity, transform;
}
.js [data-reveal="up"]    { transform: translateY(26px); }
.js [data-reveal="down"]  { transform: translateY(-26px); }
.js [data-reveal="left"]  { transform: translateX(-18px); }
.js [data-reveal="right"] { transform: translateX(18px); }
.js [data-reveal="fade"]  { transform: none; }
.js [data-reveal][data-revealed] { opacity: 1; transform: none; }
.js [data-reveal][data-reveal-done] { will-change: auto; transition: none; }
@media (prefers-reduced-motion: reduce) {
    .js [data-reveal] { opacity: 1; transform: none; transition: none; }
}

/* ═══════════════════════════════════════════════════════════════════════
 * Inner pages — measured off the same source at 1440 (dump-<page>.txt).
 * ═══════════════════════════════════════════════════════════════════════ */
:root { --cream: oklch(0.9415 0.0245 56.3); }   /* #F8E8DD hours card, policy cards */

/* Shared type + pieces */
.title--md { font-size: var(--step-4); }                       /* 41.25px section titles */
.title--sm { font-size: var(--step-3); line-height: 1.3; }       /* 33px */
.title--xl { font-size: 4rem; line-height: 1.1; }       /* 66px page titles */
.lede { margin: 0; font-size: var(--step-1); line-height: 1.5; color: var(--text); }
.text-navy { color: var(--navy); }
.text-alt { color: var(--text-alt); }
.prose p { margin: 0 0 var(--space-xs); color: var(--text); }
.prose p:last-child { margin-bottom: 0; }
.prose--alt p { color: var(--text-alt); }
.pill--lg { font-size: var(--step--1); font-weight: 700; line-height: 22px; }
.pill--clear { background: transparent; }
.ihero { position: relative; background-color: var(--pale); background-repeat: no-repeat; background-size: cover; background-position: 50% 50%; }
.ihero__center { display: flex; flex-direction: column; align-items: center; gap: var(--space-s); text-align: center; }
.ihero__center .title { max-width: 100%; }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-m); }
.cta-row--center { justify-content: center; }
.avatars { display: flex; gap: var(--space-3xs); margin: 0; padding: 0; list-style: none; }
.avatars img { display: block; width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
.spacer--100 { height: 100px; }
.ibox { display: flex; align-items: flex-start; gap: var(--space-s); }
.ibox__icon { flex: none; width: 45px; height: 45px; fill: var(--orange); }
.ibox__title { margin: var(--space-3xs) 0 var(--space-xs); font-family: var(--font-heading); font-size: var(--step-2); font-weight: 700; line-height: 1.5; color: var(--navy); }
.ibox__desc { margin: 0; color: var(--text); }
.ibox--plain .ibox__title { margin: 0 0 var(--space-3xs); font-size: var(--step-1); line-height: 1.4; color: var(--orange); }
.ibox--plain .ibox__desc { color: var(--text-alt); }
.ibox--sm .ibox__icon { width: 25px; height: 25px; }
.ibox--sm .ibox__title { font-size: var(--step-1); line-height: 1.4; }
.ibox--navy .ibox__icon { fill: var(--blue); }   /* owner: the brand blue rather than live's near-black navy */
.ibox--navy .ibox__title { font-size: var(--step-1); line-height: 1.4; color: var(--orange); }
.ibox--navy .ibox__desc { font-weight: 500; }

/* ── The Practice ─────────────────────────────────────────────────── */
.ihero--practice { background-image: linear-gradient(var(--pale) 0%, rgba(255, 255, 255, 0.77) 15%), url("/assets/images/practice-hero-bg.webp"); }
.ihero--practice .band__inner { padding: var(--space-3xl) 0 var(--space-2xl); }
.two-up--practice { align-items: center; }
.two-up__text--practice { gap: var(--space-m); }
.two-up__text--practice .cta-row { gap: var(--space-l); }
.two-up__text--practice .avatars { gap: 0; }
.two-up__text--practice .ihero__p { max-width: 471px; color: var(--text); }
.band--values .band__inner { padding: 180px 0 var(--space-3xl); }
.values-head { display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-s); padding-bottom: var(--space-xl); }
.values-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-2xl); }
.values-col { display: flex; flex-direction: column; gap: var(--space-l); margin-top: -10px; }
.ibox--stack { flex-direction: column; gap: 0; }
.ibox--stack .ibox__icon { margin-bottom: var(--space-s); }
.band--accred { background: var(--pale); }
.band--accred .band__inner { padding: var(--space-3xl) 0 var(--space-2xl); }
.two-up__photo--tall { align-self: start; }
.accred-copy { display: flex; flex-direction: column; }
.accred-copy__photo { display: block; width: 100%; height: auto; border-radius: 20px; }
.accred-copy__text { display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-m); padding-top: var(--space-l); }
.accred-copy__text .prose { padding-bottom: var(--space-l); }
.accred-copy .pill--outlined, .future-copy .pill--outlined, .imp-head .pill--outlined, .visit__copy .pill--outlined { background: var(--pale); }
.band--why .band__inner { padding: var(--space-3xl) 0; }
.why-grid { display: grid; grid-template-columns: 2fr 1fr; gap: var(--space-2xl); align-items: center; }
.why-copy { display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-m); }
.why-copy .title { margin-top: -8px; }
.why-list { display: flex; flex-direction: column; gap: var(--space-xs); align-self: stretch; margin-top: -28px; }
.why-photo { display: block; width: 100%; height: auto; border-radius: 20px; }
.band--future, .band--first { background: var(--pale); }
.band--first { isolation: isolate; }
.band--first::before { content: ""; position: absolute; inset: 0; z-index: var(--layer-behind); background: url("/assets/images/skin-bg.webp") center / cover no-repeat; opacity: 0.42; }
.band--future .band__inner, .band--first .band__inner { padding: 170px 0 var(--space-3xl); }
.two-up--future { grid-template-columns: minmax(0, 517fr) minmax(0, 673fr); align-items: start; }
.future-copy { display: flex; flex-direction: column; align-items: flex-start; gap: 0; }
.future-copy .title { margin-top: var(--space-xs); }
.future-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-l); padding: var(--space-l) 0 var(--space-s); }
.splitcard { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); overflow: hidden; border-radius: 20px; }
.splitcard__text { display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-s); padding: var(--space-2xl); background: var(--white); }
.splitcard__text p { color: var(--text); }
.splitcard__photo { min-height: 575px; background: url("/assets/images/practice-couple.webp") center / cover no-repeat; }

/* ── Doctors ──────────────────────────────────────────────────────── */
.ihero--doctors { background-image: linear-gradient(var(--pale) 0%, rgba(255, 255, 255, 0.67) 35%), url("/assets/images/doctors-hero-bg.webp"); }
.ihero--doctors .band__inner { padding: var(--space-3xl) 0; }
.doc-hero { display: grid; grid-template-columns: 2fr 1fr; gap: var(--space-2xl); }
.doc-hero__copy { display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: var(--space-l); }
.doc-hero__copy p { color: var(--text); }
.doc-hero__card { overflow: hidden; border-radius: 10px; background: var(--white); }
.doc-hero__card > img { display: block; width: 100%; height: auto; }
.doc-hero__card-body { display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-s); padding: var(--space-l); }
.doc-hero__card-body h2 { margin: 0; font-family: var(--font-heading); font-size: var(--step-2); font-weight: 700; line-height: 1.5; color: var(--blue); }
.doc-hero__card-body p { color: var(--text); }
.band--team { background: linear-gradient(var(--white) 0%, var(--pale) 100%); }
.band--team .band__inner { padding: var(--space-3xl) 0; }
.team-head { display: flex; flex-direction: column; align-items: center; gap: var(--space-s); padding-bottom: var(--space-xl); text-align: center; }
.team-head .reminders-lede { margin-top: 0; }
.dcards { display: flex; flex-direction: column; }
.dcard + .dcard { margin-top: var(--space-m); }
.dcard:nth-child(n+3) { margin-top: var(--space-l); }
.dcard:nth-child(n+4) { margin-top: var(--space-2xl); }
.dcard { display: grid; grid-template-columns: 420px minmax(0, 1fr); gap: var(--space-m); }
.dcard__photo { width: 150px; height: 150px; margin-top: var(--space-3xl); border-radius: 15px; object-fit: cover; justify-self: center; }
.dcard--lg .dcard__photo { width: 200px; height: 200px; margin-top: var(--space-xl); }
.dcard__body { display: flex; flex-direction: column; padding: var(--space-2xl); background: var(--white); border-radius: 20px; }
.dcard__name { margin: 0 0 var(--space-xs); font-family: var(--font-heading); font-size: var(--step-3); font-weight: 700; line-height: 1.3; color: var(--navy); }
.dcard__quals { margin: 0 0 var(--space-s); font-size: var(--step-1); font-weight: 600; color: var(--orange); }
.dcard__body p { color: var(--navy); }
.dcard__body p + p { margin-top: var(--space-xs); }
.dcard__body .dcard__quals + p { margin-top: 0; }

/* ── Services ─────────────────────────────────────────────────────── */
.ihero--services { background-image: linear-gradient(var(--pale) 0%, rgba(255, 255, 255, 0.48) 100%), url("/assets/images/services-hero-bg.webp"); background-position: 50% 0; }
.ihero--services .band__inner { padding: var(--space-2xl) 0 300px; gap: var(--space-l); }
.ihero--services .pill { max-width: 340px; margin-bottom: var(--space-s); }   /* was 300px; the wider pill padding needs the extra room to stay on one line */
.ihero--services .title { max-width: 590px; margin: -8px 0 -6px; }
.ihero__center .text-500 { max-width: 900px; color: var(--text); }
.ihero--services .text-500 { max-width: 774px; margin: -7px 0 0; }   /* -21px bottom put the button under the lede */
.band--pull { background: var(--blue); }
.band--pull .band__inner { display: flex; flex-direction: column; padding: 0 0 var(--space-3xl); }   /* flex so the cards' negative margin cannot collapse through to the band */
.pullcards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-m); margin-top: -225px; }
.pullcard { display: flex; flex-direction: column; align-items: center; padding: var(--space-l); background: var(--white); border-radius: 10px; box-shadow: 0 1px 20px rgba(0, 0, 0, 0.08); text-align: center; }
.pullcard h2 { margin: -2px 0 var(--space-xs); font-family: var(--font-heading); font-size: var(--step-2); font-weight: 700; line-height: 1.5; color: var(--navy); }
.pullcard p { margin-bottom: var(--space-m); color: var(--text); }
.pullcard .btn { margin-bottom: var(--space-m); }
.pullcard img { display: block; width: 100%; height: auto; border-radius: 10px; }
.band--solutions .band__inner { padding: var(--space-3xl) 0; }
.services-head--inner { padding-bottom: var(--space-2xl); }
.services-head--inner .services-head__left { gap: var(--space-2xs); }
.services-head--inner .services-head__right { padding-top: 0; }
.flips { display: flex; flex-direction: column; gap: var(--space-l); padding: 0 var(--space-2xl); }
.flips__row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-s); padding: var(--space-2xs); }
.flip { position: relative; height: 280px; perspective: 1000px; outline-offset: 4px; }
.flip--wide { height: 350px; }
.flip__front, .flip__back { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end; padding: var(--space-m); border-radius: 15px; backface-visibility: hidden; transition: transform 0.8s ease; }
.flip__front { isolation: isolate; background: var(--mid-blue) center 0 / cover no-repeat; }
.flip__front::before { content: ""; position: absolute; inset: 0; z-index: var(--layer-behind); border-radius: 15px; background: rgba(16, 68, 123, 0.34); }
.flip--wide .flip__front { justify-content: center; padding: 0; }
.flip__title { margin: var(--space-3xs) 0 var(--space-xs); font-family: var(--font-heading); font-size: var(--step-4); font-weight: 700; line-height: 1.2; color: var(--white); text-align: center; }
.flip__back { justify-content: center; align-items: center; background: var(--blue); text-align: center; transform: rotateX(180deg); }
.flip--wide .flip__back { padding: 0 var(--space-2xl); }
.flip__desc { margin: 0 0 var(--space-xs); font-size: var(--step--1); line-height: 1.5rem; color: var(--white); }
.flip--wide .flip__desc { margin-bottom: var(--space-m); }
.flip:hover .flip__front, .flip:focus .flip__front, .flip:focus-within .flip__front { transform: rotateX(-180deg); }
.flip:hover .flip__back, .flip:focus .flip__back, .flip:focus-within .flip__back { transform: rotateX(0); }
.btn--xs { padding: var(--space-2xs) var(--space-s); }
@media (prefers-reduced-motion: reduce) { .flip__front, .flip__back { transition: none; } }

/* ── Skin checks ──────────────────────────────────────────────────── */
.ihero--skin { background: var(--white); }
.ihero--skin .band__inner { padding: var(--space-3xl) 0; }
.skin-hero { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-l); align-items: start; }
.skin-hero__copy { display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-s); }
.skin-hero__copy .lede { color: var(--text); }
.skin-hero__copy .text-alt { color: var(--text-alt); }
.skin-hero__photo { display: block; width: 100%; height: auto; border-radius: 20px; }
.band--which { background: linear-gradient(rgba(224, 234, 244, 0.83) 33%, rgba(16, 68, 123, 0.83) 100%), url("/assets/images/skin-bg.webp") 50% 0 / cover no-repeat; }
.band--which .band__inner { display: flex; flex-direction: column; align-items: center; gap: var(--space-s); padding: var(--space-3xl) 0; text-align: center; }
.which-lede { color: var(--navy); }
.which-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-l); width: 100%; text-align: left; }
.which-card { display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-s); padding: var(--space-l); background: var(--white); border-radius: 20px; }
.which-card .title--sm { color: var(--blue); }
.which-card__time { margin: 0; font-family: var(--font-heading); font-size: var(--step-2); font-weight: 700; line-height: 1.5; color: var(--navy); }
.which-card .lede { color: var(--text); }
.which-note { color: var(--white); }
.band--skinfaq .band__inner { padding: var(--space-3xl) 0; }
.two-up--skinfaq { align-items: start; padding-bottom: var(--space-2xl); }
.skinfaq { display: flex; flex-direction: column; gap: var(--space-l); }
.faqs--skin .faq__q { font-family: var(--font-accent); font-size: var(--step-0); font-weight: 800; line-height: 1.5; color: var(--navy); border-color: rgba(66, 66, 66, 0.28); }
.faqs--skin .faq[open] .faq__q { color: var(--orange-dark); }
.faqs--skin .faq__a { font-size: var(--step-0); font-weight: 500; border-color: rgba(66, 66, 66, 0.28); color: var(--text-alt); }
.ctacard { position: relative; isolation: isolate; overflow: hidden; display: flex; flex-direction: column; align-items: center; gap: var(--space-m); padding: var(--space-2xl); border-radius: 20px; background: linear-gradient(var(--blue) 0%, var(--mid-blue) 100%); color: var(--white); text-align: center; }
.ctacard::before { content: ""; position: absolute; inset: 0; z-index: var(--layer-behind); background: url("/assets/images/cta-bg.webp") center / cover no-repeat; opacity: 0.18; }
.ctacard__eyebrow { margin: 0; font-size: var(--step-1); }
.ctacard__title, .ctacard .lede { color: var(--white); }
.ticklist--inline { display: flex; flex-wrap: wrap; gap: var(--space-m); }
.ticklist--inline li, .ticklist--inline li + li { margin: 0; padding: 0; }
.ticklist--inline span { color: var(--white); }
.ticklist--inline .ticklist__icon { fill: var(--white); }

/* ── Fees ─────────────────────────────────────────────────────────── */
.ihero--fees { background: var(--blue) url("/assets/images/fees-hero-bg.webp") center / cover no-repeat; }
.ihero--fees .band__inner { display: flex; flex-direction: column; align-items: center; padding: 250px 0; }
.feecard { display: flex; flex-direction: column; align-items: center; gap: var(--space-s); width: 770px; max-width: 100%; padding: var(--space-xl) var(--space-xl) var(--space-2xl); background: rgba(255, 255, 255, 0.82); border-radius: 20px; text-align: center; }
.feecard__btn { margin-top: -27px; }
.band--weekday { background: linear-gradient(var(--white) 0%, var(--pale) 100%); }
.band--weekday .band__inner { display: flex; flex-direction: column; align-items: center; padding: 200px 0 var(--space-3xl); }
.fees-head { display: flex; flex-direction: column; align-items: center; gap: var(--space-s); margin-bottom: var(--space-xl); text-align: center; }
.fees-head .lede a { color: var(--blue); }
.fees-head .title { max-width: 707px; }
.fees-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-2xl); width: 100%; }
.fees-book { margin-top: var(--space-l); }
.pricelist { margin: 0; padding: 0; list-style: none; }
.pricelist__item { margin-bottom: var(--space-2xs); }
.pricelist__item:last-child { margin-bottom: 0; }
.pricelist__head { display: flex; align-items: center; margin-bottom: var(--space-2xs); }
.pricelist__title { font-family: var(--font-heading); font-size: var(--step-1); font-weight: 700; line-height: 1.4; color: var(--blue); }
.pricelist__sep { flex: 1; margin: 0 var(--space-2xs); border-bottom: 1px dotted var(--text); }
.pricelist__price { font-family: var(--font-heading); font-size: var(--step-2); font-weight: 700; line-height: 1.5; color: var(--orange); }
.pricelist__desc { margin: 0; color: var(--text); }
.band--saturday .band__inner { padding: 180px 0 var(--space-3xl); }
.sat-copy { display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-s); padding: var(--space-2xl) 0; }
.sat-copy .pricelist { width: 100%; }
.sat-photo { min-height: 579px; border-radius: 20px; background: url("/assets/images/fees-team.webp") center / cover no-repeat; }
.band--important { background: var(--pale); }
.band--important .band__inner { padding: 175px 0 var(--space-3xl); }
.imp-head { display: flex; flex-direction: column; align-items: center; gap: var(--space-s); text-align: center; }
.gradcard { display: grid; grid-template-columns: 695px minmax(0, 1fr); margin-top: var(--space-l); overflow: hidden; border-radius: 20px; }
.gradcard--b { grid-template-columns: 602px minmax(0, 1fr); }
.gradcard__photo { min-height: 409px; }
.gradcard--a .gradcard__photo { min-height: 459px; background-position: center; background-size: cover; }
.gradcard__photo--psych { background-image: url("/assets/images/fees-psych.webp"); }
.gradcard__photo--intern { background-image: url("/assets/images/fees-intern.webp"); }
.gradcard__text { display: flex; flex-direction: column; justify-content: center; gap: var(--space-s); padding: var(--space-3xl) var(--space-2xl); background: linear-gradient(var(--mid-blue) 0%, var(--blue) 100%); }
.gradcard--b .gradcard__text { background: linear-gradient(var(--blue) 0%, var(--mid-blue) 100%); }
.gradcard__text h3 { margin: 0; font-family: var(--font-heading); font-size: var(--step-2); font-weight: 700; line-height: 1.5; color: var(--white); }
.gradcard__text p { color: var(--white); }

/* ── Appointment ──────────────────────────────────────────────────── */
.ihero--appt { background: linear-gradient(rgba(224, 234, 244, 0.78), rgba(224, 234, 244, 0.78)), url("/assets/images/appt-hero-bg.webp") center / cover no-repeat; }
.ihero--appt .band__inner { padding: var(--space-3xl) 0; }
.appt-lede { max-width: 750px; }
.appt-row { display: grid; grid-template-columns: 2.55fr minmax(230px, 1fr); gap: var(--space-xl); width: 100%; padding: 0 var(--space-2xs); margin-top: var(--space-m); text-align: left; }
.appt-row__photo { display: block; width: 100%; height: auto; border-radius: 20px; }
.hours-card { display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-s); padding: var(--space-l); border: 2px solid var(--orange); border-radius: 20px; background: var(--cream); }
.hours-card h2 { margin: 0; font-family: var(--font-heading); font-size: var(--step-2); font-weight: 700; line-height: 1.5; color: var(--blue); }
.hours-card p { color: var(--text); }
.hours-list { width: 100%; margin: 0; padding: 0; list-style: none; }
.hours-list li { display: flex; align-items: center; margin-bottom: var(--space-2xs); font-size: var(--step-1); font-weight: 700; color: var(--blue); }
.hours-list__sep { flex: 1; margin: 0 var(--space-2xs); border-bottom: 1px solid var(--orange); }   /* leader joining the day to its hours, as the fees price lists do */
.hours-list strong { color: var(--navy); }   /* deviation: the source's orange on cream is 2.2:1 */
.band--steps .band__inner { padding: var(--space-3xl) 0; }
.steps { display: grid; grid-template-columns: 839px minmax(0, 1fr); }
.steps__copy { display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-s); padding: var(--space-2xs); }
.steps__copy .title { margin: -7px 0; }
.steps__copy .lede { margin-bottom: var(--space-s); }
.steps__grid { display: grid; grid-template-columns: repeat(2, 368px); gap: var(--space-s); }
.ibox--sm { gap: var(--space-xs); padding: var(--space-2xs); }
.ibox--sm .ibox__title { margin: var(--space-3xs) 0 var(--space-xs); }
.steps__photo { min-height: 579px; border-radius: 20px; background: url("/assets/images/appt-records.webp") center / cover no-repeat; }
.band--afterhours { background: var(--pale); }
.band--afterhours .band__inner { padding: var(--space-3xl) 0; }
.ah-head { display: flex; flex-direction: column; align-items: center; gap: var(--space-s); margin-bottom: var(--space-xl); text-align: center; }
.ah-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-m); }
.ah-card { display: flex; flex-direction: column; align-items: center; }
.ah-card > img { display: block; width: 100%; height: auto; border-radius: 10px; }
.ah-card__box { width: 330px; max-width: 100%; margin-top: -94px; padding: var(--space-s) var(--space-l); border-radius: 10px; background: linear-gradient(var(--mid-blue) 0%, var(--blue) 100%); text-align: center; }
.ah-card__box h3 { margin: 0 0 var(--space-2xs); font-family: var(--font-heading); font-size: var(--step-2); font-weight: 700; line-height: 1.5; color: var(--white); }
.ah-card__box p, .ah-card__box a { color: var(--white); text-decoration: none; }
.band--guidelines .band__inner { padding: 260px 0 var(--space-3xl); }
.guide-head { display: flex; justify-content: space-between; align-items: flex-start; gap: var(--space-2xl); margin-bottom: var(--space-xl); }
.guide-head .title { max-width: 358px; }
.guide-head__right { display: flex; flex-direction: column; align-items: flex-end; gap: var(--space-s); text-align: right; }
.guide-head__right p { color: var(--text); }
.guide-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-m); }
.gcard { display: flex; flex-direction: column; overflow: hidden; border-radius: 20px; background: var(--pale); }
.gcard__text { display: flex; flex-direction: column; gap: var(--space-xs); padding: var(--space-xl) var(--space-2xl) var(--space-xl) var(--space-xl); }
.gcard__text h3 { margin: 0; font-family: var(--font-heading); font-size: var(--step-1); font-weight: 700; line-height: 1.4; color: var(--navy); }
.gcard__text p { color: var(--text); }
.gcard__photo { display: block; width: 560px; max-width: 100%; height: auto; margin-top: auto; align-self: flex-end; border-radius: 20px 0 0 0; }

/* ── Practice policies ────────────────────────────────────────────── */
.ihero--policies { background-image: linear-gradient(var(--pale) 0%, rgba(255, 255, 255, 0.49) 80%), url("/assets/images/policies-hero-bg.webp"); background-position: 50% 0; }
.ihero--policies .band__inner { padding: var(--space-3xl) 0 385px; gap: var(--space-l); }
.ihero--policies .title { margin: -13px 0 -11px; }
.ihero--policies .pol-lede { margin: -7px 0 0; }   /* -21px bottom put the button under the lede */
.ihero--policies .pill { margin-bottom: var(--space-s); }
.pol-lede { max-width: 538px; color: var(--text); }
.band--mosaic { background: linear-gradient(var(--pale) 59%, var(--white) 100%); }
.band--mosaic .band__inner { position: relative; z-index: var(--layer-base); display: flex; flex-direction: column; padding: 0 0 var(--space-3xl); }   /* the wave divs follow .band__inner in the markup, so without this they paint over the straddling images */
.mosaic { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-s); align-items: center; margin-top: -265px; }
.mosaic__img { display: block; width: 100%; height: auto; border-radius: 10px; }
.mosaic__col { display: grid; gap: var(--space-s); align-self: stretch; }
.band--policies .band__inner { padding: var(--space-l) 0 var(--space-3xl); }
.polcards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-xl) var(--space-2xl); }
.polcard { margin: -10px 0 -6px; padding: var(--space-l); border-radius: 20px; }
.polcard--white { background: var(--white); box-shadow: 0 0 10px rgba(0, 0, 0, 0.5); }
.polcard--cream { background: var(--cream); }
.polcard h2 { margin: var(--space-3xs) 0 var(--space-xs); font-family: var(--font-heading); font-size: var(--step-2); font-weight: 700; line-height: 1.5; color: var(--orange); }
.polcard p { color: var(--text); }
.band--deserve { background: var(--pale); }
.band--deserve .band__inner { display: flex; flex-direction: column; align-items: center; padding: var(--space-3xl) 0; }
.deserve-photo { display: block; width: 100%; height: auto; border-radius: 20px; }
.deserve-card { display: flex; flex-direction: column; align-items: center; gap: var(--space-m); width: 1000px; max-width: 100%; margin-top: -254px; padding: var(--space-2xl); background: var(--white); border-radius: 20px; text-align: center; }
.deserve-card p { color: var(--text); }

/* ── Health topics ────────────────────────────────────────────────── */
.ihero--health { padding: 0 0 var(--space-l); background: linear-gradient(var(--pale) 0%, var(--white) 100%); }   /* the photo's 40px sits inside the band so the waves cover it */
.ihero--health .title { margin: -8px 0 -6px; }
.ihero--health .health-lede { margin: -7px 0; }
.ihero--health .band__inner { padding: var(--space-3xl) 0; gap: var(--space-l); }
.health-lede { max-width: 700px; }
.ihero--health .pill { background: var(--white); }
.health-photo { position: relative; z-index: var(--layer-base); display: block; width: calc(100% - 200px); height: auto; margin: 0 auto; border-radius: 70px; }   /* above the waves, as live */
.band--articles { background: linear-gradient(rgba(224, 234, 244, 0.81), rgba(224, 234, 244, 0.81)), url("/assets/images/ht-bg.webp") center / cover no-repeat; }
.band--articles .band__inner { max-width: 1140px; padding: 180px 0 var(--space-3xl); }
.articles-card { margin: 0 var(--space-s); padding: var(--space-2xl); background: var(--white); border-radius: 10px; }
.articles-card { display: flex; flex-direction: column; align-items: center; gap: var(--space-m); text-align: center; }
.articles-card .lede { max-width: 750px; color: var(--navy); }
.resources { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-m); width: 100%; text-align: left; }
.rcard { padding: var(--space-m); background: var(--pale); border-radius: 10px; }
.rcard h3 { margin: 0 0 var(--space-2xs); font-family: var(--font-heading); font-size: var(--step-1); font-weight: 700; line-height: 1.4; color: var(--blue); }
.rcard h3 a { color: inherit; text-decoration: none; }
.rcard h3 a:hover, .rcard h3 a:focus-visible { text-decoration: underline; }
.rcard p { color: var(--text); }
.rcard p a { color: var(--navy); }

/* ── Careers & growth ─────────────────────────────────────────────── */
.ihero--careers { background: linear-gradient(var(--pale) 0%, rgba(255, 255, 255, 0.27) 100%), var(--black) url("/assets/images/careers-hero-bg.webp") 0 0 / 2560px auto no-repeat; }   /* the source paints the 2560px original at natural size from the top-left */
.ihero--careers .band__inner { padding: var(--space-3xl) 0; }
.careers-hero { display: grid; grid-template-columns: 2fr 1fr; gap: var(--space-2xl); }
.careers-hero__copy { display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-l); }
.careers-lede { max-width: 645px; margin: -7px 0 0; }   /* -21px bottom put the button under the lede */
.careers-hero__copy .title { margin: -13px 0 -11px; }
.careers-hero__cards { display: grid; align-content: start; gap: var(--space-m); }
.gradbox { display: grid; grid-template-columns: 111px minmax(0, 1fr); align-items: center; gap: var(--space-s); padding: var(--space-s); border-radius: 10px; background: linear-gradient(var(--mid-blue) 0%, var(--blue) 100%); }
.gradbox img { display: block; width: 111px; height: 111px; border-radius: 10px; object-fit: cover; }
.gradbox h2 { margin: 0 0 var(--space-3xs); font-family: var(--font-heading); font-size: var(--step-1); font-weight: 700; line-height: 1.4; color: var(--white); }
.gradbox p { color: var(--white); }
.band--training { background: linear-gradient(oklch(0.97 0 0) 0%, var(--pale) 100%); }   /* #F5F5F5 → pale */
.band--training .band__inner { padding: var(--space-3xl) 0 var(--space-3xl); }
.two-up--training { align-items: center; }
.training-copy { display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-m); }
.training-copy > p { color: var(--text); }
.rule { width: 100%; margin: 0; border: 0; border-top: 1px solid var(--blue); }
.training-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 var(--space-l); }
.training-grid .ibox { min-height: 175px; }
.band--links .band__inner { padding: var(--space-3xl) 0; }
.linkcards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-m); }
.linkcards__col { display: grid; gap: var(--space-m); }
.linkcard { position: relative; isolation: isolate; display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-s); min-height: 355px; padding: var(--space-3xl) var(--space-l) var(--space-l); border-radius: 20px; background: var(--pale) center / cover no-repeat; }
.linkcard::before { content: ""; position: absolute; inset: 0; z-index: var(--layer-behind); border-radius: 20px; background: linear-gradient(var(--blue) 0%, var(--mid-blue) 100%); opacity: 0.86; }
.linkcard--tall::before { background: linear-gradient(var(--blue) 35%, var(--mid-blue) 100%); opacity: 0.8; }
.linkcard__title { margin: -3px 0; font-family: var(--font-heading); font-size: var(--step-2); font-weight: 700; line-height: 1.5; color: var(--white); }
.linkcard__text { max-width: 450px; margin: -7px 0 0; font-family: var(--font-accent); font-size: var(--step-0); font-weight: 500; line-height: 1.6; color: var(--pale); }   /* live's -21px bottom cancelled the card gap and put the button under the text */
.linkcard--tall { justify-content: center; align-items: center; gap: var(--space-m); min-height: 740px; padding: var(--space-l); text-align: center; }
.linkcard--tall .linkcard__title { font-family: var(--font-accent); font-size: var(--step-5); font-weight: 800; line-height: 1; letter-spacing: -2px; }
.linkcard--tall .linkcard__text { max-width: 350px; }
.band--collab .band__inner { padding: var(--space-3xl) 0; }
.two-up--collab { align-items: center; }
.collab-copy { display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-m); }
.collab-copy > p { color: var(--text); }
.band--positions { background: var(--pale); }
.band--positions .band__inner { display: flex; flex-direction: column; align-items: center; padding: var(--space-3xl) 0 var(--space-3xl); }
.pos-head { display: flex; flex-direction: column; align-items: center; gap: var(--space-m); margin-bottom: var(--space-l); text-align: center; }
.pos-photos { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-m); width: 100%; }
.pos-photos img { display: block; width: 100%; height: auto; border-radius: 20px; }
.pos-text { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-s); width: 100%; padding: var(--space-l) var(--space-2xs) var(--space-2xs); }
.pos-text p { color: var(--text-alt); }
.pos-text a { color: var(--navy); text-decoration: none; }
.posbar { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: var(--space-l); width: 100%; margin-top: var(--space-l); padding: var(--space-l); border-radius: 10px; background: linear-gradient(var(--mid-blue) 0%, var(--blue) 100%); }
.posbar__left { display: flex; flex-direction: column; gap: var(--space-s); }
.posbar h3 { margin: -4px 0; font-family: var(--font-heading); font-size: var(--step-3); font-weight: 700; line-height: 1.3; color: var(--white); }
.posbar ul { margin: -7px 0 -21px; padding-left: var(--space-l); font-size: var(--step-1); color: var(--pale); }
.posbar__right { display: flex; align-items: center; justify-content: flex-end; gap: var(--space-m); }
.posbar__phone { display: inline-flex; align-items: center; gap: var(--space-2xs); font-family: var(--font-heading); font-size: var(--step-1); font-weight: 700; color: var(--white); text-decoration: none; }
.posbar__icon { width: 28px; height: 28px; fill: var(--white); }

/* ── Contact ──────────────────────────────────────────────────────── */
.ihero--contact { background-image: linear-gradient(var(--pale) 0%, rgba(255, 255, 255, 0.31) 100%), url("/assets/images/contact-hero-bg.webp"); background-position: 50% 0; }
.ihero--contact .band__inner { padding: var(--space-3xl) 0 247px; }
.contact-card { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); padding: var(--space-xl) var(--space-2xl) var(--space-m); border-radius: 20px; background: linear-gradient(var(--mid-blue) 0%, var(--blue) 100%); }
.contact-card__copy { display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-m); padding: var(--space-s) var(--space-2xl) 0 0; }
.contact-card__copy .title, .contact-card__copy p { color: var(--white); }
.contact-card__photo { display: block; width: 100%; height: auto; border-radius: 20px; }
.contact-form { margin-bottom: -127px; padding: var(--space-xl); background: var(--white); border-radius: 20px; box-shadow: 0 1px 20px rgba(0, 0, 0, 0.04); }
.cform { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-s); }
.cform__field { display: flex; flex-direction: column; }
.cform__field--full, .cform altcha-widget, .cform__submit { grid-column: 1 / -1; }
.cform label { padding-bottom: var(--space-3xs); font-family: var(--font-heading); font-size: var(--step-0); font-weight: 700; line-height: 1.4; color: var(--navy); }
.req { color: var(--orange); }
.cform input, .cform textarea { width: 100%; min-height: 43px; padding: var(--space-2xs) var(--space-xs); border: 1px solid var(--orange); border-radius: 5px; background: transparent; font: inherit; color: var(--text); }
.cform textarea { min-height: 161px; padding: var(--space-3xs) var(--space-xs); resize: vertical; }
.cform input:focus-visible, .cform textarea:focus-visible { outline: 2px solid var(--blue); outline-offset: 1px; }
.cform__submit { width: 100%; padding: var(--space-2xs); border-radius: 7px; font-size: var(--step-0); font-weight: 600; letter-spacing: normal; cursor: pointer; }
[data-mf-feedback]:not([hidden]) { margin-top: var(--space-s); color: var(--navy); }
.band--visit { background: var(--pale); }
.band--visit .band__inner { padding: var(--space-3xl) 0; }
.visit { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.visit__map iframe { display: block; width: 100%; height: 570px; border: 0; border-radius: 20px; }
.visit__copy { display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: var(--space-m); padding-left: var(--space-2xl); }
.visit__copy .title { margin: -8px 0 -6px; }
.visit__copy .prose { margin: -7px 0 0; }   /* live's -21px bottom, plus .cbox's -10px top, pulled the contact details into the description */
.cbox { margin: 0 0 -6px; }   /* the -10px top closed the gap under the description */
.visit__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-l); width: 100%; }
.visit__col { display: flex; flex-direction: column; gap: var(--space-m); }
.cbox h3 { margin: 0 0 var(--space-3xs); font-family: var(--font-heading); font-size: var(--step-1); font-weight: 700; line-height: 1.4; color: var(--orange); }
.cbox h3 a { color: inherit; text-decoration: none; }
.cbox h3 a:hover { text-decoration: underline; }
.cbox p { color: var(--text); white-space: nowrap; }   /* the source lets the long addresses run past the column, as here */

/* ── Legal pages ──────────────────────────────────────────────────── */
.ihero--legal { min-height: 900px; background-size: cover; background-position: center; }
.ihero--privacy { background-image: linear-gradient(rgba(46, 119, 174, 0.21) 30%, rgba(13, 34, 55, 0.21) 94%), url("/assets/images/contact-hero-bg.webp"); }
.ihero--terms { background-image: linear-gradient(rgba(46, 119, 174, 0.16) 0%, rgba(16, 68, 123, 0.16) 100%), url("/assets/images/terms-hero-bg.webp"); }
.band--legal { background: var(--pale); }
.band--legal .band__inner { display: flex; flex-direction: column; padding: 0 0 var(--space-3xl); }
.legal-card { position: relative; z-index: var(--layer-raised); margin-top: -270px; padding: var(--space-2xl); background: var(--white); border-radius: 20px; }
.legal-card .title { margin-bottom: var(--space-s); }
.legal-body > p:first-child { margin-bottom: var(--space-l); }
.legal-body h2 { margin: var(--space-m) 0 var(--space-xs); font-family: var(--font-heading); font-size: var(--step-4); font-weight: 700; line-height: 1.2; color: var(--navy); }
.legal-body h2.title-h2 { font-size: var(--step-5); }
.legal-body h3 { margin: var(--space-s) 0 var(--space-2xs); font-family: var(--font-heading); font-size: var(--step-3); font-weight: 700; line-height: 1.3; color: var(--navy); }
.legal-card .title--md { font-size: var(--step-4); }
.legal-body p, .legal-body li { color: var(--text-alt); }
.legal-body ul, .legal-body ol { margin: 0 0 var(--space-xs); padding-left: var(--space-l); }
.legal-body li { margin-bottom: var(--space-3xs); }
.legal-body a { color: var(--blue); }

/* ── 404 ──────────────────────────────────────────────────────────── */
.ihero--404 .band__inner { padding: var(--space-3xl) 0 var(--space-3xl); }
.ihero--404 .lede { max-width: 700px; }
.ihero--404 .lede a { color: var(--blue); }

/* ── Inner pages: tablet (≤1024) ──────────────────────────────────── */
@media (max-width: 1024px) {
    .values-grid, .why-grid, .doc-hero, .skin-hero, .which-cards, .fees-cols, .steps, .guide-cards, .polcards, .careers-hero, .linkcards, .pos-text, .contact-card, .visit, .splitcard, .future-cols { grid-template-columns: minmax(0, 1fr); }
    .values-grid { gap: var(--space-xl); }
    .why-grid { gap: var(--space-xl); }
    .why-photo { width: 600px; max-width: 100%; justify-self: center; }
    .doc-hero { gap: var(--space-xl); }
    .dcard { grid-template-columns: minmax(0, 1fr); gap: var(--space-s); }
    .dcard__photo, .dcard--lg .dcard__photo { margin-top: 0; justify-self: start; }
    .dcard__body { padding: var(--space-l); }
    .pullcards { grid-template-columns: minmax(0, 1fr); gap: var(--space-m); }
    .pullcard img { width: 310px; max-width: 100%; }
    .flips { padding: 0; }
    .flips__row { grid-template-columns: minmax(0, 1fr); padding: 0; }
    .flip--wide { height: 280px; }
    .skin-hero__photo { order: -1; }
    .which-cards { gap: var(--space-m); }
    .gradcard, .gradcard--b { grid-template-columns: minmax(0, 1fr); }
    .gradcard__photo { min-height: 400px; }
    .gradcard--b .gradcard__photo { order: -1; }
    .gradcard__text { padding: var(--space-xl) var(--space-l); }
    .appt-row { grid-template-columns: minmax(0, 1fr); gap: var(--space-l); padding: 0; }
    .steps__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-s) var(--space-l); }
    .steps__photo { min-height: 450px; margin-top: var(--space-l); }
    .ah-grid { grid-template-columns: minmax(0, 1fr); gap: var(--space-l); }
    .ah-card > img { width: 410px; max-width: 100%; }
    .guide-head { flex-direction: column; gap: var(--space-s); }
    .guide-head__right { align-items: flex-start; text-align: left; }
    .mosaic { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .ihero--policies .band__inner { padding-bottom: 300px; }
    .health-photo { width: calc(100% - 80px); border-radius: 40px; }
    .articles-card { margin: 0; padding: var(--space-l); }
    .resources { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .careers-hero { gap: var(--space-xl); }
    .careers-hero__cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .gradbox { grid-template-columns: minmax(0, 1fr); }
    .gradbox img { width: 100%; height: auto; }
    .two-up--future { grid-template-columns: minmax(0, 1fr); }
    .two-up--training .two-up__photo, .two-up--collab .two-up__photo, .two-up--skinfaq .two-up__photo, .two-up--accred .two-up__photo { width: 600px; max-width: 100%; justify-self: center; }
    .linkcard--tall { min-height: 500px; }
    .pos-photos { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .posbar { grid-template-columns: minmax(0, 1fr); }
    .posbar__right { justify-content: flex-start; }
    .contact-card { gap: var(--space-l); padding: var(--space-l); }
    .contact-card__copy { padding: 0; }
    .contact-form { margin-bottom: 0; }
    .ihero--contact .band__inner { padding-bottom: var(--space-3xl); }
    .visit { gap: var(--space-l); }
    .visit__copy { padding-left: 0; }
    .visit__map iframe { height: 400px; }
    .legal-card { padding: var(--space-xl); }
    .splitcard__photo { order: -1; min-height: 400px; }
    /* Centre the Saturday Fees block like the weekday one above it (.fees-head
     * is already centred). The price rows keep their own alignment: each
     * .pricelist__head is a flex row with a flex: 1 dotted leader between the
     * title and the price, so centring it would collapse the leader. */
    .sat-copy { align-items: center; padding: 0 0 var(--space-l); text-align: center; }
    .sat-copy .pricelist__desc { text-align: center; }
    .sat-photo { min-height: 450px; }
}

/* ── Inner pages: mobile (≤767) ───────────────────────────────────── */
@media (max-width: 767px) {
    .ihero .band__inner, .band--values .band__inner, .band--accred .band__inner, .band--why .band__inner, .band--future .band__inner, .band--first .band__inner,
    .band--team .band__inner, .band--solutions .band__inner, .band--which .band__inner, .band--skinfaq .band__inner, .band--weekday .band__inner, .band--saturday .band__inner,
    .band--important .band__inner, .band--steps .band__inner, .band--afterhours .band__inner, .band--guidelines .band__inner, .band--policies .band__inner, .band--deserve .band__inner,
    .band--articles .band__inner, .band--training .band__inner, .band--links .band__inner, .band--collab .band__inner, .band--positions .band__inner, .band--visit .band__inner { padding: var(--space-2xl) 0 var(--space-xl); }
    /* Waves keep their desktop height on mobile while the band padding shrinks,
     * so a tall top wave paints over the heading beneath it. --space-2xl is
     * ~55px at 390, against waves of 67-125px. Give each overlapped band a top
     * padding that clears its own wave, plus a --space-m breath below it. */
    .band--which .band__inner, .band--skinfaq .band__inner { padding-top: calc(min(91px, 7vw) + var(--space-m)); }
    .band--afterhours .band__inner { padding-top: calc(min(75px, 7vw) + var(--space-m)); }
    .band--articles .band__inner { padding-top: calc(min(125px, 7vw) + var(--space-m)); }
    .band--weekday .band__inner, .band--saturday .band__inner,
    .band--important .band__inner, .band--guidelines .band__inner { padding-top: calc(min(100px, 7vw) + var(--space-m)); }

    .ihero--services .band__inner { padding: var(--space-xl) 0 260px; }
    .ihero--policies .band__inner { padding: var(--space-xl) 0 220px; }
    .ihero--fees .band__inner { padding: var(--space-3xl) 0; }
    .ihero--legal { min-height: 400px; }
    .legal-card { margin-top: -120px; padding: var(--space-m) var(--space-s); }
    .band--legal .band__inner { padding-bottom: var(--space-xl); }
    .title--xl { font-size: var(--step-4); }
    .cta-row { gap: var(--space-s); }
    .two-up__text--practice, .doc-hero__copy, .careers-hero__copy { gap: var(--space-s); }
    .values-head, .team-head, .services-head--inner { padding-bottom: var(--space-l); }
    .values-col { gap: var(--space-l); }
    .splitcard__text, .dcard__body, .pullcard, .which-card, .feecard, .gradcard__text, .hours-card, .steps__copy, .gcard__text, .polcard, .deserve-card, .articles-card, .linkcard, .posbar, .contact-card, .contact-form, .legal-card { padding: var(--space-m) var(--space-s); }

    /* The white/cream classes are a checkerboard for the 2-column desktop grid,
     * so stacked into one column the DOM order reads white, cream, cream,
     * white, white … — doubled pairs rather than an alternation. Drive the
     * colour off nth-child here instead. Cream is the site's warm panel and
     * keeps body text at 8.41:1; the full brand orange would drop it to 3.86:1
     * across ten paragraphs of policy text. */
    .polcard:nth-child(odd) { background: var(--white); box-shadow: 0 0 10px rgb(0 0 0 / 0.5); }
    .polcard:nth-child(even) { background: var(--cream); box-shadow: none; }

    /* The deserve band leads straight into a full-width photo, so the wave's
     * trough sits close to its rounded top corners even with the band padding
     * clearing the wave. Give it the wave's height again. */
    /* The photo comes first in the markup and .deserve-card pulls -254px up over
     * it, which works at 1440 where the photo renders 650px tall. On mobile it
     * is only ~183px, so the card covered it completely and overshot by 71px
     * into the section above. Put the card first and let the photo follow, as
     * the owner's reference does: same two pieces, no overlap. */
    .band--deserve .band__inner { gap: var(--space-l); padding-top: calc(min(42px, 7vw) + var(--space-l)); }
    .deserve-card { order: -1; margin-top: 0; padding: 40px; }   /* owner 2026-09-17: an even 40px inside this card on mobile, overriding the shared card padding above */
    .linkcard { padding-top: var(--space-3xl); }
    .feecard__btn { margin-top: -20px; }
    .fees-cols { gap: var(--space-l); }
    .steps__grid { grid-template-columns: minmax(0, 1fr); }
    .steps__photo { min-height: 320px; }
    .ah-card__box { width: 280px; margin-top: -60px; padding: var(--space-s); }
    /* Owner's call: on mobile the mosaic shows only its second row — the
     * pol-5/6/7 column and the tall pol-8. The first four are hidden rather
     * than removed: desktop keeps all eight in the 4-column layout whose 0.50
     * straddle ratio is measured at 1440.
     *
     * The block straddles the seam as on desktop — half in the hero above, half
     * in this section. Measured off the rendered page at 390: the block is
     * 269px tall, and -182px puts its midpoint on the seam (-150px left it at
     * 38/62). It looked broken before only because the section's own wave--top
     * painted over the images, which the z-index lift on
     * .band--mosaic .band__inner now fixes at every width. */
    .mosaic { gap: var(--space-2xs); margin-top: -182px; }
    .mosaic > :nth-child(1), .mosaic > :nth-child(2) { display: none; }   /* pol-1 and the pol-2/3/4 column; positional, so it cannot latch onto the wrong div */
    .mosaic__col { gap: var(--space-2xs); }
    .health-photo { width: calc(100% - 40px); border-radius: 20px; }
    .careers-hero__cards { grid-template-columns: minmax(0, 1fr); }
    .gradbox { grid-template-columns: 111px minmax(0, 1fr); }
    .gradbox img { width: 111px; height: 111px; }
    .training-grid { grid-template-columns: minmax(0, 1fr); }
    .training-grid .ibox { min-height: 0; margin-bottom: var(--space-s); }
    .linkcard--tall { min-height: 400px; }
    .linkcard--tall .linkcard__title { font-size: var(--step-4); }
    .pos-photos { gap: var(--space-xs); }
    .pos-text { padding: var(--space-m) 0 0; }
    .cform { grid-template-columns: minmax(0, 1fr); }
    .resources { grid-template-columns: minmax(0, 1fr); }
    .visit__grid { grid-template-columns: minmax(0, 1fr); gap: var(--space-m); }
    .visit__map iframe { height: 300px; }
    .ihero--careers { background-size: 1600px auto; }

    /* Heading-to-content spacing. The section headings stay large on mobile
     * (title--md is ~33px at 390) while --space-s/--space-m shrink with the
     * viewport, so the gap under a heading reads tighter here than on desktop —
     * the proportion moves the wrong way. Lift the floor on the blocks that
     * stack a pill, a heading and a body block. */
    .accred-copy__text, .why-copy, .training-copy, .collab-copy, .visit__copy,
    .contact-card__copy, .values-head, .team-head, .fees-head, .imp-head,
    .ah-head, .pos-head, .articles-card, .deserve-card, .services-head__left,
    .skin-hero__copy, .sat-copy, .steps__copy, .two-up__text, .ihero__center {
        gap: var(--space-l);
    }
    .accred-copy__text { padding-top: var(--space-xl); }
}

/* Doctors render from one {{#each practitioners}} loop, so the list can no
   longer be split into two hand-written columns. One list spans both grid
   tracks and flows 2-up, painting identically without hard-coding the count. */
.doctors__col--all { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-m); }
@media (max-width: 760px) { .doctors__col--all { grid-template-columns: minmax(0, 1fr); } }
