/* Prestige Dental: Taste side-by-side test (staging-taste)
   Direction: "The split stage" (tasteskill v2). One half of the screen is a clinic photo that stays put
   and changes as you read; the other half is the reading column.
   Layout only. Colours, faces and the one radius come from brand.css or bold.css. */

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font-text); font-size: var(--step-body); line-height: 1.6; letter-spacing: var(--text-track, 0); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
h1, h2, h3, p, figure, blockquote, ul, ol, dl, dd { margin: 0; }
ul[class], ol[class] { padding: 0; list-style: none; }
img { display: block; max-width: 100%; height: auto; }
svg { display: block; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
a { color: inherit; }
::selection { background: var(--accent); color: var(--accent-ink); }
:focus-visible { outline: 2px solid var(--focus, var(--accent)); outline-offset: 3px; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 50; padding: 12px 18px; background: var(--ink); color: var(--bg); border-radius: var(--radius); }
.skip:focus { top: 12px; }

/* ---------- type ---------- */
h1, h2, h3 { font-family: var(--font-display); font-weight: var(--display-weight); color: var(--heading-ink, var(--ink)); text-wrap: balance; }
h1 { font-size: var(--step-hero); line-height: var(--display-lead); letter-spacing: var(--display-track); }
h2 { font-size: var(--step-head); line-height: 1.08; letter-spacing: var(--display-track); }
h3 { font-size: var(--step-lead); line-height: 1.25; letter-spacing: -0.01em; font-weight: var(--h3-weight, var(--display-weight)); }
p { max-width: 64ch; text-wrap: pretty; }
p + p { margin-top: 1em; }
.lead { font-size: var(--step-lead); line-height: 1.45; }
.small { font-size: var(--step-small); line-height: 1.5; }
.muted { color: var(--muted); }
.nums { font-variant-numeric: tabular-nums; }
.prose a, .link { text-decoration: underline; text-underline-offset: 0.2em; text-decoration-thickness: 0.07em; color: var(--link, var(--ink)); }
.prose strong, .run-in { font-weight: 600; color: var(--ink); }

/* ---------- buttons: one shape, decided by --radius ---------- */
.button { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 24px; background: var(--accent); color: var(--accent-ink); border-radius: var(--radius); font-weight: 600; font-size: 1rem; text-decoration: none; letter-spacing: 0.005em; transition: transform var(--t-press) var(--ease-out), background-color var(--t-hover) ease; }
.button svg { width: 20px; height: 20px; flex: none; }
.button:active { transform: scale(0.97); }
.button.is-paper { background: var(--bg); color: var(--ink); }
@media (hover: hover) and (pointer: fine) {
  .button:hover { background: var(--accent-hover); }
  .button.is-paper:hover { background: var(--surface); }
  .prose a:hover, .link:hover { text-decoration-thickness: 0.14em; }
}

/* ---------- the split ---------- */
.split { display: grid; grid-template-columns: minmax(0, 48fr) minmax(0, 52fr); gap: 12px; padding: 12px 12px 0; }
.split.is-flipped { grid-template-columns: minmax(0, 52fr) minmax(0, 48fr); }
.split.is-flipped .stage { order: -1; }
.reading { min-width: 0; }
.stage { position: sticky; top: 12px; align-self: start; }
.stage-frame { position: relative; aspect-ratio: 6 / 5; max-height: calc(100svh - 24px - 64px); width: 100%; overflow: hidden; border-radius: var(--radius) var(--radius) 0 0; background: var(--surface); }
.stage-frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1.2s var(--ease-soft); }
.stage-frame img.is-on { opacity: 1; }
.stage-caption { position: absolute; left: 0; bottom: 0; max-width: 70%; padding: 10px 16px; background: var(--bg); color: var(--ink); font-size: var(--step-small); line-height: 1.4; border-top-right-radius: var(--radius); }
.stage-bar { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 64px; padding: 10px 20px; background: var(--bar-bg); color: var(--bar-ink); border-radius: 0 0 var(--radius) var(--radius); font-size: 0.9375rem; line-height: 1.35; }
.stage-bar a { color: inherit; }
.stage-bar .status { font-weight: 600; }
.dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--open); margin-right: 8px; vertical-align: 1px; }
.is-closed .dot { background: var(--closed); }

/* the photo that each section carries on narrow screens (the stage is hidden there) */
.inline-photo { display: none; }

/* ---------- reading column sections ---------- */
.sheet { min-height: calc(100svh - 24px); display: flex; flex-direction: column; padding: 28px clamp(24px, 3vw, 48px) 40px; background: var(--paper); border-radius: var(--radius); }
.menu { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; font-size: 0.9375rem; }
.menu a { text-decoration: none; padding: 10px 0; }
.menu .m-left { justify-self: start; display: flex; gap: 22px; }
.menu .m-right { justify-self: end; display: flex; gap: 22px; }
.menu .brand img { width: clamp(150px, 15vw, 210px); height: auto; }
.menu a:not(.brand) { position: relative; }
.menu a:not(.brand)::after { content: ""; position: absolute; left: 0; right: 0; bottom: 4px; height: 2px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform var(--t-ui) var(--ease-out); }
@media (hover: hover) { .menu a:not(.brand):hover::after { transform: scaleX(1); } }
.hero-body { margin-top: clamp(40px, 9svh, 110px); text-align: center; display: flex; flex-direction: column; align-items: center; }
.hero-body h1 { max-width: 20ch; color: var(--hero-ink, var(--heading-ink, var(--ink))); }
.hero-body .lead { margin-top: 32px; max-width: 42ch; }
.hero-body .button { margin-top: 32px; }
.crumbs { display: flex; gap: 8px; justify-content: center; margin-bottom: 20px; font-size: var(--step-small); color: var(--muted); }
.crumbs a { color: inherit; }

/* the branch picker (the live thing) */
.picker { margin-top: auto; padding-top: 48px; }
.picker-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 6px; background: var(--surface); border-radius: var(--radius); }
.picker-tabs button { min-height: 48px; border-radius: var(--radius); font-weight: 600; font-size: 0.9375rem; color: var(--muted); transition: background-color var(--t-hover) ease, color var(--t-hover) ease, transform var(--t-press) var(--ease-out); }
.picker-tabs button[aria-selected="true"] { background: var(--bg); color: var(--ink); }
.picker-tabs button:active { transform: scale(0.98); }
.picker-tabs { display: none; }
.js .picker-tabs { display: grid; }
.branch { display: grid; grid-template-columns: 1fr auto; gap: 6px 24px; align-items: start; padding: 22px 4px 0; font-size: 0.9375rem; line-height: 1.5; text-align: left; }
.branch + .branch { margin-top: 18px; }
.js .branch + .branch { margin-top: 0; }
.js .branch[hidden] { display: none; }
.branch .b-name { grid-column: 1 / -1; font-weight: 600; font-size: 1rem; }
.branch .b-status { grid-column: 1 / -1; font-weight: 600; }
.branch .b-links { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; text-align: right; }
.branch .b-links a { font-weight: 600; }

.block { padding: clamp(72px, 9vw, 120px) clamp(24px, 4vw, 64px); }
.block > h2 { max-width: 20ch; }
.block > h2 + * { margin-top: 28px; }
.intro p:first-of-type { font-size: var(--step-lead); line-height: 1.45; color: var(--ink); }
.intro p { color: var(--ink); }
.facts { margin-top: 40px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 32px; }
.facts li { display: flex; flex-direction: column; gap: 2px; }
.facts b { font-family: var(--font-display); font-weight: var(--display-weight); font-size: var(--step-lead); line-height: 1.2; color: var(--heading-ink, var(--ink)); }
.facts span { color: var(--muted); font-size: 0.9375rem; }
.toc { margin-top: 36px; padding: 22px 24px; background: var(--surface); border-radius: var(--radius); }
.toc h3 { font-family: var(--font-text); font-size: 1rem; font-weight: 600; }
.toc ul { margin-top: 10px; display: grid; gap: 6px; }
.toc a { text-underline-offset: 0.2em; }

/* active list */
.rows { margin-top: 40px; }
.row { padding: 22px 0 26px; }
.row + .row { margin-top: 6px; }
.row-head { display: flex; justify-content: space-between; align-items: baseline; gap: 20px; }
.row-head h3 a { text-decoration: none; }
.row-head h3 { transition: color var(--t-ui) ease, transform var(--t-ui) var(--ease-out); }
.row-tag { flex: none; font-size: 0.9375rem; color: var(--muted); }
.row p { margin-top: 10px; color: var(--ink); }
.row .link { display: inline-block; margin-top: 12px; font-weight: 600; font-size: 0.9375rem; }
.row.is-active h3 { color: var(--accent-text, var(--accent)); transform: translateX(6px); }
.row-mark { display: inline-block; width: 0; height: 2px; background: var(--accent-text, var(--accent)); vertical-align: middle; margin-right: 0; transition: width var(--t-ui) var(--ease-out), margin var(--t-ui) var(--ease-out); }
.row.is-active .row-mark { width: 18px; margin-right: 10px; }

/* itinerary slip on a field */
.field { background: var(--field); color: var(--field-ink); border-radius: var(--radius); --heading-ink: var(--field-ink); --link: var(--field-ink); --ink: var(--field-ink); --muted: var(--field-muted, var(--field-ink)); --accent-text: var(--accent); }
.field p { color: var(--field-ink); }
.field .prose a { color: var(--field-ink); }
.field .slip p, .field .slip span { color: var(--slip-ink); }
.field .slip small { color: var(--slip-muted); }
.field .slip .slip-total, .field .slip .slip-total span { color: var(--paper-slip); }
ol.slip, .slip { margin-top: 44px; max-width: 480px; padding: 30px 28px 18px; background: var(--paper-slip); color: var(--slip-ink); font-variant-numeric: tabular-nums; clip-path: polygon(0 0, 100% 0, 100% calc(100% - 12px), 96% 100%, 92% calc(100% - 12px), 88% 100%, 84% calc(100% - 12px), 80% 100%, 76% calc(100% - 12px), 72% 100%, 68% calc(100% - 12px), 64% 100%, 60% calc(100% - 12px), 56% 100%, 52% calc(100% - 12px), 48% 100%, 44% calc(100% - 12px), 40% 100%, 36% calc(100% - 12px), 32% 100%, 28% calc(100% - 12px), 24% 100%, 20% calc(100% - 12px), 16% 100%, 12% calc(100% - 12px), 8% 100%, 4% calc(100% - 12px), 0 100%); }
.slip h3 { font-family: var(--font-text); font-size: 1rem; font-weight: 700; color: var(--slip-ink); letter-spacing: 0; }
.slip > h3:not(:first-child), .slip li + li h3 { margin-top: 28px; }
.slip-row { display: grid; grid-template-columns: auto 1fr auto; align-items: baseline; gap: 10px; margin-top: 12px; font-size: 1rem; line-height: 1.45; }
.slip-row .lead-dots { align-self: end; height: 4px; margin-bottom: 7px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='4'%3E%3Ccircle cx='2' cy='2' r='1.6' fill='%23888'/%3E%3C/svg%3E"); background-size: 8px 4px; background-repeat: repeat-x; }
.slip-row small { grid-column: 1 / -1; display: block; font-size: 0.9375rem; color: var(--slip-muted); margin-top: -4px; }
.slip-total { display: flex; justify-content: space-between; gap: 16px; margin: 30px -28px 0; padding: 12px 28px; background: var(--slip-ink); color: var(--paper-slip); font-weight: 600; font-size: 1rem; }

/* faq as reading text */
.faq-text { margin-top: 36px; display: grid; gap: 22px; }
.faq-text p { color: var(--ink); }
.faq-text .q { font-weight: 600; }
.faq-text p + p { margin-top: 0; }

/* branches */
.branches { margin-top: 40px; display: grid; gap: 44px; }
.branches article h3 { font-size: var(--step-lead); }
.branches dl { margin-top: 16px; display: grid; grid-template-columns: 7.5em 1fr; gap: 8px 16px; font-size: 1rem; }
.branches dt { color: var(--muted); }
.branches .b-actions { margin-top: 22px; display: flex; flex-wrap: wrap; gap: 12px 22px; align-items: center; }
.branches .b-actions a:not(.button) { font-weight: 600; }

/* ---------- full-width sections ---------- */
.wide { padding: clamp(96px, 12vw, 200px) clamp(24px, 4vw, 64px); }
.wide-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 0 clamp(16px, 2vw, 32px); }
.doctors-head { grid-column: 1 / 5; align-self: start; position: sticky; top: 40px; }
.doctors-head p { margin-top: 24px; }
.doctors-head .link { display: inline-block; margin-top: 24px; font-weight: 600; }
.doctor-list { grid-column: 6 / 13; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 56px 40px; }
.doctor { display: grid; grid-template-columns: 112px 1fr; gap: 18px; align-items: start; }
.doctor img { width: 112px; height: 112px; object-fit: cover; border-radius: var(--radius); background: var(--surface); }
.doctor h3 { font-size: 1.25rem; }
.doctor .role { margin-top: 4px; font-size: 0.9375rem; font-weight: 600; color: var(--ink); }
.doctor .quals { margin-top: 6px; font-size: 0.9375rem; color: var(--muted); }
.doctor .focus { margin-top: 8px; font-size: 1rem; }

.fees { background: var(--surface); }
.fees-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 0 clamp(16px, 2vw, 32px); align-items: start; }
.fees-main { grid-column: 1 / 8; }
.fees-side { grid-column: 9 / 13; padding-top: 8px; }
.fees-main h2 { max-width: 18ch; }
table.fee-table { margin-top: 40px; width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.fee-table th, .fee-table td { text-align: left; padding: 18px 0; vertical-align: top; border-bottom: 1px solid var(--table-line); }
.fee-table thead th { font-size: 0.9375rem; color: var(--muted); font-weight: 600; padding-top: 0; }
.fee-table td:last-child, .fee-table th:last-child { text-align: right; white-space: nowrap; padding-left: 24px; }
.fee-table td:last-child { font-family: var(--font-display); font-weight: var(--display-weight); font-size: var(--step-lead); color: var(--heading-ink, var(--ink)); }
.fee-table td small { display: block; margin-top: 4px; font-size: 0.9375rem; color: var(--muted); }
.fee-note { margin-top: 24px; }
.fees-side h3 { font-size: var(--step-lead); }
.fees-side ul { margin-top: 18px; padding-left: 1.2em; display: grid; gap: 10px; }
.fees-side .button { margin-top: 32px; }

.closing { position: relative; min-height: 90svh; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); align-items: end; padding: 0 clamp(24px, 4vw, 64px) clamp(56px, 8vw, 110px); color: #fff; overflow: hidden; }
.closing > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: brightness(0.5); }
.closing-text { position: relative; grid-column: 7 / 13; --heading-ink: #fff; }
.closing-text h2 { color: #fff; }
.closing-text p { margin-top: 20px; max-width: 46ch; color: #fff; }
.closing-text .actions { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 14px 24px; align-items: center; }
.closing-text .actions a:not(.button) { color: #fff; font-weight: 600; }

/* ---------- footer ---------- */
.footer { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); min-height: 100svh; background: var(--foot-bg); color: var(--foot-ink); }
.footer > figure { position: relative; overflow: hidden; }
.footer > figure img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.foot-body { padding: 64px clamp(24px, 4vw, 64px) 32px; display: flex; flex-direction: column; }
.foot-body .brand img { width: 170px; height: auto; }
.foot-menu { margin-top: 56px; display: grid; gap: 14px; }
.foot-menu a { font-family: var(--font-display); font-weight: var(--display-weight); font-size: clamp(1.5rem, 2.4vw, 2.375rem); line-height: 1.15; letter-spacing: var(--display-track); text-decoration: none; display: inline-block; transition: transform var(--t-ui) var(--ease-out), opacity var(--t-ui) ease; }
@media (hover: hover) {
  .foot-menu:hover a { opacity: 0.55; }
  .foot-menu a:hover { opacity: 1; transform: translateX(12px); }
}
.foot-cols { margin-top: 56px; display: grid; grid-template-columns: 1fr 1fr; gap: 28px; font-size: 0.9375rem; line-height: 1.55; }
.foot-cols h2 { font-family: var(--font-text); font-size: 1rem; font-weight: 600; letter-spacing: 0; color: var(--foot-ink); margin-bottom: 8px; }
.foot-cols address { font-style: normal; }
.foot-cols a { color: inherit; }
.foot-legal { margin-top: auto; padding-top: 48px; font-size: var(--step-small); line-height: 1.5; color: var(--foot-muted); display: grid; gap: 6px; }
.foot-legal a { color: inherit; }
.foot-legal p { max-width: none; }

/* phone quick-contact bar */
.action-bar { display: none; }

/* ---------- narrow screens: the split becomes one column, each section carries its own photo ---------- */
@media (max-width: 1023px) {
  .split, .split.is-flipped { grid-template-columns: minmax(0, 1fr); gap: 0; padding: 0; }
  .stage { display: none; }
  .block { display: flex; flex-direction: column; }
  .block > * { order: 2; }
  .block > h2 { order: 0; }
  .block > .inline-photo { order: 1; margin: 28px 0 8px; }
  .inline-photo { display: block; margin: 0 0 40px; }
  .inline-photo img { width: 100%; aspect-ratio: 6 / 5; object-fit: cover; border-radius: var(--radius); }
  .inline-photo figcaption { margin-top: 10px; font-size: var(--step-small); color: var(--muted); }
  .field .inline-photo figcaption { color: var(--field-ink); opacity: 0.85; }
  .sheet { min-height: 0; border-radius: 0; padding: 20px 20px 48px; }
  .sheet .inline-photo { margin: 20px 0 0; }
  .hero-body { margin-top: 36px; }
  .block { padding: 88px 20px; }
  .field { border-radius: 0; }
  .wide { padding: 104px 20px; }
  .doctors-head { grid-column: 1 / -1; position: static; }
  .doctor-list { grid-column: 1 / -1; margin-top: 56px; }
  .fees-main, .fees-side { grid-column: 1 / -1; }
  .fees-side { margin-top: 56px; }
  .closing { grid-template-columns: minmax(0, 1fr); min-height: 0; padding: 0; background: var(--foot-bg); }
  .closing > img { position: static; aspect-ratio: 4 / 3; height: auto; filter: none; }
  .closing-text { grid-column: 1; padding: 48px 20px 72px; }
  .footer { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .footer > figure { aspect-ratio: 4 / 3; }
  .foot-body { padding: 48px 20px 40px; }
}
@media (max-width: 767px) {
  .menu { grid-template-columns: auto 1fr; }
  .menu .m-left { display: none; }
  .menu .brand { justify-self: start; }
  .menu .brand img { width: 150px; }
  .menu .m-right { gap: 18px; }
  .hero-body { text-align: left; align-items: flex-start; }
  .crumbs { justify-content: flex-start; }
  .hero-body .button { width: 100%; }
  .facts { grid-template-columns: minmax(0, 1fr); }
  .doctor-list { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .doctor { grid-template-columns: 88px 1fr; }
  .doctor img { width: 88px; height: 88px; }
  .branches dl { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .branches dd + dt { margin-top: 10px; }
  .branch { grid-template-columns: minmax(0, 1fr); }
  .branch .b-links { align-items: flex-start; text-align: left; flex-direction: row; flex-wrap: wrap; gap: 4px 20px; }
  ol.slip, .slip { padding: 26px 20px 16px; }
  .slip-total { margin: 28px -20px 0; padding: 12px 20px; }
  .fee-table td:last-child { font-size: 1.125rem; }
  .foot-cols { grid-template-columns: minmax(0, 1fr); }
  .closing-text .button { width: 100%; }
  .action-bar { position: fixed; left: 0; right: 0; top: 0; z-index: 40; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 8px 12px; background: var(--bg); transition: transform var(--t-ui) var(--ease-out); }
  .js .action-bar { transform: translateY(-110%); }
  .js .action-bar.is-shown { transform: none; }
  .action-bar .button { min-height: 50px; padding: 0 12px; font-size: 0.9375rem; }
  .action-bar .button.is-quiet { background: var(--surface); color: var(--ink); }
}

/* ---------- motion (content stays visible without script) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js [data-reveal] { opacity: 0; transform: translateY(22px); transition: opacity 700ms var(--ease-out), transform 900ms var(--ease-out); transition-delay: calc(var(--i, 0) * 80ms); }
  .js [data-reveal].is-in { opacity: 1; transform: none; }
  .js .hero-body > * { opacity: 0; transform: translateY(18px); animation: rise 900ms var(--ease-out) forwards; animation-delay: calc(var(--i, 0) * 90ms + 150ms); }
  .stage-frame img.is-on { animation: drift 14s var(--ease-soft) both; }
  .closing > img { transform: scale(1.06); transition: transform 2.4s var(--ease-soft); }
  .closing.is-in > img { transform: none; }
}
@keyframes rise { to { opacity: 1; transform: none; } }
@keyframes drift { from { transform: scale(1.06); } to { transform: scale(1); } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}

/* ---------- rollout sections (29 Oct): callouts, comparison, maps, gallery, profiles, request form, legal ---------- */
.prose > * + * { margin-top: 1em; }
.prose ul { padding-left: 1.2em; display: grid; gap: 6px; }
.callout { margin-top: 32px; padding: 24px 26px; background: var(--surface); border-radius: var(--radius); color: var(--ink); }
.callout h3 { font-family: var(--font-text); font-size: 1rem; font-weight: 700; letter-spacing: 0; color: var(--ink); }
.callout p, .callout ul { margin-top: 10px; color: var(--ink); }
.field .callout { background: var(--paper-slip); --ink: var(--slip-ink); }
.compare { margin-top: 36px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.compare > div { padding: 24px 22px; background: var(--surface); border-radius: var(--radius); }
.compare > div:last-child { background: var(--field); color: var(--field-ink); }
.compare > div:last-child h3 { color: var(--field-ink); }
.compare h3 { font-size: 1.125rem; }
.compare ul { margin-top: 14px; padding-left: 1.1em; display: grid; gap: 8px; font-size: 1rem; }
.map { margin-top: 32px; }
.map iframe { display: block; width: 100%; aspect-ratio: 16 / 10; border: 0; border-radius: var(--radius); background: var(--surface); }
.branches .map { margin-top: 18px; }
.block > p + .map + p, .block .map + p { margin-top: 16px; }
.rows.is-plain .row h3 { font-size: 1.25rem; }
ol.slip.is-steps li + li { margin-top: 16px; }
ol.slip.is-steps li.slip-total { margin-top: 28px; }
ol.slip.is-steps .slip-row { margin-top: 0; }

.facility-list { grid-column: 6 / 13; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 40px; padding: 0; list-style: none; align-self: start; }
.facility-list li { font-size: 1.0625rem; line-height: 1.55; }
.facility-list strong { font-weight: 700; color: var(--heading-ink, var(--ink)); }
.gallery { margin-top: clamp(64px, 8vw, 120px); display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.gallery figure:nth-child(1), .gallery figure:nth-child(6) { grid-column: span 2; grid-row: span 2; }
.gallery img { width: 100%; height: 100%; aspect-ratio: 640 / 432; object-fit: cover; border-radius: var(--radius); }
.gallery figure { position: relative; }
.gallery figcaption { position: absolute; left: 0; bottom: 0; padding: 6px 12px; background: var(--bg); color: var(--ink); font-size: var(--step-small); border-top-right-radius: var(--radius); }

.profiles { display: grid; gap: clamp(88px, 10vw, 160px); }
.profile { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 0 clamp(16px, 2vw, 32px); align-items: start; }
.profile-side { grid-column: 1 / 5; position: sticky; top: 40px; }
.profile-side img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--radius); background: var(--surface); }
.profile-side dl { margin-top: 20px; display: grid; gap: 4px; font-size: 0.9375rem; }
.profile-side dt { font-weight: 600; margin-top: 10px; }
.profile-side dd { margin: 0; color: var(--ink); }
.profile-side dd ul { padding-left: 1.1em; margin: 0; }
.profile-body { grid-column: 6 / 12; }
.profile-body .role { font-weight: 600; color: var(--accent-text, var(--accent)); }
.profile-body h2 { margin-top: 10px; }
.profile-body h2 + p { margin-top: 24px; }
.profile-body h3 { margin-top: 32px; font-size: 1.125rem; }
.profile-body ul { margin-top: 12px; padding-left: 1.2em; display: grid; gap: 6px; }
.profile:nth-child(even) .profile-side { grid-column: 8 / 13; order: 2; }
.profile:nth-child(even) .profile-body { grid-column: 2 / 8; order: 1; }

.request { background: var(--surface); }
.request-body { grid-column: 6 / 13; }
.request-form .form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 20px; }
.request-form .full { grid-column: 1 / -1; }
.request-form label { display: block; font-weight: 600; font-size: 0.9375rem; margin-bottom: 6px; }
.request-form input[type="text"], .request-form input[type="tel"], .request-form select, .request-form textarea { width: 100%; min-height: 52px; padding: 12px 14px; font: inherit; font-size: 1rem; color: var(--ink); background: var(--bg); border: 1px solid var(--table-line); border-radius: var(--radius); }
.request-form textarea { min-height: 120px; resize: vertical; }
.request-form input:focus-visible, .request-form select:focus-visible, .request-form textarea:focus-visible { outline: 2px solid var(--focus, var(--accent)); outline-offset: 1px; }
.request-form .form-error { display: none; margin-top: 6px; font-size: 0.875rem; color: #A3271F; }
.request-form .has-error .form-error { display: block; }
.request-form .has-error input, .request-form .has-error select { border-color: #A3271F; }
.request-form .field-hint { margin-top: 6px; font-size: 0.875rem; color: var(--muted); }
.request-form .consent { display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: start; font-size: 0.9375rem; }
.request-form .consent input { width: 22px; height: 22px; margin-top: 2px; accent-color: var(--ink); }
.request-form .consent label { font-weight: 400; margin: 0; }
.request-form .button { width: 100%; }

.legal .prose { max-width: 68ch; }
.legal .prose h2 { font-size: clamp(1.375rem, 1.2rem + 0.6vw, 1.75rem); margin-top: 48px; }
.legal .prose h2 + * { margin-top: 14px; }

@media (max-width: 1023px) {
  .facility-list { grid-column: 1 / -1; margin-top: 48px; }
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gallery figure:nth-child(6) { grid-column: auto; grid-row: auto; }
  .profile-side, .profile:nth-child(even) .profile-side { grid-column: 1 / 5; order: 0; position: static; }
  .profile-body, .profile:nth-child(even) .profile-body { grid-column: 6 / 13; order: 1; }
  .request-body { grid-column: 1 / -1; margin-top: 40px; }
}
@media (max-width: 767px) {
  .compare, .facility-list, .request-form .form-grid { grid-template-columns: minmax(0, 1fr); }
  .profile-side, .profile:nth-child(even) .profile-side, .profile-body, .profile:nth-child(even) .profile-body { grid-column: 1 / -1; }
  .profile-side img { width: 160px; }
  .profile-body { margin-top: 28px; }
}
@media (max-width: 767px) {
  /* phone: photo, then name and text, then the qualifications list (nothing small above a name) */
  .profile { display: flex; flex-direction: column; }
  .profile-side, .profile:nth-child(even) .profile-side { display: contents; }
  .profile-side img { order: 0; }
  .profile-body, .profile:nth-child(even) .profile-body { order: 1; }
  .profile-side dl { order: 2; }
}

/* 404 page */
.notfound-links { display: flex; flex-wrap: wrap; gap: 8px 22px; justify-content: center; font-weight: 600; }
@media (max-width: 767px) { .notfound-links { justify-content: flex-start; } }

/* ---------- blog posts (revived guides, long-form) ---------- */
.post-sheet .hero-body h1 { max-width: 16ch; }
.article { padding-top: clamp(56px, 7vw, 96px); }
.article .prose, .article-intro { max-width: 68ch; }
.article-intro p:first-child { font-size: var(--step-lead); line-height: 1.45; }
.article .toc { margin: 40px 0 0; max-width: 68ch; }
.article .toc-title { font-family: var(--font-text); font-size: 1rem; font-weight: 600; letter-spacing: 0; }
.article .toc ul { columns: 2; column-gap: 32px; display: block; }
.article .toc li { break-inside: avoid; margin-bottom: 6px; }
.article-part { padding-top: clamp(56px, 6vw, 88px); }
.article-part h2 { max-width: 22ch; }
.article-part h2 + .prose { margin-top: 22px; }
.article-part h3 { font-size: 1.1875rem; margin-top: 30px; }
.article-part h3 + p { margin-top: 8px; }
.article-part .prose ul, .article-part .prose ol { padding-left: 1.2em; display: grid; gap: 6px; }
.compare-table th[scope="row"] { font-weight: 600; text-align: left; padding-right: 16px; }
.compare-table td:last-child { font-family: var(--font-text); font-weight: 400; font-size: 1rem; text-align: left; white-space: normal; }
.draft-note { display: inline-block; margin-bottom: 28px; padding: 8px 14px; background: var(--surface); border-radius: var(--radius); font-size: var(--step-small); font-weight: 600; }
@media (max-width: 767px) { .article .toc ul { columns: 1; } }

/* phones: only the first row of a list keeps its photo (on desktop the photos drive the fixed panel) */
@media (max-width: 1023px) { .rows .row:not(:first-child) .inline-photo { display: none; } }
