/* GEODE section components: one block per section kind (templates/sections/). Loads after site.css. Colours are tokens; the literal values are shadow strengths.
   Contour lines are fixed-height bands (images/contours-*.svg) so they never stretch on phones.
   The seal and the watermark are images from the brand partial, never CSS backgrounds. */

:root {
  /* The card ground: a touch lighter than the page, mixed from tokens. */
  --card-ground: color-mix(in srgb, var(--on-secondary) 62%, var(--foundation));
  --card-shadow: 0 1px 2px rgba(38, 36, 34, 0.04), 0 16px 36px rgba(38, 36, 34, 0.06);
  --card-shadow-raised: 0 1px 2px rgba(38, 36, 34, 0.05), 0 24px 48px rgba(38, 36, 34, 0.1);
  --photo-shadow: 0 24px 52px rgba(38, 36, 34, 0.2);
  --feature-pad: 112px;
  --contour-w: max(100%, 1180px);
}

/* ---------- Section rhythm and heads ---------- */
.block--areas, .block--pillars, .block--referral-slip { padding-block: var(--feature-pad); }
.felt-divider + .block--areas { padding-top: 64px; }

.section-head { margin-bottom: 52px; }
.section-head:last-child { margin-bottom: 0; }
.kicker { margin: 0 0 18px; color: var(--accent-text); }
.section-head h2 {
  margin: 0;
  font-family: var(--font-display); font-weight: 500;
  max-width: 18em;
  font-size: clamp(32px, 3.4vw, 46px); line-height: 1.1; letter-spacing: -0.012em;
  text-wrap: balance;
}
.template-home .section-head h2 { font-size: clamp(36px, 4vw, 56px); line-height: 1.08; }
.section-intro { max-width: 38em; margin-top: 18px; color: var(--text-secondary); font-size: 19px; line-height: 1.55; }
.section-intro p { margin: 0 0 0.7em; }
.section-intro > :last-child { margin-bottom: 0; }

/* Lists with a short honey-brown rule for a bullet (cards and the referral slip). */
.area ul, .slip ul {
  display: grid; gap: 8px;
  margin: 0; padding: 18px 0 0; list-style: none;
  border-top: 1px solid var(--line);
  font-size: 15px; line-height: 1.45;
}
.area li, .slip li { display: flex; gap: 12px; }
.area li::before, .slip li::before {
  content: ""; flex: none; width: 14px; height: 1px; margin-top: 0.72em;
  background: var(--accent-text);
}

/* ---------- prose ---------- */
.block--prose .section-head { margin-bottom: 22px; }

/* ---------- areas: cards on contour lines ---------- */
.contours {
  background-image: url(../images/contours-areas-top.svg), url(../images/contours-areas-bottom.svg);
  background-repeat: no-repeat;
  background-position: center top 72px, center bottom 24px;
  background-size: var(--contour-w) 240px, var(--contour-w) 300px;
}
.areas { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.areas--four { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.area {
  position: relative;
  display: flex; flex-direction: column;
  padding: 34px 32px 32px;
  background: var(--card-ground);
  border: 1px solid var(--line); border-top: 3px solid var(--secondary);
  border-radius: var(--radius-md);
  box-shadow: var(--card-shadow);
  transition: box-shadow var(--duration-base) var(--easing-standard), transform var(--duration-base) var(--easing-standard);
}
.area:nth-child(3n + 2) { border-top-color: var(--accent); }
.area:nth-child(3n) { border-top-color: var(--surface-2); }
.area h3 {
  margin: 0 0 14px;
  font-family: var(--font-display); font-weight: 500;
  font-size: 30px; line-height: 1.12; letter-spacing: -0.005em;
  color: var(--secondary);
}
.area p { margin: 0 0 24px; color: var(--text-secondary); }
/* A card whose page is live: the title's link covers the card, which lifts on hover. */
.area h3 a { color: inherit; text-decoration: none; }
.area h3 a::after { content: ""; position: absolute; inset: -3px -1px -1px; border-radius: var(--radius-md); } /* the card's own corners */
.area h3 a:focus-visible { outline: none; }
.area h3 a:focus-visible::after { outline: 2px solid var(--secondary); outline-offset: 3px; }
.area :is(p, li) a { position: relative; z-index: 1; }
.area:has(a):hover { transform: translateY(var(--hover-lift)); box-shadow: var(--card-shadow-raised); }
.area:has(a):hover h3 a { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.18em; }

/* ---------- callout (lipedema) ---------- */
.callout {
  display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 12px 32px; align-items: center;
  padding: 28px 32px;
  background: var(--card-ground);
  border: 1px solid var(--line); border-radius: var(--radius-md);
}
.callout-label {
  margin: 0;
  font-family: var(--font-display); font-weight: 500;
  font-size: 30px; line-height: 1.12; color: var(--secondary);
}
.callout-head .kicker { margin: 0 0 10px; }
.callout-body { color: var(--text-secondary); }
.callout-body p { margin: 0 0 0.6em; }
.callout-body > :last-child { margin-bottom: 0; }
/* Straight after the area cards it joins their ground: 28px under the cards, contours below. */
.block--areas:has(+ .block--callout) { padding-bottom: 0; }
.block--areas.contours:has(+ .block--callout) { background-image: url(../images/contours-areas-top.svg); background-size: var(--contour-w) 240px; background-position: center top 72px; }
.block--areas + .block--callout { padding-block: 28px var(--feature-pad); }
/* A line that leads into a box ("We remain available for support:") sits just above it (Caitlin and Dr. Yim,
   2026-11-21): the referring clinicians page's follow-up section and its physician-to-physician box. */
.watermarked:has(+ .block--callout) > .block--prose { padding-bottom: 0; }
.watermarked:has(+ .block--callout) > .watermark { width: 280px; height: 280px; }   /* the shorter section keeps the whole mark */
.watermarked + .block--callout { padding-top: 20px; }
.block--areas.contours + .block--callout {
  background: url(../images/contours-areas-bottom.svg) center bottom 28px / var(--contour-w) 300px no-repeat;
}

/* ---------- promise: the seal and the promise on soft felt ---------- */
.block--promise { position: relative; overflow: hidden; padding-block: 128px 136px; text-align: center; }
.block--promise::before {
  content: ""; position: absolute; left: 50%; top: 50%; width: 900px; height: 900px;
  transform: translate(-50%, -50%); pointer-events: none;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--accent) 30%, transparent), color-mix(in srgb, var(--accent) 10%, transparent) 55%, transparent);
}
.block--promise .wrap { position: relative; }
.seal { width: 76px; height: 76px; margin: 0 auto 36px; }
.block--promise blockquote {
  max-width: 18em; margin: 0 auto;
  font-family: var(--font-display); font-style: italic; font-weight: 400;
  font-size: clamp(32px, 3.8vw, 54px); line-height: 1.18;
  color: var(--foundation);
  text-wrap: balance;
}
.block--promise p { max-width: 34em; margin: 30px auto 0; color: var(--surface); }

/* ---------- pillars: numbered, beside a figure ---------- */
.block--pillars {
  background: url(../images/contours-pillars.svg) center bottom 10px / var(--contour-w) 120px no-repeat;
}
.pillars-layout { max-width: 820px; }
.pillars-layout--figure {
  display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 88px; align-items: center;
  max-width: 1240px;
}
.pillars-copy .section-head { margin-bottom: 30px; }
.photo { margin: 0; }
.photo img, .figure img {
  width: 100%; border-radius: 20px; box-shadow: var(--photo-shadow);
}
.photo img { aspect-ratio: 4 / 5; object-fit: cover; }
.photo figcaption, .figure figcaption { margin-top: 16px; color: var(--text-secondary); }
.pillars { margin: 0; padding: 0; list-style: none; counter-reset: pillar; }
.pillars li {
  counter-increment: pillar;
  display: grid; grid-template-columns: 44px minmax(0, 1fr); column-gap: 30px; align-items: start;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}
.pillars li:first-child { border-top: 1px solid var(--line); }
.pillars li::before {
  content: counter(pillar);
  grid-row: span 2;
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  box-shadow: inset 0 0 0 1px var(--surface-1);
  font-family: var(--font-display); font-style: italic; font-weight: 400; font-size: 22px; line-height: 1;
  color: var(--secondary);
}
.pillars h3 { margin: 0 0 4px; font-size: 19px; line-height: 1.35; font-weight: 700; color: var(--text-primary); }
.pillars p { margin: 0; color: var(--text-secondary); }

/* ---------- the watermark on light grounds (data.watermark, partials/sections.html) ----------
   A faint brandmark behind a section with wide white space (Sarah, 2026-11-05). The wrapper isolates
   it, so it sits behind the section's copy and never over it. */
.watermarked { position: relative; overflow: hidden; isolation: isolate; }
.watermarked > .watermark {
  position: absolute; z-index: -1; right: -60px; top: 50%; translate: 0 -50%;
  width: 420px; height: 420px; opacity: 0.06; pointer-events: none;
}

/* ---------- section buttons (data.actions, partials/section-head.html) ---------- */
.section-actions { margin-top: 28px; align-items: center; }
/* data.actions_fax (the fax number beside the buttons) and data.actions_note (a line beneath them) */
.actions-fax { margin: 0; font-weight: 600; color: var(--text-primary); }
.actions-note { margin: 12px 0 0; color: var(--text-secondary); }
/* A list in a call-out (physician-to-physician support): one channel per line, no bullets. */
.callout-body ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.callout-body li strong { color: var(--text-primary); }

/* ---------- referral slip: felt, faint contours, the watermark and the fax card ---------- */
.block--referral-slip {
  position: relative; overflow: hidden;
  background-image: url(../images/contours-felt-top.svg), url(../images/contours-felt-bottom.svg), url(../images/felt-texture-soft.png);
  background-repeat: no-repeat, no-repeat, repeat;
  background-position: center top 36px, center bottom 56px, 0 0;
  background-size: var(--contour-w) 190px, var(--contour-w) 150px, 260px;
  background-blend-mode: normal, normal, soft-light;
}
.block--referral-slip .watermark {
  position: absolute; right: -110px; bottom: -150px; width: 520px; height: 520px;
  opacity: 0.07; pointer-events: none;
}
.refer-layout {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 80px; align-items: center;
}
.block--referral-slip .kicker { color: var(--surface-low); }
.refer-copy .section-intro { color: var(--surface); font-size: 17px; }
.felt .section-intro a { color: var(--foundation); }
.slip {
  padding: 36px 36px 32px;
  background: var(--card-ground); color: var(--text-primary);
  border-radius: var(--radius-md);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.28);
}
.slip-label { margin: 0; color: var(--text-secondary); }
.fax {
  margin: 12px 0 22px;
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(40px, 3.5vw, 50px); line-height: 1; letter-spacing: -0.01em; white-space: nowrap;
  font-variant-numeric: lining-nums tabular-nums;
  color: var(--secondary);
}
.slip ul { margin-bottom: 26px; color: var(--text-secondary); }
.slip-link { margin: 0; }
.slip a { color: var(--secondary); text-underline-offset: 4px; }
.slip-link a { font-weight: 700; }
.slip :focus-visible { outline-color: var(--secondary); }
/* The slip is a light card on felt: placeholders take the light-ground wash. */
.slip .todo { background: var(--accent-tint); color: var(--text-secondary); }
.slip .todo::before { color: var(--accent-text); }
/* The physician-to-physician box right after the referral section joins its felt (Sarah, 2026-11-22: "into the
   burgundy background with the rest of the section", so referring providers don't miss it). The referral section
   gives up its bottom contours and edge, the box's section takes the felt and those contours, and the watermark
   moves to the top corner so the join doesn't cut through it. The box stays a light card, like the slip, so its
   colours (and their contrast) don't change. */
.block--referral-slip:has(+ .block--callout) {
  padding-bottom: 40px;
  background-image: url(../images/contours-felt-top.svg), url(../images/felt-texture-soft.png);
  background-repeat: no-repeat, repeat;
  background-position: center top 36px, 0 0;
  background-size: var(--contour-w) 190px, 260px;
  background-blend-mode: normal, soft-light;
}
.block--referral-slip:has(+ .block--callout) .watermark { bottom: auto; top: -150px; }
.block--referral-slip + .block--callout {
  padding-block: 0 var(--feature-pad);
  background-color: var(--secondary);
  background-image: url(../images/contours-felt-bottom.svg), url(../images/felt-texture-soft.png);
  background-repeat: no-repeat, repeat;
  background-position: center bottom 56px, 0 0;
  background-size: var(--contour-w) 150px, 260px;
  background-blend-mode: normal, soft-light;
}
.block--referral-slip + .block--callout .callout { position: relative; border: 0; box-shadow: 0 30px 60px rgba(0, 0, 0, 0.28); }

/* ---------- steps: a numbered sequence ---------- */
.steps {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 40px 32px;
  margin: 0; padding: 0; list-style: none; counter-reset: step;
}
.steps li { counter-increment: step; position: relative; padding-top: 70px; }
.steps li::before {
  content: counter(step);
  position: absolute; top: 0; left: 0;
  display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%;
  background: var(--secondary); color: var(--on-secondary);
  font-family: var(--font-display); font-style: italic; font-weight: 400; font-size: 22px; line-height: 1;
}
.steps li:not(:last-child)::after {
  content: ""; position: absolute; top: 23px; left: 62px; right: -16px; height: 1px;
  background: var(--surface-1);
}
.steps h3 { margin: 0 0 6px; font-size: 19px; line-height: 1.35; font-weight: 700; }
.steps p { margin: 0; color: var(--text-secondary); }

/* ---------- faq: the heading beside the questions ---------- */
.faq-layout--head { display: grid; grid-template-columns: minmax(0, 0.75fr) minmax(0, 1.25fr); gap: 64px; align-items: start; }
.faq-layout--head .section-head { margin-bottom: 0; }
.faq { border-top: 1px solid var(--line); }
.faq-layout:not(.faq-layout--head) .faq { max-width: 52rem; }
.faq-item { padding: 26px 0 24px; border-bottom: 1px solid var(--line); }
.faq h3 {
  margin: 0 0 8px;
  font-family: var(--font-display); font-weight: 500;
  font-size: 24px; line-height: 1.25; color: var(--text-primary);
}
.faq-answer { max-width: 38em; color: var(--text-secondary); }
.faq-answer p { margin: 0 0 0.6em; }
.faq-answer > :last-child { margin-bottom: 0; }

/* ---------- scope: what we see, and how we support what we don't ---------- */
.scope { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; align-items: start; }
.scope-card {
  padding: 34px 32px 14px;
  background: var(--card-ground);
  border: 1px solid var(--line); border-top: 3px solid var(--secondary);
  border-radius: var(--radius-md);
  box-shadow: var(--card-shadow);
}
.scope-card + .scope-card { border-top-color: var(--accent); }
.scope-card > :is(h2, h3) {
  margin: 0 0 18px;
  font-family: var(--font-display); font-weight: 500;
  font-size: 28px; line-height: 1.15; letter-spacing: -0.005em; color: var(--secondary);
}
.scope-card dl { margin: 0; }
.scope-card dl > div { padding: 16px 0 18px; border-top: 1px solid var(--line); }
.scope-card dt { font-weight: 700; color: var(--text-primary); }
.scope-card dd { margin: 4px 0 0; color: var(--text-secondary); }
/* One card (no right-hand card): full width, its entries in two columns on wide screens. */
.scope--single { grid-template-columns: minmax(0, 1fr); }
.scope--single .scope-card dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 40px; }
/* "Conditions we don't see": a quieter box at the end of the "What we see" card. */
.not-seen {
  margin: 8px 0 20px; padding: 20px 22px 18px;
  border: 1px solid var(--line); border-left: 3px solid var(--surface-2); border-radius: var(--radius-md);
}
.not-seen > :is(h3, h4) { margin: 0 0 8px; font-size: 17px; line-height: 1.35; font-weight: 700; color: var(--text-primary); }
.not-seen ul { display: flex; flex-wrap: wrap; gap: 6px 28px; margin: 0; padding-left: 1.1em; color: var(--text-secondary); }

/* ---------- contact: the facts in one card, and a link out to a map ---------- */
.contact {
  display: grid; grid-template-columns: minmax(0, 1.35fr) repeat(3, minmax(0, 1fr));
  background: var(--card-ground);
  border: 1px solid var(--line); border-top: 3px solid var(--secondary);
  border-radius: var(--radius-md);
  box-shadow: var(--card-shadow);
}
.contact-item { padding: 32px 30px 30px; }
.contact-item + .contact-item { border-left: 1px solid var(--line); }
.contact .contact-label { margin: 0 0 12px; color: var(--text-secondary); }
.contact address, .contact p { margin: 0; font-style: normal; }
.contact-number { font-family: var(--font-display); font-weight: 500; font-size: 27px; line-height: 1.15; font-variant-numeric: lining-nums tabular-nums; color: var(--secondary); white-space: nowrap; }
.contact-number a { color: inherit; text-decoration-color: color-mix(in srgb, currentColor 35%, transparent); }
.contact-number a:hover { text-decoration-color: currentColor; }
.contact .contact-map { margin-top: 16px; }
.contact-map a { font-weight: 700; text-underline-offset: 4px; }

/* ---------- map: a picture of the map until the visitor asks for Google's (site.js swaps it in) ---------- */
.block--contact + .block--map { padding-top: 0; }
.map-frame {
  position: relative; overflow: hidden;
  aspect-ratio: 1176 / 560;
  background: var(--card-ground);
  border: 1px solid var(--line); border-radius: var(--radius-md);
  box-shadow: var(--card-shadow);
}
.map-frame picture, .map-frame img { width: 100%; height: 100%; }
.map-frame img { object-fit: cover; object-position: 50% 50%; }
.map-load { position: absolute; left: 50%; bottom: 24px; transform: translateX(-50%); box-shadow: var(--card-shadow-raised); white-space: nowrap; }
.map-load[hidden], .map-note[hidden] { display: none; }
.map-embed { display: block; width: 100%; height: 100%; border: 0; }
.map-credit { margin: 10px 0 0; color: var(--text-secondary); font-size: 13px; }
.map-credit a { color: inherit; }
.map-note { max-width: 44em; margin: 6px 0 0; color: var(--text-secondary); font-size: 15px; }
.map-links { display: flex; flex-wrap: wrap; gap: 10px 32px; margin: 22px 0 0; padding: 0; list-style: none; }
.map-links a { font-weight: 700; text-underline-offset: 4px; }

/* ---------- team: every live clinician's full bio, one after another ---------- */
.bios { display: grid; gap: 0; max-width: 980px; border-top: 1px solid var(--line); }
.bio { padding: 40px 0 38px; border-bottom: 1px solid var(--line); scroll-margin-top: 24px; }
.bio--photo { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 48px; align-items: start; }
.bio-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius-md); }
.bio h3 {
  margin: 0 0 8px;
  font-family: var(--font-display); font-weight: 500;
  font-size: 32px; line-height: 1.15; color: var(--secondary);
}
.bio-copy > p { margin: 0; }
.person-credentials { color: var(--text-secondary); }
.bio .person-role { margin-top: 4px; font-weight: 600; }
.bio-text { max-width: 40em; margin-top: 20px; }
.bio-text > :last-child { margin-bottom: 0; }
.bio-links { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-top: 18px !important; font-size: 15px; }
.bio-links a { color: var(--text-secondary); text-underline-offset: 4px; }
.bio-links a:hover { color: var(--secondary); }

/* ---------- figure: one image with its caption ---------- */
.figure { max-width: 1000px; margin: 0; }
.figure--portrait { max-width: 560px; }

/* ---------- disclosures: each live clinician's own statement ---------- */
.disclosures { border-top: 1px solid var(--line); }
.disclosure {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 10px 48px;
  padding: 28px 0; border-bottom: 1px solid var(--line);
}
.disclosure h3 { margin: 0 0 6px; font-family: var(--font-display); font-weight: 500; font-size: 24px; line-height: 1.2; }
.disclosure h3 a { color: var(--secondary); text-decoration-color: color-mix(in srgb, currentColor 35%, transparent); }
.disclosure-who p { margin: 0; color: var(--text-secondary); }
.disclosure-text { max-width: 38em; color: var(--text-secondary); }
.disclosure-text p { margin: 0 0 0.6em; }
.disclosure { scroll-margin-top: 24px; }
.disclosure-text > :last-child { margin-bottom: 0; }
.disclosure-text .disclosure-updated { margin-top: 12px; font-size: 13px; }


/* ---------- waits: typical waits by service, and the opening line above them ---------- */
.timing {
  max-width: 38em; margin: 0 0 28px; padding-left: 16px;
  border-left: 3px solid var(--accent);
  color: var(--text-primary); font-weight: 600;
}
.waits { width: 100%; border-collapse: collapse; }
.waits caption { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.waits th, .waits td { padding: 20px 24px 18px 0; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.waits thead th {
  padding-block: 0 12px; border-bottom-color: var(--surface-1);
  font-family: var(--font-mono); font-size: 12px; font-weight: 400; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--text-secondary);
}
.waits tbody th {
  width: 36%;
  font-family: var(--font-display); font-weight: 500; font-size: 24px; line-height: 1.2; color: var(--secondary);
}
.waits td.wait-value { font-weight: 600; text-wrap: balance; }
.wait-with { color: var(--text-secondary); }
.wait-note { display: block; margin-top: 6px; font-family: var(--font-body); font-size: 15px; font-weight: 400; line-height: 1.45; color: var(--text-secondary); }
.waits-updated { max-width: 44em; margin: 24px 0 0; color: var(--text-secondary); }
.wait-figure + .waits-updated { max-width: 560px; }
.waits-updated time { white-space: nowrap; }
.waits-updated--stale {
  padding: 18px 22px;
  background: var(--card-ground); color: var(--text-primary);
  border: 1px solid var(--line); border-left: 3px solid var(--accent); border-radius: var(--radius-md);
}
.wait-figure {
  max-width: 560px; padding: 28px 32px 26px;
  background: var(--card-ground);
  border: 1px solid var(--line); border-top: 3px solid var(--secondary);
  border-radius: var(--radius-md);
  box-shadow: var(--card-shadow);
}
.wait-figure p { margin: 0; }
.wait-figure .wait-label { margin-bottom: 12px; color: var(--text-secondary); }
.wait-figure .wait-service { font-weight: 700; }
.wait-figure .wait-value { margin-top: 4px; font-family: var(--font-display); font-weight: 500; font-size: 30px; line-height: 1.15; color: var(--secondary); text-wrap: balance; }
.wait-figure .wait-with { margin-top: 10px; }
.waits-link { margin: 24px 0 0; }
.waits-link a { font-weight: 700; text-underline-offset: 4px; }

/* ---------- Narrow desktops: the contact card goes 2 x 2 before its numbers run out of room ---------- */
@media (max-width: 1180px) {
  .areas--four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .contact { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .contact-item--address { grid-column: 1 / -1; }
  .contact-item + .contact-item { border-left: 0; border-top: 1px solid var(--line); }
  .contact-item:nth-child(3) { border-left: 1px solid var(--line); }
  .contact-item:nth-child(4) { grid-column: 1 / -1; }
}

/* ---------- Tablets and phones ---------- */
@media (max-width: 980px) {
  :root { --feature-pad: 72px; --contour-w: max(100%, 980px); }
  .block { padding-block: 52px; }
  .block--areas, .block--pillars, .block--referral-slip { padding-block: var(--feature-pad); }
  .block--promise { padding-block: 88px 96px; }
  .felt-divider + .block--areas { padding-top: 48px; }
  .section-head { margin-bottom: 36px; }
  .section-intro { font-size: 18px; }
  .contours { background-position: center top 20px, center bottom 8px; background-size: var(--contour-w) 140px, var(--contour-w) 200px; }
  .block--areas.contours:has(+ .block--callout) { background-position: center top 20px; background-size: var(--contour-w) 140px; }
  .block--areas.contours + .block--callout { background-position: center bottom 8px; background-size: var(--contour-w) 200px; }
  .block--pillars { background-position: center bottom 6px; background-size: var(--contour-w) 64px; }

  .areas, .areas--four { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .scope--single .scope-card dl { grid-template-columns: minmax(0, 1fr); }
  .area { padding: 28px 24px 26px; }
  .area h3 { font-size: 28px; }
  .area p { margin-bottom: 20px; }
  .block--areas + .block--callout { padding-top: 20px; }

  .callout { grid-template-columns: minmax(0, 1fr); gap: 8px; padding: 24px; }
  .callout-label { font-size: 28px; }

  .seal { width: 64px; height: 64px; margin-bottom: 28px; }
  .block--promise p { margin-top: 24px; }

  .pillars-layout--figure { grid-template-columns: minmax(0, 1fr); gap: 48px; }
  .photo { max-width: 460px; }
  .pillars li { column-gap: 18px; padding-block: 20px; }

  .refer-layout { grid-template-columns: minmax(0, 1fr); gap: 44px; }
  .block--referral-slip .watermark { right: -70px; bottom: -90px; width: 300px; height: 300px; }
  .block--referral-slip:has(+ .block--callout) .watermark { bottom: auto; top: -90px; }
  .slip { padding: 28px 24px 26px; }

  .steps { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .steps li { padding: 0 0 30px 66px; min-height: 46px; }
  .steps li:last-child { padding-bottom: 0; }
  .steps li:not(:last-child)::after { top: 54px; bottom: 8px; left: 23px; right: auto; width: 1px; height: auto; }
  .steps h3 { padding-top: 10px; }

  .faq-layout--head { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .faq h3 { font-size: 22px; }

  .scope { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .scope-card { padding: 28px 24px 10px; }
  .scope-card > :is(h2, h3) { font-size: 26px; }

  .contact-item { padding: 26px 24px 24px; }

  .bio { padding-block: 32px 30px; }
  .bio--photo { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .bio-photo { max-width: 280px; }
  .bio h3 { font-size: 28px; }

  .disclosure { grid-template-columns: minmax(0, 1fr); gap: 8px; padding-block: 24px; }

  .watermarked > .watermark { right: -70px; width: 280px; height: 280px; }
}

@media (max-width: 520px) {
  /* Each service becomes its own block: the name, the wait, then who it is with. The column
     headings stay for assistive technology and the cells keep their table roles (see the markup). */
  .waits thead { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip-path: inset(50%); }
  .waits, .waits tbody { display: block; }
  .waits tr { display: grid; grid-template-columns: minmax(0, 1fr); gap: 4px; padding: 20px 0 18px; border-bottom: 1px solid var(--line); }
  .waits tbody tr:first-child { padding-top: 4px; }
  .waits th, .waits td { display: block; padding: 0; border: 0; }
  .waits tbody th { width: auto; font-size: 23px; }
  .waits td.wait-with:empty { display: none; }
  .waits td.wait-with::before { content: "With "; }
  .wait-figure { padding: 24px 24px 22px; }
  .wait-figure .wait-value { font-size: 27px; }

  .contact { grid-template-columns: minmax(0, 1fr); }
  .contact-item:nth-child(3) { border-left: 0; }
  .contact-number { font-size: 25px; }

  /* A taller map on a phone, cropped to the middle so the pin stays in view. */
  .map-frame { aspect-ratio: 4 / 3; }
  .map-load { bottom: 16px; }
}
