/* ==========================================================================
   Prof. Dr. Egemen Altan — site styles
   Layout: the brand's own look. A full-bleed navy X-ray hero (name left,
   portrait card right), then navy and cream bands in the current site's
   rhythm. One committed palette; each band remaps the semantic tokens.
   ========================================================================== */
:root {
  /* palette */
  --navy-950: #060E1A;
  --navy-900: #0A1628;
  --navy-800: #0E2238;
  --navy-700: #15304D;
  --navy-line: #1F334C;
  --on-navy: #F3F0EA;
  --on-navy-muted: #AEB8C6;
  --on-navy-soft: #8F9BAB;
  --gold: #C9A84C;
  --gold-light: #E2C87A;
  --gold-deep: #7A5C16;
  --cream: #F4F1EC;
  --paper: #FFFFFF;
  --ink: #0E2238;
  --text: #3A4656;
  --muted: #5B6676;
  --cream-line: #E2DCD1;
  --wa: #0F7A4A;
  --wa-hover: #0B6640;
  --on-wa: #FFFFFF;

  /* semantic tokens (navy context by default; .cream remaps them) */
  --bg: var(--navy-900);
  --surface: var(--navy-800);
  --fg: var(--on-navy-muted);
  --fg-strong: var(--on-navy);
  --fg-muted: var(--on-navy-soft);
  --line: var(--navy-line);
  --accent: var(--gold);
  --accent-italic: var(--gold-light);
  --focus: #8DB8EA;
  --danger: #F08A80;
  --chip-bg: rgba(201, 168, 76, .12);

  --font-display: "Cormorant Garamond", "Cormorant", Georgia, "Times New Roman", serif;
  --font-body: "Outfit", "Segoe UI", system-ui, -apple-system, sans-serif;

  --wrap: 1240px;
  --gutter: clamp(16px, 4vw, 48px);
  --header-h: 80px;
  color-scheme: dark;
}

.cream {
  --bg: var(--cream);
  --surface: var(--paper);
  --fg: var(--text);
  --fg-strong: var(--ink);
  --fg-muted: var(--muted);
  --line: var(--cream-line);
  --accent: var(--gold-deep);
  --accent-italic: var(--ink);
  --focus: #1E5F9E;
  --danger: #A3312A;
  --chip-bg: #EAE3D3;
  color-scheme: light;
}
.navy { --bg: var(--navy-900); }
.navy-raised { --bg: var(--navy-800); --surface: var(--navy-700); }
.navy-deep { --bg: var(--navy-950); }

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 24px);
}

body {
  margin: 0;
  background: var(--navy-900);
  color: var(--on-navy-muted);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  font-weight: 400;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body::before {
  content: "";
  position: fixed;
  inset: 0 0 auto;
  height: env(safe-area-inset-top, 0px);
  z-index: 40;
  background: var(--navy-950);
}

.navy, .navy-raised, .navy-deep, .cream { background: var(--bg); color: var(--fg); }

[hidden] { display: none !important; }
img { max-width: 100%; height: auto; display: block; }

h1, h2, h3, h4 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.08;
  color: var(--fg-strong);
  text-wrap: balance;
}
h1 em, h2 em, h3 em { font-style: italic; font-weight: 500; color: var(--accent-italic); }

p { margin: 0; }
a { color: inherit; }

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

.icon {
  width: 20px;
  height: 20px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 60;
  padding: 12px 18px;
  font-weight: 600;
  color: var(--navy-950);
  background: var(--gold);
  text-decoration: none;
}
.skip-link:focus { top: calc(12px + env(safe-area-inset-top, 0px)); }

.wrap {
  width: 100%;
  max-width: calc(var(--wrap) + 2 * var(--gutter));
  margin-inline: auto;
  padding-left: max(var(--gutter), env(safe-area-inset-left, 0px));
  padding-right: max(var(--gutter), env(safe-area-inset-right, 0px));
}

.section { padding-block: clamp(72px, 9vw, 128px); }
.section-tight { padding-block: clamp(48px, 6vw, 80px); }

/* gold hairline with a bead, between two navy bands */
.seam { position: relative; height: 1px; background: linear-gradient(90deg, transparent, rgba(201, 168, 76, .55) 30%, rgba(201, 168, 76, .55) 70%, transparent); }
.seam::after { content: ""; position: absolute; left: 50%; top: -3px; width: 7px; height: 7px; margin-left: -3.5px; border-radius: 50%; background: var(--gold); }

/* ---------- Type helpers ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 18px;
  font-size: .8125rem;
  font-weight: 500;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--accent);
}
.eyebrow::before { content: ""; width: 32px; height: 1px; background: currentColor; }

.h2 { font-size: clamp(2.5rem, 1.6rem + 3vw, 4rem); font-weight: 400; }
.h2 em { display: block; }
.h2.inline em { display: inline; }

.lead { max-width: 38em; font-size: clamp(1.0625rem, 1rem + .3vw, 1.1875rem); }

.label-head {
  margin: 0 0 14px;
  font-family: var(--font-body);
  font-size: .8125rem;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--fg-muted);
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 20px 72px;
  align-items: end;
  margin-bottom: clamp(40px, 5vw, 64px);
}
.section-head > p, .head-aside p { max-width: 36em; color: var(--fg); }
.head-aside { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; }
@media (max-width: 860px) {
  .section-head { grid-template-columns: minmax(0, 1fr); align-items: start; }
}

.prose { display: flex; flex-direction: column; gap: 18px; max-width: 38em; }

.more {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 4px;
  font-size: .875rem;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--fg-strong);
  text-decoration: none;
  border-bottom: 1px solid var(--accent);
}
.more .icon { width: 18px; height: 18px; color: var(--accent); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.chips li {
  padding: 7px 14px;
  font-size: .8125rem;
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--fg-strong);
  border: 1px solid var(--line);
  background: var(--chip-bg);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 54px;
  padding: 0 30px;
  font-family: var(--font-body);
  font-size: .875rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  line-height: 1.2;
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: 0;
  white-space: nowrap;
  cursor: pointer;
}
.btn .icon { width: 18px; height: 18px; }
.btn-sm { min-height: 44px; padding: 0 20px; font-size: .8125rem; letter-spacing: .14em; }
.btn-gold { color: var(--navy-950); background: linear-gradient(135deg, #C9A84C, #E2C87A); box-shadow: 0 10px 30px -12px rgba(201, 168, 76, .55); }
.btn-gold:hover { background: linear-gradient(135deg, #D4B45A, #EBD38B); }
.btn-line { color: var(--fg-strong); background: transparent; border-color: var(--line); }
.navy .btn-line, .navy-raised .btn-line, .navy-deep .btn-line, .hero .btn-line { border-color: rgba(243, 240, 234, .35); }
.btn-line:hover { border-color: var(--accent); }
.btn-navy { color: var(--on-navy); background: var(--navy-800); }
.btn-navy:hover { background: var(--navy-700); }
.btn-wa { color: var(--on-wa); background: var(--wa); }
.btn-wa:hover { background: var(--wa-hover); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 30;
  color: var(--on-navy);
  background: rgba(6, 14, 26, .78);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  backdrop-filter: blur(14px) saturate(1.2);
  border-bottom: 1px solid rgba(201, 168, 76, .16);
}

.header-inner { display: flex; align-items: center; gap: 20px; min-height: var(--header-h); }
.site-header .wrap { max-width: calc(1400px + 2 * var(--gutter)); }

.brand {
  display: flex;
  flex: none;
  align-items: center;
  gap: 14px;
  margin-right: auto;
  color: var(--on-navy);
  text-decoration: none;
}
.brand img { width: 52px; }
.brand-text { display: flex; flex-direction: column; min-width: 0; }
.brand-sub {
  font-size: .6875rem;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--gold);
}
.brand-name { font-family: var(--font-display); font-size: 1.4rem; font-weight: 500; line-height: 1.1; white-space: nowrap; }

.nav-list { display: flex; gap: 2px; margin: 0; padding: 0; list-style: none; }
.nav-list a {
  position: relative;
  display: block;
  padding: 10px 11px;
  font-size: .8125rem;
  font-weight: 500;
  letter-spacing: .14em;
  white-space: nowrap;
  text-transform: uppercase;
  color: var(--on-navy-muted);
  text-decoration: none;
}
.nav-list a:hover, .nav-list a[aria-current="page"] { color: var(--on-navy); }
.nav-list a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 11px;
  right: 11px;
  bottom: 2px;
  height: 1px;
  background: var(--gold);
}
.nav-extra { display: none; }

.header-phone {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
  color: var(--on-navy);
  text-decoration: none;
}
.header-phone .chip {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  color: var(--gold);
  border: 1px solid rgba(201, 168, 76, .55);
  border-radius: 50%;
  transition: background-color .2s ease;
}
.header-phone .chip .icon { width: 17px; height: 17px; }
.header-phone small { display: block; font-size: .625rem; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; color: var(--on-navy-muted); }
.header-phone b { display: block; font-size: .9375rem; font-weight: 500; letter-spacing: .02em; font-variant-numeric: tabular-nums; }
.header-phone:hover .chip { background: rgba(201, 168, 76, .14); }
.header-wa {
  display: grid;
  place-items: center;
  flex: none;
  width: 42px;
  height: 42px;
  color: #25D366;
  border: 1px solid rgba(243, 240, 234, .25);
  border-radius: 50%;
}
.header-wa:hover { border-color: #25D366; }
.header-phone, .header-wa, .header-cta, .menu-toggle { flex: none; }
.header-wa .icon-wa { width: 19px; height: 19px; }

.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  padding: 0;
  color: var(--gold);
  background: transparent;
  border: 1px solid rgba(201, 168, 76, .4);
  cursor: pointer;
}
.menu-toggle .icon { width: 24px; height: 24px; }
.menu-toggle .icon-close, .menu-toggle[aria-expanded="true"] .icon-menu { display: none; }
.menu-toggle[aria-expanded="true"] .icon-close { display: block; }

@media (max-width: 1479px) {
  .header-phone { display: none; }
}
@media (max-width: 1299px) {
  .header-wa { display: none; }
}
.nav-list .nav-home { display: none; }

@media (max-width: 1239px) {
  .nav-list .nav-home { display: block; }
  .lang-switch.in-bar { display: none; }
  .nav .lang-switch.in-menu { display: inline-flex; margin-bottom: 24px; }
  .nav .lang-switch.in-menu a { min-width: 56px; height: 44px; font-size: .875rem; }
  .menu-toggle { display: inline-flex; }
  .header-cta { display: none; }
  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    height: calc(100vh - var(--header-h) - env(safe-area-inset-top, 0px));
    height: calc(100dvh - var(--header-h) - env(safe-area-inset-top, 0px));
    overflow-y: auto;
    padding-block: 16px 40px;
    padding-left: max(var(--gutter), env(safe-area-inset-left, 0px));
    padding-right: max(var(--gutter), env(safe-area-inset-right, 0px));
    background: var(--navy-950);
  }
  .site-header.is-open { background: var(--navy-950); }
  .site-header.is-open .nav { display: block; }
  .nav-list { flex-direction: column; gap: 0; }
  .nav-list a {
    padding: 18px 4px;
    font-family: var(--font-display);
    font-size: 2rem;
    letter-spacing: 0;
    text-transform: none;
    color: var(--on-navy);
    border-bottom: 1px solid var(--navy-line);
  }
  .nav-list a[aria-current="page"] { color: var(--gold-light); }
  .nav-list a[aria-current="page"]::after { display: none; }
  .nav-extra { display: block; margin-top: 32px; }
  .menu-open { overflow: hidden; }
}

@media (max-width: 440px) {
  .brand img { width: 44px; }
  .brand-name { font-size: 1.2rem; }
  .brand-sub { font-size: .625rem; letter-spacing: .16em; }
}

/* ---------- X-ray backdrop (home hero and inner page heroes) ---------- */
.xray {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  margin-top: calc(-1 * var(--header-h));
  color: var(--on-navy-muted);
  background:
    radial-gradient(ellipse 60% 70% at 78% 38%, rgba(46, 96, 170, .32), transparent 70%),
    radial-gradient(ellipse 40% 50% at 95% 10%, rgba(46, 96, 170, .18), transparent 70%),
    var(--navy-950);
}
.xray-bg { position: absolute; inset: 0; z-index: -1; }
.xray-bg img { width: 100%; height: 100%; object-fit: cover; object-position: 72% 30%; }
.xray-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(6, 14, 26, .94) 0%, rgba(6, 14, 26, .78) 34%, rgba(6, 14, 26, .2) 62%, rgba(6, 14, 26, .3) 100%),
    linear-gradient(180deg, rgba(6, 14, 26, .55) 0%, rgba(6, 14, 26, 0) 22%, rgba(6, 14, 26, 0) 70%, rgba(6, 14, 26, .95) 100%);
}

/* ---------- Home: hero ---------- */
/* The X-ray artwork is shown whole (hand to spine), bottom-anchored; the copy
   sits in its empty dark upper-left. Below 1200px the two stack. */
.hero-x {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  margin-top: calc(-1 * var(--header-h));
  color: var(--on-navy-muted);
  background: #01061A;
}
.hero-copy { position: relative; z-index: 1; padding-top: calc(var(--header-h) + clamp(32px, 4vw, 48px)); }
.hero-art {
  position: absolute;
  z-index: 0;
  left: 50%;
  bottom: 0;
  width: min(100%, 1672px);
  transform: translateX(-50%);
}
.hero-art img {
  width: 100%;
  height: auto;
  -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 16%);
  mask-image: linear-gradient(180deg, transparent 0, #000 16%);
}

.hero-title { font-weight: 400; line-height: 1; }
.hero-title .pre {
  display: block;
  margin-bottom: .15em;
  font-size: clamp(1.3rem, 1.05rem + .9vw, 1.9rem);
  letter-spacing: .14em;
  color: var(--on-navy-muted);
}
.hero-title .name {
  display: block;
  font-size: clamp(3.4rem, 1rem + 5.2vw, 6.4rem);
  letter-spacing: -0.01em;
  color: var(--on-navy);
}
.hero-title em { color: var(--gold-light); }

.hero-spec {
  display: flex;
  align-items: center;
  gap: 16px;
  max-width: 600px;
  margin-top: 24px;
  font-size: .8125rem;
  font-weight: 500;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--on-navy-muted);
}
.hero-spec::before, .hero-spec::after { content: ""; flex: 1 1 24px; height: 1px; background: rgba(243, 240, 234, .2); }
.hero-spec::before { flex: 0 0 40px; background: var(--gold); }

.hero-tag {
  margin-top: 22px;
  padding-left: 20px;
  max-width: 30em;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 1.1rem + .8vw, 1.75rem);
  font-style: italic;
  line-height: 1.3;
  color: var(--on-navy);
  border-left: 2px solid var(--gold);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 30px; }

@media (min-width: 1200px) {
  .hero-x { min-height: calc(min(100vw, 1672px) * .5628 + 120px); }
  .hero-x::before {
    content: "";
    position: absolute;
    z-index: 0;
    left: 0;
    top: 0;
    width: 62%;
    height: 72%;
    background: radial-gradient(ellipse at 20% 35%, rgba(1, 6, 26, .75), transparent 70%);
    pointer-events: none;
  }
}
@media (min-width: 1700px) {
  .hero-art img {
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent), linear-gradient(180deg, transparent 0, #000 16%);
    -webkit-mask-composite: source-in;
    mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent), linear-gradient(180deg, transparent 0, #000 16%);
    mask-composite: intersect;
  }
}
@media (max-width: 1199px) {
  .hero-x { display: flex; flex-direction: column; }
  .hero-copy { order: 1; padding-bottom: 0; }
  .hero-art { order: 2; position: relative; left: auto; transform: none; width: 100%; margin-top: clamp(8px, 3vw, 24px); }
}
@media (max-width: 520px) {
  .hero-spec { gap: 10px; font-size: .75rem; letter-spacing: .14em; }
  .hero-spec::before { flex-basis: 20px; }
  .hero-actions .btn { flex: 1 1 100%; }
}

/* ---------- Home: credentials band ---------- */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0; }
.stats > div {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 44px 16px;
  text-align: center;
}
.stats > div + div { border-left: 1px solid var(--line); }
.stats dd { margin: 0; font-family: var(--font-display); font-size: clamp(2.6rem, 2rem + 2vw, 3.6rem); line-height: 1; color: var(--fg-strong); font-variant-numeric: lining-nums; }
.stats dd span { color: var(--gold); }
.stats dt { font-size: .75rem; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; color: var(--fg-muted); }
@media (max-width: 760px) {
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats > div:nth-child(3) { border-left: 0; }
  .stats > div:nth-child(n+3) { border-top: 1px solid var(--line); }
}

/* ---------- Home: credentials strip (switch: credentials_strip) ---------- */
.creds { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0; padding: 0; list-style: none; }
.creds li + li { border-left: 1px solid var(--line); }
.creds a {
  display: flex;
  flex-direction: column;
  gap: 6px;
  height: 100%;
  padding: 34px 28px 32px;
  color: inherit;
  text-decoration: none;
  transition: background-color .2s ease;
}
.creds a:hover { background: rgba(201, 168, 76, .06); }
.creds a:hover .cred-v { color: var(--gold-light); }
.cred-k { font-size: .6875rem; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); }
.cred-v { font-family: var(--font-display); font-size: clamp(1.5rem, 1.2rem + .8vw, 1.9rem); line-height: 1.15; color: var(--fg-strong); transition: color .2s ease; }
.cred-s { font-size: .875rem; line-height: 1.55; color: var(--fg-muted); }
@media (max-width: 1100px) {
  .creds { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .creds li:nth-child(3) { border-left: 0; }
  .creds li:nth-child(n+3) { border-top: 1px solid var(--line); }
}
@media (max-width: 560px) {
  .creds { grid-template-columns: minmax(0, 1fr); }
  .creds li + li { border-left: 0; border-top: 1px solid var(--line); }
  .creds a { padding: 22px 2px; }
}

/* ---------- Home: about ---------- */
.about-grid {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: clamp(48px, 7vw, 112px);
  align-items: center;
}
.framed { position: relative; margin: 0 24px 24px 0; }
.framed::after {
  content: "";
  position: absolute;
  right: -24px;
  bottom: -24px;
  z-index: 0;
  width: 56px;
  height: 56px;
  background: var(--gold);
}
.framed img {
  position: relative;
  z-index: 1;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: 50% 16%;
  box-shadow: 0 40px 70px -40px rgba(14, 34, 56, .55);
}
.about-grid .h2 { margin-bottom: 32px; }
.about-grid .chips { margin-top: 32px; }
.about-grid .more { margin-top: 36px; }
@media (max-width: 900px) {
  .about-grid { grid-template-columns: minmax(0, 1fr); }
  .framed { max-width: 420px; }
}

/* ---------- Home: specialty cards ---------- */
.spec-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border: 1px solid var(--line);
}
.spec-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 40px 36px 44px;
  background: var(--surface);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  transition: background-color .3s ease;
}
.spec-card:nth-child(3n) { border-right: 0; }
.spec-card:nth-last-child(-n+3) { border-bottom: 0; }
.spec-card:hover { background: var(--navy-700); }
.spec-num {
  position: absolute;
  top: 28px;
  right: 32px;
  font-family: var(--font-display);
  font-size: 2.6rem;
  line-height: 1;
  color: rgba(243, 240, 234, .12);
}
.spec-icon {
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  margin-bottom: 14px;
  color: var(--gold-light);
  background: var(--navy-950);
  border: 1px solid var(--line);
}
.spec-icon img { width: 64px; height: 64px; object-fit: contain; }
.spec-icon .icon { width: 34px; height: 34px; stroke-width: 1.2; }
.spec-card h3 { font-size: 1.85rem; }
.spec-card h3 a { color: inherit; text-decoration: none; }
.spec-card h3 a::after { content: ""; position: absolute; inset: 0; }
.spec-card h3 a:focus-visible { outline: none; }
.spec-card:has(a:focus-visible) { outline: 2px solid var(--focus); outline-offset: -2px; }
.spec-card p { font-size: .96875rem; color: var(--fg); }
.spec-card .go { margin-top: auto; padding-top: 10px; font-size: .75rem; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); }
@media (max-width: 960px) {
  .spec-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .spec-card:nth-child(3n) { border-right: 1px solid var(--line); }
  .spec-card:nth-child(2n) { border-right: 0; }
  .spec-card:nth-last-child(-n+3) { border-bottom: 1px solid var(--line); }
  .spec-card:nth-last-child(-n+2) { border-bottom: 0; }
}
@media (max-width: 620px) {
  .spec-grid { grid-template-columns: minmax(0, 1fr); }
  .spec-card, .spec-card:nth-child(3n) { border-right: 0; }
  .spec-card:nth-last-child(-n+2) { border-bottom: 1px solid var(--line); }
  .spec-card:last-child { border-bottom: 0; }
  .spec-card { padding: 32px 24px 36px; }
}

/* ---------- Quote band ---------- */
.quote-band { position: relative; isolation: isolate; overflow: hidden; }
.quote-band::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(ellipse at 15% 50%, rgba(201, 168, 76, .12), transparent 55%), radial-gradient(ellipse at 85% 30%, rgba(60, 110, 180, .14), transparent 60%);
}
.quote {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 20px 56px;
  max-width: 1080px;
  margin: 0 auto;
}
.quote img { grid-row: 1 / span 2; width: 120px; align-self: center; filter: drop-shadow(0 0 30px rgba(201, 168, 76, .35)); }
.quote blockquote { margin: 0; padding-left: 44px; border-left: 2px solid var(--gold); }
.quote blockquote p {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 1.2rem + 2.4vw, 3rem);
  font-style: italic;
  line-height: 1.3;
  color: var(--on-navy);
  text-wrap: balance;
}
.quote figcaption { padding-left: 46px; font-size: .75rem; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: var(--on-navy-soft); }
@media (max-width: 680px) {
  .quote { grid-template-columns: minmax(0, 1fr); }
  .quote img { grid-row: auto; width: 72px; }
  .quote blockquote { padding-left: 22px; }
  .quote figcaption { padding-left: 24px; }
}

/* ---------- Treatment grid (home) ---------- */
.treat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0;
  padding: 0;
  list-style: none;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: 0 30px 60px -45px rgba(14, 34, 56, .45);
}
.treat-grid li {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 56px;
  padding: 12px 22px;
  font-size: .96875rem;
  color: var(--fg-strong);
  border-bottom: 1px solid var(--line);
  border-right: 1px solid var(--line);
}
.treat-grid li::before { content: ""; flex: none; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); }
.treat-grid li:nth-child(4n) { border-right: 0; }
.treat-grid li:nth-last-child(-n+4) { border-bottom: 0; }
.treat-foot { margin-top: 36px; }
@media (max-width: 1000px) {
  .treat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .treat-grid li:nth-child(4n) { border-right: 1px solid var(--line); }
  .treat-grid li:nth-child(2n) { border-right: 0; }
  .treat-grid li:nth-last-child(-n+4) { border-bottom: 1px solid var(--line); }
  .treat-grid li:nth-last-child(-n+2) { border-bottom: 0; }
}
@media (max-width: 560px) {
  .treat-grid { grid-template-columns: minmax(0, 1fr); }
  .treat-grid li, .treat-grid li:nth-child(4n) { border-right: 0; }
  .treat-grid li:nth-last-child(-n+2) { border-bottom: 1px solid var(--line); }
  .treat-grid li:last-child { border-bottom: 0; }
}

/* ---------- Body map (switch: body_map) ---------- */
.bm-section {
  background:
    radial-gradient(ellipse 40% 60% at 22% 58%, rgba(46, 96, 170, .26), transparent 70%),
    var(--navy-950);
}
.bodymap[data-bodymap="panel"] {
  display: grid;
  grid-template-columns: minmax(0, 440px) minmax(0, 1fr);
  gap: clamp(32px, 6vw, 96px);
  align-items: center;
}
.bm-figure { position: relative; width: 100%; max-width: 300px; margin: 0 auto; aspect-ratio: 360 / 818; container-type: inline-size; }
.bm-figure .sk-img, .bm-figure .sk-svg { position: relative; z-index: 1; display: block; width: 100%; height: 100%; }
.sk-svg path { transition: fill .35s ease, stroke .35s ease; }
/* the bones of the selected area turn gold (the ivory tones are inside skeleton.svg) */
:is(.bm-figure[data-on~="omuz"] .a-omuz, .bm-figure[data-on~="dirsek"] .a-dirsek, .bm-figure[data-on~="el"] .a-el, .bm-figure[data-on~="kalca"] .a-kalca, .bm-figure[data-on~="diz"] .a-diz, .bm-figure[data-on~="ayak"] .a-ayak).sk1 { fill: #F6E5B0; }
:is(.bm-figure[data-on~="omuz"] .a-omuz, .bm-figure[data-on~="dirsek"] .a-dirsek, .bm-figure[data-on~="el"] .a-el, .bm-figure[data-on~="kalca"] .a-kalca, .bm-figure[data-on~="diz"] .a-diz, .bm-figure[data-on~="ayak"] .a-ayak).sk2 { fill: #EACB7C; }
:is(.bm-figure[data-on~="omuz"] .a-omuz, .bm-figure[data-on~="dirsek"] .a-dirsek, .bm-figure[data-on~="el"] .a-el, .bm-figure[data-on~="kalca"] .a-kalca, .bm-figure[data-on~="diz"] .a-diz, .bm-figure[data-on~="ayak"] .a-ayak).sk3 { fill: #D6AE55; }
:is(.bm-figure[data-on~="omuz"] .a-omuz, .bm-figure[data-on~="dirsek"] .a-dirsek, .bm-figure[data-on~="el"] .a-el, .bm-figure[data-on~="kalca"] .a-kalca, .bm-figure[data-on~="diz"] .a-diz, .bm-figure[data-on~="ayak"] .a-ayak).sk4 { fill: #B48C3A; }
:is(.bm-figure[data-on~="omuz"] .a-omuz, .bm-figure[data-on~="dirsek"] .a-dirsek, .bm-figure[data-on~="el"] .a-el, .bm-figure[data-on~="kalca"] .a-kalca, .bm-figure[data-on~="diz"] .a-diz, .bm-figure[data-on~="ayak"] .a-ayak).sks { stroke: #7A5C16; }
.bm-glow {
  position: absolute;
  z-index: 0;
  width: 38cqw;
  aspect-ratio: 1;
  margin: -19cqw 0 0 -19cqw;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(226, 200, 122, .42), rgba(201, 168, 76, .12) 45%, transparent 70%);
  opacity: 0;
  transition: opacity .35s ease;
  pointer-events: none;
}
.bm-figure[data-on~="omuz"] [data-bm-glow="omuz"], .bm-figure[data-on~="dirsek"] [data-bm-glow="dirsek"], .bm-figure[data-on~="el"] [data-bm-glow="el"], .bm-figure[data-on~="kalca"] [data-bm-glow="kalca"], .bm-figure[data-on~="diz"] [data-bm-glow="diz"], .bm-figure[data-on~="ayak"] [data-bm-glow="ayak"] { opacity: 1; }

/* points and glows: positions = POINTS in bodymap.py ((x - 52) / 360, (y - 12) / 818) */
.bm-dot { position: absolute; z-index: 2; width: 44px; height: 44px; margin: -22px 0 0 -22px; padding: 0; background: none; border: 0; cursor: pointer; }
.bm-figure [data-bm-dot="omuz"], .bm-figure [data-bm-glow="omuz"] { left: 18.89%; top: 19.56%; }
.bm-figure [data-bm-dot="dirsek"], .bm-figure [data-bm-glow="dirsek"] { left: 75.00%; top: 35.82%; }
.bm-figure [data-bm-dot="el"], .bm-figure [data-bm-glow="el"] { left: 83.33%; top: 49.39%; }
.bm-figure [data-bm-dot="kalca"], .bm-figure [data-bm-glow="kalca"] { left: 33.33%; top: 46.70%; }
.bm-figure [data-bm-dot="diz"], .bm-figure [data-bm-glow="diz"] { left: 49.72%; top: 71.39%; }
.bm-figure [data-bm-dot="ayak"], .bm-figure [data-bm-glow="ayak"] { left: 31.39%; top: 94.62%; }
.bm-dot::before, .bm-dot::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 10px;
  height: 10px;
  margin: -5px 0 0 -5px;
  border-radius: 50%;
}
.bm-dot::before { background: var(--gold-light); box-shadow: 0 0 0 4px rgba(226, 200, 122, .16), 0 0 16px rgba(226, 200, 122, .55); transition: background-color .2s ease, transform .2s ease; }
.bm-dot::after { border: 1px solid var(--gold-light); opacity: 0; }
.bm-dot:hover::before, .bm-dot.is-active::before { background: #FFF6DC; transform: scale(1.15); }
.bm-label {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  white-space: nowrap;
  font-size: .6875rem;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  padding: 5px 10px;
  color: var(--gold-light);
  background: rgba(6, 14, 26, .86);
  border: 1px solid rgba(201, 168, 76, .45);
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease;
}
.bm-label::after { content: ""; position: absolute; top: 50%; width: 14px; height: 1px; background: rgba(201, 168, 76, .6); }
.bm-dot.is-l .bm-label { right: 38px; }
.bm-dot.is-l .bm-label::after { left: 100%; }
.bm-dot.is-r .bm-label { left: 38px; }
.bm-dot.is-r .bm-label::after { right: 100%; }
/* a name appears for the selected or hovered area, on a dark tag so it reads over the bones */
.bm-dot:hover .bm-label, .bm-dot.is-active .bm-label { opacity: 1; }
@media (prefers-reduced-motion: no-preference) {
  .bm-dot::after { animation: bm-pulse 2.6s ease-out infinite; }
  .bm-dot[data-bm-dot="dirsek"]::after, .bm-dot[data-bm-dot="diz"]::after { animation-delay: .9s; }
  .bm-dot[data-bm-dot="el"]::after, .bm-dot[data-bm-dot="ayak"]::after { animation-delay: 1.7s; }
  @keyframes bm-pulse { from { transform: scale(1); opacity: .8; } to { transform: scale(3.4); opacity: 0; } }
}

/* home: chips + one panel per area (all panels show if scripts are off) */
.bm-chips { margin-bottom: 28px; }
.bm-panel + .bm-panel { margin-top: 40px; }
.bodymap.is-ready .bm-panel { display: none; margin-top: 0; }
.bodymap.is-ready .bm-panel.is-active { display: block; }
.bm-count { font-size: .75rem; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); }
.bm-panel h3 { margin-top: 6px; font-size: clamp(2.2rem, 1.6rem + 1.8vw, 3rem); font-weight: 400; }
.bm-list { columns: 2 220px; column-gap: 36px; margin: 20px 0 28px; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.bm-list li { break-inside: avoid; border-bottom: 1px solid var(--line); }
.bm-list a { display: flex; justify-content: space-between; gap: 12px; padding: 13px 0; color: var(--fg-strong); text-decoration: none; transition: color .2s ease; }
.bm-list a::after { content: "→"; color: var(--gold); }
.bm-list a:hover { color: var(--gold-light); }

/* treatments page: drawing beside the guide grid */
.guide-explorer { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 40px; align-items: start; }
.bodymap.is-filter {
  position: sticky;
  top: calc(var(--header-h) + 24px + env(safe-area-inset-top, 0px));
  padding: 26px 18px 20px;
  background: radial-gradient(ellipse 70% 50% at 50% 45%, rgba(46, 96, 170, .3), transparent 75%), var(--navy-950);
  border: 1px solid rgba(201, 168, 76, .35);
}
.bodymap.is-filter .bm-figure { max-width: 190px; }
.bodymap.is-filter .bm-label { display: none; }
.bm-hint { margin-top: 14px; font-size: .8125rem; line-height: 1.5; text-align: center; color: var(--on-navy-soft); }
.guide-explorer .guide-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 1280px) {
  .guide-explorer .guide-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 1100px) {
  .bm-label { display: none; }
}
@media (max-width: 900px) {
  .bodymap[data-bodymap="panel"] { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .bm-figure { max-width: 210px; }
  .bm-dot { width: 32px; height: 32px; margin: -16px 0 0 -16px; }
  .guide-explorer { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .bodymap.is-filter { position: static; display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 20px; align-items: center; padding: 18px; }
  .bodymap.is-filter .bm-figure { max-width: 150px; margin: 0; }
  .bodymap.is-filter .bm-hint { margin: 0; text-align: left; }
  .bodymap.is-filter .bm-dot { width: 28px; height: 28px; margin: -14px 0 0 -14px; }
}
@media (max-width: 560px) {
  .guide-explorer .guide-grid { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- Milestones (home) ---------- */
.milestones {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.milestones::before { content: ""; position: absolute; left: 0; right: 0; top: 7px; height: 1px; background: var(--line); }
.milestones li { position: relative; padding-top: 36px; }
.milestones li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: var(--bg);
  border: 1px solid var(--gold);
  box-shadow: inset 0 0 0 4px var(--bg), inset 0 0 0 8px var(--gold);
}
.ms-year { font-family: var(--font-display); font-size: 2rem; line-height: 1; color: var(--gold-light); font-variant-numeric: lining-nums; }
.ms-title { margin-top: 10px; font-size: 1rem; font-weight: 500; color: var(--fg-strong); }
.ms-text { margin-top: 4px; font-size: .9375rem; color: var(--fg-muted); }
.milestones-foot { margin-top: 48px; }
@media (max-width: 900px) {
  .milestones { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .milestones::before { left: 7px; right: auto; top: 8px; bottom: 8px; width: 1px; height: auto; }
  .milestones li { padding: 0 0 28px 40px; }
}

/* ---------- Publications ---------- */
.pubs { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.pub {
  display: grid;
  grid-template-columns: 80px minmax(0, 1fr) auto;
  gap: 6px 32px;
  align-items: baseline;
  padding-block: 24px;
  border-bottom: 1px solid var(--line);
}
.pub-year { font-family: var(--font-display); font-size: 1.35rem; color: var(--accent); font-variant-numeric: lining-nums; }
.pub-title { font-size: 1.0625rem; font-weight: 500; line-height: 1.45; color: var(--fg-strong); }
.pub-meta { margin-top: 6px; font-size: .9375rem; color: var(--fg-muted); }
.pub-meta i { color: var(--fg); }
.pub-meta b { font-weight: 600; color: var(--fg-strong); }
.pub-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  font-size: .75rem;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--fg-strong);
  text-decoration: none;
  border-bottom: 1px solid var(--accent);
}
.pub-link .icon { width: 15px; height: 15px; }
@media (max-width: 700px) {
  .pub { grid-template-columns: minmax(0, 1fr); }
  .pub-link { justify-self: start; margin-top: 8px; }
}

.pub-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin: 0 0 clamp(40px, 5vw, 64px);
  background: var(--line);
  border: 1px solid var(--line);
}
.pub-summary div { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 30px 16px; text-align: center; background: var(--surface); }
.pub-summary dt { order: 2; max-width: 22em; font-size: .75rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--fg-muted); }
.pub-summary dd { order: 1; margin: 0; font-family: var(--font-display); font-size: 2.6rem; line-height: 1; color: var(--fg-strong); font-variant-numeric: lining-nums; }
@media (max-width: 860px) {
  .pub-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.note {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 32px;
  align-items: center;
  justify-content: space-between;
  margin-top: 48px;
  padding: 28px 32px;
  background: var(--surface);
  border: 1px solid var(--line);
}
.note p { max-width: 44em; }

/* ---------- Contact band (home and inner pages) ---------- */
.contact-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 48px 80px;
  align-items: center;
}
.contact-band .h2 { margin-bottom: 20px; }
.cta-side { display: flex; flex-direction: column; gap: 22px; padding: clamp(28px, 4vw, 44px); background: var(--surface); border: 1px solid var(--line); }
.cta-address { display: flex; gap: 12px; align-items: flex-start; font-size: .9375rem; }
.cta-address .icon { margin-top: 3px; color: var(--gold); }
.cta-address a { color: var(--fg-strong); }
@media (max-width: 900px) {
  .contact-band { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- Inner page hero ---------- */
.page-hero { padding-top: calc(var(--header-h) + clamp(48px, 6vw, 96px)); padding-bottom: clamp(56px, 6vw, 96px); }
.page-hero .xray-bg img { object-position: 92% 38%; opacity: .8; }
.crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 36px;
  padding: 0;
  list-style: none;
  font-size: .75rem;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--on-navy-soft);
}
.crumbs li + li::before { content: "/"; margin-right: 10px; color: var(--gold); }
.crumbs a { color: var(--on-navy-muted); text-decoration: none; }
.crumbs a:hover { color: var(--on-navy); }
.page-title { max-width: 14em; font-size: clamp(3rem, 1.8rem + 4.4vw, 5.5rem); font-weight: 400; line-height: 1; color: var(--on-navy); }
.page-title em { display: block; color: var(--gold-light); }
.page-hero .lead { margin-top: 28px; color: var(--on-navy-muted); }
@media (max-width: 980px) {
  .xray-bg img { object-position: 80% 40%; }
  .xray-bg::after { background: linear-gradient(180deg, rgba(6, 14, 26, .72) 0%, rgba(6, 14, 26, .6) 45%, rgba(6, 14, 26, .94) 100%); }
}

/* ---------- About page ---------- */
.bio-grid {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  gap: clamp(48px, 7vw, 112px);
  align-items: start;
}
.bio-grid .framed { position: sticky; top: calc(var(--header-h) + 40px + env(safe-area-inset-top, 0px)); }
.bio-grid .lead { font-family: var(--font-display); font-size: clamp(1.6rem, 1.25rem + 1.3vw, 2.2rem); line-height: 1.3; color: var(--fg-strong); }
.facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 32px;
  margin: 44px 0 0;
  border-top: 1px solid var(--line);
}
.facts > div { padding-block: 18px; border-bottom: 1px solid var(--line); }
.facts dt { font-size: .75rem; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); }
.facts dd { margin: 6px 0 0; font-weight: 500; color: var(--fg-strong); }
.bio-grid .label-head { margin-top: 44px; }
@media (max-width: 900px) {
  .bio-grid { grid-template-columns: minmax(0, 1fr); }
  .bio-grid .framed { position: relative; top: 0; max-width: 420px; }
}
@media (max-width: 560px) {
  .facts { grid-template-columns: minmax(0, 1fr); }
}

.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 40px; }
.filter {
  min-height: 44px;
  padding: 0 20px;
  font-family: var(--font-body);
  font-size: .75rem;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--fg);
  background: transparent;
  border: 1px solid var(--line);
  cursor: pointer;
}
.filter:hover { color: var(--fg-strong); border-color: var(--gold); }
.filter[aria-pressed="true"] { color: var(--navy-950); background: var(--gold); border-color: var(--gold); }

.timeline { position: relative; margin: 0; padding: 0; list-style: none; }
.timeline::before { content: ""; position: absolute; top: 12px; bottom: 12px; left: 150px; width: 1px; background: var(--line); }
.tl-item { display: grid; grid-template-columns: 120px 60px minmax(0, 1fr); padding-bottom: 20px; }
.tl-year { padding-top: 24px; text-align: right; font-family: var(--font-display); font-size: 1.35rem; line-height: 1.2; color: var(--fg-muted); font-variant-numeric: lining-nums; }
.tl-rail { position: relative; }
.tl-rail::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 32px;
  width: 11px;
  height: 11px;
  margin-left: -5.5px;
  border-radius: 50%;
  background: var(--bg);
  border: 1px solid var(--gold);
  box-shadow: 0 0 0 4px var(--bg);
}
.tl-body { padding: 22px 28px 24px; background: var(--surface); border: 1px solid var(--line); }
.tl-tag { display: inline-block; margin-bottom: 6px; font-size: .6875rem; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); }
.tl-body h3 { font-size: 1.6rem; line-height: 1.2; }
.tl-body p { margin-top: 8px; max-width: 62em; font-size: .96875rem; }
@media (max-width: 680px) {
  .timeline::before { left: 10px; }
  .tl-item { grid-template-columns: 20px minmax(0, 1fr); column-gap: 18px; }
  .tl-year { grid-column: 2; grid-row: 1; padding: 0 0 8px; text-align: left; color: var(--gold-light); }
  .tl-rail { grid-column: 1; grid-row: 1 / span 2; }
  .tl-rail::after { top: 6px; }
  .tl-body { grid-column: 2; grid-row: 2; padding: 18px 20px 20px; }
}

/* ---------- Specialties page ---------- */
.spec-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: clamp(32px, 6vw, 96px);
  align-items: start;
}
.toc { position: sticky; top: calc(var(--header-h) + 40px + env(safe-area-inset-top, 0px)); }
.toc ol { margin: 0; padding: 0; list-style: none; border-left: 1px solid var(--line); }
.toc a {
  display: block;
  margin-left: -1px;
  padding: 10px 0 10px 18px;
  font-size: .8125rem;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--fg-muted);
  text-decoration: none;
  border-left: 1px solid transparent;
}
.toc a:hover, .toc a.is-active { color: var(--fg-strong); border-left-color: var(--gold); }

.spec { padding-block: 48px; border-top: 1px solid var(--line); }
.spec:first-child { padding-top: 0; border-top: 0; }
.spec-head { display: flex; align-items: center; gap: 24px; }
.spec-head .spec-icon { margin: 0; }
.spec .label-head { margin-bottom: 6px; color: var(--gold); }
.spec h2 { font-size: clamp(2.3rem, 1.7rem + 2vw, 3.3rem); font-weight: 400; }
.spec > p { margin-top: 20px; max-width: 40em; font-size: 1.125rem; color: var(--fg-strong); }
.spec > p + p { margin-top: 12px; font-size: 1rem; color: var(--fg); }
.spec h3 { margin-top: 30px; font-family: var(--font-body); font-size: .75rem; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--fg-muted); }
.cond-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 32px;
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
}
.cond-list li {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding-block: 13px;
  color: var(--fg-strong);
  border-bottom: 1px solid var(--line);
}
.cond-list li::before { content: ""; flex: none; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); transform: translateY(-2px); }
@media (max-width: 900px) {
  .spec-layout { grid-template-columns: minmax(0, 1fr); }
  .toc { position: static; }
  .toc ol { display: flex; flex-wrap: wrap; gap: 8px; border: 0; }
  .toc a { margin: 0; padding: 10px 14px; border: 1px solid var(--line); }
  .toc a:hover, .toc a.is-active { border-color: var(--gold); }
}
@media (max-width: 600px) {
  .cond-list { grid-template-columns: minmax(0, 1fr); }
}

.az-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 24px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 36px;
}
.search { position: relative; flex: 1 1 300px; max-width: 460px; }
.search input {
  width: 100%;
  min-height: 54px;
  padding: 0 16px 0 48px;
  font: inherit;
  color: var(--fg-strong);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 0;
}
.search input::placeholder { color: var(--fg-muted); opacity: 1; }
.search input:focus { outline: 2px solid var(--focus); outline-offset: 1px; }
.search .icon { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--accent); pointer-events: none; }
.az-count { font-size: .875rem; letter-spacing: .06em; color: var(--fg-muted); font-variant-numeric: tabular-nums; }

.az { columns: 3 260px; column-gap: 48px; }
.az-group { break-inside: avoid; margin-bottom: 28px; }
.az-letter { margin-bottom: 4px; padding-bottom: 6px; font-size: 2.2rem; line-height: 1; color: var(--accent); border-bottom: 1px solid var(--accent); }
.az-group ul { margin: 0; padding: 0; list-style: none; }
.az-group li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding-block: 10px;
  border-bottom: 1px solid var(--line);
}
.az-group .t { color: var(--fg-strong); }
.az-group .r { flex: none; font-size: .6875rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--fg-muted); }
.az-empty { padding: 24px 0; }

/* ---------- Contact page ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: clamp(40px, 6vw, 88px);
  align-items: start;
}
.contact-list { margin: 0; padding: 0; list-style: none; }
.contact-item { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 20px; padding-block: 18px; }
.contact-item .ic { display: grid; place-items: center; width: 48px; height: 48px; color: var(--gold); border: 1px solid var(--line); background: var(--surface); }
.contact-item .k { font-size: .6875rem; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); }
.contact-item .val { margin-top: 4px; font-size: 1.125rem; color: var(--fg-strong); overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.contact-item .sub { color: var(--fg); }
.contact-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.contact-actions a, .copy-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 14px;
  font-family: var(--font-body);
  font-size: .75rem;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--fg-strong);
  background: transparent;
  border: 1px solid rgba(243, 240, 234, .22);
  text-decoration: none;
  cursor: pointer;
  transition: border-color .2s ease;
}
.contact-actions a:hover, .copy-btn:hover { border-color: var(--gold); }
.contact-actions .icon, .copy-btn .icon { width: 15px; height: 15px; color: var(--gold); }
.contact-actions .icon-wa { width: 15px; height: 15px; color: #25D366; }
.contact-item .ic.wa { color: #25D366; }
.urgent { margin-top: 20px; font-size: .9375rem; }
.urgent strong { font-weight: 600; color: var(--fg-strong); }


.form-card { padding: clamp(28px, 4vw, 48px); background: var(--surface); border: 1px solid var(--line); }
.form-card h2 { font-size: clamp(2rem, 1.5rem + 1.5vw, 2.6rem); font-weight: 400; }
.form-card > p { margin-top: 8px; color: var(--fg-muted); }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 16px; margin-top: 32px; }
.field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.field.full, .consent-wrap, .form-submit { grid-column: 1 / -1; }
.field label { font-size: .75rem; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); }
.field .opt { letter-spacing: .06em; text-transform: none; color: var(--fg-muted); }
.field input, .field select, .field textarea {
  width: 100%;
  min-height: 52px;
  padding: 12px 16px;
  font: inherit;
  font-size: 1rem;
  color: var(--fg-strong);
  background: var(--navy-950);
  border: 1px solid var(--line);
  border-radius: 0;
}
.cream .field input, .cream .field select, .cream .field textarea { background: var(--cream); }
.field textarea { min-height: 128px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: var(--fg-muted); opacity: 1; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--focus); outline-offset: 1px; border-color: var(--focus); }
[aria-invalid="true"] { border-color: var(--danger) !important; }
.err { font-size: .875rem; font-weight: 500; color: var(--danger); }
.consent-wrap { display: flex; flex-direction: column; gap: 6px; }
.consent { display: flex; gap: 14px; align-items: flex-start; font-size: .9375rem; }
.consent input { flex: none; width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--gold); }
.form-submit { display: flex; flex-direction: column; gap: 14px; padding-top: 12px; border-top: 1px solid var(--line); }
.form-submit .btn { width: 100%; }
.form-note { font-size: .875rem; color: var(--fg-muted); }

.form-result { display: flex; flex-direction: column; gap: 16px; margin-top: 28px; }
.form-result:focus { outline: none; }
.form-result h3 { display: flex; align-items: center; gap: 10px; font-size: 1.9rem; }
.form-result h3 .icon { width: 26px; height: 26px; color: #3CC37E; }
.wa-preview {
  margin: 0;
  padding: 16px 18px;
  font-family: var(--font-body);
  font-size: .9375rem;
  line-height: 1.6;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  color: var(--fg-strong);
  background: var(--navy-950);
  border: 1px solid var(--line);
  border-left: 3px solid var(--wa);
}
.result-actions { display: flex; flex-wrap: wrap; gap: 12px; }

@media (max-width: 960px) {
  .contact-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 560px) {
  .form-grid { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- Cookie consent ---------- */
.cookie {
  position: fixed;
  z-index: 50;
  left: max(16px, env(safe-area-inset-left, 0px));
  bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  width: min(460px, calc(100% - 32px));
  max-height: calc(100vh - var(--header-h) - 32px);
  overflow-y: auto;
  padding: 24px 24px 22px;
  color: var(--on-navy-muted);
  background: var(--navy-950);
  border: 1px solid rgba(201, 168, 76, .45);
  box-shadow: 0 30px 70px -20px rgba(0, 0, 0, .75);
}
.cookie h2 { margin-bottom: 8px; font-size: 1.6rem; color: var(--on-navy); }
.cookie p { font-size: .9375rem; line-height: 1.6; }
.cookie p + p { margin-top: 8px; font-size: .875rem; color: var(--on-navy-soft); }
.cookie-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 18px; }
.btn-consent { width: 100%; color: var(--on-navy); background: transparent; border-color: var(--gold); }
.btn-consent:hover { background: rgba(201, 168, 76, .14); }
@media (min-width: 761px) {
  .cookie { left: auto; right: max(16px, env(safe-area-inset-right, 0px)); }
}
@media (max-width: 760px) {
  .cookie { bottom: calc(86px + env(safe-area-inset-bottom, 0px)); padding: 18px 18px 16px; }
  .cookie h2 { font-size: 1.35rem; }
  .cookie p + p { display: none; }
  .cookie-actions { margin-top: 14px; }
}

.link-btn {
  min-height: 32px;
  padding: 0;
  font: inherit;
  color: var(--on-navy);
  background: none;
  border: 0;
  text-decoration: underline;
  text-decoration-color: rgba(226, 200, 122, .45);
  text-underline-offset: 4px;
  cursor: pointer;
}
.link-btn:hover { color: var(--gold-light); }
.footer-legal { display: flex; flex-wrap: wrap; gap: 8px 24px; align-items: center; }

/* ---------- Contact map (loads only after consent) ---------- */
.map-card { margin-top: 32px; background: var(--surface); border: 1px solid rgba(201, 168, 76, .35); }
.map-gate { display: grid; justify-items: center; gap: 12px; padding: 36px 28px; text-align: center; }
.map-gate > .icon { width: 30px; height: 30px; color: var(--gold); }
.map-gate h3 { font-size: 1.6rem; }
.map-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 6px; }
.map-note { max-width: 34em; font-size: .8125rem; color: var(--fg-muted); }
.map-embed iframe { display: block; width: 100%; height: 380px; border: 0; }

/* ---------- Footer ---------- */
.site-footer { padding-block: 80px 36px; font-size: .9375rem; border-top: 1px solid var(--line); }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, .8fr) minmax(0, 1.2fr); gap: 40px 56px; }
.footer-logo { display: inline-flex; align-items: center; gap: 14px; color: var(--on-navy); text-decoration: none; }
.footer-logo img { width: 60px; }
.footer-logo span { font-family: var(--font-display); font-size: 1.6rem; line-height: 1.15; }
.footer-logo em { font-style: normal; color: var(--gold-light); }
.footer-brand p { margin-top: 18px; max-width: 26em; }
.site-footer h2 { margin-bottom: 18px; font-family: var(--font-body); font-size: .75rem; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); }
.site-footer ul { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.site-footer a { color: var(--on-navy); text-decoration: none; }
.site-footer a:hover { color: var(--gold-light); }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 40px;
  justify-content: space-between;
  margin-top: 64px;
  padding-top: 24px;
  font-size: .8125rem;
  color: var(--on-navy-soft);
  border-top: 1px solid var(--line);
}
.footer-bottom .disclaimer { max-width: 40em; }
@media (max-width: 860px) {
  .footer-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 520px) {
  .footer-grid { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- Mobile action bar ---------- */
.action-bar { display: none; }
@media (max-width: 760px) {
  .action-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 35;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr)) minmax(0, 1.3fr);
    gap: 0;
    padding-block: 8px calc(8px + env(safe-area-inset-bottom, 0px));
    padding-left: max(16px, env(safe-area-inset-left, 0px));
    padding-right: max(16px, env(safe-area-inset-right, 0px));
    background: rgba(6, 14, 26, .94);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    border-top: 1px solid rgba(201, 168, 76, .25);
  }
  .action-bar a {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    min-height: 56px;
    font-size: .6875rem;
    font-weight: 500;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--on-navy);
    text-decoration: none;
  }
  .action-bar a + a { border-left: 1px solid var(--navy-line); }
  .action-bar .icon { color: var(--gold); }
  .action-bar .icon-wa { width: 20px; height: 20px; color: #25D366; }
  .action-bar a.is-rdv { font-weight: 600; color: var(--navy-950); background: linear-gradient(135deg, #C9A84C, #E2C87A); border-left: 0; }
  .action-bar a.is-rdv .icon { color: var(--navy-950); }
  body { padding-bottom: calc(76px + env(safe-area-inset-bottom, 0px)); }
  .menu-open .action-bar { display: none; }
}

/* ---------- Motion ---------- */
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
  .btn, .more .icon, .nav-list a, .toc a, .filter, .hero-tiles a, .contact-actions a { transition: background-color .2s ease, color .2s ease, border-color .2s ease, transform .2s ease; }
  .more:hover .icon { transform: translateX(4px); }
  .xray-bg img { animation: xray-drift 1.6s cubic-bezier(.2, .7, .2, 1) both; }
  @keyframes xray-drift { from { transform: scale(1.06); } to { transform: none; } }
}

/* ---------- Treatments index (Hasta Rehberi) ---------- */
.guide-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 24px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 36px;
}
.guide-filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; }
.guide-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.guide-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 28px 28px 26px;
  background: var(--surface);
  border: 1px solid var(--line);
  transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.guide-card:hover { border-color: var(--gold); box-shadow: 0 24px 50px -36px rgba(14, 34, 56, .55); }
.guide-card .kick { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: .6875rem; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); }
.guide-card .kick span + span { color: var(--fg-muted); }
.guide-card h3 { font-size: 1.65rem; line-height: 1.15; }
.guide-card h3 a { color: inherit; text-decoration: none; }
.guide-card h3 a::after { content: ""; position: absolute; inset: 0; }
.guide-card h3 a:focus-visible { outline: none; }
.guide-card:has(a:focus-visible) { outline: 2px solid var(--focus); outline-offset: 2px; }
.guide-card p { font-size: .96875rem; color: var(--fg); }
.guide-card .foot {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding-top: 14px;
  font-size: .8125rem;
  color: var(--fg-muted);
  border-top: 1px solid var(--line);
}
.guide-card .foot b { font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.guide-empty { padding: 32px 0; }
@media (max-width: 1000px) { .guide-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .guide-grid { grid-template-columns: minmax(0, 1fr); } }

.treat-grid a, .cond-list a, .az-group .t a { color: inherit; text-decoration: none; }
.treat-grid a:hover, .cond-list a:hover, .az-group .t a:hover { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Article (single guide) ---------- */
.article-meta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.article-meta span {
  padding: 8px 14px;
  font-size: .75rem;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--on-navy);
  border: 1px solid rgba(201, 168, 76, .45);
  background: rgba(6, 14, 26, .55);
}
.article-meta span b { font-weight: 500; color: var(--gold-light); }

.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: clamp(40px, 6vw, 88px);
  align-items: start;
}
.article-aside { position: sticky; top: calc(var(--header-h) + 32px + env(safe-area-inset-top, 0px)); display: grid; gap: 20px; }
.aside-card { padding: 28px; background: var(--surface); border: 1px solid var(--line); }
.aside-card.navy-card {
  --fg: var(--on-navy-muted);
  --fg-strong: var(--on-navy);
  --fg-muted: var(--on-navy-soft);
  --line: var(--navy-line);
  --accent: var(--gold);
  --focus: #8DB8EA;
  color: var(--on-navy-muted);
  background: var(--navy-900);
  border-color: var(--navy-line);
}
.aside-card.navy-card h2 { color: var(--on-navy); }
.aside-card h2 { margin-bottom: 10px; font-size: 1.6rem; }
.aside-card p { font-size: .9375rem; }
.aside-links { display: grid; gap: 0; margin: 6px 0 0; padding: 0; list-style: none; }
.aside-links a { display: block; padding: 11px 0; color: var(--fg-strong); text-decoration: none; border-bottom: 1px solid var(--line); }
.aside-links a:hover { color: var(--accent); }
@media (max-width: 980px) {
  .article-layout { grid-template-columns: minmax(0, 1fr); }
  .article-aside { position: static; }
}

.prose-article { max-width: 46em; font-size: 1.0625rem; line-height: 1.8; color: var(--fg); }
.prose-article > * + * { margin-top: 1.1em; }
.prose-article h2 { margin-top: 1.8em; font-size: clamp(1.9rem, 1.5rem + 1.2vw, 2.4rem); font-weight: 500; line-height: 1.15; }
.prose-article h3 { margin-top: 1.5em; font-size: 1.55rem; font-weight: 500; }
.prose-article h4 { margin-top: 1.3em; font-family: var(--font-body); font-size: 1rem; font-weight: 600; color: var(--fg-strong); }
.prose-article h2:first-child, .prose-article h3:first-child { margin-top: 0; }
.prose-article strong, .prose-article b { font-weight: 600; color: var(--fg-strong); }
.prose-article a { color: var(--accent); text-underline-offset: 3px; }
.prose-article ul, .prose-article ol { padding-left: 1.3em; }
.prose-article li + li { margin-top: .4em; }
.prose-article ul li::marker { color: var(--gold); }
.prose-article blockquote { margin: 1.4em 0; padding: 4px 0 4px 22px; font-family: var(--font-display); font-size: 1.4rem; font-style: italic; line-height: 1.4; color: var(--fg-strong); border-left: 2px solid var(--gold); }
.prose-article table { width: 100%; border-collapse: collapse; font-size: .9375rem; }
.prose-article th, .prose-article td { padding: 10px 12px; text-align: left; border-bottom: 1px solid var(--line); }
.prose-article th { font-weight: 600; color: var(--fg-strong); }
.table-scroll { overflow-x: auto; }

.disclaimer-box {
  margin-top: 44px;
  padding: 18px 22px;
  font-size: .9375rem;
  color: var(--fg);
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 3px solid var(--gold);
}

.faq { margin-top: 48px; }

/* ---------- Guide pages: at a glance, area panel, section list (switch: guide_extras) ---------- */
.glance { margin-bottom: 44px; padding: 26px 28px 28px; background: var(--surface); border: 1px solid var(--line); border-top: 3px solid var(--gold); }
.glance .eyebrow { margin-bottom: 16px; }
.glance-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 20px 40px; }
.glance h3, .glance-facts dt { font-family: var(--font-body); font-size: .75rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--fg-muted); }
.glance h3 { margin-bottom: 12px; }
.glance-symptoms ul { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.glance-symptoms li { position: relative; padding-left: 20px; font-size: .96875rem; line-height: 1.5; color: var(--fg-strong); }
.glance-symptoms li::before { content: ""; position: absolute; left: 0; top: .6em; width: 7px; height: 7px; border-radius: 50%; background: var(--gold); }
.glance-facts { display: grid; gap: 14px; margin: 0; }
.glance-facts div + div { padding-top: 14px; border-top: 1px solid var(--line); }
.glance-facts dd { margin: 4px 0 0; font-size: .96875rem; line-height: 1.5; color: var(--fg-strong); }

.article-aside.has-toc { position: static; align-self: stretch; align-content: start; }
.guide-toc { position: sticky; top: calc(var(--header-h) + 32px + env(safe-area-inset-top, 0px)); }
.guide-toc h2 { margin-bottom: 14px; font-size: 1.35rem; }
.guide-toc a { padding-block: 8px; letter-spacing: .1em; }
.aside-card.area-card {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 22px;
  align-items: center;
  padding: 22px 24px;
  background: radial-gradient(ellipse 60% 80% at 15% 50%, rgba(46, 96, 170, .3), transparent 75%), var(--navy-950);
}
.area-figure { width: 72px; }
.area-figure .bm-figure { max-width: none; }
.area-card .eyebrow { margin-bottom: 6px; }
.area-card h2 { margin-bottom: 2px; font-size: 1.55rem; }
.area-count { margin-bottom: 12px; font-size: .8125rem; color: var(--fg-muted); }
.area-card .more { font-size: .75rem; }
.related-guides { margin-top: 56px; }
.related-guides h2 { font-size: clamp(1.9rem, 1.5rem + 1.2vw, 2.4rem); font-weight: 500; }
.related-guides .bm-list { margin-top: 18px; }
@media (max-width: 980px) {
  .guide-toc { display: none; }
}
@media (max-width: 700px) {
  .glance { padding: 22px 20px 24px; }
  .glance-grid { grid-template-columns: minmax(0, 1fr); }
}
.faq h2 { margin-bottom: 18px; font-size: clamp(1.9rem, 1.5rem + 1.2vw, 2.4rem); }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 18px 0;
  font-size: 1.0625rem;
  font-weight: 500;
  color: var(--fg-strong);
  list-style: none;
  cursor: pointer;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; font-family: var(--font-display); font-size: 1.8rem; line-height: 1; color: var(--gold); }
.faq details[open] summary::after { content: "–"; }
.faq .answer { padding: 0 0 20px; color: var(--fg); }
.faq .answer > * + * { margin-top: .8em; }

.related { margin-top: 0; }

/* ---------- Operating-room photography ---------- */
.framed.duo::after { left: -24px; top: -24px; right: auto; bottom: auto; }
.framed.duo { margin: 24px 14% 14% 24px; }
.framed.duo .inset {
  position: absolute;
  z-index: 2;
  right: -16%;
  bottom: -14%;
  width: 48%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: 50% 30%;
  border: 6px solid var(--cream);
  box-shadow: 0 30px 60px -30px rgba(14, 34, 56, .6);
}
@media (max-width: 900px) {
  .framed.duo { margin: 24px 16% 18% 24px; }
  .framed.duo .inset { right: -18%; bottom: -16%; width: 50%; border-width: 4px; }
}

.quote-split {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, .7fr);
  gap: 48px clamp(40px, 6vw, 96px);
  align-items: center;
}
.quote-split .quote { margin: 0; max-width: none; grid-template-columns: 96px minmax(0, 1fr); gap: 20px 40px; }
.quote-split .quote img { width: 96px; }
.quote-split .quote blockquote p { font-size: clamp(1.6rem, 1.1rem + 1.6vw, 2.5rem); }
.quote-photo { position: relative; margin: 0; }
.quote-photo::before {
  content: "";
  position: absolute;
  inset: -16px 16px 16px -16px;
  border: 1px solid rgba(201, 168, 76, .45);
}
.quote-photo img { position: relative; width: 100%; aspect-ratio: 900 / 940; object-fit: cover; box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .9); }
@media (max-width: 900px) {
  .quote-split { grid-template-columns: minmax(0, 1fr); }
  .quote-photo { max-width: 420px; margin-left: 16px; }
}
@media (max-width: 680px) {
  .quote-split .quote { grid-template-columns: minmax(0, 1fr); }
  .quote-split .quote img { width: 72px; }
}

.or-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  align-items: start;
}
.or-gallery figure { position: relative; margin: 0; overflow: hidden; border: 1px solid var(--line); }
.or-gallery figure:nth-child(2) { margin-top: 72px; }
.or-gallery img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; object-position: 50% 15%; }
.or-gallery figure::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(6, 14, 26, .55));
  pointer-events: none;
}
@media (prefers-reduced-motion: no-preference) {
  .or-gallery img { transition: transform .8s cubic-bezier(.2, .7, .2, 1); }
  .or-gallery figure:hover img { transform: scale(1.04); }
}
@media (max-width: 700px) {
  .or-gallery {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: 78%;
    gap: 14px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 8px;
  }
  .or-gallery figure { scroll-snap-align: start; }
  .or-gallery figure:nth-child(2) { margin-top: 0; }
}

.spec.has-photo { display: grid; grid-template-columns: minmax(0, 1fr) 260px; column-gap: 40px; align-content: start; }
.spec.has-photo > *:not(.spec-photo) { grid-column: 1; }
.spec-photo { grid-column: 2; grid-row: 1 / span 6; align-self: start; margin: 4px 0 0; border: 1px solid var(--line); }
.spec-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 15%; }
@media (max-width: 1100px) {
  .spec.has-photo { grid-template-columns: minmax(0, 1fr); }
  .spec-photo { grid-column: 1; grid-row: auto; order: 9; max-width: 420px; margin-top: 28px; }
}

.cv-layout {
  display: grid;
  grid-template-columns: minmax(0, .62fr) minmax(0, 1.38fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}
.cv-photo { position: sticky; top: calc(var(--header-h) + 40px + env(safe-area-inset-top, 0px)); margin: 0; border: 1px solid var(--line); }
.cv-photo img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; object-position: 55% 30%; }
.cv-main { min-width: 0; }
@media (max-width: 980px) {
  .cv-layout { grid-template-columns: minmax(0, 1fr); }
  .cv-photo { position: relative; top: 0; max-width: 420px; }
}

/* ---------- Contact buttons (two-line, number on the button) ---------- */
.icon-wa { width: 20px; height: 20px; flex: none; fill: currentColor; }
.btn .icon-wa { width: 18px; height: 18px; }
.contact-stack { display: grid; gap: 10px; }
.aside-card .contact-stack { margin-top: 18px; }
.btn-block { width: 100%; justify-content: space-between; min-height: 58px; padding: 0 22px; }
.contact-btn {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 66px;
  padding: 10px 18px 10px 12px;
  color: var(--fg-strong);
  text-decoration: none;
  background: transparent;
  border: 1px solid rgba(243, 240, 234, .22);
  transition: border-color .2s ease, background-color .2s ease;
}
.contact-btn:hover { border-color: var(--gold); background: rgba(201, 168, 76, .06); }
.contact-btn .chip {
  display: grid;
  place-items: center;
  flex: none;
  width: 42px;
  height: 42px;
  color: var(--gold);
  border: 1px solid rgba(201, 168, 76, .5);
  border-radius: 50%;
}
.contact-btn .chip.wa { color: #25D366; border-color: rgba(37, 211, 102, .45); }
.contact-btn small { display: block; font-size: .6875rem; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; color: var(--fg-muted); }
.contact-btn b { display: block; font-size: 1.0625rem; font-weight: 500; color: var(--fg-strong); font-variant-numeric: tabular-nums; }
.contact-btn > .icon { margin-left: auto; width: 18px; height: 18px; color: var(--gold); }
@media (prefers-reduced-motion: no-preference) {
  .contact-btn > .icon, .btn-block .icon { transition: transform .2s ease; }
  .contact-btn:hover > .icon, .btn-block:hover .icon { transform: translateX(4px); }
}

/* ---------- Language switch ---------- */
.lang-switch { display: inline-flex; flex: none; border: 1px solid rgba(201, 168, 76, .45); }
.lang-switch a {
  display: grid;
  place-items: center;
  min-width: 36px;
  height: 34px;
  padding: 0 7px;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .1em;
  color: var(--on-navy-muted);
  text-decoration: none;
}
.lang-switch a:hover { color: var(--on-navy); }
.lang-switch a[aria-current="true"] { color: var(--navy-950); background: var(--gold); }
.lang-switch.in-menu { display: none; }

/* ---------- Academic tabs ---------- */
.tabs { margin-top: 8px; }
.tablist { display: flex; margin-bottom: 8px; background: var(--surface); border: 1px solid var(--line); }
.tab {
  flex: 1 1 0;
  min-height: 54px;
  padding: 8px 16px;
  font-family: var(--font-body);
  font-size: .75rem;
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--fg);
  background: transparent;
  border: 0;
  border-right: 1px solid var(--line);
  cursor: pointer;
}
.tab:last-child { border-right: 0; }
.tab:hover { color: var(--fg-strong); }
.tab .count { margin-left: 4px; color: var(--fg-muted); }
.tab[aria-selected="true"] { color: var(--gold-light); background: var(--navy-900); }
.tab[aria-selected="true"] .count { color: var(--on-navy-muted); }
.tab:focus-visible { outline-offset: -3px; }
.tab-panel:focus-visible { outline: 2px solid var(--focus); outline-offset: 4px; }
.pub.no-link { grid-template-columns: 80px minmax(0, 1fr); }
.pub-role {
  display: inline-block;
  margin-bottom: 6px;
  padding: 3px 8px;
  font-size: .6875rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid var(--line);
}
@media (max-width: 760px) {
  .tablist { overflow-x: auto; }
  .tab { flex: 0 0 auto; white-space: nowrap; }
}
@media (max-width: 700px) {
  .pub.no-link { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- Legal pages, footer legal links, form privacy line ---------- */
.footer-legal { display: flex; flex-wrap: wrap; gap: 8px 24px; align-items: center; }
.footer-legal ul { display: flex; flex-wrap: wrap; gap: 4px 20px; align-items: center; }
.footer-legal a { color: var(--on-navy); text-decoration: underline; text-decoration-color: rgba(226, 200, 122, .45); text-underline-offset: 4px; }
.cookie a { color: var(--gold-light); text-underline-offset: 3px; }
.form-privacy { font-size: .875rem; color: var(--fg-muted); }
.form-privacy a, .consent a, .form-note a, .map-note a { color: var(--accent); text-underline-offset: 3px; }
.legal-text h3 { font-size: 1.35rem; }
.legal-text code { font-size: .875em; padding: 1px 6px; background: var(--surface); border: 1px solid var(--line); }
.legal-text td:first-child { white-space: nowrap; }
.legal-toc.toc { position: static; }
.legal-toc h2 { font-size: 1.35rem; margin-bottom: 14px; }
.legal-toc ol { border-left-color: var(--line); }
.legal-toc a { letter-spacing: .1em; }
.aside-card .aside-links .icon { width: 16px; height: 16px; margin-right: 8px; vertical-align: -3px; color: var(--gold); }
@media (max-width: 980px) {
  .legal-toc { display: none; }
}
@media (max-width: 640px) {
  .legal-text table, .legal-text tbody, .legal-text tr, .legal-text td { display: block; }
  .legal-text thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .legal-text tr { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .legal-text tr:first-child { border-top: 1px solid var(--line); }
  .legal-text td { padding: 2px 0; border: 0; }
  .legal-text td:first-child { margin-bottom: 4px; font-weight: 600; color: var(--fg-strong); white-space: normal; }
  .legal-text td + td::before { content: attr(data-label) ": "; font-weight: 500; color: var(--fg-muted); }
}
