/* =========================================================================
   Dr. Aslan Baradaran — baradaranmd.com
   Palette, type and spacing follow the Claude Design source for this site.
   ========================================================================= */

:root {
  --ink:    #14303a;   /* headings, strong text */
  --teal:   #2b6777;   /* primary                */
  --accent: #52ab98;   /* highlight, focus ring  */
  --pale:   #c8d8e4;   /* quote rules, soft band */
  --grey:   #f2f2f2;   /* section background     */
  --body:   #3d5c66;   /* running text           */
  --muted:  #456470;   /* labels, captions       */
  --dark:   #0d2029;
  --deep:   #1c4a58;

  --line:  #e4e9ec;
  --line2: #dbe3e7;
  --line3: #cfd9de;
  --line4: #eef1f3;

  --serif: Newsreader, Georgia, "Times New Roman", serif;
  --sans:  Archivo, "Helvetica Neue", Helvetica, Arial, sans-serif;
  --mono:  "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;

  --pad:  clamp(20px, 4vw, 56px);
  --maxw: 1440px;
  --r:    2px;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

body {
  margin: 0;
  background: #fff;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  text-wrap: pretty;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { margin: 0; font-weight: 400; text-wrap: balance; }
p, ul, ol, figure { margin: 0; }
img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; }

a { color: var(--teal); text-decoration-color: rgba(43,103,119,.35); text-underline-offset: 4px; }
a:hover { color: var(--ink); text-decoration-color: var(--accent); }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: var(--r); }

[hidden] { display: none !important; }

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--ink); color: #fff; padding: 14px 22px; font-size: 15px; letter-spacing: .02em;
}
.skip:focus { left: 12px; top: 12px; color: #fff; }

.shell { min-height: 100vh; display: flex; flex-direction: column; }
.main  { flex: 1; }
.wrap  { max-width: var(--maxw); margin: 0 auto; padding-left: var(--pad); padding-right: var(--pad); }
.section { padding-top: clamp(48px, 8vh, 104px); padding-bottom: clamp(48px, 8vh, 104px); }
.stack { display: flex; flex-direction: column; gap: clamp(40px, 6vh, 72px); }
.stack--sections { gap: clamp(28px, 4vh, 44px); }

/* ── Type scale ──────────────────────────────────────────────────────────── */

.h1 { font-family: var(--serif); font-size: clamp(32px, 4.6vw, 60px); line-height: 1.05; letter-spacing: -.022em; max-width: 20ch; }
.h1--light { color: #fff; }
.h2 { font-family: var(--serif); font-size: clamp(26px, 3.2vw, 42px); line-height: 1.12; letter-spacing: -.018em; }
.h2--tight { max-width: 17ch; }
.h2--light { color: #fff; }
.h3 { font-family: var(--serif); font-size: clamp(22px, 2.5vw, 31px); line-height: 1.18; letter-spacing: -.015em; }

.h2--rule, .h3--rule { padding-bottom: 13px; border-bottom: 1px solid var(--line); }
.h2--ruleThick { padding-bottom: 14px; border-bottom: 2px solid var(--teal); }
.h3--rule + p, .h2--rule + p { margin-top: 16px; }

.lead { margin-top: 18px; font-size: clamp(17px, 1.4vw, 19px); line-height: 1.7; color: var(--body); max-width: 58ch; }

.kicker { font-family: var(--mono); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-bottom: 16px; }
.kicker--teal  { color: var(--teal); }
.kicker--light { color: #cfe6e0; }
.kicker--green { color: #2f7d6c; }

.mono-label { font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); line-height: 1.6; }
.mono-label--light { color: #cfe6e0; }
.mono-idx   { font-family: var(--mono); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.mono-count { font-family: var(--mono); font-size: 12px; letter-spacing: .08em; color: var(--muted); }

/* A left rule marks quoted / explanatory prose, as in the design. */
.quoted { color: var(--body); border-left: 2px solid var(--pale); padding-left: 18px; max-width: 62ch; }
.quoted + .quoted { margin-top: 14px; }
.quoted--light { color: #dbe8ec; border-left-color: rgba(255,255,255,.35); }

.disclaimer { margin-top: 8px; font-size: 14.5px; line-height: 1.65; color: var(--muted); max-width: 68ch; }
.consent { margin-top: 20px; font-family: var(--mono); font-size: 13px; line-height: 1.6; color: var(--muted); max-width: 56ch; }
.empty { padding: 40px 0; font-size: 17px; color: var(--body); max-width: 60ch; }

/* ── Buttons ─────────────────────────────────────────────────────────────── */

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 50px; padding: 0 24px;
  font-size: 15.5px; line-height: 1.2; text-align: center; text-decoration: none;
  border: 1px solid transparent; border-radius: var(--r); cursor: pointer;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.btn--lg    { min-height: 56px; padding: 0 30px; font-size: 16.5px; }
.btn--small { min-height: 44px; padding: 0 16px; font-size: 14px; }
.btn--block { display: flex; width: 100%; }

.btn--primary { background: var(--teal); color: #fff; }
.btn--primary:hover { background: var(--ink); color: #fff; }
.btn--accent  { background: var(--accent); color: #08252c; font-weight: 500; }
.btn--accent:hover { background: #6fc0ae; color: #08252c; }
.btn--dark    { background: var(--ink); color: #fff; }
.btn--dark:hover { background: var(--teal); color: #fff; }
.btn--white   { background: #fff; color: var(--ink); }
.btn--white:hover { background: var(--pale); color: var(--ink); }
.btn--outline { border-color: #a9bcc4; color: var(--teal); background: transparent; }
.btn--outline:hover { background: var(--grey); color: var(--ink); }
.btn--onDark  { border-color: rgba(255,255,255,.45); color: #fff; background: transparent; }
.btn--onDark:hover { background: rgba(255,255,255,.12); border-color: #fff; color: #fff; }
.btn--soft    { background: var(--grey); border-color: var(--line2); color: var(--ink); }
.btn--soft:hover { background: #e6ecef; color: var(--ink); }
.btn--ghost   { border-color: rgba(255,255,255,.28); color: #c4d5da; background: transparent; }
.btn--ghost:hover { border-color: #fff; color: #fff; }
.btn--ghost.is-on { background: var(--accent); border-color: var(--accent); color: #08252c; }

/* ── Header ──────────────────────────────────────────────────────────────── */

.site-head {
  position: sticky; top: 0; z-index: 60;
  background: rgba(255,255,255,.94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-head__inner {
  max-width: var(--maxw); margin: 0 auto; padding: 0 var(--pad);
  display: flex; align-items: center; gap: clamp(14px, 2.4vw, 36px); min-height: 80px;
}
.brand { display: flex; flex-direction: column; line-height: 1.15; padding: 8px 0; min-width: 0; text-decoration: none; color: var(--ink); }
.brand__name   { font-family: var(--serif); font-size: 22px; letter-spacing: -.01em; }
.brand__suffix { font-family: var(--mono); font-size: 10px; letter-spacing: .13em; text-transform: uppercase; color: var(--muted); margin-top: 3px; white-space: nowrap; }

.nav { display: none; margin-left: auto; }
.nav__list { list-style: none; padding: 0; margin: 0; display: flex; align-items: center; gap: clamp(4px, 1.1vw, 16px); }
.nav__link {
  display: block; padding: 10px 6px; font-size: 14.5px; letter-spacing: .01em;
  text-decoration: none; color: #2f4f59; white-space: nowrap; border-bottom: 2px solid transparent;
}
.nav__link:hover { color: var(--ink); border-bottom-color: #2f7d6c; }
.nav__link.is-active { color: var(--ink); border-bottom-color: var(--teal); }

.head-aside { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.head-cta { display: none; min-height: 46px; padding: 0 20px; font-size: 14.5px; white-space: nowrap; }

.langtoggle { display: flex; border: 1px solid var(--line3); border-radius: var(--r); overflow: hidden; }
.langtoggle__btn {
  display: flex; align-items: center; justify-content: center;
  min-height: 40px; padding: 0 13px; font-size: 13.5px; letter-spacing: .06em;
  text-decoration: none; color: var(--body); background: transparent;
}
.langtoggle__btn:hover { background: #eef3f5; color: var(--ink); }
.langtoggle__btn.is-on { background: var(--teal); color: #fff; }

.burger {
  display: flex; align-items: center; justify-content: center;
  width: 52px; height: 52px; background: transparent;
  border: 1px solid var(--line3); border-radius: var(--r); cursor: pointer;
}
.burger:hover { background: var(--grey); }
.burger__bars { display: flex; flex-direction: column; gap: 5px; width: 22px; }
.burger__bars span { display: block; height: 1.5px; background: var(--ink); }

/* Below the desktop breakpoint the links wrap onto their own row. With
   JavaScript available that row is replaced by the burger + overlay instead. */
.nav { display: block; width: 100%; margin-left: 0; order: 3; }
.nav__list { flex-wrap: wrap; }

@media (max-width: 1099px) {
  .site-head__inner { flex-wrap: wrap; padding-top: 10px; padding-bottom: 10px; }
  .js .nav { display: none; }
}
/* Keep the brand, the language toggle and the burger on a single row on
   phones — the specialty line reappears in the footer. */
@media (max-width: 620px) {
  .site-head__inner { gap: 10px; min-height: 68px; }
  .brand__name { font-size: 19px; }
  .brand__suffix { display: none; }
  .langtoggle__btn { padding: 0 10px; min-height: 42px; }
  .burger { width: 46px; height: 46px; }
}
@media (min-width: 1100px) {
  .nav { display: block; width: auto; margin-left: auto; order: 0; }
  .js .nav { display: block; }
  .nav__list { flex-wrap: nowrap; }
  .burger { display: none !important; }
  .head-aside { margin-left: 0; flex-shrink: 0; }
}
/* The header CTA only appears once the full navigation, the language toggle
   and the button all genuinely fit on one line. */
@media (min-width: 1400px) {
  .head-cta { display: inline-flex; }
}

/* ── Mobile menu ─────────────────────────────────────────────────────────── */

.menu { position: fixed; inset: 0; z-index: 90; background: #fff; display: flex; flex-direction: column; overflow-y: auto; }
.menu__bar { display: flex; align-items: center; justify-content: space-between; padding: 14px var(--pad); border-bottom: 1px solid var(--line); min-height: 80px; }
.menu__close { width: 52px; height: 52px; background: transparent; border: 1px solid var(--line3); border-radius: var(--r); font-size: 26px; line-height: 1; cursor: pointer; }
.menu__close:hover { background: var(--grey); }
.menu__nav { padding: 8px var(--pad) 32px; flex: 1; }
.menu__list { list-style: none; padding: 0; margin: 0; }
.menu__list li { border-bottom: 1px solid var(--line4); }
.menu__link { display: flex; align-items: center; min-height: 64px; font-family: var(--serif); font-size: 26px; text-decoration: none; color: var(--ink); }
.menu__link:hover { color: var(--teal); }
.menu__cta { margin-top: 28px; min-height: 60px; font-size: 17px; }
.menu__langs { display: flex; gap: 10px; margin-top: 16px; }
.menu__langs .btn { flex: 1; min-height: 56px; border-color: var(--line3); color: var(--body); }
.menu__langs .btn.is-on { background: var(--teal); border-color: var(--teal); color: #fff; }

/* ── Hero ────────────────────────────────────────────────────────────────── */

.hero__h1 { font-family: var(--serif); font-size: clamp(34px, 4.9vw, 66px); line-height: 1.06; letter-spacing: -.022em; max-width: 18ch; }
.hero__h1--light { color: #fff; }
.hero__h1--big { font-size: clamp(40px, 7vw, 100px); line-height: 1; letter-spacing: -.03em; max-width: 14ch; }
.hero__sub { margin-top: 22px; max-width: 48ch; font-size: clamp(16px, 1.35vw, 19px); line-height: 1.65; color: var(--body); }
.hero__sub--light { color: #d6e3e8; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

.hero--photo { position: relative; background: var(--dark); overflow: hidden; min-height: clamp(520px, 80vh, 820px); display: flex; align-items: flex-end; }
.hero--photo__media { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .85; }
.hero--photo__scrim { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(13,32,41,.92) 0%, rgba(13,32,41,.68) 45%, rgba(13,32,41,.2) 100%); }
.hero--photo__inner { position: relative; width: 100%; padding-top: clamp(72px, 14vh, 150px); padding-bottom: clamp(40px, 7vh, 80px); }

.hero--patients { min-height: clamp(460px, 70vh, 760px); position: relative; background: var(--deep); overflow: hidden; display: flex; align-items: flex-end; }
.hero--patients .hero--photo__scrim { background: linear-gradient(90deg, rgba(17,44,54,.93) 0%, rgba(17,44,54,.72) 46%, rgba(17,44,54,.26) 100%); }

.hero--split { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); background: var(--grey); }
.hero--split__media { min-height: clamp(380px, 58vh, 660px); background: #dfe6ea; }
.hero--split__media .cover { width: 100%; height: 100%; min-height: clamp(380px, 58vh, 660px); object-fit: cover; }
.hero--split__body { display: flex; flex-direction: column; justify-content: center; padding: clamp(36px, 6vw, 80px); }

.hero--type { background: var(--grey); }
.hero--type__inner { padding-top: clamp(56px, 10vh, 120px); padding-bottom: clamp(40px, 6vh, 72px); }
.hero--type__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: clamp(20px, 3vw, 48px); margin-top: clamp(36px, 6vh, 64px); padding-top: 28px; border-top: 1px solid var(--line3); }
.hero--type__media { width: 100%; height: clamp(260px, 44vh, 520px); object-fit: cover; }

/* ── Bands and splits ────────────────────────────────────────────────────── */

.band--grey { background: var(--grey); }
.band--teal { background: var(--teal); color: #fff; }
.band > .wrap { padding-top: clamp(48px, 7vh, 92px); padding-bottom: clamp(48px, 7vh, 92px); }

.split { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.split__media { width: 100%; height: 100%; min-height: 340px; object-fit: cover; }
.split__body { display: flex; flex-direction: column; justify-content: center; padding: clamp(36px, 5.5vw, 80px); gap: 0; }
.split__body .h2 { max-width: 18ch; }
.split__body .quoted { margin-top: 20px; }
.split__body .btn { margin-top: 26px; align-self: flex-start; }
.split--reverse .split__body { order: -1; }
@media (max-width: 759px) { .split--reverse .split__body { order: 0; } }

.about__creds { margin-top: 10px; font-size: 18px; color: var(--body); }

/* ── Home sections ───────────────────────────────────────────────────────── */

.sec-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 16px; justify-content: space-between; border-bottom: 1px solid var(--line); padding-bottom: 20px; }
.morelink { font-family: var(--mono); font-size: 12.5px; letter-spacing: .06em; text-transform: uppercase; text-decoration: none; color: var(--teal); padding: 8px 0; display: inline-block; }
.morelink:hover { color: #2f6c5f; }

.pillars { list-style: none; padding: 0; margin: clamp(28px, 4vw, 48px) 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: clamp(20px, 2.5vw, 36px); }
.pillar { display: flex; flex-direction: column; background: var(--grey); border-top: 2px solid var(--teal); }
.pillar__media { width: 100%; }
.pillar__body { display: flex; flex-direction: column; gap: 12px; padding: clamp(22px, 2.4vw, 30px); flex: 1; }
.pillar__title { font-family: var(--serif); font-size: 26px; line-height: 1.15; }
.pillar__body .quoted { font-size: 15.5px; line-height: 1.6; padding-left: 14px; }
.pillar__link { margin-top: auto; display: inline-flex; align-items: center; min-height: 44px; font-size: 14.5px; text-decoration: none; }

.pops { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: clamp(24px, 4vw, 64px); align-items: start; }
.pops__body { margin-top: 16px; padding-left: 16px; max-width: 44ch; }
.pops__list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1px; background: var(--line2); border: 1px solid var(--line2); }
.pops__list li { background: #fff; padding: 20px 22px; font-size: 16px; line-height: 1.45; min-height: 88px; display: flex; align-items: center; }

.patients-band { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: clamp(28px, 4vw, 64px); align-items: center; }
.patients-band .btn { margin-top: 28px; }
.patients-band .quoted { margin-top: 18px; }
.guidelist { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 1px; background: rgba(255,255,255,.18); border: 1px solid rgba(255,255,255,.18); }
.guidelist li { background: var(--teal); }
.guidelist a { display: flex; align-items: center; gap: 16px; min-height: 64px; padding: 12px 20px; color: #fff; text-decoration: none; font-size: 16px; }
.guidelist a:hover { background: #24596a; color: #fff; }
.guidelist__num { font-family: var(--mono); font-size: 12px; color: #cfe6e0; }
.guidelist__arrow { margin-left: auto; color: #cfe6e0; }

/* ── Page headers ────────────────────────────────────────────────────────── */

.pagehead { background: var(--grey); border-bottom: 1px solid var(--line); display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.pagehead__body { padding: clamp(40px, 6vh, 76px) var(--pad); display: flex; flex-direction: column; justify-content: center; }
.pagehead__media { width: 100%; height: 100%; min-height: clamp(260px, 40vh, 460px); object-fit: cover; }

.crumbs { padding-top: 22px; }
.backlink { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; font-size: 14.5px; text-decoration: none; }

/* ── Procedures ──────────────────────────────────────────────────────────── */

.focus { list-style: none; padding: 0; margin: 26px 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); gap: clamp(16px, 2vw, 28px); }
.focus__item { display: flex; flex-direction: column; gap: 12px; }
.focus__link { display: inline-flex; align-items: center; min-height: 44px; font-size: 18px; color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--pale); }
.focus__link:hover { color: var(--teal); border-bottom-color: var(--teal); }
.focus__sub { font-size: 14.5px; line-height: 1.6; color: var(--muted); }

.grouphead { display: flex; flex-wrap: wrap; align-items: baseline; gap: 16px; border-bottom: 2px solid var(--teal); padding-bottom: 14px; }
.grouphead__blurb { margin-top: 16px; padding-left: 16px; }

.cards { list-style: none; padding: 0; margin: 26px 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.cards__item { background: #fff; }
.cards__item a { display: flex; flex-direction: column; gap: 8px; min-height: 128px; padding: 22px 24px; text-decoration: none; color: var(--ink); height: 100%; }
.cards__item a:hover { background: var(--grey); }
.cards__title { font-size: 18px; line-height: 1.35; font-weight: 500; }
.cards__sub   { font-size: 14.5px; color: var(--muted); line-height: 1.5; }
.cards__more  { margin-top: auto; font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--teal); }

/* ── Condition detail ────────────────────────────────────────────────────── */

.detail { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(28px, 4vw, 56px); padding-top: clamp(12px, 2vh, 24px); padding-bottom: clamp(48px, 7vh, 92px); }
.detail__main { max-width: 72ch; min-width: 0; }
.detail__figure { margin-top: 28px; background: var(--grey); }
.detail__main .stack--sections { margin-top: clamp(32px, 5vh, 52px); }
.detail__aside { display: flex; flex-direction: column; gap: 20px; align-self: start; }
@media (min-width: 1100px) {
  .detail { grid-template-columns: minmax(0, 1fr) 340px; }
  .detail__aside { position: sticky; top: 104px; }
}

.aside__photo { width: min(100%, 340px); aspect-ratio: 4 / 3; object-fit: cover; }
.aside__photo--3x4 { aspect-ratio: 3 / 4; }
.aside__photo--4x5 { aspect-ratio: 4 / 5; }

.promo { padding: 26px; }
.promo--teal { background: var(--teal); color: #fff; }
.promo--outline { border: 1px solid var(--line); }
.promo__title { font-family: var(--serif); font-size: 22px; line-height: 1.25; margin-top: 4px; }
.promo__body { margin-top: 12px; font-size: 15.5px; color: var(--body); line-height: 1.6; }
.promo .btn { margin-top: 18px; }
.promo--teal .promo__title { color: #fff; }

/* ── Patient library ─────────────────────────────────────────────────────── */

.guides { list-style: none; padding: 0; margin: 24px 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.guides li { background: #fff; }
.guides a { display: flex; gap: 16px; align-items: flex-start; min-height: 116px; padding: 22px 24px; text-decoration: none; color: var(--ink); height: 100%; }
.guides a:hover { background: var(--grey); }
.guides__num  { font-family: var(--mono); font-size: 12px; color: #2f7d6c; padding-top: 4px; }
.guides__text { display: flex; flex-direction: column; gap: 6px; }
.guides__title { font-size: 18.5px; line-height: 1.3; font-weight: 500; }
.guides__sub   { font-size: 14.5px; color: var(--muted); line-height: 1.5; }

.urgent { background: var(--ink); color: #fff; padding: clamp(24px, 3.5vw, 40px); }
.urgent .quoted { margin-top: 14px; }
.teamgrid { list-style: none; padding: 0; margin: 24px 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1px; background: rgba(255,255,255,.2); border: 1px solid rgba(255,255,255,.2); }
.teamgrid li { background: var(--ink); padding: 20px; }
.teamgrid__value { margin-top: 10px; font-size: 16px; line-height: 1.5; }

/* ── Guide page ──────────────────────────────────────────────────────────── */

.guide { max-width: 940px; margin: 0 auto; padding: 22px var(--pad) clamp(48px, 7vh, 92px); }
.guide .kicker { margin-top: 18px; }
.guide__tools { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 26px; padding-bottom: 26px; border-bottom: 1px solid var(--line); }
.toc { margin-top: 26px; background: var(--grey); padding: 20px 22px; }
.toc ul { list-style: none; padding: 0; margin: 10px 0 0; display: flex; flex-wrap: wrap; gap: 4px 20px; }
.toc a { display: inline-flex; align-items: center; min-height: 40px; font-size: 15px; }
.guide .stack--sections { margin-top: clamp(30px, 5vh, 48px); }
.guide__related { margin-top: 4px; }

.bullets { list-style: none; padding: 0; margin: 20px 0 0; display: flex; flex-direction: column; gap: 12px; }
.bullets li { display: flex; gap: 14px; align-items: flex-start; font-size: 16.5px; line-height: 1.7; color: var(--ink); }
.bullets__dot { flex-shrink: 0; width: 7px; height: 7px; margin-top: 11px; background: var(--accent); border-radius: 50%; }

/* ── FAQ ─────────────────────────────────────────────────────────────────── */

.faqgrid { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(28px, 4vw, 56px); align-items: start; max-width: 1280px; }
@media (min-width: 1100px) { .faqgrid { grid-template-columns: minmax(0, 1fr) 300px; } }

.faq { list-style: none; padding: 0; margin: clamp(32px, 5vh, 52px) 0 0; border-top: 1px solid var(--line); }
.faq li { border-bottom: 1px solid var(--line); }
.faq summary {
  display: flex; align-items: center; gap: 20px; width: 100%; min-height: 76px; padding: 18px 0;
  cursor: pointer; list-style: none;
  font-family: var(--serif); font-size: clamp(19px, 2.1vw, 25px); line-height: 1.3; color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--teal); }
.faq__q { flex: 1; }
.faq__sign { position: relative; flex-shrink: 0; width: 34px; height: 34px; border: 1px solid var(--line3); border-radius: 50%; }
.faq__sign::before, .faq__sign::after {
  content: ""; position: absolute; top: 50%; left: 50%; background: var(--teal);
  transform: translate(-50%, -50%); transition: opacity .15s ease;
}
.faq__sign::before { width: 13px; height: 1.5px; }
.faq__sign::after  { width: 1.5px; height: 13px; }
.faq details[open] .faq__sign::after { opacity: 0; }
.faq__a { padding-bottom: 26px; }
.faq details[open] summary { color: var(--teal); }

.faq__aside { display: flex; flex-direction: column; gap: 14px; }
.faq__aside .btn { margin-top: 8px; }

/* ── About ───────────────────────────────────────────────────────────────── */

.aboutgrid { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(32px, 4vw, 60px); align-items: start; }
/* Stacked, the biography should come before the photographs; side by side,
   the photo rail sits on the left as in the design. */
.aboutgrid__main { order: 1; }
.aboutgrid__figures { order: 2; display: flex; flex-direction: column; gap: 14px; }
.aboutgrid__aside { order: 3; }
@media (min-width: 1320px) {
  .aboutgrid { grid-template-columns: 300px minmax(0, 1fr) 300px; }
  .aboutgrid__figures { order: 0; }
  .aboutgrid__main { order: 0; }
  .aboutgrid__aside { order: 0; }
}
.aboutgrid__main { max-width: 68ch; }
.aboutgrid__aside { display: flex; flex-direction: column; gap: 20px; }

.panel { border: 1px solid var(--line); }
.panel--grey { border: 0; background: var(--grey); padding: clamp(24px, 3vw, 34px); }
.panel--outline { padding: 0 0 22px; }
.panel__label { padding: 16px 20px; border-bottom: 1px solid var(--line); font-family: var(--mono); font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.panel--grey .panel__label { padding: 0; border: 0; margin-bottom: 12px; }
.panel--grey .h2 { margin-bottom: 14px; }
.panel__list { list-style: none; padding: 0; margin: 0; }
.panel__list li { display: flex; gap: 16px; padding: 16px 20px; border-bottom: 1px solid var(--line4); font-size: 15.5px; line-height: 1.5; }
.panel__list li:last-child { border-bottom: 0; }
.panel__year { font-family: var(--mono); font-size: 12px; color: #2f7d6c; flex-shrink: 0; padding-top: 3px; min-width: 74px; }
.panel__text { color: var(--body); }
.panel__rows { list-style: none; padding: 0; margin: 0; }
.panel__rows li { display: flex; flex-direction: column; gap: 4px; padding: 16px 20px; border-bottom: 1px solid var(--line4); }
.panel__rows li:last-child { border-bottom: 0; }
.panel__value { font-size: 16px; line-height: 1.55; color: var(--ink); }
.panel__pending { padding: 20px; font-size: 15.5px; line-height: 1.65; color: var(--body); }
.panel__pad { margin: 20px; }

/* ── Contact ─────────────────────────────────────────────────────────────── */

.contactgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: clamp(32px, 4vw, 64px); align-items: start; }
.formhelp { margin-top: 12px; max-width: 52ch; font-size: 16px; line-height: 1.65; color: var(--body); }
.form { margin-top: 26px; display: flex; flex-direction: column; gap: 22px; max-width: 560px; }

.field { display: flex; flex-direction: column; gap: 8px; border: 0; padding: 0; margin: 0; min-width: 0; }
.field > label, .field > legend { font-size: 15px; font-weight: 500; color: var(--ink); padding: 0; }
.field input[type="text"], .field input[type="email"], .field input[type="tel"], .field select, .field textarea {
  width: 100%; min-height: 54px; padding: 0 16px;
  font: inherit; font-size: 16.5px; color: var(--ink); background: #fff;
  border: 1px solid #c2ced4; border-radius: var(--r);
}
.field textarea { min-height: 120px; padding: 14px 16px; resize: vertical; line-height: 1.6; }
.field [aria-invalid="true"] { border-color: #b04a4a; }
.field__help { font-size: 14px; line-height: 1.55; color: var(--muted); }
.field__err  { font-size: 14.5px; color: #8f3a3a; }

.radios { display: flex; flex-wrap: wrap; gap: 10px; }
.radio { display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 0 22px; border: 1px solid #c2ced4; background: #fff; border-radius: var(--r); font-size: 16px; cursor: pointer; }
.radio.is-on, .radio:has(input:checked) { border-color: var(--teal); background: #e8f0f2; }
.radio input { width: 20px; height: 20px; margin: 0; accent-color: var(--teal); cursor: pointer; }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.notice { padding: clamp(20px, 3vw, 30px); border-left-width: 4px; border-left-style: solid; }
.notice--ok  { background: #eaf5f2; border: 1px solid #a9d6cc; border-left-color: var(--accent); }
.notice--err { background: #fdf2f2; border: 1px solid #e0bcbc; border-left-color: #b04a4a; color: #7a2f2f; font-size: 15.5px; line-height: 1.6; padding: 16px 18px; }
.notice--ok  { margin-top: 26px; }
.notice__title { font-family: var(--serif); font-size: 26px; line-height: 1.2; color: var(--ink); }
.notice--ok p { margin-top: 12px; font-size: 16.5px; line-height: 1.7; color: #2f5560; }
.notice--ok .btn { margin-top: 20px; }
.privacy { font-size: 14px; color: var(--muted); line-height: 1.6; }

.appt { display: flex; flex-direction: column; gap: 22px; }
.steps { list-style: none; padding: 0; margin: 22px 0 0; display: flex; flex-direction: column; gap: 1px; background: var(--line2); border: 1px solid var(--line2); }
.steps li { background: #fff; padding: 18px 20px; display: flex; gap: 16px; align-items: flex-start; }
.steps__num  { font-family: var(--mono); font-size: 12px; color: #2f7d6c; padding-top: 4px; }
.steps__text { display: flex; flex-direction: column; gap: 6px; }
.steps__title { font-size: 17px; font-weight: 500; }
.steps__body  { font-size: 15px; color: var(--body); line-height: 1.6; }

/* ── Gallery ─────────────────────────────────────────────────────────────── */

.filters { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding-bottom: 26px; border-bottom: 1px solid var(--line); }
.filters__label { font-family: var(--mono); font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-right: 6px; }
.chip { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; background: #fff; border: 1px solid var(--line2); border-radius: var(--r); font-size: 14.5px; cursor: pointer; }
.chip:hover { background: var(--grey); }
.chip.is-on { background: var(--teal); border-color: var(--teal); color: #fff; }
.chip__n { font-family: var(--mono); font-size: 11px; opacity: .7; }

.gallery { list-style: none; padding: 0; margin: clamp(26px, 4vh, 44px) 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 420px), 1fr)); gap: clamp(20px, 2.6vw, 36px); align-items: start; }
.case { border: 1px solid var(--line); background: #fff; display: flex; flex-direction: column; }
.case__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 20px; border-bottom: 1px solid var(--line4); }
.case__title { font-family: var(--serif); font-size: 22px; line-height: 1.25; }
.tag { font-family: var(--mono); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); white-space: nowrap; border: 1px solid var(--line2); padding: 5px 9px; }
.case__foot { padding: 18px 20px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.case__caption { font-size: 15px; line-height: 1.6; color: var(--body); }
.case__link { margin-top: auto; display: inline-flex; align-items: center; min-height: 44px; font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; text-decoration: none; }

.compare__pair { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; background: var(--line); }
.compare__fig { position: relative; margin: 0; background: #dfe6ea; }
/* --ar is the real shape of the photographs, set per case by the build; the
   4/3 is only the fallback for a case whose files cannot be measured. */
.compare__fig img { width: 100%; aspect-ratio: var(--ar, 4 / 3); object-fit: cover; }
.compare__fig figcaption { position: absolute; left: 10px; bottom: 10px; font-family: var(--mono); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); background: rgba(255,255,255,.88); padding: 5px 9px; }
.compare__fig--after figcaption { color: #2f6c5f; }
/* In slider mode both figures sit in the same grid cell, so the captions have
   to be sent to opposite corners or they land on top of one another. */
.compare.is-slider .compare__fig--after figcaption { left: auto; right: 10px; }
.compare__ctl { padding: 14px 20px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px; border-top: 1px solid var(--line4); }
.compare__ctl input[type="range"] { flex: 1; min-width: 140px; height: 44px; accent-color: var(--teal); cursor: pointer; }

/* Slider mode: the two figures overlap and the top one is clipped. */
.compare.is-slider .compare__pair { grid-template-columns: 1fr; position: relative; gap: 0; }
.compare.is-slider .compare__fig { grid-area: 1 / 1; }
/* Before stays on the left, after is revealed to the right of the divider —
   the order the captions promise. */
.compare.is-slider .compare__fig--after { clip-path: inset(0 0 0 var(--pos, 50%)); }
.compare.is-slider .compare__pair::after {
  content: ""; position: absolute; top: 0; bottom: 0; left: var(--pos, 50%);
  width: 2px; background: var(--teal); pointer-events: none;
}

/* Two clinical photographs side by side on a phone are about 165px wide, which
   is too small to read a result in; stack them instead. Slider mode is a single
   full-width image either way. */
@media (max-width: 560px) {
  .compare__pair { grid-template-columns: 1fr; }
}

/* A single photograph, at whatever shape the file actually is. */
.shot { margin: 0; background: #dfe6ea; }
.shot img { display: block; width: 100%; aspect-ratio: var(--ar, 4 / 3); object-fit: cover; }

.frames { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 2px; background: var(--line); }
.frames figure { margin: 0; position: relative; }
.frames img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.frames figcaption { position: absolute; left: 8px; bottom: 8px; font-family: var(--mono); font-size: 10px; letter-spacing: .08em; color: var(--muted); background: rgba(255,255,255,.88); padding: 4px 7px; }

.described { padding: 26px 20px; background: #f8fafb; border-bottom: 1px solid var(--line4); }
.described--withPhoto { border-top: 1px solid var(--line4); }
.described__label { display: flex; align-items: center; gap: 14px; }
.described__mark { width: 34px; height: 34px; border: 1.5px solid var(--teal); border-radius: 50%; flex-shrink: 0; }
.described p + p { margin-top: 14px; }
.described p:not(.described__label) { margin-top: 16px; font-size: 16px; line-height: 1.7; color: var(--body); }

.pending { padding: 20px; background: #f8fafb; border-bottom: 1px solid var(--line4); }
.pending__pair { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 2px; }
.pending__pair span { aspect-ratio: 4 / 3; background-image: repeating-linear-gradient(135deg, #e4ebee 0 10px, #dbe4e8 10px 20px); }
.pending .mono-label { margin-top: 14px; }

/* ── Image slots (category images not yet produced) ──────────────────────── */

.ratio { position: relative; width: 100%; background: var(--grey); }
.ratio--4x3  { aspect-ratio: 4 / 3; }
.ratio--3x4  { aspect-ratio: 3 / 4; }
.ratio--16x9 { aspect-ratio: 16 / 9; }
.ratio > img, .ratio > .img-slot { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

.img-slot {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px;
  padding: 16px; text-align: center;
  background-image: repeating-linear-gradient(135deg, #e9eef0 0 10px, #e1e8eb 10px 20px);
}
.img-slot__mark { width: 34px; height: 34px; border: 1.5px solid #9db3bc; border-radius: 50%; }
.img-slot__hint { font-family: var(--mono); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: #6d858e; }

/* ── Bottom CTA and footer ───────────────────────────────────────────────── */

.cta { background: var(--pale); }
.cta__inner { max-width: var(--maxw); margin: 0 auto; padding: clamp(40px, 6vh, 76px) var(--pad); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 26px; }
.cta__title { font-family: var(--serif); font-size: clamp(26px, 3vw, 40px); letter-spacing: -.018em; color: var(--ink); max-width: 20ch; }
.cta__body  { margin-top: 12px; max-width: 52ch; font-size: 16.5px; line-height: 1.65; color: #2f5560; }

.foot { background: var(--ink); color: #c4d5da; }
.foot__inner { max-width: var(--maxw); margin: 0 auto; padding: clamp(40px, 6vh, 76px) var(--pad) 28px; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: clamp(24px, 3vw, 48px); }
.foot__name   { font-family: var(--serif); font-size: 24px; color: #fff; }
.foot__suffix { margin-top: 8px; font-family: var(--mono); font-size: 10.5px; letter-spacing: .13em; text-transform: uppercase; color: #7fa3ad; }
.foot__blurb  { margin-top: 16px; font-size: 15px; line-height: 1.65; max-width: 34ch; }
.foot__label  { font-family: var(--mono); font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: #7fa3ad; }
.foot__list   { list-style: none; padding: 0; margin: 12px 0 0; display: flex; flex-direction: column; }
.foot__list a { display: flex; align-items: center; min-height: 40px; font-size: 15.5px; color: #c4d5da; text-decoration: none; }
.foot__list a:hover { color: #fff; }
.foot__list--plain { gap: 10px; font-size: 15.5px; line-height: 1.6; }
.foot__emergency { margin-top: 16px; font-size: 13.5px; line-height: 1.6; color: #8fa9b2; max-width: 34ch; }
.foot__langs { display: flex; gap: 10px; margin-top: 12px; }
.foot__note  { margin-top: 18px; font-size: 13.5px; line-height: 1.6; color: #8fa9b2; }
.foot__base  { max-width: var(--maxw); margin: 0 auto; padding: 18px var(--pad) 20px; border-top: 1px solid rgba(255,255,255,.12); display: flex; flex-wrap: wrap; gap: 14px 28px; justify-content: space-between; font-size: 13.5px; color: #8fa9b2; }
/* Deliberately quiet: sits a shade above the footer's own background so it is
   legible if looked for and invisible if not. */
.foot__made  { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--pad) 26px; font-family: var(--mono); font-size: 10.5px; letter-spacing: .1em; color: #2c4d57; }
/* The name links out, but reads as plain text — no colour, no underline. */
.foot__made a { color: inherit; text-decoration: none; }
.foot__made a:hover, .foot__made a:focus-visible { color: #7fa3ad; }

.notfound { max-width: 760px; margin: 0 auto; padding-top: clamp(60px, 12vh, 140px); }

/* ── Print ───────────────────────────────────────────────────────────────── */

@media print {
  [data-noprint], .site-head, .foot, .cta, .menu { display: none !important; }
  body { background: #fff; color: #000; font-size: 11.5pt; line-height: 1.5; }
  .guide { max-width: none; padding: 0; }
  .quoted { border-left-color: #999; }
  [data-printblock] { break-inside: avoid; page-break-inside: avoid; }
  .urgent { background: #fff !important; color: #000 !important; border: 1.5pt solid #000; padding: 12pt; }
  .urgent .h2, .urgent .kicker, .urgent .quoted { color: #000 !important; border-left-color: #000; }
  a[href]::after { content: ""; }
  .bullets__dot { background: #000; }
}
