/* Easy Optometry — site styles (Nov 2026 restyle).
   Quiet and precise: warm paper page, logo slate for text, logo cyan as an accent only.
   Clinic colours from the 2026 mailers: Oakridge blue, University District green.
   Figtree for everything; Archivo only for eye-chart letters. */
@font-face { font-family: "Figtree"; src: url(/fonts/figtree-latin-wght-normal.woff2) format("woff2"); font-weight: 300 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Figtree"; src: url(/fonts/figtree-latin-wght-italic.woff2) format("woff2"); font-weight: 300 900; font-style: italic; font-display: swap; }
@font-face { font-family: "Archivo"; src: url(/fonts/archivo-latin-standard-normal.woff2) format("woff2"); font-weight: 100 900; font-stretch: 62% 125%; font-display: swap; }

:root {
  /* colour */
  --bg: #F6F2EA;            /* warm paper (v1) */
  --bg-2: #EDE6D6;          /* deeper paper for alternate sections */
  --card: #FFFDF8;          /* cards and menus on paper */
  --ink: #323E48;           /* logo slate: body text */
  --ink-strong: #121A21;    /* headlines, main button */
  --ink-2: #5A6670;         /* secondary text */
  --line: #DCD2BF;
  --cyan: #13A0DB;          /* logo cyan: accents only */
  --link: #0A6E9C;          /* cyan dark enough for text on white */
  --link-hover: #075778;
  --oak: #1E63B8;
  --ud: #2A6B47;
  --focus: #0F84B6;         /* keyboard focus ring: the logo cyan, a step deeper for 3:1 on paper (check 11) */
  --star: #A86E00;          /* Google review stars: amber, 3:1 on cards (check 11) */
  /* type */
  --body: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
  --chart: "Archivo", "Arial Black", sans-serif;
  --t-sm: .9375rem;
  --t-0: 1.0625rem;
  --t-1: 1.25rem;
  --t-2: clamp(1.75rem, 1.35rem + 1.5vw, 2.5rem);
  --t-3: clamp(2.5rem, 1.55rem + 4vw, 4.5rem);
  /* space: 8px scale */
  --s1: 8px; --s2: 16px; --s3: 24px; --s4: 32px; --s5: 48px; --s6: 64px; --s7: 96px;
  --section: clamp(56px, 8vw, 104px);
  --radius: 16px;
  --header-h: 73px;
  --wrap: 1160px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
/* scroll-padding: "Skip to content", "On this page" links and keyboard focus land below the sticky header,
   not under it (Nov 15; WCAG 2.4.11). It covers every jump target, so no element needs its own margin for it. */
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 var(--t-0)/1.6 var(--body); font-feature-settings: "kern"; -webkit-font-smoothing: antialiased; overflow-wrap: break-word; }
/* overflow-wrap: a word too long for its line (very large text settings, long email addresses) breaks
   instead of pushing the page sideways. At normal sizes nothing changes. */
img, svg { max-width: 100%; display: block; }
img { height: auto; }
a { color: var(--link); text-underline-offset: .2em; text-decoration-thickness: 1px; }
a:hover { color: var(--link-hover); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { color: var(--ink-strong); line-height: 1.12; letter-spacing: -0.02em; margin: 0 0 .5em; text-wrap: balance; }
h1 { font-size: var(--t-3); font-weight: 750; letter-spacing: -0.035em; line-height: 1.02; }
h2 { font-size: var(--t-2); font-weight: 700; }
h3 { font-size: var(--t-1); font-weight: 650; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
.wrap { width: min(var(--wrap), 100% - 32px); margin-inline: auto; }
.narrow { max-width: 720px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink-strong); color: #fff; padding: 8px 14px; z-index: 10; border-radius: 6px; }
.skip:focus { left: 8px; }
.lede { font-size: var(--t-1); color: var(--ink-2); max-width: 34em; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .4em; min-height: 48px; padding: 0 1.35em; border-radius: 999px; font-weight: 650; font-size: 1rem; text-decoration: none; line-height: 1.2; border: 1.5px solid transparent; white-space: nowrap; }
.btn-primary { background: var(--ink-strong); color: #fff; }
.btn-primary:hover { background: var(--ink); color: #fff; }
.btn[disabled] { opacity: .65; cursor: progress; }   /* "Sending…" on a form (static/js/form.js) */
.btn-quiet { border-color: currentColor; color: var(--ink-strong); background: transparent; }
.btn-quiet:hover { color: var(--link); }
.btn-lg { min-height: 54px; padding: 0 1.6em; font-size: var(--t-0); }
.text-link { font-weight: 650; }

/* Closure notice (site.json › notice): one quiet line above the header, scrolls away with the page */
.notice { background: var(--bg-2); color: var(--ink-strong); border-bottom: 1px solid var(--line); font-size: var(--t-sm); line-height: 1.45; }
.notice[hidden] { display: none; }
.notice-row { display: flex; align-items: flex-start; gap: 10px; padding: 10px 0; }
.notice-icon { flex: none; margin-top: 2px; color: var(--ink); }
.notice p { margin: 0; }
.notice a { color: var(--link); font-weight: 650; white-space: nowrap; }

/* Header */
.site-header { background: rgba(246,242,234,.96); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 5; }
/* Wraps onto a second line only when it can't fit (very large text on a small phone or a laptop); at normal
   sizes it is one 72 px row as before. flex-end keeps a wrapped Book / menu on the right. */
.header-row { display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; column-gap: var(--s4); row-gap: var(--s1); min-height: 72px; padding-block: 14px; }
.logo { flex: none; }
.logo img { width: 164px; }
/* 18 px between menu items (24 px until Nov 16): seven items (Dry eye and Videos joined) fit on one line from 1201 px */
.main-nav ul { display: flex; flex-wrap: wrap; gap: 4px 18px; list-style: none; margin: 0; padding: 0; }
.main-nav a { color: var(--ink); text-decoration: none; text-decoration-thickness: 2px; text-underline-offset: .55em; font-weight: 550; font-size: 1rem; padding: 6px 0; }
.main-nav a:hover { color: var(--ink-strong); text-decoration-line: underline; text-decoration-color: var(--line); }
/* The page you're on, or the section it sits in (aria-current "page" / "true", base.html): an underline in the
   focus cyan, 3:1 on paper like any state marker; a real underline also survives Windows high-contrast mode. */
.main-nav a[aria-current] { color: var(--ink-strong); text-decoration-line: underline; text-decoration-color: var(--focus); }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: var(--s3); }
.header-phone { color: var(--ink-strong); font-weight: 650; text-decoration: none; font-variant-numeric: tabular-nums; }
.header-phone:hover { color: var(--link); }
.header-actions .btn { min-height: 44px; gap: .26em; }
/* Phones and tablets: a round call button next to Book (the number itself shows only on wide screens) */
.header-call { display: none; }
.mobile-nav { display: none; }

/* Breadcrumbs */
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 20px 0 0; margin: 0; font-size: var(--t-sm); color: var(--ink-2); }
.crumbs li + li::before { content: "/"; content: "/" / ""; margin-right: 6px; color: var(--line); }
.crumbs a { color: var(--ink-2); }

/* Homepage hero: a phoropter built from bold colour blocks (templates/_hero_shapes.svg.html) frames the
   headline (Mike, Nov 10). On scroll the hero holds for about half a screen while the headline eases from soft
   to sharp, "in focus." turns from ink to cyan, the shapes settle and the decorations drift into place.
   The browser ties all of this to the scroll position itself (scroll-driven animations, no script), so it
   moves exactly with your finger; only opacity, transforms and the headline's blur change (Mike, Nov 10:
   the script-driven version stepped on his phone). Browsers without scroll-driven animations (iOS before 26,
   Firefox before 159), anyone who turns motion down and short screens (phones held sideways, under 30em tall:
   the held hero would cut off the buttons, Nov 15): no hold, everything sharp and in place, "in focus." cyan. */
.hero { --sh: calc(100svh - var(--header-h)); --ease: cubic-bezier(.5, 1, .89, 1); position: relative; overflow-x: clip; }
.hero-stage { position: relative; isolation: isolate; overflow: hidden; min-height: var(--sh); display: flex; flex-direction: column; align-items: center; justify-content: safe center; gap: var(--s3); padding: var(--s4) 0 var(--s6); text-align: center; }
.hero-focus { padding: 0 16px; }
.hero-h, .hero-sub, .hero-actions { position: relative; z-index: 3; }
.hero-h { margin: 0; font-size: min(8vw, 12svh, 7.5rem); line-height: 1; letter-spacing: -0.04em; white-space: nowrap; }
.hero-h span + span { position: relative; display: inline-block; color: var(--focus); }   /* "in focus.": the logo cyan, a step deeper (3:1 on paper, large text) */
.hero-sub { margin: 0; font-size: var(--t-1); color: var(--ink-2); max-width: 30em; text-wrap: balance; }
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: var(--s1); }
.scroll-cue { display: none; position: absolute; left: 50%; bottom: var(--s3); width: 12px; height: 12px; margin-left: -6px; border-right: 1.5px solid var(--ink-2); border-bottom: 1.5px solid var(--ink-2); transform: rotate(45deg); }

/* The shapes: laptop art, or the phone version (phones and upright tablets). Both keep the middle clear, and
   the shapes end above the bottom of the hero, crisp, so they never crowd the sections below (Mike, Nov 10:
   a soft fade there read as blur and clashed with the focus). */
.hero-art { position: absolute; inset: 0; z-index: -1; pointer-events: none; container-type: size;
  /* Brand-led and a step soft (Mike, Nov 10): slate bar, cyan and coral housings, yellow lenses, cyan knob */
  --hs-bar: #6F7880; --hs-left: #62BEE6; --hs-right: #FF9886; --hs-lens: #FFD47E; --hs-knob: #62BEE6;
  --hs-cross-l: #2B5974; --hs-cross-r: #6F4843;   /* the bar over each housing: the two colours multiplied */
  /* Drawing units to px (the laptop art fills the hero, "slice"); --bob is the decorations' float */
  --u: max(100cqw / 1440, 100cqh / 800); --ox: 720; --oy: 400; --bob: -9px; }
.hero-art svg { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; }
.hero-art-tall { display: none; overflow: visible; }
@media (orientation: portrait) and (max-width: 1080px) {
  .hero-focus { position: relative; }
  /* Centred on the headline (margins, not a transform, so the settle can scale it about its centre) */
  .hero-art { inset: auto; top: 50%; left: 50%; width: 100vw; height: auto; aspect-ratio: 400 / 840; margin: -105vw 0 0 -50vw;
    --u: calc(100cqw / 400); --ox: 200; --oy: 0; --bob: -6px; }
  .hero-art-wide { display: none; }
  .hero-art-tall { display: block; }
}
.hs-bar { fill: var(--hs-bar); }
.hs-house-l { fill: var(--hs-left); }
.hs-house-r { fill: var(--hs-right); }
.hs-cross-l { fill: var(--hs-cross-l); }
.hs-cross-r { fill: var(--hs-cross-r); }
.hs-lens { fill: var(--hs-lens); }
.hs-knob { fill: var(--hs-knob); }
/* Knurled rings: 48 ridges (pathLength 360); the offset keeps each ridge off 0, 90, 180 and 270 degrees, where
   Chrome joins a circle's segments (a ridge across a join draws as a blot). */
.hs-knurl, .hs-knob-ring { fill: none; stroke-dasharray: 3.75 3.75; stroke-dashoffset: -1.875; }
.hs-knurl-l { stroke: var(--hs-right); }
.hs-knurl-r { stroke: var(--hs-left); }
.hs-knob-ring { stroke: var(--hs-lens); }

/* Decorations (Mike, Nov 10: "a bit of motion", both kinds), placed on the drawing's grid: --x/--y is the top
   left corner and --w/--h the size, in drawing units (--u px each; --ox/--oy is the drawing's centre). Each
   bobs once as the page opens, at its own pace, and is still within 5 seconds (Mike, Nov 15: moving content
   that runs longer than 5 seconds needs a pause control, WCAG 2.2.2), off for reduced motion; they also drift
   into place with the scroll. */
.hs-dec { display: none; position: absolute; left: calc(50% + (var(--x) - var(--ox)) * var(--u)); top: calc(50% + (var(--y) - var(--oy)) * var(--u));
  width: calc(var(--w) * var(--u)); height: calc(var(--h) * var(--u)); border-radius: 50%; background: var(--c);
  animation: hs-float 3.6s ease-in-out .3s 1; }
.hs-w1, .hs-w2, .hs-w3, .hs-w4 { display: block; }
@media (orientation: portrait) and (max-width: 1080px) {
  .hs-w1, .hs-w2, .hs-w3, .hs-w4 { display: none; }
  .hs-t1, .hs-t2, .hs-t3, .hs-t4, .hs-t5 { display: block; }
}
/* Laptop: half-disc, disc, ring, dot. Phone: half-disc, dot, ring, disc, dot */
.hs-w1 { --x: 360; --y: 580; --w: 140; --h: 70; --c: var(--hs-left); }
.hs-w2 { --x: 980; --y: 570; --w: 60; --h: 60; --c: var(--hs-lens); }
.hs-w3 { --x: 1059; --y: 486; --w: 58; --h: 58; --bw: 10; --c: var(--hs-left); }
.hs-w4 { --x: 358; --y: 546; --w: 28; --h: 28; --c: var(--hs-right); }
.hs-t1 { --x: 102; --y: -108; --w: 36; --h: 18; --c: var(--hs-left); }
.hs-t2 { --x: 290; --y: -110; --w: 12; --h: 12; --c: var(--hs-right); }
.hs-t3 { --x: 92; --y: 340; --w: 24; --h: 24; --bw: 4; --c: var(--hs-left); }
.hs-t4 { --x: 287; --y: 353; --w: 22; --h: 22; --c: var(--hs-lens); }
.hs-t5 { --x: 201; --y: 391; --w: 10; --h: 10; --c: var(--hs-right); }
.hs-w1, .hs-t1 { border-radius: 50% 50% 0 0 / 100% 100% 0 0; }   /* half-disc */
.hs-w3, .hs-t3 { background: none; border: calc(var(--bw) * var(--u)) solid var(--c); }   /* ring */
.hs-w2, .hs-t4 { animation-duration: 4.2s; animation-delay: .7s; }   /* longest: ends at 4.9 s */
.hs-w4, .hs-t2, .hs-t5 { animation-duration: 3s; animation-delay: 0s; }
.hs-w3, .hs-t3 { animation-duration: 4s; animation-delay: .5s; }
@keyframes hs-float { 50% { translate: 0 var(--bob); } }
@media (prefers-reduced-motion: reduce) { .hs-dec { animation: none; } }

/* The scroll effect, where the browser can tie animations to scroll (Chrome, Safari on iOS 26+, Firefox 159+).
   The hero is the timeline: 0% when it reaches the header, 100% when its end reaches the bottom of the screen
   (the half screen it holds for); everything is in focus by 70%. The second support test leaves out browsers
   with only part of the feature (Modern Web Guidance, scroll-entry-exit-effects). Short screens get the still
   hero: the held stage is one screen tall and would hide the buttons (30em = 480 px, more with larger text). */
@supports (animation-timeline: view()) and (animation-range: entry) {
  @media (prefers-reduced-motion: no-preference) and (min-height: 30em) {
    .hero { height: calc(150svh - var(--header-h)); view-timeline: --hero block; view-timeline-inset: var(--header-h) 0; }
    .hero-stage { position: sticky; top: var(--header-h); height: var(--sh); min-height: 0; }
        .hero-h { animation: hs-sharpen var(--ease) both; animation-timeline: --hero; animation-range: contain 0% contain 70%; will-change: filter; }
    /* "in focus.": an ink copy over the cyan words fades away (hidden from screen readers by the empty alt text) */
    .hero-h span + span::after { content: attr(data-text) / ""; position: absolute; inset: 0; color: var(--ink-strong);
      animation: hs-fade-out var(--ease) both; animation-timeline: --hero; animation-range: contain 0% contain 70%; }
    .hero-art { animation: hs-settle var(--ease) both; animation-timeline: --hero; animation-range: contain 0% contain 70%; }
    .scroll-cue { display: block; animation: hs-fade-out linear both; animation-timeline: --hero; animation-range: contain 0% contain 5%; }
    .hs-dec { animation-name: hs-float, var(--drift); animation-duration: 3.6s, 1s; animation-delay: .3s, 0s; animation-timing-function: ease-in-out, var(--ease);
      animation-iteration-count: 1, 1; animation-fill-mode: none, both; animation-timeline: auto, --hero; animation-range: normal, contain 0% contain 70%; }
    .hs-w1, .hs-t1 { --drift: hs-drift-a; }
    .hs-w2, .hs-t4 { --drift: hs-drift-b; animation-duration: 4.2s, 1s; animation-delay: .7s, 0s; }
    .hs-w4, .hs-t2, .hs-t5 { --drift: hs-drift-c; animation-duration: 3s, 1s; animation-delay: 0s, 0s; }
    .hs-w3, .hs-t3 { --drift: hs-drift-ring; animation-duration: 4s, 1s; animation-delay: .5s, 0s; }
  }
}
@keyframes hs-sharpen { from { filter: blur(.035em); } to { filter: blur(0); } }
@keyframes hs-fade-out { from { opacity: 1; } to { opacity: 0; } }
@keyframes hs-settle { from { opacity: .4; scale: 1.05; } to { opacity: 1; scale: 1; } }
@keyframes hs-drift-a { from { transform: translateY(calc(30 * var(--u))) rotate(-25deg); } to { transform: none; } }
@keyframes hs-drift-b { from { transform: translateY(calc(-26 * var(--u))); } to { transform: none; } }
@keyframes hs-drift-c { from { transform: translate(calc(14 * var(--u)), calc(22 * var(--u))); } to { transform: none; } }
@keyframes hs-drift-ring { from { transform: scale(1.4); } to { transform: none; } }

/* Section heads */
.section-h { font-size: var(--t-2); }
.split-head { display: flex; justify-content: space-between; align-items: baseline; gap: var(--s2); flex-wrap: wrap; }
.split-head > * { min-width: 0; }   /* very large text on a small phone: the heading wraps instead of widening the page */
@media (max-width: 520px) {   /* phones: the link wraps under its heading; keep it close (Nov 10) */
  .split-head { row-gap: 4px; }
  .split-head > .section-h { margin-bottom: 6px; }
}
.section-h { hyphens: auto; }

/* Service icons: the hidden sprite (templates/_icons.svg.html) and each icon that uses it.
   Exam-room objects in thin slate line, like the phoropter: the line stays 1.25px at any size.
   One detail per icon (.icon-accent) takes --accent, which the service cards set to the logo cyan. */
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.sprite * { vector-effect: non-scaling-stroke; }
.icon { display: block; width: 48px; height: 48px; fill: none; stroke: currentColor; stroke-width: 1.25; stroke-linecap: round; stroke-linejoin: round;
  --fill-yellow: #FFE5AA; --fill-cyan: #CDEAF7; --fill-coral: #FFD3C9; }   /* soft fills from the hero's colours (Mike, Nov 10) */
.icon-accent { stroke: var(--accent, currentColor); }
.icon-dots { stroke-dasharray: 0 3.4; stroke-width: 1.7; }
/* One flat shape per icon in a soft hero colour (templates/_icons.svg.html; colours on .icon above) */
.icon-fill { stroke: none; }
.fill-yellow { fill: var(--fill-yellow, none); }
.fill-cyan { fill: var(--fill-cyan, none); }
.fill-coral { fill: var(--fill-coral, none); }

/* Services: six quiet cards; the whole card is the link */
.services { padding: var(--s5) 0 var(--section); }   /* the hero above already leaves open paper */
.service-grid { list-style: none; margin: var(--s4) 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s3); }
.service-card { position: relative; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: var(--s4); transition: border-color .2s; }
.service-card:hover { border-color: #BFB39C; }
.service-card .icon { --accent: var(--cyan); width: 56px; height: 56px; color: var(--ink); margin: -4px 0 var(--s3) -4px; }
.service-card h3 { font-size: 1.1875rem; margin: 0 0 6px; }
.service-card h3 a { color: var(--ink-strong); text-decoration: none; }
.service-card h3 a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.service-card:hover h3 a { color: var(--link); }
.service-card p { margin: 0; color: var(--ink-2); font-size: var(--t-sm); line-height: 1.55; }
@supports selector(:has(a)) {
  .service-card h3 a:focus-visible { outline: none; }
  .service-card:has(a:focus-visible) { outline: 3px solid var(--focus); outline-offset: 3px; }
}

/* Clinics: each clinic keeps its mailer colour everywhere */
.clinic-oak { --clinic: var(--oak); }
.clinic-ud { --clinic: var(--ud); }
.clinics { padding: var(--section) 0; background: var(--bg-2); }
.clinic-pair { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s3); margin-top: var(--s4); }
.clinic-card { container-type: inline-size; position: relative; overflow: hidden; display: flex; flex-direction: column; gap: var(--s3); background: var(--card); border: 1px solid var(--line); border-top: 0; border-radius: var(--radius); padding: calc(var(--s4) + 4px) var(--s4) var(--s4); }
.clinic-card::before { content: ""; position: absolute; inset: 0 0 auto; height: 4px; background: var(--clinic); }
.clinic-area { margin: 0 0 4px; font-size: .8125rem; font-weight: 650; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); }
.clinic-card .clinic-name { font-size: 1.625rem; font-weight: 650; letter-spacing: -0.01em; margin: 0; color: var(--clinic); }
.clinic-card .clinic-name a { color: var(--clinic); text-decoration: none; }
.clinic-card .clinic-name a:hover { text-decoration: underline; }
/* "Open now" line (static/js/open-now.js): a small dot, green when open, grey when closed */
.clinic-status { display: flex; align-items: center; gap: 8px; margin: 8px 0 0; font-size: var(--t-sm); line-height: 1.4; color: var(--ink-2); }
.clinic-status[hidden] { display: none; }
.clinic-status::before { content: ""; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--ink-2); }
.clinic-status.is-open::before { background: var(--ud); }
.clinic-status-now { color: var(--ink); font-weight: 600; }
/* Google rating under the clinic name (templates/_reviews.html; Nov 16) */
.clinic-rating { margin: 8px 0 0; font-size: var(--t-sm); line-height: 1.4; }
.clinic-rating a { display: inline-flex; align-items: center; gap: 5px; color: var(--ink); text-decoration: none; }
.clinic-rating a:hover { color: var(--link); text-decoration: underline; }
.clinic-rating strong { color: var(--ink-strong); font-weight: 650; }
.rating-star, .quote-stars { color: var(--star); }
/* Patients' Google reviews: home (three, after the clinics) and each clinic page (two, at the end) */
.reviews { padding: var(--section) 0; }
.quotes { list-style: none; margin: var(--s4) 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: var(--s3); }
.quote figure { margin: 0; height: 100%; display: flex; flex-direction: column; gap: 10px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: var(--s3); }
.quote-stars { margin: 0; font-size: 1rem; letter-spacing: 2px; line-height: 1; }
.quote blockquote { flex: 1; margin: 0; }
.quote blockquote p { margin: 0; color: var(--ink-strong); line-height: 1.55; }
.quote figcaption { font-size: var(--t-sm); font-weight: 650; color: var(--ink); }
.quote-src { font-weight: 400; color: var(--ink-2); }
.reviews-more { margin: var(--s3) 0 0; font-size: var(--t-sm); color: var(--ink-2); }
.reviews-clinic { margin-top: var(--s5); padding-top: var(--s4); border-top: 1px solid var(--line); }
.reviews-clinic h2 { font-size: var(--t-1); }
.reviews-clinic .quotes { margin-top: var(--s2); }
.clinic-body { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: var(--s4); }
/* Address beside hours when the card is wide; stacked when it is narrow (phones, the location page sidebar) */
@container (max-width: 460px) {
  .clinic-body { grid-template-columns: 1fr; gap: var(--s3); }
  .clinic-book { width: 100%; }
  .clinic-hours { border-top: 1px solid var(--line); padding-top: 12px; }
}
/* Where, directions, phone, email, Book: one group (Mike, Nov 10; email added Nov 15). One accent per card: the clinic's colour. */
.clinic-where { display: flex; flex-direction: column; align-items: flex-start; }
.clinic-address { margin: 0 0 8px; }
.clinic-act { margin: 0; }
.clinic-act a { display: inline-flex; align-items: center; gap: 10px; min-height: 34px; color: var(--ink-strong); font-weight: 600; text-decoration: none; font-variant-numeric: tabular-nums; }
.clinic-act a:hover { text-decoration: underline; text-underline-offset: 3px; }
@media (pointer: coarse) { .clinic-act a { min-height: 44px; } }   /* touch: 44 px rows, so Directions and the phone number aren't mis-tapped (Nov 15) */
.clinic-act svg { flex: none; color: var(--clinic); }
.clinic-act:has(+ .clinic-book) { margin-bottom: var(--s3); }
/* A narrow column wraps the address after the @ (helloud@ is 9px too long for a wide card at 1280 px); the
   envelope then stays level with the first line. The padding keeps a one-line address where the others sit. */
.clinic-email a { align-items: flex-start; padding-block: .2em; }
.clinic-email svg { margin-top: calc(.8em - 8px); }
.clinic-email span { min-width: 0; overflow-wrap: anywhere; }
/* Book sits at the foot of its column, level with the last row of hours (wide cards), or straight after the phone (narrow) */
.clinic-book { margin-top: auto; max-width: 100%; white-space: normal; text-align: center; }
.hours { border-collapse: collapse; width: 100%; font-size: var(--t-sm); }
/* "Hours" and "Holiday hours": small capitals with a clock or calendar, in the clinic's colour (Mike's pick, Nov 10) */
.hours caption { caption-side: top; text-align: left; padding: 0 0 6px; font-size: .8125rem; font-weight: 650; letter-spacing: .08em; text-transform: uppercase; color: var(--clinic); }
.hours caption svg { display: inline-block; vertical-align: -3px; margin-right: 8px; }
.hours th, .hours td { padding: 4px 0; }
.hours tr + tr > * { border-top: 1px solid rgba(220, 210, 191, .7); }
.hours th { text-align: left; font-weight: 500; color: var(--ink); width: 3.5em; }
.hours tr.is-today > * { font-weight: 650; color: var(--ink-strong); }   /* today's row (open-now.js) */
.hours td { text-align: right; font-variant-numeric: tabular-nums; }
.hours .closed { color: var(--ink-2); }
/* Holiday hours from Google (content/hours.json › special), under the weekly hours; only when there are some */
.hours-special { margin-top: 14px; }
.hours-special th { width: auto; white-space: nowrap; }
.clinic-card .btn-primary { background: var(--clinic); }
.clinic-card .btn-primary:hover { filter: brightness(.88); }

/* Vision therapy: compact, no picture. Words on the left, the programmes as ruled rows on the right */
.feature-vt { padding: var(--section) 0; }
.vt-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: var(--s6); align-items: start; }
.vt-text h2 { max-width: 14em; }
.vt-text p { max-width: 34em; }
.vt-side { padding-top: var(--s1); }
.link-rows { list-style: none; margin: 0 0 var(--s3); padding: 0; border-bottom: 1px solid var(--line); }
.link-rows li { border-top: 1px solid var(--line); }
.link-rows a { display: flex; justify-content: space-between; align-items: center; gap: var(--s2); padding: 15px 2px; color: var(--ink-strong); font-weight: 600; text-decoration: none; }
.link-rows a::after { content: "\2192"; content: "\2192" / ""; color: var(--ink-2); transition: transform .2s, color .2s; }
.link-rows a:hover { color: var(--link); }
.link-rows a:hover::after { color: var(--link); transform: translateX(3px); }
.referral-note { color: var(--ink-2); font-size: var(--t-sm); margin: 0; }

/* Optometrists: a fine rule over each doctor, credentials in small capitals */
.doctors { padding: var(--section) 0; border-top: 1px solid var(--line); }
.doctor-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s4) var(--s5); margin-top: var(--s4); }
.doctor { border-top: 1px solid var(--ink-strong); padding-top: var(--s3); }
.doctor h3 { font-size: 1.5rem; margin: 0 0 4px; }
.doctor h3 a { color: var(--ink-strong); text-decoration: none; }   /* names in ink, not three big blue links (Nov 10) */
.doctor h3 a:hover { color: var(--link-hover); text-decoration: underline; text-decoration-thickness: 1.5px; }
.doctor .creds { margin: 0 0 12px; font-size: .8125rem; font-weight: 650; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); }
.doctor p:last-child { margin: 0; max-width: 34em; }

/* Coverage note: a slim band, heading beside the text */
.coverage { padding: var(--s6) 0; background: var(--bg-2); }
.coverage-inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: var(--s2) var(--s6); align-items: baseline; }
.coverage-inner h2 { font-size: 1.5rem; margin: 0; max-width: 14em; }
.coverage-inner p { margin: 0; max-width: 40em; }
.coverage-inner a { font-weight: 650; white-space: nowrap; }

/* Services page: page heading, "What brings you in?", then every service grouped by icon */
.page-head { padding: var(--s6) 0 var(--s4); }
.page-head h1 { font-size: clamp(2.25rem, 1.6rem + 2.6vw, 3.5rem); max-width: 14em; }
.page-head .lede { margin: 0; }
.need { padding: var(--s4) 0 var(--section); }
.need-sub { color: var(--ink-2); margin: 0 0 var(--s4); }
.tiles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.tile { display: flex; flex-direction: column; gap: 4px; height: 100%; padding: var(--s3) 20px 20px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); color: var(--ink-strong); text-decoration: none; transition: border-color .2s; }
.tile:hover { color: var(--ink-strong); border-color: #BFB39C; }
.tile .icon { --accent: var(--cyan); color: var(--ink); margin: -2px 0 var(--s2) -4px; }
.tile-t { font-weight: 650; font-size: 1.0625rem; line-height: 1.25; }
.tile-s { font-size: var(--t-sm); color: var(--ink-2); line-height: 1.4; }
/* A small chevron: points down when closed, up when open */
.js .tile::after { content: ""; margin-top: auto; align-self: flex-start; width: 8px; height: 8px; margin-left: 2px; border-right: 1.5px solid var(--ink-2); border-bottom: 1.5px solid var(--ink-2); transform: translateY(-2px) rotate(45deg); transition: transform .2s; }
.js .tile-s { margin-bottom: 14px; }
.tile[aria-expanded="true"] { border-color: var(--ink-strong); box-shadow: inset 0 0 0 1px var(--ink-strong); }
.tile[aria-expanded="true"]::after { transform: translateY(2px) rotate(-135deg); }
.answers { margin-top: 12px; display: grid; gap: 12px; }
.answer { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: var(--s5); padding: var(--s5); background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
.answer:focus { outline: none; }
.js .answer { display: none; }
.js .answer.is-open { display: grid; }
.answer h3 { font-size: 1.5rem; margin-bottom: 14px; }
.answer ul { margin: 0 0 var(--s3); padding-left: 1.15em; }
.answer li { margin-bottom: .45em; padding-left: 4px; }
.answer li::marker { color: var(--cyan); }
.answer-next { display: flex; flex-direction: column; align-items: stretch; gap: 10px; padding-left: var(--s5); border-left: 1px solid var(--line); }
.answer-next h4 { margin: 0 0 4px; font-size: 1rem; color: var(--ink-strong); }
.btn-clinic { justify-content: space-between; background: var(--clinic); color: #fff; padding: 0 1.2em; }
.btn-clinic:hover { color: #fff; filter: brightness(.88); }
.btn-area { font-weight: 500; font-size: var(--t-sm); opacity: .85; }
.answer-call { font-weight: 650; margin-top: 4px; }
.answer-referral { font-size: var(--t-sm); }
.svc-dir { padding: var(--section) 0; border-top: 1px solid var(--line); }
.svc-groups { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s5) var(--s4); margin-top: var(--s4); align-items: start; }
.svc-group-head { display: flex; align-items: center; gap: 12px; margin-bottom: var(--s2); }
.svc-group-head .icon { --accent: var(--cyan); width: 40px; height: 40px; color: var(--ink); margin-left: -4px; }
.svc-group-head h3 { margin: 0; font-size: 1.1875rem; }
.svc-group .link-rows { margin: 0; }
.svc-group .link-rows a { font-weight: 550; padding: 12px 2px; }

/* Locations page: both clinic cards, then the page's questions */
.locations-cards { padding: 0 0 var(--s5); }
.locations-cards .clinic-pair { margin-top: 0; }
.locations-more { padding: 0 0 var(--s7); }
.locations-more .prose .q:first-child { margin-top: 0; }

/* Contact and referral pages (templates/form.html) */
.form-page .page-aside { display: grid; gap: var(--s3); align-content: start; }
.form-page .clinic-card { padding: var(--s3); }
.form-off { margin: 0 0 var(--s4); padding: var(--s4); background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
.form-off h2 { font-size: 1.5rem; margin-bottom: 8px; }
.form-off p { color: var(--ink-2); max-width: 36em; }
.form-off-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: var(--s3); }
.form-off-actions .btn { white-space: normal; text-align: center; }
/* Each clinic's email: on the contact page and, for other referrals, the vision therapy referral page (Nov 12) */
.form-off-h { font-size: 1.1875rem; margin: var(--s3) 0 10px; }
.clinic-emails { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.clinic-emails li { padding: 2px 0 2px 14px; border-left: 3px solid var(--clinic); }
.clinic-emails span { display: block; font-weight: 650; color: var(--clinic); font-size: var(--t-sm); }
.clinic-emails a { font-weight: 600; overflow-wrap: anywhere; }
.prose .clinic-emails { padding-left: 0; margin: 0 0 1em; }   /* the same list inside a page's text (/refer-a-patient/) */
.prose .clinic-emails li { margin-bottom: 0; }
.form-off .form-off-note { font-size: var(--t-sm); margin-top: 14px; }
.form-other { margin: 0 0 var(--s4); }
.form-h.form-h-lead { margin: var(--s3) 0 14px; }
.form-other .form-off-h { margin-top: 0; }
.form-other p { color: var(--ink-2); }
.form-more .q:first-child { margin-top: var(--s2); }
.form { display: grid; gap: var(--s3); max-width: 40em; margin: 0 0 var(--s4); padding: var(--s4); background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
.form-h { font-size: 1.1875rem; margin: var(--s1) 0 0; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s3); }
.field { display: grid; gap: 6px; margin: 0; border: 0; padding: 0; min-width: 0; }
.field > span, .field legend { font-weight: 600; color: var(--ink-strong); font-size: var(--t-sm); padding: 0; }
.field em { font-style: normal; font-weight: 500; color: var(--ink-2); margin-left: 4px; }
.field input, .field select, .field textarea { width: 100%; font: inherit; color: var(--ink-strong); background: #fff; border: 1px solid #C9BFAB; border-radius: 10px; padding: 11px 12px; min-height: 46px; }
.field textarea { resize: vertical; }
/* date fields have a built-in minimum width that overflowed phones at double text size (found Nov 12) */
.field input, .field select, .field textarea { min-width: 0; max-width: 100%; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 3px solid var(--focus); outline-offset: 1px; border-color: var(--ink); }
.field-choice { display: flex; flex-wrap: wrap; gap: 8px 24px; align-items: center; }
.field-choice legend { width: 100%; margin-bottom: 6px; }
.field-choice label { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; }
.field input[type="radio"], .field input[type="checkbox"] { width: 20px; height: 20px; min-height: 0; padding: 0; margin: 0; flex: none; accent-color: var(--ink-strong); }
/* Vision therapy referral (Nov 12): reason checkboxes, the optometrist section and its refraction grid */
.field-checks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 24px; }
.field-checks legend { grid-column: 1 / -1; margin-bottom: 6px; }
.field-checks label { display: flex; align-items: flex-start; gap: 8px; font-weight: 500; }
.field-checks input[type="checkbox"] { margin-top: 2px; }
.field-checks span, .form .field > span { min-width: 0; overflow-wrap: anywhere; }
.od-only { display: grid; gap: var(--s3); padding-top: var(--s2); border-top: 1px solid var(--line); }
.od-only[hidden] { display: none; }
.od-only .form-hint { margin: -12px 0 0; color: var(--ink-2); font-size: var(--t-sm); }
.od-number { max-width: 20em; }
.rx > legend { margin-bottom: 8px; font-size: 1rem; }
.rx-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 12px var(--s3); }
.field-choice input { width: 18px; height: 18px; min-height: 0; }
.form-privacy { margin: 0; font-size: var(--t-sm); color: var(--ink-2); }
.form .btn { justify-self: start; }
.form-error { margin: 0 0 var(--s3); padding: 12px 16px; border-radius: 10px; background: #FBEDEA; color: #7A2318; border: 1px solid #EBC3BB; }
/* Review copies only (preview builds, Nov 16): Send is switched off and this note says why */
.form-review { margin: 0 0 var(--s3); padding: 12px 16px; border-radius: 10px; background: var(--bg-2); color: var(--ink-strong); border: 1px solid var(--line); font-size: var(--t-sm); max-width: 40em; }
.form[data-review] .btn:disabled { opacity: .55; cursor: not-allowed; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Thank-you page (templates/thanks.html): one calm, centred message */
.thanks { max-width: 36em; text-align: center; padding: var(--s7) 0; }
.thanks-mark { width: 56px; height: 56px; margin: 0 auto var(--s3); fill: none; stroke: var(--cyan); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.thanks .lede { margin: 0 auto var(--s3); }
.thanks-urgent { color: var(--ink-2); font-size: var(--t-sm); }
.thanks-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: var(--s4); }

/* About page (templates/about.html): intro, at-a-glance card, optometrists, the practice, clinics */
.about-head { padding-bottom: var(--s4); }
.about-head .lede { max-width: 38em; }
/* At a glance: one card, four large figures divided by hairlines */
.about-facts { margin-bottom: var(--s6); }
.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
.fact { padding: var(--s4) var(--s4) 28px; }
.fact + .fact { border-left: 1px solid var(--line); }
.fact dt { display: grid; grid-template-columns: minmax(0, 1fr); gap: 6px; }
.fact-num { font: 700 clamp(2.5rem, 1.9rem + 1.6vw, 3.25rem)/1 var(--body); letter-spacing: -0.04em; color: var(--ink-strong); font-variant-numeric: lining-nums; }
.fact-num::after { content: ""; display: block; width: 28px; height: 2px; margin-top: 14px; background: var(--cyan); }
.fact-label { font-weight: 650; color: var(--ink-strong); font-size: 1.0625rem; margin-top: 6px; }
.fact dd { margin: 4px 0 0; font-size: var(--t-sm); color: var(--ink-2); line-height: 1.45; }
/* Optometrists: the featured section, straight after the intro */
.about-team { padding: var(--s6) 0 var(--section); background: var(--bg-2); }
.team-intro { max-width: 36em; margin: -4px 0 0; color: var(--ink-2); font-size: var(--t-1); }
.profiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s3); margin-top: var(--s4); align-items: stretch; }
.profile { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: var(--s4); }
.profile-creds { margin: 0; font-size: .8125rem; font-weight: 650; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); }
.profile-role { margin: 0 0 12px; font-weight: 650; font-size: 1.0625rem; color: var(--ink-strong); }
.profile p { font-size: var(--t-sm); line-height: 1.6; }
.profile p:last-child { margin-bottom: 0; }
.profile h2, .profile h3 { font-size: 1.3125rem; margin: 0 0 4px; }

/* Doctor portraits (templates/_portrait.html): 4:5 like the headshots (PHOTOS.md). Until a photo exists,
   the initials sit in the doctor's soft-colour circle (the homepage's, .mk-* below; Mike, Nov 16) on deeper
   paper, so the space is held and looks finished. The letters keep the homepage's size to circle (5:16). */
.portrait { --portrait-bg: #E4DCCA; position: relative; aspect-ratio: 4 / 5; overflow: hidden; border-radius: 10px; background: var(--portrait-bg); }   /* a step deeper than --bg-2, so the frame shows on either paper */
.portrait-photo, .portrait-photo img { display: block; width: 100%; height: 100%; }
.portrait-photo img { object-fit: cover; object-position: 50% 30%; }
.portrait-empty { display: grid; place-items: center; box-shadow: inset 0 0 0 1px var(--line); container-type: inline-size; }
.portrait-mark { display: grid; place-items: center; width: 38%; aspect-ratio: 1; border-radius: 50%; background: var(--mk); color: var(--ink-strong); font: 700 1.25rem/1 var(--body); font-size: 11.875cqi; letter-spacing: .02em; }

/* Doctor cards: portrait on top, then name, then role and summary; the profile link sits at the bottom */
/* Desktop: the portrait runs edge to edge across the top of the card (no frame inside a frame) */
.profile { display: grid; grid-template-rows: auto auto 1fr; gap: var(--s3); padding: 0 0 var(--s4); overflow: hidden; }
.profile-portrait { border-radius: 0; }
.profile-portrait.portrait-empty { box-shadow: inset 0 -1px 0 var(--line); }
.profile-id { margin: 0 var(--s4); padding-bottom: var(--s3); border-bottom: 1px solid var(--line); }
.profile-text { display: flex; flex-direction: column; padding: 0 var(--s4); }
.profile-more { margin-top: auto; padding-top: 4px; }
@media (max-width: 860px) {
  /* Phones and tablets: portrait beside the name, so three tall photos don't stretch the page */
  .profile { grid-template-columns: 112px minmax(0, 1fr); grid-template-rows: auto; column-gap: var(--s3); row-gap: var(--s3); align-items: center; padding: var(--s3); }
  .profile-portrait { grid-row: 1; border-radius: 8px; }
  .profile-portrait.portrait-empty { box-shadow: inset 0 0 0 1px var(--line); }
  .profile-id { margin: 0; padding-bottom: 0; border-bottom: 0; }
  .profile-text { grid-column: 1 / -1; padding: var(--s3) 0 0; border-top: 1px solid var(--line); }
  .profile-portrait .portrait-mark { width: 56%; font-size: 17.5cqi; }
}
.profile h2 a, .profile h3 a { color: var(--ink-strong); text-decoration: none; }
.profile h2 a:hover, .profile h3 a:hover { color: var(--link); }

/* Optometrist profile (templates/doctor.html): the initials circle (or headshot) beside the name,
   then a quiet "at a glance" card of facts, question sections, services and the other optometrists */
.doc-head { display: grid; grid-template-columns: 240px minmax(0, 1fr); grid-template-rows: 1fr auto; column-gap: var(--s5); align-items: end; max-width: 52rem; }
.doc-portrait { grid-row: 1 / span 2; }
.doc-id h1 { margin: 0 0 8px; }
.doc-id .profile-creds { font-size: .875rem; }
.doc-head .lede { grid-column: 2; align-self: start; margin: var(--s3) 0 0; }
.doc-facts { max-width: 40em; margin: var(--s4) 0 0; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 4px 20px; }
.doc-facts > div { display: grid; grid-template-columns: 9.5em minmax(0, 1fr); gap: var(--s2); padding: 12px 0; }
.doc-facts > div + div { border-top: 1px solid var(--line); }
.doc-facts dt { font-size: .8125rem; font-weight: 650; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); padding-top: 2px; }
.doc-facts dd { margin: 0; color: var(--ink-strong); }
.doc .related { max-width: 40em; margin-top: var(--s5); padding-top: var(--s4); border-top: 1px solid var(--line); }
.doc-others { max-width: 40em; margin-top: var(--s5); }
.doc-others h2 { font-size: var(--t-1); }
.doc-others .link-rows { margin-bottom: 0; }
.doc .page-foot { max-width: 42.5rem; }   /* same width as the 40em text column above it */
.doc-hub { padding-top: var(--s5); }
.doc-hub .profiles { margin-top: 0; }
.doc-hub-body { margin-top: var(--s5); }
.doc-hub-book { display: flex; flex-wrap: wrap; gap: 12px; margin: var(--s5) 0 0; }
.doc-hub .page-foot { margin-top: var(--s4); }
@media (max-width: 520px) {
  .doc-head { grid-template-columns: 120px minmax(0, 1fr); grid-template-rows: auto; column-gap: var(--s3); align-items: center; }
  .doc-portrait { grid-row: 1; }
  .doc-portrait .portrait-mark { width: 56%; font-size: 17.5cqi; }
  .doc-id h1 { font-size: 2rem; }
  .doc-head .lede { grid-column: 1 / -1; margin-top: var(--s3); }
  .doc-facts { padding: 2px 16px; }
  .doc-facts > div { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .doc-hub-book .btn { flex: 1 1 100%; }
}
/* The practice: compact two-column sections, heading left, text right */
.about-info { padding: var(--section) 0 var(--s5); }
.about-info .prose-wide { margin-top: var(--s3); }
.about-info .q { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2.4fr); gap: var(--s1) var(--s6); padding: var(--s3) 0; border-top: 1px solid var(--line); }
.about-info .q h2 { font-size: 1.1875rem; margin: 2px 0 0; }
.about-info .q-body { max-width: 44em; }
.about-info .q-body > :first-child { margin-top: 0; }
.about-info .q-body > :last-child { margin-bottom: 0; }
.about-info ul { padding-left: 1.15em; margin: 0; }
.about-info li { margin-bottom: .35em; }
.about-info li::marker { color: var(--cyan); }
.svc-cols { columns: 2; column-gap: var(--s5); }
.svc-cols li { break-inside: avoid; }
.about-clinics { padding: var(--section) 0 var(--s6); }
.clinic-links { list-style: none; margin: var(--s4) 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s3); }
.clinic-links a { display: grid; gap: 4px; padding: var(--s3) var(--s4); background: var(--card); border: 1px solid var(--line); border-left: 4px solid var(--clinic); border-radius: 12px; color: var(--ink); text-decoration: none; }
.clinic-links a:hover { border-color: #BFB39C; border-left-color: var(--clinic); }
.clinic-links strong { font-size: 1.375rem; color: var(--clinic); }
.clinic-links .clinic-area { margin: 0; }

/* Blog (templates/blog.html, post.html) */
.blog-head { padding-bottom: var(--s3); }
.blog-topics { display: flex; flex-wrap: wrap; gap: 8px; margin-top: var(--s3); }
.blog-topics a { padding: 8px 16px; border: 1px solid var(--line); border-radius: 999px; background: var(--card); color: var(--ink); font-weight: 600; font-size: var(--t-sm); text-decoration: none; }
.blog-topics a:hover { border-color: #BFB39C; color: var(--ink-strong); }
.blog-topics a[aria-current] { background: var(--ink-strong); border-color: var(--ink-strong); color: #fff; }
.blog-body { padding: 0 0 var(--s7); max-width: min(var(--wrap), 100% - 32px); }
.blog-intro { margin: var(--s2) 0 var(--s3); }
.post-list { list-style: none; margin: 0; padding: 0; max-width: 46em; }
.post-item { padding: var(--s3) 0; border-top: 1px solid var(--line); }
.post-item:last-child { border-bottom: 1px solid var(--line); }
.post-item h2 { font-size: 1.375rem; margin: 4px 0 8px; }
.post-item h2 a { color: var(--ink-strong); text-decoration: none; }
.post-item h2 a:hover { color: var(--link); text-decoration: underline; }
.post-item p:last-child { margin: 0; color: var(--ink-2); }
.post-meta { margin: 0; font-size: .8125rem; font-weight: 650; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); }
.post-meta a { color: inherit; }
.post-meta-top { margin-bottom: 12px; }
.more-posts { margin-top: var(--s5); }
.more-posts h2 { font-size: var(--t-1); }
.more-posts ul { list-style: none; margin: 0; padding: 0; }
.more-posts li { display: flex; justify-content: space-between; align-items: baseline; gap: var(--s2); padding: 12px 0; border-top: 1px solid var(--line); }
.more-posts li:last-child { border-bottom: 1px solid var(--line); }
.more-posts a { font-weight: 600; text-decoration: none; color: var(--ink-strong); }
.more-posts a:hover { color: var(--link); text-decoration: underline; }
.more-posts span { flex: none; font-size: var(--t-sm); color: var(--ink-2); }

/* Photos (templates/_photo.html; PHOTOS.md). Nothing here shows until a photo is in photos/photos.json */
.photo { display: block; }
.photo img { display: block; width: 100%; height: auto; }
.page-photo { margin: 0 0 var(--s4); max-width: 40em; }
.page-photo img { aspect-ratio: 3 / 2; object-fit: cover; border-radius: 12px; }
/* Self-hosted video in a page (build.py › render_media, Nov 16): the poster shows until it's tapped.
   Easy's YouTube cards are the separate .video styles (templates/_video.html). */
.media-video { margin: var(--s3) 0; max-width: 40em; }
.media-video video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; border-radius: 12px; background: var(--ink-strong); }
.media-video figcaption { margin-top: 10px; font-size: var(--t-sm); line-height: 1.5; color: var(--ink-2); }
.media-video figcaption strong { color: var(--ink-strong); }
.media-video-credit { white-space: nowrap; }
.photo-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s2); margin-top: var(--s4); max-width: 40em; }
.photo-pair img { aspect-ratio: 3 / 2; object-fit: cover; border-radius: 10px; }
.clinic-photo { margin: 0 0 var(--s1); }
.clinic-photo img { aspect-ratio: 3 / 2; object-fit: cover; border-radius: 10px; }
.doctor.has-photo { display: grid; grid-template-columns: 64px minmax(0, 1fr); column-gap: var(--s2); align-content: start; }
.doctor.has-photo > :not(.doctor-photo) { grid-column: 2; }
.doctor-photo { grid-row: span 2; width: 64px; height: 64px; }
.doctor-photo img { width: 64px; height: 64px; object-fit: cover; object-position: 50% 25%; border-radius: 50%; }
/* Homepage: until the headshots arrive, initials in a soft hero colour (Mike, Nov 10), same place and size.
   Each doctor keeps one colour on every page (homepage, portraits; Nov 16): build.py sets d.mark from their
   place in site.json › doctors, so Dr. Chaudhary is yellow, Dr. West coral, Dr. Sen blue */
.doctor-mark { grid-row: span 2; display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: var(--mk); font: 700 1.25rem/1 var(--body); letter-spacing: .02em; color: var(--ink-strong); }
.doctor.has-photo > .doctor-mark { grid-column: 1; }
.mk-1 { --mk: #FFE5AA; }
.mk-2 { --mk: #FFD3C9; }
.mk-3 { --mk: #CDEAF7; }
.photo-credits { margin: 6px 0 0; }
.photo-credits a { color: inherit; }

/* Step diagrams (build.py › render_steps; content/steps.json): numbered lens rings joined by a fine line.
   Stacked by default (number left of the text); side by side on wide screens, each number centred above
   its step and every row lined up across steps (subgrid). .steps-map = titles only. Real list text. */
.steps { max-width: none; margin: var(--s3) 0; padding: var(--s3); background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
.steps-h { margin: 0 0 var(--s3); font-size: .8125rem; font-weight: 650; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); }
.prose .steps-list, .steps-list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s3); }
.steps-map .steps-list { gap: var(--s2); }
.prose .steps-list li { margin: 0; }
.step { position: relative; display: grid; grid-template-columns: 40px minmax(0, 1fr); column-gap: 14px; align-items: start; }
.steps-map .step { align-items: center; }
.step:not(:last-child)::before { content: ""; position: absolute; left: 20px; top: 44px; bottom: calc(-1 * var(--s3) + 4px); width: 1px; background: var(--line); }
.steps-map .step:not(:last-child)::before { bottom: calc(-1 * var(--s2) + 4px); }
.step-num { grid-row: 1 / span 2; position: relative; z-index: 1; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--card); border: 1.25px solid var(--ink); box-shadow: inset 0 0 0 3px var(--card), inset 0 0 0 4.25px var(--cyan); font: 700 .9375rem/1 var(--chart); color: var(--ink-strong); }
.step-title { grid-column: 2; display: block; margin: 2px 0 3px; font-size: 1rem; line-height: 1.3; color: var(--ink-strong); }
.steps-map .step-num { grid-row: auto; }
.steps-map .step-title { margin: 0; }
.step-text { grid-column: 2; display: block; font-size: var(--t-sm); line-height: 1.45; color: var(--ink-2); }
@media (min-width: 1081px) {
  .steps-h { text-align: center; }
  .prose .steps-list, .steps-list { grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); grid-template-rows: auto auto auto; gap: 0 var(--s2); }
  .steps-map .steps-list { grid-template-rows: auto auto; gap: 0 var(--s2); }
  .step { grid-row: span 3; grid-template-columns: none; grid-template-rows: subgrid; justify-items: center; text-align: center; }
  .steps-map .step { grid-row: span 2; align-items: start; }
  .step-num { grid-row: auto; margin-bottom: 12px; }
  .step-title, .step-text { grid-column: auto; }
  .step-title, .steps-map .step-title { margin: 0 0 4px; }
  .step:not(:last-child)::before, .steps-map .step:not(:last-child)::before { left: calc(50% + 28px); right: calc(28px - 50% - var(--s2)); top: 20px; bottom: auto; width: auto; height: 1px; }
}

/* Interior pages */
.page-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: var(--s6); padding: var(--s4) 0 var(--s7); align-items: start; }
.page-main h1 { font-size: clamp(2.25rem, 1.6rem + 2.6vw, 3.5rem); max-width: 14em; }
.page-main .lede { margin-bottom: var(--s3); }
/* Who to see (Nov 16): the doctors with a special interest in the page's topic, right under the opening */
.who { max-width: 40em; margin: 0 0 var(--s3); padding: 14px 18px; background: var(--card); border: 1px solid var(--line); border-left: 3px solid var(--focus); border-radius: 12px; }
.who p { margin: 0; font-size: var(--t-sm); line-height: 1.5; color: var(--ink); }
.who-label { display: block; margin-bottom: 2px; font-size: .8125rem; font-weight: 650; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); }
.profile-interest { margin: -6px 0 12px; font-size: var(--t-sm); color: var(--ink); }
.prose { max-width: 40em; }
.prose h2 { font-size: 1.5625rem; margin-top: 1.6em; }
/* Question blocks (build.py › sectionize): a rule and space above each question, and the first
   paragraph (the direct answer) a little larger, so a page skims as question → answer */
.prose .q { margin-top: var(--s5); padding-top: var(--s4); border-top: 1px solid var(--line); }
.prose .q h2 { margin: 0 0 12px; font-size: 1.5rem; }
.prose .q > h2 + p { font-size: 1.1875rem; line-height: 1.5; color: var(--ink-strong); }
.prose .q > :last-child { margin-bottom: 0; }
.prose li::marker { color: var(--cyan); }
/* "On this page": a card under the intro on phones and tablets, a quiet list in the sidebar on desktop */
.toc-h { margin: 0 0 8px; font-size: .8125rem; font-weight: 650; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); }
.toc ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.toc a { display: block; padding: 6px 0 6px 14px; border-left: 2px solid var(--line); color: var(--ink); font-size: var(--t-sm); font-weight: 550; line-height: 1.35; text-decoration: none; }
.toc a:hover { color: var(--link); border-color: var(--cyan); }
.toc a.is-current { color: var(--ink-strong); border-color: var(--ink-strong); }
.toc-inline { max-width: 40em; margin: 0 0 var(--s2); padding: 16px 20px 14px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; }
.toc-side { position: sticky; top: calc(var(--header-h) + 24px); margin-top: var(--s4); padding: 0 4px; }
@media (min-width: 861px) { .toc-inline { display: none; } }
@media (max-width: 860px) { .toc-side { display: none; } }
/* Last updated (and, once signed off, reviewed by) at the end of the article */
.page-foot { max-width: 40em; margin: var(--s5) 0 0; padding-top: var(--s2); border-top: 1px solid var(--line); font-size: var(--t-sm); color: var(--ink-2); }
.page-foot a { color: inherit; }
.prose h3 { margin-top: 1.4em; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: .35em; }
.related { margin-top: 40px; }
.related h2 { font-size: var(--t-1); }
.related ul { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.related a { display: inline-block; padding: 6px 14px; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; }
/* Videos (templates/_video.html, static/js/video.js; back Nov 16, made more prominent the same day): a quiet
   play button, the length in the corner. Homepage and About: one large video and a side list. Topic pages and
   doctor profiles: compact cards (picture left, words right) right under the opening. /video/: a grid. */
.videos { margin: var(--s4) 0; }
.videos-topic { max-width: 40em; }
.videos-topic h2 { font-size: 1.0625rem; margin: 0 0 12px; }
.videos-list { display: grid; gap: 12px; }
.videos-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: var(--s4) var(--s3); }
.video-text { display: block; }
.video-compact .video-link { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 16px; align-items: center; }
.video-compact .video-title { margin-top: 0; }
.video-compact .video-btn { width: 44px; height: 44px; margin: -22px 0 0 -22px; }
.video-compact .video-btn svg { width: 22px; height: 22px; }
.videos-topic .video-compact .video-link { padding: 10px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; }
.videos-topic .video-compact .video-link:hover { border-color: var(--link); }
.video-compact.is-playing .video-title { margin-top: 12px; }   /* playing: full width, words below the player */
.video-feature { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: var(--s4); align-items: start; }
.video-main .video-title { font-size: var(--t-1); }
.video-side { display: grid; gap: var(--s3); }
.video-side .video-compact .video-link { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); }
.home-videos { padding: var(--section) 0; border-top: 1px solid var(--line); }
.home-videos .video-feature, .about-videos .video-feature { margin-top: var(--s4); }
.about-videos { margin-bottom: var(--s6); }
@media (max-width: 860px) {
  .video-feature { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 520px) {
  .video-compact .video-link, .video-side .video-compact .video-link { grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 12px; }
  .video-compact .video-desc { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
}
.video-link { display: block; color: var(--ink-strong); text-decoration: none; border-radius: 12px; }
.video-frame { position: relative; display: block; aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; background: var(--ink-strong); }
.video-frame picture, .video-frame img { display: block; width: 100%; height: 100%; object-fit: cover; }
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-btn { position: absolute; left: 50%; top: 50%; width: 60px; height: 60px; margin: -30px 0 0 -30px; border-radius: 50%; display: grid; place-items: center; background: rgba(18, 26, 33, .8); color: #fff; transition: background .2s, transform .2s; }
.video-btn svg { margin-left: 3px; }
.video-link:hover .video-btn { background: var(--link); transform: scale(1.06); }
.video-len { position: absolute; right: 8px; bottom: 8px; padding: 1px 7px; border-radius: 6px; background: rgba(18, 26, 33, .85); color: #fff; font-size: .8125rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.video-title { display: block; margin: 12px 0 0; font-weight: 650; line-height: 1.3; color: var(--ink-strong); }
.video-link:hover .video-title { color: var(--link); }
.video-desc { display: block; margin: 4px 0 0; font-size: var(--t-sm); line-height: 1.5; color: var(--ink-2); }
.page-aside { align-self: stretch; }
/* Clinic pages (templates/location.html): heading, card, sections. Laptops: card in the right column,
   beside both the heading and the sections. Phones: card right under the opening paragraph. */
.location-page { grid-template-areas: "head aside" "body aside"; grid-template-rows: auto 1fr; row-gap: 0; }
.location-head { grid-area: head; }
.location-aside { grid-area: aside; }
.location-body { grid-area: body; }
@media (max-width: 860px) {
  .location-page { grid-template-areas: "head" "aside" "body"; grid-template-rows: none; row-gap: var(--s2); }
}
.aside-box { background: var(--bg-2); border-radius: var(--radius); padding: var(--s3); }
.aside-box h2 { font-size: var(--t-1); }
.aside-box p { color: var(--ink-2); font-size: var(--t-sm); }
.aside-box .btn { width: 100%; }
.aside-phone { display: block; text-align: center; margin: 12px 0 18px; font-weight: 650; }
.aside-clinics { list-style: none; padding: 0; margin: 0; }
.aside-clinics li { padding: 8px 0 8px 14px; border-left: 3px solid var(--clinic); margin-top: 10px; }
.aside-clinics a { font-weight: 650; color: var(--clinic); }
.aside-clinics span { display: block; color: var(--ink-2); font-size: var(--t-sm); }
.notfound { padding: var(--s6) 0 var(--s7); }
.notfound-links { max-width: 480px; margin-top: var(--s4); }

/* Footer: dark slate, the logo reversed (white and cyan), quiet links */
.site-footer { background: var(--ink-strong); color: #AEB9C2; padding: var(--s6) 0 var(--s3); font-size: var(--t-sm); }
.site-footer a { color: #E4E9ED; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer p { margin: 0 0 10px; }
.site-footer h2 { font-size: 1rem; color: #fff; margin: 0 0 10px; letter-spacing: 0; }
.site-footer h2 a { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: var(--s4); }
.footer-brand img { width: 150px; margin-bottom: 18px; }
.footer-brand p { max-width: 22em; }
.site-footer .footer-phone { color: #fff; font-weight: 650; font-size: var(--t-0); font-variant-numeric: tabular-nums; }
.footer-clinic h2 { border-top: 2px solid var(--clinic); padding-top: 12px; }
.footer-clinic.clinic-oak { --clinic: #6FA3E8; }
.footer-clinic.clinic-ud { --clinic: #7FC29B; }
.site-footer .footer-quiet { color: #AEB9C2; text-decoration: underline; text-decoration-color: rgba(174, 185, 194, .4); }
.site-footer .footer-quiet:hover { color: #fff; text-decoration-color: currentColor; }
.site-footer .footer-email { overflow-wrap: anywhere; }
.footer-links h2 { padding-top: 14px; }
.footer-links ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer-base { border-top: 1px solid rgba(255, 255, 255, .12); margin-top: var(--s5); padding-top: 18px; font-size: .875rem; color: #8794A0; }
.footer-base p { margin: 0; }

/* Responsive */
/* Header: the ☰ menu takes over at 1200 px (1080 px until Nov 16; "Dry eye" and "Videos" joined the menu that day,
   and seven items fit on one line only from 1201 px, with 18 px between them). Page layouts keep their 1080 px breakpoint. */
@media (max-width: 1200px) {
  .main-nav, .header-phone { display: none; }
  .mobile-nav { display: block; position: relative; }
  .mobile-nav summary { list-style: none; cursor: pointer; width: 44px; height: 44px; display: grid; place-content: center; gap: 5px; border-radius: 8px; }
  .mobile-nav summary::-webkit-details-marker { display: none; }
  .mobile-nav summary span { display: block; width: 22px; height: 2px; border-radius: 1px; background: var(--ink-strong); }
  /* Stays on the screen: scrolls when it can't fit (--menu-room from static/js/menu.js; the fallback assumes one header row) */
  .mobile-nav ul { position: absolute; right: 0; top: 54px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; list-style: none; margin: 0; padding: 8px; min-width: 248px; box-shadow: 0 16px 40px rgba(18,26,33,.14);
    max-height: var(--menu-room, calc(100svh - var(--header-h) - 12px)); overflow-y: auto; overscroll-behavior: contain; }
  .mobile-nav li a { display: block; padding: 11px 12px; color: var(--ink-strong); text-decoration: none; text-decoration-thickness: 2px; text-underline-offset: .3em; font-weight: 600; border-radius: 8px; }
  .mobile-nav li a:hover { background: var(--bg-2); }
  .mobile-nav li a[aria-current] { text-decoration-line: underline; text-decoration-color: var(--focus); }
  .header-row { column-gap: var(--s2); container: header / inline-size; }
  .header-actions { gap: var(--s1); }
  .header-call { display: grid; place-content: center; flex: none; width: 44px; height: 44px; border: 1.5px solid currentColor; border-radius: 999px; color: var(--ink-strong); }
  .header-call:hover { color: var(--link); }
}
/* No room for it (under 360 px wide, or very large text): it hides and Call shows in the ☰ menu instead,
   which otherwise leaves it out (Mike, Nov 16). rem grows with the text size, so this also catches double text. */
.mobile-nav .menu-call { display: none; }
@container header (max-width: 20.4rem) { .header-call { display: none; } .mobile-nav .menu-call { display: list-item; } }
@media (max-width: 860px) {
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fact:nth-child(3) { border-left: 0; }
  .fact:nth-child(n+3) { border-top: 1px solid var(--line); }
  .svc-cols { columns: 1; }
  .about-info .q { grid-template-columns: minmax(0, 1fr); }
  .profiles { grid-template-columns: minmax(0, 1fr); }
  .clinic-links { grid-template-columns: minmax(0, 1fr); }
  .tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .answer { grid-template-columns: minmax(0, 1fr); gap: var(--s3); padding: var(--s4); }
  .answer-next { padding: var(--s3) 0 0; border-left: 0; border-top: 1px solid var(--line); }
  .svc-groups { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .clinic-pair, .doctor-row, .page-grid { grid-template-columns: minmax(0, 1fr); }
  .service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .vt-grid, .coverage-inner { grid-template-columns: minmax(0, 1fr); }
  .vt-grid { gap: var(--s4); }
  .page-aside { position: static; }
  .footer-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer-brand { grid-column: 1 / -1; }
}
/* Tablets held upright: the one-line headline would be small in a tall screen, so it takes two lines as on phones */
@media (min-width: 701px) and (max-width: 1080px) and (orientation: portrait) {
  .hero-h { font-size: min(14vw, 11svh, 9rem); line-height: .96; }
  .hero-h span { display: block; }
}
@media (max-width: 700px) {
  /* On phones the headline sits on two lines */
  .hero-stage { gap: var(--s2); padding: var(--s3) 0 var(--s5); }
  .hero-h { font-size: 15vw; line-height: .96; }
  .hero-h span { display: block; }
  .hero-sub { font-size: var(--t-0); padding: 0 var(--s3); }
  .hero-actions { width: 100%; padding: 0 16px; }
}
@media (max-width: 520px) {
  main .btn { white-space: normal; text-align: center; max-width: 100%; overflow-wrap: anywhere; }   /* very large text: wrap, don't overflow */
  .fact { min-width: 0; }
  .more-posts li { flex-direction: column; gap: 2px; }
  .fact { padding: var(--s3) 18px 20px; }
  .form-row { grid-template-columns: minmax(0, 1fr); }
  .field-checks, .rx-grid { grid-template-columns: minmax(0, 1fr); }
  .form, .form-off { padding: var(--s3) 20px; }
  .page-main .lede { font-size: 1.0625rem; }
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .tiles-urgent { grid-column: 1 / -1; }
  .tile { padding: 18px 16px 16px; }
  .tile .icon { width: 40px; height: 40px; margin-bottom: 12px; }
  .tile-t { font-size: 1rem; }
  .answer { padding: var(--s3) 20px; }
  .svc-groups { grid-template-columns: minmax(0, 1fr); }
  .page-head { padding-top: var(--s5); }
  .logo img { width: 136px; }
  .header-row { column-gap: 12px; }
  .coverage-inner a { white-space: normal; }
  .header-actions .btn { padding: 0 1.1em; font-size: var(--t-sm); }
  .btn-long { display: none; }
  .hero-actions .btn { flex: 1 1 100%; }
  .footer-grid { grid-template-columns: minmax(0, 1fr); }
  .clinic-card { padding: calc(var(--s3) + 4px) 20px var(--s3); }
  /* On phones the services become a compact list: icon left, words right */
  .service-grid { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .service-card { display: grid; grid-template-columns: 48px minmax(0, 1fr); column-gap: var(--s2); padding: 20px; }
  .service-card .icon { width: 48px; height: 48px; margin: -2px 0 0 -4px; grid-row: span 2; }
}
@media (max-width: 380px) { .btn-area { display: none; } }
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; } }
/* Windows high-contrast mode drops background colours: draw the ☰ lines in the system text colour (Nov 15) */
@media (forced-colors: active) { .mobile-nav summary span { forced-color-adjust: none; background: CanvasText; } }
