/* Rockland Endodontics · Northern Jersey Endodontics — public site.
   Direction: "Clinical editorial" — warm paper, burgundy from the RE/NJE marks,
   a literary serif for headlines, a civic sans for everything you need to act on. */

@font-face { font-family: "Newsreader"; src: url("/fonts/newsreader.woff2") format("woff2"); font-weight: 200 800; font-style: normal; font-display: swap; }
@font-face { font-family: "Newsreader"; src: url("/fonts/newsreader-italic.woff2") format("woff2"); font-weight: 200 800; font-style: italic; font-display: swap; }
@font-face { font-family: "Public Sans"; src: url("/fonts/public-sans.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }

:root {
  --paper: #f7f4ee;
  --paper-2: #efe8dc;
  --paper-3: #e6ddcd;
  --white: #fffdf9;
  --ink: #1e1a18;
  --ink-2: #3d3632;
  --muted: #6b625b;
  --line: #d9cfc0;
  --line-2: #c9bca9;
  --field-line: #948672; /* form-field borders: >= 3:1 on paper and white (WCAG 1.4.11) */
  --brand: #8f1218;
  --brand-deep: #6c0c11;
  --brand-ink: #4d080c;
  --brand-tint: #f3e4e0;
  --focus: #1f5fbf;

  --serif: "Newsreader", "Iowan Old Style", Georgia, serif;
  --sans: "Public Sans", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;

  --wrap: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 3px;
  --sect: clamp(64px, 9vw, 128px);
  --shadow: 0 1px 0 rgba(30, 26, 24, .04), 0 12px 32px -18px rgba(30, 26, 24, .28);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 96px; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 1.0625rem/1.65 var(--sans); font-feature-settings: "kern", "liga";
  text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased;
}
img, picture { display: block; max-width: 100%; height: auto; }
a { color: var(--brand); text-decoration-thickness: 1px; text-underline-offset: .18em; }
a:hover { color: var(--brand-deep); text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 2px; }
.utility :focus-visible, .tech :focus-visible, .cta-band :focus-visible, .site-footer :focus-visible, .announce :focus-visible { outline-color: #fff; }
main:focus { outline: none; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.08; letter-spacing: -.012em; margin: 0 0 .5em; color: var(--ink); font-optical-sizing: auto; text-wrap: balance; }
h1 { font-size: clamp(2.5rem, 5.4vw, 4.6rem); }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.9rem); }
h3 { font-size: 1.45rem; line-height: 1.2; }
h1 em, h2 em { font-style: italic; color: var(--brand); }
p { margin: 0 0 1em; text-wrap: pretty; }
ul, ol { padding-left: 1.2em; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 820px; }
/* !important so component rules (e.g. ".refer-form input[type=file] { width: 100% }") can never un-hide an element and widen the page. */
.visually-hidden { position: absolute !important; width: 1px !important; height: 1px !important; margin: -1px !important; padding: 0 !important; overflow: hidden !important; clip: rect(0 0 0 0) !important; white-space: nowrap !important; border: 0 !important; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: var(--radius); }
.skip:focus { top: 12px; }

.eyebrow { font: 600 .78rem/1.3 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--brand); margin: 0 0 1.1rem; display: flex; align-items: center; gap: .75rem; }
.eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; flex: none; }
.lede { font-size: clamp(1.12rem, 1.6vw, 1.32rem); line-height: 1.55; color: var(--ink-2); max-width: 40ch; }
.lede-sm { font-size: 1.15rem; color: var(--ink-2); }
.muted { color: var(--muted); }

/* ---------- buttons & links ---------- */
.btn {
  --b: var(--ink); display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 46px; padding: .7rem 1.25rem; border: 1.5px solid var(--b); border-radius: var(--radius);
  font: 600 .98rem/1.1 var(--sans); letter-spacing: .01em; text-decoration: none; cursor: pointer;
  background: transparent; color: var(--ink); transition: background .18s, color .18s, border-color .18s, transform .18s;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--brand); border-color: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-deep); border-color: var(--brand-deep); color: #fff; }
.btn-quiet { border-color: var(--line-2); color: var(--ink); }
.btn-quiet:hover { border-color: var(--ink); color: var(--ink); background: var(--white); }
.btn-light { background: #fff; border-color: #fff; color: var(--brand-ink); }
.btn-light:hover { background: var(--paper); color: var(--brand-ink); }
.btn-outline-light { border-color: rgba(255,255,255,.55); color: #fff; }
.btn-outline-light:hover { border-color: #fff; color: #fff; background: rgba(255,255,255,.08); }
.btn-lg { min-height: 54px; padding: .9rem 1.5rem; font-size: 1.02rem; }
.btn-block { width: 100%; }
.link-arrow { display: inline-flex; gap: .45rem; align-items: center; font-weight: 600; text-decoration: none; color: var(--ink); border-bottom: 1.5px solid var(--brand); padding-bottom: 2px; }
.link-arrow:hover { color: var(--brand); text-decoration: none; }
.arrow { transition: transform .2s; display: inline-block; }
a:hover .arrow { transform: translateX(4px); }

/* ---------- brand marks (vector SVGs used as masks so CSS controls colour) ---------- */
.mark { display: inline-block; width: 44px; height: 44px; background: var(--brand); -webkit-mask: var(--m) center / contain no-repeat; mask: var(--m) center / contain no-repeat; flex: none; }
.mark-re { --m: url("/img/re-mark.svg"); }
.mark-nje { --m: url("/img/nje-mark.svg"); }
.marks { display: inline-flex; align-items: center; gap: 5px; }
.marks .mark { width: 40px; height: 40px; }
.brand { display: inline-flex; align-items: center; gap: 1rem; text-decoration: none; color: var(--ink); min-width: 0; }
.brand-item { display: inline-flex; align-items: center; gap: .55rem; }
.brand-item .mark { width: 38px; height: 38px; }
.brand-divider { width: 1px; align-self: stretch; margin: .2rem 0; background: var(--line-2); }
.site-footer .brand-divider { background: rgba(255,255,255,.25); }
.brand:hover { color: var(--ink); }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name { font: 500 1.18rem/1.05 var(--serif); letter-spacing: -.005em; white-space: nowrap; }
.brand-sub { font: 600 .6rem/1 var(--sans); letter-spacing: .3em; text-transform: uppercase; color: var(--brand); margin-top: .38rem; }

/* ---------- header ---------- */
.announce { background: var(--brand); color: #fff; text-align: center; padding: .55rem var(--gutter); font-size: .95rem; }
.utility { background: var(--ink); color: #e9e2d8; font-size: .86rem; }
.utility a { color: #fff; text-decoration: none; }
.utility a:hover { text-decoration: underline; color: #fff; }
.utility-row { display: flex; justify-content: space-between; align-items: center; gap: 1rem; min-height: 40px; }
.utility-phones { display: flex; gap: 1.6rem; list-style: none; margin: 0; padding: 0; }
.utility-phones li { white-space: nowrap; }
.utility-label { color: #b8ada1; margin-right: .3rem; }
.utility-link { color: #e9e2d8 !important; }

.site-header { position: sticky; top: 0; z-index: 40; background: rgba(247, 244, 238, .94); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.header-row { display: flex; align-items: center; gap: 1.5rem; min-height: 78px; }
.nav { margin-left: auto; }
.nav ul { display: flex; gap: .2rem; list-style: none; margin: 0; padding: 0; }
.nav a { display: block; white-space: nowrap; padding: .55rem .7rem; color: var(--ink-2); text-decoration: none; font-weight: 500; font-size: .96rem; border-radius: var(--radius); position: relative; }
.nav a:hover { color: var(--ink); }
.nav a::after { content: ""; position: absolute; left: .7rem; right: .7rem; bottom: .25rem; height: 1.5px; background: var(--brand); transform: scaleX(0); transform-origin: left; transition: transform .22s; }
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }
.nav a[aria-current="page"] { color: var(--ink); }
.header-cta { white-space: nowrap; flex: none; }
.header-cta .cta-short { display: none; }
.brand { flex: none; }

.menu { display: none; margin-left: auto; }
.menu > summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: .55rem; min-height: 46px; padding: 0 .9rem; border: 1.5px solid var(--line-2); border-radius: var(--radius); font-weight: 600; }
.menu > summary::-webkit-details-marker { display: none; }
.menu-icon, .menu-icon::before, .menu-icon::after { display: block; width: 18px; height: 1.5px; background: var(--ink); position: relative; transition: transform .2s, background .2s; }
.menu-icon::before, .menu-icon::after { content: ""; position: absolute; left: 0; }
.menu-icon::before { top: -6px; } .menu-icon::after { top: 6px; }
.menu[open] .menu-icon { background: transparent; }
.menu[open] .menu-icon::before { transform: translateY(6px) rotate(45deg); }
.menu[open] .menu-icon::after { transform: translateY(-6px) rotate(-45deg); }
.menu-panel { position: absolute; left: 0; right: 0; top: 100%; background: var(--paper); border-bottom: 1px solid var(--line); box-shadow: var(--shadow); padding: .5rem var(--gutter) 1.5rem; max-height: calc(100vh - 80px); overflow: auto; }
.menu-panel ul { list-style: none; margin: 0; padding: 0; }
.menu-panel li a { display: block; padding: .95rem 0; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; font: 400 1.35rem/1.2 var(--serif); }
.menu-calls { display: grid; gap: .6rem; margin-top: 1.2rem; }
.menu-call { display: flex; justify-content: space-between; align-items: center; padding: .9rem 1rem; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--ink); }
.menu-call strong { color: var(--brand); }

/* ---------- hero ---------- */
.hero { padding: clamp(40px, 6vw, 88px) 0 clamp(48px, 6vw, 96px); position: relative; overflow: hidden; }
.hero::before { content: ""; position: absolute; right: -8vw; top: -10vw; width: 46vw; height: 46vw; border: 1px solid var(--line); border-radius: 50%; pointer-events: none; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(32px, 5vw, 80px); align-items: center; position: relative; }
.hero h1 { font-size: clamp(2.9rem, 6.4vw, 5.6rem); line-height: .98; letter-spacing: -.02em; margin-bottom: 1.6rem; }
.hero h1 em { font-weight: 300; }
.hero .lede { max-width: 34em; margin-bottom: 2rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-bottom: 2.4rem; }
.hero-urgent { border-top: 1px solid var(--line); padding-top: 1.25rem; max-width: 560px; }
.hero-urgent p { margin: 0 0 .7rem; color: var(--ink-2); }
.hero-urgent ul { display: flex; flex-wrap: wrap; gap: .5rem 1.75rem; list-style: none; margin: 0; padding: 0; }
.hero-urgent a { font: 500 1.35rem/1.2 var(--serif); color: var(--ink); text-decoration: none; white-space: nowrap; }
.hero-urgent a span { font: 600 .75rem/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-right: .45rem; }
.hero-urgent a:hover { color: var(--brand); }
.hero-media { margin: 0; position: relative; }
.hero-media picture { aspect-ratio: 4 / 5; overflow: hidden; border-radius: var(--radius); box-shadow: var(--shadow); }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 60%; }
.hero-media figcaption { position: absolute; left: -1px; bottom: 28px; background: var(--paper); padding: .6rem 1rem .6rem 1.1rem; font: italic 400 1rem/1.2 var(--serif); color: var(--ink-2); border-radius: 0 var(--radius) var(--radius) 0; }

/* ---------- facts strip ---------- */
.facts { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--white); }
.facts-row { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1.25fr; }
.facts p { margin: 0; padding: 1.6rem 1.4rem 1.6rem 0; display: flex; gap: 1rem; align-items: baseline; }
.facts p + p { padding-left: 1.4rem; border-left: 1px solid var(--line); }
.facts strong { font: 400 2.4rem/1 var(--serif); color: var(--brand); flex: none; }
.facts span { font-size: .93rem; line-height: 1.4; color: var(--ink-2); }

/* ---------- sections ---------- */
.section { padding: var(--sect) 0; }
.section + .section { padding-top: 0; }
.section-head { max-width: 760px; margin-bottom: clamp(32px, 4vw, 56px); }
.section-head-row { display: flex; justify-content: space-between; align-items: end; gap: 2rem; max-width: none; }

/* treatment index */
.treat-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.treat-intro { position: sticky; top: 120px; }
.treat-intro p { color: var(--ink-2); max-width: 40ch; }
.treat-list, .service-index { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink); }
.treat-list a, .service-index a { display: grid; grid-template-columns: 3.2rem 1fr auto; gap: 1rem; align-items: baseline; padding: 1.5rem 0; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink); transition: background .2s, padding .2s; }
.treat-list a:hover, .service-index a:hover { background: var(--white); padding-left: .75rem; padding-right: .75rem; }
.treat-num { font: 500 .85rem/1 var(--sans); color: var(--brand); letter-spacing: .06em; font-variant-numeric: tabular-nums; }
.treat-body { display: flex; flex-direction: column; gap: .35rem; }
.treat-name, .si-name { font: 400 1.6rem/1.15 var(--serif); }
.treat-sum { color: var(--muted); font-size: .98rem; max-width: 52ch; }
.treat-list .arrow, .service-index .arrow { color: var(--brand); font-size: 1.2rem; }
.service-index a { grid-template-columns: 3.2rem minmax(220px, .8fr) 1.2fr auto; }
.si-sum { color: var(--muted); }

/* doctors */
.doctors-home { background: var(--paper-2); padding-top: var(--sect) !important; }
.doc-pair { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 56px); }
.doc-card { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1.75rem; align-items: end; }
.doc-photo { display: block; }
.portrait { aspect-ratio: 4 / 5; overflow: hidden; border-radius: var(--radius); background: var(--paper-3); }
.portrait img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 15%; transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.doc-card:hover .portrait img { transform: scale(1.03); }
.doc-text h3 { font-size: 1.75rem; margin-bottom: .25rem; }
.doc-text h3 a { color: var(--ink); text-decoration: none; }
.doc-text h3 a:hover { color: var(--brand); }
.cred { color: var(--muted); font-size: .7em; }
.doc-title { font: 600 .75rem/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--brand); margin-bottom: 1rem; }
.doc-text p { color: var(--ink-2); font-size: .98rem; }

/* first visit */
.visit-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(32px, 6vw, 96px); }
.visit { padding-top: var(--sect) !important; }
.steps { list-style: none; margin: 0; padding: 0; counter-reset: s; display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem 3rem; }
.steps li { counter-increment: s; position: relative; padding-top: 3.2rem; border-top: 1px solid var(--line-2); }
.steps li::before { content: counter(s, decimal-leading-zero); position: absolute; top: 1rem; left: 0; font: 500 .85rem/1 var(--sans); letter-spacing: .08em; color: var(--brand); }
.steps h3 { font-size: 1.4rem; }
.steps p { color: var(--ink-2); font-size: .98rem; margin: 0; }

/* technology */
.tech { background: var(--ink); color: #e7e0d6; padding: var(--sect) 0; }
.tech h2 { color: #fff; }
.tech .eyebrow { color: #e3a9a2; }
.tech-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.tech-media { position: relative; padding-bottom: 12%; }
.tech-media figure { margin: 0; }
.tech-main picture { aspect-ratio: 3 / 2; overflow: hidden; border-radius: var(--radius); }
.tech-main img { object-position: 0% 50%; }
.tech-main img, .tech-inset img { width: 100%; height: 100%; object-fit: cover; }
.tech-inset { position: absolute; right: -6%; bottom: 0; width: 46%; border: 6px solid var(--ink); border-radius: var(--radius); background: var(--ink); }
.tech-inset picture { aspect-ratio: 10 / 7; overflow: hidden; }
.tech-inset figcaption { font: italic 400 .95rem/1.3 var(--serif); color: #d9d0c5; padding: .5rem .2rem .1rem; }
.loc-entrance { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 0 0 1.4rem; }
.loc-entrance figure { margin: 0; }
.loc-entrance picture { aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--radius); }
.loc-entrance img { width: 100%; height: 100%; object-fit: cover; }
.loc-entrance figcaption { font: italic 400 1rem/1.4 var(--serif); color: var(--ink-2); margin-top: .5rem; }
.tech-list { list-style: none; margin: 1.5rem 0 0; padding: 0; }
.tech-list li { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 1.5rem; padding: 1.1rem 0; border-top: 1px solid rgba(255,255,255,.14); }
.tech-list strong { font: 400 1.18rem/1.3 var(--serif); color: #fff; }
.tech-list span { font-size: .95rem; color: #c9c0b5; }

/* offices */
.office-pair { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(20px, 3vw, 40px); }
.office { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(24px, 3vw, 40px); display: flex; flex-direction: column; gap: 1.2rem; }
.office-top { display: flex; gap: 1rem; align-items: center; }
.office-top .mark { width: 56px; height: 56px; }
.office-state { font: 600 .75rem/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin: 0 0 .4rem; }
.office-name { font-size: 1.75rem; margin: 0; }
.office-name a { color: var(--ink); text-decoration: none; }
.office-name a:hover { color: var(--brand); }
.address { display: flex; flex-direction: column; color: var(--ink); text-decoration: none; font-size: 1.05rem; border-left: 2px solid var(--brand); padding-left: .9rem; }
.address:hover { color: var(--brand); }
.address:hover span:first-child { text-decoration: underline; }
.office-lines { margin: 0; display: flex; gap: 2rem; flex-wrap: wrap; }
.office-lines dt { font: 600 .75rem/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: .35rem; }
.office-lines dd { margin: 0; font: 400 1.35rem/1.2 var(--serif); }
.office-phone { color: var(--ink); text-decoration: none; }
.office-phone:hover { color: var(--brand); }
.hours { border-collapse: collapse; width: 100%; font-size: .95rem; font-variant-numeric: tabular-nums; }
.hours th, .hours td { text-align: left; padding: .45rem .5rem .45rem 0; border-top: 1px solid var(--line); font-weight: 400; }
.hours thead th { font-size: .75rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); border-top: 0; padding-bottom: .35rem; }
.hours tbody th { color: var(--ink-2); width: 42%; }
.hours abbr { text-decoration: none; }
.hours .hours-closed { color: var(--muted); }
.hours tr.is-today th, .hours tr.is-today td { color: var(--brand); font-weight: 600; }
.hours tr.is-today th abbr::after { content: " · today"; font-weight: 400; font-size: .85em; }
.hours-status { margin: .55rem 0 0; font-size: .88rem; color: var(--muted); display: flex; align-items: center; gap: .45rem; }
.hours-status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #a39686; flex: none; }
.hours-status.is-open { color: #1f6b3a; }
.hours-status.is-open::before { background: #2f9a55; box-shadow: 0 0 0 3px rgba(47, 154, 85, .18); }
.hours-note { font-size: .9rem; color: var(--brand); margin: .5rem 0 0; }
.office-actions { display: flex; gap: .6rem; flex-wrap: wrap; margin-top: auto; padding-top: .4rem; }

/* quotes */
.words { background: var(--paper-2); padding-top: var(--sect) !important; }
.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 3vw, 48px); }
.quote { margin: 0; display: flex; flex-direction: column; justify-content: space-between; gap: 1.5rem; padding-top: 2.4rem; border-top: 1px solid var(--ink); position: relative; }
.quote::before { content: "“"; position: absolute; top: .2rem; left: 0; font: 400 3.5rem/1 var(--serif); color: var(--brand); }
.quote blockquote { margin: 0; }
.quote blockquote p { font: italic 400 1.28rem/1.45 var(--serif); color: var(--ink); margin: 0; }
.quote figcaption { font-weight: 600; font-size: .92rem; }
.quote figcaption span { font-weight: 400; color: var(--muted); }

/* referring */
.refer-grid { display: grid; grid-template-columns: .7fr 1.3fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.refer-media { margin: 0; }
.refer-media picture { aspect-ratio: 4 / 5; overflow: hidden; border-radius: var(--radius); }
.refer-media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; }
.refer p { color: var(--ink-2); max-width: 56ch; }
.refer-actions { display: flex; flex-wrap: wrap; gap: 1.5rem; align-items: center; margin-top: 1.6rem; }
.refer { padding-top: var(--sect) !important; }

/* faq */
.services-faq { padding-top: var(--sect) !important; }
.faq-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.faq-list { border-top: 1px solid var(--ink); }
.faq { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 1.5rem; align-items: center; padding: 1.3rem 0; font: 400 1.3rem/1.3 var(--serif); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--brand); }
.faq-icon { width: 14px; height: 14px; position: relative; flex: none; }
.faq-icon::before, .faq-icon::after { content: ""; position: absolute; left: 0; top: 6px; width: 14px; height: 1.5px; background: var(--brand); transition: transform .2s; }
.faq-icon::after { transform: rotate(90deg); }
.faq[open] .faq-icon::after { transform: rotate(0); }
.faq-a { padding: 0 2rem 1.3rem 0; color: var(--ink-2); }
.faq-cat { font-size: 1.5rem; margin: 2.5rem 0 1rem; }
.faq-cat:first-child { margin-top: 0; }

/* CTA band */
.cta-band { background: var(--brand); color: #f6e7e4; padding: clamp(56px, 7vw, 96px) 0; position: relative; overflow: hidden; }
.cta-band::after { content: ""; position: absolute; right: -120px; bottom: -160px; width: 440px; height: 440px; background: rgba(255,255,255,.06); -webkit-mask: url("/img/re-mark.svg") center / contain no-repeat; mask: url("/img/re-mark.svg") center / contain no-repeat; }
.cta-band h2 { color: #fff; }
.cta-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 80px); align-items: center; position: relative; z-index: 1; }
.cta-band p { font-size: 1.1rem; max-width: 42ch; }
.cta-actions { display: grid; gap: .75rem; }
.cta-call { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding: 1rem 0; border-bottom: 1px solid rgba(255,255,255,.25); color: #fff; text-decoration: none; }
.cta-call span { font: 600 .76rem/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: #f0c9c3; }
.cta-call strong { font: 400 clamp(1.5rem, 2.6vw, 2.1rem)/1 var(--serif); }
.cta-call:hover { color: #fff; } .cta-call:hover strong { text-decoration: underline; text-decoration-thickness: 1px; }
.cta-row { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: .75rem; }

/* ---------- interior pages ---------- */
.page-head { padding: clamp(40px, 6vw, 80px) 0 clamp(32px, 4vw, 56px); border-bottom: 1px solid var(--line); background: linear-gradient(var(--paper), var(--paper-2)); }
.page-head h1 { max-width: 18ch; }
.page-head .lede { max-width: 46em; }
.crumbs ol { display: flex; flex-wrap: wrap; gap: .4rem; list-style: none; margin: 0 0 1.8rem; padding: 0; font-size: .86rem; color: var(--muted); }
.crumbs li + li::before { content: "/"; margin-right: .4rem; color: var(--line-2); }
.crumbs a { color: var(--muted); }

.article-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: clamp(32px, 6vw, 96px); align-items: start; }
.prose { max-width: 70ch; }
.prose h2 { font-size: clamp(1.6rem, 2.4vw, 2.05rem); margin-top: 2.2em; }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose li { color: var(--ink-2); }
.prose ul { padding-left: 0; list-style: none; }
.prose ul li { position: relative; padding-left: 1.6rem; margin-bottom: .7rem; }
.prose ul li::before { content: ""; position: absolute; left: 0; top: .72em; width: 9px; height: 1.5px; background: var(--brand); }
.prose strong { color: var(--ink); }
.article-aside { display: grid; gap: 1.25rem; position: sticky; top: 110px; }
.aside-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; }
.aside-h { font: 600 .76rem/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--brand); margin: 0 0 1rem; }
.aside-note { font-size: .88rem; color: var(--muted); margin: .9rem 0 0; }
.aside-phone { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding: .7rem 0; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink); }
.aside-phone span { font-size: .88rem; color: var(--muted); }
.aside-phone strong { font: 400 1.3rem/1 var(--serif); }
.aside-phone:hover strong { color: var(--brand); }
.aside-call .btn { margin-top: 1.1rem; }
.aside-links { list-style: none; margin: 0; padding: 0; }
.aside-links a { display: block; padding: .5rem 0; color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--line); }
.aside-links a:hover { color: var(--brand); }
.aside-photo { margin: 0; } .aside-photo picture { border-radius: var(--radius); overflow: hidden; }
.checks { list-style: none; margin: 0; padding: 0; }
.checks li { position: relative; padding: .5rem 0 .5rem 1.6rem; border-bottom: 1px solid var(--line); font-size: .97rem; }
.checks li::before { content: ""; position: absolute; left: 2px; top: 1em; width: 8px; height: 8px; border-radius: 50%; border: 1.5px solid var(--brand); }
.small-h { font: 600 .78rem/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--brand); margin: 0 0 1.2rem; }

/* doctors pages */
.doc-row { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(32px, 6vw, 96px); align-items: center; padding: clamp(32px, 4vw, 56px) 0; border-bottom: 1px solid var(--line); }
.doc-row:first-child { padding-top: 0; }
.doc-row-flip .doc-row-photo { order: 2; }
.doc-row h2 { font-size: clamp(2rem, 3.6vw, 3rem); }
.edu { list-style: none; padding: 0; margin: 0 0 1.6rem; }
.edu li { padding: .55rem 0; border-top: 1px solid var(--line); color: var(--ink-2); font-size: .97rem; }
.doc-hero { padding: clamp(40px, 6vw, 80px) 0; background: var(--paper-2); border-bottom: 1px solid var(--line); }
.doc-hero-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.bio-quote p { font: 400 1.22rem/1.6 var(--serif); color: var(--ink-2); }
.bio-quote p:first-child::first-letter { font-size: 3.4em; float: left; line-height: .85; margin: .06em .1em 0 0; color: var(--brand); }
.cred-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 4vw, 56px); }
.teaching { background: var(--paper-2); padding-top: var(--sect) !important; }
.teach-grid { display: grid; grid-template-columns: .75fr 1.25fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.teach-media { margin: 0; position: sticky; top: 110px; }
.teach-media picture { aspect-ratio: 4 / 5; overflow: hidden; border-radius: var(--radius); }
.teach-media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; }
.teach-media figcaption { font: italic 400 1rem/1.4 var(--serif); color: var(--ink-2); margin-top: .8rem; }
.pubs { padding-top: var(--sect) !important; }
.pub-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink); }
.pub-list li { padding: 1rem 0; border-bottom: 1px solid var(--line); font: 400 1.3rem/1.3 var(--serif); }
.plans li.has-logo img { max-height: 46px; max-width: 150px; width: auto; height: auto; object-fit: contain; }
.ins-strip { padding: 0 0 var(--sect); }
.ins-strip-head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; flex-wrap: wrap; border-top: 1px solid var(--line); padding-top: 2rem; margin-bottom: 1.4rem; }
.ins-strip-head .small-h { margin: 0; }
.ins-logos { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 1.6rem 2.6rem; }
.ins-logos img { height: 34px; width: auto; max-width: 140px; object-fit: contain; filter: grayscale(1); opacity: .72; transition: filter .2s, opacity .2s; }
.ins-logos li:hover img { filter: none; opacity: 1; }

/* locations */
.loc-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: clamp(32px, 5vw, 72px); align-items: start; }
.loc-gallery { display: grid; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 10px; margin-bottom: 3rem; aspect-ratio: 16 / 8; }
.loc-gallery picture { overflow: hidden; border-radius: var(--radius); }
.loc-gallery img { width: 100%; height: 100%; object-fit: cover; }
.loc-gallery .g0 { grid-row: 1 / span 2; }
.loc-placeholder { aspect-ratio: 16 / 9; background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--radius); display: grid; place-content: center; justify-items: center; gap: 1rem; margin-bottom: 3rem; color: var(--muted); }
.loc-placeholder .mark { width: 72px; height: 72px; }

/* insurance */
.plans { list-style: none; margin: 0 0 3.5rem; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; }
.plans li { display: flex; align-items: center; justify-content: center; min-height: 104px; padding: 1.1rem 1.4rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); font: 400 1.25rem/1.2 var(--serif); text-align: center; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); }
.review-links { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: .75rem; }
.refer-offices { display: grid; gap: 1.25rem; }
.lectures { background: var(--paper-2); padding-top: var(--sect) !important; }
.lecture-contact { font: 400 1.3rem/1.4 var(--serif); }

/* ---------- contact form ---------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.contact-offices { display: grid; gap: 1.25rem; }
.form-wrap { background: var(--white); border: 1px solid var(--line); border-top: 3px solid var(--brand); border-radius: var(--radius); padding: clamp(24px, 4vw, 48px); scroll-margin-top: 110px; }
.form h2, .form-done h2 { font-size: 2rem; }
.form-intro { color: var(--ink-2); }
.field { margin: 0 0 1.25rem; border: 0; padding: 0; min-width: 0; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1.25rem; }
.field label, .field legend { display: block; font-weight: 600; font-size: .94rem; margin-bottom: .45rem; padding: 0; }
.opt { font-weight: 400; color: var(--muted); font-size: .85rem; }
.field input:not([type=radio]):not([type=checkbox]), .field select, .field textarea {
  width: 100%; min-height: 50px; padding: .75rem .9rem; font: inherit; font-size: 1rem; color: var(--ink);
  background: var(--paper); border: 1.5px solid var(--field-line); border-radius: var(--radius); transition: border-color .15s, background .15s;
}
.field textarea { min-height: 96px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--ink); background: #fff; outline: 3px solid rgba(31,95,191,.25); outline-offset: 0; }
.field input[aria-invalid="true"] { border-color: var(--brand); }
.choice-row { display: flex; flex-wrap: wrap; gap: .6rem; }
.choice { display: inline-flex !important; align-items: center; gap: .55rem; font-weight: 500 !important; padding: .7rem 1rem; min-height: 48px; border: 1.5px solid var(--line-2); border-radius: var(--radius); cursor: pointer; background: var(--paper); margin: 0 !important; }
.choice:has(input:checked) { border-color: var(--brand); background: var(--brand-tint); }
.choice input { accent-color: var(--brand); width: 18px; height: 18px; margin: 0; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-fine { font-size: .86rem; color: var(--muted); margin: 1.2rem 0 0; }
.form-error { background: var(--brand-tint); border-left: 3px solid var(--brand); padding: .9rem 1rem; margin-bottom: 1.5rem; color: var(--brand-ink); }
.form-done { padding: 1rem 0; }
.cf-turnstile { margin-bottom: 1.25rem; }

/* ---------- footer ---------- */
.site-footer { background: #191614; color: #cfc6bb; padding: clamp(56px, 7vw, 88px) 0 0; font-size: .95rem; }
.site-footer a { color: #fff; }
.site-footer .brand { color: #fff; display: flex; width: fit-content; max-width: 100%; }
.site-footer .brand .mark { background: #fff; }
.site-footer .brand-sub { color: #e3a9a2; }
.footer-grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr .8fr; gap: clamp(28px, 4vw, 56px); padding-bottom: clamp(40px, 5vw, 64px); }
.footer-tagline { font: italic 400 1.15rem/1.45 var(--serif); color: #e7dfd5; margin: 1.5rem 0 1rem; max-width: 26ch; }
.footer-doctors { color: #a99f94; }
.footer-h { font: 600 .75rem/1.3 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: #e3a9a2; margin: .5rem 0 1rem; }
.site-footer .address { color: #fff; border-color: #e3a9a2; margin-bottom: 1rem; }
.footer-line { margin: 0 0 .35rem; }
.footer-line span, .footer-hours span { color: #a99f94; display: inline-block; min-width: 3.4rem; }
.footer-line a { text-decoration: none; } .footer-line a:hover { text-decoration: underline; }
.footer-hours { margin: .9rem 0; }
.footer-hours .hours { font-size: .88rem; max-width: 18rem; }
.footer-hours .hours th, .footer-hours .hours td { border-top: 1px solid rgba(255, 255, 255, .08); padding: .3rem .6rem .3rem 0; color: inherit; }
.footer-hours .hours tbody th { color: #a99f94; width: 3.2rem; }
.footer-hours .hours .hours-closed { color: #a99f94; }
.footer-hours .hours tr.is-today th, .footer-hours .hours tr.is-today td { color: #fff; }
.footer-hours .hours tr.is-today th abbr::after { content: ""; }
.footer-hours .hours-status { color: #c9bfb4; }
.footer-hours .hours-status.is-open { color: #9fd8b0; }
.footer-hours .hours-note { color: #e8b9b0; }
.footer-dir { font-weight: 600; }
.footer-nav ul { list-style: none; padding: 0; margin: 0; }
.footer-nav li { margin-bottom: .45rem; }
.footer-nav a { color: #cfc6bb; text-decoration: none; } .footer-nav a:hover { color: #fff; text-decoration: underline; }
.footer-legal { display: flex; flex-wrap: wrap; gap: .75rem 2rem; align-items: center; border-top: 1px solid rgba(255,255,255,.12); padding-top: 1.4rem; padding-bottom: 1.6rem; font-size: .86rem; color: #a99f94; }
.footer-legal p { margin: 0; }
.footer-legal ul { display: flex; gap: 1.4rem; list-style: none; margin: 0; padding: 0; }
.footer-legal a { color: #cfc6bb; }
.credit { margin-left: auto !important; }
.credit a { color: #cfc6bb; text-decoration: none; } .credit a:hover { color: #fff; text-decoration: underline; }

/* ---------- mobile action bar ---------- */
.action-bar { display: none; }

/* ---------- responsive ---------- */
@media (max-width: 1400px) {
  .header-cta .cta-long { display: none; }
  .header-cta .cta-short { display: inline; }
}
@media (max-width: 1280px) {
  .nav a { padding: .55rem .5rem; font-size: .92rem; }
  .header-row { gap: 1rem; }
  .nav a::after { left: .5rem; right: .5rem; }
  .brand-name { font-size: 1.12rem; }
}
@media (max-width: 1100px) {
  .nav { display: none; }
  .menu { display: block; margin-left: 0; }
  .header-cta { margin-left: auto; }
  .site-header { position: sticky; }
  .header-row { position: relative; min-height: 70px; }
  .site-header .wrap { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .facts-row { grid-template-columns: 1fr 1fr; }
  .facts p:nth-child(3) { border-left: 0; padding-left: 0; }
  .facts p:nth-child(n+3) { border-top: 1px solid var(--line); }
  .doc-card { grid-template-columns: 1fr; }
  .cred-grid { grid-template-columns: 1fr 1fr; }
  .teach-grid { grid-template-columns: 1fr; } .teach-media { position: static; max-width: 420px; }
}
@media (max-width: 900px) {
  body { padding-bottom: 68px; }
  /* Keyboard focus and in-page jumps stop above the fixed action bar (WCAG 2.4.11). */
  html { scroll-padding-bottom: calc(80px + env(safe-area-inset-bottom)); }
  .utility, .header-cta { display: none; }
  .menu { margin-left: auto; }
  /* The open menu must end above the fixed action bar, or its last links sit underneath it. */
  .menu-panel { max-height: calc(100vh - 70px - 68px); max-height: calc(100dvh - 70px - 68px - env(safe-area-inset-bottom)); overscroll-behavior: contain; }
  /* Comfortable tap targets for stacked footer links and breadcrumbs (>= 24px, WCAG 2.5.8). */
  .footer-nav a, .footer-legal a, .footer-dir, .crumbs a { display: inline-block; padding: .2rem 0; }
  .footer-nav li { margin-bottom: .25rem; }
  .hero-grid, .treat-grid, .visit-grid, .tech-grid, .refer-grid, .faq-grid, .cta-grid, .article-grid, .loc-grid, .contact-grid, .doc-row, .doc-hero-grid, .two-col { grid-template-columns: 1fr; }
  .hero::before { display: none; }
  .hero-media picture { aspect-ratio: 16 / 10; }
  .hero { padding-top: 32px; }
  .treat-intro, .article-aside { position: static; }
  .doc-pair { grid-template-columns: 1fr; }
  .doc-card { grid-template-columns: 1fr 1.3fr; align-items: center; }
  .doc-row-flip .doc-row-photo { order: 0; }
  .doc-row-photo, .doc-hero-photo { max-width: 460px; }
  .steps { grid-template-columns: 1fr; gap: 1.5rem; }
  .office-pair { grid-template-columns: 1fr; }
  .quotes { grid-template-columns: 1fr; gap: 2.5rem; }
  .refer-media, .tech-media { max-width: 560px; }
  .tech-inset { right: 0; }
  .refer-media { max-width: 360px; }
  .service-index a { grid-template-columns: 2.6rem 1fr auto; }
  .si-sum { grid-column: 2 / 3; }
  .loc-gallery { aspect-ratio: auto; grid-template-columns: 1fr 1fr; grid-template-rows: auto; }
  .loc-gallery .g0 { grid-column: 1 / span 2; grid-row: auto; }
  .loc-gallery picture { aspect-ratio: 4 / 3; }
  .contact-grid .form-wrap { order: -1; }
  .section-head-row { flex-direction: column; align-items: start; }

  .action-bar { display: grid; grid-template-columns: 1fr 1fr 1.2fr; position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; background: var(--white); border-top: 1px solid var(--line); box-shadow: 0 -8px 24px -16px rgba(0,0,0,.35); padding: 8px 8px calc(8px + env(safe-area-inset-bottom)); gap: 8px; }
  .action-bar > a, .action-call > summary { display: flex; align-items: center; justify-content: center; min-height: 48px; border: 1.5px solid var(--line-2); border-radius: var(--radius); font-weight: 600; color: var(--ink); text-decoration: none; background: var(--paper); list-style: none; cursor: pointer; }
  .action-call > summary::-webkit-details-marker { display: none; }
  .action-bar > .action-primary { background: var(--brand); border-color: var(--brand); color: #fff; }
  .action-sheet { position: absolute; left: 8px; right: 8px; bottom: calc(100% + 8px); background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: .4rem 1rem; }
  .action-sheet a { display: flex; justify-content: space-between; padding: 1rem 0; color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--line); }
  .action-sheet a:last-child { border-bottom: 0; }
  .action-sheet strong { color: var(--brand); }
  .credit { margin-left: 0 !important; }
}
@media (max-width: 600px) {
  body { font-size: 1rem; }
  .brand-name { font-size: .86rem; letter-spacing: -.015em; }
  .brand-item .mark { width: 28px; height: 28px; }
  .brand-item { gap: .35rem; }
  .menu > summary { padding: 0 .7rem; }
  .brand-sub { font-size: .58rem; letter-spacing: .3em; }
  .marks .mark { width: 32px; height: 32px; }
  .marks { gap: 3px; }
  .brand { gap: .55rem; }
  .menu-word { display: none; }
  .hero h1 { font-size: clamp(2.6rem, 11vw, 3.4rem); }
  .facts-row { grid-template-columns: 1fr; }
  .facts p, .facts p + p { padding: 1.1rem 0; border-left: 0; }
  .facts p + p { border-top: 1px solid var(--line); }
  .doc-card { grid-template-columns: 1fr; }
  .treat-list a { grid-template-columns: 2.2rem 1fr auto; }
  .treat-name, .si-name { font-size: 1.35rem; }
  .tech-list li { grid-template-columns: 1fr; gap: .3rem; }
  .field-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .cred-grid { grid-template-columns: 1fr; }
  .office-actions .btn { flex: 1; }
  .hero-actions .btn { flex: 1 1 100%; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
@media print {
  .utility, .site-header, .action-bar, .cta-band, .site-footer { display: none; }
}

/* communities served */
.area-county { font-size: 1.5rem; margin: 3rem 0 1rem; }
.area-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); border-top: 1px solid var(--ink); }
.area-list li { border-bottom: 1px solid var(--line); }
.area-list a { display: block; padding: .8rem 0; color: var(--ink); text-decoration: none; font: 400 1.15rem/1.3 var(--serif); }
.area-list a:hover { color: var(--brand); }
.prose .area-list-inline { border-top: 0; display: flex; flex-wrap: wrap; gap: .4rem .9rem; }
.prose .area-list-inline li { border: 0; padding: 0; margin: 0; }
.prose .area-list-inline li::before { display: none; }
.prose .area-list-inline a { padding: 0; font-size: 1rem; text-decoration: underline; color: var(--brand); }

/* practices map */
.pmap { margin: 0 0 clamp(2rem, 4vw, 3rem); }
.office-pair + .pmap, .office-pair ~ .pmap { margin: clamp(2rem, 4vw, 3rem) 0 0; }
.pmap-frame { position: relative; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: #f4efe6; box-shadow: var(--shadow); }
.pmap-frame img { display: block; width: 100%; height: auto; }
.pmap-legend { display: grid; grid-template-columns: 1fr 1fr; gap: 0 2rem; margin-top: 1.1rem; }
.pmap-item { display: flex; align-items: center; gap: .9rem; padding: .9rem 0; border-top: 1px solid var(--line); min-width: 0; }
.pmap-item .mark { width: 34px; height: 34px; flex: none; }
.pmap-item div { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.pmap-item strong { font: 400 1.2rem/1.25 var(--serif); }
.pmap-item span { color: var(--muted); font-size: .92rem; }
.pmap-item .link-arrow { flex: none; }
.pmap-note { grid-column: 1 / -1; margin: .4rem 0 0; color: var(--muted); font-size: .95rem; }
.pmap-credit { margin: .5rem 0 0; font-size: .75rem; color: var(--muted); text-align: right; }
.pmap-credit a { color: inherit; }
.pmap-compact { margin: .4rem 0 1rem; }
.pmap-compact .pmap-frame { box-shadow: none; }
@media (max-width: 760px) {
  .pmap-legend { grid-template-columns: 1fr; }
  .pmap-item { flex-wrap: wrap; }
  .pmap-item .link-arrow { margin-left: calc(34px + .9rem); }
}

/* The hidden attribute always wins over component display rules. */
[hidden] { display: none !important; }

/* team */
.team { padding-top: 0; }
.team-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; max-width: 980px; }
@media (max-width: 860px) { .team-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .team-grid { grid-template-columns: 1fr; } }
.team-card { display: flex; align-items: center; gap: 1rem; padding: 1.1rem 1.2rem; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); }
.team-initial { width: 46px; height: 46px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--brand-tint); color: var(--brand); font: 400 1.35rem/1 var(--serif); }
.team-name { margin: 0; font: 400 1.25rem/1.2 var(--serif); }
.team-role { margin: .1rem 0 0; color: var(--muted); font-size: .92rem; }
.team-where { margin: .15rem 0 0; font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; color: var(--brand); }
.team-langs { margin: 1.4rem 0 0; color: var(--muted); }

/* per-practice review links */
.review-practice { padding: 1.2rem 0; border-top: 1px solid var(--line); }
.review-practice h3 { display: flex; align-items: center; flex-wrap: wrap; gap: .3rem .7rem; margin: 0 0 .8rem; font-size: 1.3rem; }
.review-practice .mark { width: 30px; height: 30px; }
.review-where { font: 600 .75rem/1 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }

/* interactive practice map (Leaflet, loaded on demand) */
.pmap-frame { isolation: isolate; }
.pmap-live { position: absolute; inset: 0; z-index: 1; background: #f4efe6; font: inherit; }
.pmap-frame > picture, .pmap-frame > img { transition: opacity .3s; }
.pmap.is-live .pmap-frame > picture, .pmap.is-live .pmap-frame > img { opacity: 0; }
.pmap.is-live .pmap-credit { display: none; }
.pmap-osm .leaflet-tile-pane { filter: grayscale(.9) sepia(.22) brightness(1.04) contrast(.92); }
.pmap-geoapify .leaflet-tile-pane { filter: sepia(.12) saturate(.9); }
.pmap-live .leaflet-container, .pmap-live.leaflet-container { font: inherit; background: #f4efe6; }
.pmap-live .leaflet-control-zoom a, .pmap-reset { width: 34px; height: 34px; line-height: 32px; color: var(--ink); background: var(--white); }
.pmap-live .leaflet-bar { border: 1px solid var(--line-2); border-radius: 6px; box-shadow: 0 6px 16px -10px rgba(30, 26, 24, .4); overflow: hidden; }
.pmap-live .leaflet-control-zoom a:hover, .pmap-reset:hover { background: var(--brand-tint); color: var(--brand); }
.pmap-reset { display: grid; place-items: center; padding: 0; border: 1px solid var(--line-2); border-radius: 6px; cursor: pointer; box-shadow: 0 6px 16px -10px rgba(30, 26, 24, .4); }
.pmap-reset svg { width: 18px; height: 18px; }
.pmap-live .leaflet-control-attribution { font-size: .68rem; background: rgba(255, 253, 249, .85); color: var(--muted); padding: 1px 6px; }
.pmap-live .leaflet-control-attribution a { color: var(--ink-2); }
.pmap-pin { background: none; border: 0; }
.pmap-pin-body { position: absolute; left: 3px; top: 0; width: 36px; height: 36px; display: grid; place-items: center; background: var(--brand); border: 2px solid #fff; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); box-shadow: 0 8px 14px -6px rgba(77, 8, 12, .55); transition: transform .15s; }
.pmap-pin-text { transform: rotate(45deg); color: #fff; font: 700 11px/1 var(--sans); letter-spacing: .04em; }
.pmap-pin:hover .pmap-pin-body, .pmap-pin:focus-visible .pmap-pin-body { transform: rotate(-45deg) scale(1.08); }
.pmap-pin:focus-visible { outline: 3px solid var(--focus); outline-offset: 4px; border-radius: 50%; }
.pmap-live .leaflet-popup-content-wrapper { border-radius: 8px; box-shadow: 0 18px 40px -18px rgba(30, 26, 24, .45); }
.pmap-live .leaflet-popup-content { margin: 14px 16px; min-width: 210px; }
.pmap-pop p { margin: 0; }
.pmap-pop-place { font: 700 .75rem/1 var(--sans) !important; letter-spacing: .12em; text-transform: uppercase; color: var(--brand); margin-bottom: .35rem !important; }
.pmap-live .pmap-pop-name { display: block; font: 400 1.15rem/1.2 var(--serif); color: var(--ink); text-decoration: none; margin-bottom: .35rem; }
.pmap-live .pmap-pop-name:hover { color: var(--brand); }
.pmap-pop-addr { color: var(--muted); font-size: .86rem; line-height: 1.4; }
.pmap-pop-actions { display: flex; gap: .9rem; align-items: center; margin-top: .6rem !important; padding-top: .6rem; border-top: 1px solid var(--line); font-size: .88rem; }
.pmap-pop-call { font-weight: 700; color: var(--brand) !important; text-decoration: none; }
.pmap-pop-dir { color: var(--ink) !important; }
.pmap-hint { position: absolute; z-index: 2; left: 50%; bottom: 26px; transform: translateX(-50%); margin: 0; padding: .3rem .7rem; border-radius: 99px; background: rgba(30, 26, 24, .72); color: #fff; font-size: .75rem; white-space: nowrap; pointer-events: none; }
.pmap-live .pmap-label { background: rgba(255, 253, 249, .94); border: 1px solid var(--line-2); border-radius: 4px; box-shadow: 0 6px 14px -10px rgba(30, 26, 24, .5); padding: .2rem .5rem; font: 400 .95rem/1.2 var(--serif); color: var(--ink); white-space: nowrap; }
.pmap-live .pmap-label::before { display: none; }
@media (max-width: 640px) { .pmap-live .pmap-label { display: none; } }
.pmap-hint { transition: opacity .6s; } .pmap-hint.is-gone { opacity: 0; }

/* referral form */
.form-section { border: 0; padding: 0; margin: 0 0 1.6rem; }
.form-section > legend { font: 700 .75rem/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--brand); padding: 0 0 .9rem; width: 100%; border-bottom: 1px solid var(--line); margin-bottom: 1rem; }
.choice-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: .5rem; }
.field-help { font-size: .85rem; color: var(--muted); margin: .4rem 0 0; }
.refer-form input[type=file] { width: 100%; padding: .7rem; border: 1px dashed var(--field-line); border-radius: var(--radius); background: var(--paper); font: inherit; }
.refer-secure p { font-size: .92rem; color: var(--ink-2); }
.refer-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .8rem 1.2rem; padding: 1.1rem 1.3rem; margin-bottom: 1.8rem; background: var(--brand-tint); border-left: 3px solid var(--brand); border-radius: var(--radius); }
.refer-cta p { margin: 0; flex: 1 1 260px; }
.refer-print { background: var(--paper-2); border-left-color: var(--line-2); }
.refer-print-text { flex: 1 1 300px; }
.refer-print-text p { flex: none; }
.refer-print-actions { display: flex; flex-direction: column; align-items: flex-start; gap: .55rem; flex: 0 1 auto; }
.refer-faxes { list-style: none; margin: .55rem 0 0; padding: 0; font-size: .92rem; color: var(--ink-2); }
.refer-faxes li, .prose .refer-faxes li { margin: .15rem 0; padding-left: 0; }
.prose .refer-faxes li::before { display: none; }
.refer-faxes span { color: var(--ink); }
.refer-faxes strong { font-variant-numeric: tabular-nums; white-space: nowrap; }
.refer-slips-link { font-size: .85rem; color: var(--muted); }
.refer-slips-link:hover { color: var(--brand); }
.refer-paper p { font-size: .92rem; color: var(--ink-2); }
.refer-paper .refer-faxes { margin: 0 0 1rem; }

/* drag-and-drop uploader */
.drop { border: 1.5px dashed var(--line-2); border-radius: 8px; background: var(--paper); padding: 1.4rem 1.2rem; text-align: center; transition: background .15s, border-color .15s; }
.drop.is-over { background: var(--brand-tint); border-color: var(--brand); }
.drop-title { margin: 0; font: 400 1.3rem/1.2 var(--serif); }
.drop-sub { margin: .35rem 0 .9rem; color: var(--muted); font-size: .9rem; }
.drop-actions { display: flex; gap: .6rem; justify-content: center; flex-wrap: wrap; }
.drop-list { margin-top: .8rem; }
.drop-summary { margin: 0 0 .3rem; display: flex; gap: .5rem; align-items: baseline; flex-wrap: wrap; }
.drop-files { margin: 0; padding-left: 1.1rem; font-size: .88rem; color: var(--ink-2); overflow-wrap: anywhere; }
.drop-note { margin: .6rem 0 0; font-size: .85rem; color: var(--ink-2); }
.link-btn { background: none; border: 0; padding: 0; color: var(--brand); text-decoration: underline; cursor: pointer; font: inherit; font-size: .88rem; }
.up-progress { margin-top: 1rem; }
.up-bar { height: 10px; border-radius: 99px; background: var(--paper-3); overflow: hidden; }
.up-bar span { display: block; height: 100%; width: 0; background: var(--brand); transition: width .2s; }
.up-status { margin: .5rem 0 0; font-size: .9rem; color: var(--ink-2); }
.form-error .btn { margin-top: .8rem; }
.choice-grid .choice { justify-content: flex-start; text-align: left; }

/* Choice tiles: the generic ".field label" rule was zeroing their padding. */
.field .choice, .choice { padding: .75rem 1.15rem .75rem .95rem; gap: .7rem; line-height: 1.25; }
.choice-row { gap: .65rem; }
.choice-grid { gap: .6rem; }
.choice span { padding-right: .1rem; }
.ts-note { font-size: .88rem; color: var(--muted); margin: .4rem 0 .8rem; }
.cf-turnstile:not(:empty) { margin: .4rem 0 1rem; }

/* lectures, articles and videos */
.media-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.media-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.media-has-video { grid-column: span 2; }
@media (max-width: 700px) { .media-has-video { grid-column: auto; } }
.media-video { position: relative; display: block; aspect-ratio: 16 / 9; background: #111; overflow: hidden; }
.media-video img { width: 100%; height: 100%; object-fit: cover; display: block; opacity: .92; transition: opacity .2s, transform .4s; }
.media-video:hover img { opacity: 1; transform: scale(1.02); }
.media-play { position: absolute; left: 50%; top: 50%; width: 76px; height: 54px; transform: translate(-50%, -50%); background: var(--brand); border-radius: 14px; box-shadow: 0 10px 24px -8px rgba(0,0,0,.6); }
.media-play::after { content: ""; position: absolute; left: 31px; top: 15px; border-style: solid; border-width: 12px 0 12px 20px; border-color: transparent transparent transparent #fff; }
.media-frame { width: 100%; aspect-ratio: 16 / 9; border: 0; display: block; }
.media-body { padding: 1.1rem 1.2rem 1.3rem; }
.media-kind { margin: 0 0 .4rem; font: 700 .75rem/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--brand); }
.media-title { margin: 0 0 .35rem; font: 400 1.3rem/1.25 var(--serif); }
.media-title a { color: var(--ink); text-decoration: none; }
.media-title a:hover { color: var(--brand); text-decoration: underline; }
.media-source { margin: 0 0 .5rem; font-size: .88rem; color: var(--muted); }
.media-summary { margin: 0; font-size: .95rem; color: var(--ink-2); }
.media-feature { margin-top: clamp(32px, 5vw, 56px); }
.media-feature .media-grid { margin: .8rem 0 1.2rem; }

.request-actions { display: grid; gap: .7rem; margin: 1.2rem 0; }
.request-actions .btn { justify-content: center; white-space: normal; text-align: center; }

/* Articles */
.post-year + .post-year { margin-top: clamp(40px, 6vw, 64px); }
.post-year-h { font-size: 1rem; font-family: var(--sans); letter-spacing: .08em; color: var(--muted); border-bottom: 1px solid var(--line); padding-bottom: .6rem; margin: 0 0 .4rem; }
.post-list { list-style: none; margin: 0; padding: 0; }
.post-list li + li { border-top: 1px solid var(--line); }
.post-item { display: grid; gap: .35rem; padding: 1.25rem 0; color: inherit; text-decoration: none; }
.post-item time { font-size: .85rem; color: var(--muted); }
.post-title { font-family: var(--serif); font-size: clamp(1.25rem, 2vw, 1.5rem); line-height: 1.25; color: var(--ink); }
.post-item:hover .post-title, .post-item:focus-visible .post-title { color: var(--brand); text-decoration: underline; text-underline-offset: 3px; }
.post-sum { color: var(--ink-2); }
.post-disclaimer { margin-top: 2.5em; padding: 1.1rem 1.25rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper-2); font-size: .9rem; color: var(--ink-2); }
.prose .post-disclaimer h2 { font-family: var(--sans); font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 0 0 .5rem; }
.prose .post-disclaimer p { margin: .5rem 0 0; }
.post-index-note { margin-top: clamp(32px, 5vw, 48px); padding-top: 1rem; border-top: 1px solid var(--line); font-size: .9rem; color: var(--muted); }
.team-photo { width: 46px; height: 46px; flex: none; border-radius: 50%; object-fit: cover; background: var(--brand-tint); }
