/* dr. Irina Arechvo - modern editorial theme (primary version of the site).
   The retro System 7 theme lives in style.css and is served under /retro/. */

/* Self-hosted fonts. Fraunces is the variable weight-axis cut, Inter is
   static at the three weights the design uses. */
@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-display: swap;
  font-weight: 300 700;
  src: url("/assets/fonts/fraunces-latin-ext-wght-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-display: swap;
  font-weight: 300 700;
  src: url("/assets/fonts/fraunces-latin-wght-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url("/assets/fonts/inter-latin-ext-400-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url("/assets/fonts/inter-latin-400-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-display: swap;
  font-weight: 500;
  src: url("/assets/fonts/inter-latin-ext-500-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-display: swap;
  font-weight: 500;
  src: url("/assets/fonts/inter-latin-500-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-display: swap;
  font-weight: 600;
  src: url("/assets/fonts/inter-latin-ext-600-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-display: swap;
  font-weight: 600;
  src: url("/assets/fonts/inter-latin-600-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --ground: #fafaf8;
  --surface: #ffffff;
  --ink: #16211f;
  --ink-2: #4a5553;
  --accent: #0e4f4b;
  --accent-soft: #e7efee;
  --hairline: #d9dedc;
  --on-dark: #fafaf8;
  --on-dark-2: #a9c4c1;

  --serif: "Fraunces", "Source Serif 4", "Iowan Old Style", Georgia, "Times New Roman", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;

  --gap: clamp(16px, 2vw, 32px);
  --pad: clamp(20px, 4vw, 72px);
  --band: clamp(72px, 9vw, 128px);
  --ease: cubic-bezier(0.16, 0.84, 0.44, 1);
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 19px;
  line-height: 1.65;
  font-feature-settings: "kern" 1;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--accent); text-underline-offset: 0.22em; text-decoration-thickness: 1px; }
a:hover { color: var(--ink); }

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

.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--accent); color: var(--on-dark);
  padding: 12px 18px; z-index: 50; text-decoration: none;
}
.skip:focus { left: 12px; top: 12px; }

/* ---------- layout primitives ---------- */

.wrap {
  width: 100%;
  max-width: 1680px;
  margin: 0 auto;
  padding-inline: var(--pad);
}

.grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gap);
}

.band {
  padding-block: var(--band);
  border-top: 1px solid var(--hairline);
}
.band--flush { border-top: 0; }

.measure { max-width: 68ch; }

/* sticky section label (left rail) */
.rail { grid-column: 1 / 4; }
.rail-inner { position: sticky; top: 112px; }

.label {
  display: inline-block;
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-2);
  font-weight: 500;
  padding-bottom: 10px;
  position: relative;
}
.label::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  height: 1px;
  width: 100%;
  background: currentColor;
  transform: scaleX(1);
  transform-origin: left;
  transition: transform 560ms var(--ease) 120ms;
}
.js .label::after { transform: scaleX(0); }
.js .is-in .label::after, .js .label.is-in::after { transform: scaleX(1); }

.rail-note {
  margin-top: 20px;
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink-2);
  max-width: 24ch;
}

.col-main { grid-column: 5 / 13; }
.col-wide { grid-column: 4 / 13; }

/* ---------- type ---------- */

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.06;
  margin: 0;
  font-variation-settings: "SOFT" 0, "WONK" 0;
}

.d1 { font-size: clamp(46px, 6.6vw, 96px); }
.d2 { font-size: clamp(34px, 3.9vw, 60px); line-height: 1.08; }
.d3 { font-size: clamp(26px, 2.3vw, 36px); line-height: 1.15; letter-spacing: -0.015em; }

p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

.lead {
  font-size: clamp(20px, 1.5vw, 24px);
  line-height: 1.55;
  letter-spacing: -0.005em;
}

.meta {
  font-size: 14px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-2);
  font-weight: 500;
}

.note {
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink-2);
}
.note a { overflow-wrap: anywhere; }

/* ---------- buttons ---------- */

.btns { display: flex; flex-wrap: wrap; gap: 14px; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.01em;
  padding: 15px 26px;
  border: 1px solid var(--accent);
  border-radius: 2px;
  text-decoration: none;
  transition: background 220ms var(--ease), color 220ms var(--ease), border-color 220ms var(--ease);
}
.btn--solid { background: var(--accent); color: var(--on-dark); }
.btn--solid:hover { background: var(--ink); border-color: var(--ink); color: var(--on-dark); }
.btn--ghost { background: transparent; color: var(--accent); }
.btn--ghost:hover { background: var(--accent-soft); color: var(--accent); }
.btn--light { border-color: rgba(250,250,248,0.5); color: var(--on-dark); }
.btn--light:hover { background: var(--on-dark); color: var(--accent); border-color: var(--on-dark); }

.arrow-link {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  font-weight: 500;
  font-size: 17px;
  text-decoration: none;
  border-bottom: 1px solid var(--hairline);
  padding-bottom: 4px;
  transition: border-color 220ms var(--ease);
}
.arrow-link:hover { border-color: var(--accent); }
.arrow-link span[aria-hidden] { transition: transform 220ms var(--ease); }
.arrow-link:hover span[aria-hidden] { transform: translateX(4px); }

/* ---------- header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(250,250,248,0.92);
  backdrop-filter: saturate(1.4) blur(8px);
  border-bottom: 1px solid var(--hairline);
}
.site-header__in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 76px;
}
.brand {
  font-family: var(--serif);
  font-size: 21px;
  letter-spacing: -0.015em;
  text-decoration: none;
  color: var(--ink);
}
.brand em { font-style: normal; color: var(--ink-2); }

.nav { display: flex; align-items: center; gap: clamp(16px, 2vw, 34px); }
.nav a {
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  color: var(--ink);
  padding: 6px 0;
  border-bottom: 1px solid transparent;
}
.nav a:hover { border-bottom-color: var(--accent); color: var(--accent); }
.nav a[aria-current="page"] { border-bottom-color: var(--ink); }
.nav .btn { padding: 10px 18px; font-size: 15px; }

/* ---------- hero ---------- */

.hero { position: relative; }
.hero__media {
  position: absolute;
  top: 0; bottom: 0; right: 0;
  width: min(46%, 760px);
  background: var(--accent-soft);
  z-index: 0;
}
.hero__media picture,
.hero__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 20%;
}
.hero .wrap { position: relative; z-index: 1; }
.hero__grid {
  align-items: center;
  min-height: clamp(540px, 74vh, 720px);
  padding-block: clamp(40px, 5vw, 64px);
  row-gap: 48px;
}
.hero__text { grid-column: 1 / 7; padding-right: clamp(0px, 3vw, 56px); }
.hero__clinics { margin-top: 30px; color: var(--ink-2); }

.hero__eyebrow { margin-bottom: 26px; }
.hero h1 { margin-bottom: 18px; }
.hero__role {
  font-family: var(--serif);
  font-size: clamp(19px, 1.5vw, 24px);
  color: var(--ink-2);
  letter-spacing: -0.01em;
  margin-bottom: 26px;
}
.hero__lede { margin-bottom: 38px; max-width: 46ch; }

.portrait {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--hairline);
  overflow: hidden;
}
.portrait img {
  width: 100%;
  aspect-ratio: 5 / 6;
  object-fit: cover;
  object-position: 50% 22%;
}
.portrait__cap {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 14px 18px;
  background: rgba(250,250,248,0.94);
  border-top: 1px solid var(--hairline);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-2);
}

/* ---------- facts ---------- */

.facts { display: grid; grid-template-columns: repeat(4, 1fr); }
.facts > div {
  padding: 8px clamp(16px, 2.4vw, 40px);
  border-left: 1px solid var(--hairline);
}
.facts > div:first-child { padding-left: 0; border-left: 0; }
.fact__n {
  font-family: var(--serif);
  font-size: clamp(40px, 4.4vw, 68px);
  line-height: 1;
  letter-spacing: -0.03em;
  margin-bottom: 12px;
}
.fact__t { font-size: 16px; line-height: 1.45; color: var(--ink-2); margin: 0; max-width: 20ch; }

/* ---------- dark band ---------- */

.dark {
  background: var(--accent);
  color: var(--on-dark);
  border-top: 0;
}
.dark h2, .dark h3 { color: var(--on-dark); }
.dark .label { color: var(--on-dark-2); }
.dark .note, .dark .rail-note { color: var(--on-dark-2); }
.dark a { color: var(--on-dark); }
.dark a:hover { color: var(--on-dark); text-decoration-thickness: 2px; }
.dark .clinics caption { color: var(--on-dark-2); }
.dark .clinics thead th { color: var(--on-dark-2); border-bottom-color: rgba(250,250,248,0.3); }
.dark .clinics tbody th, .dark .clinics tbody td { border-bottom-color: rgba(250,250,248,0.22); }
.dark .clinics tbody tr:hover th, .dark .clinics tbody tr:hover td { background: rgba(250,250,248,0.06); }
.dark .clinics tbody td::before { color: var(--on-dark-2); }
.dark a.arrow-link { color: var(--on-dark); border-bottom-color: rgba(250,250,248,0.35); }
.dark a.arrow-link:hover { border-bottom-color: var(--on-dark); }
.dark :focus-visible { outline-color: var(--on-dark); }

.dark-quote {
  margin-top: 46px;
  padding-top: 30px;
  border-top: 1px solid rgba(250,250,248,0.22);
  font-family: var(--serif);
  font-size: clamp(21px, 1.9vw, 28px);
  line-height: 1.35;
  letter-spacing: -0.015em;
  max-width: 30ch;
  color: var(--on-dark);
}

/* ---------- about preview ---------- */

.about__text { grid-column: 4 / 9; }
.about__media { grid-column: 10 / 13; }

.endo__text { grid-column: 4 / 9; }
.endo__media { grid-column: 10 / 13; }
.endo-portrait {
  background: transparent;
  border: 1px solid rgba(250, 250, 248, 0.35);
  overflow: hidden;
}
.endo-portrait img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: 50% 22%;
}

/* ---------- accordion ---------- */

.acc { border-top: 1px solid var(--hairline); }
.acc details { border-bottom: 1px solid var(--hairline); }
.acc summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  padding: 26px 0;
  font-family: var(--serif);
  font-size: clamp(23px, 2vw, 31px);
  letter-spacing: -0.015em;
  line-height: 1.15;
  transition: color 200ms var(--ease);
}
.acc summary::-webkit-details-marker { display: none; }
.acc summary:hover { color: var(--accent); }
.acc__sign {
  flex: 0 0 auto;
  width: 22px; height: 22px;
  position: relative;
  align-self: center;
}
.acc__sign::before, .acc__sign::after {
  content: "";
  position: absolute;
  background: var(--accent);
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  transition: transform 300ms var(--ease), opacity 300ms var(--ease);
}
.acc__sign::before { width: 18px; height: 1px; }
.acc__sign::after { width: 1px; height: 18px; }
.acc details[open] .acc__sign::after { transform: translate(-50%, -50%) scaleY(0); opacity: 0; }
.acc__body { padding: 0 0 30px; max-width: 62ch; }
.acc__body ul { margin: 0; padding: 0; list-style: none; }
.acc__body li {
  padding: 9px 0 9px 22px;
  position: relative;
  color: var(--ink);
  border-bottom: 1px solid rgba(217,222,220,0.6);
}
.acc__body li:last-child { border-bottom: 0; }
.acc__body li::before {
  content: "";
  position: absolute;
  left: 0; top: 1.05em;
  width: 8px; height: 1px;
  background: var(--accent);
}

/* ---------- testimonials ---------- */

.quotes { margin-top: 8px; }
.quote { position: relative; margin: 0; }
.quote p {
  font-family: var(--serif);
  letter-spacing: -0.018em;
  line-height: 1.28;
  margin: 0 0 16px;
}
.quote cite {
  font-style: normal;
  font-size: 14px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.quote--xl p { font-size: clamp(28px, 3.1vw, 46px); }
.quote--lg p { font-size: clamp(24px, 2.3vw, 34px); }
.quote--md p { font-size: clamp(21px, 1.8vw, 27px); }

.q1 { grid-column: 1 / 9; }
.q2 { grid-column: 8 / 13; margin-top: 96px; }
.q3 { grid-column: 2 / 7; margin-top: 96px; }
.q4 { grid-column: 8 / 13; margin-top: 76px; }
.q5 { grid-column: 1 / 8; margin-top: 96px; }

.quotes .quote + .quote { padding-top: 0; }

/* ---------- link rows ---------- */

.rows { border-top: 1px solid var(--hairline); }
.rows a {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  padding: 24px 0;
  border-bottom: 1px solid var(--hairline);
  text-decoration: none;
  color: var(--ink);
  transition: padding-left 260ms var(--ease), color 260ms var(--ease);
}
.rows a:hover { padding-left: 14px; color: var(--accent); }
.rows .row__t {
  font-family: var(--serif);
  font-size: clamp(21px, 1.7vw, 28px);
  letter-spacing: -0.015em;
  line-height: 1.2;
}
.rows .row__m { font-size: 14px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-2); white-space: nowrap; }

.rows .row-static {
  display: block;
  padding: 24px 0;
  border-bottom: 1px solid var(--hairline);
}

.rows a.news-row { display: block; }
.rows .row__d { display: block; margin-top: 10px; font-size: 17px; line-height: 1.55; color: var(--ink-2); max-width: 62ch; }

/* ---------- clinics ---------- */

.clinics { width: 100%; border-collapse: collapse; text-align: left; }
.clinics caption { text-align: left; font-size: 15px; color: var(--ink-2); padding-bottom: 18px; }
.clinics thead th {
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--ink-2);
  padding: 0 20px 12px 0;
  border-bottom: 1px solid var(--hairline);
}
.clinics tbody th, .clinics tbody td {
  padding: 24px 20px 24px 0;
  border-bottom: 1px solid var(--hairline);
  vertical-align: top;
  font-weight: 400;
  font-size: 17px;
  line-height: 1.5;
}
.clinics tbody th {
  font-family: var(--serif);
  font-size: 21px;
  letter-spacing: -0.01em;
  line-height: 1.22;
  width: 26%;
}
.clinics tbody tr:hover th, .clinics tbody tr:hover td { background: var(--accent-soft); }
.clinics tbody th, .clinics tbody td { transition: background 200ms var(--ease); }
.clinics tbody th:first-child { padding-left: 12px; text-indent: -12px; }

/* ---------- footer ---------- */

.site-footer {
  border-top: 1px solid var(--hairline);
  padding-block: 56px 72px;
  font-size: 15px;
  color: var(--ink-2);
}
.site-footer__in {
  display: flex;
  flex-wrap: wrap;
  gap: 24px 48px;
  align-items: flex-start;
  justify-content: space-between;
}
.site-footer nav { display: flex; flex-wrap: wrap; gap: 22px; }
.site-footer a { color: var(--ink-2); text-decoration: none; border-bottom: 1px solid var(--hairline); padding-bottom: 2px; }
.site-footer a:hover { color: var(--accent); border-bottom-color: var(--accent); }
.footer-brand { font-family: var(--serif); font-size: 19px; color: var(--ink); letter-spacing: -0.01em; }

/* ---------- timeline (apie) ---------- */

.tl { border-top: 1px solid var(--hairline); }
.tl__row {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: var(--gap);
  padding: 30px 0;
  border-bottom: 1px solid var(--hairline);
}
.tl__y {
  font-family: var(--serif);
  font-size: 22px;
  letter-spacing: -0.01em;
  color: var(--accent);
  line-height: 1.3;
}
.tl__t { margin: 0; max-width: 62ch; }

/* ---------- reveal animation ---------- */

/* The pre-animation states only apply when the script is running, so the page
   stays fully readable if JavaScript never loads. */
.js .r {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 520ms var(--ease), transform 520ms var(--ease);
  transition-delay: var(--d, 0ms);
}
.js .r.is-in { opacity: 1; transform: none; }

.js .hero__media img { opacity: 0; transform: scale(1.02); }
.js .hero__media.is-loaded img {
  opacity: 1;
  transform: none;
  transition: opacity 600ms var(--ease), transform 600ms var(--ease);
}

/* ---------- responsive ---------- */

@media (max-width: 1100px) {
  .rail { grid-column: 1 / 13; margin-bottom: 26px; }
  .rail-inner { position: static; }
  .rail-note { max-width: 42ch; }
  .col-main, .col-wide, .about__text, .endo__text { grid-column: 1 / 13; }
  .about__media, .endo__media { grid-column: 1 / 13; margin-top: 40px; max-width: 420px; }
  .q1, .q2, .q3, .q4, .q5 { grid-column: 1 / 13; }
  .q2, .q3, .q4, .q5 { margin-top: 56px; }
  .hero__text { grid-column: 1 / 13; padding-right: 0; }
  .hero__media { position: static; width: 100%; height: auto; order: 2; }
  .hero__media img { height: auto; aspect-ratio: 4 / 3; }
  .hero__grid { min-height: 0; row-gap: 40px; }
  .hero { display: flex; flex-direction: column; }
  .hero .wrap { order: 1; }
}

@media (max-width: 900px) {
  body { font-size: 18px; }
  .facts { grid-template-columns: repeat(2, 1fr); row-gap: 34px; }
  .facts > div:nth-child(odd) { padding-left: 0; border-left: 0; }
  .facts > div:nth-child(3) { padding-top: 30px; border-top: 1px solid var(--hairline); }
  .facts > div:nth-child(4) { padding-top: 30px; border-top: 1px solid var(--hairline); }
  .tl__row { grid-template-columns: 1fr; gap: 10px; }
  .nav__more { display: none; }

  .clinics, .clinics tbody, .clinics tr, .clinics th, .clinics td { display: block; width: 100%; }
  .clinics thead { position: absolute; left: -9999px; }
  .clinics tbody tr { border-bottom: 1px solid var(--hairline); padding: 26px 0; }
  .clinics tbody th, .clinics tbody td { border-bottom: 0; padding: 0 0 8px; }
  .clinics tbody th { width: auto; padding-bottom: 14px; text-indent: 0; padding-left: 0; }
  .clinics tbody td::before {
    content: attr(data-l) " ";
    display: block;
    font-size: 12px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--ink-2);
    margin-bottom: 2px;
  }
  .clinics tbody tr:hover th, .clinics tbody tr:hover td { background: transparent; }
}

@media (max-width: 620px) {
  .site-header__in {
    flex-wrap: wrap;
    justify-content: flex-start;
    align-items: baseline;
    min-height: 0;
    gap: 0;
    padding-top: 14px;
  }
  .brand { font-size: 18px; white-space: nowrap; }
  .nav {
    width: 100%;
    justify-content: space-between;
    gap: 10px;
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px solid var(--hairline);
  }
  .nav a { font-size: 14px; }
  .nav .btn { padding: 6px 12px; font-size: 14px; }
  .rail-inner { top: 0; }
  .facts { grid-template-columns: 1fr; }
  .facts > div { padding-left: 0; border-left: 0; padding-top: 26px; border-top: 1px solid var(--hairline); }
  .facts > div:first-child { padding-top: 0; border-top: 0; }
  .rows a { flex-direction: column; gap: 6px; }
  .rows .row__m { white-space: normal; }
}

/* ---------- callout / legal table (patient info, privacy policy) ---------- */

.callout {
  border: 1px solid var(--hairline);
  background: var(--accent-soft);
  padding: 22px 26px;
  margin: 30px 0;
  max-width: 62ch;
}
.callout p { margin: 0; }
.callout p + p { margin-top: 10px; }

.legal-table { width: 100%; max-width: 62ch; border-collapse: collapse; text-align: left; margin: 24px 0; font-size: 16px; }
.legal-table th, .legal-table td { padding: 12px 14px; border-bottom: 1px solid var(--hairline); }
.legal-table thead th { font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-2); font-weight: 500; }

.legal h3 { font-family: var(--sans); font-size: 20px; font-weight: 600; letter-spacing: -0.005em; margin: 34px 0 12px; }
.legal h3:first-of-type { margin-top: 0; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .r, .js .hero__media { opacity: 1 !important; transform: none !important; transition: none !important; }
  .label::after { transform: scaleX(1); transition: none; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* ---------- header right cluster: language + version switcher ---------- */

.header-right {
  display: flex;
  align-items: center;
  gap: clamp(10px, 1.4vw, 18px);
  flex: 0 0 auto;
  margin-left: auto;
}

.lang-toggle {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-decoration: none;
  color: var(--ink-2);
  border-bottom: 1px solid var(--hairline);
  padding-bottom: 2px;
}
.lang-toggle:hover { color: var(--accent); border-bottom-color: var(--accent); }

/* Two-option version control, top right on every page. Plain links, no JS. */
.verswitch {
  display: inline-flex;
  align-items: stretch;
  flex: 0 0 auto;
  border: 1px solid var(--hairline);
  border-radius: 999px;
  overflow: hidden;
  background: var(--surface);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
  line-height: 1.2;
}
.verswitch > * {
  padding: 7px 13px;
  text-decoration: none;
  color: var(--ink-2);
  transition: background 200ms var(--ease), color 200ms var(--ease);
}
.verswitch a:hover { background: var(--accent-soft); color: var(--accent); }
.verswitch .is-current { background: var(--accent); color: var(--on-dark); }

/* ---------- interior page hero without a photo ---------- */

.hero--plain .hero__panel { display: none; }
.hero--plain .hero__text { grid-column: 1 / 10; padding-right: clamp(0px, 3vw, 40px); }

/* ---------- long-form prose (patient explainers, news posts, policy) ---------- */

.prose { max-width: 66ch; }
.prose > :first-child { margin-top: 0; }
.prose h2 {
  font-size: clamp(24px, 2.1vw, 32px);
  margin: 46px 0 14px;
}
.prose h3 {
  font-family: var(--sans);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.005em;
  margin: 36px 0 12px;
}
.prose ul, .prose ol { margin: 0 0 1.1em; padding-left: 1.15em; }
.prose li { margin-bottom: 0.4em; }
.prose a { overflow-wrap: anywhere; }

.pubdate {
  font-size: 14px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-2);
  font-weight: 500;
  margin-bottom: 18px;
}

/* ---------- responsive: keep the switcher top right, never overflowing ---------- */

@media (max-width: 900px) {
  .verswitch { font-size: 11px; letter-spacing: 0.06em; }
  .verswitch > * { padding: 6px 11px; }
  .hero--plain .hero__text { grid-column: 1 / 13; }
}

@media (max-width: 620px) {
  .site-header__in { justify-content: space-between; }
  .brand { order: 1; }
  .header-right { order: 2; margin-left: 0; }
  .nav { order: 3; }
  .header-right .lang-toggle { font-size: 13px; }
}

@media (max-width: 380px) {
  .verswitch > * { padding: 6px 9px; letter-spacing: 0.04em; }
}
