/* ───────────────────────────────────────────────────────────
   Static-port additions, layered on top of the original design.
   The original visual system lives untouched in styles.css.
   ─────────────────────────────────────────────────────────── */

/* Low-specificity icon default; contextual rules in styles.css still win. */
svg { width: 24px; height: 24px; }

/* Photos: a plain <img> fills the shaped slots exactly like the
   original drag-and-drop Photo component did. */
.hero__photo img,
.about__photo img,
.christie__photo img,
.why__photo img { width: 100%; height: 100%; object-fit: cover; }

/* Skip link (accessibility) */
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 1000;
  background: var(--navy); color: #fff; padding: 10px 18px;
  border-radius: 0 0 10px 0; font-family: var(--head); font-weight: 600; font-size: 14px;
}
.skip-link:focus { left: 0; }

/* Language switch — desktop (in the top bar) */
.topbar__lang a { color: rgba(255,255,255,0.55); transition: color .15s; }
.topbar__lang a.is-on { color: #fff; }
.topbar__lang a:hover { color: var(--teal); }

/* Language switch — compact, shown on mobile where the top bar is hidden */
.lang-mini { display: none; align-items: center; gap: 6px; font-family: var(--head); font-weight: 700; font-size: 14px; }
.lang-mini a { color: var(--muted); padding: 4px 2px; }
.lang-mini a.is-on { color: var(--teal-deep); }
.lang-mini span { color: var(--line); }

/* Contact form: consent row, honeypot, status message */
.appt__form .consent { display: flex; align-items: flex-start; gap: 10px; margin: 2px 0 16px; font-size: 13px; color: var(--muted); line-height: 1.45; }
.appt__form .consent input {
  appearance: auto; -webkit-appearance: auto;
  width: 18px; height: 18px; min-height: 0; padding: 0; margin: 2px 0 0;
  border: 0; background: none; accent-color: var(--teal); flex: 0 0 auto;
}
.appt__form .consent a { color: var(--teal-deep); text-decoration: underline; }
.form-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.form-status { margin-top: 14px; font-family: var(--head); font-weight: 600; font-size: 14px; }
.form-status.ok { color: var(--teal-deep); }
.form-status.err { color: #c0392b; }

/* Cookie consent banner */
.cookie {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 600;
  max-width: 760px; margin: 0 auto;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r);
  box-shadow: var(--shadow-md); padding: 18px 22px;
  display: flex; align-items: center; gap: 20px; flex-wrap: wrap;
}
.cookie p { margin: 0; flex: 1 1 300px; font-size: 13.5px; color: var(--ink); line-height: 1.5; }
.cookie a { color: var(--teal-deep); text-decoration: underline; }
.cookie__btns { display: flex; gap: 10px; }
.cookie .btn { padding: 11px 20px; font-size: 14px; box-shadow: none; }
.cookie[hidden] { display: none; }

/* Legal pages (privacy / cookies) */
.legal__bar { border-bottom: 1px solid var(--line); padding: 18px 0; }
.legal__bar .wrap { display: flex; align-items: center; justify-content: space-between; }
.legal { max-width: 820px; margin: 0 auto; padding: 56px 24px 90px; }
.legal .back { display: inline-flex; align-items: center; gap: 8px; font-family: var(--head); font-weight: 600; color: var(--teal-deep); margin-bottom: 28px; }
.legal h1 { font-size: clamp(30px, 4vw, 44px); margin-bottom: 6px; }
.legal h2 { font-size: 21px; margin: 34px 0 10px; }
.legal p, .legal li { color: var(--muted); margin: 10px 0; }
.legal ul { padding-left: 20px; }
.legal a { color: var(--teal-deep); text-decoration: underline; }
.legal .upd { color: var(--muted-2); font-size: 13.5px; }
.legal .note { background: var(--mint-3); border: 1px solid var(--line-2); border-radius: var(--r-sm); padding: 14px 18px; font-size: 13.5px; }

@media (max-width: 980px) {
  .lang-mini { display: inline-flex; }
}
@media (max-width: 520px) {
  .cookie { flex-direction: column; align-items: stretch; }
  .cookie__btns { justify-content: flex-end; }
}

/* Clickable contact details */
.topbar__left a:hover { color: var(--teal); }
.footer__contact a { transition: color .15s; }
.footer__emer { cursor: pointer; text-decoration: none; transition: background .2s; }
.footer__emer:hover { background: rgba(255,255,255,0.09); }

/* Ripple effect (footer phone box) */
.ripple { position: relative; overflow: hidden; }
.ripple > * { position: relative; z-index: 1; }
.ripple__ink {
  position: absolute; z-index: 0; border-radius: 50%;
  transform: scale(0); background: rgba(255,255,255,0.35);
  pointer-events: none; animation: ripple-anim .6s ease-out;
}
@keyframes ripple-anim { to { transform: scale(2.2); opacity: 0; } }

/* Social icons hidden for now — re-enable by removing these two rules and adding real profile URLs */
.topbar__socials { display: none; }
.topbar__lang { padding-left: 0; border-left: 0; }

/* "Built by" credit bar (below the footer) */
.builtby { background: #f4fafb; color: #6a7c85; text-align: center; font-size: 13px; padding: 14px 16px; border-top: 1px solid #e3ecef; font-family: var(--head); }
.builtby a { color: var(--teal-deep); text-decoration: none; font-weight: 600; display: inline-flex; align-items: center; gap: 7px; }
.builtby a:hover { text-decoration: underline; }
.builtby__logo { height: 18px; width: auto; vertical-align: middle; }

/* ───────────────────────────────────────────────────────────
   Responsive (mobile + tablet) — restored from the original
   clinic.css design (the flatten kept only a partial 980px block).
   Desktop (≥981px) is untouched: everything is inside max-width queries.
   ─────────────────────────────────────────────────────────── */

/* Tablet only (601–980): 2-up feature strip with the 3rd card centered;
   keep the footer in two columns. */
@media (max-width: 980px) and (min-width: 601px) {
  .featrip__grid .featc:nth-child(3) { grid-column: 1 / -1; justify-self: center; width: 100%; max-width: calc(50% - 12px); }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 38px 48px; }
}

/* Tablet + mobile (≤980) */
@media (max-width: 980px) {
  .wrap { padding: 0 48px; }
  .hero__in, .about, .christie, .why, .appt, .cta__card { grid-template-columns: 1fr; }
  .featrip__grid, .svc-grid { grid-template-columns: 1fr 1fr; }
  .featrip__grid { grid-auto-rows: 1fr; }
  .stats__in { grid-template-columns: 1fr 1fr; gap: 40px; }
  .nav__call { display: none; }            /* phone block was overflowing the header */
  .section { padding: 84px 0; }
  .hero__in { padding-block: 64px 72px; gap: 36px; }   /* padding-block keeps .wrap's left/right padding */
  .about, .christie, .why { gap: 44px; }
  .cta__card { padding: 48px 44px; }
  .hero__badge { display: none; }           /* floating badges off once the photo stacks */
  .hero__media { display: flex; flex-direction: column; align-items: center; }
  .hero__photo { order: -1; }
  .featrip { margin-top: 28px; }            /* drop the desktop -46px overlap */
  .hero__photo, .about__photo, .christie__photo, .why__photo { max-width: 420px; margin-left: auto; margin-right: auto; }
  .about__media, .christie__media, .why__media { display: flex; flex-direction: column; align-items: center; }
}

/* Phone (≤600) */
@media (max-width: 600px) {
  .wrap { padding: 0 20px; }
  .section { padding: 60px 0; }
  .featrip__grid, .svc-grid, .stats__in, .christie__stats, .about__list, .field-row, .footer__grid { grid-template-columns: 1fr; }
  .stats__in { gap: 30px; }
  .nav__in { height: 70px; }
  .nav__right .btn--primary { display: none; } /* booking lives in the hero/contact CTAs on phones */
  .hero__in { padding-block: 44px 56px; }   /* vertical only — keep .wrap's 20px sides */
  .hero h1 { font-size: clamp(34px, 9vw, 46px); }
  .hero__cta { gap: 16px; }
  .hero__trust { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; text-align: center; }
  .hero__trust .t-n { font-size: 26px; }
  .hero__photo, .about__photo, .christie__photo, .why__photo { max-width: 100%; }
  .cta__card { padding: 36px 24px; }
  .cta__btns { width: 100%; }
  .cta__btns .btn { flex: 1; justify-content: center; }
  .appt__form { padding: 26px 22px; }
  .footer { padding: 60px 0 28px; }
  .footer__bottom { flex-direction: column; gap: 10px; text-align: center; }
  .about__exp { right: 0; bottom: -18px; padding: 20px 22px; }
  .about__exp .n { font-size: 38px; }
  .sec-title h2, .cta h2 { font-size: clamp(28px, 7vw, 40px); }
}

/* Cookie banner — compact card on tablet; fixes the 400px-tall banner on phones
   (the desktop ≥981px wide bar is untouched). */
@media (max-width: 980px) {
  .cookie { max-width: 440px; padding: 16px 18px; gap: 14px; }
  .cookie p { flex: 1 1 auto; font-size: 13px; }   /* was flex-basis:300px → 300px tall in a column */
}
@media (max-width: 600px) {
  .cookie { left: 12px; right: 12px; bottom: 12px; flex-direction: column; align-items: stretch; gap: 12px; }
  .cookie p { flex: 0 0 auto; }                     /* size to its text, no fixed basis */
  .cookie__btns { display: flex; gap: 10px; }
  .cookie__btns .btn { flex: 1; justify-content: center; }
}

/* Header: the nav now carries six dropdown pillars instead of five flat links.
   The phone block and the mini language switch were removed from .nav__right —
   both already live in the topbar, and dropping the duplication buys back the
   ~200px the extra pillar needs. The compact header therefore starts at ≤1100
   rather than ≤1200. Body grids are unaffected (they stay desktop >980). */
@media (max-width: 1100px) {
  .topbar { display: none; }
  .nav__links { display: none; }
}

/* ── Hamburger + full-screen dark-navy menu sheet (restored from the original
   clinic.css design). Toggled by adding .is-open to the header (.nav). ── */
.nav__burger {
  display: none;   /* shown ≤1200 by the rule at the very bottom */
  width: 44px; height: 44px; border: 0; background: transparent; cursor: pointer;
  padding: 0; flex-direction: column; gap: 5px; align-items: center; justify-content: center;
  position: relative; z-index: 96; border-radius: 12px; -webkit-tap-highlight-color: transparent;
}
.nav__burger span { display: block; width: 22px; height: 2px; border-radius: 2px; background: var(--navy); transition: transform .25s, opacity .2s; }
.nav.is-open .nav__burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav.is-open .nav__burger span:nth-child(2) { opacity: 0; }
.nav.is-open .nav__burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav__sheet {
  position: fixed; inset: 0; z-index: 90;
  background: linear-gradient(160deg, var(--navy), #07202b);
  display: flex; flex-direction: column; justify-content: center; gap: 2px;
  padding: 96px 32px 40px;
  opacity: 0; visibility: hidden; transform: translateY(-10px);
  transition: opacity .3s ease, transform .42s cubic-bezier(.2,.7,.3,1), visibility .3s;
}
.nav__sheet a { font-family: var(--head); font-weight: 700; font-size: 26px; color: #fff;
  padding: 18px 4px; border-bottom: 1px solid rgba(255,255,255,0.1);
  opacity: 0; transform: translateY(14px); transition: opacity .4s ease, transform .5s cubic-bezier(.2,.7,.3,1); }
.nav.is-open .nav__sheet { opacity: 1; visibility: visible; transform: none; }
.nav.is-open .nav__sheet a { opacity: 1; transform: none; }
.nav.is-open .nav__sheet a:nth-child(1) { transition-delay: .10s; }
.nav.is-open .nav__sheet a:nth-child(2) { transition-delay: .16s; }
.nav.is-open .nav__sheet a:nth-child(3) { transition-delay: .22s; }
.nav.is-open .nav__sheet a:nth-child(4) { transition-delay: .28s; }
.nav.is-open .nav__sheet a:nth-child(5) { transition-delay: .34s; }
.nav.is-open .nav__sheet a:nth-child(6) { transition-delay: .40s; }
.nav__sheet-call { display: inline-flex !important; align-items: center; gap: 12px; color: var(--teal) !important;
  border-bottom: 0 !important; margin-top: 24px; font-size: 22px !important; }
.nav__sheet-call svg { width: 22px; height: 22px; }
.nav__sheet-lang { margin-top: 16px; font-family: var(--head); font-weight: 700; font-size: 17px; color: rgba(255,255,255,0.55);
  opacity: 0; transform: translateY(14px); transition: opacity .4s ease, transform .5s cubic-bezier(.2,.7,.3,1); transition-delay: .46s; }
.nav.is-open .nav__sheet-lang { opacity: 1; transform: none; }
.nav__sheet-lang a { color: rgba(255,255,255,0.55); padding: 4px 2px; }
.nav__sheet-lang a.is-on { color: #fff; }
/* keep the brand + toggle above the overlay; clean the header bar when open */
.nav.is-open .nav__in { position: relative; z-index: 95; }
.nav.is-open .nav__burger span { background: #fff; }
.nav.is-open .brand__name { color: #fff; }
.nav.is-open .brand__name small { color: var(--teal); }
.nav.is-open .lang-mini, .nav.is-open .nav__right .btn--primary { display: none; }
.nav.is-open { background: transparent; box-shadow: none; }
body.nav-locked { overflow: hidden; }
@media (prefers-reduced-motion: reduce) {
  .nav__sheet, .nav__sheet a, .nav__sheet-lang, .nav__burger span { transition: none; }
}

/* Show the burger only at the compact-header widths (after base so it wins) */
@media (max-width: 1100px) { .nav__burger { display: flex; } }

/* ═══════════════════════════════════════════════════════════════════════════
   Multi-page site: dropdown pillars, breadcrumbs, page heads, hub cards, CV.
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── Desktop dropdown pillars ── */
.nav__links { align-items: center; gap: 26px; }
.nav__group { position: relative; }
.nav__trigger {
  font-family: var(--head); font-weight: 600; font-size: 15px; color: var(--ink);
  background: none; border: 0; padding: 6px 0; cursor: pointer;
  display: inline-flex; align-items: center; gap: 7px; transition: color .15s;
}
.nav__trigger:hover, .nav__trigger[aria-expanded="true"], .nav__trigger.is-current { color: var(--teal-deep); }
.nav__trigger.is-current { position: relative; }
.nav__trigger.is-current::after {
  content: ""; position: absolute; left: 0; right: 14px; bottom: 0; height: 2px;
  background: var(--teal); border-radius: 2px;
}
.nav__trigger--plain { text-decoration: none; }
.nav__chev {
  width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translate(-2px, -2px); transition: transform .2s; flex: 0 0 auto;
}
.nav__trigger[aria-expanded="true"] .nav__chev { transform: rotate(-135deg) translate(-3px, -3px); }

.nav__panel {
  position: absolute; top: calc(100% + 14px); left: 50%; transform: translateX(-50%);
  min-width: 290px; max-width: 340px; background: #fff; border-radius: var(--r-sm);
  box-shadow: var(--shadow-md); border: 1px solid var(--line-2);
  padding: 18px 18px 14px; z-index: 210;
}
.nav__panel::before {
  content: ""; position: absolute; left: 0; right: 0; top: -14px; height: 14px;
}
.nav__panel-h {
  font-family: var(--head); font-size: 11.5px; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: var(--muted-2); margin: 0 0 12px;
}
.nav__panel-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.nav__item a, .nav__item > span {
  display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 10px;
  font-family: var(--head); font-weight: 600; font-size: 14.5px; line-height: 1.3;
  color: var(--ink); transition: background .15s, color .15s;
}
.nav__item a::after { display: none; }
.nav__item a:hover { background: var(--mint-3); color: var(--teal-deep); }
.nav__item svg { width: 17px; height: 17px; color: var(--teal); flex: 0 0 auto; }
.nav__item--soon > span { color: var(--muted-2); cursor: default; }
.nav__item--soon svg { color: var(--muted-2); opacity: .55; }
.nav__item--soon em {
  margin-left: auto; font-style: normal; font-size: 10.5px; font-weight: 700;
  letter-spacing: .07em; text-transform: uppercase; color: var(--muted-2);
  background: var(--line-2); border-radius: 999px; padding: 3px 8px; flex: 0 0 auto;
}
.nav__panel-all {
  display: inline-flex; align-items: center; gap: 8px; margin: 12px 4px 0;
  font-family: var(--head); font-weight: 700; font-size: 13.5px; color: var(--teal-deep);
  border-top: 1px solid var(--line-2); padding-top: 13px; width: calc(100% - 8px);
}
.nav__panel-all::after { display: none; }
.nav__panel-all svg { width: 15px; height: 15px; }

/* ── Mobile sheet: accordions instead of a flat link list ── */
@media (max-width: 1100px) {
  .nav__sheet { justify-content: flex-start; overflow-y: auto; padding: 88px 26px 40px; gap: 0; }
  .nav__acc { border-bottom: 1px solid rgba(255,255,255,0.1); }
  .nav__acc-trigger {
    width: 100%; background: none; border: 0; cursor: pointer; text-align: left;
    font-family: var(--head); font-weight: 700; font-size: 21px; color: #fff;
    padding: 15px 4px; display: flex; align-items: center; justify-content: space-between;
  }
  .nav__acc-trigger .nav__chev { width: 9px; height: 9px; color: var(--teal); }
  .nav__acc-panel { list-style: none; margin: 0; padding: 0 4px 12px; display: grid; gap: 1px; }
  /* `display: grid` outranks the UA's [hidden]{display:none}, so the collapsed
     state has to be restated or every accordion renders open. */
  .nav__acc-panel[hidden] { display: none; }
  .nav__acc-panel .nav__item a, .nav__acc-panel .nav__item > span {
    font-size: 15.5px; font-weight: 600; padding: 9px 6px; border-bottom: 0;
    color: rgba(255,255,255,0.82);
  }
  .nav__acc-panel .nav__item a:hover { background: rgba(255,255,255,0.07); color: #fff; }
  .nav__acc-panel .nav__item svg { color: var(--teal); }
  .nav__acc-panel .nav__item--soon > span { color: rgba(255,255,255,0.4); }
  .nav__acc-panel .nav__item--soon em { background: rgba(255,255,255,0.12); color: rgba(255,255,255,0.6); }
  .nav__acc-panel .nav__item--all a { color: var(--teal); font-weight: 700; }
  .nav__sheet .nav__acc-direct {
    font-family: var(--head); font-weight: 700; font-size: 21px; color: #fff;
    padding: 15px 4px; border-bottom: 1px solid rgba(255,255,255,0.1); display: block;
  }
  /* The staggered reveal was written for six direct children; with accordions the
     children are wrappers, so animate those instead. */
  .nav__sheet a { opacity: 1; transform: none; }
  .nav__sheet > .nav__acc, .nav__sheet > .nav__acc-direct {
    opacity: 0; transform: translateY(14px);
    transition: opacity .4s ease, transform .5s cubic-bezier(.2,.7,.3,1);
  }
  .nav.is-open .nav__sheet > .nav__acc, .nav.is-open .nav__sheet > .nav__acc-direct { opacity: 1; transform: none; }
  .nav.is-open .nav__sheet > *:nth-child(1) { transition-delay: .10s; }
  .nav.is-open .nav__sheet > *:nth-child(2) { transition-delay: .15s; }
  .nav.is-open .nav__sheet > *:nth-child(3) { transition-delay: .20s; }
  .nav.is-open .nav__sheet > *:nth-child(4) { transition-delay: .25s; }
  .nav.is-open .nav__sheet > *:nth-child(5) { transition-delay: .30s; }
  .nav.is-open .nav__sheet > *:nth-child(6) { transition-delay: .35s; }
}

/* ── Breadcrumbs ── */
.crumbs { background: var(--mint-3); border-bottom: 1px solid var(--line-2); font-size: 13.5px; }
.crumbs .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; padding-top: 14px; padding-bottom: 14px; }
.crumbs a { color: var(--muted); font-weight: 600; }
.crumbs a:hover { color: var(--teal-deep); }
.crumbs span[aria-hidden] { color: var(--muted-2); }
.crumbs__cur { color: var(--navy); font-weight: 700; }

/* ── Simple page head (profile, research, contact) ── */
.pagehead { padding: 64px 0 0; }
.pagehead h1 { font-size: clamp(32px, 4vw, 50px); line-height: 1.08; margin: 0; color: var(--navy); }
.pagehead__lede { font-size: 18.5px; color: var(--muted); max-width: 680px; margin: 18px 0 0; }

/* ── Hub cards: .svc used as a link, plus the not-yet-published state ── */
a.svc { text-decoration: none; display: block; }
a.svc:hover { transform: translateY(-3px); }
.svc--soon { opacity: .55; }
.svc--soon h3 { color: var(--muted); }
.svc__soon {
  display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: var(--muted-2); background: var(--line-2);
  border-radius: 999px; padding: 4px 11px; margin-top: 6px;
}

/* ── Footer sitemap row ──
   Its own full-width row under the main footer grid, so the contact and links
   columns keep the shape the client approved. */
/* Top row is now identity + contact only (the link columns moved into the
   sitemap row), so it needs two columns rather than the original four. */
.footer__grid { grid-template-columns: 1.7fr 1fr; }
.footer h5 a { color: inherit; }
.footer h5 a:hover { color: var(--teal); }

.footer__map { margin-top: 54px; padding-top: 34px; border-top: 1px solid rgba(255,255,255,0.12); }
.footer__map > h5 { margin-bottom: 22px; }
.footer__map-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(178px, 1fr)); gap: 30px 34px; }
.footer__map-h {
  display: block; font-family: var(--head); font-weight: 700; font-size: 14px;
  color: #fff; margin-bottom: 13px; line-height: 1.35;
}
a.footer__map-h:hover { color: var(--teal); }
.footer__map ul { display: grid; gap: 0; }
/* styles.css gives .footer li 8px of vertical padding, which is right for the
   short contact list but far too airy for a 7-item sitemap column. */
.footer__map li { padding: 2px 0; line-height: 1.4; }
.footer__map li a { font-size: 13.5px; color: rgba(255,255,255,0.68); }
.footer__map li a:hover { color: var(--teal); }
.footer__map li span { font-size: 13.5px; color: rgba(255,255,255,0.3); }

/* ═══ Accessibility baseline ═══
   Applied per the "Accessible & Ethical" system: visible focus rings on every
   interactive element, and touch targets that clear 44px. */
a:focus-visible, button:focus-visible, input:focus-visible,
select:focus-visible, textarea:focus-visible, [tabindex]:focus-visible {
  outline: 3px solid var(--teal);
  outline-offset: 3px;
  border-radius: 4px;
}
.skip-link:focus-visible { outline-offset: 0; }

/* ── Shared document sidebar: section nav for long pages (articles + CV) ──
   A sticky rail beats a floating top bar here — it is always visible, shows
   where you are in the document, and costs no vertical space. */
.doc { display: block; }
@media (min-width: 1100px) {
  .doc { display: grid; grid-template-columns: 216px minmax(0, 61ch); gap: 56px; justify-content: center; align-items: start; }
  .doc__aside { position: sticky; top: 108px; align-self: start; max-height: calc(100vh - 140px); overflow-y: auto; }
}
.doc__aside { display: none; }
@media (min-width: 1100px) { .doc__aside[data-ready] { display: block; } }

.doc-toc__h {
  font-size: 11.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: var(--muted-2); margin: 0 0 12px; padding-left: 13px;
}
.doc-toc__list { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--line-2); }
.doc-toc__list a {
  display: block; padding: 8px 13px; font-size: 13.5px; line-height: 1.4;
  color: var(--muted); border-left: 2px solid transparent; margin-left: -2px;
  transition: color .15s, border-color .15s;
}
.doc-toc__list a:hover { color: var(--teal-deep); }
.doc-toc__list a.is-on { color: var(--navy); font-weight: 700; border-left-color: var(--teal); }
.doc-toc__print {
  display: inline-flex; align-items: center; gap: 8px; margin: 18px 0 0 13px;
  background: none; border: 1px solid var(--line); border-radius: 999px;
  padding: 9px 16px; cursor: pointer; min-height: 40px;
  font-family: var(--head); font-weight: 600; font-size: 12.5px; color: var(--teal-deep);
  transition: background .15s, border-color .15s;
}
.doc-toc__print:hover { background: var(--mint-3); border-color: var(--mint-2); }
.doc-toc__print svg { width: 15px; height: 15px; }

/* ── Content article pages (prevention / tumour / treatment / patient info) ── */
.art { padding-top: 56px; }
/* Targets the 60–75 character band. The `ch` unit is keyed to the "0" glyph,
   which is wider than average Greek lowercase, so 61ch lands around 70 chars. */
.art__wrap { max-width: 61ch; }
.art__head { margin-bottom: 8px; }
.art__head h1 { font-size: clamp(32px, 4.2vw, 50px); line-height: 1.08; margin: 0; color: var(--navy); }
.art__lede { font-size: 19px; line-height: 1.65; color: var(--muted); margin: 20px 0 0; }

.art__sec { margin-top: 52px; }
.art__sec h2 {
  display: flex; align-items: center; gap: 13px;
  font-size: 13px; font-weight: 700; letter-spacing: .13em; text-transform: uppercase;
  color: var(--teal-deep); margin: 0 0 22px;
}
.art__sec h2::before { content: ""; width: 26px; height: 3px; border-radius: 2px; background: var(--teal); flex: 0 0 auto; }
.art__sec h2::after { content: ""; flex: 1 1 auto; height: 1px; background: var(--line-2); }
.art__sec p { font-size: 16.5px; line-height: 1.78; color: var(--ink); margin: 0 0 16px; }
.art__sec strong { color: var(--navy); font-weight: 700; }

.art__list { list-style: none; margin: 4px 0 20px; padding: 0; }
.art__list li {
  position: relative; padding-left: 24px; margin: 0 0 12px;
  font-size: 16.5px; line-height: 1.72; color: var(--ink);
}
.art__list li::before {
  content: ""; position: absolute; left: 2px; top: .66em; width: 7px; height: 7px;
  border-radius: 50%; background: var(--mint-2); border: 1.5px solid var(--teal);
}

.art__note {
  display: flex; gap: 14px; align-items: flex-start;
  background: var(--mint-3); border-left: 3px solid var(--teal);
  border-radius: 0 var(--r-sm) var(--r-sm) 0; padding: 18px 22px; margin: 24px 0 8px;
}
.art__note svg { width: 20px; height: 20px; color: var(--teal-deep); flex: 0 0 auto; margin-top: 3px; }
.art__note p { margin: 0 !important; font-size: 15.5px !important; }

/* Sourced figures. Every number carries its origin and year, visibly. */
.art__stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px; }
.art__stat { background: var(--mint-3); border-radius: var(--r-sm); padding: 20px 22px; }
.art__stat-fig { font-family: var(--head); font-size: 30px; font-weight: 800; color: var(--teal-deep); line-height: 1.05; letter-spacing: -0.02em; }
.art__stat-lab { font-size: 14.5px; line-height: 1.5; color: var(--ink); margin-top: 8px; }
.art__stat-src { font-size: 11.5px; letter-spacing: .04em; text-transform: uppercase; color: var(--muted-2); margin-top: 12px; }

/* Biomarker chips — scannable, and they read as clinical rather than decorative.
   Each one links to its glossary entry. */
.art__bio { list-style: none; display: flex; flex-wrap: wrap; gap: 9px; margin: 0 0 16px; padding: 0; }
.art__bio li {
  font-family: var(--head); font-weight: 700; font-size: 13.5px; letter-spacing: .01em;
  color: var(--teal-dark); background: var(--mint-2); border-radius: 8px;
}
.art__bio li a, .art__bio li { display: inline-block; padding: 9px 15px; color: var(--teal-dark); }
.art__bio li:has(a) { padding: 0; }
.art__bio li a { border-radius: 8px; transition: background .15s, color .15s; }
.art__bio li a:hover { background: var(--teal); color: #fff; }

/* ── Glossary ──
   An inline term link is a dotted underline, not a blue link: it is a quiet
   aside, and the page already uses solid links for real navigation. */
.gl {
  color: inherit;
  border-bottom: 1px dotted var(--teal);
  text-decoration: none;
  transition: background .15s, border-color .15s;
}
.gl:hover { background: var(--mint-3); border-bottom-color: var(--teal-deep); }

/* The glossary is a reference page, not prose, so it gets a wider column than
   the 61ch reading measure and lays the terms out as a scannable card grid. */
@media (min-width: 1100px) {
  .doc--wide { grid-template-columns: 216px minmax(0, 860px); }
}
.art__wrap--wide { max-width: 860px; }

/* Jump index — 42 terms is too many to find by scrolling. */
.gl-jump { display: flex; flex-wrap: wrap; gap: 7px; margin: 30px 0 6px; }
.gl-jump__i {
  font-family: var(--head); font-weight: 600; font-size: 13px; line-height: 1;
  color: var(--teal-deep); background: var(--mint-3);
  border: 1px solid var(--line-2); border-radius: 999px; padding: 8px 13px;
  transition: background .15s, border-color .15s, color .15s;
}
.gl-jump__i:hover { background: var(--teal); border-color: var(--teal); color: #fff; }

.gl-list { display: grid; gap: 14px; }
@media (min-width: 900px) { .gl-list { grid-template-columns: 1fr 1fr; } }

.gl-item {
  background: #fff; border: 1px solid var(--line-2); border-radius: 14px;
  padding: 20px 22px; scroll-margin-top: 120px;
  display: flex; flex-direction: column;
  transition: border-color .18s, box-shadow .18s, transform .18s;
}
.gl-item:hover { border-color: var(--mint-2); box-shadow: var(--shadow-sm); transform: translateY(-2px); }

.gl-item__head { display: flex; align-items: baseline; gap: 10px; margin-bottom: 9px; flex-wrap: wrap; }
.gl-item h3 {
  font-family: var(--head); font-size: 17px; font-weight: 700;
  color: var(--navy); letter-spacing: -0.01em; margin: 0; line-height: 1.3;
}
/* Gene and marker names are symbols, not words — the slight tracking and the
   tabular figures stop "BRCA1/2" and "CLDN18.2" reading as prose. */
.gl-item--acronym h3 {
  font-feature-settings: "tnum" 1; letter-spacing: .01em; color: var(--teal-dark);
}
.gl-item__tag {
  font-family: var(--head); font-size: 10.5px; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: var(--muted-2);
  background: var(--mint-3); border-radius: 999px; padding: 4px 9px; white-space: nowrap;
}
.gl-item p { font-size: 15px; line-height: 1.65; color: var(--ink); margin: 0 0 14px; flex: 1 1 auto; }

.gl-wiki {
  align-self: flex-start; display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--head); font-size: 12.5px; font-weight: 700; letter-spacing: .02em;
  color: var(--teal-deep); border: 1px solid var(--line); border-radius: 999px;
  padding: 7px 14px; transition: background .15s, border-color .15s, color .15s;
}
.gl-wiki:hover { background: var(--teal-deep); border-color: var(--teal-deep); color: #fff; }
.gl-wiki span { font-size: 11px; }

/* The entry a term link lands on is tinted, so it is obvious which one you
   were sent to out of forty-two. */
.gl-item:target { border-color: var(--teal); background: var(--mint-3); box-shadow: var(--shadow-sm); }
.gl-item:target h3 { color: var(--teal-dark); }

@media (max-width: 600px) {
  .gl-item { padding: 17px 18px; }
  .gl-jump { gap: 6px; }
  .gl-jump__i { font-size: 12.5px; padding: 7px 11px; }
}
.art__bio-note { font-size: 15px !important; color: var(--muted) !important; margin: 0 !important; }

.art__faq { display: grid; gap: 4px; }
.art__faq-item { border-bottom: 1px solid var(--line-2); padding: 18px 0; }
.art__faq-item:last-child { border-bottom: 0; }
.art__faq-item h3 { font-size: 17px; font-weight: 700; color: var(--navy); margin: 0 0 8px; line-height: 1.35; }
.art__faq-item p { font-size: 16px; line-height: 1.72; color: var(--ink); margin: 0; }

.art__rels { display: flex; flex-wrap: wrap; gap: 10px; }
.art__rel {
  display: inline-flex; align-items: center; gap: 9px;
  border: 1px solid var(--line); border-radius: 999px; padding: 10px 18px;
  font-family: var(--head); font-weight: 600; font-size: 14.5px; color: var(--teal-deep);
  transition: background .15s, border-color .15s;
}
a.art__rel:hover { background: var(--mint-3); border-color: var(--mint-2); }
.art__rel svg { width: 15px; height: 15px; }
.art__rel--soon { color: var(--muted-2); }
.art__rel--soon em {
  font-style: normal; font-size: 10.5px; font-weight: 700; letter-spacing: .07em;
  text-transform: uppercase; background: var(--line-2); border-radius: 999px; padding: 3px 8px;
}

/* Editorial footer: provenance, sources, disclaimer. */
.art__ed { margin-top: 64px; padding-top: 28px; border-top: 2px solid var(--line-2); }
.art__ed-by { font-family: var(--head); font-weight: 700; font-size: 15px; color: var(--navy); margin: 0 0 6px; }
.art__ed-date { font-size: 13.5px; color: var(--muted); margin: 0 0 20px; }
.art__ed-src h3 { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted-2); margin: 0 0 10px; }
.art__ed-src ul { list-style: none; margin: 0 0 22px; padding: 0; display: grid; gap: 7px; }
.art__ed-src li { font-size: 13.5px; line-height: 1.5; color: var(--muted); }
.art__ed-src a { color: var(--teal-deep); }
.art__ed-disc { font-size: 13.5px; line-height: 1.65; color: var(--muted); background: var(--mint-3); border-radius: var(--r-sm); padding: 16px 20px; margin: 0; }

@media (max-width: 600px) {
  .art { padding-top: 34px; }
  .art__sec { margin-top: 40px; }
  .art__lede { font-size: 17px; }
  .art__sec p, .art__list li { font-size: 16px; }
}

/* The CV page carries its own stylesheet, emitted inline by gen/templates/cv.js
   and fully prefixed with .cv-doc. Nothing for it is needed here. */

@media (prefers-reduced-motion: reduce) {
  .nav__panel, .nav__chev, a.svc { transition: none; }
  a.svc:hover { transform: none; }
}
