/* Layout: a deep navy hero panel with portrait slot and call button, a ruled spec-sheet body with a label rail, procedure cards, and a closing consult band. */
:root {
  --bg: #F2F5F7;
  --surface: #FFFFFF;
  --ink: #101C26;
  --muted: #4A5B69;
  --line: #D3DCE2;
  --accent: #0F5C7A;
  --hero-bg: #0F2C3F;
  --hero-fg: #F2F6F8;
  --hero-muted: #A9BFCC;
  --hero-accent: #8FD0E8;
  --hero-line: #2B4A5E;
  --flag-bg: #FFF0BF;
  --flag-fg: #5E4200;
  --flag-line: #C9A227;
  --font-display: "Spectral", Georgia, "Times New Roman", serif;
  --font-body: "Source Sans 3", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0C151C;
    --surface: #142029;
    --ink: #E8EEF2;
    --muted: #9DB0BD;
    --line: #26363F;
    --accent: #7CC4E0;
    --hero-bg: #163A50;
    --hero-line: #2F566D;
    --flag-bg: #3B2D07;
    --flag-fg: #FFD98A;
    --flag-line: #8A6D17;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0C151C;
  --surface: #142029;
  --ink: #E8EEF2;
  --muted: #9DB0BD;
  --line: #26363F;
  --accent: #7CC4E0;
  --hero-bg: #163A50;
  --hero-line: #2F566D;
  --flag-bg: #3B2D07;
  --flag-fg: #FFD98A;
  --flag-line: #8A6D17;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  padding-block: 0 3rem;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
body::before {
  content: "";
  position: fixed;
  inset: 0 0 auto;
  height: env(safe-area-inset-top, 0px);
  background: var(--bg);
  z-index: 10;
}
img, svg { max-width: 100%; height: auto; }
[hidden] { display: none !important; }
a { color: var(--accent); text-underline-offset: 0.18em; }
a:focus-visible, summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }

.wrap { max-width: 62rem; margin-inline: auto; }

/* Items that still need the surgeon's input */
.flag {
  display: inline;
  background: var(--flag-bg);
  color: var(--flag-fg);
  border: 1px dashed var(--flag-line);
  border-radius: 3px;
  padding: 0 0.35em;
  font-family: var(--font-mono);
  font-size: 0.85em;
  line-height: 1.7;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}
.draft {
  margin: 0.75rem 0 0;
  padding: 0.65rem 0.9rem;
  background: var(--flag-bg);
  color: var(--flag-fg);
  border: 1px dashed var(--flag-line);
  border-radius: 4px;
  font-size: 0.92rem;
  line-height: 1.5;
}
.draft .flag { background: transparent; border-color: currentColor; }

.top {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 20;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.4rem 1.5rem;
  padding-block: 0.85rem;
  margin-bottom: 0.5rem;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}
.brand { font-family: var(--font-display); font-size: 1.25rem; color: var(--ink); text-decoration: none; }
.top nav { display: flex; flex-wrap: wrap; align-items: center; gap: 0.25rem 1.4rem; font-size: 0.95rem; }
.top nav a { color: var(--muted); text-decoration: none; }
.top nav a:hover { color: var(--accent); text-decoration: underline; }
.top nav .nav-call {
  padding: 0.3rem 0.8rem;
  border: 1px solid var(--accent);
  border-radius: 4px;
  color: var(--accent);
  font-weight: 600;
  white-space: nowrap;
}
.top nav .nav-call:hover { background: var(--accent); color: var(--bg); text-decoration: none; }

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 15rem;
  gap: 2rem 3rem;
  align-items: center;
  margin: 1rem 0 1.5rem;
  padding: clamp(1.5rem, 4.5vw, 3.25rem);
  background: var(--hero-bg);
  color: var(--hero-fg);
  border-radius: 6px;
}
.hero.solo { grid-template-columns: minmax(0, 1fr); }
.hero > * { min-width: 0; }
@media (max-width: 44rem) {
  .hero { grid-template-columns: minmax(0, 1fr); }
  .portrait { order: -1; max-width: 11rem; }
}
.kicker {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--hero-accent);
}
h1 {
  margin: 0.6rem 0 1rem;
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(2.2rem, 1.3rem + 4vw, 3.9rem);
  line-height: 1.06;
  letter-spacing: -0.012em;
  text-wrap: balance;
}
.lead { margin: 0 0 0.75rem; max-width: 38rem; font-size: 1.25rem; line-height: 1.5; }
.affil { margin: 0 0 1.5rem; max-width: 38rem; color: var(--hero-muted); }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1.5rem; }
.btn {
  display: inline-block;
  padding: 0.7rem 1.3rem;
  background: var(--hero-accent);
  color: #0A2230;
  border-radius: 4px;
  font-weight: 600;
  text-decoration: none;
}
.btn:hover { filter: brightness(1.08); }
.btn:focus-visible { outline: 2px solid var(--hero-fg); outline-offset: 3px; }
.hero-note { margin: 0; font-family: var(--font-mono); font-size: 0.8rem; color: var(--hero-muted); }
.hero a:not(.btn) { color: var(--hero-accent); }

.portrait {
  display: grid;
  place-items: center;
  aspect-ratio: 4 / 5;
  width: 100%;
  border: 1px dashed var(--hero-line);
  border-radius: 4px;
  text-align: center;
  padding: 1rem;
}
.portrait .flag { white-space: normal; }
.portrait.has-photo { border: 0; padding: 0; overflow: hidden; }
.portrait.has-photo img { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 4px; }

.facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin: 0 0 2.5rem;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
}
.facts > div {
  display: flex;
  flex-direction: column-reverse;
  justify-content: flex-end;
  gap: 0.2rem;
  min-width: 0;
  padding: 1rem 1.1rem;
  background: var(--surface);
}
.facts dd { margin: 0; font-family: var(--font-display); font-size: clamp(1.5rem, 1rem + 2.4vw, 2.1rem); line-height: 1.1; white-space: nowrap; }
@media (max-width: 36rem) { .facts { grid-template-columns: minmax(0, 1fr); } }
.facts dd .flag { font-size: 0.8rem; }
.facts dt { font-size: 0.85rem; line-height: 1.35; color: var(--muted); }

.row {
  display: grid;
  grid-template-columns: 11rem minmax(0, 1fr);
  gap: 0.75rem 2rem;
  padding-block: 2rem;
  border-top: 1px solid var(--line);
}
.row > * { min-width: 0; }
@media (max-width: 42rem) {
  .row { grid-template-columns: minmax(0, 1fr); }
}
.row > h2 {
  margin: 0.3rem 0 0;
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 0.75rem;
  line-height: 1.5;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.row h3 {
  margin: 0 0 0.3rem;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.4rem;
  line-height: 1.25;
  text-wrap: balance;
}
.row p { margin: 0 0 0.9rem; max-width: 40rem; }
.row p:last-child { margin-bottom: 0; }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); gap: 1rem; }
.card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 1.25rem 1.3rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 6px;
}
.card h3 { font-size: 1.3rem; }
.card p { font-size: 0.97rem; color: var(--muted); }
.card .more { margin-top: auto; padding-top: 0.5rem; font-size: 0.95rem; font-weight: 600; }
.card h3 a { color: var(--ink); text-decoration: none; }
.card h3 a:hover { color: var(--accent); text-decoration: underline; }

.spec { display: grid; grid-template-columns: 9.5rem minmax(0, 1fr); gap: 0.6rem 1.5rem; margin: 0; }
.spec dt { font-family: var(--font-mono); font-size: 0.78rem; line-height: 1.7; letter-spacing: 0.04em; color: var(--muted); }
.spec dd { margin: 0; }
@media (max-width: 36rem) {
  .spec { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .spec dd { margin-bottom: 0.9rem; }
}

.offices { display: grid; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); gap: 1rem; }
.offices > div {
  min-width: 0;
  padding: 1.1rem 1.2rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 6px;
}
.offices h3 { font-size: 1.2rem; }
.offices address { font-style: normal; }
.note { margin-top: 1.25rem; color: var(--muted); font-size: 0.95rem; }

.plain { margin: 0; padding-left: 1.2rem; max-width: 40rem; }
.plain li { margin-bottom: 0.5rem; }
.plain li::marker { color: var(--muted); }

figure.fig { margin: 0 0 1.5rem; max-width: 30rem; padding: 1rem; background: var(--surface); border: 1px solid var(--line); border-radius: 6px; }
figure.fig svg { display: block; width: 100%; }
figure.fig figcaption { margin-top: 0.4rem; font-family: var(--font-mono); font-size: 0.72rem; line-height: 1.5; color: var(--muted); }
.s-cup { fill: none; stroke: var(--accent); stroke-width: 6; stroke-linecap: round; }
.s-liner { fill: none; stroke: var(--muted); stroke-width: 10; opacity: 0.55; }
.s-head { fill: var(--surface); stroke: var(--ink); stroke-width: 2; }
.s-stem { fill: var(--surface); stroke: var(--ink); stroke-width: 2; stroke-linejoin: round; }
.s-bone { fill: none; stroke: var(--muted); stroke-width: 1.5; stroke-dasharray: 5 5; }
.s-lead { fill: none; stroke: var(--muted); stroke-width: 1; }
.s-label { fill: var(--muted); font-family: var(--font-mono); font-weight: 500; font-size: 10px; letter-spacing: 0.06em; }

.faq details { border-top: 1px solid var(--line); }
.faq details:first-child { border-top: 0; }
.faq summary {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 0.9rem;
  cursor: pointer;
  list-style: none;
  font-family: var(--font-display);
  font-size: 1.15rem;
  line-height: 1.35;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; font-family: var(--font-mono); color: var(--accent); }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { margin: 0 0 1rem; max-width: 40rem; }

.cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 2rem;
  margin: 1rem 0 2.5rem;
  padding: 1.75rem clamp(1.25rem, 4vw, 2.25rem);
  background: var(--hero-bg);
  color: var(--hero-fg);
  border-radius: 6px;
}
.cta > div { min-width: 0; }
.cta h2 { margin: 0 0 0.25rem; font-family: var(--font-display); font-weight: 300; font-size: 1.8rem; line-height: 1.2; text-wrap: balance; }
.cta p { margin: 0; color: var(--hero-muted); max-width: 32rem; }

.foot {
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.55;
}
.foot p { margin: 0 0 0.6rem; max-width: 44rem; }

h1.name { white-space: nowrap; font-size: clamp(1.7rem, 0.9rem + 4.6vw, 3.1rem); }

.trial { margin: 0 0 1.75rem; padding: 1.25rem 1.3rem; background: var(--surface); border: 1px solid var(--line); border-radius: 6px; }
.trial h3 { margin-bottom: 0.5rem; }
.trial p { margin: 0 0 0.75rem; }
.trial p:last-child { margin-bottom: 0; }
.pub-group { margin: 1.5rem 0 0.5rem; font-family: var(--font-mono); font-weight: 500; font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.pub-group:first-of-type { margin-top: 0; }
.pubs { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.7rem; max-width: 44rem; }
.pubs li { margin: 0; line-height: 1.45; }
.pubs .j { display: block; font-family: var(--font-mono); font-size: 0.75rem; color: var(--muted); }
.offices .dir { display: inline-block; margin-top: 0.7rem; font-size: 0.95rem; font-weight: 600; }

/* Google reviews badge (hero) */
.rating{display:inline-flex;align-items:center;gap:.7rem;flex-wrap:wrap;margin:0 0 1.25rem;padding:.6rem .9rem;border:1px solid var(--hero-line);border-radius:6px;color:var(--hero-fg);text-decoration:none;line-height:1.2}
.rating:hover{border-color:var(--hero-accent)}
.rating .num{font-family:'Spectral',serif;font-size:1.6rem;font-weight:400}
.rating .stars{color:var(--hero-accent);letter-spacing:.1em;font-size:1rem}
.rating .src{font-family:'IBM Plex Mono',monospace;font-size:.72rem;letter-spacing:.04em;text-transform:uppercase;color:var(--hero-muted)}

figure.fig.photo { max-width: 40rem; }
figure.fig img { display: block; width: 100%; height: auto; border-radius: 4px; }

/* Society and profile badges (footer) */
.badges{display:flex;flex-wrap:wrap;gap:.75rem;align-items:center;margin:0 0 1.25rem}
.badges a{display:flex;align-items:center;justify-content:center;width:3.4rem;height:3.4rem;padding:.3rem;background:#fff;border-radius:8px;border:1px solid var(--line)}
.badges a:hover{border-color:var(--accent)}
.badges img{display:block;width:100%;height:100%;object-fit:contain}
.badges .sep{width:1px;height:2rem;background:var(--line);margin:0 .25rem}

.badges a.member{width:5.2rem;height:5.2rem;padding:0;overflow:hidden}

.cover{display:block;margin-top:.9rem;width:8rem}
.cover img{display:block;width:100%;height:auto;border-radius:3px;border:1px solid var(--line)}

.book-banner{display:flex;align-items:center;gap:1.25rem;margin:2rem 0 1rem;padding:1rem 1.25rem;background:var(--surface);border:1px solid var(--line);border-radius:6px;text-decoration:none;color:var(--ink)}
.book-banner:hover{border-color:var(--accent)}
.book-banner img{display:block;width:5.5rem;height:auto;flex:none;border-radius:3px;border:1px solid var(--line)}
.bb-text{display:flex;flex-direction:column;gap:.25rem}
.bb-kicker{font-family:'IBM Plex Mono',monospace;font-size:.72rem;letter-spacing:.06em;text-transform:uppercase;color:var(--muted)}
.bb-title{font-family:'Spectral',serif;font-size:1.25rem;line-height:1.25}
.bb-sub{color:var(--muted);font-size:.95rem}

.badges a.member.round{padding:.15rem}

.award{display:block;margin-top:.9rem;width:16rem;max-width:100%}
.award img{display:block;width:100%;height:auto;border-radius:4px}

.awards{display:flex;flex-wrap:wrap;gap:.9rem;align-items:center;margin-top:.9rem}
.awards .award{margin-top:0;width:auto}
.awards .award img{height:5.2rem;width:auto}
.awards .award.sd{background:#fff;padding:.5rem .8rem;border-radius:4px}
.awards .award.sd img{height:4.2rem}

.honors{display:grid;grid-template-columns:1fr 1fr;gap:1.25rem}
.honor{display:flex;flex-direction:column;gap:.6rem}
.honor p{margin:0;font-size:.95rem;line-height:1.4}
.honors .award{display:flex;align-items:center;justify-content:center;width:100%;height:6.5rem;margin:0;overflow:hidden;border-radius:4px;background:#113952}
.honors .award img{width:auto;max-width:100%;height:100%;object-fit:contain}
.honors .award.sd{background:#fff;padding:.6rem 1rem}
.honors .award.sd img{height:auto;max-height:100%}
@media (max-width:36rem){.honors{grid-template-columns:1fr}}

.offices{grid-template-columns:repeat(2,1fr)}
@media (max-width:36rem){.offices{grid-template-columns:1fr}}
.offices > div.info p{margin:.4rem 0 0}

.downloads{list-style:none;margin:1rem 0 0;padding:0}
.downloads li{margin:.35rem 0}
.downloads a{font-weight:600}

.offices h3{font-weight:600}
.card h3{font-weight:600}

/* outcomes table */
.outcomes{width:100%;border-collapse:collapse;font-size:.95rem;font-variant-numeric:tabular-nums}
.outcomes th,.outcomes td{padding:.45rem .5rem;border-bottom:1px solid var(--line);text-align:right;vertical-align:baseline}
.outcomes th:first-child,.outcomes td:first-child{text-align:left;padding-left:0}
.outcomes thead th{font-family:var(--font-mono);font-size:.72rem;font-weight:400;letter-spacing:.04em;text-transform:uppercase;color:var(--muted);vertical-align:bottom}
.outcomes tfoot td{font-weight:600;border-bottom:0}
.outcomes td.pooled,.outcomes th.pooled{font-weight:600}
.outcomes .ref{font-size:.75em;vertical-align:super;line-height:0}
.outcomes-wrap{overflow-x:auto}
.outcomes-src{margin:.6rem 0 0;font-size:.85rem;color:var(--muted)}
