/* =========================================================================
   ESJ Aesthetics — Theme
   Design tokens + base + reusable components. Portable, framework-agnostic.
   Fonts are close Google Fonts matches to the brand mockup. They are loaded
   by a <link> in layouts/base.njk, NOT by an @import here: an @import is only
   discovered after this file has been fetched and parsed, which serialises the
   font request behind it and delays first paint. Keep the two in sync — the
   font stacks in §1 assume Cormorant Garamond + Montserrat are on their way.
   ========================================================================= */

/* =========================================================================
   1. TOKENS
   ========================================================================= */
:root {
  --color-navy:        #101922;
  --color-navy-deep:   #0C131B;
  --color-navy-800:    #16202B;
  --color-navy-700:    #1E2A36;

  --color-gold:        #BE9247;
  --color-gold-bright: #D2A24E;
  --color-gold-deep:   #9C7638;

  --color-blush:       #DCACA0;
  --color-blush-soft:  #F4E3DD;

  --color-cream:       #F9F0EE;
  --color-cream-2:     #FBF6F3;
  /* Warm sand — sampled from the flat paper background of the shadow-free
     oral-maxillofacial-surgery.jpg so that photo blends into the band instead
     of reading as a pasted tile. Keep this exactly equal to the image's
     background: both fields are flat, so any drift shows as a hard rectangle.
     If that artwork is ever re-exported, re-sample and update this value. */
  --color-sand:        #F6F1EB;
  /* Cool mist — the flat studio backdrop of
     facial-structure-analysis-profile.webp. That artwork bleeds off the bottom
     of its band, so the band must be this colour or the bleed reads as a tile
     sitting on a different field. Same rule as --color-sand: if the artwork is
     re-exported, re-sample. (The file drifts #EBE8E9-#F6F3F2 across its field;
     this is the mid-value that hides the seam at the left and bottom edges.) */
  --color-mist:        #EEEDED;
  /* The navy the practice composited its before/after cards onto. Not our
     --color-navy: it is the client's own asset and we display those files
     unedited, so this matches THEM. Only used behind those images, to guard
     against a subpixel seam where the two halves of a pair meet. */
  --color-ba-navy:     #303C52;
  --color-white:       #FFFFFF;

  --color-ink:         #1C2530;
  --color-body:        #4A545F;
  --color-muted:       #7A828C;
  --color-on-dark:     #FFFFFF;
  --color-on-dark-mut: #B9C0C8;

  --line-on-light:     rgba(16, 25, 34, .12);
  --line-on-dark:      rgba(255, 255, 255, .14);

  --font-serif: 'Cormorant Garamond', 'Cormorant', Georgia, 'Times New Roman', serif;
  --font-sans:  'Montserrat', system-ui, -apple-system, 'Segoe UI', Helvetica, Arial, sans-serif;

  --fs-display: clamp(3rem, 1.9rem + 5vw, 5.25rem);
  --fs-h1:      clamp(2.5rem, 1.7rem + 3.4vw, 3.9rem);
  --fs-h2:      clamp(2.2rem, 1.6rem + 2.6vw, 3.4rem);
  --fs-h3:      clamp(1.5rem, 1.25rem + 1.2vw, 2rem);
  --fs-section: clamp(2.4rem, 1.7rem + 3.2vw, 4.2rem);
  --fs-lead:    clamp(1.05rem, 1rem + 0.3vw, 1.2rem);
  --fs-body:    1rem;
  --fs-small:   0.875rem;
  --fs-eyebrow: 0.78rem;

  --lh-tight:   1.08;
  --lh-heading: 1.15;
  --lh-body:    1.7;

  --tracking-eyebrow: 0.22em;
  --tracking-caps:    0.14em;
  --tracking-btn:     0.16em;

  --space-1: 0.25rem;  --space-2: 0.5rem;  --space-3: 0.75rem;
  --space-4: 1rem;     --space-5: 1.5rem;  --space-6: 2rem;
  --space-7: 3rem;     --space-8: 4rem;    --space-9: 6rem;
  --section-y: clamp(3.5rem, 2rem + 5vw, 6rem);

  --container:      1200px;
  --container-wide: 1360px;
  /* Full-bleed gutter: scales with viewport so wide bands run near edge-to-edge */
  --gutter: clamp(1.25rem, 4vw, 6rem);

  --radius-sm: 2px;  --radius-md: 4px;  --radius-lg: 8px;

  --shadow-card: 0 18px 40px -24px rgba(16, 25, 34, .45);
  --shadow-soft: 0 10px 30px -20px rgba(16, 25, 34, .35);

  --ease: cubic-bezier(.2, .6, .2, 1);
  --dur: 0.25s;
}

/* =========================================================================
   2. BASE
   ========================================================================= */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--color-body);
  background: var(--color-white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
h1, h2, h3, h4 {
  font-family: var(--font-serif);
  color: var(--color-ink);
  font-weight: 500;
  line-height: var(--lh-heading);
  margin: 0 0 var(--space-4);
  letter-spacing: 0.005em;
}
h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }
p { margin: 0 0 var(--space-4); }
a { color: inherit; text-decoration: none; transition: color var(--dur) var(--ease); }
a:hover { color: var(--color-gold); }
img { max-width: 100%; display: block; }
::selection { background: var(--color-gold); color: #fff; }

/* =========================================================================
   3. LAYOUT HELPERS
   ========================================================================= */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
/* Wide bands run full width (only the viewport gutter insets them) */
.container--wide { max-width: none; }
.section { padding-block: var(--section-y); }
/* Condensed band. The interior mockup runs much tighter vertically than the
   homepage's generous rhythm — roughly half the padding. */
.section--tight { padding-block: clamp(2rem, 1.2rem + 2.4vw, 3.25rem); }
.section--tight .section-head { margin-bottom: var(--space-4); }

/* For bands whose artwork bleeds off the bottom edge (.split-rejuv). The image
   is the band's bottom padding — any left under it chops the subject off in
   mid-air instead of letting it run into the next section. */
.section--flush-bottom { padding-bottom: 0; }

.bg-navy  { background: var(--color-navy); color: var(--color-on-dark); }
.bg-navy-gradient { background: radial-gradient(120% 140% at 70% 20%, #16212D 0%, var(--color-navy-deep) 55%); color: var(--color-on-dark); }
.bg-cream { background: var(--color-cream); }
.bg-sand  { background: var(--color-sand); }
.bg-mist  { background: var(--color-mist); }
.bg-blush { background: var(--color-blush-soft); }
.bg-rose  { background: var(--color-blush); color: var(--color-navy); }
.bg-white { background: var(--color-white); }
.bg-navy h1, .bg-navy h2, .bg-navy h3,
.bg-navy-gradient h1, .bg-navy-gradient h2, .bg-navy-gradient h3 { color: var(--color-on-dark); }

/* =========================================================================
   4. TYPOGRAPHY COMPONENTS
   ========================================================================= */
.eyebrow {
  font-family: var(--font-sans); font-size: var(--fs-eyebrow); font-weight: 600;
  letter-spacing: var(--tracking-eyebrow); text-transform: uppercase;
  color: var(--color-gold); margin: 0 0 var(--space-4); display: inline-block;
}
.display {
  font-family: var(--font-serif); font-size: var(--fs-display); font-weight: 500;
  line-height: var(--lh-tight); letter-spacing: 0.005em; margin: 0 0 var(--space-5);
}
.lead { font-size: var(--fs-lead); color: var(--color-body); max-width: 46ch; }
.bg-navy .lead, .bg-navy-gradient .lead { color: var(--color-on-dark-mut); }

.divider { width: 64px; height: 2px; border: 0; background: var(--color-gold); margin: var(--space-5) 0; }
.divider--center { margin-inline: auto; }

/* Large left-aligned band headline (Surgical Artistry… / Enhance. Maintain.…) */
.h-section { font-family: var(--font-serif); font-weight: 500; line-height: 1.1; letter-spacing: .005em; font-size: var(--fs-section); color: var(--color-ink); margin: 0 0 var(--space-4); }

.section-head { text-align: center; max-width: 640px; margin-inline: auto; margin-bottom: var(--space-7); }
.section-head .divider { margin-inline: auto; }

/* =========================================================================
   5. BUTTONS
   ========================================================================= */
.btn {
  --btn-pad-y: 0.95rem; --btn-pad-x: 1.75rem;
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6em;
  font-family: var(--font-sans); font-size: var(--fs-small); font-weight: 600;
  letter-spacing: var(--tracking-btn); text-transform: uppercase;
  padding: var(--btn-pad-y) var(--btn-pad-x);
  border: 1px solid transparent; border-radius: var(--radius-sm); cursor: pointer;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease),
              border-color var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.btn:hover { transform: translateY(-1px); }
.btn--gold { background: var(--color-gold); color: #fff; border-color: var(--color-gold); }
.btn--gold:hover { background: var(--color-gold-deep); border-color: var(--color-gold-deep); color: #fff; }
.btn--outline { background: transparent; color: #fff; border-color: rgba(255,255,255,.5); }
.btn--outline:hover { background: #fff; color: var(--color-navy); border-color: #fff; }
.btn--outline-dark { background: transparent; color: var(--color-ink); border-color: var(--color-ink); }
.btn--outline-dark:hover { background: var(--color-ink); color: #fff; }
.btn--navy { background: var(--color-navy); color: #fff; border-color: var(--color-navy); }
.btn--navy:hover { background: #000; border-color: #000; }
.btn--sm { --btn-pad-y: 0.7rem; --btn-pad-x: 1.2rem; font-size: 0.75rem; }
.btn--block { display: flex; width: 100%; }

/* =========================================================================
   6. HEADER / NAV
   ========================================================================= */
.site-header {
  position: absolute; inset: 0 0 auto 0; z-index: 30;
}
.site-header__inner {
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-5);
  padding-block: var(--space-5);
}
.brand { font-family: var(--font-serif); color: var(--color-gold-bright); line-height: 1; }
.brand strong {
  display: block; font-size: 1.5rem; font-weight: 600; letter-spacing: 0.04em;
  /* Metallic gold sheen on the ESJ letters, matching the mockup */
  background: linear-gradient(160deg, #E7C983 0%, #D2A24E 38%, #B07E2E 62%, #E7C983 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.brand span {
  display: block; font-family: var(--font-sans); font-size: 0.58rem; font-weight: 500;
  letter-spacing: 0.32em; color: var(--color-on-dark); text-transform: uppercase; margin-top: 2px;
}

/* Header logo: larger, and the ESJ lettermark centered over AESTHETICS.
   text-align centers the stacked lines; padding-left on the tracked word
   offsets its trailing letter-space so it centers true under ESJ. */
.site-header .brand { text-align: center; }
.site-header .brand strong { font-size: clamp(2.4rem, 2rem + 1.6vw, 3.1rem); }
.site-header .brand span {
  font-size: 0.82rem; letter-spacing: 0.34em; padding-left: 0.34em; margin-top: 5px;
}

.main-nav { display: flex; align-items: center; gap: clamp(1rem, 2vw, 2rem); }
/* padding-block gives the top-level targets a 27px height. At 19px they failed
   WCAG 2.5.8 between 961px and about 1100px, where the horizontal gap between
   items narrows to 19-22px and the spacing exception no longer covers them.
   It also supplies the 4px the current-page underline needs to clear the text,
   which is why the aria-current rule sets no padding of its own. */
.main-nav a {
  font-size: 0.75rem; font-weight: 500; letter-spacing: var(--tracking-caps);
  text-transform: uppercase; color: var(--color-on-dark);
}
.main-nav > a { padding-block: 4px; }
.main-nav a:hover { color: var(--color-gold-bright); }

/* --- Nav dropdown (disclosure) --------------------------------------------
   Click and keyboard only: there is deliberately no :hover rule that opens the
   panel. Hover triggers cannot be operated from a keyboard, misfire on touch,
   and fight with click — and dropdown navs are the most common accessibility
   failure on medical sites. See docs/NOTES.md.

   Only the Face group has a panel. The other groups stay flat items until their
   pages exist. */
.nav-item { position: relative; display: flex; align-items: center; }
.nav-item__btn {
  display: inline-flex; align-items: center; gap: 0.45em;
  background: none; border: 0; cursor: pointer;
  /* padding and line-height match .main-nav > a exactly, so the button is the
     same 28px target as its neighbours rather than a shorter one. A bare
     <button> inherits neither. */
  padding: 4px 0; line-height: 1.7;
  font-family: inherit; font-size: 0.75rem; font-weight: 500;
  letter-spacing: var(--tracking-caps); text-transform: uppercase;
  color: var(--color-on-dark);
}
.nav-item__btn:hover { color: var(--color-gold-bright); }
/* Same underline the current-section links get, so the button reads as part of
   the same set rather than as a different kind of control. */
.nav-item__btn.is-current { box-shadow: inset 0 -2px 0 var(--color-gold); }
.nav-item__chevron { transition: transform var(--dur) var(--ease); }
.nav-item__btn[aria-expanded="true"] .nav-item__chevron { transform: rotate(180deg); }

.nav-panel[hidden] { display: none; }
.nav-panel {
  position: absolute; top: calc(100% + var(--space-4)); left: 50%; transform: translateX(-50%);
  min-width: 16rem; padding: var(--space-4) 0;
  background: var(--color-navy-800); border: 1px solid var(--line-on-dark);
  border-radius: var(--radius-sm); box-shadow: 0 18px 40px rgba(10, 15, 20, .35);
  z-index: 40;
}
.nav-panel ul { list-style: none; margin: 0; padding: 0; }
.nav-panel a {
  display: block; padding: 0.6rem var(--space-5);
  font-size: 0.72rem; letter-spacing: var(--tracking-caps); text-transform: uppercase;
  color: var(--color-on-dark-mut); white-space: nowrap;
}
.nav-panel a:hover { color: var(--color-gold-bright); background: var(--color-navy-700); }
.nav-panel a[aria-current="page"] { color: var(--color-on-dark); box-shadow: inset 2px 0 0 var(--color-gold); }
/* The hub link. Ruled off because it is the section overview rather than another
   sibling procedure. */
.nav-panel__overview { margin-top: var(--space-3); padding-top: var(--space-3); border-top: 1px solid var(--line-on-dark); }
.nav-panel__overview a { font-style: italic; text-transform: none; letter-spacing: 0.04em; font-size: 0.78rem; }

/* Mobile nav toggle (hidden on desktop) */
.nav-toggle {
  display: none; background: none; border: 0; cursor: pointer; padding: .5rem;
  color: var(--color-on-dark);
}
.nav-toggle svg { display: block; }

/* =========================================================================
   7. HERO
   ========================================================================= */
.hero { position: relative; color: var(--color-on-dark); overflow: hidden; }
.hero__bg { position: absolute; inset: 0; z-index: -2; object-fit: cover; width: 100%; height: 100%; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  /* Light left-to-right scrim: darkens only behind the text, clears over the subject on the right */
  background: linear-gradient(90deg, rgba(12,19,27,.70) 0%, rgba(12,19,27,.45) 30%, rgba(12,19,27,.12) 52%, rgba(12,19,27,0) 70%);
}
.hero__inner { padding-block: clamp(9rem, 6rem + 12vw, 14rem) var(--section-y); max-width: 640px; }
/* Text sits on the dark image — force light colors (defaults are for light bg) */
.hero h1, .hero h2, .hero h3, .hero .display { color: var(--color-on-dark); }
.hero .lead { color: var(--color-on-dark-mut); }
/* subtle shadow so type stays legible even where the scrim is light */
.hero__inner .display, .hero__inner .lead,
.hero__inner .hero__subline { text-shadow: 0 1px 24px rgba(8, 12, 18, .45); }

/* Hero sub-line (dual-training) + credentials row */
.hero__subline {
  font-family: var(--font-sans); font-weight: 600; font-size: var(--fs-small);
  letter-spacing: .04em; color: var(--color-on-dark); margin: 0 0 var(--space-3);
}
.hero__creds {
  font-family: var(--font-sans); font-size: var(--fs-small);
  letter-spacing: .04em; color: var(--color-on-dark-mut); margin: 0;
}

/* =========================================================================
   8. PROCEDURE / IMAGE CARDS
   ========================================================================= */
.card-grid { display: grid; gap: clamp(1.5rem, 1rem + 1.5vw, 2.5rem); grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
/* Six-card variant, used by the facial surgery hub. auto-fit gives four across
   at container--wide, which leaves six cards as a row of four and an orphan row
   of two. Three across fills two even rows instead. Explicit columns, because
   auto-fit cannot be told how many to aim for. */
.card-grid--three { grid-template-columns: repeat(3, 1fr); }
/* A plain photograph inside .card-grid — no overlay, no title, no link. Used
   on /our-office/, where the images are the content rather than a route to
   somewhere. Same 1:1 tile as .proc-card so the row lines up. */
.office-shot {
  width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover; display: block;
  border-radius: var(--radius-sm);
  /* align-self: start, or the grid's default stretch sizes the row from the
     image's intrinsic height and the aspect-ratio never gets to apply. */
  align-self: start;
}
@media (max-width: 900px) { .card-grid--three { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .card-grid--three { grid-template-columns: 1fr; } }
.proc-card {
  position: relative; display: block; aspect-ratio: 1 / 1; overflow: hidden;
  border-radius: var(--radius-sm); color: #fff; isolation: isolate;
  background: var(--color-navy-800); /* fallback tile before/without a photo */
}
.proc-card__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 0.6s var(--ease); }
.proc-card::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(to top, rgba(10,15,20,.9) 0%, rgba(10,15,20,.35) 45%, rgba(10,15,20,.05) 100%);
}
.proc-card:hover .proc-card__img { transform: scale(1.05); }
.proc-card__body { position: absolute; inset: auto 0 0 0; padding: var(--space-5); }
.proc-card__title { font-family: var(--font-serif); font-size: var(--fs-h3); color: #fff; margin: 0 0 var(--space-2); }
.proc-card__title::after { content: ""; display: block; width: 40px; height: 2px; background: var(--color-gold); margin-top: var(--space-3); }
.proc-card__text { font-size: var(--fs-small); color: rgba(255,255,255,.85); margin: var(--space-3) 0 0; }

/* placeholder tint until real photography is dropped in */
.ph { background: linear-gradient(135deg, #2a3542, #4a5663); display: grid; place-items: center; color: rgba(255,255,255,.4); font-size: .7rem; letter-spacing: .1em; }

/* =========================================================================
   9. ICON FEATURE ROW
   ========================================================================= */
.icon-row { display: grid; gap: var(--space-6); grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); text-align: center; }
.icon-row__item { display: flex; flex-direction: column; align-items: center; gap: var(--space-3); }
.icon-row__mark { color: var(--color-gold); font-size: 1.6rem; }
.icon-row__mark svg { width: 52px; height: 52px; display: block; }
.icon-row__label { font-size: 0.8rem; font-weight: 600; letter-spacing: var(--tracking-caps); text-transform: uppercase; color: var(--color-ink); line-height: 1.35; }

/* Skin & Facial Aesthetics band: intro on the left, icon row on the right */
.skin-split { display: grid; grid-template-columns: minmax(260px, 1fr) 2fr; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: stretch; }
/* Icons fill the full right half; items stretch so the dividers run full height */
.aesthetics-icons { display: grid; grid-template-columns: repeat(5, 1fr); align-items: stretch; text-align: center; }
.aesthetics-icons .icon-row__item { display: flex; align-items: center; justify-content: center; padding: var(--space-5) var(--space-3); border-left: 1px solid rgba(16, 25, 34, .14); }
.aesthetics-icons .icon-row__item a { display: flex; flex-direction: column; align-items: center; gap: var(--space-4); }
.aesthetics-icons .icon-row__mark { transition: transform var(--dur) var(--ease); }
.aesthetics-icons .icon-row__item:hover .icon-row__mark { transform: translateY(-3px); }
/* 900px, matching the nav drawer rather than the 860px used elsewhere. Above
   this the five icons sit in the narrow right half of .skin-split, and a 1fr
   track cannot shrink below its content's min-content width — "Microneedling"
   is one unbreakable word, so between 861px and ~920px it forced its track wide
   enough to push the whole page sideways. Stacking the band earlier gives the
   icons the full width instead. Don't lower this without re-checking the sweep. */
@media (max-width: 1000px) {
  .skin-split { grid-template-columns: 1fr; align-items: start; }
  .aesthetics-icons { grid-template-columns: repeat(3, 1fr); }
  .aesthetics-icons .icon-row__item { border-left: 0; }
}
@media (max-width: 480px) { .aesthetics-icons { grid-template-columns: 1fr 1fr; } }

/* Body Contouring band: intro on the left, two overlay cards on the right */
.body-split { display: grid; grid-template-columns: minmax(280px, 1fr) 1.85fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.body-cards { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1rem, 2vw, 1.5rem); }
.body-card {
  position: relative; display: block; aspect-ratio: 3 / 2; overflow: hidden;
  border-radius: var(--radius-sm); color: var(--color-navy); isolation: isolate; background: var(--color-mist);
}
.body-card__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center right; z-index: -2; }
/* Light scrim on the left keeps the dark title/text readable over the photo */
.body-card::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgba(238,237,235,.96) 0%, rgba(238,237,235,.72) 26%, rgba(238,237,235,.18) 48%, transparent 62%);
}
.body-card__body { position: absolute; inset: 0 auto 0 0; display: flex; flex-direction: column; justify-content: center; gap: var(--space-3); padding: clamp(1rem, 2.5vw, 2rem); max-width: 60%; }
.body-card__title { font-family: var(--font-serif); font-size: var(--fs-h3); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; line-height: 1.08; color: var(--color-navy); }
.body-card__text { font-size: var(--fs-small); color: var(--color-body); margin: 0; }
.body-card__arrow { display: inline-block; font-size: 1.2rem; color: var(--color-navy); transition: transform var(--dur) var(--ease); }
.body-card:hover .body-card__arrow { transform: translateX(5px); }
@media (max-width: 860px) {
  .body-split { grid-template-columns: 1fr; }
  .body-cards { grid-template-columns: 1fr; }
  .body-card { aspect-ratio: 5 / 2; }
}
/* Small screens widen the text box to 66%, but the base scrim is already fully
   transparent at 62% — so the tail of every line used to sit on bare photo and
   lose contrast against skin. Carry the scrim past the text box before fading. */
@media (max-width: 520px) {
  .body-card { aspect-ratio: 3 / 2; }
  .body-card__body { max-width: 66%; }
  .body-card::before {
    background: linear-gradient(90deg, rgba(238,237,235,.97) 0%, rgba(238,237,235,.92) 42%, rgba(238,237,235,.66) 68%, rgba(238,237,235,.2) 84%, transparent 94%);
  }
}

/* Split CTA band: navy "Proudly Serving" | rose "Your Private Consultation" */
.cta-split { display: grid; grid-template-columns: 1fr 1fr; }
.cta-split__half { display: flex; align-items: center; padding: clamp(2.5rem, 1.8rem + 3vw, 4rem) clamp(1.5rem, 4vw, 4.5rem); }
.cta-split__inner { max-width: 540px; width: 100%; }
.cta-split__serving { background: var(--color-navy); color: var(--color-on-dark); justify-content: flex-end; }
.cta-split__serving .cta-split__inner { margin-left: auto; }
.cta-split__next { background: var(--color-blush); color: var(--color-navy); }
.cta-split h2 { font-size: clamp(1.5rem, 1.15rem + 1.5vw, 2.15rem); line-height: 1.15; margin: 0 0 var(--space-4); }
.cta-split__serving h2 { color: var(--color-on-dark); }
.cta-split__serving .eyebrow { color: var(--color-gold); }
.cta-split__serving p { font-size: var(--fs-small); color: var(--color-on-dark-mut); margin: var(--space-3) 0 0; max-width: 46ch; }
.cta-split__next .eyebrow { color: var(--color-navy); }
.cta-split__next h2 { color: var(--color-navy); }
.cta-pin { color: var(--color-gold); display: block; margin-bottom: var(--space-3); }
.cta-pin svg { width: 40px; height: 40px; display: block; }
@media (max-width: 860px) {
  .cta-split { grid-template-columns: 1fr; }
  .cta-split__serving { justify-content: flex-start; }
  .cta-split__serving .cta-split__inner { margin-left: 0; }
}

/* =========================================================================
   10. TRUST / CREDENTIAL BAR
   ========================================================================= */
.trust-bar { background: var(--color-navy); color: var(--color-on-dark); border-top: 1px solid var(--line-on-dark); border-bottom: 1px solid var(--line-on-dark); }
.trust-bar__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-5); padding-block: var(--space-5); }
.trust-item { display: flex; align-items: center; gap: 0.75rem; }
.trust-item__mark { color: var(--color-gold); flex: none; font-size: 1.3rem; }
.trust-item__label { font-size: 0.72rem; font-weight: 600; line-height: 1.35; letter-spacing: var(--tracking-caps); text-transform: uppercase; color: var(--color-on-dark); }
.trust-item__label span { display: block; color: var(--color-on-dark-mut); font-weight: 400; }
/* On small screens, a tidy 2-column grid reads better than uneven flex-wrap */
@media (max-width: 600px) {
  .trust-bar__inner { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-5) var(--space-4); }
}

/* =========================================================================
   11. FOOTER
   ========================================================================= */
.site-footer { background: var(--color-navy-deep); color: var(--color-on-dark-mut); padding-block: clamp(3rem, 2rem + 3vw, 4.5rem) var(--space-6); }
.site-footer a:hover { color: var(--color-gold-bright); }
/* h2, not h4: the footer columns follow the page's own h2 sections, and an
   h4 there made every page skip a heading level. Styled down to a small label. */
.site-footer h2 { font-family: var(--font-sans); font-size: 0.82rem; letter-spacing: var(--tracking-caps); text-transform: uppercase; color: var(--color-gold); margin: 0 0 var(--space-4); }

.footer-top { display: grid; grid-template-columns: minmax(230px, 1fr) 3fr; gap: clamp(2rem, 4vw, 4rem); }
.footer-brand .brand { margin-bottom: var(--space-4); }
.footer-brand__doctor { font-size: 0.82rem; color: var(--color-on-dark); margin: 0 0 var(--space-3); line-height: 1.65; }
.footer-accolade { color: var(--color-gold); font-weight: 600; }
.footer-brand__blurb { font-size: 0.8rem; color: var(--color-on-dark-mut); margin: 0; max-width: 34ch; }

.footer-links { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: clamp(1.5rem, 2.5vw, 2.25rem); }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.2rem; font-size: var(--fs-small); }
/* These links sit at 18px tall on their own, under the 24px minimum target size
   (WCAG 2.5.8). Padding takes them to 24 and the list gap drops by the same
   amount, so the footer's vertical rhythm is unchanged. The inline-link
   exception does not apply here: this is list navigation, not prose. */
.footer-col ul a { display: inline-block; padding-block: 3px; }
.footer-col h2 a { color: inherit; }
.footer-col--contact ul { gap: 0.15rem; }
/* The places column is plain text, not links. Match the padding the link
   columns get from .footer-col ul a so the rhythm stays identical. */
.footer-col--places ul li { padding-block: 3px; }

.footer-social { display: flex; gap: 0.6rem; margin-top: var(--space-4); }
.footer-social a { width: 34px; height: 34px; display: grid; place-items: center; border: 1px solid var(--line-on-dark); border-radius: 50%; color: var(--color-on-dark-mut); }
.footer-social a:hover { color: var(--color-navy); background: var(--color-gold-bright); border-color: var(--color-gold-bright); }
.footer-social svg { width: 16px; height: 16px; }

.footer-legal { margin-top: clamp(2rem, 4vw, 3rem); padding-top: var(--space-5); border-top: 1px solid var(--line-on-dark); font-size: 0.78rem; display: flex; flex-wrap: wrap; gap: var(--space-3) var(--space-5); justify-content: space-between; align-items: center; }
.footer-legal nav { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem; }

@media (max-width: 900px) {
  .footer-top { grid-template-columns: 1fr; }
  /* Mobile stack order: Brand, then Contact, then the service/area columns */
  .footer-col--contact { order: -1; }
}
@media (max-width: 560px) { .footer-links { grid-template-columns: 1fr; } }

/* =========================================================================
   12. UTILITIES
   ========================================================================= */
.text-center { text-align: center; }
.text-gold { color: var(--color-gold); }
.grid-2 { display: grid; gap: clamp(2rem, 5vw, 4.5rem); grid-template-columns: 1fr 1fr; align-items: center; }

/* Structural-rejuvenation split: image takes the larger column and fills it */
.split-rejuv { display: grid; gap: clamp(2rem, 5vw, 4.5rem); grid-template-columns: 1fr 1.35fr; align-items: center; }
/* Image anchors to the bottom of the section so it bleeds off the bottom edge
   (rather than floating centered with the neck looking cut off) */
.split-rejuv { align-items: end; }
.split-rejuv > div { align-self: center; }
.split-rejuv__img { width: 100%; height: auto; display: block; align-self: end; border-radius: var(--radius-sm) var(--radius-sm) 0 0; }
@media (max-width: 860px) {
  .split-rejuv { grid-template-columns: 1fr; }
  .split-rejuv__img { max-width: 560px; margin-inline: auto; }
}
.stack > * + * { margin-top: var(--space-4); }
.nowrap { white-space: nowrap; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* Skip link — first thing in the tab order, off-screen until focused. It sits
   above the header (z-index 30, and on the homepage absolutely positioned over
   the hero), so it needs to outrank that. */
.skip-link {
  position: absolute; top: 0; left: var(--gutter); z-index: 100;
  transform: translateY(-120%);
  padding: var(--space-3) var(--space-5);
  background: var(--color-gold); color: var(--color-navy);
  font-family: var(--font-sans); font-size: var(--fs-small);
  font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  transition: transform var(--dur) var(--ease);
}
.skip-link:focus { transform: translateY(0); color: var(--color-navy); }

/* The skip target itself is focused programmatically, so suppress the ring —
   the page jump is the feedback. Keyboard focus on real controls keeps theirs. */
#main:focus { outline: none; }

/* =========================================================================
   13. RESPONSIVE
   ========================================================================= */
@media (max-width: 860px) {
  .grid-2 { grid-template-columns: 1fr; }
  .site-footer__cols { grid-template-columns: 1fr 1fr; }
}

/* The nav collapses to the drawer at 900px, NOT at the 860px the layout
   modules above use. The header carries seven nav items plus the CTA button,
   and below roughly 940px they stop fitting on one line: the row then pushed
   the document about 12px wider than the viewport on every page, at every
   width between the old breakpoint and 940px.

   This number tracked the nav as it grew: 860 at four items, 960 at seven,
   1000 at eight. Folding Pricing/FAQs/Resources into the Patients dropdown took
   the row back to six, which left 125px of slack at 1001px — so it came back
   down to 900. It is no longer coupled to the .skin-split block above, which
   stays at 1000px for its own reason (the icon row needs the full width by
   about 920px).

   Measure it, do not guess, and await document.fonts.ready: checking before the
   webfont applies reports a narrower nav and a false pass. Scan ABOVE the
   breakpoint too — below it the drawer is active and every width looks clean.
   The same number lives in main.js. */
@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; }
  .main-nav {
    position: absolute; inset: 100% 0 auto 0;
    flex-direction: column; align-items: flex-start; gap: 0;
    background: var(--color-navy); padding: var(--space-4) var(--gutter);
    border-top: 1px solid var(--line-on-dark);
    transform: translateY(-10px); opacity: 0; pointer-events: none;
    /* visibility (not just opacity) so the closed menu leaves the tab order and
       the accessibility tree — otherwise the links stay focusable and screen
       readers announce a menu that isn't on screen. Delayed to the end of the
       transition so the fade-out is still visible. */
    visibility: hidden;
    transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease),
                visibility 0s linear var(--dur);
  }
  .main-nav a { padding-block: var(--space-3); width: 100%; }
  /* Inside the drawer the panel is a nested list, not a floating card: it
     flows in the column and pushes the items below it down. */
  .nav-item { display: block; width: 100%; }
  .nav-item__btn { width: 100%; justify-content: space-between; padding-block: var(--space-3); }
  .nav-panel {
    position: static; transform: none; min-width: 0; width: 100%;
    background: none; border: 0; border-left: 1px solid var(--line-on-dark);
    border-radius: 0; box-shadow: none;
    margin: 0 0 var(--space-3) var(--space-3); padding: 0 0 0 var(--space-4);
  }
  .nav-panel a { padding-block: var(--space-3); padding-inline: 0; white-space: normal; }
  .nav-panel__overview { margin-top: var(--space-2); }
  .site-header.is-open .main-nav {
    transform: translateY(0); opacity: 1; pointer-events: auto;
    visibility: visible;
    transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease),
                visibility 0s;
  }
}

@media (max-width: 520px) {
  .site-footer__cols { grid-template-columns: 1fr; }
}

/* =========================================================================
   14. INTERIOR PAGE MODULES
   Built from design/mockups/interior.png (About Dr. Stephenson).
   Every module here is page-agnostic — About, Pricing/Financing, FAQs,
   Patient Resources, Contact Confirmation, and New Patient Forms all
   compose from this set. Each carries its own media queries.
   ========================================================================= */

/* --- 14.1 Solid header -----------------------------------------------------
   The homepage header is absolutely positioned so it floats over the photo
   hero. Interior pages sit on a navy band instead, so the header becomes a
   real, in-flow bar. `inset` must be reset or the offsets would still apply. */
.site-header--solid {
  position: relative;
  inset: auto;
  background: var(--color-navy);
  border-bottom: 1px solid var(--line-on-dark);
}
/* Gold underline under the current page, per the mockup's ABOUT item */
/* [aria-current] not [aria-current="page"]: a section link on a child page
   carries aria-current="true" and should show the same underline. */
/* Direct children only. Panel links are nested inside .nav-item and carry
   aria-current too; without the child combinator this rule wins over
   .nav-panel a[aria-current] on equal specificity, because it sits later in the
   file — which put a full-width underline through the current item inside the
   dropdown instead of the intended left bar. */
.main-nav > a[aria-current] {
  color: var(--color-on-dark);
  box-shadow: inset 0 -2px 0 var(--color-gold);
}
/* Matches the drawer breakpoint above, not the 860px layout one. */
@media (max-width: 900px) {
  /* Left bar, not the desktop underline: the button is full-width inside the
     drawer, so an underline would rule right across the panel. Matches the
     treatment the flat links get here. */
  .main-nav > a[aria-current],
  .nav-item__btn.is-current { box-shadow: inset 2px 0 0 var(--color-gold); padding-left: var(--space-3); padding-bottom: 0; }
}

/* --- 14.2 Breadcrumb ------------------------------------------------------ */
.breadcrumb {
  font-family: var(--font-sans); font-size: 0.75rem; letter-spacing: 0.04em;
  color: var(--color-on-dark-mut); margin: 0 0 var(--space-5);
}
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; align-items: center; gap: 0.55rem; margin: 0; padding: 0; }
.breadcrumb li { display: flex; align-items: center; gap: 0.55rem; }
.breadcrumb li + li::before { content: "›"; color: var(--color-gold); font-size: 0.95rem; line-height: 1; }
/* Same 24px minimum as the footer links; 12px type leaves them at 20px alone. */
.breadcrumb a { display: inline-block; padding-block: 2px; }
.breadcrumb a:hover { color: var(--color-gold-bright); }
.breadcrumb [aria-current="page"] { color: var(--color-on-dark); }

/* --- 14.3 Interior hero ---------------------------------------------------
   Navy band: copy on the left, subject photo bleeding off the right edge.
   The image is absolutely placed so it reaches the true viewport edge rather
   than stopping at the container gutter. */
.page-hero {
  position: relative; overflow: hidden;
  background: radial-gradient(120% 140% at 70% 20%, #16212D 0%, var(--color-navy-deep) 55%);
  color: var(--color-on-dark);
}
.page-hero__media { position: absolute; inset: 0 0 0 auto; width: 46%; z-index: 0; }
/* Hero photos are often much wider than this slot, so a default centre crop can
   land on empty background and clip the subject. Pages aim the crop by setting
   `heroFocus` in front matter, which lands here as --hero-focus. */
.page-hero__media img {
  width: 100%; height: 100%; object-fit: cover;
  object-position: var(--hero-focus, center top);
}
/* Scrim fades the photo into the navy so headline type stays legible */
.page-hero__media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, var(--color-navy-deep) 0%, rgba(12,19,27,.55) 28%, rgba(12,19,27,0) 62%);
}
.page-hero__inner {
  position: relative; z-index: 1;
  max-width: 620px;
  padding-block: clamp(2.5rem, 1.8rem + 3vw, 4rem) clamp(3rem, 2rem + 4vw, 5.5rem);
}
.page-hero h1 { color: var(--color-on-dark); font-size: var(--fs-h1); margin: 0 0 var(--space-2); }
.page-hero .lead { color: var(--color-on-dark-mut); max-width: 48ch; }
.page-hero .eyebrow { color: var(--color-gold); }
.page-hero__actions { display: flex; flex-wrap: wrap; gap: var(--space-4); margin-top: var(--space-5); }

/* Text-only variant for pages with no hero subject (FAQs, forms, confirmation) */
.page-hero--plain .page-hero__inner { max-width: 760px; }

@media (max-width: 900px) {
  .page-hero__media { position: relative; inset: auto; width: 100%; height: clamp(220px, 45vw, 340px); }
  .page-hero__media::after { background: linear-gradient(180deg, rgba(12,19,27,.55) 0%, rgba(12,19,27,0) 45%); }
  .page-hero__inner { max-width: none; padding-bottom: var(--space-7); }
}

/* --- 14.4 Dual-column icon feature ---------------------------------------
   "The Power of Two Specialties": line-art illustration left, two icon+copy
   blocks right split by a hairline rule. */
/* Two rows: heading on top of the columns, with the artwork spanning both in
   the left column. Spanning is the whole point — a near-square image trades
   width for height 1:1, so if it sits only beside the columns its height stacks
   onto the heading's and the band balloons. Spanning lets it consume vertical
   space the heading already occupies, so it can be large while the band stays
   short. */
.dual-spec {
  display: grid;
  grid-template-columns: minmax(220px, 1.2fr) 2.2fr;
  column-gap: clamp(2rem, 5vw, 4.5rem);
  row-gap: var(--space-5);
  align-items: center;
}
.dual-spec > .section-head { grid-column: 2; grid-row: 1; margin-bottom: 0; }
.dual-spec > .dual-spec__pair { grid-column: 2; grid-row: 2; }
/* Closing statement sits in the text column so it centres under the two
   columns, not across the whole band (the artwork would pull it left). */
.dual-spec > .dual-spec-close { grid-column: 2; grid-row: 3; margin: 0 auto; }
/* Sized for oral-maxillofacial-surgery.jpg (740x812, shadow-free revision).
   The photo's paper background is a flat #F6F1EB — keep --color-sand equal to
   it so the edges dissolve; any mismatch now reads as a hard rectangle.

   Spans both grid rows (heading + columns), so its height is absorbed by space
   the heading already uses rather than added to it. This is the single value to
   tune for the artwork's presence; the band only grows once the art is taller
   than the heading and columns stacked together. */
.dual-spec__art {
  grid-column: 1; grid-row: 1 / 4; align-self: center;
  width: 100%; height: auto; max-width: 460px; margin-inline: auto;
}
.dual-spec__pair { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 4vw, 3rem); }
.dual-spec__item + .dual-spec__item { border-left: 1px solid var(--line-on-light); padding-left: clamp(1.5rem, 4vw, 3rem); }
.dual-spec__head { display: flex; align-items: center; gap: var(--space-4); margin-bottom: var(--space-4); }
.dual-spec__mark {
  flex: none; width: 62px; height: 62px; border-radius: 50%;
  background: var(--color-navy); color: var(--color-gold);
  display: grid; place-items: center;
}
.dual-spec__mark svg { width: 33px; height: 33px; }
/* Uppercase, tracked and weighted to match the mockup, where these titles read
   as headings rather than labels. */
.dual-spec__title {
  font-family: var(--font-serif);
  font-size: clamp(1.15rem, 1rem + 0.5vw, 1.4rem);
  font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--color-ink); margin: 0; line-height: 1.2;
}
.dual-spec__item p { font-size: 1rem; margin: 0; }

/* Closing statement under the two columns. Carries the section's conclusion, so
   it takes lead size and ink colour rather than dropping to muted body text. */
.dual-spec-close {
  font-size: var(--fs-lead); color: var(--color-ink);
  text-align: center; max-width: 62ch;
  margin: var(--space-5) auto 0;
}
@media (max-width: 900px) {
  /* Stacked: heading, then art, then columns. Grid placement is reset to auto
     flow and the heading pulled first with order. */
  .dual-spec { grid-template-columns: 1fr; }
  .dual-spec__art { grid-column: 1; grid-row: auto; max-width: 320px; margin-inline: auto; }
  .dual-spec > .section-head { grid-column: 1; grid-row: auto; order: -1; }
  .dual-spec > .dual-spec__pair { grid-column: 1; grid-row: auto; }
  .dual-spec > .dual-spec-close { grid-column: 1; grid-row: auto; }
}
@media (max-width: 620px) {
  .dual-spec__pair { grid-template-columns: 1fr; }
  .dual-spec__item + .dual-spec__item { border-left: 0; border-top: 1px solid var(--line-on-light); padding-left: 0; padding-top: var(--space-5); }
}

/* --- 14.5 Credential cards ------------------------------------------------
   4-up row: gold line icon, serif title, small caption. */
.cred-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(0.75rem, 1.5vw, 1.25rem); }
.cred-card {
  background: rgba(255, 255, 255, .55);
  border: 1px solid rgba(190, 146, 71, .22);
  border-radius: var(--radius-sm);
  padding: clamp(1.5rem, 1rem + 1.5vw, 2.25rem) var(--space-5);
  text-align: center;
}
.cred-card__mark { color: var(--color-gold); margin-bottom: var(--space-4); }
/* Accepts either an inline <svg> (inherits currentColor) or an <img> pointing at
   a client-supplied SVG, which carries its own fill. */
.cred-card__mark svg,
.cred-card__mark img { width: 56px; height: 56px; margin-inline: auto; display: block; }
.cred-card__title { font-family: var(--font-serif); font-size: 1.25rem; line-height: 1.2; color: var(--color-ink); margin: 0 0 var(--space-3); }
.cred-card__text { font-size: var(--fs-small); color: var(--color-body); margin: 0; }
/* Three-up variant, for bands with three cards rather than four */
.cred-cards--3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 900px) { .cred-cards, .cred-cards--3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .cred-cards, .cred-cards--3 { grid-template-columns: 1fr; } }

/* --- 14.6 Split feature ---------------------------------------------------
   Copy left, photo bleeding off the right viewport edge ("Natural. Refined.
   Timeless."). Same bleed technique as the interior hero. */
.split-feature { position: relative; overflow: hidden; }
.split-feature__media { position: absolute; inset: 0 0 0 auto; width: 50%; }
.split-feature__media img { width: 100%; height: 100%; object-fit: cover; }
.split-feature__inner { position: relative; z-index: 1; max-width: 46%; padding-block: var(--section-y); }
.split-feature__sig { max-width: 210px; margin: var(--space-5) 0 var(--space-3); }
.split-feature__byline { font-size: var(--fs-small); color: var(--color-body); margin: 0; }
/* Mirrored: photo on the left, copy on the right */
.split-feature--reverse .split-feature__media { inset: 0 auto 0 0; }
.split-feature--reverse .split-feature__inner { margin-left: auto; }
@media (max-width: 900px) {
  .split-feature__media { position: relative; inset: auto; width: 100%; height: clamp(220px, 50vw, 360px); }
  .split-feature--reverse .split-feature__media { inset: auto; }
  .split-feature__inner { max-width: none; padding-block: var(--space-7); }
}

/* --- 14.7 Horizontal timeline --------------------------------------------
   Education & training: gold rule with gold dots, label + detail beneath. */
.timeline { position: relative; display: grid; grid-template-columns: repeat(6, 1fr); gap: var(--space-4); }
/* Rule stops at the first and last dot centers rather than running edge-to-edge */
.timeline::before {
  content: ""; position: absolute; top: 5px; height: 1px;
  left: calc(100% / 12); right: calc(100% / 12);
  background: rgba(190, 146, 71, .45);
}
.timeline__step { position: relative; text-align: center; padding-top: var(--space-5); }
.timeline__dot {
  position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 11px; height: 11px; border-radius: 50%; background: var(--color-gold);
}
.timeline__label { font-family: var(--font-sans); font-size: 0.72rem; font-weight: 700; letter-spacing: var(--tracking-caps); text-transform: uppercase; color: var(--color-ink); margin: 0 0 var(--space-2); line-height: 1.35; }
.timeline__detail { font-size: var(--fs-small); color: var(--color-body); margin: 0; line-height: 1.5; }
@media (max-width: 1000px) { .timeline { grid-template-columns: repeat(3, 1fr); row-gap: var(--space-6); } .timeline::before { display: none; } }
@media (max-width: 560px) { .timeline { grid-template-columns: 1fr 1fr; } }

/* --- 14.8 Interior CTA band ----------------------------------------------
   Navy band closing every interior page: portrait bleeding off the left,
   centered message, gold button + phone on the right. */
/* overflow stays visible: the portrait is taller than the band so the top of his
   head breaks out above it, over the section before — the raised, cut-out look
   in the mockup. Clipping here is what flattened it. Nothing escapes the bottom,
   since the portrait is anchored to the band's bottom edge. */
.cta-band { position: relative; background: var(--color-navy); color: var(--color-on-dark); }
.cta-band__inner {
  --cta-pad: clamp(2rem, 1.5rem + 2vw, 3rem);
  position: relative;
  display: grid; grid-template-columns: clamp(180px, 20vw, 290px) 1fr auto;
  gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center;
  padding-block: var(--cta-pad);
}
/* A transparent cut-out, not a cropped circle: anchored to the band's bottom
   edge with the head reaching the top, clipped by .cta-band's overflow — as in
   the mockup. Positioned out of flow so its height can never drive the band's;
   the first grid column reserves the space it occupies. */
.cta-band__portrait {
  /* bottom:0 already sits on the band's bottom edge — the containing block is
     .cta-band__inner's padding box, which includes --cta-pad. A negative offset
     here pushed him down into the footer and cost the same height off the top. */
  position: absolute; left: var(--gutter); bottom: 0;
  width: clamp(180px, 20vw, 290px); z-index: 2;
}
.cta-band__portrait img { width: 100%; height: auto; display: block; }
/* Explicit placement is required: the portrait is out of flow, so without this
   auto-placement pulls the body into column 1 — the strip reserved for the
   portrait — and the actions into column 2, leaving column 3 empty. */
.cta-band__body { grid-column: 2; text-align: center; }
.cta-band__actions { grid-column: 3; }
.cta-band__body .eyebrow { color: var(--color-gold); margin-bottom: var(--space-3); }
.cta-band__body h2 { color: var(--color-on-dark); font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.35rem); margin: 0 0 var(--space-3); }
.cta-band__body p { font-size: var(--fs-small); color: var(--color-on-dark-mut); margin: 0; }
.cta-band__actions { display: grid; justify-items: center; gap: var(--space-4); }
.cta-band__phone { display: inline-flex; align-items: center; gap: 0.5rem; font-size: var(--fs-small); color: var(--color-gold); }
.cta-band__phone svg { width: 15px; height: 15px; }
@media (max-width: 960px) {
  .cta-band__inner { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .cta-band__portrait { display: none; }
  .cta-band__body, .cta-band__actions { grid-column: 1; }
}

/* --- 14.9 Interior prose --------------------------------------------------
   Long-form body copy for FAQs, financing terms, forms instructions. */
/* Centred: these blocks are narrower than the wide containers they sit in, and
   the section heads above them are centred — left-hugging reads as a bug. */
.prose { max-width: 68ch; margin-inline: auto; }
.prose h2 { font-size: var(--fs-h3); margin-top: var(--space-7); }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 1.25rem; margin-top: var(--space-6); }
.prose ul, .prose ol { margin: 0 0 var(--space-4); padding-left: 1.25rem; display: grid; gap: 0.5rem; }
.prose li::marker { color: var(--color-gold); }
.prose a { color: var(--color-gold-deep); text-decoration: underline; text-underline-offset: 3px; }
.prose a:hover { color: var(--color-gold); }

/* --- 14.10 Accordion (FAQs) ----------------------------------------------
   Native <details>/<summary> — keyboard accessible with no JS. */
.accordion { border-top: 1px solid var(--line-on-light); max-width: 900px; margin-inline: auto; }
.accordion__item { border-bottom: 1px solid var(--line-on-light); }
.accordion__item summary {
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-4);
  padding: var(--space-5) 0; cursor: pointer; list-style: none;
  font-family: var(--font-serif); font-size: 1.2rem; color: var(--color-ink);
}
.accordion__item summary::-webkit-details-marker { display: none; }
.accordion__item summary::after {
  content: "+"; flex: none; color: var(--color-gold); font-family: var(--font-sans);
  font-size: 1.4rem; line-height: 1; transition: transform var(--dur) var(--ease);
}
.accordion__item[open] summary::after { transform: rotate(45deg); }
.accordion__item summary:hover { color: var(--color-gold-deep); }
.accordion__panel { padding: 0 0 var(--space-5); max-width: 68ch; }
.accordion__panel > :last-child { margin-bottom: 0; }

/* --- 14.11 Financing partner cards ----------------------------------------
   Three-up cards for the third-party lenders on /financing/. Deliberately
   typographic rather than logo-based: the partners' logos are third-party brand
   assets we don't hold locally, and the live site hotlinks one of them straight
   from carecredit.com — which this site must not do (external request on every
   page view, and it leaks the visitor to a third party before they choose to
   apply). Drop logos in later if the client supplies the files.
   -------------------------------------------------------------------------- */
.finance-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1rem, 2vw, 1.75rem); }
.finance-card {
  display: flex; flex-direction: column; text-align: center;
  background: var(--color-white); border: 1px solid var(--line-on-light);
  border-radius: var(--radius-sm); padding: clamp(1.75rem, 3vw, 2.5rem) clamp(1.25rem, 2.5vw, 2rem);
}
.finance-card__name {
  font-family: var(--font-serif); font-size: 1.5rem; line-height: 1.2;
  color: var(--color-ink); margin: 0 0 var(--space-3);
}
.finance-card__name::after {
  content: ""; display: block; width: 36px; height: 2px;
  background: var(--color-gold); margin: var(--space-3) auto 0;
}
.finance-card__text { font-size: var(--fs-small); color: var(--color-body); margin: 0 0 var(--space-5); }
/* Pin the action to the bottom so the three buttons align across uneven copy */
.finance-card__action { margin-top: auto; }
@media (max-width: 860px) { .finance-cards { grid-template-columns: 1fr; max-width: 30rem; margin-inline: auto; } }

/* --- 14.12 Price list -----------------------------------------------------
   Procedure / "starting at" figure / short explanation. The name and price sit
   on one baseline with a gold leader rule between them, so the column of
   figures stays scannable however long the procedure names get.
   -------------------------------------------------------------------------- */
.price-list { max-width: 900px; margin-inline: auto; border-top: 1px solid var(--line-on-light); }
.price-item { border-bottom: 1px solid var(--line-on-light); padding: var(--space-5) 0; }
.price-item__head { display: flex; align-items: baseline; gap: var(--space-4); }
.price-item__name {
  font-family: var(--font-serif); font-size: 1.2rem; line-height: 1.25;
  color: var(--color-ink); margin: 0; flex: none; max-width: 60%;
}
/* Dotted leader fills whatever space is left between name and figure */
.price-item__lead {
  flex: 1 1 auto; height: 1px; align-self: center;
  background-image: linear-gradient(to right, var(--line-on-light) 0 60%, transparent 60% 100%);
  background-size: 6px 1px; background-repeat: repeat-x;
}
.price-item__price {
  flex: none; font-family: var(--font-sans); font-size: var(--fs-small); font-weight: 600;
  letter-spacing: .04em; color: var(--color-gold-deep); white-space: nowrap;
}
.price-item__text { font-size: var(--fs-small); color: var(--color-body); margin: var(--space-3) 0 0; max-width: 68ch; }
@media (max-width: 560px) {
  .price-item__head { flex-wrap: wrap; gap: 0 var(--space-3); }
  .price-item__name { max-width: none; flex: 1 0 100%; }
  .price-item__lead { display: none; }
}

/* --- 14.14 Forms ----------------------------------------------------------
   Built for the consultation request form. Labels are always visible (never
   placeholder-only), required fields are marked in text as well as with the
   `required` attribute, and focus uses a gold ring rather than removing the
   outline — this is the site's primary conversion path and has to be usable
   with a keyboard and a screen reader.
   -------------------------------------------------------------------------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-5); max-width: 900px; margin-inline: auto; }
.field { display: flex; flex-direction: column; gap: var(--space-2); }
.field--full { grid-column: 1 / -1; }
.field label {
  font-family: var(--font-sans); font-size: 0.72rem; font-weight: 600;
  letter-spacing: var(--tracking-caps); text-transform: uppercase; color: var(--color-ink);
}
.field .req { color: var(--color-gold-deep); }
.field input, .field select, .field textarea {
  font-family: var(--font-sans); font-size: 1rem; line-height: 1.4; color: var(--color-ink);
  background: var(--color-white); border: 1px solid var(--line-on-light);
  border-radius: var(--radius-sm); padding: 0.85rem 1rem; width: 100%;
}
.field textarea { min-height: 9rem; resize: vertical; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible {
  outline: 2px solid var(--color-gold); outline-offset: 1px;
}
.form-actions { grid-column: 1 / -1; display: grid; gap: var(--space-4); justify-items: start; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: 0.45; cursor: not-allowed; pointer-events: none; }
@media (max-width: 700px) { .form-grid { grid-template-columns: 1fr; } }

/* --- 14.15 Contact details + map ------------------------------------------ */
.contact-list { display: grid; gap: var(--space-5); margin: 0; }
.contact-list dt {
  font-family: var(--font-sans); font-size: 0.72rem; font-weight: 600;
  letter-spacing: var(--tracking-caps); text-transform: uppercase;
  color: var(--color-gold-deep); margin-bottom: var(--space-2);
}
.contact-list dd { margin: 0; color: var(--color-body); }

/* Inline links inside body copy. The global `a { color: inherit }` makes links
   in running text indistinguishable from the text around them — fine for nav
   and cards, not acceptable for a phone number someone needs to find. Apply
   .link to any anchor sitting inside a sentence. */
.link, .contact-list dd a {
  color: var(--color-gold-deep); text-decoration: underline; text-underline-offset: 3px;
}
.link:hover, .contact-list dd a:hover { color: var(--color-gold); }

/* Stand-in until the practice's real map embed is supplied. Deliberately looks
   unfinished — see the TODO beside it in contact.njk. */
/* Google Maps embed on /contact/. The iframe's width/height attributes are the
   intrinsic ratio only — it is sized here so it fills its grid column and keeps
   the height band the old placeholder occupied. */
.map-embed {
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--color-cream-2);
  line-height: 0;
}
.map-embed iframe {
  display: block;
  width: 100%;
  height: clamp(240px, 32vw, 380px);
  border: 0;
}

/* Numeral in place of an icon, for process steps reusing the credential card */
.step-num { font-family: var(--font-serif); font-size: 2.5rem; line-height: 1; color: var(--color-gold); }

/* Two-column band whose columns are independent blocks of copy, not a paired
   image/text set — they should align to the top, not centre on each other. */
.grid-2--top { align-items: start; }

/* --- 14.13 FAQ groups ----------------------------------------------------
   Six themed groups on one page. Each is a labelled block of accordion items
   with a jump-link row above, so a long page stays navigable and each answer
   remains its own extractable section (STRATEGY.md §10, AI-search goals).
   -------------------------------------------------------------------------- */
.faq-jump { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--space-3) var(--space-4); max-width: 900px; margin-inline: auto; }
.faq-jump a {
  font-family: var(--font-sans); font-size: 0.72rem; font-weight: 600;
  letter-spacing: var(--tracking-caps); text-transform: uppercase;
  color: var(--color-body); padding: 0.55rem 1rem;
  border: 1px solid var(--line-on-light); border-radius: var(--radius-sm);
}
.faq-jump a:hover { color: var(--color-navy); border-color: var(--color-gold); }

.faq-group { max-width: 900px; margin-inline: auto; }
.faq-group + .faq-group { margin-top: var(--space-8, 4.5rem); }
/* Offset the anchor so the jump link doesn't park the heading under the header */
.faq-group__head { scroll-margin-top: 6rem; margin-bottom: var(--space-2); }
.faq-group__head h2 { font-size: var(--fs-h3); margin: 0 0 var(--space-3); }
.faq-group__head .divider { margin: 0; }

/* Unanswered content awaiting client copy. Deliberately loud — this must never
   reach production unnoticed. Remove this rule once the placeholders are gone. */
.tk {
  display: inline-block; font-family: var(--font-sans); font-size: var(--fs-small);
  color: #8A4B2A; background: #FDF3E7; border: 1px dashed #C98A4B;
  border-radius: var(--radius-sm); padding: 0.4rem 0.7rem;
}

/* Quiet sub-heading inside a pricing band. Deliberately smaller and lighter
   than a .section-head: it labels a secondary group without competing with the
   band's own H2 (used for the in-office contouring options). */
.subhead-quiet { max-width: 900px; margin: var(--space-7) auto var(--space-2); }
.subhead-quiet h3 {
  font-family: var(--font-sans); font-size: 0.78rem; font-weight: 600;
  letter-spacing: var(--tracking-caps); text-transform: uppercase;
  color: var(--color-muted); margin: 0;
}

/* --- 14.17 Procedure page modules ----------------------------------------
   Shared by every procedure page. Nothing here is facelift-specific.
   -------------------------------------------------------------------------- */

/* Two-column list of concerns a procedure addresses, or candidacy points.
   Gold rule rather than a bullet — quieter, and it reads as a specification
   list rather than marketing copy. */
.check-list { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-4) clamp(1.5rem, 4vw, 3rem); max-width: 900px; margin-inline: auto; padding: 0; list-style: none; }
.check-list li { position: relative; padding-left: var(--space-5); color: var(--color-body); }
.check-list li::before {
  content: ""; position: absolute; left: 0; top: 0.65em;
  width: 14px; height: 2px; background: var(--color-gold);
}
.check-list li strong { color: var(--color-ink); font-weight: 600; }
@media (max-width: 700px) { .check-list { grid-template-columns: 1fr; } }

/* A procedure's technique options — reuses the credential card shell but with
   a left-aligned body, since these carry more text than a credential does. */
.technique-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(0.75rem, 1.5vw, 1.25rem); }
/* Three-up variant. The base grid is four across, which leaves a six-card set
   as a row of four and an orphan row of two. Same reasoning as
   .card-grid--three. Below 900px both variants fall back to the shared rules. */
.technique-cards--three { grid-template-columns: repeat(3, 1fr); }
.technique-card {
  background: var(--color-white); border: 1px solid var(--line-on-light);
  border-radius: var(--radius-sm); padding: clamp(1.5rem, 2.5vw, 2rem);
}
.technique-card__name { font-family: var(--font-serif); font-size: 1.2rem; line-height: 1.2; color: var(--color-ink); margin: 0 0 var(--space-3); }
.technique-card__name::after { content: ""; display: block; width: 30px; height: 2px; background: var(--color-gold); margin-top: var(--space-3); }
.technique-card__text { font-size: var(--fs-small); color: var(--color-body); margin: 0; }
@media (max-width: 900px) { .technique-cards { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .technique-cards { grid-template-columns: 1fr; } }

/* An image shown whole rather than cropped. Use instead of .split-feature when
   the artwork carries labels or detail at its edges that a cover-crop would
   cut off. */
.feature-img { width: 100%; height: auto; display: block; border-radius: var(--radius-sm); }

/* Placeholder for a gallery that does not exist yet. Not a link, by design —
   see the standing rule in docs/NOTES.md about never linking an unbuilt page. */
.gallery-placeholder {
  display: grid; place-items: center; text-align: center; gap: var(--space-3);
  min-height: clamp(200px, 26vw, 300px); padding: var(--space-6);
  background: var(--color-white); border: 1px dashed var(--color-muted);
  border-radius: var(--radius-sm); max-width: 900px; margin-inline: auto;
}
.gallery-placeholder h3 { font-size: var(--fs-h3); margin: 0; }
.gallery-placeholder p { font-size: var(--fs-small); color: var(--color-muted); margin: 0; max-width: 46ch; }

/* --- 14.15b Before & after sets ------------------------------------------
   The client supplied these as finished composites: each 902x889 JPEG already
   carries the ESJ mark, the procedure name, the patient photo, and a burned-in
   BEFORE or AFTER label. We display them unedited, so this module deliberately
   adds NO label and NO crop of its own — doing either would either duplicate
   what is already in the pixels or cut it off. That is also why there is no
   object-fit here: these must never be cropped to fit a box.

   The subjects are cut-outs masked onto a flat #303C52, identical across all
   six files, so the two halves of a pair are butted together with no gap and
   read as one continuous panel per patient.

   Sized for legibility, not density: the burned-in type is fixed in the image,
   so a three-across grid would shrink "BEFORE" to about seven pixels. One pair
   per row at a capped width keeps it readable, and the pair stacks below 720px
   rather than halving again.
   -------------------------------------------------------------------------- */
.ba-stack { display: grid; gap: clamp(1.5rem, 3vw, 2.5rem); max-width: 940px; margin-inline: auto; }
.ba-set { border-radius: var(--radius-sm); overflow: hidden; }
.ba-set__pair { display: grid; grid-template-columns: 1fr 1fr; gap: 0; background: var(--color-ba-navy); }
.ba-set__img { width: 100%; height: auto; display: block; }
.ba-set__caption {
  margin: var(--space-3) 0 0; text-align: center;
  font-size: var(--fs-small); color: var(--color-body);
}
/* Required by advertising rules and simply true. Never drop it. */
/* --- Before & after, click to reveal ---------------------------------------
   For galleries a visitor should choose to open rather than scroll into — the
   body contouring photographs are unclothed. Built on <details>/<summary> so it
   works with no JavaScript, is keyboard operable by default, and exposes the
   right expanded/collapsed state to a screen reader without any ARIA of ours.

   The images inside stay lazy, so nothing downloads until it is opened. */
.ba-reveal { max-width: 940px; margin-inline: auto; }
.ba-reveal > summary {
  list-style: none; cursor: pointer;
  display: grid; place-items: center; gap: var(--space-3);
  padding: clamp(2rem, 5vw, 3.5rem) var(--space-5); text-align: center;
  background: var(--color-white); border: 1px dashed var(--color-muted);
  border-radius: var(--radius-sm);
}
.ba-reveal > summary::-webkit-details-marker { display: none; }
.ba-reveal > summary:hover { border-color: var(--color-gold); }
.ba-reveal > summary:focus-visible { outline: 2px solid var(--color-gold); outline-offset: 3px; }
.ba-reveal__title { font-family: var(--font-serif); font-size: var(--fs-h3); color: var(--color-ink); }
.ba-reveal__note { font-size: var(--fs-small); color: var(--color-body); max-width: 52ch; margin: 0; }
.ba-reveal__cue {
  font-size: 0.72rem; font-weight: 600; letter-spacing: var(--tracking-caps);
  text-transform: uppercase; color: var(--color-gold-deep);
}
/* Swap the cue text on open, so the control says what it will now do. */
.ba-reveal[open] > summary { margin-bottom: var(--space-6); }
.ba-reveal:not([open]) .ba-reveal__cue--hide,
.ba-reveal[open] .ba-reveal__cue--show { display: none; }

.ba-disclaimer {
  margin: var(--space-6) auto 0; max-width: 60ch; text-align: center;
  font-size: var(--fs-small); color: var(--color-muted);
}
/* Side by side stops being readable before the layout stops fitting — the
   burned-in caps go illegible around 300px per half. Stack instead of halving. */
@media (max-width: 720px) { .ba-set__pair { grid-template-columns: 1fr; } }

/* --- 14.16 Resource cards + data table -----------------------------------
   For the Patient Resources hub. Cards are anchors where a destination exists;
   a card with no `url` renders as a plain block, because a hub that links to
   pages we haven't built yet is worse than one that says "not yet".
   -------------------------------------------------------------------------- */
.resource-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(0.75rem, 1.5vw, 1.25rem); }
.resource-card {
  display: flex; flex-direction: column; text-align: left;
  background: var(--color-white); border: 1px solid var(--line-on-light);
  border-radius: var(--radius-sm); padding: clamp(1.5rem, 2.5vw, 2rem);
  transition: border-color var(--dur) var(--ease), transform var(--dur) var(--ease);
}
a.resource-card:hover { border-color: var(--color-gold); transform: translateY(-2px); }
.resource-card__title { font-family: var(--font-serif); font-size: 1.25rem; line-height: 1.2; color: var(--color-ink); margin: 0 0 var(--space-3); }
.resource-card__text { font-size: var(--fs-small); color: var(--color-body); margin: 0 0 var(--space-4); }
.resource-card__go {
  margin-top: auto; font-family: var(--font-sans); font-size: 0.72rem; font-weight: 600;
  letter-spacing: var(--tracking-caps); text-transform: uppercase; color: var(--color-gold-deep);
}
/* Two-up variant. The base grid is four across, so a two-card row renders as
   two quarter-width cards with half the row empty. Used where a section has
   only two entries. */
.resource-cards--two { grid-template-columns: repeat(2, 1fr); }
.resource-cards--three { grid-template-columns: repeat(3, 1fr); }
/* Legal documents run long and are read, not skimmed. A tighter measure and
   a little more air between sections than .prose gives by default. */
.prose--legal { max-width: 68ch; margin-inline: auto; }
.prose--legal h3 { margin-top: var(--space-7); }
@media (max-width: 900px) { .resource-cards { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .resource-cards { grid-template-columns: 1fr; } }

/* Two-column reference table. Stacks below 560px rather than scrolling — the
   row label and its guidance read fine as a block on a phone. */
.data-table { width: 100%; max-width: 900px; margin-inline: auto; border-collapse: collapse; }
.data-table caption { text-align: left; font-size: var(--fs-small); color: var(--color-muted); padding-bottom: var(--space-4); }
.data-table th, .data-table td { text-align: left; padding: var(--space-4) var(--space-4) var(--space-4) 0; border-bottom: 1px solid var(--line-on-light); vertical-align: top; }
.data-table thead th {
  font-family: var(--font-sans); font-size: 0.72rem; font-weight: 600;
  letter-spacing: var(--tracking-caps); text-transform: uppercase; color: var(--color-gold-deep);
}
.data-table tbody th { font-family: var(--font-serif); font-size: 1.1rem; font-weight: 500; color: var(--color-ink); width: 38%; }
.data-table td { font-size: var(--fs-small); color: var(--color-body); }
@media (max-width: 560px) {
  /* caption must be listed too — once the table is display:block its default
     display:table-caption has no table to attach to and it collapses to a
     narrow column. */
  .data-table, .data-table caption, .data-table tbody,
  .data-table tr, .data-table th, .data-table td { display: block; width: auto; }
  .data-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .data-table tr { border-bottom: 1px solid var(--line-on-light); padding-block: var(--space-4); }
  .data-table th, .data-table td { border: 0; padding: 0; }
  .data-table tbody th { margin-bottom: var(--space-2); }
}

/* Three-column comparison (one row label, two things being compared). The
   two-column stack above drops the column headings on a phone, which is fine
   when there is only one value per row and useless when there are two — the
   reader loses which technique each value belongs to. Here each cell carries
   its column name in `data-label` and prints it back above the value. Any
   `td` in this variant MUST have a data-label or the stack is ambiguous. */
/* Narrower row-label column than the two-column table, because two value
   columns follow it. Scoped above the stacking breakpoint: unscoped it
   out-specifies the `width: auto` in the stack below and squeezes the label
   into a sliver, wrapping "Recovery time" onto two lines. */
@media (min-width: 561px) { .data-table--compare tbody th { width: 26%; } }
@media (max-width: 560px) {
  .data-table--compare td { margin-top: var(--space-3); }
  .data-table--compare td::before {
    content: attr(data-label);
    display: block;
    font-family: var(--font-sans); font-size: 0.72rem; font-weight: 600;
    letter-spacing: var(--tracking-caps); text-transform: uppercase;
    color: var(--color-gold-deep);
    margin-bottom: 2px;
  }
}

/* Pricing disclaimer — required context, not fine print to be hidden.
   `.callout` is the same treatment for any other page needing a set-aside note. */
.price-note, .callout {
  max-width: 900px; margin: var(--space-6) auto 0; padding: var(--space-5);
  background: var(--color-cream-2); border-left: 2px solid var(--color-gold);
  font-size: var(--fs-small); color: var(--color-body);
}
.price-note :last-child, .callout :last-child { margin-bottom: 0; }

/* Contact form result line. Empty until main.js writes to it, so it must not
   reserve space or draw a box when there is nothing to say. */
.form-status:empty { display: none; }
.form-status { margin: var(--space-3) 0 0; font-size: var(--fs-small); color: var(--color-body); }
.form-status--error { color: var(--color-ink); border-left: 2px solid var(--color-navy); padding-left: var(--space-3); }
/* Safety warning. Same shape as .callout, but blush rather than cream and a
   heavier navy rule, so a sight-threatening instruction does not read as the
   same class of note as a pricing aside. Blush is the palette's only warm
   signal colour — a red would be off-brand and there is no token for one.
   --color-ink on --color-blush-soft, not --color-body, so the text is heavier
   too. Reserve this for genuine safety instructions; it stops working the
   moment it is used for emphasis. */
.callout--warn {
  background: var(--color-blush-soft);
  border-left-color: var(--color-navy);
  border-left-width: 3px;
  color: var(--color-ink);
}

/* --- 14.18 Video playlists (/plastic-surgery-podcast/) ---------------------
   One YouTube playlist player per tab. There are nine playlists, so the tabs
   are squared chips (the site radius, not pills) that wrap into a centred group
   rather than an underlined strip —
   an underline stops reading as a tab once the row breaks. Every playlist
   stays visible on a phone; nothing scrolls sideways. The tab pattern is
   WAI-ARIA tabs; behaviour lives in main.js and only runs where [data-tabs]
   is set. */
.video-tabs { max-width: 1000px; margin-inline: auto; }
.video-tabs__lede { max-width: 70ch; margin: 0 auto var(--space-6); text-align: center; color: var(--color-body); }
.video-tabs__list {
  display: flex; flex-wrap: wrap; justify-content: center; gap: var(--space-3);
  margin-bottom: var(--space-6);
}
.video-tabs__tab {
  appearance: none; cursor: pointer; font: inherit;
  min-height: 44px; padding: 0.55rem 1.1rem;
  background: var(--color-white); color: var(--color-body);
  border: 1px solid var(--line-on-light); border-radius: var(--radius-sm);
  font-size: 0.8rem; font-weight: 500; letter-spacing: 0.02em; line-height: 1.3;
  transition: border-color .15s, color .15s, background-color .15s;
}
.video-tabs__tab:hover { border-color: var(--color-gold); color: var(--color-navy); }
.video-tabs__tab[aria-selected="true"] { background: var(--color-navy); border-color: var(--color-navy); color: var(--color-white); }
.video-tabs__tab:focus-visible,
.video-tabs__panel:focus-visible { outline: 2px solid var(--color-gold); outline-offset: 3px; }
/* On a phone nine wrapped chips stack into ~480px of buttons and push the
   player below the fold. Below 560px they become one swipeable row instead:
   the row scrolls inside itself (the page never scrolls sideways), the right
   edge fades to show there is more, and main.js scrolls the selected chip
   into view. No scroll-snap: it re-snaps after main.js scrolls the row and
   left the selected chip half cut off at 390px. */
@media (max-width: 560px) {
  .video-tabs__list {
    flex-wrap: nowrap; justify-content: flex-start; gap: var(--space-2);
    overflow-x: auto; scrollbar-width: none;
    padding-bottom: 2px;
    -webkit-mask-image: linear-gradient(to right, black 82%, transparent);
            mask-image: linear-gradient(to right, black 82%, transparent);
  }
  .video-tabs__list::-webkit-scrollbar { display: none; }
  .video-tabs__list.is-scrolled-end { -webkit-mask-image: none; mask-image: none; }
  /* flex: none sizes each chip to its label. The width cap only bites for a
     label wider than the row itself (the longest one is, at 320px), which
     then wraps to two lines instead of being impossible to show in full.
     Short labels never reach the cap, so they stay on one line. */
  .video-tabs__tab {
    flex: none; max-width: calc(100% - 2.5rem); text-align: left;
    padding-inline: 0.85rem; font-size: 0.75rem;
  }
}
.video-tabs__title { font-size: var(--fs-h3); text-align: center; margin: 0 0 var(--space-5); }
.video-embed { position: relative; aspect-ratio: 16 / 9; background: var(--color-navy); border-radius: var(--radius-sm); overflow: hidden; }
.video-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-tabs__more { text-align: center; margin: var(--space-4) 0 0; font-size: var(--fs-small); }

/* =========================================================================
   15. BLOG
   ========================================================================= */

/* --- A single article ----------------------------------------------------- */
.post-head { max-width: 68ch; margin: 0 auto var(--space-7); }
.post-head h1 { font-size: clamp(1.9rem, 1.3rem + 2.2vw, 3rem); margin: 0 0 var(--space-4); }
.post-meta {
  font-size: 0.72rem; font-weight: 600; letter-spacing: var(--tracking-caps);
  text-transform: uppercase; color: var(--color-muted); margin: 0 0 var(--space-4);
}
/* Articles are read start to finish, so the measure is narrower than .prose and
   the headings get more room above them than below. */
.prose--article { max-width: 68ch; margin-inline: auto; }
.prose--article h2 { font-size: var(--fs-h3); margin-top: var(--space-8); }
.prose--article h3 { margin-top: var(--space-7); }
.prose--article img {
  width: 100%; height: auto; display: block;
  border-radius: var(--radius-sm); margin: var(--space-6) 0;
}
.post-foot { max-width: 68ch; margin: var(--space-8) auto 0; }
/* The procedure page(s) an article is about, above the "All articles" button. */
.post-related { margin-bottom: var(--space-6); }
.post-related .eyebrow { display: block; margin: 0 0 var(--space-3); }
.resource-cards--one { grid-template-columns: 1fr; }

/* --- The listing ---------------------------------------------------------- */
.post-list {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.25rem, 2.5vw, 2rem);
}
.post-card {
  display: flex; flex-direction: column;
  background: var(--color-white); border: 1px solid var(--line-on-light);
  border-radius: var(--radius-sm); padding: clamp(1.5rem, 2.5vw, 2rem);
  transition: border-color var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.post-card:hover { border-color: var(--color-gold); transform: translateY(-2px); }
.post-card__meta {
  font-size: 0.7rem; font-weight: 600; letter-spacing: var(--tracking-caps);
  text-transform: uppercase; color: var(--color-muted); margin: 0 0 var(--space-3);
}
.post-card__title { font-family: var(--font-serif); font-size: 1.2rem; line-height: 1.25; margin: 0 0 var(--space-3); }
.post-card__title a { color: var(--color-ink); }
/* The whole card is the target, not just the title. ::after stretches the link
   over the card, so the visible text stays the accessible name. */
.post-card__title a::after { content: ""; position: absolute; inset: 0; }
.post-card { position: relative; }
.post-card__text { font-size: var(--fs-small); color: var(--color-body); margin: 0 0 var(--space-4); }
.post-card__go {
  margin-top: auto; font-family: var(--font-sans); font-size: 0.72rem; font-weight: 600;
  letter-spacing: var(--tracking-caps); text-transform: uppercase; color: var(--color-gold-deep);
}
@media (max-width: 900px) { .post-list { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .post-list { grid-template-columns: 1fr; } }

/* --- Pagination ----------------------------------------------------------- */
.pagination {
  display: flex; align-items: center; justify-content: center; flex-wrap: wrap;
  gap: var(--space-4); margin-top: var(--space-8);
  font-size: 0.75rem; letter-spacing: var(--tracking-caps); text-transform: uppercase;
}
.pagination__pages { display: flex; gap: var(--space-2); list-style: none; margin: 0; padding: 0; }
.pagination__pages a, .pagination__pages span, .pagination__step {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 40px; min-height: 40px; padding-inline: var(--space-3);
  border: 1px solid var(--line-on-light); border-radius: var(--radius-sm);
  color: var(--color-body);
}
.pagination__pages a:hover, .pagination__step:hover { border-color: var(--color-gold); color: var(--color-ink); }
.pagination__pages [aria-current="page"] { background: var(--color-navy); color: var(--color-on-dark); border-color: var(--color-navy); }
.pagination .is-disabled { opacity: .4; }
