/* Therapy Center: design system
   Tokens, base, layout, components, header/footer, home page.
   Page-area stylesheets live in /assets/css/pages/ and build on these tokens.
   Contrast ratios (WCAG 2.2) for every text/background pair, light and dark:
   py -I tools/check-contrast.py */

/* ======================================================================
   0. Fonts: Raleway 500 and 600, self-hosted (build brief 1), for headings, labels and buttons.
   Body text uses each device's own font (Segoe UI on Windows, San Francisco on Apple, Roboto on Android).
   ====================================================================== */
@font-face {
  font-family: 'Raleway';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/assets/fonts/raleway-latin-500-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Raleway';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/assets/fonts/raleway-latin-600-normal.woff2') format('woff2');
}

/* ======================================================================
   1. Tokens
   ====================================================================== */
:root {
  /* Brand (the handoff zip's teals and the logo's navy) */
  --teal-400: #57C2B8;    /* the dark theme's accent and button */
  --teal-700: #006D6A;    /* the light theme's accent and button */
  /* The brand navy: the logo's own navy and "the Blue" Tim keeps. His palette ruling of 2026-10-21 ("The Teal and
     the Blue need to remain", then "Adopt Deep lake + Gold") makes it a brand colour: the light theme's headings,
     the CTA band, the footer, the hero's band and the logo's navy all use this one token. The build's identity check
     (src/lib/forbidden.mjs) allows its hex only on two exact lines: the next one, and the light select arrow's. Keep
     both exactly as written; a new use reads var(--brand-navy). */
  --brand-navy: #00274C;

  /* Roles (light first in this block, dark in the two blocks below). Components use these role tokens, not
     the brand colours, so the dark theme only redefines roles. Light is "Deep Lake + Gold" (Tim, 2026-10-21,
     Build 9): a cool lake-mist page, navy headings, the teals kept on links and buttons, gold (deepened to
     bronze for small text) on labels and accent marks only, never on anything clickable. Contrast for both
     themes: py -I tools/check-contrast.py */
  color-scheme: light;
  /* Surfaces */
  --color-page: #EEF4F6;                  /* page background: lake mist */
  --color-surface: #F8FBFC;               /* cards, raised sections */
  --color-tint: #CFE9E5;                  /* soft sea-glass sections, icon discs, info notices */
  --color-header: rgba(238, 244, 246, 0.92);   /* sticky header, over the page */
  --color-mobile-bar: rgba(248, 251, 252, 0.97);
  /* Text */
  --color-text: #122436;
  --color-heading: var(--brand-navy);      /* headings, strong labels, hover states */
  --color-muted: #3F5568;                 /* grey text */
  --color-small: #3F5568;                 /* small text */
  --color-link: var(--teal-700);
  --color-label: #7A5200;                 /* eyebrows, small uppercase titles, line icons: gold, deepened to bronze for 4.5:1 */
  --color-accent: #9A6A12;                /* gold accent rules and marks (non-text) */
  --color-underline-muted: rgba(63, 85, 104, 0.7);   /* the link cue of grey links (breadcrumbs, quiet links): >= 3:1 */
  /* Lines and edges */
  --color-border: #C8D9E2;                /* decorative dividers */
  --color-border-strong: #5F7A8C;         /* control outlines (>= 3:1) */
  --edge-rgb: 0, 39, 76;                  /* hairline card edges: rgba(var(--edge-rgb), alpha); the brand navy */
  --focus: var(--teal-700);
  /* Buttons: teal with mist-white text in light, teal with dark text in dark (build brief 1) */
  --color-button: var(--teal-700);
  --color-on-button: #F8FBFC;
  --color-button-hover: #005C59;
  /* Notices */
  --color-notice-border: rgba(0, 109, 106, 0.3);
  --color-success: #1C6B46;
  --color-success-bg: #DFE9E0;
  --color-success-border: rgba(28, 107, 70, 0.35);
  --color-error: #B42318;
  --color-error-bg: #F6E3DF;
  --color-error-border: rgba(180, 35, 24, 0.4);
  --color-on-error: #F8FBFC;
  /* Dark panels: the CTA band and the footer are dark in BOTH themes (the logo's navy here). */
  --color-band: var(--brand-navy);
  --color-footer: var(--brand-navy);
  --color-footer-callout: #0B3A66;        /* the crisis card in the footer, written solid so the contrast check can test it */
  --footer-edge: none;
  --color-on-dark: #F8FBFC;
  --color-on-dark-muted: #CFDDE7;
  --color-on-dark-label: var(--teal-400); /* the eyebrow on a dark panel (the CTA band): teal on the navy band */
  --on-dark-rgb: 248, 251, 252;           /* --color-on-dark as r, g, b, for its translucent uses */
  /* The deep band (.band-deep, section 18a; Home only): its backgrounds and its gold, per theme */
  --band-hero-bg: linear-gradient(135deg, var(--brand-navy) 0%, #003D5E 55%, #005B66 100%);
  --band-rehab-bg: #005B66;
  --band-hero-gold: #F0CB78;
  --band-rehab-gold: #F5D99A;
  /* The logo art (colour option 3, "Teal trail", Tim 2026-10-14): the loop keeps the dragonfly's teal near it and
     fades along the stroke to the logo colour; the name in the logo colour; the dragonfly teal. The sweep is the
     mock-up's: from 105deg at the loop centre (the loop meets the wing at 127deg). Option 2 is a token change. */
  --logo-loop: conic-gradient(from 105deg at 41.39% 50.49%, #006D6A 0deg, #006D6A 47deg, var(--brand-navy) 232deg, var(--brand-navy) 360deg);
  --logo-name: var(--brand-navy);
  --logo-fly: var(--teal-700);
  --logo-sub: var(--teal-700);            /* the hero's subtitle, live Raleway text (the mock-up's option 3) */
  /* The select's arrow (section 19): the chevron icon in the heading colour, as a data: image. A data: image cannot
     read var(), so the stroke is the brand navy's value, URL-encoded ("%23" is "#"). */
  --select-chevron: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2300274C' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");

  /* Type */
  --font-display: 'Raleway', 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --font-body: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --step--1: clamp(0.875rem, 0.85rem + 0.1vw, 0.9375rem);
  --step-0: clamp(1.0625rem, 1.035rem + 0.13vw, 1.125rem);
  --step-1: clamp(1.1875rem, 1.12rem + 0.3vw, 1.375rem);
  --step-2: clamp(1.4375rem, 1.3rem + 0.6vw, 1.8125rem);
  --step-3: clamp(1.75rem, 1.5rem + 1.1vw, 2.375rem);
  --step-4: clamp(2.125rem, 1.75rem + 1.7vw, 3.125rem);
  --step-5: clamp(2.375rem, 1.85rem + 2.45vw, 3.875rem);

  /* Space */
  --space-3xs: 0.25rem;
  --space-2xs: 0.5rem;
  --space-xs: 0.75rem;
  --space-s: 1rem;
  --space-m: 1.5rem;
  --space-l: 2rem;
  --space-xl: 3rem;
  --space-2xl: 4.5rem;
  /* Calm standard: generous, consistent section rhythm. */
  --section-y: clamp(4rem, 3rem + 4.5vw, 7rem);
  --gutter: clamp(16px, 4vw, 32px);

  /* Shape */
  --radius-xs: 8px;
  --radius-sm: 12px;
  --radius: 16px;
  --radius-lg: 28px;
  --radius-pill: 999px;
  /* Calm standard: soft, low shadows; borders do most of the separating. */
  --shadow-sm: 0 1px 2px rgba(0, 39, 76, 0.05);
  --shadow: 0 1px 2px rgba(0, 39, 76, 0.05), 0 6px 18px rgba(0, 39, 76, 0.07);
  --shadow-lg: 0 2px 6px rgba(0, 39, 76, 0.06), 0 14px 36px rgba(0, 39, 76, 0.1);

  /* Layout */
  --container: 1200px;
  --measure: 68ch;
  --header-h: 76px;       /* the sticky header's height (card #130, 2026-11-16: 76px, and 86px from 1280px) */
  --logo-h: 54px;         /* the .logo art's default height (no element uses the default today: the footer sets its own) */
  --mobile-bar-h: 72px;   /* the fixed Call / Request care bar below 768px: its padding, its 50px buttons and its border */

  /* Motion */
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --dur: 180ms;
}

@media (min-width: 1280px) {
  :root { --header-h: 86px; --logo-h: 64px; }
}

/* ----------------------------------------------------------------------
   Dark theme, the design's first theme (Tim: dark first; bright pages can be hard to look at after a brain
   injury). It follows the visitor's device setting; the header toggle (theme.js) overrides it and is
   remembered on the device as data-theme on <html>. The two blocks below must stay identical: one for
   "device is dark and no light choice was made", one for "dark was chosen". tools/check-contrast.py checks
   that they match. Both are screen-only, so printing always uses the light colours.
   "Deep Lake + Gold" (Tim, 2026-10-21, Build 9, after "I think the color pallet we currently have is to drab"
   and "The Teal and the Blue need to remain"): page #0A1F38 is a deep lake navy (never pure black); text is a
   cool near-white (never pure #FFF); grey text is a soft blue-grey; labels and accent marks are gold; teal
   stays on buttons, links, focus and the logo; the CTA band is a deep teal.
   ---------------------------------------------------------------------- */
@media screen and (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --color-page: #0A1F38;
    --color-surface: #10294A;
    --color-tint: #0F3B4C;
    --color-header: rgba(10, 31, 56, 0.92);
    --color-mobile-bar: rgba(16, 41, 74, 0.97);
    --color-text: #E6EEF5;
    --color-heading: #F7FAFD;
    --color-muted: #B6C6D6;
    --color-small: #B6C6D6;
    --color-link: #57C2B8;
    --color-label: #E6C068;
    --color-accent: #E6C068;
    --color-underline-muted: rgba(182, 198, 214, 0.55);
    --color-border: #1F3E62;
    --color-border-strong: #6A8AAA;
    --edge-rgb: 230, 238, 245;
    --focus: #57C2B8;
    --color-button: #57C2B8;
    --color-on-button: #0A1F38;
    --color-button-hover: #6FCFC6;
    --color-notice-border: rgba(87, 194, 184, 0.3);
    --color-success: #7FD3A6;
    --color-success-bg: #1B3328;
    --color-success-border: rgba(127, 211, 166, 0.35);
    --color-error: #FF9E94;
    --color-error-bg: #3B2423;
    --color-error-border: rgba(255, 158, 148, 0.45);
    --color-on-error: #0A1F38;
    --color-band: #0E5C5A;
    --color-footer: #061527;
    --color-footer-callout: #10294A;
    --footer-edge: inset 0 1px 0 rgba(247, 250, 253, 0.1);
    --color-on-dark: #F7FAFD;
    --color-on-dark-muted: #C4D3E0;
    --color-on-dark-label: var(--color-on-dark-muted);
    --on-dark-rgb: 247, 250, 253;
    --logo-loop: conic-gradient(from 105deg at 41.39% 50.49%, #57C2B8 0deg, #57C2B8 47deg, #F7FAFD 232deg, #F7FAFD 360deg);
    --logo-name: #F7FAFD;
    --logo-fly: #57C2B8;
    --logo-sub: #C4D3E0;
    --band-hero-bg: linear-gradient(135deg, #0A1F38 0%, #0B3550 55%, #0D4D57 100%);
    --band-rehab-bg: #0D4D57;
    --band-hero-gold: #E6C068;
    --band-rehab-gold: #F0D38E;
    --select-chevron: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23F7FAFD' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.24);
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.24), 0 6px 18px rgba(0, 0, 0, 0.22);
    --shadow-lg: 0 2px 6px rgba(0, 0, 0, 0.28), 0 14px 36px rgba(0, 0, 0, 0.34);
  }
}
@media screen {
  :root[data-theme="dark"] {
    color-scheme: dark;
    --color-page: #0A1F38;
    --color-surface: #10294A;
    --color-tint: #0F3B4C;
    --color-header: rgba(10, 31, 56, 0.92);
    --color-mobile-bar: rgba(16, 41, 74, 0.97);
    --color-text: #E6EEF5;
    --color-heading: #F7FAFD;
    --color-muted: #B6C6D6;
    --color-small: #B6C6D6;
    --color-link: #57C2B8;
    --color-label: #E6C068;
    --color-accent: #E6C068;
    --color-underline-muted: rgba(182, 198, 214, 0.55);
    --color-border: #1F3E62;
    --color-border-strong: #6A8AAA;
    --edge-rgb: 230, 238, 245;
    --focus: #57C2B8;
    --color-button: #57C2B8;
    --color-on-button: #0A1F38;
    --color-button-hover: #6FCFC6;
    --color-notice-border: rgba(87, 194, 184, 0.3);
    --color-success: #7FD3A6;
    --color-success-bg: #1B3328;
    --color-success-border: rgba(127, 211, 166, 0.35);
    --color-error: #FF9E94;
    --color-error-bg: #3B2423;
    --color-error-border: rgba(255, 158, 148, 0.45);
    --color-on-error: #0A1F38;
    --color-band: #0E5C5A;
    --color-footer: #061527;
    --color-footer-callout: #10294A;
    --footer-edge: inset 0 1px 0 rgba(247, 250, 253, 0.1);
    --color-on-dark: #F7FAFD;
    --color-on-dark-muted: #C4D3E0;
    --color-on-dark-label: var(--color-on-dark-muted);
    --on-dark-rgb: 247, 250, 253;
    --logo-loop: conic-gradient(from 105deg at 41.39% 50.49%, #57C2B8 0deg, #57C2B8 47deg, #F7FAFD 232deg, #F7FAFD 360deg);
    --logo-name: #F7FAFD;
    --logo-fly: #57C2B8;
    --logo-sub: #C4D3E0;
    --band-hero-bg: linear-gradient(135deg, #0A1F38 0%, #0B3550 55%, #0D4D57 100%);
    --band-rehab-bg: #0D4D57;
    --band-hero-gold: #E6C068;
    --band-rehab-gold: #F0D38E;
    --select-chevron: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23F7FAFD' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.24);
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.24), 0 6px 18px rgba(0, 0, 0, 0.22);
    --shadow-lg: 0 2px 6px rgba(0, 0, 0, 0.28), 0 14px 36px rgba(0, 0, 0, 0.34);
  }
}

/* ----------------------------------------------------------------------
   Squircle corners on the large shapes (Tim's choice of 2026-10-21, "option C"). Where the browser can draw the
   smoother squircle corner (the corner-shape property), every shape with the large radius gets it: the wide-screen
   panels (section 18b), the closing band (section 12), the form, thank-you and printable-form sheets (the page
   stylesheets forms.css and referral.css), the team page's focused card from 640px (team.css, card #54), the
   office photos (section 9, card #111) and the ABA page's drawing (services.css, card #111). A squircle curves in
   more gently, so the radius rises from 28px to 48px
   to keep about the same visible size. Raising the token here means each of those shapes keeps its own
   border-radius: var(--radius-lg) and follows by itself; the second rule names the same shapes, and
   tests/wide-screens.test.cjs checks that the two lists match. Elsewhere, and in print, the 28px round corner
   above stays. Cards (--radius) and buttons (the pill) keep their own corners.
   ---------------------------------------------------------------------- */
@supports (corner-shape: squircle) {
  @media screen {
    :root { --radius-lg: 48px; }
    .band-deep, .section--raised, .section--tint, .section--band,
    .cta-band, .form-card, .thanks-card, .print-sheet, .profile-dialog, .office-photo, .aba-figure { corner-shape: squircle; }
  }
}

/* ======================================================================
   2. Base
   ====================================================================== */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--color-page);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.65;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
img { height: auto; }
.icon { flex: none; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--color-heading);
  line-height: 1.18;
  letter-spacing: -0.005em;
  margin: 0 0 0.5em;
  text-wrap: balance;
}
h1 { font-size: var(--step-5); line-height: 1.1; letter-spacing: -0.01em; }
/* Calm standard: section headings one step smaller, so the H1 leads and H2s don't shout. */
h2 { font-size: var(--step-3); line-height: 1.15; }
h3 { font-size: var(--step-2); }
h4 { font-size: var(--step-1); }

p, ul, ol, dl, blockquote, figure { margin: 0 0 1em; }
p { text-wrap: pretty; }
ul, ol { padding-left: 1.25em; }
li + li { margin-top: 0.35em; }
[role='list'] { list-style: none; padding: 0; margin: 0; }
[role='list'] > li + li { margin-top: 0; }
strong { font-weight: 650; }

a {
  color: var(--color-link);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
  transition: color var(--dur) var(--ease), text-decoration-color var(--dur) var(--ease);
}
a:hover { color: var(--color-heading); text-decoration-thickness: 2px; }
/* Long unbreakable strings (the email address, full URLs) may wrap, so nothing forces sideways scrolling at
   320px (WCAG 2.2 reflow). */
a[href^="mailto:"], .prose a { overflow-wrap: anywhere; }

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 4px;
}
.on-dark { --focus: var(--teal-400); }

/* Scroll clearance for everything the browser scrolls into view, a fragment target or a focused element: the
   header's height plus 1rem at the top, and below 768px, where the phone bar is fixed, the bar's height plus 1rem
   at the bottom. On the root element, scroll-padding applies to the viewport. */
html { scroll-padding-top: calc(var(--header-h) + 1rem); }
@media (max-width: 767.98px) {
  html { scroll-padding-bottom: calc(var(--mobile-bar-h) + env(safe-area-inset-bottom, 0px) + 1rem); }
}
[hidden] { display: none !important; }

address { font-style: normal; }
hr { border: 0; border-top: 1px solid var(--color-border); margin: var(--space-xl) 0; }

::selection { background: var(--color-button); color: var(--color-on-button); }

main:focus { outline: none; }

/* ======================================================================
   3. Utilities
   ====================================================================== */
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 100;
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-sm);
  background: var(--color-band);
  color: var(--color-on-dark);
  font-family: var(--font-display);
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus { top: 12px; color: var(--color-on-dark); --focus: var(--teal-400); }

/* The eyebrow: a small Raleway label in the label colour, with a short dash in the accent before it. */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin: 0 0 0.9rem;
  font-family: var(--font-display);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-label);
}
.eyebrow::before {
  content: '';
  width: 1.75rem;
  height: 3px;
  border-radius: 3px;
  background: var(--color-accent);
}
/* On a dark panel: teal words on the light theme's navy band; on the dark theme's deep-teal band teal words would be
   3.6:1 (gold 4.49:1), so the muted on-dark colour there (--color-on-dark-label). The dash stays teal in both. */
.eyebrow--light, .on-dark .eyebrow { color: var(--color-on-dark-label); }
.eyebrow--light::before, .on-dark .eyebrow::before { background: var(--teal-400); }

.lead {
  font-size: var(--step-1);
  line-height: 1.55;
  color: var(--color-muted);
  max-width: 60ch;
}
.on-dark .lead { color: var(--color-on-dark-muted); }
.muted { color: var(--color-muted); }
.small { font-size: var(--step--1); color: var(--color-small); }
.text-center { text-align: center; }
.nowrap { white-space: nowrap; }
.measure { max-width: var(--measure); }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }

/* ======================================================================
   4. Layout
   ====================================================================== */
.container {
  width: 100%;
  max-width: calc(var(--container) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container--narrow { max-width: calc(760px + 2 * var(--gutter)); }
.container--wide { max-width: calc(1320px + 2 * var(--gutter)); }

.section { padding-block: var(--section-y); position: relative; }
.section--tight { padding-block: calc(var(--section-y) * 0.6); }
.section--flush-top { padding-top: 0; }
.section--raised { background: var(--color-surface); }
.section--tint { background: var(--color-tint); }
.section--band { background: var(--color-band); color: var(--color-on-dark); }
.section--band h2, .section--band h3, .section--band h4 { color: var(--color-on-dark); }
.section--band p { color: var(--color-on-dark-muted); }
.section--band a:not(.btn) { color: var(--color-on-dark); }

.stack > * + * { margin-top: var(--stack-space, var(--space-m)); }
.stack--s { --stack-space: var(--space-s); }
.stack--l { --stack-space: var(--space-xl); }

.cluster {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--cluster-gap, 0.75rem);
}

.grid { display: grid; gap: var(--grid-gap, clamp(1rem, 0.6rem + 1.5vw, 1.75rem)); }
.grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
@media (min-width: 640px) {
  .grid--2, .grid--3, .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1024px) {
  .grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

.split {
  display: grid;
  gap: var(--space-xl);
  align-items: start;
}
@media (min-width: 900px) {
  .split { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 5rem); }
  .split--wide-left { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); }
  .split--wide-right { grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr); }
  .split--center { align-items: center; }
}

/* Prose (long-form content, legal pages) */
.prose { max-width: var(--measure); }
.prose > * + * { margin-top: 1em; }
.prose p, .prose ul, .prose ol { margin-bottom: 0; }
.prose h2 { font-size: var(--step-3); margin-top: 2em; margin-bottom: 0.4em; }
.prose h3 { font-size: var(--step-2); margin-top: 1.6em; margin-bottom: 0.3em; }
.prose h2 + *, .prose h3 + * { margin-top: 0; }
.prose blockquote {
  margin: 1.75em 0;
  padding: 0.25em 0 0.25em 1.25em;
  border-left: 4px solid var(--color-accent);
  font-family: var(--font-display);
  font-size: var(--step-1);
  color: var(--color-heading);
}
.prose hr { margin: 2.5em 0; }

/* Section header */
.section-head { margin-bottom: clamp(1.75rem, 1.2rem + 2vw, 3rem); max-width: 720px; }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .eyebrow { justify-content: center; }
.section-head--center .lead { margin-inline: auto; }
.section-title { margin-bottom: 0.35em; }
.section-head .lead { margin-bottom: 0; }

/* ======================================================================
   5. Buttons and links
   ====================================================================== */
.btn {
  --btn-bg: var(--color-button);
  --btn-fg: var(--color-on-button);
  --btn-border: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 48px;
  padding: 0.7rem 1.35rem;
  border: 2px solid var(--btn-border);
  border-radius: var(--radius-pill);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease), border-color var(--dur) var(--ease), transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.btn:hover { color: var(--btn-fg); text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn .icon { transition: transform var(--dur) var(--ease); }
.btn:hover .icon:last-child:not(:first-child) { transform: translateX(2px); }

.btn--primary { box-shadow: var(--shadow-sm); }
.btn--primary:hover { --btn-bg: var(--color-button-hover); box-shadow: var(--shadow); }
.btn--ghost { --btn-bg: transparent; --btn-fg: var(--color-heading); --btn-border: var(--color-heading); }
.btn--ghost:hover { --btn-bg: var(--color-tint); }
.btn--light { --btn-bg: transparent; --btn-fg: var(--color-on-dark); --btn-border: rgba(var(--on-dark-rgb), 0.85); }
.btn--light:hover { --btn-bg: rgba(var(--on-dark-rgb), 0.1); --btn-border: var(--color-on-dark); }
/* On a dark panel (the CTA band) the primary button is the panel's cream on its own colour, so the button's edge
   reads against the panel in both themes. */
.on-dark .btn--primary { --btn-bg: var(--color-on-dark); --btn-fg: var(--color-band); }
.on-dark .btn--primary:hover { --btn-bg: var(--color-on-dark); }
.btn--sm { min-height: 44px; padding: 0.55rem 1.1rem; font-size: 0.9375rem; }
.btn--lg { min-height: 54px; padding: 0.8rem 1.6rem; font-size: 1.0625rem; }
.btn--block { width: 100%; }
.btn[disabled], .btn[aria-disabled='true'] { opacity: 0.6; cursor: not-allowed; transform: none; }

.actions { --cluster-gap: 0.75rem; }
@media (max-width: 479.98px) {
  .actions > .btn { width: 100%; }
  .btn--lg { padding-inline: 1.1rem; font-size: 1rem; }
  .cta-band { padding: 1.75rem 1.25rem; }
}

.arrow-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 44px;
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--color-heading);
  text-decoration: none;
}
/* The underline is the link's teal (Build 9: gold is for highlights only, never on anything clickable). */
.arrow-link span { text-decoration: underline; text-decoration-color: var(--color-link); text-decoration-thickness: 2px; text-underline-offset: 0.3em; }
.arrow-link:hover span { text-decoration-color: var(--color-heading); }
.arrow-link .icon { transition: transform var(--dur) var(--ease); }
.arrow-link:hover .icon { transform: translateX(3px); }
.on-dark .arrow-link { color: var(--color-on-dark); }
.on-dark .arrow-link:hover span { text-decoration-color: var(--color-on-dark); }

/* A quiet text link (no arrow, no accent), for secondary paths. */
.quiet-link { display: inline-flex; align-items: center; min-height: 44px; color: var(--color-muted); font-size: 0.9375rem; text-decoration-color: var(--color-underline-muted); }
.quiet-link:hover { color: var(--color-heading); text-decoration-color: currentColor; }

/* ======================================================================
   6. Cards
   ====================================================================== */
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  padding: clamp(1.25rem, 1rem + 1vw, 1.75rem);
  background: var(--color-surface);
  border: 1px solid rgba(var(--edge-rgb), 0.07);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.card__title { font-size: var(--step-1); margin: 0; line-height: 1.25; }
.card__body { color: var(--color-muted); }
.card__body > :last-child { margin-bottom: 0; }
.card__icon {
  display: inline-grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--color-tint);
  color: var(--color-heading);
  margin-bottom: 0.35rem;
}
.card__link { color: inherit; text-decoration: none; }
.card__link::after { content: ''; position: absolute; inset: 0; border-radius: inherit; }
.card__link:focus-visible { outline: none; }
.card--link:focus-within { outline: 3px solid var(--focus); outline-offset: 3px; }
.card--link:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: rgba(var(--edge-rgb), 0.14); }
.card__more {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: auto;
  padding-top: 0.35rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--color-link);
}
.card--link:hover .card__more .icon { transform: translateX(3px); }
.card__more .icon { transition: transform var(--dur) var(--ease); }
/* Phones: icon beside the text, so a row of cards doesn't become a very long scroll. */
@media (max-width: 639.98px) {
  .service-card { display: grid; grid-template-columns: 44px minmax(0, 1fr); column-gap: 1rem; row-gap: 0.3rem; align-items: start; padding: 1.15rem 1.15rem 1rem; }
  .service-card > .card__icon { grid-column: 1; grid-row: 1 / span 3; width: 44px; height: 44px; margin: 0; }
  .service-card > .card__icon .icon { width: 22px; height: 22px; }
  .service-card > :not(.card__icon) { grid-column: 2; }
  .service-card .card__more { padding-top: 0.15rem; }
}

/* ======================================================================
   7. Chips, checklists, steps
   ====================================================================== */
.chips { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 40px;
  padding: 0.4rem 0.95rem;
  border-radius: var(--radius-pill);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  color: var(--color-text);
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.3;
}
/* The chip's own mark in the accent (gold); only a direct child, so an icon inside a chip link stays teal (below). */
.chip > .icon { color: var(--color-accent); }
/* Trust chips (calm standard): a quiet row of checked phrases, not a cluster of pills. */
.chips--trust { gap: 0.35rem 1.5rem; }
.chips--trust .chip {
  min-height: 0;
  padding: 0;
  background: none;
  border: 0;
  border-radius: 0;
  color: var(--color-muted);
  font-weight: 600;
}
.chips--trust .chip .icon { width: 18px; height: 18px; }
.on-dark .chips--trust .chip { color: var(--color-on-dark-muted); }
/* A trust chip that is a link (the Auto No-Fault chip links to the guide, Build 8): the chip's own colour and layout,
   the heading colour on hover. Its underline is its link cue, so it is the link teal (at least 3:1 on every stop of
   the hero's band, checked by tools/check-contrast.py), and so is its check (Build 9, the reviewer's findings: no gold
   on anything clickable). */
.chip__link { display: inline-flex; align-items: center; gap: inherit; color: inherit; text-decoration: underline; text-decoration-color: var(--color-link); text-underline-offset: 0.2em; }
.chip__link .icon { color: var(--color-link); }
.chip__link:hover { color: var(--color-heading); text-decoration-color: currentColor; }

.checklist li { display: flex; gap: 0.7rem; align-items: flex-start; }
.checklist li + li { margin-top: 0.7rem; }
.checklist .icon { margin-top: 0.2em; color: var(--color-accent); }
.on-dark .checklist .icon { color: var(--teal-400); }

.steps { display: grid; gap: 1.25rem; counter-reset: step; }
@media (min-width: 900px) {
  .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem; }
}
.step { position: relative; display: flex; gap: 1rem; align-items: flex-start; }
@media (min-width: 900px) {
  .step { flex-direction: column; gap: 1.1rem; }
  .step:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 28px;
    left: 72px;
    right: -1rem;
    height: 2px;
    background: var(--color-border);
  }
}
.step__num {
  flex: none;
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--color-surface);
  border: 2px solid var(--color-accent);
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--color-heading);
}
.step__title { font-size: var(--step-1); margin: 0.35rem 0 0.35rem; }
.step__num svg { display: block; }
/* One under another at every width (inside a card), and smaller rings for a side box. */
@media (min-width: 900px) {
  .steps.steps--stack { grid-template-columns: minmax(0, 1fr); gap: 1.25rem; }
  .steps--stack .step { flex-direction: row; gap: 1rem; }
  .steps--stack .step::after { content: none; }
}
.steps--compact { gap: 1rem; }
.steps--compact .step { gap: 0.8rem; }
.steps--compact .step__num { width: 40px; height: 40px; font-size: 1.15rem; }
.steps--compact .step__num svg { width: 20px; height: 20px; }
.steps--compact .step__title { font-size: var(--step-0); margin: 0.45rem 0 0.2rem; }
.steps--compact .step__body p { margin: 0; }
/* A step with a name and no sentence: the name centred on its ring. */
.steps--stack .step--solo { align-items: center; }
.steps--stack .step--solo .step__title { margin: 0; }
.step__body p { margin: 0; color: var(--color-muted); }

/* ======================================================================
   8. Breadcrumbs
   ====================================================================== */
.breadcrumbs-wrap { padding-top: 1.1rem; }
.breadcrumbs ol { display: flex; flex-wrap: wrap; align-items: center; gap: 0.25rem 0; list-style: none; margin: 0; padding: 0; font-size: 0.9375rem; }
.breadcrumbs li { display: inline-flex; align-items: center; margin: 0; }
.breadcrumbs li + li::before {
  content: '';
  width: 6px;
  height: 6px;
  margin: 0 0.7rem 0 0.55rem;
  border-top: 1.5px solid var(--color-muted);
  border-right: 1.5px solid var(--color-muted);
  transform: rotate(45deg);
}
.breadcrumbs a { color: var(--color-muted); text-decoration: underline; text-decoration-color: var(--color-underline-muted); display: inline-block; padding-block: 0.6rem; }
.breadcrumbs a:hover { color: var(--color-heading); text-decoration-color: currentColor; }
.breadcrumbs [aria-current='page'] { color: var(--color-text); font-weight: 600; }

/* ======================================================================
   9. Page hero (inner pages)
   ====================================================================== */
.page-hero { position: relative; overflow: hidden; padding-block: clamp(2rem, 1.5rem + 3vw, 4rem) clamp(2.5rem, 2rem + 3vw, 4.5rem); }
.page-hero__inner { position: relative; z-index: 1; display: grid; gap: var(--space-xl); }
.page-hero__text { max-width: 760px; }
.page-hero .page-title { font-size: var(--step-5); margin-bottom: 0.4em; }
.page-hero .lead { margin-bottom: 1.5rem; }
.page-hero .lead:last-child { margin-bottom: 0; }
@media (min-width: 900px) {
  .page-hero--split .page-hero__inner { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); align-items: center; }
}

/* Office photos (card #111, 2026-11-15; src/office-photos.mjs): beside a page's heading (the hero's aside), or as a
   wide strip in a section. One component for both, tokens only. Each photo keeps its own file's shape (width and
   height on the <img>): the strip's shape is its crop, made by the office-photo tool, so nothing here sets a ratio.
   The large radius takes the squircle where the browser draws one (the squircle block below). */
.office-photo {
  margin: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--color-surface);
  border: 1px solid rgba(var(--edge-rgb), 0.1);
}
.office-photo img { display: block; width: 100%; height: auto; }
.office-photo--wide { margin-block-end: var(--space-l); }

/* ======================================================================
   10. FAQ and disclosures
   ====================================================================== */
.faq { display: grid; gap: 0.75rem; max-width: 860px; }
.faq__item {
  background: var(--color-surface);
  border: 1px solid rgba(var(--edge-rgb), 0.1);
  border-radius: var(--radius);
}
.faq__q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 60px;
  padding: 1rem 1.25rem;
  cursor: pointer;
  list-style: none;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--step-0);
  color: var(--color-heading);
  border-radius: var(--radius);
}
.faq__q::-webkit-details-marker { display: none; }
.faq__q::marker { content: ''; }
.faq__marker {
  position: relative;
  flex: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--color-tint);
}
.faq__marker::before, .faq__marker::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  width: 12px;
  height: 2px;
  margin: -1px 0 0 -6px;
  border-radius: 2px;
  background: var(--color-heading);
  transition: transform var(--dur) var(--ease);
}
.faq__marker::after { transform: rotate(90deg); }
.faq__item[open] .faq__marker::after { transform: rotate(0deg); }
.faq__item[open] .faq__q { border-bottom-left-radius: 0; border-bottom-right-radius: 0; }
.faq__a { padding: 0 1.25rem 1.25rem; color: var(--color-muted); }
.faq__a > :last-child { margin-bottom: 0; }

/* Progressive disclosure ("read more"), calm standard principle 3.
   Markup: <details class="more"><summary class="more__summary">…</summary><div class="more__body">…</div></details>
   (or components.disclosure()). Quiet by design: no box, a small chevron that turns when open. */
.more { margin: 0.75rem 0 0; }
.more__summary {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 44px;
  padding: 0.35rem 0.25rem 0.35rem 0;
  cursor: pointer;
  list-style: none;
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--color-link);
  border-radius: var(--radius-xs);
}
.more__summary::-webkit-details-marker { display: none; }
.more__summary::marker { content: ''; }
.more__summary::before {
  content: '';
  flex: none;
  width: 0.5em;
  height: 0.5em;
  margin: 0 0.2em 0 0.1em;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(-45deg);
  transition: transform var(--dur) var(--ease);
}
.more[open] > .more__summary::before { transform: rotate(45deg) translate(-0.1em, -0.1em); }
.more__summary:hover { color: var(--color-heading); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
.more__summary:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.more__body { padding: 0.35rem 0 0.5rem; color: var(--color-text); }
.more__body > :last-child { margin-bottom: 0; }
.on-dark .more__summary { color: var(--color-on-dark); }
.on-dark .more__body { color: var(--color-on-dark-muted); }
@media (forced-colors: active) {
  .more__summary::before { border-color: CanvasText; }
}

/* ======================================================================
   11. Notices, crisis, quote
   ====================================================================== */
.notice {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  padding: 1rem 1.15rem;
  border-radius: var(--radius-sm);
  border: 1px solid;
  background: var(--color-tint);
  border-color: var(--color-notice-border);
  color: var(--color-text);
}
.notice__icon { margin-top: 0.1em; color: var(--color-label); }
.notice__body > :last-child { margin-bottom: 0; }
.notice__body p { margin-bottom: 0.35em; }
.notice__title { font-family: var(--font-display); font-weight: 600; color: var(--color-heading); }
/* The caution notice is the same kind of card as the crisis card: an accent edge and icon carry the signal. */
.notice--warning { border-left: 5px solid var(--color-accent); }
.notice--warning .notice__icon { color: var(--color-accent); }
.notice--success { background: var(--color-success-bg); border-color: var(--color-success-border); }
.notice--success .notice__icon, .notice--success .notice__title { color: var(--color-success); }
.notice--error { background: var(--color-error-bg); border-color: var(--color-error-border); }
.notice--error .notice__icon, .notice--error .notice__title { color: var(--color-error); }

.crisis {
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
  padding: 1rem 1.2rem;
  border-radius: var(--radius-sm);
  background: var(--color-tint);
  border: 1px solid var(--color-notice-border);
  border-left: 5px solid var(--color-accent);
}
.crisis__icon { margin-top: 0.1em; color: var(--color-accent); }
.crisis__body p { margin: 0 0 0.35rem; }
.crisis__title { font-family: var(--font-display); font-size: 1rem; font-weight: 600; color: var(--color-heading); margin: 0 0 0.25rem; }
.crisis__links { display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; margin: 0.35rem 0 0 !important; }
.crisis__links a { display: inline-flex; align-items: center; min-height: 44px; font-family: var(--font-display); font-weight: 600; }
.crisis--prominent { padding: 1.25rem 1.4rem; }
.crisis--prominent .crisis__title { font-size: var(--step-1); }
.crisis--footer {
  margin-top: var(--space-xl);
  background: var(--color-footer-callout);
  border-color: rgba(var(--on-dark-rgb), 0.14);
  border-left-color: var(--teal-400);
  color: var(--color-on-dark-muted);
}
.crisis--footer .crisis__title, .crisis--footer strong { color: var(--color-on-dark); }
.crisis--footer .crisis__icon { color: var(--teal-400); }
.crisis--footer a { color: var(--color-on-dark); }

.quote { margin: 0; }
.quote blockquote { margin: 0; }
.quote blockquote p {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: var(--step-3);
  line-height: 1.25;
  color: var(--color-heading);
  margin: 0;
}
.quote figcaption { margin-top: 0.9rem; font-weight: 650; color: var(--color-muted); }
.quote figcaption::before { content: '\2014\00a0'; }
.on-dark .quote blockquote p { color: var(--color-on-dark); }
.on-dark .quote figcaption { color: var(--color-on-dark-muted); }

/* ======================================================================
   12. CTA band
   ====================================================================== */
.cta-band-wrap { padding-block: var(--section-y); }
.section + .cta-band-wrap { padding-top: 0; }
/* After a section with its own background the colour changes at the band's top edge, so the card keeps its full
   cushion there, the same as below it. */
.section:is(.section--raised, .section--tint, .section--band, .band-deep) + .cta-band-wrap { padding-top: var(--section-y); }
.cta-band {
  position: relative;
  overflow: hidden;
  display: grid;
  gap: var(--space-l);
  padding: clamp(2rem, 1.25rem + 3.5vw, 4rem);
  border-radius: var(--radius-lg);
  background: var(--color-band);
  color: var(--color-on-dark);
}
@media (min-width: 900px) {
  .cta-band { grid-template-columns: minmax(0, 1.3fr) auto; align-items: center; }
}
.cta-band__text { position: relative; z-index: 1; max-width: 640px; }
.cta-band__title { color: var(--color-on-dark); font-size: var(--step-3); margin-bottom: 0.3em; }
.cta-band__lead { color: var(--color-on-dark-muted); font-size: var(--step-1); margin: 0; }
.cta-band .actions { position: relative; z-index: 1; }
@media (min-width: 900px) {
  .cta-band .actions { flex-direction: column; align-items: stretch; }
}
.cta-band__quote { margin: 1.5rem 0 0; padding-left: 1rem; border-left: 3px solid var(--teal-400); }
.cta-band__quote blockquote { margin: 0; }
.cta-band__quote p { margin: 0; font-family: var(--font-display); font-size: var(--step-1); color: var(--color-on-dark); }
.cta-band__quote figcaption { margin-top: 0.3rem; font-size: 0.9375rem; color: var(--color-on-dark-muted); }
.cta-band__quote figcaption::before { content: '\2014\00a0'; }

/* ======================================================================
   13. Contact, hours, the name and address
   ====================================================================== */
.nap { display: flex; flex-direction: column; gap: 0.1rem; }
.nap__name { font-family: var(--font-display); font-weight: 600; }
.nap__directions { display: inline-flex; align-items: center; gap: 0.4rem; min-height: 44px; margin-top: 0.35rem; font-family: var(--font-display); font-weight: 600; }

.contact-list li { display: flex; gap: 0.75rem; align-items: flex-start; }
.contact-list li + li { margin-top: 0.8rem; }
.contact-list .icon { margin-top: 0.2em; color: var(--color-label); }
.contact-list li > span, .footer-contact li > span { min-width: 0; }
.contact-list a, .footer-contact a, .nap a { overflow-wrap: break-word; }
/* The footer's email is the one unbreakable string in its column. Below 340px (the narrowest single-column
   footer) anywhere lets the address break rather than widen the column. */
@media (max-width: 339.98px) {
  .footer-contact a { overflow-wrap: anywhere; }
}

.hours__line { margin: 0; }
.hours__label { display: block; font-family: var(--font-display); font-weight: 600; }
.hours__note { margin: 0.75rem 0 0; font-size: var(--step--1); color: var(--color-small); }

/* ======================================================================
   14. The logo art: the brush circle, the name and the dragonfly as CSS masks (components.logoArt, the footer).
   The circle and the dragonfly are the redrawn master's two parts (public/assets/brand/emblem-*.svg, made by
   brand-src/emblem/hero.mjs from emblem.json; card #71), the name today's lettering; each a 1400 x 1180 outline used
   as a mask over a box of the same proportion and filled with its --logo- token, so the art is crisp at every size and
   density and follows dark and light. (The hero draws the same master as one inline SVG: sections 18 and emblem.css.)
   ====================================================================== */
.logo {
  position: relative;
  display: block;
  flex: none;
  width: calc(var(--logo-h) * 1400 / 1180);
  height: var(--logo-h);
}
.logo__layer {
  position: absolute;
  inset: 0;
  display: block;
  -webkit-mask: var(--m) center / 100% 100% no-repeat;
  mask: var(--m) center / 100% 100% no-repeat;
  background: var(--c);
}
.logo__layer--loop { --m: url('/assets/brand/emblem-circle.svg?v=0d6c69e5'); --c: var(--logo-loop); }
.logo__layer--name { --m: url('/assets/brand/vector-name.svg?v=51e05d71'); --c: var(--logo-name); }
.logo__layer--fly { --m: url('/assets/brand/emblem-dragonfly.svg?v=7b260ad8'); --c: var(--logo-fly); }
/* In the footer (dark in both themes): the loop and the name in the footer's cream, the dragonfly teal. */
.logo--footer { --logo-h: 92px; --logo-loop: var(--color-on-dark); --logo-name: var(--color-on-dark); --logo-fly: var(--teal-400); margin-bottom: 1.1rem; }
/* The footer logo is a link back to the top of the page (card #124): a block exactly as wide as the logo, so it looks
   as before and the site's focus ring (:focus-visible) wraps the logo alone; a link's pointer cursor. */
.footer-logo-link { display: block; width: fit-content; }
/* Forced colours (Windows high contrast): the layers draw in the system's text colour through their masks. */
@media (forced-colors: active) {
  .logo__layer { forced-color-adjust: none; background: CanvasText; }
}

/* ======================================================================
   15. Header and navigation
   ====================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(var(--edge-rgb), 0.08);
}
/* Blur lives on a pseudo-element so it doesn't become the containing block for the fixed mobile panel. */
.site-header::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--color-header);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  backdrop-filter: saturate(1.4) blur(12px);
}
.site-header__inner { display: flex; align-items: center; gap: 0.75rem; height: var(--header-h); }

/* The wordmark, as on the sister site's header: the logo's script name (a mask of the trimmed name drawing, its
   true 993:345 proportion) over the subtitle in small Raleway capitals, two lines like the hero's. It takes the
   free space so nothing else moves. Card #130 (Tim, 2026-11-16: "Can we increase the size of the Therapy Center
   text"; "Option 2: bigger everywhere (Recommended)"): the name 45px tall, 50px from 1280px (it was 34px and 42px),
   in its own shape: align-items: flex-start keeps it at the width its height and aspect ratio give (a stretched flex
   item took the width of the line under it, up to about 20% wider). */
.wordmark {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  min-height: 44px;
  margin-right: auto;
  text-decoration: none;
  border-radius: var(--radius-xs);
}
.wordmark:focus-visible { outline-offset: 4px; }
.wordmark__name {
  display: block;
  height: 45px;
  aspect-ratio: 993 / 345;
  -webkit-mask: url('/assets/brand/vector-name-wordmark.svg?v=704b1ec9') center / 100% 100% no-repeat;
  mask: url('/assets/brand/vector-name-wordmark.svg?v=704b1ec9') center / 100% 100% no-repeat;
  background: var(--logo-name);
}
.wordmark__tag {
  margin-top: 0.2rem;
  font-family: var(--font-display);
  font-size: 0.5625rem;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--logo-sub);
}
.wordmark__tag span { display: block; }
@media (min-width: 1280px) {
  .wordmark__name { height: 50px; }
  .wordmark__tag { font-size: 0.625rem; }
}
@media (forced-colors: active) {
  .wordmark__name { forced-color-adjust: none; background: CanvasText; }
}

.header-cta { display: none; }
@media (min-width: 560px) and (max-width: 1279.98px) {
  .header-cta { display: inline-flex; }
}

.menu-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 44px;
  min-width: 44px;
  padding: 0.5rem 0.8rem;
  border: 1.5px solid rgba(var(--edge-rgb), 0.2);
  border-radius: var(--radius-pill);
  background: var(--color-surface);
  color: var(--color-heading);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.9375rem;
  cursor: pointer;
}
.menu-toggle:hover { border-color: var(--color-heading); }
.menu-toggle__close { display: none; }
.menu-toggle[aria-expanded='true'] .menu-toggle__open { display: none; }
.menu-toggle[aria-expanded='true'] .menu-toggle__close { display: inline; }
.menu-toggle .icon { display: block; }

/* Light/dark toggle. theme.js removes [hidden] (so without JavaScript there is no toggle and the site follows
   the device setting). Two copies, one visible at a time: a round icon button in the header bar on desktop,
   placed in the free space left of the nav so nothing else moves; and a row with a switch in the menu panel on
   phones and tablets. aria-pressed = dark mode is on. */
.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1.5px solid rgba(var(--edge-rgb), 0.2);
  border-radius: var(--radius-pill);
  background: var(--color-surface);
  color: var(--color-heading);
  font: inherit;
  cursor: pointer;
}
.theme-toggle:hover { border-color: var(--color-heading); }
.theme-toggle .icon { display: block; }
/* Bar button: the icon shows what a press does, a moon while the page is light and a sun while it is dark.
   (The panel row keeps its moon; its switch shows the state.) */
.theme-toggle--bar .theme-toggle__sun,
.theme-toggle--bar[aria-pressed='true'] .theme-toggle__moon { display: none; }
.theme-toggle--bar[aria-pressed='true'] .theme-toggle__sun { display: block; }
.theme-toggle--panel { display: none; }
.theme-toggle__switch {
  position: relative;
  flex: none;
  width: 48px;
  height: 28px;
  margin-left: auto;
  border: 1.5px solid var(--color-border-strong);
  border-radius: var(--radius-pill);
  background: var(--color-surface);
  transition: background-color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.theme-toggle__switch::after {
  content: '';
  position: absolute;
  top: 3.5px;
  left: 3.5px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--color-muted);
  transition: transform var(--dur) var(--ease), background-color var(--dur) var(--ease);
}
.theme-toggle[aria-pressed='true'] .theme-toggle__switch { background: var(--color-button); border-color: var(--color-button); }
.theme-toggle[aria-pressed='true'] .theme-toggle__switch::after { transform: translateX(20px); background: var(--color-page); }
@media (max-width: 1279.98px) {
  .theme-toggle--bar { display: none; }
  .theme-toggle--panel {
    display: flex;
    justify-content: flex-start;
    gap: 0.6rem;
    width: 100%;
    height: auto;
    min-height: 52px;
    padding: 0.65rem 0.25rem;
    border: 0;
    border-bottom: 1px solid var(--color-border);
    border-radius: 0;
    background: none;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1.125rem;
    text-align: left;
  }
  .theme-toggle--panel .icon { color: var(--color-link); }
}
@media (forced-colors: active) {
  .theme-toggle__switch { border-color: ButtonText; }
  .theme-toggle__switch::after { background: ButtonText; }
  .theme-toggle[aria-pressed='true'] .theme-toggle__switch { background: Highlight; border-color: Highlight; }
  .theme-toggle[aria-pressed='true'] .theme-toggle__switch::after { background: HighlightText; }
}

.nav-list { display: flex; flex-direction: column; }
.nav-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.35rem;
  width: 100%;
  min-height: 52px;
  padding: 0.65rem 0.25rem;
  border: 0;
  background: none;
  color: var(--color-text);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.125rem;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}
.nav-link:hover { color: var(--color-heading); }
.nav-link[aria-current='page'], .nav-item.is-active > .nav-link { color: var(--color-heading); }
.nav-toggle__chevron { transition: transform var(--dur) var(--ease); }
.nav-toggle[aria-expanded='true'] .nav-toggle__chevron { transform: rotate(180deg); }

.nav-sub { display: none; }
.nav-toggle[aria-expanded='true'] + .nav-sub { display: block; }
.nav-sub__list li + li { margin: 0; }
.nav-sub__link {
  display: flex;
  align-items: center;
  min-height: 46px;
  padding: 0.55rem 0.85rem;
  border-radius: var(--radius-xs);
  color: var(--color-text);
  font-weight: 550;
  text-decoration: none;
}
.nav-sub__link:hover { background: var(--color-tint); color: var(--color-heading); }
.nav-sub__link[aria-current='page'] { background: var(--color-tint); color: var(--color-heading); font-weight: 650; }

.nav-actions { display: flex; flex-direction: column; gap: 0.75rem; }
.nav-phone {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 44px;
  color: var(--color-heading);
  font-family: var(--font-display);
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}
.nav-phone:hover { color: var(--color-link); text-decoration: underline; }
.nav-phone .icon { color: var(--color-link); }

/* Mobile / tablet: full-height panel (below 1280px since card #130; it was 1120px) */
@media (max-width: 1279.98px) {
  .site-nav {
    display: none;
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    bottom: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 0.75rem var(--gutter) 2rem;
    background: var(--color-page);
    border-top: 1px solid var(--color-border);
  }
  .site-header.is-open .site-nav { display: flex; flex-direction: column; gap: 1.25rem; }
  .nav-item { border-bottom: 1px solid var(--color-border); }
  .nav-sub { padding: 0 0 0.75rem; }
  .nav-sub__link { font-size: 1.0625rem; }
  .nav-actions { padding-top: 0.5rem; }
  .nav-actions .btn { width: 100%; min-height: 52px; font-size: 1.0625rem; }
  .nav-phone { font-size: 1.0625rem; }
  html.nav-open { overflow: hidden; }
}

/* Desktop: inline nav, from 1280px (card #130; it was 1120px, where the row was crowded up to 1252px) */
@media (min-width: 1280px) {
  .menu-toggle { display: none; }
  .site-nav { display: flex; align-items: center; gap: 1.1rem; }
  .nav-list { flex-direction: row; align-items: center; gap: 0.1rem; }
  .nav-item { position: relative; }
  .nav-link {
    width: auto;
    min-height: 44px;
    padding: 0.5rem 0.6rem; /* 0.75rem before card #130: with the bigger name, the row fits at 1280px only this way */
    border-radius: var(--radius-pill);
    font-size: 0.95rem;
  }
  .nav-link:hover, .nav-toggle[aria-expanded='true'] { background: rgba(var(--edge-rgb), 0.06); }
  .nav-link[aria-current='page'], .nav-item.is-active > .nav-link { box-shadow: inset 0 -2px 0 var(--color-link); border-radius: var(--radius-pill) var(--radius-pill) 4px 4px; }
  .nav-sub {
    position: absolute;
    top: calc(100% + 10px);
    left: -0.5rem;
    min-width: 300px;
    padding: 0.5rem;
    background: var(--color-surface);
    border: 1px solid rgba(var(--edge-rgb), 0.08);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
  }
  .nav-toggle[aria-expanded='true'] + .nav-sub { animation: nav-in var(--dur) var(--ease); }
  .nav-actions { flex-direction: row; align-items: center; gap: 1rem; }
  .nav-phone__label { color: var(--color-muted); font-weight: 600; }
}
@keyframes nav-in {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: none; }
}

/* Without JavaScript: dropdowns open on focus/hover; the mobile nav is shown in-flow. */
@media (scripting: none) {
  .nav-item--has-sub:hover > .nav-sub,
  .nav-item--has-sub:focus-within > .nav-sub { display: block; }
  .menu-toggle { display: none; }
  @media (max-width: 1279.98px) {
    .site-header { position: static; }
    .site-header__inner { flex-wrap: wrap; height: auto; padding-block: 0.5rem; }
    .site-nav { display: block; position: static; width: 100%; padding: 0; border: 0; background: none; }
    .nav-sub { display: block; }
  }
}

/* ======================================================================
   16. Mobile action bar: Call / Request care, fixed at the bottom on phones
   ====================================================================== */
.mobile-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
  padding: 0.6rem 16px calc(0.6rem + env(safe-area-inset-bottom, 0px));
  background: var(--color-mobile-bar);
  border-top: 1px solid var(--color-border);
  box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.08);
}
.mobile-bar__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 50px;
  border-radius: var(--radius-pill);
  font-family: var(--font-display);
  font-weight: 600;
  text-decoration: none;
}
.mobile-bar__btn--call { border: 2px solid var(--color-heading); color: var(--color-heading); background: var(--color-surface); }
.mobile-bar__btn--request { background: var(--color-button); color: var(--color-on-button); }
.mobile-bar__btn--call:hover { color: var(--color-heading); }
.mobile-bar__btn--request:hover { color: var(--color-on-button); background: var(--color-button-hover); }
/* Screens narrower than 340px: a little less gap and side padding on the bar, and the request column never
   narrower than its label; the Call column takes what is left. */
@media (max-width: 339.98px) {
  .mobile-bar { gap: 0.45rem; padding-inline: 12px; grid-template-columns: 1fr minmax(max-content, 1fr); }
}
@media (max-width: 767.98px) {
  body { padding-bottom: calc(var(--mobile-bar-h) + env(safe-area-inset-bottom, 0px)); }
}
@media (min-width: 768px) {
  .mobile-bar { display: none; }
}

/* ======================================================================
   17. Footer
   ====================================================================== */
.site-footer {
  position: relative;
  padding-block: clamp(3rem, 2rem + 4vw, 5rem) 2rem;
  background: var(--color-footer);
  box-shadow: var(--footer-edge); /* dark theme: a top hairline keeps it apart from the page */
  color: var(--color-on-dark-muted);
  font-size: 0.975rem;
}
.site-footer a { color: var(--color-on-dark); text-decoration-color: rgba(var(--on-dark-rgb), 0.45); }
.site-footer a:hover { color: var(--color-on-dark); text-decoration-color: var(--color-on-dark); }
.footer-grid { display: grid; gap: 2.25rem; }
/* Two columns from 640px: the brand column may grow to its minimum, so the email, its one unbreakable string,
   stays whole; the second column keeps its 0 minimum. Four columns from 1024px. */
@media (min-width: 640px) { .footer-grid { grid-template-columns: minmax(auto, 1fr) minmax(0, 1fr); } }
@media (min-width: 1024px) { .footer-grid { grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 3rem; } }
.nap--footer { margin-bottom: 1rem; }
.nap--footer .nap__name { color: var(--color-on-dark); }
.nap--footer .nap__directions { gap: 1rem; color: var(--color-on-dark); }
.footer-contact li { display: flex; gap: 1rem; align-items: flex-start; }
.footer-contact li + li { margin-top: 0.5rem; }
.footer-contact .icon { margin-top: 0.2em; color: var(--teal-400); }
/* One icon slot for every footer contact row: 24px wide with the icon centred, and the same 1rem gap on the
   directions link above, so the words of every row start at the same place. */
.footer-contact li > .icon, .nap--footer .nap__directions > .icon { flex: none; width: 24px; }
/* The practice's LinkedIn page (card 139): LinkedIn's own logo alone, in a 44 x 44 tap target pulled 8px to the left
   so the logo lines up with the icons above; the site's focus ring (teal on the dark band). The footer is dark in both
   themes, so the white logo shows in both; under forced colours the page's colours are replaced (the footer may turn
   white), so the blue one shows instead, at least 3:1 on black and on white. No filter or background: the logo is
   LinkedIn's, as it is. */
.footer-social { margin: 1rem 0 0; }
.footer-linkedin { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; margin-inline-start: -8px; }
.footer-linkedin__logo { display: block; width: auto; height: 26px; }
.footer-linkedin__logo--blue { display: none; }
@media (forced-colors: active) {
  .footer-linkedin__logo--white { display: none; }
  .footer-linkedin__logo--blue { display: block; }
}
.footer-title {
  font-family: var(--font-display);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal-400);
  margin: 0 0 1rem;
}
.footer-title--spaced { margin-top: 2rem; }
.footer-links li + li { margin-top: 0.15rem; }
.footer-links a { display: inline-flex; align-items: center; min-height: 36px; text-decoration: none; }
.footer-links a:hover { text-decoration: underline; }
.hours--footer .hours__label { color: var(--color-on-dark); }
.hours--footer .hours__note { color: var(--color-on-dark-muted); max-width: 30ch; }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 2rem;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(var(--on-dark-rgb), 0.14);
  font-size: var(--step--1);
}
.footer-bottom p { margin: 0; }

/* ======================================================================
   18. Home (Build 2; the drawing since card #71): the hero with the logo art and the dragonfly arrival. The words
   sit on the left, the art on the right; below 900px the art comes first, above the words, so the arrival is on
   screen when the page opens on a phone.
   ====================================================================== */
/* The arrival reaches outside the art box (the dragonfly arrives from beyond it, its glow rounds the top of the loop
   and the sparkles drift below it; the drawing is not clipped to its box). Clip only sideways, so the page never
   scrolls horizontally; vertical overflow stays visible. */
.hero { position: relative; overflow-x: clip; overflow-y: visible; padding-block: clamp(1.75rem, 1rem + 3vw, 4.5rem) clamp(3rem, 2rem + 4vw, 5.5rem); }
.hero__inner { position: relative; z-index: 1; display: grid; gap: clamp(1.5rem, 1rem + 2vw, 2.5rem); align-items: center; }
.hero__text { max-width: 620px; }
.hero__title { font-size: clamp(1.75rem, 1.3rem + 1.8vw, 2.75rem); max-width: 16em; margin-bottom: 0.5em; }
.hero__lead { font-size: var(--step-1); line-height: 1.6; color: var(--color-muted); max-width: 52ch; margin-bottom: 1.75rem; }
.hero .actions { margin-bottom: 1.5rem; }
.hero .chips--trust { margin: 0; }
.hero__art { order: -1; width: min(100%, 440px); justify-self: center; }
@media (min-width: 900px) {
  .hero__inner { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 5rem); }
  .hero__art { order: 0; width: min(100%, 560px); justify-self: end; }
}
.section-foot { margin: 1.75rem 0 0; }

/* The art box keeps the logo's proportion (1400 x 1180) and is the container the subtitle's size (cqw) is measured
   against. Inside it: the logo as ONE SVG drawing made from the redrawn master (src/lib/hero-emblem.svg; its colours
   and states are in emblem.css, Home's own stylesheet), which is both the still logo and what emblem-arrival.js
   animates, so nothing is swapped when the arrival ends (card #71); the subtitle, live text; the replay control, a
   real button laid over the whole box, hidden until the script can play (so without JavaScript, and under reduced
   motion, there is no control to find). Everything else inside is decoration. */
.art { position: relative; display: block; width: 100%; aspect-ratio: 1400 / 1180; container-type: inline-size; }
/* The subtitle, live Raleway text, placed exactly as on the mock-up (the left padding of one letter-space balances
   the trailing letter-spacing, so the lines centre truly). */
.art__subtitle {
  position: absolute; left: 7.5%; top: 51.5%; width: 55%; z-index: 1;
  margin: 0; padding-left: 0.38em; text-align: center; pointer-events: none;
  font-family: var(--font-display);
  font-weight: 500; font-size: 2.7cqw; line-height: 1.9; letter-spacing: 0.38em; text-transform: uppercase;
  color: var(--logo-sub);
}
.art__subtitle span { display: block; }
.art__replay {
  position: absolute; inset: 0; z-index: 3;
  display: block; width: 100%; height: 100%;
  margin: 0; padding: 0; border: 0; border-radius: 12px;
  background: transparent; cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.art__replay:focus-visible { outline: 3px solid var(--focus); outline-offset: 6px; }
/* While the arrival plays the subtitle is out (the script eases it in from 4.05 s through the CSSOM, which wins over
   this rule). Once it has settled (4.65 s) the script drops its own opacity and this holds it visible, so it is
   painted exactly as at rest. */
.art.is-playing .art__subtitle { opacity: 0; }
.art.is-playing.is-settled .art__subtitle { opacity: 1; }
/* Before the first paint, emblem-arrival.js (loaded blocking in <head>) marks the page `arrival-pending` when the
   arrival will play, so the finished logo is never painted for a frame first (emblem.css hides the drawing; this, the
   subtitle). Safety net, CSS only: if the script never takes over, the logo fades in by itself. */
.arrival-pending .art__subtitle {
  opacity: 0;
  animation: arrival-safety 0.8s ease 2.8s forwards;
}
@keyframes arrival-safety {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* ======================================================================
   18a. The deep band (Build 9, Tim's "Deep Lake + Gold" palette, 2026-10-21): a section on a rich lake
   background in BOTH themes, with light-on-dark role tokens scoped to it, so everything inside follows by itself
   (the headings, the lead, links and their underlines, both buttons, the trust chips, the eyebrow, the logo art,
   the focus ring). Twice, on Home only: the hero (.band-deep--hero, a gradient) and the band for rehab teams
   (.band-deep--rehab). The backgrounds and the golds are tokens per theme (--band-*, section 1). Screen only,
   like the dark blocks: printing uses the light colours on white.
   ====================================================================== */
@media screen {
  .band-deep {
    --color-text: #F2EEE8;
    --color-heading: #FFFBF4;
    --color-muted: #D9DEE5;
    --color-small: #D9DEE5;
    --color-link: #7FD6CD;
    --focus: #7FD6CD;
    --color-button: #57C2B8;
    --color-on-button: #0A1F38;
    --color-button-hover: #6FCFC6;
    --color-border-strong: #9FB3C4;
    --color-underline-muted: rgba(217, 222, 229, 0.6);
    --logo-loop: conic-gradient(from 105deg at 41.39% 50.49%, #57C2B8 0deg, #57C2B8 47deg, #FFFBF4 232deg, #FFFBF4 360deg);
    --logo-name: #FFFBF4;
    --logo-fly: #57C2B8;
    --logo-sub: #D9DEE5;
    background: var(--band-bg);
    color: var(--color-text);
  }
  .band-deep--hero { --band-bg: var(--band-hero-bg); --color-label: var(--band-hero-gold); --color-accent: var(--band-hero-gold); }
  .band-deep--rehab { --band-bg: var(--band-rehab-bg); --color-label: var(--band-rehab-gold); --color-accent: var(--band-rehab-gold); }
  /* The Call button's hover: the page's pale tint would sit under the cream words, so a faint cream wash instead. */
  .band-deep .btn--ghost:hover { --btn-bg: rgba(255, 251, 244, 0.12); }
  /* The services section after the hero starts flush; with the band's edge between them it keeps its cushion. */
  .band-deep + .section--flush-top { padding-top: var(--section-y); }
}

/* The band for rehab teams: a deep band strip (section 18a), one heading and a line, an arrow link (no button: the
   page's buttons are the hero's two and the closing band's two). */
.rehab-band__inner { display: grid; gap: 1rem 3rem; align-items: center; }
@media (min-width: 900px) {
  .rehab-band__inner { grid-template-columns: minmax(0, 1fr) auto; }
}
.rehab-band__title { font-size: var(--step-2); margin-bottom: 0.3em; }
.rehab-band__text { margin: 0; max-width: 60ch; color: var(--color-muted); }

/* The careers teaser: one line and a quiet link, just above the footer. */
.careers-teaser { padding-block: calc(var(--section-y) * 0.5); border-top: 1px solid var(--color-border); }
.cta-band-wrap + .careers-teaser { padding-top: 0; border-top: 0; }
.careers-teaser__inner { display: flex; flex-wrap: wrap; align-items: center; gap: 0.25rem 1.5rem; }
.careers-teaser__title { font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--color-label); margin: 0; }
.careers-teaser__text { margin: 0; color: var(--color-muted); }

/* ======================================================================
   18b. Wide screens: inset panels (Tim's choice of 2026-10-21, "B as mocked", card #48). On a very wide screen the
   coloured sections stretched to the screen's edges while their words stayed in the middle 1200px. From 1640px wide
   they become rounded panels instead: at most 1560px wide, centred, with the page colour running to the edges and a
   1.5rem gap above the hero and between panels. The header and the footer stay full width. Below 1640px, and in
   print, nothing changes. It covers the deep bands (Home's hero and the band for rehab teams), the raised and tint
   sections (section 4) and the band section (unused today). It sits after the hero's own rule (section 18) on
   purpose, so the panel's clipping wins over the hero's: the hero is clipped to its rounded panel on every side,
   as mocked.
   ====================================================================== */
@media screen and (min-width: 1640px) {
  .band-deep, .section--raised, .section--tint, .section--band {
    width: calc(100% - 4rem);
    max-width: 1560px;
    margin-inline: auto;
    border-radius: var(--radius-lg);
    overflow: clip;
  }
  .hero.band-deep { margin-top: 1.5rem; }
  .section--raised, .section--tint, .section--band, .rehab-band { margin-block: 1.5rem; }
}

/* ======================================================================
   19. Forms (shared; build brief 6; forms.js adds behaviour). Ported from the sister site's form kit on this
   site's tokens. No new colours: the pairs are in tools/check-contrast.py (control outlines, the error red on
   the surface and the page, the hints). The select's arrow is the chevron icon as a data: image in the heading
   colour of each theme (--select-chevron), since the policy allows data: images and no outside host.
   ====================================================================== */
.tc-form { display: grid; gap: 1.35rem; }
.form-required-note { margin: 0; font-size: var(--step--1); color: var(--color-muted); }
.field { display: grid; gap: 0.4rem; margin: 0; min-width: 0; }
.field--group { border: 0; padding: 0; }
.field__label { font-family: var(--font-display); font-weight: 600; color: var(--color-text); padding: 0; }
legend.field__label { margin-bottom: 0.4rem; }
.field__req { font-family: var(--font-body); font-weight: 500; font-size: 0.875em; color: var(--color-muted); white-space: nowrap; }
.field__opt { font-family: var(--font-body); font-weight: 500; font-size: 0.875em; color: var(--color-muted); }
.field__hint { margin: 0; font-size: var(--step--1); color: var(--color-muted); }
.field__input {
  width: 100%;
  min-height: 50px;
  padding: 0.7rem 0.9rem;
  border: 1.5px solid var(--color-border-strong);
  border-radius: var(--radius-sm);
  background: var(--color-surface);
  color: var(--color-text);
  font: inherit;
  font-size: 1rem;
  line-height: 1.4;
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.field__input:hover { border-color: var(--color-link); }
.field__input:focus-visible { outline: 3px solid var(--focus); outline-offset: 1px; border-color: var(--color-heading); }
textarea.field__input { min-height: 140px; resize: vertical; }
.field__select {
  appearance: none;
  padding-right: 2.75rem;
  background-image: var(--select-chevron);
  background-repeat: no-repeat;
  background-position: right 0.9rem center;
  background-size: 20px;
}
.field--sm { max-width: 18rem; }
.field--md { max-width: 28rem; }

.choices { display: grid; gap: 0.5rem; }
.field--inline .choices { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; }
.choice { display: flex; align-items: flex-start; gap: 0.7rem; min-height: 44px; padding-block: 0.3rem; }
.choice input { flex: none; width: 24px; height: 24px; margin: 0.1rem 0 0; accent-color: var(--color-button); cursor: pointer; }
.choice label { cursor: pointer; padding-top: 0.05rem; }

.field__error {
  display: flex;
  gap: 0.4rem;
  margin: 0;
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--color-error);
}
.field__error::before { content: '!'; display: inline-grid; place-items: center; flex: none; width: 1.3em; height: 1.3em; margin-top: 0.1em; border-radius: 50%; background: var(--color-error); color: var(--color-on-error); font-size: 0.8em; }
.field.has-error .field__input { border-color: var(--color-error); border-width: 2px; }
.field.has-error { padding-left: 0.9rem; border-left: 4px solid var(--color-error); }
.field__counter { margin: 0; font-size: var(--step--1); color: var(--color-muted); }

.error-summary {
  padding: 1.25rem 1.4rem;
  border: 3px solid var(--color-error);
  border-radius: var(--radius-sm);
  background: var(--color-surface);
}
.error-summary:focus { outline: 3px solid var(--focus); outline-offset: 3px; }
.error-summary__title { font-size: var(--step-1); color: var(--color-error); margin: 0 0 0.5rem; }
.error-summary__list { margin: 0; padding-left: 1.2rem; }
.error-summary__list a { color: var(--color-error); font-weight: 600; }

.form-status:empty { display: none; }
.form-actions { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; }

/* Honeypot: off-screen, not display:none (some bots skip hidden fields). */
.hp { position: absolute !important; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }

/* ======================================================================
   20. 404
   ====================================================================== */
.not-found__links { margin-top: 2rem; gap: 0.25rem 2rem; }
/* Phones: one link per line, so the row never reads as a sequence of arrows. */
@media (max-width: 479.98px) {
  .not-found__links { flex-direction: column; align-items: flex-start; }
}

/* ======================================================================
   21. Reduced motion
   ====================================================================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .btn:hover, .card--link:hover { transform: none; }
}

/* ======================================================================
   22. Print
   ====================================================================== */
@media print {
  .site-header, .mobile-bar, .skip-link { display: none !important; }
  body { background: #fff; padding: 0; }
  /* The two dark panels, the footer and the CTA band, print dark on white, readable without printed backgrounds.
     Every colour in them comes from the dark-panel tokens (the on-dark text and links, their translucent underlines and
     edges, the eyebrow, the teal titles, icons, edges and dragonfly, the crisis card), so the panels redefine those for
     paper and everything inside follows (Build 9, the reviewer's findings; checked in tools/check-contrast.py, "print"). */
  .site-footer, .cta-band {
    background: #fff;
    color: #000;
    --color-on-dark: #000;
    --color-on-dark-muted: #000;
    --color-on-dark-label: var(--teal-700);
    --on-dark-rgb: 0, 0, 0;
    --teal-400: var(--teal-700);
    --color-footer-callout: #fff;
  }
  /* The CTA band keeps its card shape with a hairline; its primary button, cream on the band on screen, becomes an
     outline (its fill would be black, or missing when backgrounds don't print). */
  .cta-band { border: 1px solid rgba(var(--on-dark-rgb), 0.25); }
  .cta-band .btn--primary { --btn-bg: transparent; --btn-fg: var(--color-on-dark); --btn-border: var(--color-on-dark); box-shadow: none; }
}
