/* ═══════════════════════════════════════════════════════════════════════════
   TEMPLATE D — "Hearth"  (light, warm, bold)

   Built 2026-10-24 for Bonfire Chiropractic's light register. A standalone
   sheet with its own class contract (`.d-*`); nothing inherits A's rules.
   Defaults below are the Bonfire (bonfire-chiropractic) tokens; clients override through
   themeToCssVars(). Every text/background pair measured for WCAG AA:
     #1C1512 on #FBF5F0  15.4:1   #B9400C on #FBF5F0  5.2:1 (small text ok)
     #CC4A12 on #FFFFFF   4.6:1   white on #CC4A12    4.6:1 (buttons ok)
     #F5A524 on #1C1512   9.6:1   #E8601C on #1C1512  5.6:1 (dark band)
   ═══════════════════════════════════════════════════════════════════════════ */

:root {
  --primary: #CC4A12;        /* fills, buttons, large display accents */
  --primary-dark: #A8390C;
  --primary-light: #FDEBDF;  /* pale tint surface */
  --accent: #B9400C;         /* small-text-safe brand colour */
  --accent-dark: #8F300A;

  --bg: #FFFFFF;
  --bg-alt: #FBF5F0;         /* cream */
  --bg-card: #FFFFFF;
  --border: #EADFD6;
  --text: #1C1512;
  --text-mid: #5B514B;
  --text-muted: #8A7F78;
  --text-dark: #1C1512;
  --on-primary: #FFFFFF;

  /* Dark closing band — the template's signature register. The warm-dark
     defaults stay; a tenant may move the band (e.g. to navy) through the
     generic --bg-dark / --on-dark-* tokens (packages/core/theme.ts), which is
     theming, not a fork. Added 2026-11-07 for Bonfire Wellness. */
  --d-dark: var(--bg-dark, #1C1512);
  --d-dark-2: var(--bg-dark-2, #2A211C);
  --d-dark-accent: var(--on-dark-accent, #F5A524);
  --d-dark-fill: var(--on-dark-fill, #E8601C);

  --font-heading: var(--font-jakarta), "Plus Jakarta Sans", system-ui, -apple-system, sans-serif;
  --font-body: var(--font-figtree), "Figtree", system-ui, -apple-system, sans-serif;

  --radius: 10px;
  --radius-sm: 6px;
  --wrap: 1200px;
  --shadow: 0 1px 2px rgba(60, 30, 10, .06);
  --shadow-md: 0 14px 34px rgba(60, 30, 10, .12);
}

/* ── Base ───────────────────────────────────────────────────────────────── */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { margin: 0; font-weight: 400; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
dl, dd { margin: 0; }
.container { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 clamp(1rem, 4vw, 2.5rem); }

/* Display type: Plus Jakarta Sans, sentence case, tight tracking. Uppercase
   survives only on the small labels (eyebrows, ticker, footer headings, tile
   labels, the stamp). */
.d-poster, .d-h2, .d-page-title, .d-closing-title, .d-banner-title, .d-pull-title, .d-tile-big, .d-stamp-count, .d-hero-panel-word {
  font-family: var(--font-heading);
  text-transform: none;
  letter-spacing: -0.02em;
  line-height: 1.05;
  font-weight: 800;
}
.d-h2, .d-pull-title, .d-closing-title, .d-banner-title { font-weight: 700; }
.d-poster, .d-page-title { line-height: 1.02; }
.d-prose h2, .d-prose h3, .d-rail-title, .d-chip-title, .d-ticket h3, .d-post-title, .d-person h4, .d-faq-item summary, .d-featured blockquote, .d-aside-card h3, .d-contact-card h3, .d-closing-card h3, .d-people-label, .d-footer-tagline {
  font-family: var(--font-heading); font-weight: 700; letter-spacing: -0.01em;
}
.d-statement-num, .d-rail-num, .d-ticket-label, .d-ticket-dot, .d-post-day, .d-person-initials, .d-featured-mark, .d-stamp-count, .d-tile-big {
  font-family: var(--font-heading); font-weight: 800;
}

/* ── Scribble + arrow (signature accents) ───────────────────────────────── */
.d-scribble { display: block; width: 100%; height: .32em; color: var(--primary); margin-top: -.06em; }
.d-poster-accent, .d-pull-title > span, .d-page-title > span { display: inline; }
/* Title scribbles sit on their own line under the heading (never over the
   subhead): a short stroke, left-aligned, the width of a few words. */
.d-poster .d-scribble, .d-pull-title .d-scribble, .d-page-title .d-scribble {
  display: block; width: min(100%, 6em); height: .3em; margin-top: .3em;
}
.d-arrow { width: 1.55em; height: .8em; margin-left: .35em; flex: 0 0 auto; color: currentColor; }

/* ── Buttons ────────────────────────────────────────────────────────────── */
.d-btn {
  display: inline-flex; align-items: center; gap: .45rem;
  padding: .95rem 1.5rem;
  border-radius: 999px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: .95rem;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .14s ease, background .18s ease, color .18s ease, border-color .18s ease;
}
.d-btn:hover { transform: translateY(-2px); }
.d-btn-sm { padding: .7rem 1.1rem; font-size: .85rem; }
/* CTA fill reads --cta first so a tenant can keep buttons in one colour and
   the rest of the primary palette in another; unset, it is --primary. */
.d-btn-primary { background: var(--cta, var(--primary)); color: var(--on-cta, var(--on-primary)); }
.d-btn-primary:hover { background: var(--cta-dark, var(--primary-dark)); }
.d-btn-outline { border-color: var(--text); color: var(--text); background: transparent; }
.d-btn-outline:hover { background: var(--text); color: var(--bg); }
.d-btn-ghost { border-color: rgba(255,255,255,.35); color: #FFFFFF; background: transparent; }
.d-btn-ghost:hover { border-color: #FFFFFF; }

/* ── Shared bits ────────────────────────────────────────────────────────── */
.d-eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: .76rem; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: var(--accent);
  margin-bottom: .9rem;
}
.d-eyebrow::before { content: ""; width: 18px; height: 3px; background: var(--mark, var(--primary)); border-radius: 2px; }
.d-eyebrow-onDark { color: var(--d-dark-accent); }
.d-eyebrow-onDark::before { background: var(--d-dark-accent); }
.d-h2 { font-size: clamp(1.9rem, 3.6vw, 2.9rem); max-width: 24ch; }
.d-sub { color: var(--text-mid); font-size: 1.05rem; line-height: 1.7; max-width: 62ch; margin-top: .9rem; }
.d-head { margin-bottom: clamp(2rem, 4vw, 3rem); }
.d-head-center { text-align: center; }
.d-head-center .d-h2, .d-head-center .d-sub { margin-left: auto; margin-right: auto; }
.d-head-center .d-eyebrow { justify-content: center; }
.d-micro { font-size: .86rem; color: var(--text-muted); margin-top: 1rem; }
.d-link {
  display: inline-flex; align-items: center;
  color: var(--accent); font-weight: 600; font-size: .95rem;
  text-decoration: none; margin-top: .6rem;
}
.d-link:hover { text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 2px; }
.d-measure > * { max-width: 72ch; }
.d-measure-center { text-align: center; }
.d-measure-center > * { margin-left: auto; margin-right: auto; }
.d-ctas { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.6rem; }
.d-ctas-col { flex-direction: column; align-items: stretch; margin-top: 0; }
.d-ctas-col .d-btn { justify-content: center; }
.d-section, .d-block { padding: clamp(3.2rem, 8vw, 6.2rem) 0; border-top: 1px solid var(--border); }
.d-section-alt, .d-block-alt { background: var(--bg-alt); }
.d-tag {
  /* 1rem, not 999px: identical pill on one line, and a tag that does wrap
     keeps its text inside the shape instead of spilling past round ends. */
  display: inline-block; padding: .3rem .7rem; border-radius: 1rem;
  background: var(--primary-light); color: var(--accent);
  font-size: .74rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase;
}
.d-tags { display: flex; flex-wrap: wrap; gap: .45rem; margin-top: .9rem; }

/* ── Utility row + shared header (restyled for D) ───────────────────────── */
.d-utility { background: var(--d-dark); color: #FFFFFF; font-size: .82rem; }
.d-utility-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .5rem 0; flex-wrap: wrap; }
.d-today { display: inline-flex; align-items: center; gap: .45rem; color: #E9DFD6; }
.d-today svg { color: var(--d-dark-accent); }
.d-today-label { font-weight: 600; color: #FFFFFF; }
.d-today.is-set .d-today-label::after { content: " today"; font-weight: 400; color: #E9DFD6; }
.d-utility-links { display: inline-flex; gap: 1.2rem; }
.d-utility-links a { display: inline-flex; align-items: center; gap: .35rem; color: #FFFFFF; text-decoration: none; font-weight: 600; }
.d-utility-links a svg { color: var(--d-dark-accent); }
.d-utility-links a:hover { color: var(--d-dark-accent); }

.announcement-bar {
  background: var(--primary-light); color: var(--text);
  font-size: .86rem; font-weight: 600; text-align: center;
  padding: .55rem 2.5rem .55rem 1rem; position: relative;
  border-bottom: 1px solid var(--border);
}
.announcement-bar a { color: var(--accent); font-weight: 800; }
.announcement-close { position: absolute; right: .8rem; top: 50%; transform: translateY(-50%); background: none; border: 0; color: var(--text-mid); font-size: 1.2rem; cursor: pointer; line-height: 1; }

.site-header { position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,.92); backdrop-filter: blur(12px); border-bottom: 1px solid var(--border); }
.site-header.scrolled { box-shadow: var(--shadow); }
.header-inner { display: flex; align-items: center; gap: clamp(.8rem, 2vw, 1.6rem); padding: .8rem 0; }
.logo { flex: 0 0 auto; text-decoration: none; color: var(--text); }
.logo-img { height: 44px; width: auto; }
.main-nav { margin-left: .5rem; }
.main-nav ul { display: flex; gap: clamp(.6rem, 1.6vw, 1.4rem); }
.main-nav a {
  color: var(--text); text-decoration: none;
  font-size: .95rem; font-weight: 500; white-space: nowrap;
  padding: .35rem 0; border-bottom: 2px solid transparent;
  transition: border-color .16s ease, color .16s ease;
}
.main-nav a:hover { border-bottom-color: var(--primary); color: var(--accent); }
/* ── Nav dropdown (shared header; items with `children`) — added 2026-11-08 ──
   Tenants whose nav has no children never match these selectors. Tokens fall
   back so the block reads as part of whichever template it ships in. */
.main-nav .has-children { position: relative; }
.main-nav .nav-dd-parent { display: inline-flex; align-items: center; gap: .3rem; }
.main-nav .nav-dd-caret { flex: 0 0 auto; transition: transform .16s ease; }
.main-nav .has-children.dd-open > .nav-dd-parent .nav-dd-caret { transform: rotate(180deg); }
.main-nav .nav-dd-panel {
  position: absolute; left: 50%; top: calc(100% + .9rem); z-index: 120;
  transform: translateX(-50%) translateY(6px);
  width: max-content; max-width: min(760px, calc(100vw - 2rem)); min-width: 260px;
  padding: 1.4rem 1.6rem 1.1rem;
  background: var(--bg-card, var(--white, #FFFFFF)); color: var(--text, var(--text-dark, #111));
  border: 1px solid var(--border, #E5E7EB);
  border-radius: var(--radius-lg, var(--photo-radius, 20px));
  box-shadow: var(--shadow-lg, var(--shadow-md, 0 14px 34px rgba(0, 0, 0, .12)));
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .16s ease, transform .16s ease, visibility 0s linear .16s;
}
/* Invisible bridge so the pointer can cross the gap between link and panel. */
.main-nav .nav-dd-panel::before { content: ""; position: absolute; left: 0; right: 0; top: -1rem; height: 1rem; }
.main-nav .has-children:hover > .nav-dd-panel,
.main-nav .has-children.dd-open > .nav-dd-panel {
  opacity: 1; visibility: visible; pointer-events: auto; transform: translateX(-50%) translateY(0);
  transition: opacity .16s ease, transform .16s ease, visibility 0s;
}
/* Keep the panel inside the viewport when the parent sits near an edge. */
.main-nav li.has-children:first-child > .nav-dd-panel { left: 0; transform: translateX(0) translateY(6px); }
.main-nav li.has-children:first-child:hover > .nav-dd-panel,
.main-nav li.has-children:first-child.dd-open > .nav-dd-panel { transform: translateX(0) translateY(0); }
.main-nav li.has-children:last-child > .nav-dd-panel { left: auto; right: 0; transform: translateX(0) translateY(6px); }
.main-nav li.has-children:last-child:hover > .nav-dd-panel,
.main-nav li.has-children:last-child.dd-open > .nav-dd-panel { transform: translateX(0) translateY(0); }
.main-nav .nav-dd-cols { display: grid; grid-template-columns: repeat(var(--nav-dd-cols, 1), minmax(150px, 1fr)); gap: 1.2rem 2.2rem; }
.main-nav .nav-dd-cols[data-cols="2"] { --nav-dd-cols: 2; }
.main-nav .nav-dd-cols[data-cols="3"] { --nav-dd-cols: 3; }
.main-nav .nav-dd-cols[data-cols="4"] { --nav-dd-cols: 4; }
.main-nav .nav-dd-group {
  margin: 0 0 .55rem; font-size: .7rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: var(--text-muted, #8A8A8A);
}
.main-nav .nav-dd-col ul { display: flex; flex-direction: column; gap: .1rem; align-items: stretch; }
.main-nav .nav-dd-panel a {
  display: block; padding: .4rem .55rem; margin: 0 -.55rem; border: 0; border-radius: 8px;
  font-size: .92rem; font-weight: 500; letter-spacing: 0; text-transform: none; white-space: normal;
  color: var(--text, var(--text-dark, #111)); text-decoration: none; background: none;
}
.main-nav .nav-dd-panel a:hover, .main-nav .nav-dd-panel a:focus-visible {
  color: var(--accent, var(--primary)); background: var(--primary-light, rgba(0, 0, 0, .04)); border: 0;
}
.main-nav .nav-dd-all {
  margin: 1rem -.55rem 0 !important; padding-top: .9rem !important;
  border-top: 1px solid var(--border, #E5E7EB) !important; border-radius: 0 !important;
  font-weight: 700 !important; color: var(--accent, var(--primary)) !important; background: none !important;
}
.main-nav .nav-dd-all:hover { text-decoration: underline; }
@media (prefers-reduced-motion: reduce) { .main-nav .nav-dd-panel, .main-nav .nav-dd-caret { transition: none; } }

/* Nav dropdown inside the mobile drawer: a static accordion. */
@media (max-width: 860px) {
  .main-nav .has-children { position: static; }
  .main-nav .has-children > .nav-dd-parent { display: flex; justify-content: space-between; width: 100%; }
  /* !important: the desktop open/edge rules above are more specific (li:first-child, .dd-open). */
  .main-nav .nav-dd-panel {
    display: none; position: static !important; left: auto !important; right: auto !important; transform: none !important;
    width: auto !important; max-width: none !important; min-width: 0;
    padding: .2rem 0 .6rem .9rem; border: 0; border-radius: 0; box-shadow: none; background: transparent;
    opacity: 1 !important; visibility: visible !important; pointer-events: auto !important; transition: none;
  }
  .main-nav .nav-dd-panel::before { display: none; }
  .main-nav .has-children.dd-open > .nav-dd-panel { display: block; }
  .main-nav .nav-dd-cols { grid-template-columns: 1fr; gap: .6rem; }
  .main-nav .nav-dd-group { margin: .5rem 0 .2rem; }
  .main-nav .nav-dd-panel li a { padding: .55rem 0; margin: 0; border-radius: 0; border-bottom: 1px solid var(--border, #E5E7EB); }
  .main-nav .nav-dd-panel li:last-child a { border-bottom: 0; }
  .main-nav .nav-dd-panel .nav-dd-all { display: block; margin: .4rem 0 0 !important; padding: .6rem 0 0 !important; border-top: 0 !important; border-bottom: 0; }
}

.header-cta {
  display: inline-flex; align-items: center; margin-left: auto;
  background: var(--cta, var(--primary)); color: var(--on-cta, var(--on-primary));
  padding: .75rem 1.3rem; border-radius: 999px;
  font-size: .92rem; font-weight: 600; text-decoration: none; white-space: nowrap;
}
.header-cta:hover { background: var(--cta-dark, var(--primary-dark)); }
.locale-switch {
  display: inline-flex; align-items: center; padding: .35rem .7rem; margin-left: auto;
  border: 1px solid var(--border); border-radius: 999px;
  font-size: .78rem; font-weight: 700; color: var(--text-mid); text-decoration: none;
}
.locale-switch + .header-cta { margin-left: 0; }
.mobile-menu-toggle { display: none; background: none; border: 0; flex-direction: column; gap: 4px; cursor: pointer; padding: .4rem; }
.mobile-menu-toggle span { display: block; width: 22px; height: 2px; background: var(--text); }

/* ── Poster hero ────────────────────────────────────────────────────────── */
.d-hero { background: var(--bg-alt); padding: clamp(2.6rem, 6vw, 4.6rem) 0 clamp(2.8rem, 6vw, 4.6rem); overflow: hidden; }
.d-poster { font-size: clamp(2.6rem, 6.2vw, 5.4rem); max-width: 17ch; color: var(--text); }
.d-poster-accent { color: var(--primary); }
.d-hero-row {
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(0, 1.15fr) minmax(220px, .5fr);
  gap: clamp(1.4rem, 3.5vw, 3rem);
  align-items: stretch;
  margin-top: clamp(1.8rem, 4vw, 3rem);
}
.d-hero-copy { display: flex; flex-direction: column; justify-content: center; min-width: 0; }
.d-hero-sub { color: var(--text-mid); font-size: clamp(1.02rem, 1.6vw, 1.2rem); line-height: 1.68; max-width: 48ch; }
/* The panel follows the photo's own 3:2 ratio and sits centred against the
   copy and the proof tiles, so the whole team shows at every width instead of
   being cover-cropped to whatever height the tiles column happens to be. */
.d-hero-media { position: relative; border-radius: var(--photo-radius, var(--radius)); overflow: hidden; box-shadow: var(--shadow-md); aspect-ratio: 3 / 2; align-self: center; width: 100%; background: var(--primary-light); }
.d-hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; display: block; }
.d-hero-panel {
  position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end;
  padding: 1.6rem; background: linear-gradient(160deg, var(--primary-light) 0%, #F7CDB5 100%);
}
.d-hero-panel-word { font-size: clamp(2rem, 4vw, 3.2rem); color: var(--primary); line-height: 1.02; }
.d-hero-panel-line { color: var(--text-mid); font-weight: 700; margin-top: .5rem; }
.d-tiles { display: flex; flex-direction: column; gap: .7rem; }
.d-tile {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: .95rem 1.1rem; display: flex; flex-direction: column; gap: .15rem; flex: 1;
  justify-content: center;
}
.d-tile-big { font-size: clamp(1.15rem, 1.8vw, 1.5rem); color: var(--primary); }
.d-tile-small { font-size: .75rem; color: var(--text-mid); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; line-height: 1.4; }
.d-tile-pill { flex-direction: row; align-items: center; gap: .55rem; background: var(--d-dark); color: #FFFFFF; border-color: var(--d-dark); font-weight: 700; font-size: .86rem; flex: 0 0 auto; }
.d-tile-pill svg { color: var(--d-dark-accent); flex: 0 0 auto; }

/* ── Belief ticker ──────────────────────────────────────────────────────── */
.d-ticker { background: var(--bg); border-block: 1px solid var(--border); overflow: hidden; padding: .8rem 0; }
.d-ticker-track { display: flex; width: max-content; animation: d-scroll 40s linear infinite; }
.d-ticker-item {
  display: inline-flex; align-items: center; gap: 1.4rem; padding-right: 1.4rem; white-space: nowrap;
  font-family: var(--font-heading); font-weight: 700; text-transform: uppercase; color: var(--accent);
  font-size: clamp(.85rem, 1.5vw, 1.05rem); letter-spacing: .1em;
}
.d-ticker-mark { width: 9px; height: 9px; border-radius: 50%; background: var(--mark, var(--primary)); opacity: .7; }
@keyframes d-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .d-ticker-track { animation: none; width: 100%; flex-wrap: wrap; justify-content: center; gap: .4rem 0; }
  .is-marquee .d-marquee-track { overflow-x: auto; -webkit-mask-image: none; mask-image: none; }
  .is-marquee .d-marquee-track > * { animation: none; }
  .is-marquee .d-marquee-track > [aria-hidden="true"] { display: none; }
  .d-btn:hover { transform: none; }
}

/* ── Statement rows + pull-quote band ───────────────────────────────────── */
.d-statements { border-top: 2px solid var(--text); }
.d-statement {
  display: grid; grid-template-columns: minmax(70px, 110px) 1fr; gap: clamp(1rem, 3vw, 2.5rem); align-items: center;
  padding: clamp(1rem, 2.4vw, 1.5rem) 0; border-bottom: 1px solid var(--border);
}
.d-statement p { font-size: clamp(1.05rem, 2vw, 1.35rem); font-weight: 600; line-height: 1.4; color: var(--text); }
.d-statement-num {
  font-size: clamp(2.4rem, 5.4vw, 4rem); line-height: 1;
  color: transparent; -webkit-text-stroke: 2px var(--primary);
}
.d-pull {
  margin-top: clamp(2rem, 4vw, 3rem); padding: clamp(1.6rem, 4vw, 2.6rem);
  background: var(--bg-alt); border-radius: var(--radius); border-left: 6px solid var(--primary);
}
.d-pull-title { font-size: clamp(1.6rem, 3vw, 2.3rem); margin-bottom: 1rem; }
.d-pull-body { color: var(--text-mid); line-height: 1.75; font-size: 1.05rem; max-width: 70ch; }

/* Opt-in split variant of the statements (2026-11-07, Bonfire Wellness):
   sticky copy column + a 2x2 grid of icon cards on the tint. Rendered only
   when `problem.cards` is set; the numbered index above is unchanged. */
.d-split-section { background: var(--bg-alt); }
.d-split { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.d-split-copy { position: sticky; top: 96px; }
.d-split-copy .d-sub { margin-top: 1rem; }
.d-split-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.d-split-card {
  position: relative; background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--photo-radius, var(--radius)); padding: 1.6rem 1.4rem 1.5rem; overflow: hidden;
  display: flex; flex-direction: column; gap: .6rem;
}
.d-split-card::before { content: ""; position: absolute; left: 1.4rem; right: 1.4rem; top: 0; height: 4px; border-radius: 0 0 3px 3px; background: var(--mark, var(--primary)); }
.d-split-icon { width: 48px; height: 48px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--primary-light); color: var(--accent); margin-bottom: .3rem; }
.d-split-title { font-size: 1.15rem; line-height: 1.3; color: var(--text); }
.d-split-body { color: var(--text-mid); font-size: .95rem; line-height: 1.62; }
@media (max-width: 900px) {
  .d-split { grid-template-columns: 1fr; }
  .d-split-copy { position: static; }
}
@media (max-width: 560px) {
  .d-split-grid { grid-template-columns: 1fr; }
}

/* Opt-in step-card row (2026-11-07, Bonfire Wellness): three equal cards
   with a 4:3 photo, a numeral badge over the photo's bottom-left corner and
   a dotted connector at badge height. Rendered only when a process step
   carries `image`; the zigzag timeline is unchanged for everyone else. */
.d-stepcards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1.2rem, 3vw, 2.4rem); position: relative; counter-reset: none; }
.d-stepcard { position: relative; display: flex; flex-direction: column; gap: .55rem; }
.d-stepcard-media { position: relative; aspect-ratio: 4 / 3; border-radius: var(--photo-radius, var(--radius)); overflow: visible; margin-bottom: 1.1rem; }
.d-stepcard-media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; display: block; border-radius: var(--photo-radius, var(--radius)); box-shadow: var(--shadow-md); }
.d-stepcard-num {
  position: absolute; left: 1rem; bottom: -1.15rem; width: 56px; height: 56px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--cta, var(--primary)); color: #FFFFFF; border: 4px solid var(--bg-alt);
  font-family: var(--font-heading); font-weight: 800; font-size: 1.5rem; line-height: 1; z-index: 2;
}
/* Dotted connector between cards at the badge's centre height, running from
   the badge across the gap to the next card's left edge. */
.d-stepcard-media::after {
  content: ""; position: absolute; z-index: 1; left: calc(1rem + 56px + .7rem);
  width: calc(100% - 1rem - 56px - .7rem + clamp(1.2rem, 3vw, 2.4rem) + .3rem);
  bottom: calc(-1.15rem + 28px - 1px); height: 0; border-top: 3px dotted var(--primary); opacity: .55;
}
.d-stepcard:last-child .d-stepcard-media::after { display: none; }
.d-stepcard-title { font-size: 1.25rem; line-height: 1.25; color: var(--text); margin-top: .4rem; }
.d-stepcard-body { color: var(--text-mid); font-size: .97rem; line-height: 1.65; }
@media (max-width: 860px) {
  .d-stepcards { grid-template-columns: 1fr; gap: 2.2rem; max-width: 520px; margin-inline: auto; }
  .d-stepcard-media::after { display: none; }
}

/* Opt-in steps band (2026-11-07, Bonfire Wellness; `process.layout: "band"`):
   full-bleed band in the primary-dark colour, a tall 4:5 photo that overhangs
   the band edges, a vertical numbered list. Measured: white on #17648F
   6.45:1; sky #38BCEF on #17648F is 2.95:1, so sky is used only for the
   eyebrow dash and the hairlines, never for text. */
.d-stepsband { position: relative; background: var(--primary-dark); color: #FFFFFF; padding: clamp(3rem, 7vw, 5.5rem) 0; margin-block: 2.6rem; }
.d-stepsband-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: stretch; }
/* The photo stretches to the copy's height plus the band padding and a
   little more, so it overhangs the band's top and bottom edges (poster
   feel). The 4:5 ratio is the mobile/min shape; on desktop the height
   follows the copy. */
.d-stepsband-photo { position: relative; z-index: 2; align-self: stretch; margin: calc(-1 * clamp(3rem, 7vw, 5.5rem) - 1.4rem) 0; min-height: 0; border-radius: var(--photo-radius, var(--radius)); overflow: hidden; box-shadow: 0 24px 50px rgba(10, 24, 34, .28); background: var(--primary); }
.d-stepsband-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; display: block; }
.d-eyebrow-onBand { color: #FFFFFF; }
.d-eyebrow-onBand::before { background: var(--on-dark-accent, var(--primary-light)); }
.d-stepsband-title { font-family: var(--font-heading); font-weight: 700; letter-spacing: -.02em; font-size: clamp(1.9rem, 3.6vw, 2.9rem); max-width: 20ch; color: #FFFFFF; }
.d-stepsband-sub { color: rgba(255,255,255,.85); font-size: 1.05rem; line-height: 1.7; max-width: 58ch; margin-top: .9rem; }
.d-stepsband-list { margin-top: clamp(1.4rem, 3vw, 2.2rem); border-top: 1px solid rgba(227, 243, 251, .28); }
.d-stepsband-step { display: grid; grid-template-columns: 4.2rem 1fr; gap: 1rem; align-items: start; padding: 1.15rem 0; border-bottom: 1px solid rgba(227, 243, 251, .28); }
.d-stepsband-num { font-family: var(--font-heading); font-weight: 800; font-size: 3rem; line-height: .9; color: transparent; -webkit-text-stroke: 2px #FFFFFF; letter-spacing: -.02em; }
.d-stepsband-step h3 { font-family: var(--font-heading); font-weight: 700; color: #FFFFFF; font-size: 1.2rem; line-height: 1.3; }
.d-stepsband-step p { color: rgba(255,255,255,.85); font-size: .97rem; line-height: 1.65; margin-top: .3rem; }
.d-stepsband-micro { color: rgba(255,255,255,.7); font-size: .86rem; margin-top: .9rem; }
@media (max-width: 900px) {
  .d-stepsband { margin-block: 0; }
  .d-stepsband-grid { grid-template-columns: 1fr; gap: 1.8rem; }
  .d-stepsband-photo { margin: 0; align-self: auto; aspect-ratio: 4 / 3; }
  .d-stepsband-step { grid-template-columns: 3.4rem 1fr; }
  .d-stepsband-num { font-size: 2.4rem; }
}

/* ── Step rail ──────────────────────────────────────────────────────────── */
.d-rail { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
.d-rail-wrap { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.d-rail-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
/* Count-aware wrapping so a card never sits alone on a second row:
   2 cards -> 2 across; 4 cards -> 4 across (2x2 under 1100px); 3/6 -> 3 across. */
.d-rail-wrap:has(> :nth-child(2):last-child) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.d-rail-wrap:has(> :nth-child(3):last-child), .d-rail-wrap:has(> :nth-child(6):last-child) { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.d-rail-wrap:has(> :nth-child(4):last-child) { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1100px) {
  .d-rail-wrap:has(> :nth-child(4):last-child) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .d-rail-wrap:has(> :nth-child(3):last-child), .d-rail-wrap:has(> :nth-child(6):last-child) { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
}
.d-rail-panel {
  display: flex; flex-direction: column; gap: .65rem;
  background: var(--bg-card); border: 1px solid var(--border); border-top: 4px solid var(--primary);
  border-radius: var(--radius); padding: 1.4rem 1.3rem 1.5rem;
  text-decoration: none; color: inherit; min-height: 100%;
  transition: transform .16s ease, box-shadow .16s ease;
}
.d-rail-panel-link:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.d-rail-top { display: flex; justify-content: space-between; align-items: center; }
.d-rail-num { font-size: 1.3rem; color: var(--accent); }
.d-rail-icon { width: 40px; height: 40px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--primary-light); color: var(--accent); }
/* featureCards (conditions / services hubs): a bigger tile so the literal
   body-figure icons stay legible; the step rail keeps the 40px tile. */
.d-rail-icon-lg { width: 56px; height: 56px; }
.d-rail-title { font-size: 1.18rem; line-height: 1.25; color: var(--text); }
.d-rail-body { color: var(--text-mid); font-size: .95rem; line-height: 1.62; }
.d-rail-link { color: var(--accent); font-weight: 600; font-size: .9rem; margin-top: auto; padding-top: .4rem; }
.d-rail-panel-cta { background: var(--d-dark); border-color: var(--d-dark); color: #FFFFFF; }
/* Opt-in (2026-11-07, Bonfire Wellness): a three-card rail, and a photo slot
   at the top of a panel when the card carries `image`. The photo bleeds to
   the panel edges under the 4px rule and keeps the source's square ratio, so
   a 1:1 clinic photo is shown whole. Tenants without `image` are unchanged. */
.d-rail-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.d-rail-panel-photo { overflow: hidden; }
.d-rail-photo { display: block; margin: -1.4rem -1.3rem .5rem; aspect-ratio: 1 / 1; overflow: hidden; background: var(--primary-light); }
.d-rail-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; display: block; }
.d-rail-panel-photo .d-rail-title { font-size: 1.35rem; }
.d-rail-logo { aspect-ratio: 3 / 1; background: #FFFFFF; padding: 1rem 1.4rem; border-bottom: 1px solid var(--border); }
.d-rail-logo img { object-fit: contain; object-position: 50% 50%; }
.d-rail-panel-logo .d-rail-title { font-size: 1.18rem; }
.d-rail-panel-cta .d-rail-title { color: #FFFFFF; }
.d-rail-panel-cta .d-rail-body { color: #E9DFD6; margin-bottom: .6rem; }

/* ── Condition wall ─────────────────────────────────────────────────────── */
.d-wall-marquee { display: flex; }
.d-wall { display: flex; gap: .8rem; padding-right: .8rem; flex: 0 0 auto; }
.d-wall .d-chip { flex: 0 0 300px; }
.d-chip {
  display: flex; gap: .9rem; align-items: flex-start;
  padding: 1.05rem 1.15rem; border-radius: var(--radius);
  border: 1.5px solid var(--border); background: var(--bg-card);
  text-decoration: none; color: inherit;
  transition: border-color .16s ease, transform .16s ease, background .16s ease;
}
.d-chip-link { border-color: var(--primary); }
.d-chip-link:hover { background: var(--primary-light); transform: translateY(-2px); }
.d-chip-icon { width: 38px; height: 38px; border-radius: 50%; flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; background: var(--primary-light); color: var(--accent); }
.d-chip-text { display: flex; flex-direction: column; gap: .2rem; }
.d-chip-title { font-size: 1.05rem; color: var(--text); }
.d-chip-body { color: var(--text-mid); font-size: .92rem; line-height: 1.55; }
/* Opt-in (2026-11-07, Bonfire Wellness): when every card in the wall carries
   `image`, the marquee of chips becomes a static grid of photo tiles, one per
   service, copy set over a dark gradient at the foot. A card with no photo
   renders as a coloured tile in the primary family (never a stock image). */
.d-wall-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: .9rem; }
.d-photo-tile {
  position: relative; isolation: isolate; display: flex; flex-direction: column; justify-content: flex-end; gap: .25rem;
  aspect-ratio: 4 / 5; padding: 1rem 1rem 1.05rem; border-radius: var(--photo-radius, var(--radius)); overflow: hidden;
  color: #FFFFFF; text-decoration: none;
  background: linear-gradient(165deg, var(--primary) 0%, var(--primary-dark) 100%);
  transition: transform .16s ease, box-shadow .16s ease;
}
.d-photo-tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; z-index: -2; }
.d-photo-tile::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, rgba(10, 24, 34, .9) 0%, rgba(10, 24, 34, .45) 48%, rgba(10, 24, 34, 0) 100%); }
.d-photo-tile-title { font-family: var(--font-heading); font-weight: 700; font-size: 1.12rem; line-height: 1.2; }
.d-photo-tile-body { font-size: .84rem; line-height: 1.45; color: rgba(255,255,255,.9); }
.d-photo-tile-link { font-size: .8rem; font-weight: 700; margin-top: .35rem; color: var(--d-dark-accent); }
a.d-photo-tile:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.d-photo-tile-plain .d-photo-tile-title { font-size: 1.3rem; }

/* ── Visit timeline ─────────────────────────────────────────────────────── */
/* Steps: one left-rail stepper, read top to bottom. Same on every page
   (inner-page steps block + the homepage fallback without photos). */
.d-timeline { --tl-dot: 46px; position: relative; max-width: 820px; margin: 0 auto; padding: .4rem 0 0; }
.d-ticket-row { position: relative; display: grid; grid-template-columns: var(--tl-dot) 1fr; column-gap: 1.3rem; align-items: start; padding-bottom: 1.1rem; }
.d-ticket-row:last-child { padding-bottom: 0; }
.d-ticket-row::before { content: ""; position: absolute; left: calc(var(--tl-dot) / 2 - 1.5px); top: var(--tl-dot); bottom: 0; width: 3px; background: color-mix(in srgb, var(--primary) 32%, transparent); border-radius: 2px; }
.d-ticket-row:last-child::before { display: none; }
.d-ticket-dot {
  width: var(--tl-dot); height: var(--tl-dot); margin-top: .55rem; border-radius: 50%;
  background: var(--primary); color: var(--on-primary);
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-heading); font-weight: 800; font-size: 1.05rem;
  box-shadow: 0 0 0 5px var(--bg-card), 0 6px 14px rgba(0, 0, 0, .10);
}
.d-block-alt .d-ticket-dot { box-shadow: 0 0 0 5px var(--bg-alt), 0 6px 14px rgba(0, 0, 0, .10); }
.d-ticket {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.25rem 1.5rem 1.35rem; box-shadow: var(--shadow); position: relative; min-width: 0;
}
.d-ticket-label { display: none; }
.d-ticket h3 { font-size: 1.2rem; margin: 0 0 .45rem; line-height: 1.25; }
.d-ticket p { color: var(--text-mid); font-size: .97rem; line-height: 1.65; }
.d-timeline-cta { text-align: center; margin-top: 2rem; }
.d-timeline-cta .d-micro { max-width: 60ch; margin-left: auto; margin-right: auto; }

/* ── Proof ──────────────────────────────────────────────────────────────── */
.d-proof { display: grid; grid-template-columns: minmax(0, 1fr) minmax(220px, 280px); gap: 2rem; align-items: center; margin-bottom: 2rem; }
.d-featured { margin: 0; position: relative; padding-left: clamp(1.2rem, 3vw, 2.4rem); border-left: 6px solid var(--primary); }
.d-featured blockquote { margin: 0; font-size: clamp(1.25rem, 2.3vw, 1.75rem); line-height: 1.32; color: var(--text); position: relative; }
.d-featured-mark { color: var(--primary); font-size: 2em; line-height: 0; position: relative; top: .35em; margin-right: .1em; }
.d-featured figcaption { color: var(--text-muted); font-size: .9rem; margin-top: 1rem; }
.d-stamps { display: flex; flex-direction: column; gap: 1rem; align-items: center; }
.d-stamp {
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
  width: 210px; aspect-ratio: 1; border-radius: 50%;
  border: 4px double var(--primary); color: var(--accent);
  transform: rotate(-7deg); padding: 1rem;
  background: radial-gradient(circle, rgba(204,74,18,.06) 0%, transparent 70%);
}
.d-stamp-name { font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.d-stamp-count { font-size: 1.1rem; margin-top: .3rem; line-height: 1.2; letter-spacing: 0; }
.d-quotes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.2rem; }
.d-quote { display: flex; flex-direction: column; background: var(--bg-card); border: 1px solid var(--border); border-left: 4px solid var(--primary); border-radius: var(--radius); padding: 1.3rem 1.4rem 1.2rem; }
.d-quote .d-tag { align-self: flex-start; margin-bottom: .7rem; }
.d-quote p { color: var(--text-mid); font-size: 1.02rem; line-height: 1.6; margin: 0 0 1rem; flex: 1 1 auto; }
.d-quote cite { font-style: normal; font-weight: 600; color: var(--text); font-size: .88rem; }
@media (max-width: 900px) { .d-quotes { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .d-quotes { grid-template-columns: 1fr; } }
.d-proof-cta { margin-top: 1.6rem; }
.d-proof-cta-only { margin-top: 0; }

/* ── Closing band ───────────────────────────────────────────────────────── */
.d-closing { padding: clamp(3rem, 7vw, 5.5rem) 0; background: var(--bg-alt); border-top: 1px solid var(--border); }
.d-closing-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(280px, .9fr); gap: 1.2rem; align-items: stretch; }
.d-closing-dark { background: var(--d-dark); color: #FFFFFF; border-radius: var(--radius); padding: clamp(1.8rem, 4vw, 3rem); }
.d-closing-title { font-size: clamp(1.9rem, 3.6vw, 3rem); max-width: 18ch; }
.d-closing-title::after { content: ""; display: block; width: 72px; height: 5px; background: var(--d-dark-fill); border-radius: 3px; margin-top: 1rem; }
.d-closing-body { color: #E9DFD6; font-size: 1.05rem; line-height: 1.68; max-width: 56ch; margin-top: 1.1rem; }
.d-closing-dark .d-btn-primary { background: var(--d-dark-fill); color: var(--d-dark); }
.d-closing-dark .d-btn-primary:hover { background: var(--d-dark-accent); }
.d-closing-micro { color: #BDB0A6; font-size: .86rem; margin-top: 1.1rem; }
.d-closing-micro a { color: var(--d-dark-accent); font-weight: 700; }
.d-closing-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: clamp(1.4rem, 3vw, 2rem); display: flex; flex-direction: column; }
.d-closing-card h3 { font-size: 1.3rem; margin-bottom: .8rem; }
.d-hours { display: flex; flex-direction: column; }
.d-hours-row { display: flex; justify-content: space-between; gap: 1rem; padding: .5rem 0; border-bottom: 1px dashed var(--border); font-size: .92rem; }
.d-hours-row dt { font-weight: 700; color: var(--text); }
.d-hours-row dd { color: var(--text-mid); text-align: right; }
.d-address { font-style: normal; display: flex; gap: .6rem; align-items: flex-start; margin-top: 1.2rem; color: var(--text-mid); line-height: 1.55; font-size: .95rem; }
.d-address svg { color: var(--accent); flex: 0 0 auto; margin-top: 3px; }
.d-closing-card .d-link { margin-top: auto; padding-top: 1rem; }

/* ── Inner pages ────────────────────────────────────────────────────────── */
.d-page-hero { background: var(--bg-alt); padding: clamp(2.4rem, 6vw, 4.2rem) 0 clamp(2rem, 4vw, 3rem); border-bottom: 4px solid var(--primary); }
.d-page-title { font-size: clamp(2.2rem, 4.6vw, 3.8rem); max-width: 22ch; }
.d-page-hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(1.6rem, 4vw, 3.6rem); align-items: center; }
.d-page-hero-has-photo { padding-bottom: clamp(2.4rem, 6vw, 4.2rem); }
.d-page-hero-photo { position: relative; aspect-ratio: 5 / 4; border-radius: var(--photo-radius, var(--radius)); overflow: hidden; box-shadow: 0 22px 48px rgba(10, 24, 34, .18); background: var(--primary-light); }
.d-page-hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; display: block; }
@media (max-width: 900px) {
  .d-page-hero-grid { grid-template-columns: 1fr; gap: 1.6rem; }
  .d-page-hero-photo { aspect-ratio: 4 / 3; max-width: 560px; }
}
.d-page-sub { color: var(--text-mid); font-size: clamp(1rem, 1.6vw, 1.18rem); line-height: 1.68; max-width: 60ch; margin-top: 1.3rem; }
.d-byline { color: var(--text-muted); font-size: .9rem; margin-top: 1rem; }
.d-chipbar { background: var(--bg); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 90; }
.d-chipbar-inner { display: flex; align-items: center; gap: 1rem; padding: .6rem 0; }
.d-chipbar-label { font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--text-muted); white-space: nowrap; flex: 0 0 auto; }
.d-chipbar ul { display: flex; gap: .5rem; padding-right: .5rem; flex: 0 0 auto; }

/* ── Marquee rows (chip bar + condition wall) ────────────────────────────────
   Static + swipeable by default; .is-marquee (set by MARQUEE_SCRIPT when the
   items overflow) runs the same loop as the belief ticker. */
.d-marquee-track { flex: 1 1 auto; min-width: 0; display: flex; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.d-marquee-track::-webkit-scrollbar { display: none; }
.d-marquee-track > [aria-hidden="true"] { display: none; }
.is-marquee .d-marquee-track {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 28px, #000 calc(100% - 28px), transparent);
  mask-image: linear-gradient(to right, transparent, #000 28px, #000 calc(100% - 28px), transparent);
}
.is-marquee .d-marquee-track > * { animation: d-marquee var(--d-marquee-dur, 40s) linear infinite; }
.is-marquee .d-marquee-track > [aria-hidden="true"] { display: flex; }
.is-marquee .d-marquee-track:hover > *,
.is-marquee .d-marquee-track:focus-within > * { animation-play-state: paused; }
@keyframes d-marquee { from { transform: translateX(0); } to { transform: translateX(-100%); } }
.d-chipbar a {
  display: inline-block; white-space: nowrap; padding: .45rem .9rem; border-radius: 999px;
  border: 1.5px solid var(--border); color: var(--text); font-size: .88rem; font-weight: 600; text-decoration: none;
}
.d-chipbar a:hover { border-color: var(--primary); color: var(--accent); background: var(--primary-light); }

.d-prose { color: var(--text-mid); line-height: 1.8; font-size: 1.04rem; }
.d-prose > * + * { margin-top: 1.05rem; }
.d-prose h2, .d-prose h3 { color: var(--text); margin-top: 2.2rem; line-height: 1.2; }
.d-prose h2 { font-size: 1.6rem; }
.d-prose h3 { font-size: 1.3rem; }
.d-prose strong { color: var(--text); }
.d-prose a { color: var(--accent); text-underline-offset: 3px; }
.d-prose ul, .d-prose ol { padding-left: 1.2rem; }
.d-prose ul { list-style: disc; }
.d-prose ol { list-style: decimal; }
.d-prose li + li { margin-top: .45rem; }
.d-prose img { border-radius: var(--radius); }
.d-prose .needs-input, .d-callout.needs-input, .needs-input {
  background: var(--bg-alt); border-left: 6px solid var(--primary); border-radius: var(--radius-sm);
  padding: 1.1rem 1.3rem; color: var(--text-mid); line-height: 1.7;
}
.needs-input strong { color: var(--accent); }
.d-callout {
  margin-top: 1.8rem; padding: 1.2rem 1.4rem;
  background: var(--bg-alt); border-left: 6px solid var(--primary);
  border-radius: var(--radius-sm); color: var(--text-mid); line-height: 1.7; font-size: .96rem;
}
.d-callout strong { color: var(--accent); }
.d-callout a { color: var(--accent); }
.d-measure-auto { max-width: 900px; margin-left: auto; margin-right: auto; }

/* Checklist */
/* Checklists sit in a centred column (heading centred, items left-aligned). */
.d-checklist-wrap { max-width: 72ch; margin-left: auto; margin-right: auto; }
.d-checklist-wrap .d-callout { text-align: left; }
.d-checklist { display: flex; flex-direction: column; gap: .2rem; }
.d-checklist li { display: flex; gap: .8rem; align-items: flex-start; padding: .7rem 0; border-bottom: 1px dashed var(--border); color: var(--text); line-height: 1.55; font-size: 1.02rem; }
.d-check { color: var(--primary); flex: 0 0 auto; margin-top: 3px; }

/* FAQ — two-column accordion */
.d-faq { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 2.5rem; border-top: 2px solid var(--text); }
.d-faq-item { border-bottom: 1px solid var(--border); padding: 1rem 0; }
.d-faq-item summary {
  cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 1rem; align-items: center;
  font-size: 1.02rem; color: var(--text);
}
.d-faq-item summary::-webkit-details-marker { display: none; }
.d-faq-plus { position: relative; width: 22px; height: 22px; flex: 0 0 auto; border-radius: 50%; background: var(--primary-light); }
.d-faq-plus::before, .d-faq-plus::after { content: ""; position: absolute; left: 50%; top: 50%; width: 10px; height: 2px; background: var(--accent); transform: translate(-50%, -50%); }
.d-faq-plus::after { transform: translate(-50%, -50%) rotate(90deg); transition: transform .16s ease; }
.d-faq-item[open] .d-faq-plus::after { transform: translate(-50%, -50%) rotate(0); }
.d-faq-a { color: var(--text-mid); line-height: 1.72; font-size: .98rem; margin-top: .7rem; padding-right: 2rem; }

/* People */
.d-people + .d-people { margin-top: 2.6rem; }
.d-people-label { font-size: 1.35rem; margin-bottom: 1.1rem; }
/* Three across for staff, two across for doctors; a group with a single
   person (service pages) gets one portrait-width card rather than a third of
   the row. */
.d-people-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.2rem; }
.d-people-doctor .d-people-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.d-people-doctor .d-people-grid:has(> .d-person:nth-child(3)) { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.d-people-grid:has(> .d-person:only-child) { grid-template-columns: minmax(0, 440px); }
.d-person { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.4rem; display: flex; flex-direction: column; gap: .6rem; }
.d-person-head { margin-bottom: .4rem; }
/* Large portrait at the top of the card. Photos are mixed orientation, so a
   fixed 4:5 box with the crop anchored toward the face keeps every card the
   same height. No circle mask anywhere on D's people cards. */
.d-person-photo { aspect-ratio: 4 / 5; width: 100%; border-radius: var(--photo-radius, var(--radius)); overflow: hidden; margin-bottom: .9rem; background: var(--bg-alt); }
.d-person-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; display: block; }
.d-person-initials { aspect-ratio: 4 / 5; width: 100%; border-radius: var(--photo-radius, var(--radius)); margin-bottom: .9rem; display: flex; align-items: center; justify-content: center; background: var(--primary); color: var(--on-primary); font-size: clamp(2.4rem, 6vw, 4rem); letter-spacing: 0; }
.d-person h4 { font-size: 1.2rem; line-height: 1.2; }
.d-person-title { color: var(--accent); font-weight: 700; font-size: .74rem; letter-spacing: .08em; text-transform: uppercase; margin-top: .2rem; }
.d-person p { color: var(--text-mid); font-size: .95rem; line-height: 1.65; }

/* Contact / map / video / figure */
.d-contact { display: grid; grid-template-columns: minmax(280px, 400px) 1fr; gap: 1.4rem; align-items: start; }
.d-message { background: var(--bg-card); border: 1px solid var(--border); border-left: 4px solid var(--accent); border-radius: var(--radius); padding: 1.6rem; margin-bottom: 1.4rem; scroll-margin-top: 110px; }
.d-message h3 { font-size: 1.25rem; margin-bottom: 1rem; }
.d-message-actions { display: flex; flex-wrap: wrap; gap: .7rem; }
.d-message-note { margin-top: 1rem; font-size: .9rem; color: var(--text-muted); }
.d-contact-card { background: var(--bg-card); border: 1px solid var(--border); border-top: 4px solid var(--primary); border-radius: var(--radius); padding: 1.6rem; }
.d-contact-card h3 { font-size: 1.25rem; margin-bottom: 1.1rem; }
.d-contact-line { display: flex; gap: .75rem; align-items: flex-start; color: var(--text-mid); line-height: 1.6; margin-bottom: 1rem; }
.d-contact-line svg { color: var(--accent); flex-shrink: 0; margin-top: 3px; }
.d-contact-line a { color: var(--accent); font-weight: 800; text-decoration: none; }
.d-map { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; background: var(--bg-alt); }
.d-map iframe { display: block; width: 100%; height: 380px; border: 0; }
.d-video-title { margin-top: .6rem; font-weight: 700; font-size: .98rem; }
.d-embed { width: 100%; min-width: 0; overflow-x: auto; }
/* Pages that carry a vendor widget (scheduler, intake form) drop the sticky
   phone CTA bar: it sat on top of the widget's own fields and Continue button. */
body:has(.d-embed) .mobile-cta-bar { display: none !important; }
.d-embed iframe { max-width: 100%; }
.d-embed-note { margin-top: 1.4rem; font-size: 0.96rem; }
.d-videos { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.1rem; }
.d-video { display: block; }
/* Portrait clips (phone footage, Shorts) get a frame of their own shape, capped
   in width so a single one does not fill the reading column. */
.d-videos { align-items: start; }
.d-video--portrait { max-width: 340px; }
.d-video iframe, .d-video video, .d-video .vp-facade { display: block; width: 100%; aspect-ratio: var(--video-aspect, 16 / 9); height: auto; border: 0; border-radius: var(--radius); background: var(--d-dark); }
.d-figure { margin: 0 auto; max-width: 860px; border-radius: var(--photo-radius, var(--radius)); overflow: hidden; border: 1px solid var(--border); box-shadow: var(--shadow); }
.d-figure img { width: 100%; height: auto; display: block; }
/* Gallery: two figures side by side, fixed 4:3 crops anchored toward the faces. */
.d-gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.2rem; max-width: 1040px; margin-inline: auto; }
.d-gallery .d-figure { max-width: none; margin: 0; }
.d-gallery .d-figure img { aspect-ratio: 4 / 3; height: auto; object-fit: cover; object-position: 50% 30%; }
.d-gallery-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
/* Portrait figures (vertical phone footage): a 4:5 card instead of a 4:3
   letterbox, cropped toward the top third where the faces are. A lone
   portrait stays narrow rather than towering over the reading measure. */
.d-figure-portrait { max-width: 440px; }
.d-figure-portrait img, .d-gallery .d-figure-portrait img { aspect-ratio: 4 / 5; height: auto; object-fit: cover; object-position: 50% 35%; }
.d-gallery:has(.d-figure-portrait) { max-width: 1040px; }
.d-gallery-3:has(.d-figure-portrait) { max-width: 1100px; }
@media (max-width: 900px) {
  .d-gallery { grid-template-columns: 1fr; max-width: 860px; }
  /* Portrait sets keep two cards per row on tablets. */
  .d-gallery:has(.d-figure-portrait) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  /* On a phone a portrait set becomes a swipeable strip, one card mostly in view. */
  .d-gallery:has(.d-figure-portrait) {
    display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: .9rem;
    padding-bottom: .4rem; scrollbar-width: none; -webkit-overflow-scrolling: touch;
    margin: 0 calc(-1 * clamp(1rem, 4vw, 2.5rem)); padding-left: clamp(1rem, 4vw, 2.5rem); padding-right: clamp(1rem, 4vw, 2.5rem);
  }
  .d-gallery:has(.d-figure-portrait)::-webkit-scrollbar { display: none; }
  .d-gallery:has(.d-figure-portrait) .d-figure { flex: 0 0 76%; scroll-snap-align: start; }
  .d-figure-portrait { max-width: 360px; }
}
.d-figure figcaption { padding: .85rem 1.1rem; font-size: .88rem; color: var(--text-muted); background: var(--bg-alt); border-top: 1px solid var(--border); }

/* ── Reel: the clinic's own vertical footage beside a short pitch ────────── */
.d-reel { padding: clamp(2.5rem, 6vw, 4.5rem) 0; border-top: 1px solid var(--border); }
.d-reel-inner {
  background: var(--d-dark); color: #FFFFFF; border-radius: var(--radius);
  padding: clamp(1.8rem, 4vw, 3rem);
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(240px, 330px);
  gap: clamp(1.6rem, 4vw, 3.5rem); align-items: center;
}
.d-reel-title { font-size: clamp(1.8rem, 3.4vw, 2.7rem); max-width: 18ch; }
.d-reel-body { color: #E9DFD6; line-height: 1.65; margin-top: .9rem; max-width: 52ch; }
.d-reel-copy .d-ctas { margin-top: 1.4rem; }
.d-reel .d-btn-primary { background: var(--d-dark-fill); color: var(--d-dark); }
.d-reel .d-btn-primary:hover { background: var(--d-dark-accent); }
/* The phone-shaped frame keeps the 9:16 clip at its own ratio: it is never
   stretched into a 16:9 box, and it never grows past a phone's width. */
.d-reel-media {
  position: relative; width: 100%; max-width: 330px; aspect-ratio: 9 / 16; justify-self: end;
  border-radius: 18px; overflow: hidden; background: var(--d-dark-2);
  box-shadow: 0 18px 40px rgba(0, 0, 0, .35); border: 1px solid rgba(255, 255, 255, .12);
}
.d-reel-media video { width: 100%; height: 100%; object-fit: cover; display: block; }
.d-reel-note { color: #B9ADA3; font-size: .8rem; margin-top: 1rem; }
@media (max-width: 720px) {
  .d-reel-inner { grid-template-columns: 1fr; }
  .d-reel-media { justify-self: center; max-width: 280px; }
}

/* CTA banner (inner pages) */
.d-banner { padding: clamp(2.5rem, 6vw, 4.5rem) 0; background: var(--bg-alt); border-top: 1px solid var(--border); }
.d-banner-inner { background: var(--d-dark); color: #FFFFFF; border-radius: var(--radius); padding: clamp(1.8rem, 4vw, 3rem); display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(240px, .8fr); gap: 2rem; align-items: center; }
.d-banner-title { font-size: clamp(1.8rem, 3.4vw, 2.7rem); max-width: 20ch; }
.d-banner-body { color: #E9DFD6; line-height: 1.65; margin-top: .9rem; max-width: 56ch; }
.d-banner .d-btn-primary { background: var(--d-dark-fill); color: var(--d-dark); }
.d-banner .d-btn-primary:hover { background: var(--d-dark-accent); }

/* Blog */
/* Blog category chips (only rendered past 12 posts). Same pill language as
   the sticky .d-chipbar and .d-btn; the pressed state borrows the button fill. */
.d-cat-chips { display: flex; flex-wrap: wrap; gap: .5rem; max-width: 960px; margin-bottom: 1.4rem; }
.d-cat-chip {
  display: inline-block; white-space: nowrap; padding: .5rem .95rem; border-radius: 999px;
  border: 1.5px solid var(--border); background: var(--bg-card); color: var(--text);
  font-family: var(--font-body); font-size: .88rem; font-weight: 600; line-height: 1.2; cursor: pointer;
  transition: border-color .16s ease, color .16s ease, background .16s ease;
}
.d-cat-chip:hover { border-color: var(--primary); color: var(--accent); background: var(--primary-light); }
.d-cat-chip:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.d-cat-chip[aria-pressed="true"] { background: var(--cta, var(--primary)); border-color: var(--cta, var(--primary)); color: var(--on-cta, var(--on-primary)); }
.d-post-row[hidden] { display: none; }
.d-postlist { border-top: 2px solid var(--text); max-width: 960px; }
.d-post-row { display: grid; grid-template-columns: 84px 1fr; gap: 1.4rem; padding: 1.5rem 0; border-bottom: 1px solid var(--border); text-decoration: none; color: inherit; }
.d-post-row:hover .d-post-title { color: var(--accent); }
.d-post-date { display: flex; flex-direction: column; align-items: center; justify-content: center; align-self: start; width: 72px; height: 72px; border-radius: var(--radius-sm); background: var(--primary-light); color: var(--accent); }
.d-post-month { font-size: .72rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.d-post-day { font-size: 1.6rem; line-height: 1; }
.d-post-body { display: flex; flex-direction: column; gap: .35rem; min-width: 0; }
.d-post-cat { font-size: .75rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); }
.d-post-title { font-size: 1.3rem; line-height: 1.25; color: var(--text); transition: color .16s ease; }
.d-post-text { color: var(--text-mid); font-size: .96rem; line-height: 1.6; max-width: 70ch; }
.d-post-meta { color: var(--text-muted); font-size: .82rem; }
.d-article { display: grid; grid-template-columns: minmax(0, 72ch) minmax(240px, 300px); gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.d-article-aside { position: sticky; top: 5.5rem; }
.d-aside-card { background: var(--bg-alt); border: 1px solid var(--border); border-top: 4px solid var(--primary); border-radius: var(--radius); padding: 1.4rem; display: flex; flex-direction: column; gap: .8rem; }
.d-aside-card h3 { font-size: 1.2rem; line-height: 1.15; }
.d-aside-card p { color: var(--text-mid); font-size: .92rem; line-height: 1.6; }
.d-aside-card .d-btn { justify-content: center; }
.d-aside-call { display: inline-flex; align-items: center; justify-content: center; gap: .4rem; color: var(--accent); font-weight: 800; text-decoration: none; font-size: .95rem; }
.blog-post-hero-image { margin: 0 0 1.75rem; }
.blog-post-hero-image img, .d-prose figure img { width: 100%; height: auto; display: block; border-radius: var(--radius); }
.d-prose figure { margin: 1.5rem 0; }

/* Prose split (2026-11-08): copy left, photo right, photo sticks while the
   copy scrolls. Lists inside prose read as check lists, not bullets. */
.d-split { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(1.8rem, 5vw, 4.5rem); align-items: start; }
.d-split-copy { min-width: 0; }
.d-split-copy .d-prose > p:first-of-type { font-size: 1.12rem; color: var(--text); }
.d-split-photo { position: sticky; top: 6.5rem; margin: 0; border-radius: var(--photo-radius, var(--radius)); overflow: hidden; background: var(--primary-light); box-shadow: var(--shadow-md); }
.d-split-photo img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; object-position: 50% 35%; display: block; border-radius: 0; }
.d-split-figure figure { margin: 0; }
/* "Photo to come" tile: used instead of an unrelated stand-in photo. */
.d-photo-placeholder { aspect-ratio: 4 / 3; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .5rem; text-align: center; padding: 1.5rem;
  background: repeating-linear-gradient(135deg, var(--primary-light) 0 14px, color-mix(in srgb, var(--primary-light) 70%, #FFFFFF) 14px 28px); border: 1px dashed color-mix(in srgb, var(--primary) 45%, transparent); box-shadow: none; }
.d-page-hero-photo.d-photo-placeholder { aspect-ratio: 5 / 4; }
.d-photo-placeholder-kicker { font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.d-photo-placeholder-label { font-family: var(--font-heading); font-weight: 700; font-size: 1.1rem; color: var(--text); max-width: 22ch; line-height: 1.3; }
.d-split-figure figcaption { font-size: .85rem; color: var(--text-muted); padding: .7rem 1rem .9rem; text-align: left; background: var(--bg-card); }
.d-prose ul { list-style: none; padding-left: 0; }
.d-measure-center .d-prose ul { display: inline-block; text-align: left; }
/* Hours board (contact page): a card of day / time rows, today highlighted by the footer script. */
.d-hours-board { border-collapse: separate; border-spacing: 0; width: 100%; max-width: 480px; margin: .4rem auto 1.4rem; text-align: left; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); font-size: 1.02rem; }
.d-hours-board th, .d-hours-board td { padding: .85rem 1.25rem; border-bottom: 1px solid var(--border); }
.d-hours-board tr:last-child th, .d-hours-board tr:last-child td { border-bottom: 0; }
.d-hours-board th { font-weight: 700; color: var(--text); width: 45%; }
.d-hours-board td { color: var(--text-mid); text-align: right; font-variant-numeric: tabular-nums; }
.d-hours-board tr.is-muted td { color: var(--text-muted); font-style: italic; }
.d-hours-board tr.is-today th, .d-hours-board tr.is-today td { background: var(--primary-light); color: var(--text); }
.d-hours-board tr.is-today th::after { content: "Today"; display: inline-block; margin-left: .6rem; padding: .1rem .5rem; border-radius: 999px; background: var(--primary); color: var(--on-primary); font-size: .68rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; vertical-align: middle; }
@media (max-width: 560px) { .d-hours-board th, .d-hours-board td { padding: .7rem .9rem; font-size: .95rem; } }
.d-prose ul > li { position: relative; padding-left: 1.9rem; }
.d-prose ul > li + li { margin-top: .55rem; }
.d-prose ul > li::before { content: ""; position: absolute; left: 0; top: .45em; width: 1.1rem; height: 1.1rem; border-radius: 50%; background: var(--primary-light); }
.d-prose ul > li::after { content: ""; position: absolute; left: .34rem; top: calc(.45em + .22rem); width: .4rem; height: .62rem; border-right: 2px solid var(--primary); border-bottom: 2px solid var(--primary); transform: rotate(45deg); }
@media (max-width: 860px) {
  .d-split { grid-template-columns: 1fr; gap: 1.4rem; }
  .d-split-photo { position: static; max-width: 560px; }
  .d-split-photo img { aspect-ratio: 16 / 10; }
}
.d-prose figcaption { font-size: .85rem; color: var(--text-muted); margin-top: .5rem; text-align: center; }
.blog-thumb-image { padding: 0; overflow: hidden; }
.blog-thumb-image img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ── Footer (FooterD — D's own markup) ──────────────────────────────────── */
.d-footer { background: var(--bg-alt); border-top: 3px solid var(--primary); padding-top: clamp(2.6rem, 6vw, 4.2rem); }
.d-footer-grid { display: grid; grid-template-columns: 4fr 2fr 2fr 4fr; gap: clamp(1.6rem, 4vw, 3.2rem); padding-bottom: clamp(2rem, 5vw, 3.2rem); }
.d-footer-logo img { height: 44px; width: auto; }
.d-footer-tagline { font-size: 1.15rem; margin-top: 1.1rem; color: var(--text); }
.d-footer-blurb { color: var(--text-mid); font-size: .95rem; line-height: 1.6; margin-top: .5rem; max-width: 32ch; }
.d-footer-social { display: flex; gap: .6rem; margin-top: 1rem; }
.d-footer-social a { width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid var(--border); background: var(--bg); color: var(--text-mid); display: inline-flex; align-items: center; justify-content: center; }
.d-footer-social a:hover { color: var(--accent); border-color: var(--primary); }
.d-footer-cta { margin-top: 1.3rem; }
.d-footer-h { display: flex; align-items: center; gap: .5rem; font-family: var(--font-heading); font-weight: 700; text-transform: uppercase; font-size: .8rem; letter-spacing: .1em; color: var(--text); margin-bottom: .8rem; }
.d-footer-h::before { content: ""; width: 16px; height: 3px; background: var(--primary); border-radius: 2px; }
.d-footer-h-sub { margin-top: 1.4rem; }
.d-footer-col ul { display: flex; flex-direction: column; }
.d-footer-col li a { display: inline-block; padding: .28rem 0; line-height: 1.4; color: var(--text-mid); font-size: .95rem; text-decoration: none; }
.d-footer-col li a:hover { color: var(--accent); }
.d-footer-address { font-style: normal; line-height: 1.55; font-size: .95rem; }
.d-footer-address a { color: var(--text-mid); text-decoration: none; display: inline-block; padding: .2rem 0; }
.d-footer-address a:hover { color: var(--accent); }
.d-footer-phone { display: flex; flex-wrap: wrap; gap: .4rem 1.1rem; margin-top: .6rem; }
.d-footer-phone a { display: inline-flex; align-items: center; gap: .35rem; min-height: 44px; color: var(--accent); font-weight: 800; font-size: .95rem; text-decoration: none; }
.d-footer-phone a:hover { text-decoration: underline; text-underline-offset: 4px; }
.d-footer-hours { border-collapse: collapse; width: 100%; max-width: 340px; font-size: .9rem; }
.d-footer-hours th, .d-footer-hours td { padding: .32rem 0; border-bottom: 1px dashed var(--border); vertical-align: top; text-align: left; }
.d-footer-hours th { font-weight: 700; color: var(--text); width: 6.5em; padding-right: .8rem; }
.d-footer-hours td { color: var(--text-mid); }
.d-footer-hours td span { display: block; white-space: nowrap; }
.d-footer-hours tr.is-muted td { color: var(--text-muted); font-style: italic; }
.d-footer-hours tr.is-today th { color: var(--accent); }
.d-footer-hours tr.is-today th::after { content: " · today"; font-weight: 400; font-size: .78em; }
.d-footer-bottom { border-top: 1px solid var(--border); padding: 1rem 0 1.4rem; }
.d-footer-bottom-inner { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }
.d-footer-bottom p { color: var(--text-mid); font-size: .84rem; }
.d-footer-legal { display: flex; gap: .2rem; align-items: center; }
.d-footer-legal li + li::before { content: "·"; color: var(--text-muted); margin: 0 .5rem; }
.d-footer-legal a { color: var(--text-mid); font-size: .84rem; text-decoration: none; display: inline-block; padding: .55rem 0; }
.d-footer-legal a:hover { color: var(--accent); }
.d-footer-disclaimer { margin-top: .4rem; max-width: 100ch; font-size: .78rem !important; color: var(--text-muted) !important; line-height: 1.55; }
.mobile-cta-bar { display: none; }

/* ── Responsive ─────────────────────────────────────────────────────────── */
@media (max-width: 1080px) {
  .d-wall-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .d-hero-row { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); }
  /* Below the three-column hero the tiles sit under it. A wrapping flex row
     left the fifth tile alone on a full-width line (4 + 1 at tablet, 2 + 2 + 1
     on phones). Grid instead: the dark pill takes its own row, the stat tiles
     share the next one evenly (4 across, 2 x 2 on phones). */
  .d-tiles { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
  .d-tiles .d-tile { min-width: 0; }
  .d-tiles .d-tile-pill { grid-column: 1 / -1; justify-content: center; }
}
@media (max-width: 980px) {
  .d-footer-grid { grid-template-columns: 1fr 1fr; }
  .d-closing-grid { grid-template-columns: 1fr; }
  .d-proof { grid-template-columns: 1fr; }
  .d-stamps { flex-direction: row; justify-content: flex-start; }
  .d-stamp { width: 170px; }
  .d-article { grid-template-columns: 1fr; }
  .d-article-aside { position: static; }
  .d-banner-inner { grid-template-columns: 1fr; }
  .d-ctas-col { flex-direction: row; }
}
@media (max-width: 860px) {
  .main-nav { display: none; }
  .main-nav.open { display: block; position: absolute; left: 0; right: 0; top: 100%; background: var(--bg); border-bottom: 1px solid var(--border); padding: .6rem 1rem 1rem; box-shadow: var(--shadow-md); }
  .main-nav.open ul { flex-direction: column; gap: 0; }
  .main-nav.open a { display: block; padding: .8rem 0; border-bottom: 1px solid var(--border); }
  .header-inner { position: relative; }
  .mobile-menu-toggle { display: flex; margin-left: auto; }
  .header-cta { display: none; }
  .locale-switch { margin-left: auto; }
  .d-utility-links a span { display: none; }
  .d-contact { grid-template-columns: 1fr; }
  .d-faq { grid-template-columns: 1fr; }
  .d-rail { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: .9rem; padding-bottom: .6rem; -webkit-overflow-scrolling: touch; }
  .d-rail-panel { flex: 0 0 min(78vw, 320px); scroll-snap-align: start; }
  .d-rail-wrap, .d-rail-wrap:has(> :nth-child(3):last-child), .d-rail-wrap:has(> :nth-child(6):last-child) { display: grid; overflow: visible; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
  .d-rail-wrap:has(> :nth-child(2):last-child), .d-rail-wrap:has(> :nth-child(4):last-child) { display: grid; overflow: visible; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .d-rail-wrap .d-rail-panel { flex: initial; }
  .d-timeline { --tl-dot: 36px; }
  .d-ticket-row { column-gap: .85rem; padding-bottom: .9rem; }
  .d-ticket-dot { font-size: .92rem; margin-top: .5rem; }
  .d-ticket { padding: 1.05rem 1.1rem 1.15rem; }
  .d-ticket h3 { font-size: 1.1rem; }
  .mobile-cta-bar {
    display: flex; gap: .6rem; position: fixed; bottom: 0; left: 0; right: 0; z-index: 95;
    background: rgba(255,255,255,.96); border-top: 1px solid var(--border); padding: .7rem;
    transform: translateY(110%); transition: transform .2s ease;
  }
  .mobile-cta-bar.visible { transform: translateY(0); }
  .mobile-cta-bar .btn {
    flex: 1; justify-content: center; text-align: center;
    padding: .85rem 1rem; border-radius: 999px;
    font-size: .9rem; font-weight: 700; text-decoration: none;
    display: inline-flex; align-items: center; gap: .4rem;
  }
  .mobile-cta-bar .btn-primary { background: var(--cta, var(--primary)); color: var(--on-cta, var(--on-primary)); }
  .mobile-cta-bar .btn-secondary { border: 2px solid var(--text); color: var(--text); }
  body { padding-bottom: 4.4rem; }
}
@media (max-width: 720px) {
  .d-wall-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .7rem; }
  .d-photo-tile { padding: .8rem; }
  .d-photo-tile-title { font-size: 1rem; }
  .d-photo-tile-body { display: none; }
  .d-hero-row { grid-template-columns: 1fr; }
  .d-hero-media { aspect-ratio: 3 / 2; }
  .d-utility-inner { justify-content: center; }
  .d-today { display: none; }
  .d-statement { grid-template-columns: 56px 1fr; }
  .d-people-doctor .d-people-grid, .d-people-grid, .d-people-grid:has(> .d-person:only-child), .d-people-doctor .d-people-grid:has(> .d-person:nth-child(3)) { grid-template-columns: 1fr; }
  /* Phones: compact row card. Small square portrait beside name + title, bio below. */
  .d-person { display: grid; grid-template-columns: 92px minmax(0, 1fr); column-gap: 1rem; row-gap: .5rem; align-items: center; padding: 1.1rem; }
  .d-person-photo, .d-person-initials { aspect-ratio: 1 / 1; width: 92px; margin: 0; border-radius: var(--radius-sm, 12px); }
  .d-person-initials { font-size: 1.8rem; }
  .d-person-photo img { object-position: 50% 30%; }
  .d-person-head { margin: 0; min-width: 0; }
  .d-person h4 { font-size: 1.1rem; }
  /* Everything after the photo + name row spans the card. Without this the
     tags and the bio link fall into the 92px photo column and wrap per word. */
  .d-person > p, .d-person > .d-tags, .d-person > .d-link { grid-column: 1 / -1; margin: 0; }
  .d-person > .d-tags { margin-top: .2rem; }
  .d-post-row { grid-template-columns: 64px 1fr; gap: 1rem; }
  .d-post-date { width: 60px; height: 60px; }
}
@media (max-width: 560px) {
  .d-rail-photo { aspect-ratio: 16 / 10; }
  .d-rail-logo { aspect-ratio: 3 / 1; }
  .d-rail-wrap, .d-rail-wrap:has(> :nth-child(2):last-child), .d-rail-wrap:has(> :nth-child(3):last-child), .d-rail-wrap:has(> :nth-child(4):last-child), .d-rail-wrap:has(> :nth-child(6):last-child) { grid-template-columns: 1fr; }
  .d-footer-grid { grid-template-columns: 1fr; }
  .d-footer-bottom-inner { justify-content: center; text-align: center; }
  .d-footer-col li a { min-height: 44px; padding: .4rem 0; }
  .d-ctas { flex-direction: column; align-items: stretch; }
  .d-ctas .d-btn { justify-content: center; }
  /* Inner-page hero on phones: the sticky bottom bar already carries Call,
     so the hero's auto-added outline call button is hidden to keep the hero short. */
  .d-page-hero .d-ctas .d-btn-outline { display: none; }
  .d-stamps { justify-content: center; }
}
