/* Variable fonts: one file per subset covers every weight used. */
@font-face {
  font-family: "Public Sans";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("fonts/public-sans-latin-ext.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: "Public Sans";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("fonts/public-sans-latin.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: "Source Serif 4";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("fonts/source-serif-4-latin-ext.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: "Source Serif 4";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("fonts/source-serif-4-latin.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;
}

/* Mobile-first: every base rule targets the narrowest viewport; the
   min-width queries below each component only ever add to it. */
:root {
  --bg: #ffffff;
  --bg-alt: #f1f3f6;
  --bg-card: #ffffff;
  --ink: #1a1944;
  --ink-soft: #4a4a6e;
  --ink-mute: #7d7f95;
  --rule: #dadde3;
  --rule-cool: #d3d7dd;
  --rule-warm: #dadde3;
  --accent: #2d2c7b;
  --accent-soft: #e2e1ee;
  --accent-ink: #2d2c7b;
  --brand-navy: #2d2c7b;
  --brand-teal: #56c2b1;
  --brand-orange: #f58242;
  --brand-coral: #d84a4a;
  --warm: #f58242;
  --radius: 10px;
  --maxw: 1180px;
  --gutter: clamp(20px, 3.6vw, 32px);
  --section-y: clamp(56px, 10.7vw, 96px);
  /* gap from a section's intro to the block below it */
  --block-gap: clamp(40px, 6vw, 64px);
  /* 12-column grid, engaged at 900px. Every desktop split spans whole
     columns so the page has one set of vertical edges.
     col = (100% - 11 * --grid-gap) / 12 */
  --grid-gap: 24px;
  /* 5 of 12 columns, for containers that cannot carry a gap
     (the map shell's flush divider) or that are card-internal */
  --col5: calc((5 * 100% - 7 * var(--grid-gap)) / 12);
  /* card padding scale: chip / standard / feature */
  --pad-sm: clamp(14px, 3vw, 20px);
  --pad-md: clamp(20px, 4.5vw, 32px);
  --pad-lg: clamp(24px, 5vw, 48px);
  --tap: 44px;
}
* {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
  padding: 0;
}
html {
  -webkit-text-size-adjust: 100%;
}
body {
  font-family:
    "Public Sans",
    system-ui,
    -apple-system,
    sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}
h1,
h2,
h3 {
  font-family: "Source Serif 4", Georgia, serif;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 0;
  text-wrap: balance;
  overflow-wrap: break-word;
}
h1 {
  font-size: clamp(30px, 5.4vw, 64px);
  line-height: 1.08;
}
h2 {
  font-size: clamp(24px, 3.4vw, 44px);
  line-height: 1.18;
  /* the label column is only 4 of 12 tracks; the one compound wider
     than it carries a &shy; so the break lands between the parts
     rather than wherever the dictionary would put it */
  hyphens: manual;
}
h3 {
  font-size: clamp(19px, 1vw + 15px, 22px);
  line-height: 1.25;
}
p {
  margin: 0 0 1em;
  color: var(--ink-soft);
  text-wrap: pretty;
  overflow-wrap: break-word;
}
a {
  color: var(--accent-ink);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}
a:hover {
  color: var(--accent);
}
@media (min-width: 900px) {
  h1 {
    line-height: 1.05;
  }
  h2 {
    line-height: 1.15;
  }
}

/* ---- layout ---- */
.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
section {
  padding: var(--section-y) 0;
  border-top: 1px solid var(--rule);
}
section:first-of-type {
  border-top: 0;
}
/* lands cross-page anchors (patienten.html -> index.html#specialisten)
   below the compacted sticky bar: its short row plus 16px */
section[id] {
  scroll-margin-top: 78px;
}
@media (min-width: 900px) {
  section[id] {
    scroll-margin-top: 104px;
  }
}
.eyebrow {
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-ink);
  font-weight: 600;
  margin-bottom: 18px;
}
.eyebrow.spaced {
  margin-top: clamp(40px, 6.5vw, 64px);
}
.eyebrow.muted {
  color: var(--ink-mute);
}

/* ---- top nav ---- */
/* --shrink is 0 at the top of the page and 1 once scrolled past
   --shrink-range; JS writes it, every size below interpolates on it.
   The tall/short pairs are phone-sized here and grow at >=900px. */
header.top {
  --shrink: 0;
  --shrink-range: 180px;
  --row-tall: 74px;
  --row-short: 62px;
  --logo-tall: 54px;
  --logo-short: 46px;
  --row-h: calc(
    var(--row-tall) + (var(--row-short) - var(--row-tall)) * var(--shrink)
  );
  position: sticky;
  top: 0;
  z-index: 1000;
  /* transparent over the hero, fading to a white bar with a rule as it
     compacts; the border keeps its 1px box at 0 alpha so nothing shifts */
  background: color-mix(
    in srgb,
    #ffffff calc(100% * var(--shrink)),
    transparent
  );
  border-bottom: 1px solid
    color-mix(
      in srgb,
      var(--rule) calc(100% * var(--shrink)),
      transparent
    );
  box-shadow: 0 4px 14px -10px
    rgba(26, 25, 68, calc(0.14 * var(--shrink)));
}
.top .row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  height: var(--row-h);
}
/* the drop-down panel is positioned against the whole bar, not the
   width-capped .wrap inside it */
header.top.nav-open {
  background: var(--bg-card);
  border-bottom-color: var(--rule);
}
.brand {
  display: flex;
  align-items: center;
  gap: 16px;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
}
.brand img {
  height: calc(
    var(--logo-tall) + (var(--logo-short) - var(--logo-tall)) *
      var(--shrink)
  );
  width: auto;
  display: block;
  color: var(--ink);
}
footer .brand img {
  height: 56px;
}

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: var(--tap);
  height: var(--tap);
  margin-right: -10px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}
.nav-toggle:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.nav-toggle .bars {
  position: relative;
  display: block;
  width: 22px;
}
.nav-toggle .bars,
.nav-toggle .bars::before,
.nav-toggle .bars::after {
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition:
    transform 0.18s ease,
    background-color 0.18s ease;
}
.nav-toggle .bars::before,
.nav-toggle .bars::after {
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
}
.nav-toggle .bars::before {
  top: -7px;
}
.nav-toggle .bars::after {
  top: 7px;
}
.nav-toggle[aria-expanded="true"] .bars {
  background: transparent;
}
.nav-toggle[aria-expanded="true"] .bars::before {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .bars::after {
  transform: translateY(-7px) rotate(-45deg);
}

.site-nav {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  max-height: calc(100dvh - var(--row-h));
  overflow-y: auto;
  background: var(--bg-card);
  border-bottom: 1px solid var(--rule);
  box-shadow: 0 18px 30px -24px rgba(26, 25, 68, 0.55);
}
.top.nav-open .site-nav {
  display: block;
}
.site-nav ul {
  display: flex;
  flex-direction: column;
  list-style: none;
  margin: 0;
  padding: 4px var(--gutter) 12px;
  max-width: var(--maxw);
  margin-inline: auto;
}
.site-nav a {
  display: flex;
  align-items: center;
  min-height: 52px;
  font-size: 17px;
  color: var(--ink);
  text-decoration: none;
}
.site-nav li:not(:last-child) a {
  border-bottom: 1px solid var(--rule);
}
@media (min-width: 900px) {
  header.top {
    --row-tall: 146px;
    --row-short: 88px;
    --logo-tall: 104px;
    --logo-short: 62px;
  }
  header.top.nav-open {
    background: color-mix(
      in srgb,
      #ffffff calc(100% * var(--shrink)),
      transparent
    );
    border-bottom-color: color-mix(
      in srgb,
      var(--rule) calc(100% * var(--shrink)),
      transparent
    );
  }
  footer .brand img {
    height: 64px;
  }
  .nav-toggle {
    display: none;
  }
  .site-nav,
  .top.nav-open .site-nav {
    display: block;
    position: static;
    max-height: none;
    overflow: visible;
    background: none;
    border-bottom: 0;
    box-shadow: none;
  }
  .site-nav ul {
    flex-direction: row;
    gap: calc(32px - 8px * var(--shrink));
    padding: 0;
  }
  .site-nav a {
    min-height: 0;
    padding: 6px 0;
    font-size: calc(18px - 2px * var(--shrink));
    color: var(--ink-soft);
    border-bottom: 1.5px solid transparent;
  }
  .site-nav li:not(:last-child) a {
    border-bottom: 1.5px solid transparent;
  }
  .site-nav a:hover {
    color: var(--ink);
    border-bottom-color: var(--accent);
  }
}

/* ---- hero ---- */
.hero {
  padding: clamp(36px, 10.7vw, 96px) 0 clamp(48px, 12.3vw, 110px);
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 32px;
}
.hero h1 {
  margin-bottom: 20px;
}
.hero .lede {
  font-size: clamp(17px, 1.6vw + 12px, 21px);
  line-height: 1.5;
  color: var(--ink-soft);
  max-width: 36ch;
}
.hero-card {
  background: var(--bg-card);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: var(--pad-md);
}
.hero-card h3 {
  margin-bottom: 14px;
  font-size: 18px;
}
.hero-card ul {
  padding-left: 18px;
  margin: 0;
  color: var(--ink-soft);
}
.hero-card li {
  margin-bottom: 10px;
}
@media (min-width: 900px) {
  .hero-grid {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: var(--grid-gap);
    align-items: end;
  }
  .hero-grid > :first-child {
    grid-column: 1 / span 7;
  }
  .hero-card {
    grid-column: 8 / span 5;
  }
  .hero h1 {
    margin-bottom: 24px;
  }
}

/* ---- buttons ---- */
.cta-row {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 12px;
  margin-top: 28px;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: var(--tap);
  padding: 13px 22px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  border: 1px solid transparent;
  transition:
    transform 0.12s ease,
    background 0.15s ease,
    border-color 0.15s ease;
}
.btn:hover {
  transform: translateY(-1px);
}
.btn.primary {
  background: var(--accent);
  color: #fff;
}
.btn.primary:hover {
  background: var(--accent-ink);
  color: #fff;
}
.btn.ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--rule);
}
.btn.ghost:hover {
  border-color: var(--accent);
  color: var(--accent-ink);
}
.btn .arr {
  display: inline-block;
  transition: transform 0.15s ease;
}
.btn:hover .arr {
  transform: translateX(3px);
}
@media (min-width: 480px) {
  .cta-row {
    flex-direction: row;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 32px;
  }
}

/* ---- patient CTA ---- */
.hero.with-cta {
  padding-top: clamp(12px, 3vw, 32px);
}
.patient-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: clamp(36px, 8vw, 80px);
  padding: var(--pad-md);
  background: var(--bg-card);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  color: var(--ink);
  text-decoration: none;
  transition: border-color 0.15s ease;
}
.patient-cta:hover {
  color: var(--ink);
  border-color: var(--accent);
}
.patient-cta:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
.patient-cta .pc-eyebrow,
.patient-cta .pc-title {
  display: block;
}
.patient-cta .pc-eyebrow {
  margin-bottom: 6px;
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--accent-ink);
}
.patient-cta .pc-title {
  font-family: "Source Serif 4", Georgia, serif;
  font-size: clamp(21px, 1.6vw + 15px, 28px);
  line-height: 1.2;
  text-wrap: balance;
}
.patient-cta .pc-arrow {
  flex: none;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 20px;
  transition:
    transform 0.15s ease,
    background 0.15s ease,
    color 0.15s ease;
}
.patient-cta:hover .pc-arrow {
  background: var(--accent);
  color: #fff;
  transform: translateX(3px);
}
@media (min-width: 900px) {
  .patient-cta {
    padding: var(--pad-md) var(--pad-lg);
  }
  .patient-cta .pc-arrow {
    width: 56px;
    height: 56px;
  }
}

/* ---- two-col ---- */
.two-col {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 24px;
}
/* the eyebrow heads the section as a full-width rule at every width;
   the h2 hangs below it */
.two-col .label-col .eyebrow {
  position: relative;
  margin-bottom: 0;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--rule);
}
/* navy head of the section rule, to keep the hairline from reading
   as one more empty divider */
.two-col .label-col .eyebrow::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 48px;
  height: 2px;
  background: var(--accent);
}
.two-col .label-col h2 {
  margin: 20px 0 12px;
}
.two-col .body-col p {
  font-size: clamp(16px, 0.8vw + 14px, 18px);
}
.two-col .body-col p:last-child {
  margin-bottom: 0;
}
@media (min-width: 900px) {
  .two-col {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: var(--grid-gap);
    row-gap: 0;
    align-items: start;
  }
  /* .label-col is a stacking wrapper for phones only; on desktop it
     dissolves so its eyebrow can head the full width and its h2 can
     share row 2 with the body — the two text columns then start on the
     same line instead of the body hanging off the eyebrow. */
  .two-col .label-col {
    display: contents;
  }
  .two-col .label-col .eyebrow {
    grid-column: 1 / -1;
    grid-row: 1;
    padding-bottom: 18px;
  }
  .two-col .label-col h2 {
    grid-column: 1 / span 4;
    grid-row: 2;
    /* both columns open at 30px below the eyebrow rule, but the serif
       sets a taller content box than the body sans — lifting the h2 by
       its own cap-top offset (0.255em) less the body's (6.8px) puts the
       two first lines on one optical line at every viewport */
    margin: calc(37px - 0.255em) 0 0;
  }
  .two-col .body-col {
    grid-column: 7 / span 6;
    grid-row: 2;
    margin-top: 30px;
  }
  /* 7 of 12 columns, roughly 3/5 of the row, for a longer body text */
  .two-col.wide-body .body-col {
    grid-column: 6 / span 7;
  }
}

/* ---- audience cards ---- */
.audience {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
  margin-top: var(--block-gap);
}
.aud-card {
  background: var(--bg-card);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: var(--pad-md);
}
.aud-card .tag {
  display: inline-block;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-ink);
  background: var(--accent-soft);
  padding: 5px 10px;
  border-radius: 4px;
  margin-bottom: 18px;
  font-weight: 600;
}
.aud-card h3 {
  margin-bottom: 12px;
}
.aud-card p {
  margin: 0;
}
.aud-card .more {
  display: inline-block;
  margin-top: 16px;
  font-weight: 500;
}
@media (min-width: 760px) {
  .audience {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--grid-gap);
  }
}

/* ---- "wat is ALK" symptoms ---- */
.symptom-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: clamp(28px, 4vw, 36px);
}
.symptom {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-card);
  border: 1px solid var(--rule-cool);
  border-radius: var(--radius);
  padding: var(--pad-sm);
  text-align: center;
  font-size: clamp(14px, 0.4vw + 13px, 15px);
  color: var(--ink);
  font-weight: 500;
  hyphens: manual;
  overflow-wrap: break-word;
}
@media (min-width: 760px) {
  .symptom-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
  }
}
@media (min-width: 900px) {
  .symptom-grid {
    gap: var(--grid-gap);
  }
}
@media (min-width: 1000px) {
  .symptom-grid {
    grid-template-columns: repeat(5, 1fr);
  }
}

/* ---- approach: bio-psycho-social ---- */
.bps {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
  margin-top: var(--block-gap);
}
.bps-card {
  background: var(--bg-card);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: var(--pad-md);
  position: relative;
  border-top: 3px solid var(--bps-accent, var(--accent));
}
.bps-card.bio {
  --bps-accent: var(--brand-orange);
}
.bps-card.psy {
  --bps-accent: var(--brand-teal);
}
.bps-card.soc {
  --bps-accent: var(--brand-coral);
}
.bps-card .num {
  font-family: "Source Serif 4", serif;
  font-size: 13px;
  color: var(--bps-accent, var(--accent-ink));
  font-weight: 600;
  margin-bottom: 18px;
  letter-spacing: 0.06em;
}
.bps-card h3 {
  margin-bottom: 10px;
  font-size: clamp(18px, 0.6vw + 16px, 20px);
}
.bps-card p {
  font-size: 15px;
  margin: 0;
}
@media (min-width: 900px) {
  .bps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--grid-gap);
  }
}

/* ---- werkwijze ---- */
.werk-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
  margin-top: var(--block-gap);
}
.werk-card {
  background: var(--bg-card);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: var(--grid-gap);
}
.werk-card .num {
  font-family: "Source Serif 4", serif;
  font-size: clamp(30px, 1.6vw + 25px, 36px);
  color: var(--brand-teal);
  line-height: 1;
  margin-bottom: clamp(14px, 2vw, 18px);
  font-weight: 500;
}
.werk-card h3 {
  font-size: 18px;
  margin-bottom: 8px;
}
.werk-card p {
  font-size: 14px;
  margin: 0;
  line-height: 1.5;
}
@media (min-width: 600px) {
  .werk-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }
}
@media (min-width: 900px) {
  .werk-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: var(--grid-gap);
  }
}

/* ---- lidmaatschap ---- */
.lid-block {
  margin-top: 20px;
  background: var(--bg-card);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: var(--pad-lg);
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 24px;
}
.lid-info h3 {
  font-size: clamp(20px, 1.2vw + 17px, 24px);
  margin: 6px 0 16px;
}
.lid-info p {
  margin: 0 0 12px;
  font-size: 16px;
}
.lid-info p:last-child {
  margin-bottom: 0;
}
/* three narrow columns would hyphenate the uppercase labels to shreds,
   so below 600px each metric is a number-beside-label row instead */
.lid-meta {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
  border-top: 1px solid var(--rule);
  padding-top: 24px;
}
.meta-item {
  display: flex;
  align-items: center;
  gap: 14px;
}
.meta-item .meta-num {
  min-width: 3ch;
  margin-bottom: 0;
  font-family: "Source Serif 4", serif;
  font-size: clamp(28px, 2.6vw + 20px, 38px);
  line-height: 1;
  color: var(--brand-orange);
}
.meta-item .meta-label {
  font-size: 12px;
  color: var(--ink-mute);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  line-height: 1.3;
}
@media (min-width: 600px) {
  .lid-meta {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--grid-gap);
  }
  .meta-item {
    display: block;
  }
  .meta-item .meta-num {
    min-width: 0;
    margin-bottom: 8px;
  }
}
@media (min-width: 900px) {
  .lid-block {
    margin-top: 32px;
  }
}

/* the lid-block only splits once the viewport reaches --maxw, which is
   where the aside is finally wide enough to set "BIJEENKOMSTEN" without
   clipping (the label is one unbreakable word) */
@media (min-width: 1180px) {
  .lid-block {
    grid-template-columns: minmax(0, 1fr) var(--col5);
    gap: calc(var(--grid-gap) * 2);
    align-items: center;
  }
  .lid-meta {
    border-top: 0;
    padding-top: 0;
    border-left: 1px solid var(--rule);
    padding-left: var(--grid-gap);
  }
}

/* ---- map section ---- */
.map-shell {
  margin-top: var(--block-gap);
  /* Leaflet's panes and controls run up to z-index 800; isolate so they
     stack inside the shell instead of climbing over the sticky header */
  position: relative;
  z-index: 0;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  background: var(--bg-card);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  overflow: hidden;
}
.map-pane {
  position: relative;
  min-width: 0;
}
#map {
  height: clamp(300px, 50dvh, 440px);
  width: 100%;
  background: #e8e6e0;
}
/* a full-bleed map would otherwise swallow one-finger page scrolling,
   so on touch it stays inert until tapped (see mapGate in the script) */
.map-gate {
  position: absolute;
  inset: 0;
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  padding: 0;
  background: rgba(26, 25, 68, 0.24);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.map-gate[hidden] {
  display: none;
}
.map-gate span {
  background: rgba(26, 25, 68, 0.92);
  color: #fff;
  font-size: 15px;
  font-weight: 500;
  padding: 12px 20px;
  border-radius: 999px;
}
.leaflet-container {
  font-family: "Public Sans", sans-serif;
}
.pop-name {
  font-weight: 600;
  font-size: 15px;
  color: var(--ink);
  margin-bottom: 4px;
  font-family: "Source Serif 4", serif;
}
.pop-loc {
  font-size: 12px;
  color: var(--ink-mute);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.pop-row {
  font-size: 13px;
  color: var(--ink-soft);
  margin: 3px 0;
  display: flex;
  align-items: center;
  gap: 6px;
}
.pop-row a {
  color: var(--accent-ink);
  word-break: break-word;
}

.specialist-list {
  border-top: 1px solid var(--rule);
  max-height: 70dvh;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  background: var(--bg-card);
}
.filter-bar {
  position: sticky;
  top: 0;
  padding: 14px 20px;
  background: var(--bg-card);
  border-bottom: 1px solid var(--rule);
  z-index: 2;
}
.filter-bar input {
  width: 100%;
  min-height: var(--tap);
  padding: 10px 14px;
  border: 1px solid var(--rule);
  border-radius: 6px;
  font-family: inherit;
  /* 16px keeps iOS Safari from zooming in when the field takes focus */
  font-size: 16px;
  color: var(--ink);
  background: var(--bg-alt);
}
.filter-bar input:focus {
  outline: none;
  border-color: var(--accent);
  background: var(--bg-card);
}
.filter-meta {
  font-size: 12px;
  color: var(--ink-mute);
  margin-top: 8px;
  letter-spacing: 0.04em;
}
.sp-item {
  padding: 14px 20px;
  border-bottom: 1px solid var(--rule);
  cursor: pointer;
  transition: background 0.12s ease;
}
.sp-item:hover {
  background: var(--bg-alt);
}
.sp-item.active {
  background: var(--accent-soft);
}
.sp-name {
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 2px;
  font-size: 15px;
}
.sp-place {
  font-size: 12px;
  color: var(--accent-ink);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 6px;
  font-weight: 600;
}
.sp-meta {
  font-size: 13px;
  color: var(--ink-soft);
  word-break: break-word;
}
.sp-meta a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  color: var(--ink-soft);
  text-decoration: none;
}
.sp-meta a:hover {
  color: var(--accent);
  text-decoration: underline;
}
@media (min-width: 900px) {
  .map-shell {
    grid-template-columns: minmax(0, 1fr) var(--col5);
    height: 640px;
  }
  #map {
    height: 100%;
  }
  .specialist-list {
    max-height: none;
    border-top: 0;
    border-left: 1px solid var(--rule);
  }
  .filter-bar {
    padding: 16px 20px;
  }
  .filter-bar input {
    min-height: 0;
    font-size: 14px;
  }
  .sp-item {
    padding: 16px 20px;
  }
  .sp-place {
    margin-bottom: 8px;
  }
  .sp-meta {
    margin: 2px 0;
  }
  .sp-meta a {
    display: inline;
    min-height: 0;
  }
}
/* Leaflet's own controls are sized for a mouse */
@media (pointer: coarse) {
  .leaflet-touch .leaflet-bar a {
    width: 40px;
    height: 40px;
    line-height: 40px;
  }
}

/* custom marker */
.alk-marker {
  width: 28px;
  height: 28px;
  border-radius: 50% 50% 50% 0;
  background: var(--accent);
  border: 2px solid #fff;
  transform: rotate(-45deg);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
}
.alk-marker::after {
  content: "";
  width: 8px;
  height: 8px;
  background: #fff;
  border-radius: 50%;
}

/* ---- links section ---- */
.links-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
  margin-top: var(--block-gap);
}
.link-card {
  --card-pad: var(--pad-md);
  background: var(--bg-card);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: var(--card-pad);
}
.link-card h3 {
  margin-bottom: 18px;
  font-size: 19px;
}
.link-card ul {
  list-style: none;
  padding: 0;
  /* cancels the first/last row's own padding so the card keeps its
     inner spacing */
  margin: -14px 0;
}
.link-card li:not(:last-child) .link-row {
  border-bottom: 1px solid var(--rule);
}
/* the whole row is the link -- bled out to the card edges so the hover
   surface matches what you can click */
.link-row {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  min-height: var(--tap);
  padding: 14px var(--card-pad);
  margin: 0 calc(-1 * var(--card-pad));
  text-decoration: none;
  transition: background-color 0.15s ease;
}
.link-row:hover {
  background: var(--bg-alt);
}
.link-row:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: -2px;
  border-radius: 4px;
}
.link-card .lt-label {
  font-size: 14px;
  color: var(--ink);
  font-weight: 500;
}
.link-card .lt-src {
  font-size: 13px;
  color: var(--ink-mute);
  word-break: break-all;
}
.link-row:hover .lt-label,
.link-row:hover .lt-src {
  color: var(--accent);
}
@media (min-width: 760px) {
  .links-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--grid-gap);
  }
}

/* ---- footer ---- */
footer {
  border-top: 1px solid var(--rule);
  padding: clamp(40px, 6.3vw, 56px) 0 clamp(44px, 7.2vw, 64px);
  background: var(--bg-alt);
}
footer .row {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
}
footer p {
  font-size: 14px;
  margin: 0;
  color: var(--ink-soft);
}
footer .brand {
  font-size: 16px;
}
@media (min-width: 760px) {
  footer .row {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 32px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
