/* Crazy by Chiari — homepage styles
   Colors come from the logo: deep indigo + brushed gold. */

:root {
  --ink: #1B1238;          /* page ground (dark) */
  --ink-deep: #140D2B;
  --ink-raised: #251A4D;   /* cards on dark */
  --ink-line: #3A2D6B;
  --indigo: #24174F;       /* text on light */
  --lavender: #F6F2FB;     /* light band */
  --lavender-card: #EFEAF8;
  --white: #FFFFFF;
  --line-light: #E6E1F2;
  --gold: #E2B565;
  --gold-light: #E9C688;
  --gold-deep: #C8902F;
  --gold-text: #A8721F;    /* gold for large text on light */
  --brown: #6E4A10;        /* gold-family text, small, on light */
  --honey: #FDF3DF;
  --sand: #F6EEDC;
  --text-on-dark: #F4F0FA;
  --muted-on-dark: #C9C0E3;
  --muted-on-light: #4E4275;
  --faint-on-light: #6A5E91;

  --font-display: Montserrat, "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --font-body: "Source Sans 3", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-quote: "Source Serif 4", Georgia, "Times New Roman", serif;

  --radius: 20px;
  --max: 1200px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--text-on-dark);
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.6;
}
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { font-family: var(--font-display); margin: 0; text-wrap: balance; }
p { margin: 0; }
a { color: var(--gold-light); }
a:hover { color: var(--white); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.gold { color: var(--gold); }
.gold-dark { color: var(--gold-text); }

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding-left: max(24px, env(safe-area-inset-left, 0px));
  padding-right: max(24px, env(safe-area-inset-right, 0px));
}
.stack { display: flex; flex-direction: column; gap: 40px; }
.section { padding-block: 96px; }

/* ---------- Eyebrows & buttons ---------- */
.eyebrow {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
}
.eyebrow-purple { color: #5A3FA8; }
.eyebrow-dark { color: var(--brown); }
.eyebrow-brown { color: var(--brown); }

.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px;
  padding: 12px 24px;
  border-radius: 999px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  transition: transform .15s ease, background-color .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-gold { background: var(--gold); color: var(--ink); }
.btn-gold:hover { background: var(--gold-light); color: var(--ink); }
.btn-outline { border: 1.5px solid var(--gold); color: var(--text-on-dark); }
.btn-outline:hover { background: rgba(226,181,101,.12); color: var(--white); }
.btn-ink { background: var(--indigo); color: var(--white); }
.btn-ink:hover { background: #3A2A75; color: var(--white); }
.btn-white { background: var(--white); color: var(--indigo); }
.btn-white:hover { color: var(--indigo); background: #F1EDF8; }
.btn-ghost { border: 1px solid #6B5BA0; color: var(--white); }
.btn-ghost:hover { border-color: var(--gold); color: var(--white); }

/* ---------- Banner & header ---------- */
.banner {
  background: linear-gradient(90deg, var(--gold-light), var(--gold-deep));
  color: var(--ink);
  display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 16px;
  padding: 10px 24px;
  font-size: 15px; font-weight: 600; text-align: center;
}
.banner a { color: var(--ink); }

.site-header { border-bottom: 1px solid #33275F; background: var(--ink); position: relative; z-index: 5; }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 16px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-disc {
  width: 52px; height: 52px; border-radius: 50%;
  background: var(--lavender);
  display: grid; place-items: center; flex-shrink: 0;
}
.brand-disc img { width: 44px; height: auto; }
.brand-word { font-family: var(--font-display); font-weight: 800; font-size: 20px; color: var(--white); letter-spacing: .01em; white-space: nowrap; }

.main-nav { display: flex; flex-wrap: wrap; gap: 6px 26px; font-family: var(--font-display); font-weight: 600; font-size: 15px; }
.main-nav a { color: #DCD5EE; text-decoration: none; padding-block: 6px; }
.main-nav a:hover { color: var(--gold); }
.nav-toggle {
  display: none;
  background: transparent; color: var(--white);
  border: 1px solid var(--ink-line); border-radius: 12px;
  width: 48px; height: 48px; place-items: center; cursor: pointer;
}

@media (max-width: 900px) {
  .nav-toggle { display: grid; }
  .main-nav {
    display: none;
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; gap: 0;
    background: var(--ink-deep);
    border-bottom: 1px solid var(--ink-line);
    padding: 8px max(24px, env(safe-area-inset-left, 0px)) 16px;
  }
  .main-nav.is-open { display: flex; }
  .main-nav a { padding-block: 12px; border-top: 1px solid #2A1E55; }
}

/* ---------- Hero carousel ---------- */
.hero { position: relative; background: var(--ink); }
.slides { display: grid; }
.slide {
  grid-area: 1 / 1;          /* all slides share one cell, so height = tallest slide */
  opacity: 0;
  visibility: hidden;
  transition: opacity .6s ease, visibility 0s linear .6s;
  padding-block: 64px 96px;
  display: flex; align-items: center;
}
.slide.is-active { opacity: 1; visibility: visible; transition: opacity .6s ease, visibility 0s; }
.slide > .wrap { width: 100%; }

.slide-row { display: flex; flex-wrap: wrap; align-items: center; gap: 48px; }
.slide-copy { flex: 1 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.slide-art { flex: 1 1 300px; min-width: 0; display: flex; justify-content: center; }
.hero h1, .hero-title {
  font-weight: 800;
  font-size: clamp(32px, 3.6vw, 50px);
  line-height: 1.1;
  letter-spacing: -0.02em;
}
.lead { font-size: 18px; max-width: 34em; }

/* Slide 1 */
.slide-midnight { background: var(--ink); }
.slide-midnight .lead { color: var(--muted-on-dark); }
.emblem-disc {
  width: min(320px, 100%);
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--lavender);
  box-shadow: 0 0 0 10px #2A1E55, 0 0 0 12px var(--gold-deep);
  display: grid; place-items: center;
}
.emblem-disc img { width: 74%; }

/* Slide 2 */
.slide-bridge { background: #FBFAFD; color: var(--indigo); }
.bridge { display: flex; flex-direction: column; gap: 28px; }
.bridge-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px 48px; }
.bridge-head .hero-title { flex: 1 1 560px; min-width: 0; }
.bridge-head p { flex: 1 1 300px; max-width: 30em; color: var(--muted-on-light); }
.bridge-cards { display: flex; flex-wrap: wrap; gap: 20px; }
.side-card { flex: 1 1 420px; min-width: 0; border-radius: 20px; padding: 28px 30px; display: flex; flex-direction: column; gap: 12px; font-size: 17px; }
.side-card h3 { font-size: 24px; font-weight: 800; }
.side-patients { background: var(--lavender-card); }
.side-patients p { color: var(--muted-on-light); }
.side-clinicians { background: var(--indigo); color: var(--text-on-dark); }
.side-clinicians p { color: #CFC7E6; }
.voices-line { display: flex; align-items: center; gap: 16px; color: var(--faint-on-light); font-size: 15px; text-align: center; }
.voices-line::before, .voices-line::after { content: ""; flex: 1; height: 1px; background: #D5CDEA; }
.voices-line a { color: #5A3FA8; }

/* Slide 3 */
.slide-brave { background: var(--honey); color: var(--indigo); }
.slide-brave .lead { color: #4A3D78; }
.emblem-arch {
  width: min(320px, 100%);
  aspect-ratio: 1 / 1.05;
  background: var(--white);
  border-radius: 160px 160px 28px 28px;
  display: grid; place-items: center;
  box-shadow: 0 24px 60px -30px rgba(43,29,92,.45);
}
.emblem-arch img { width: 78%; }

/* ---------- Carousel controls ----------
   No background box: the controls take their color from the slide behind
   them (.hero.on-light is set by main.js for the light slides). */
.hero {
  --ctrl: rgba(255,255,255,.92);
  --ctrl-soft: rgba(255,255,255,.28);
  --ctrl-active: var(--gold);
  --interval: 7000ms;
}
.hero.on-light {
  --ctrl: var(--indigo);
  --ctrl-soft: rgba(36,23,79,.2);
  --ctrl-active: var(--indigo);
}
.carousel-controls {
  position: absolute; bottom: 24px;
  display: flex; align-items: center; gap: 6px;
  color: var(--ctrl);
  transition: color .4s ease;
}
.ctrl {
  width: 36px; height: 36px; border-radius: 50%;
  border: 0; background: transparent; color: inherit;
  display: grid; place-items: center; cursor: pointer;
  opacity: .75;
  transition: opacity .2s ease, background-color .2s ease;
}
.ctrl:hover { opacity: 1; }
.ctrl-pause svg { width: 14px; height: 14px; }
.ctrl-pause .icon-play { display: none; }
.ctrl-pause[aria-pressed="true"] .icon-play { display: block; }
.ctrl-pause[aria-pressed="true"] .icon-pause { display: none; }
.dots { display: flex; }
.dot { border: 0; background: transparent; cursor: pointer; padding: 0; position: relative; }
.dot-fill { display: block; }
.counter {
  font-family: var(--font-display); font-weight: 600; font-size: 14px;
  letter-spacing: .08em; font-variant-numeric: tabular-nums;
  display: flex; gap: 6px; margin-right: 6px;
}
.counter-now { color: var(--ctrl-active); font-weight: 800; }
.counter-sep { opacity: .5; }

/* Option 1 — lines: thin bars under the content, the active one fills as time passes */
.controls-lines .carousel-controls {
  left: max(24px, calc((100% - var(--max)) / 2 + 24px));
  gap: 10px;
}
.controls-lines .counter,
.controls-lines .ctrl-arrow { display: none; }
.controls-lines .dots { gap: 8px; }
.controls-lines .dot { width: 44px; height: 32px; }
.controls-lines .dot::before {
  content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 3px; margin-top: -1.5px;
  border-radius: 3px; background: var(--ctrl-soft);
}
.controls-lines .dot-fill {
  position: absolute; left: 0; top: 50%; height: 3px; margin-top: -1.5px; width: 0;
  border-radius: 3px; background: var(--ctrl-active);
}
.controls-lines .dot.is-active .dot-fill { width: 100%; }
.controls-lines.is-playing .dot.is-active .dot-fill { animation: fill-bar var(--interval) linear forwards; }
@keyframes fill-bar { from { width: 0; } to { width: 100%; } }

/* Option 2 — corner: counter and small outlined arrows, bottom right */
.controls-corner .carousel-controls {
  right: max(24px, calc((100% - var(--max)) / 2 + 24px));
}
.controls-corner .dots { display: none; }
.controls-corner .ctrl-arrow { border: 1px solid var(--ctrl-soft); }
.controls-corner .ctrl-arrow:hover { border-color: var(--ctrl); }

/* Option 3 — dots: small and centered, nothing else but pause */
.controls-dots .carousel-controls { left: 50%; transform: translateX(-50%); }
.controls-dots .counter,
.controls-dots .ctrl-arrow { display: none; }
.controls-dots .dot { width: 22px; height: 32px; }
.controls-dots .dot-fill {
  position: absolute; left: 50%; top: 50%; width: 7px; height: 7px;
  transform: translate(-50%, -50%); border-radius: 50%;
  background: var(--ctrl-soft); transition: background-color .3s ease;
}
.controls-dots .dot.is-active .dot-fill { background: var(--ctrl-active); }

@media (prefers-reduced-motion: reduce) {
  .controls-lines.is-playing .dot.is-active .dot-fill { animation: none; width: 100%; }
}

/* ---------- Light & dark bands ---------- */
.band-light { background: var(--lavender); color: var(--indigo); }
.band-dark { background: var(--ink); color: var(--text-on-dark); }
#atlas.band-dark { background: var(--indigo); }

.statement { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 48px; padding-block: 64px; }
.statement-big { flex: 1 1 560px; font-family: var(--font-display); font-weight: 800; font-size: clamp(28px, 3.4vw, 44px); line-height: 1.15; letter-spacing: -0.01em; text-wrap: balance; }
.statement-small { flex: 1 1 300px; color: var(--muted-on-light); }

.section-head { display: flex; flex-direction: column; gap: 10px; max-width: 680px; }
.section-head h2 { font-weight: 800; font-size: clamp(30px, 3.2vw, 40px); line-height: 1.15; }
.section-head p { color: var(--muted-on-light); margin-top: 6px; }
.section-head.split { max-width: none; flex-direction: row; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px 32px; }
.section-head.split > div { display: flex; flex-direction: column; gap: 10px; max-width: 640px; }
.text-link { font-family: var(--font-display); font-weight: 700; font-size: 15px; color: #5A3FA8; }
.text-link:hover { color: var(--indigo); }

/* Support cards */
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.card {
  background: var(--ink-raised); border: 1px solid var(--ink-line); border-radius: var(--radius);
  padding: 32px; display: flex; flex-direction: column; gap: 14px;
}
.card svg { color: var(--gold); }
.card h3 { font-weight: 700; font-size: 22px; }
.card p { color: var(--muted-on-dark); flex: 1; }
.card a { font-family: var(--font-display); font-weight: 700; font-size: 15px; text-decoration: none; }

/* Chiari types */
.types { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 12px; margin-top: -8px; }
.type {
  background: var(--white); border: 1px solid var(--line-light); border-radius: 14px;
  padding: 18px; display: flex; flex-direction: column; gap: 4px;
}
.type strong { font-family: var(--font-display); font-weight: 800; font-size: 22px; }
.type span { font-size: 14px; line-height: 1.4; color: var(--faint-on-light); }
.type-feature { background: var(--indigo); border-color: var(--indigo); }
.type-feature strong { color: var(--gold); }
.type-feature span { color: #CFC7E6; }
.fineprint { font-size: 13px; color: var(--faint-on-light); margin-top: -24px; }

/* Directory + guidelines */
.duo { display: flex; flex-wrap: wrap; gap: 20px; scroll-margin-top: 24px; }
.panel { border-radius: 24px; padding: 36px; display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.panel-white { flex: 3 1 540px; background: var(--white); border: 1px solid var(--line-light); }
.panel-gold { flex: 2 1 340px; background: var(--sand); }
.panel-title { font-weight: 800; font-size: 26px; line-height: 1.25; }
.panel label { font-size: 15px; font-weight: 600; color: var(--muted-on-light); margin-bottom: -6px; }
.panel input {
  font: inherit; font-size: 16px; color: var(--indigo);
  padding: 14px 16px; border-radius: 12px;
  border: 1px solid #D5CDEA; background: #FBFAFD; width: 100%;
}
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pill {
  font-family: var(--font-display); font-size: 14px; font-weight: 700;
  min-height: 40px; padding: 8px 18px; border-radius: 999px; cursor: pointer;
  border: 1px solid #D5CDEA; background: var(--white); color: var(--indigo);
}
.pill[aria-pressed="true"] { background: var(--indigo); border-color: var(--indigo); color: var(--white); }
.specialists { list-style: none; margin: 0; padding: 0; }
.specialists > li {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 6px 16px;
  padding-block: 16px; border-top: 1px solid #EEEAF6;
}
.specialists strong { display: block; font-weight: 600; }
.specialists small { font-size: 15px; color: var(--faint-on-light); }
.tag { font-size: 13px; font-weight: 700; padding: 5px 12px; border-radius: 999px; }
.tag-gold { background: var(--sand); color: var(--brown); }
.tag-purple { background: var(--lavender-card); color: #3E2C80; }
.empty { color: var(--faint-on-light); }

.chapters { list-style: none; margin: 0; padding: 0; border-bottom: 1px solid #E3D3AE; }
.chapters a {
  display: flex; justify-content: space-between; gap: 12px;
  padding-block: 16px; border-top: 1px solid #E3D3AE;
  color: var(--indigo); text-decoration: none;
}
.chapters a:hover strong { text-decoration: underline; }
.chapters strong { font-weight: 600; }
.pdf { font-family: var(--font-display); font-weight: 700; font-size: 14px; color: var(--brown); white-space: nowrap; }

/* Atlas */
.pamphlet {
  border: 1px solid #4A3D78; border-radius: 18px; padding: 28px;
  display: flex; flex-direction: column; gap: 8px;
}
.pamphlet-num { font-family: var(--font-display); font-weight: 700; font-size: 15px; color: var(--gold); }
.pamphlet h3 { font-weight: 700; font-size: 21px; line-height: 1.3; }
.pamphlet p { color: #CFC7E6; font-size: 16px; }

/* Next steps — one row of links joined by hairlines, no floating cards */
.next-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  border-top: 2px solid var(--indigo);
}
.next {
  display: flex; flex-direction: column; gap: 10px;
  padding: 32px 28px 36px;
  color: var(--indigo); text-decoration: none;
  border-bottom: 1px solid #D5CDEA;
  position: relative;
  transition: background-color .2s ease;
}
.next + .next { border-left: 1px solid #D5CDEA; }
.next:hover { background: var(--white); color: var(--indigo); }
.next-icon {
  width: 52px; height: 52px; border-radius: 50%;
  background: var(--indigo); color: var(--gold);
  display: grid; place-items: center; margin-bottom: 6px;
}
.next-title { font-family: var(--font-display); font-weight: 800; font-size: 24px; line-height: 1.2; }
.next-text { color: var(--muted-on-light); flex: 1; }
.next-go { font-family: var(--font-display); font-weight: 700; font-size: 15px; color: var(--brown); }
.next .arrow { display: inline-block; transition: transform .2s ease; }
.next:hover .arrow { transform: translateX(4px); }
.next-feature { background: var(--indigo); color: var(--white); }
.next-feature:hover { background: #2E1F63; color: var(--white); }
.next-feature .next-icon { background: var(--gold); color: var(--indigo); }
.next-feature .next-text { color: #CFC7E6; }
.next-feature .next-go { color: var(--gold); }
@media (max-width: 620px) {
  .next + .next { border-left: 0; }
}

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid #33275F; background: var(--ink); }
.footer-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px 20px; padding-block: 28px 22px; font-size: 15px; color: #B9B0D6; }
.footer-brand { display: flex; flex-direction: column; gap: 4px; }
.footer-social { display: flex; flex-wrap: wrap; gap: 8px 20px; font-weight: 600; }
.footer-social a { text-decoration: none; }

/* ---------- Small screens ---------- */
@media (max-width: 600px) {
  body { font-size: 17px; }
  .section { padding-block: 64px; }
  .slide { padding-block: 40px 80px; }
  .slide-row { gap: 36px; }
  .slide-art { order: -1; }
  .emblem-disc, .emblem-arch { width: min(260px, 100%); }
  .side-card, .panel { padding: 26px; }
  .brand-word { font-size: 17px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0s !important; }
}

/* =========================================================
   About Us dropdown
   ========================================================= */
.main-nav { align-items: center; }
.nav-group { position: relative; }
.nav-trigger {
  display: inline-flex; align-items: center; gap: 6px;
  font: inherit; color: #DCD5EE; background: transparent; border: 0;
  padding-block: 6px; cursor: pointer;
}
.nav-trigger svg { transition: transform .2s ease; }
.nav-trigger:hover, .nav-trigger[aria-expanded="true"], .nav-trigger.is-current { color: var(--gold); }
.nav-trigger[aria-expanded="true"] svg { transform: rotate(180deg); }
.main-nav a[aria-current="page"] { color: var(--gold); }

/* Option D: white card, gold top edge, a short description under each title.
   On hover the title turns the logo's gold. On white, the logo's lighter gold is
   too faint to read, so this uses its deeper end (--menu-gold). */
.nav-menu {
  --menu-gold: #A8721F;
  display: none;
  position: absolute; top: calc(100% + 17px); left: -22px;
  width: 340px; margin: 0; padding: 8px 0 10px; list-style: none;
  background: var(--white);
  border-top: 3px solid var(--gold);
  border-radius: 0 0 14px 14px;
  box-shadow: 0 30px 60px -20px rgba(0,0,0,.6);
  z-index: 20;
}
.nav-trigger[aria-expanded="true"] + .nav-menu { display: block; }
.nav-menu a {
  display: flex; flex-direction: column; gap: 1px;
  padding: 11px 22px !important;
  color: var(--indigo) !important; text-decoration: none;
  border: 0 !important;
}
.nav-menu b {
  font-family: var(--font-display); font-weight: 700; font-size: 15px; line-height: 1.35;
  transition: color .15s ease;
}
.nav-menu small { font-family: var(--font-body); font-weight: 400; font-size: 14px; line-height: 1.4; color: var(--faint-on-light); }
.nav-menu a:hover, .nav-menu a:focus-visible { background: var(--lavender); }
.nav-menu a:hover b, .nav-menu a:focus-visible b { color: var(--menu-gold); }
.nav-menu a:focus-visible { outline-offset: -3px; border-radius: 0; }
/* the page you're on: small gold dot after the title */
.nav-menu a[aria-current="page"] b::after {
  content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%;
  background: var(--gold-deep); margin-left: 8px; vertical-align: middle;
}
.nav-menu-extra { border-top: 1px solid var(--line-light); margin: 6px 22px 0; padding-top: 6px; }
.nav-menu-extra a { margin-inline: -22px; }

@media (max-width: 900px) {
  .main-nav { align-items: stretch; }
  .nav-trigger { width: 100%; justify-content: space-between; padding-block: 12px; }
  .nav-menu {
    position: static; width: auto; margin-bottom: 12px;
    border-radius: 0 0 12px 12px; box-shadow: none;
  }
}

/* =========================================================
   Inner pages (About section)
   ========================================================= */
.page-hero { background: var(--ink); padding-block: 72px 56px; border-bottom: 1px solid #33275F; }
.page-hero .wrap { display: flex; flex-direction: column; gap: 16px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 14px; color: #B9B0D6; }
.crumbs a { color: #B9B0D6; text-decoration: none; }
.crumbs a:hover { color: var(--gold); }
.page-hero h1 { font-weight: 800; font-size: clamp(34px, 4vw, 52px); line-height: 1.1; letter-spacing: -0.02em; max-width: 18em; }
.page-hero .lead { color: var(--muted-on-dark); }

/* Tabs linking the five About pages */
.about-tabs { background: var(--ink-deep); border-bottom: 1px solid #33275F; }
.about-tabs ul {
  list-style: none; margin: 0 auto; display: flex; gap: 4px; overflow-x: auto;
  scrollbar-width: none;
}
.about-tabs ul::-webkit-scrollbar { display: none; }
.about-tabs a {
  display: block; white-space: nowrap; padding: 16px 14px;
  font-family: var(--font-display); font-weight: 600; font-size: 14px;
  color: #B9B0D6; text-decoration: none; border-bottom: 3px solid transparent;
}
.about-tabs a:hover { color: var(--white); }
.about-tabs a[aria-current="page"] { color: var(--gold); border-bottom-color: var(--gold); }

/* Body copy */
.prose { display: flex; flex-direction: column; gap: 16px; max-width: 42em; }
.prose h2 { font-weight: 800; font-size: clamp(26px, 2.6vw, 34px); line-height: 1.2; }
.prose p { color: var(--muted-on-light); }
.band-dark .prose p { color: var(--muted-on-dark); }
.prose .pull { font-family: var(--font-display); font-weight: 800; font-size: 22px; line-height: 1.35; color: var(--indigo); }

.two-col { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }
.light-card {
  background: var(--white); border: 1px solid var(--line-light); border-radius: var(--radius);
  padding: 32px; display: flex; flex-direction: column; gap: 12px;
}
.light-card h3 { font-weight: 800; font-size: 22px; }
.light-card p { color: var(--muted-on-light); }
.light-card ul { margin: 0; padding-left: 20px; color: var(--muted-on-light); display: flex; flex-direction: column; gap: 4px; }
.light-card.is-ink { background: var(--indigo); border-color: var(--indigo); color: var(--text-on-dark); }
.light-card.is-ink p, .light-card.is-ink ul { color: #CFC7E6; }

/* Interview series rows */
.series { display: flex; flex-direction: column; }
.series-row { display: flex; flex-wrap: wrap; gap: 6px 28px; padding-block: 24px; border-top: 1px solid var(--ink-line); }
.series-row:last-child { border-bottom: 1px solid var(--ink-line); }
.series-name { flex: 0 0 230px; font-family: var(--font-display); font-weight: 800; font-size: 22px; color: var(--gold); }
.series-name small { display: block; font-family: var(--font-body); font-weight: 600; font-size: 15px; color: #DCD5EE; margin-top: 2px; }
.series-row p { flex: 1 1 280px; color: var(--muted-on-dark); }

/* People grid */
.people { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 20px; }
.person {
  background: var(--white); border: 1px solid var(--line-light); border-radius: var(--radius);
  padding: 24px; display: flex; flex-direction: column; gap: 6px;
}
.person-photo {
  width: 88px; height: 88px; border-radius: 50%; margin-bottom: 10px;
  background: var(--lavender-card); color: #5A3FA8;
  display: grid; place-items: center;
}
.person strong { font-family: var(--font-display); font-weight: 700; font-size: 18px; }
.person .role { font-weight: 600; color: var(--brown); font-size: 15px; }
.person .detail { color: var(--faint-on-light); font-size: 15px; }
.note {
  font-size: 15px; color: var(--muted-on-light);
  background: var(--white); border: 1px dashed #CFC5E6; border-radius: 12px; padding: 14px 18px;
}

/* Documents */
.doc-group { display: flex; flex-direction: column; gap: 14px; }
.doc-group h2 { font-weight: 800; font-size: 24px; }
.docs { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 12px; }
.docs a {
  display: flex; align-items: center; gap: 16px;
  background: var(--white); border: 1px solid var(--line-light); border-radius: 14px;
  padding: 16px 18px; color: var(--indigo); text-decoration: none;
  transition: border-color .15s ease, transform .15s ease;
}
.docs a:hover { border-color: var(--gold-deep); transform: translateY(-1px); color: var(--indigo); }
.doc-icon {
  flex-shrink: 0; width: 44px; height: 44px; border-radius: 10px;
  background: var(--sand); color: var(--brown); display: grid; place-items: center;
}
.doc-text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.doc-text strong { font-weight: 600; }
.doc-text small { color: var(--faint-on-light); font-size: 14px; }
.doc-go { font-family: var(--font-display); font-weight: 700; font-size: 13px; color: var(--brown); white-space: nowrap; }

/* Call-to-action strip at the bottom of inner pages */
.cta-strip { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 32px; }
.cta-strip h2 { font-weight: 800; font-size: clamp(24px, 2.6vw, 32px); line-height: 1.2; max-width: 22em; }

/* =========================================================
   People cards with photos + bio pop-ups
   ========================================================= */
.people-5 { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.people-4 { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
/* Card style 3: a small golden sun (from the logo) rises behind each photo.
   The whole card opens the bio: the Read bio button stretches over it. */
.person {
  position: relative; align-items: center; text-align: center; padding: 26px 18px 20px;
  transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.person:hover { border-color: var(--gold-deep); transform: translateY(-3px); box-shadow: 0 18px 30px -22px rgba(27,18,56,.45); }
.person:focus-within { border-color: var(--gold-deep); }
.person strong { line-height: 1.3; }
.person .role { line-height: 1.35; }
.person .detail { line-height: 1.35; }
.sun { position: relative; width: 150px; height: 128px; margin-bottom: 12px; display: flex; align-items: flex-end; justify-content: center; }
.sun::before { content: ""; position: absolute; inset: 0 0 18px; border-radius: 75px 75px 0 0; background: linear-gradient(160deg, var(--gold-light), var(--gold-deep)); }
.sun::after { content: ""; position: absolute; left: -10px; right: -10px; bottom: 16px; height: 2px; background: #E3D3AE; }
.person-img {
  position: relative; z-index: 1;
  width: 104px; height: 104px; border-radius: 50%; object-fit: cover;
  background: var(--white);
  box-shadow: 0 0 0 5px var(--white);
}
/* the CBC emblem stands in where there's no photo: show it whole and centered */
.person-img.is-logo, .bio-photo.is-logo { object-fit: contain; object-position: center; padding: 12px; }
.bio-photo.is-logo { padding: 24px; }
.btn-bio { background: #F6EEDC !important; border-color: transparent !important; color: var(--indigo) !important; }
.btn-bio::after { content: ""; position: absolute; inset: 0; border-radius: 20px; z-index: 3; cursor: pointer; }
.person:hover .btn-bio { background: #EFE2C4 !important; }
.btn-bio:focus-visible { outline: none; }
.btn-bio:focus-visible::after { outline: 3px solid var(--gold); outline-offset: 2px; }
.person-actions .btn-mini-ink { position: relative; z-index: 4; }
.person-actions { margin-top: auto; padding-top: 14px; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; width: 100%; }
.btn-mini {
  flex: 1 1 0; min-height: 40px; padding: 8px 14px; border-radius: 999px;
  font-family: var(--font-display); font-weight: 700; font-size: 13px; cursor: pointer;
  border: 1px solid var(--indigo); background: var(--white); color: var(--indigo);
  display: inline-flex; align-items: center; justify-content: center; text-decoration: none; white-space: nowrap;
}
.btn-mini:hover { background: var(--lavender); color: var(--gold-text); }
.btn-mini-ink { background: var(--indigo); color: var(--white); }
.btn-mini-ink:hover { background: #3A2A75; color: var(--gold); }

/* Bio pop-up: story-led layout (option D) — pull quote, then photo + name, then the bio */
dialog.bio {
  width: min(880px, calc(100% - 32px)); max-height: min(90vh, 820px);
  --pad: clamp(28px, 5vw, 52px); padding: var(--pad); border: 0; border-radius: 24px; overflow-y: auto;
  background: var(--lavender); color: var(--indigo);
  box-shadow: 0 40px 80px -24px rgba(0,0,0,.55);
  text-align: left;
}
dialog.bio[open] { display: flex; flex-direction: column; gap: 26px; }
dialog.bio:focus { outline: none; }
dialog.bio::backdrop { background: rgba(20,13,43,.7); backdrop-filter: blur(3px); }
/* top: quote + name on the left, large photo on the right */
.bio-top { display: flex; align-items: center; gap: 40px; padding-bottom: 28px; border-bottom: 1px solid #DCD4EE; }
.bio-lead { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 22px; }
.bio-quote {
  margin: 0; max-width: 30em;
  font-family: var(--font-quote); font-style: italic; font-weight: 400;
  font-size: clamp(21px, 2.3vw, 26px); line-height: 1.4;
  color: #4A3A86;
  text-wrap: balance;
}
.bio-quote::before { content: "\201C"; display: block; font-family: var(--font-quote); font-style: normal; font-weight: 500; font-size: 72px; line-height: .5; color: var(--gold-deep); margin-bottom: 4px; }
.bio-quote::after { content: "\201D"; font-family: var(--font-quote); font-style: normal; font-weight: 500; color: var(--gold-deep); margin-left: 2px; }
.bio-who { display: flex; flex-direction: column; gap: 2px; }
.bio-who h2 { font-weight: 800; font-size: 24px; line-height: 1.2; }
.bio-who .role { font-family: var(--font-display); font-weight: 700; font-size: 15px; color: var(--brown); }
.bio-who .detail { font-size: 15px; color: var(--faint-on-light); }
.bio-photo {
  width: 180px; height: 180px; border-radius: 50%; object-fit: cover;
  background: var(--white); box-shadow: 0 0 0 6px var(--white), 0 0 0 7px var(--gold-deep), 0 20px 36px -18px rgba(27,18,56,.55);
}
.bio-text { columns: 2 300px; column-gap: 40px; color: var(--muted-on-light); font-size: 17px; line-height: 1.65; }
.bio-text p { margin: 0 0 14px; break-inside: avoid; }
.bio-contact { margin: -10px 0 0; font-size: 16px; color: var(--muted-on-light); }
.bio-contact .email { font-weight: 600; color: var(--indigo); user-select: all; }
/* photo column: photo with the profile button under it */
.bio-photo-col { flex: 0 0 auto; margin-right: 24px; display: flex; flex-direction: column; align-items: center; gap: 18px; }
.bio-profile {
  display: inline-flex; align-items: center; min-height: 40px; padding: 8px 18px; border-radius: 999px;
  background: var(--indigo); color: var(--white); text-decoration: none; white-space: nowrap;
  font-family: var(--font-display); font-weight: 700; font-size: 13px;
}
.bio-profile:hover { color: var(--gold); }
/* tan bar at the bottom listing each specialty */
.bio-band {
  margin: 0 calc(var(--pad) * -1) calc(var(--pad) * -1);
  padding: 26px var(--pad) 28px;
  background: #F6EEDC;
  display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center;
}
.bio-band-label {
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  font-family: var(--font-display); font-weight: 700; font-size: 13px;
  letter-spacing: .16em; text-transform: uppercase; color: var(--brown);
}
/* specialties on one line, separated by gold dots */
.bio-chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 22px; max-width: 46em; }
.bio-chips li { font-family: var(--font-body); font-weight: 400; font-size: 17px; line-height: 1.5; color: var(--indigo); white-space: nowrap; }
.bio-chips li::before { content: "•"; color: var(--gold-deep); margin-right: 8px; }
.bio-close {
  position: absolute; top: 18px; right: 18px; width: 40px; height: 40px; border-radius: 50%;
  border: 0; background: var(--white); color: var(--indigo); font-size: 24px; line-height: 1; cursor: pointer;
}
.bio-close:hover { background: var(--indigo); color: var(--white); }
@media (max-width: 640px) {
  .bio-top { flex-direction: column-reverse; align-items: flex-start; gap: 20px; }
  .bio-photo { width: 120px; height: 120px; }
  .bio-photo-col { margin: 0 0 0 6px; align-items: flex-start; }
}
body.bio-open { overflow: hidden; }

/* =========================================================
   Header: five dropdown menus
   ========================================================= */
.main-nav { gap: 6px 24px; }
.nav-menu.align-right { left: auto; right: -22px; }
@media (max-width: 1100px) and (min-width: 901px) { .main-nav { gap: 6px 16px; font-size: 14px; } }

/* =========================================================
   Shared bits for Information / Initiatives / Support / Get Involved
   ========================================================= */
.intro-big { font-size: 19px; color: var(--indigo) !important; }
.dot-list { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 6px; color: var(--muted-on-light); }
.dot-list li { display: flex; gap: 10px; }
.dot-list li::before { content: ""; flex: 0 0 7px; height: 7px; margin-top: 10px; border-radius: 50%; background: var(--gold-deep); }
.dot-list.big li { font-size: 18px; color: var(--indigo); }
.inline-dots { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 2px 18px; font-size: 15px; color: var(--muted-on-light); }
.inline-dots li::before { content: "•"; color: var(--gold-deep); margin-right: 7px; }
.light-card .text-link, .prose .text-link { color: #5A3FA8; }
.note { margin: 0; }
.btn-link { background: none; border: 0; padding: 0; cursor: pointer; font-family: var(--font-display); font-weight: 700; font-size: 15px; color: var(--brown); text-align: left; }
.btn-link .arrow { display: inline-block; transition: transform .2s ease; }
/* the button stretches over its whole card so the card is clickable */
.btn-link.stretch::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.btn-link:focus-visible { outline: none; }
.btn-link:focus-visible::after { outline: 3px solid var(--gold); outline-offset: 2px; }

/* What is Chiari: type strip as jump links */
.types a.type { text-decoration: none; color: var(--indigo); transition: border-color .15s, transform .15s; }
.types a.type:hover { border-color: var(--gold-deep); transform: translateY(-2px); }
.types a.type-feature { color: var(--white); }
.type-article { scroll-margin-top: 24px; background: var(--white); border: 1px solid var(--line-light); border-radius: 24px; padding: clamp(24px, 4vw, 40px); display: flex; flex-direction: column; gap: 22px; }
.type-article header { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.type-code { font-family: var(--font-display); font-weight: 800; font-size: 22px; color: var(--gold); background: var(--indigo); border-radius: 14px; padding: 10px 14px; min-width: 76px; text-align: center; }
.type-article h3 { font-weight: 800; font-size: 24px; line-height: 1.2; margin-bottom: 6px; }
.type-body { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 32px; align-items: start; }
.type-body h4 { font-family: var(--font-display); font-weight: 700; font-size: 16px; margin: 6px 0 -4px; }
.diagrams { display: grid; gap: 14px; }
.diagram-ph { margin: 0; display: flex; flex-direction: column; gap: 8px; }
.ph-box { aspect-ratio: 16 / 10; border-radius: 16px; background: var(--lavender); border: 1px dashed #CFC5E6; display: grid; place-content: center; justify-items: center; gap: 8px; color: #8A7FB0; font-size: 14px; }
.diagram-ph figcaption { font-family: var(--font-display); font-weight: 700; font-size: 14px; color: var(--indigo); text-align: center; }
@media (max-width: 800px) { .type-body { grid-template-columns: 1fr; } }

/* Comorbidities */
.comorb-grid, .role-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
.comorb-card, .role-card {
  position: relative; background: var(--white); border: 1px solid var(--line-light); border-radius: 20px;
  padding: 24px; display: flex; flex-direction: column; gap: 10px;
  transition: border-color .2s, transform .2s, box-shadow .2s;
}
.comorb-card:hover, .role-card:hover { border-color: var(--gold-deep); transform: translateY(-3px); box-shadow: 0 18px 30px -22px rgba(27,18,56,.45); }
.comorb-card:hover .arrow, .role-card:hover .arrow { transform: translateX(4px); }
.comorb-card .tag, .role-card .tag { align-self: flex-start; }
.comorb-card h3, .role-card h3 { font-weight: 800; font-size: 19px; line-height: 1.3; }
.comorb-card p { color: var(--muted-on-light); font-size: 16px; flex: 1; }
.comorb-card .btn-link, .role-card .btn-link { margin-top: 6px; }
dialog.article { --pad: clamp(28px, 5vw, 48px); width: min(760px, calc(100% - 32px)); background: var(--white); }
dialog.article h2 { font-weight: 800; font-size: clamp(24px, 3vw, 30px); line-height: 1.2; padding-right: 44px; margin-top: -12px; }
.article-body { display: flex; flex-direction: column; gap: 12px; color: var(--muted-on-light); font-size: 17px; line-height: 1.65; }
.article-body h3 { font-family: var(--font-display); font-weight: 800; font-size: 17px; color: var(--indigo); margin-top: 8px; }
.article-body .btn { align-self: flex-start; margin-top: 8px; }

/* CNS guidelines */
.chapters-big { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.chapters-big a { display: flex; align-items: center; gap: 20px; background: var(--white); border: 1px solid var(--line-light); border-radius: 18px; padding: 22px 24px; color: var(--indigo); text-decoration: none; transition: border-color .15s, transform .15s; }
.chapters-big a:hover { border-color: var(--gold-deep); transform: translateY(-2px); color: var(--indigo); }
.chap-num { flex: 0 0 auto; font-family: var(--font-display); font-weight: 800; font-size: 14px; color: var(--gold); background: var(--indigo); border-radius: 10px; padding: 8px 12px; }
.chapters-big strong { font-family: var(--font-display); font-weight: 700; font-size: 18px; }
.chapters-big small { font-size: 16px; }

/* Specialists */
.spec-list .spec { display: flex; align-items: flex-start; gap: 18px; padding-block: 20px; }
.spec img { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; flex-shrink: 0; box-shadow: 0 0 0 3px var(--white), 0 0 0 4px var(--gold-deep); }
.spec-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.spec-main .tag { align-self: flex-start; }
.spec-main strong { font-family: var(--font-display); font-weight: 800; font-size: 18px; }
.spec-where { font-size: 15px; color: var(--faint-on-light); }
.spec-main p { color: var(--muted-on-light); font-size: 16px; }
.spec-link { flex: 0 0 auto !important; align-self: center; }
@media (max-width: 640px) { .spec-list .spec { flex-wrap: wrap; } .spec-link { margin-left: 90px; } }

/* Community resources */
.feature-link { display: flex; flex-direction: column; gap: 10px; background: var(--indigo); color: var(--white); border-radius: var(--radius); padding: 32px; text-decoration: none; transition: transform .2s; }
.feature-link:hover { transform: translateY(-3px); color: var(--white); }
.feature-link h3 { font-weight: 800; font-size: 26px; }
.feature-link p { color: #CFC7E6; }
.feature-link .go { font-family: var(--font-display); font-weight: 700; color: var(--gold); margin-top: auto; }

/* Chiari Atlas */
.pamphlet-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.pamphlet-card { background: var(--white); border: 1px solid var(--line-light); border-radius: 20px; padding: 28px; display: flex; flex-direction: column; gap: 10px; }
.pamphlet-card .pamphlet-num { color: var(--brown); }
.pamphlet-card h3 { font-weight: 800; font-size: 20px; line-height: 1.3; }
.pamphlet-card p { color: var(--muted-on-light); font-size: 16px; }

/* For Neurosurgeons */
.frame-list { display: flex; flex-direction: column; border-top: 1px solid #4A3D78; }
.frame-card { padding-block: 14px; border-bottom: 1px solid #4A3D78; display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: baseline; }
.frame-card h3 { font-weight: 800; font-size: 18px; color: var(--gold); }
.frame-card p { color: #CFC7E6 !important; }
.program { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 32px 48px; padding-block: 32px; border-top: 1px solid var(--ink-line); scroll-margin-top: 24px; }
.program:first-child { border-top: 0; padding-top: 0; }
.program-head { display: flex; flex-direction: column; gap: 8px; }
.program-head h3 { font-weight: 800; font-size: 28px; }
.program-format { font-family: var(--font-display); font-weight: 600; font-size: 14px; color: #CFC7E6; }
@media (max-width: 800px) { .program { grid-template-columns: 1fr; } }

/* Brave Brain Club */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }
.step { background: var(--white); border-radius: 20px; padding: 26px; display: flex; flex-direction: column; gap: 8px; border: 1px solid var(--line-light); }
.step:first-child { background: #F6EEDC; border-color: #F6EEDC; }
.step-n { font-family: var(--font-display); font-weight: 800; font-size: 44px; line-height: 1; color: var(--gold-deep); }
.step h3 { font-weight: 800; font-size: 22px; }
.step p { color: var(--muted-on-light); }
.items { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px; }
.item { background: var(--white); border: 1px solid var(--line-light); border-radius: 20px; padding: 24px; display: flex; flex-direction: column; gap: 8px; }
.item-n { font-family: var(--font-display); font-weight: 700; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--brown); }
.item h3 { font-weight: 800; font-size: 18px; line-height: 1.3; }
.item p { color: var(--muted-on-light); font-size: 16px; }

/* Bridging the Gap */
.platform { display: flex; flex-direction: column; gap: 10px; background: var(--white); border: 1px solid var(--line-light); border-radius: var(--radius); padding: 32px; color: var(--indigo); text-decoration: none; transition: border-color .2s, transform .2s; }
a.platform:hover { border-color: var(--gold-deep); transform: translateY(-3px); color: var(--indigo); }
.platform .eyebrow { color: var(--brown); }
.platform h3 { font-weight: 800; font-size: 28px; }
.platform p { color: var(--muted-on-light); }
.platform .go { font-family: var(--font-display); font-weight: 700; color: var(--brown); margin-top: auto; }
.platform.is-soon { background: transparent; border-style: dashed; }
.platform.is-soon .go { color: var(--faint-on-light); }

/* Zoom support groups */
.zoom-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 20px; }
.zoom-card { background: var(--white); border: 1px solid var(--line-light); border-radius: 20px; padding: 28px; display: flex; flex-direction: column; gap: 12px; }
.zoom-card.is-cbc { background: #F6EEDC; border-color: #F6EEDC; }
.zoom-card .tag { align-self: flex-start; }
.zoom-card h3 { font-weight: 800; font-size: 20px; line-height: 1.3; }
.zoom-card .when { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; font-family: var(--font-display); font-weight: 700; font-size: 15px; color: var(--indigo); }
.zoom-card p { color: var(--muted-on-light); font-size: 16px; flex: 1; }
.zoom-act .btn-mini { flex: none; display: inline-flex; padding-inline: 18px; }
.soon { font-family: var(--font-display); font-weight: 700; font-size: 14px; color: var(--brown); }

/* Volunteer roles */
.role-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.role-dept { font-family: var(--font-display); font-weight: 700; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--faint-on-light); }
.role-meta { font-size: 15px; color: var(--faint-on-light); flex: 1; }
.urg-high { background: #FBE3D6; color: #8A3A12; }
.urg-open { background: var(--lavender-card); color: #3E2C80; }
dialog.article .role-meta { margin-top: -14px; }

/* Donation station */
.goal-card { background: var(--indigo); color: var(--white); border-radius: 24px; padding: 32px; display: flex; flex-direction: column; gap: 14px; }
.goal-big { font-family: var(--font-display); font-weight: 800; font-size: clamp(28px, 3.4vw, 38px); line-height: 1.15; }
.goal-meter { height: 14px; background: #43357A; border-radius: 999px; overflow: hidden; }
.goal-meter span { display: block; height: 100%; background: linear-gradient(90deg, var(--gold-light), var(--gold-deep)); }
.goal-count { font-family: var(--font-display); font-weight: 700; color: #DCD5EE; }
.goal-count small { font-weight: 500; color: #B9B0D6; }
.statement-gold { font-family: var(--font-display); font-weight: 700; color: var(--gold) !important; font-size: 18px; }

/* Forms that aren't connected yet */
.mock-form { background: var(--white); border: 1px solid var(--line-light); border-radius: 24px; padding: clamp(24px, 4vw, 40px); display: flex; flex-direction: column; gap: 16px; scroll-margin-top: 24px; }
.mock-form h2 { font-weight: 800; font-size: 26px; line-height: 1.2; }
.mock-form > p { color: var(--muted-on-light); }
.field-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px 18px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field:has(textarea) { grid-column: 1 / -1; }
.field label { font-size: 15px; font-weight: 600; color: var(--muted-on-light); }
.field input, .field select, .field textarea { font: inherit; font-size: 16px; color: var(--indigo); padding: 12px 14px; border-radius: 12px; border: 1px solid #D5CDEA; background: #FBFAFD; width: 100%; }
.mock-form .btn { align-self: flex-start; border: 0; cursor: pointer; }
.form-note { display: none; font-size: 15px; color: var(--brown); background: #F6EEDC; border-radius: 12px; padding: 12px 14px; }
.mock-form.was-sent .form-note { display: block; }

/* anything marked hidden stays hidden, even if its class sets a display */
[hidden] { display: none !important; }

/* =========================================================
   Header: gold outline pill (chosen design)
   The header row floats as a pill with a thin gold outline;
   the current section is a solid gold pill.
   ========================================================= */
.site-header {
  border-bottom: 0;
  padding: 18px max(16px, env(safe-area-inset-right, 0px)) 18px max(16px, env(safe-area-inset-left, 0px));
}
.header-row {
  max-width: 1152px;
  padding: 7px 7px 7px 11px;
  border: 1.5px solid rgba(226,181,101,.6);
  border-radius: 999px;
}
.main-nav { gap: 6px 6px; }
.nav-trigger {
  padding: 10px 16px; border-radius: 999px;
  transition: background-color .15s ease, color .15s ease;
}
.nav-trigger:hover, .nav-trigger[aria-expanded="true"] { color: var(--gold); background: rgba(226,181,101,.1); }
.nav-trigger.is-current, .nav-trigger.is-current:hover { background: var(--gold); color: var(--ink); }
.nav-trigger:focus-visible { outline-offset: 2px; border-radius: 999px; }
/* dropdowns hang just below the pill */
.nav-menu { top: calc(100% + 15px); left: -6px; }
.nav-menu.align-right { left: auto; right: -6px; }
@media (max-width: 1100px) and (min-width: 901px) {
  .main-nav { gap: 4px; }
  .nav-trigger { padding: 9px 11px; font-size: 14px; }
}

/* phones: the pill holds the logo and menu button; the menu opens below it */
@media (max-width: 900px) {
  .header-row { padding: 6px 6px 6px 8px; }
  .nav-toggle { border-radius: 999px; width: 44px; height: 44px; border-color: rgba(226,181,101,.45); }
  .main-nav {
    top: calc(100% + 8px); left: max(16px, env(safe-area-inset-left, 0px)); right: max(16px, env(safe-area-inset-right, 0px));
    border: 1.5px solid rgba(226,181,101,.45); border-radius: 22px; padding: 8px 12px 12px;
  }
  .nav-trigger { border-radius: 12px; padding: 12px 10px; }
  .nav-trigger.is-current, .nav-trigger.is-current:hover { background: rgba(226,181,101,.14); color: var(--gold); }
  .nav-group + .nav-group { border-top: 1px solid #2A1E55; }
  .main-nav a { border-top: 0; }
}
/* mid-size screens: keep the pill on one line by showing just the emblem */
@media (max-width: 1150px) and (min-width: 901px) {
  .site-header .brand-word { display: none; }
  .main-nav { flex-wrap: nowrap; }
}

/* YouTube playlist links on the interview series */
.series-text { flex: 1 1 280px; min-width: 0; display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.series-text p { flex: none; color: var(--muted-on-dark); }
.yt-link {
  display: inline-flex; align-items: center; gap: 9px; min-height: 40px; padding: 8px 16px 8px 12px;
  border-radius: 999px; border: 1px solid rgba(226,181,101,.5); color: var(--white); text-decoration: none;
  font-family: var(--font-display); font-weight: 700; font-size: 13px; transition: background-color .15s, border-color .15s;
}
.yt-link:hover { background: rgba(226,181,101,.12); border-color: var(--gold); color: var(--white); }
.yt-icon { flex-shrink: 0; }
.program-head .yt-link { align-self: flex-start; margin-top: 8px; }

/* For Neurosurgeons: framework titles jump to their sections; TBD note */
.frame-card h3 a { color: inherit; text-decoration: none; border-bottom: 1px solid transparent; transition: border-color .15s; }
.frame-card h3 a:hover { border-bottom-color: var(--gold); color: var(--gold); }
.frame-card h3 a span { font-size: .8em; opacity: .7; }
.tbd-chip {
  align-self: flex-start; margin-top: 8px; display: inline-flex; align-items: center; gap: 8px; min-height: 36px;
  padding: 7px 14px; border-radius: 999px; background: rgba(226,181,101,.14); color: var(--gold);
  font-family: var(--font-display); font-weight: 700; font-size: 13px;
}
.tbd-chip::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--gold); }
html { scroll-padding-top: 16px; }

/* =========================================================
   Donation Station: Donate now buttons + donation pop-up
   ========================================================= */
.donate-card { gap: 14px; }
.donate-card p { flex: 1; }
.donate-card .btn { align-self: flex-start; border: 0; cursor: pointer; }
.goal-card .btn { border: 0; cursor: pointer; font: inherit; font-family: var(--font-display); font-weight: 700; font-size: 15px; }
.goal-card .btn-outline { border: 1.5px solid var(--gold); background: transparent; }

dialog.donate { width: min(620px, calc(100% - 32px)); gap: 18px; }
dialog.donate h2 { margin-top: -8px; }
.donate-form { display: flex; flex-direction: column; gap: 22px; }
.donate-step { border: 0; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.donate-step legend { padding: 0; margin-bottom: 10px; font-family: var(--font-display); font-weight: 800; font-size: 16px; color: var(--indigo); }
.amt-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.amt {
  min-height: 48px; border-radius: 12px; border: 1px solid #D5CDEA; background: #FBFAFD; cursor: pointer;
  font-family: var(--font-display); font-weight: 800; font-size: 17px; color: var(--indigo);
}
.amt:hover { border-color: var(--gold-deep); }
.amt[aria-pressed="true"] { background: var(--indigo); border-color: var(--indigo); color: var(--gold); }
.other-amt { display: flex; flex-direction: column; gap: 6px; }
.other-amt > span:first-child { font-size: 15px; font-weight: 600; color: var(--muted-on-light); }
.money { display: flex; align-items: center; border: 1px solid #D5CDEA; border-radius: 12px; background: #FBFAFD; padding-left: 14px; }
.money:focus-within { border-color: var(--gold-deep); }
.money > span { font-weight: 600; color: var(--muted-on-light); }
.money input { border: 0 !important; background: transparent !important; padding-left: 6px !important; }
.money input:focus { outline: none; }
.card-grid-form { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px 14px; }
.card-grid-form .card-num { grid-column: 1 / -1; }
@media (max-width: 520px) {
  .amt-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .card-grid-form { grid-template-columns: 1fr 1fr; }
  .card-grid-form .field:last-child { grid-column: 1 / -1; }
}
.donate-submit { align-self: stretch; justify-content: center; min-height: 52px; font-size: 16px; border: 0; cursor: pointer; }
.donate-form.was-sent .form-note { display: block; }
.donate-thanks { margin: 0; padding-top: 14px; border-top: 1px solid var(--line-light); font-size: 13.5px; line-height: 1.55; color: var(--faint-on-light); text-align: center; }
.donate-submit [data-amount-label] { margin-left: .3em; }

/* donation pop-up title band */
dialog.donate h2 { margin-top: 0; }
.donate-head {
  margin: calc(var(--pad) * -1) calc(var(--pad) * -1) 4px;
  padding: calc(var(--pad) * .85) var(--pad) 26px;
  background: #F6EEDC;
  border-bottom: 3px solid var(--gold);
  display: flex; flex-direction: column; gap: 8px;
}
.donate-head h2 {
  padding-right: 44px;
  font-weight: 800; font-size: clamp(26px, 3.4vw, 34px); line-height: 1.15; color: var(--indigo);
}
.donate-head h2 span { white-space: nowrap; }
.donate-head h2 span + span { color: var(--gold-text); }
.donate-sub { margin: 0; font-size: 16px; line-height: 1.5; color: var(--muted-on-light); max-width: 36em; }
dialog.donate .bio-close { background: var(--white); z-index: 2; }
.donate-head .eyebrow { padding-right: 48px; }

/* =========================================================
   Zoom support groups: calendar, next dates, group badges
   ========================================================= */
.zoom-intro { display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 380px); gap: 32px 48px; align-items: start; }
.zoom-intro .section-head { max-width: 36em; }
.zoom-intro .note { margin-top: 10px; font-size: 15px; }
@media (max-width: 860px) { .zoom-intro { grid-template-columns: 1fr; } }

.meet-cal { background: var(--white); border: 1px solid var(--line-light); border-radius: 22px; padding: 20px; display: flex; flex-direction: column; gap: 12px; box-shadow: 0 18px 36px -28px rgba(27,18,56,.45); }
.cal-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.cal-month { font-weight: 800; font-size: 18px; }
.cal-nav { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line-light); background: var(--lavender); color: var(--indigo); font-size: 20px; line-height: 1; cursor: pointer; }
.cal-nav:hover { border-color: var(--gold-deep); }
.cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; text-align: center; }
.cal-dow span { font-family: var(--font-display); font-weight: 700; font-size: 11px; letter-spacing: .08em; color: var(--faint-on-light); }
.cal-day { position: relative; aspect-ratio: 1; border-radius: 10px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; font-size: 14px; color: var(--indigo); }
.cal-day.is-past { color: #B4ABCF; }
.cal-day.has-meeting {
  background: linear-gradient(135deg, color-mix(in srgb, var(--g1) 20%, white) 50%, color-mix(in srgb, var(--g2) 20%, white) 50%);
  color: color-mix(in srgb, var(--g1) 75%, black); font-weight: 800;
}
.cal-day.has-meeting.is-past { opacity: .55; }
.cal-day.is-today { box-shadow: inset 0 0 0 2px var(--gold); }
.cal-dots { display: flex; gap: 3px; height: 6px; }
.cal-dots i { width: 6px; height: 6px; border-radius: 50%; }
.cal-legend { list-style: none; margin: 4px 0 0; padding: 12px 0 0; border-top: 1px solid var(--line-light); display: flex; flex-direction: column; gap: 6px; font-size: 14px; }
.cal-legend li { display: flex; align-items: center; gap: 8px; }
.cal-legend li::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--g); flex-shrink: 0; }
.cal-legend a { color: var(--indigo); text-decoration: none; }
.cal-legend a:hover { color: var(--gold-text); }
.cal-up { padding-top: 12px; border-top: 1px solid var(--line-light); }
.cal-up h4 { font-family: var(--font-display); font-weight: 800; font-size: 14px; letter-spacing: .14em; text-transform: uppercase; color: var(--brown); margin-bottom: 8px; }
.cal-up-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.cal-up-list a { display: flex; flex-direction: column; padding: 8px 10px 8px 14px; border-radius: 10px; text-decoration: none; color: var(--indigo); position: relative; }
.cal-up-list a::before { content: ""; position: absolute; left: 0; top: 10px; bottom: 10px; width: 4px; border-radius: 4px; background: var(--g); }
.cal-up-list a:hover { background: var(--lavender); }
.cal-up-date { font-family: var(--font-display); font-weight: 700; font-size: 14px; }
.cal-up-name { font-size: 14px; color: var(--muted-on-light); }

.zoom-card { scroll-margin-top: 24px; }
.zoom-top { display: flex; align-items: center; gap: 12px; }
.zoom-logo {
  width: 52px; height: 52px; border-radius: 50%; flex-shrink: 0; display: grid; place-items: center;
  background: var(--g); color: var(--white); font-family: var(--font-display); font-weight: 800; font-size: 14px; letter-spacing: .02em;
}
.zoom-logo.is-img { background: var(--white); box-shadow: 0 0 0 2px var(--g); }
.zoom-logo.is-img img { width: 42px; height: auto; }
.next-meet { margin: 0; font-size: 15px; color: var(--indigo) !important; background: rgba(255,255,255,.6); border-radius: 10px; padding: 8px 12px; flex: none !important; }
.zoom-card:not(.is-cbc) .next-meet { background: var(--lavender); }
.next-meet strong { font-family: var(--font-display); font-weight: 700; }

/* Zoom group cards: softly tinted style (option 3) */
.zoom-card, .zoom-card.is-cbc {
  background: color-mix(in srgb, var(--g) 8%, white);
  border: 0; border-radius: 22px; padding: 26px 26px 22px; gap: 12px;
}
.zoom-top { display: flex; align-items: center; gap: 16px; }
.zoom-logo, .zoom-logo.is-img {
  width: 72px; height: 72px; border-radius: 18px; flex-shrink: 0;
  background: var(--white); box-shadow: 0 10px 24px -16px rgba(27,18,56,.5);
  display: grid; place-items: center; padding: 7px;
}
.zoom-logo img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
.zoom-logo.is-wide { padding: 6px 4px; }
.zoom-host { display: block; font-family: var(--font-display); font-weight: 700; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: color-mix(in srgb, var(--g) 75%, black); margin-bottom: 2px; }
.zoom-card h3 { font-size: 19px; }
.zoom-card .when li { display: flex; gap: 8px; align-items: baseline; }
.zoom-card .when li::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--g); flex-shrink: 0; transform: translateY(-1px); }
/* next meeting: a quiet line, not a box */
.next-meet, .zoom-card:not(.is-cbc) .next-meet {
  background: none; padding: 0 0 0 16px; border-radius: 0;
  font-size: 14px; color: var(--muted-on-light) !important;
}
.next-meet strong { font-family: var(--font-body); font-weight: 600; color: color-mix(in srgb, var(--g) 70%, black); }
.zoom-desc { color: var(--muted-on-light); font-size: 15.5px; }
.zoom-act { margin-top: auto; padding-top: 4px; }

/* ---------- Zoom page: "Coming up" beside the heading, legend under the calendar ---------- */
.zoom-intro .section-head { max-width: none; }
.zoom-intro .section-head > p { max-width: 40em; }
.zoom-intro .gold-note { margin-top: 10px; font-size: 15px; line-height: 1.55; color: var(--brown); }
.zoom-intro .cal-up { margin-top: 24px; padding: 22px 24px; border: 1px solid var(--line-light); border-top: 1px solid var(--line-light); border-radius: 22px; background: var(--white); }
.zoom-intro .cal-up h3 { font-family: var(--font-display); font-weight: 800; font-size: 13px; letter-spacing: .16em; text-transform: uppercase; color: var(--brown); margin: 0 0 8px; }
.zoom-intro .cal-up-list { gap: 0; }
.zoom-intro .cal-up-list li + li { border-top: 1px solid var(--line-light); }
.zoom-intro .cal-up-list a { display: grid; grid-template-columns: 84px 140px minmax(0, 1fr); gap: 14px; align-items: center; padding: 12px 4px; border-radius: 12px; }
.zoom-intro .cal-up-list a::before { content: none; }
.zoom-intro .cal-up-list a:hover { background: var(--lavender); }
.cal-up-logo { width: 84px; height: 48px; border-radius: 12px; background: color-mix(in srgb, var(--g) 12%, white); display: grid; place-items: center; padding: 6px 8px; }
.cal-up-logo img { display: block; width: auto; height: auto; max-width: 68px; max-height: 36px; }
.zoom-intro .cal-up-date b { display: block; font-family: var(--font-display); font-weight: 800; font-size: 15px; color: var(--indigo); }
.zoom-intro .cal-up-date small,
.zoom-intro .cal-up-name small { display: block; font-size: 14px; color: var(--muted-on-light); }
.zoom-intro .cal-up-name { font-size: 15.5px; color: var(--indigo); }
.zoom-intro .cal-up-date, .zoom-intro .cal-up-name { font-weight: 400; }
.cal-legend { gap: 10px; font-size: 15px; line-height: 1.35; }
.cal-legend li { align-items: flex-start; gap: 10px; }
.cal-legend li::before { width: 10px; height: 10px; margin-top: 5px; }
@media (max-width: 560px) {
  .zoom-intro .cal-up { padding: 16px; }
  .zoom-intro .cal-up-list a { grid-template-columns: 72px minmax(0, 1fr); gap: 4px 12px; }
  .cal-up-logo { width: 72px; grid-row: span 2; }
  .zoom-intro .cal-up-name { grid-column: 2; }
}

/* Zoom page: card logos sit right on the tinted card (no white square); calendar lines up with the bottom of "Coming up" */
.zoom-logo, .zoom-logo.is-img { width: 72px; height: 72px; padding: 0; background: none; box-shadow: none; border-radius: 0; }
.zoom-logo img, .zoom-logo.is-img img { display: block; width: auto; height: auto; max-width: 66px; max-height: 66px; }
.cal-up-logo img { max-width: 66px; max-height: 34px; }
.zoom-intro .meet-cal { align-self: end; }

/* Zoom calendar: full height (top of the heading to the bottom of "Coming up"), swatch legend */
.zoom-intro .meet-cal { align-self: stretch; }
@media (min-width: 861px) { .zoom-intro { grid-template-columns: minmax(0, 1fr) minmax(320px, 420px); } }
.zoom-intro .meet-cal { padding: 24px; }
.zoom-intro .cal-days { flex: 1; align-content: space-evenly; }
.cal-legend { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 16px; margin-top: 8px; padding-top: 20px; }
.cal-legend li::before { content: none; }
.cal-legend a { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.cal-legend .sw { width: 34px; height: 34px; border-radius: 9px; flex-shrink: 0; background: color-mix(in srgb, var(--g) 20%, white); display: grid; place-items: center; }
.cal-legend .sw::after { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--g); }
.cal-legend .nm, .cal-legend a:hover .nm { font-family: var(--font-display); font-weight: 700; font-size: 13.5px; color: var(--g); }
.cal-legend a:hover .nm { text-decoration: underline; }
@media (max-width: 860px) { .zoom-intro .cal-days { flex: none; } }

/* Zoom cards: "Next meeting" sits under the group name, same size on every card */
.zoom-card .zoom-top .next-meet { margin: 6px 0 0; padding: 0; background: none; font-size: 15px; line-height: 1.4; color: var(--muted-on-light) !important; }

/* inner page heroes: no breadcrumb, less space above the title */
.page-hero { padding-top: 40px; }

/* carousel: hovering pauses the progress bar where it is (it no longer jumps to full) */
.hero.is-held .dot-fill { animation-play-state: paused !important; }

/* stacked sections: the big statement keeps its natural height (no 560px gap) */
.stack > .statement-big { flex: none; }
/* dark call-to-action band: a calmer sentence size beside the button */
.cta-strip h2 { font-size: clamp(20px, 1.9vw, 24px); line-height: 1.35; max-width: 34em; flex: 1 1 420px; }

/* ---------- Volunteer board: "most needed" dark band, then the other roles ---------- */
.need-pill { --n: #2E7F8C; background: color-mix(in srgb, var(--n) 13%, white); color: color-mix(in srgb, var(--n) 80%, black); font-weight: 600; font-size: 13px; padding: 4px 11px; align-self: flex-start; }
.n-urgent { --n: #C2410C; } .n-high { --n: #D97706; } .n-active { --n: #6D5BD0; } .n-open { --n: #2E7F8C; }
.roles-sec { font-family: var(--font-display); font-weight: 800; font-size: 13px; letter-spacing: .16em; text-transform: uppercase; color: var(--brown); margin: 0 0 -26px; }
.role-band + .roles-sec { margin-top: 8px; }
.role-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.role-head .role-dept { line-height: 1.45; }
.role-view.btn-link { margin: 0 !important; font-size: 14.5px; flex-shrink: 0; white-space: nowrap; }
.role-band { list-style: none; margin: 0; padding: 8px; background: var(--indigo); color: var(--white); border-radius: 24px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.role-feat { position: relative; padding: 22px 22px 24px; display: flex; flex-direction: column; gap: 10px; border-radius: 18px; transition: background-color .2s; }
.role-feat + .role-feat { border-left: 1px solid #3A2E6B; }
.role-feat:hover { background: rgba(255,255,255,.05); }
.role-feat .role-dept { color: #B9B0D6; }
.role-feat .role-view { color: var(--gold); }
.role-feat .need-pill { background: rgba(255,255,255,.12); color: var(--gold); }
.role-feat h3 { font-weight: 800; font-size: 19px; line-height: 1.3; color: var(--white); }
.role-feat .role-desc { color: #D7D0EE; font-size: 15.5px; line-height: 1.55; }
.role-feat .role-meta { color: #D7D0EE; margin-top: auto; flex: none; padding-top: 4px; }
.role-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.role-card { gap: 10px; }
.role-card .role-meta { flex: none; }
@media (max-width: 1000px) { .role-grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 860px) {
  .role-band { grid-template-columns: 1fr; }
  .role-feat + .role-feat { border-left: 0; border-top: 1px solid #3A2E6B; border-radius: 0; }
}
@media (max-width: 640px) { .role-grid-3 { grid-template-columns: 1fr; } }

/* Volunteer "More open roles" tiles: need + link on top, name, team, then a tinted time bar */
.role-card.role-tile { padding: 0; gap: 0; overflow: hidden; }
.role-tile .tile-body { padding: 22px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.role-tile .tile-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; min-height: 28px; }
.role-tile .tag { align-self: center; }
.role-tile h3 { margin: 0; }
.role-tile .tile-bar { margin: 0; display: flex; align-items: center; gap: 8px; padding: 14px 22px; font-size: 14.5px; color: var(--muted-on-light); background: color-mix(in srgb, var(--n) 7%, white); border-top: 1px solid color-mix(in srgb, var(--n) 18%, white); }
.role-tile .tile-bar .ico { flex-shrink: 0; }

/* Volunteer page: a divider between the roles and the application form */
.section:has(+ #apply) { padding-bottom: 72px; }
#apply::before { content: ""; display: block; width: calc(min(100%, var(--max)) - 48px); height: 1px; margin: 0 auto 72px; background: #DCD3EE; }
@media (max-width: 860px) {
  .section:has(+ #apply) { padding-bottom: 48px; }
  #apply::before { margin-bottom: 48px; }
}

/* ---------- Our Mission & Story: interview series tiles (tagline on the tile, YouTube badge opens the playlist) ---------- */
.series-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px 48px; align-items: end; margin-bottom: 40px; }
.series-head h2 { font-weight: 800; font-size: clamp(30px, 3vw, 40px); line-height: 1.15; margin-top: 10px; }
.series-head p { color: var(--muted-on-dark); margin-top: 12px; max-width: 34em; font-size: 18px; }
.series-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.series-item { display: flex; flex-direction: column; gap: 12px; }
.series-item > p { color: var(--muted-on-dark); font-size: 16.5px; line-height: 1.55; margin-bottom: 6px; }
.series-item .yt-link { margin-top: auto; align-self: flex-start; }
.series-title { font-family: var(--font-display); font-weight: 800; font-size: 20px; color: var(--gold); line-height: 1.2; }
.series-thumb { position: relative; aspect-ratio: 4 / 3; border-radius: 18px; overflow: hidden; display: flex; align-items: flex-end; padding: 22px; text-decoration: none; color: var(--white); background: radial-gradient(120% 90% at 20% 10%, #4A3696 0%, #24174F 55%, #140D2B 100%); transition: transform .2s, box-shadow .2s; }
.series-thumb.tone-1 { background: radial-gradient(120% 90% at 80% 10%, #8C5E1B 0%, #3E2A4F 55%, #140D2B 100%); }
.series-thumb.tone-2 { background: radial-gradient(120% 90% at 50% 0%, #2E7F8C 0%, #23305A 55%, #140D2B 100%); }
.series-thumb::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 30%, rgba(20,13,43,.65)); }
.series-thumb:hover { transform: translateY(-3px); box-shadow: 0 22px 40px -26px rgba(0,0,0,.8); }
.series-thumb:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.series-quote { position: relative; z-index: 1; font-family: var(--font-quote); font-style: italic; font-weight: 500; font-size: 26px; line-height: 1.25; max-width: 12em; }
.series-yt { position: absolute; top: 18px; right: 18px; z-index: 1; display: block; line-height: 0; filter: drop-shadow(0 6px 12px rgba(0,0,0,.35)); transition: transform .2s; }
.series-thumb:hover .series-yt { transform: scale(1.08); }
@media (max-width: 960px) {
  .series-head { grid-template-columns: 1fr; }
  .series-head .btn { justify-self: start; }
  .series-grid { grid-template-columns: 1fr; }
  .series-thumb { aspect-ratio: 16 / 9; }
}

/* ---------- Our Mission & Story: layout B (honeycomb) ---------- */
.story-split { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 48px; align-items: center; }
.story-quote { margin: 0; padding: 8px 0 8px 28px; border-left: 4px solid var(--gold); }
.story-quote p { font-family: var(--font-quote); font-style: italic; font-weight: 500; font-size: clamp(26px, 2.6vw, 34px); line-height: 1.3; color: var(--indigo); }
.advocacy { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 40px 56px; align-items: center; }
.advocacy-text h2 { font-weight: 800; font-size: clamp(26px, 2.8vw, 36px); line-height: 1.18; margin: 10px 0 14px; }
.advocacy-text p { color: var(--muted-on-light); font-size: 17px; line-height: 1.65; }
.comb-legend { display: flex; flex-wrap: wrap; gap: 10px 18px; margin-top: 18px; }
.comb-legend .lg { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-display); font-weight: 700; font-size: 13.5px; color: var(--indigo); }
.comb-legend .lg::before { content: ""; width: 16px; height: 18px; clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); }
.comb-legend .lg-pat::before { background: var(--gold); }
.comb-legend .lg-doc::before { background: var(--indigo); }
.comb { --w: 176px; --h: calc(var(--w) * 1.1547); --g: 8px; display: flex; flex-direction: column; align-items: center; }
.comb-row { list-style: none; margin: 0; padding: 0; display: flex; gap: var(--g); }
.comb-row + .comb-row { margin-top: calc(var(--h) * -0.25 + var(--g) * .9); }
.hex { width: var(--w); height: var(--h); clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); display: grid; place-items: center; text-align: center; padding: 0 18px; }
.hex-in { display: flex; flex-direction: column; gap: 6px; }
.hex b { font-family: var(--font-display); font-weight: 800; font-size: 14.5px; line-height: 1.25; }
.hex span { font-size: 12.5px; line-height: 1.35; }
.h-pat { background: var(--gold); color: var(--indigo); } .h-pat span { color: #4A3410; }
.h-doc { background: var(--indigo); color: var(--white); } .h-doc span { color: #D7D0EE; }
.h-core { background: var(--white); color: var(--indigo); box-shadow: inset 0 0 0 3px var(--gold); } .h-core span { color: var(--muted-on-light); } .h-core b { font-size: 17px; }
.h-val { background: var(--white); color: var(--indigo); } .h-val span { color: var(--muted-on-light); }
.comb-values { --w: 150px; padding-right: calc(var(--w) / 2); }
.comb-values .comb-row:nth-child(2) { transform: translateX(calc(var(--w) / 2 + var(--g) / 2)); }
.comb-values .comb-row:first-child .h-val:nth-child(2) { background: var(--indigo); color: var(--white); }
.comb-values .comb-row:first-child .h-val:nth-child(2) span { color: #D7D0EE; }
.comb-values .comb-row:nth-child(2) .h-val:nth-child(2) { background: var(--gold); }
.commit { max-width: 860px; text-align: center; display: flex; flex-direction: column; align-items: center; }
.commit h2 { font-weight: 800; font-size: clamp(26px, 2.8vw, 36px); line-height: 1.18; margin: 10px 0 14px; text-wrap: balance; }
.commit > p { color: var(--muted-on-light); font-size: 17px; line-height: 1.65; max-width: 40em; }
.commit .comb { margin: 36px 0 28px; }
.commit h3 { font-weight: 800; font-size: 20px; margin-bottom: 8px; }
.series-num { font-family: var(--font-display); font-weight: 800; font-size: 11.5px; letter-spacing: .16em; text-transform: uppercase; color: #B9B0D6; margin-bottom: -6px; }
.series-item > p { font-size: 15.5px; }
.gov-strip { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 18px 40px; align-items: center; padding: 30px 34px; border-radius: 22px; background: var(--sand); }
.gov-strip h3 { font-weight: 800; font-size: 20px; margin: 6px 0; }
.gov-strip p { color: var(--muted-on-light); font-size: 16px; line-height: 1.6; max-width: 46em; }
@media (max-width: 1000px) {
  .story-split, .advocacy, .gov-strip { grid-template-columns: 1fr; }
  .gov-strip .btn { justify-self: start; }
}
@media (max-width: 640px) {
  .comb { --w: 96px; } .comb-values { --w: 92px; }
  .hex { padding: 0 8px; } .hex b { font-size: 11.5px; } .hex span { display: none; }
  .h-core b { font-size: 13px; }
}

/* "Both sides" hexagon: a full gold outline (the inset shadow was cut off on the angled edges) */
.h-core { position: relative; background: var(--gold-deep); box-shadow: none; }
.h-core::before { content: ""; position: absolute; inset: 4px; clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); background: var(--white); }
.h-core .hex-in { position: relative; z-index: 1; }

/* Dual-Advocacy (option 2): centered heading, patients left, honeycomb center, clinicians right */
.adv-head { text-align: center; max-width: 780px; margin: 0 auto 36px; }
.adv-head h2 { font-weight: 800; font-size: clamp(26px, 2.8vw, 36px); line-height: 1.18; margin: 10px 0 14px; text-wrap: balance; }
.adv-head p { color: var(--muted-on-light); font-size: 17px; line-height: 1.65; }
.adv-mid { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 32px; align-items: center; }
.adv-side h3 { font-weight: 800; font-size: 20px; line-height: 1.3; margin-bottom: 8px; }
.adv-side > p { color: var(--muted-on-light); font-size: 15.5px; line-height: 1.6; }
.adv-list { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 12px; }
.adv-list li { display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 2px 10px; }
.adv-list li::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--gold-deep); margin-top: 7px; grid-row: span 2; }
.adv-list b { font-family: var(--font-display); font-weight: 700; font-size: 15.5px; color: var(--indigo); }
.adv-list span { color: var(--muted-on-light); font-size: 15px; }
.adv-side.is-pat { text-align: right; }
.adv-side.is-pat .adv-list li { grid-template-columns: minmax(0, 1fr) 18px; }
.adv-side.is-pat .adv-list li::before { grid-column: 2; grid-row: 1 / span 2; }
.adv-side.is-pat .adv-list b, .adv-side.is-pat .adv-list span { grid-column: 1; }
.adv-side.is-doc .adv-list li::before { background: var(--indigo); }
.comb-names { --w: 150px; }
.comb-names .hex span { display: none; }
@media (max-width: 1000px) {
  .adv-mid { grid-template-columns: 1fr; }
  .adv-side.is-pat { text-align: left; }
  .adv-side.is-pat .adv-list li { grid-template-columns: 18px minmax(0, 1fr); }
  .adv-side.is-pat .adv-list li::before { grid-column: 1; }
  .adv-side.is-pat .adv-list b, .adv-side.is-pat .adv-list span { grid-column: 2; }
  .comb-names { order: -1; }
}
@media (max-width: 640px) { .comb-names { --w: 96px; } }

/* Our Commitment: four promises as connected steps */
.cs-head { text-align: center; max-width: 820px; margin: 0 auto 48px; }
.cs-head h2 { font-weight: 800; font-size: clamp(26px, 2.8vw, 36px); line-height: 1.18; margin: 10px 0 14px; text-wrap: balance; }
.cs-head p { color: var(--muted-on-light); font-size: 17px; line-height: 1.65; }
.cs-line { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; position: relative; text-align: center; }
.cs-line::before { content: ""; position: absolute; top: 24px; left: 12.5%; right: 12.5%; height: 2px; background: var(--gold); }
.cs-line li { position: relative; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.cs-dot { width: 48px; height: 48px; border-radius: 50%; background: var(--indigo); color: var(--gold); display: grid; place-items: center; font-family: var(--font-display); font-weight: 800; font-size: 18px; box-shadow: 0 0 0 6px var(--lavender); margin-bottom: 6px; }
.cs-line h3 { font-weight: 800; font-size: 19px; line-height: 1.3; }
.cs-line p { color: var(--muted-on-light); font-size: 15.5px; line-height: 1.6; max-width: 16em; }
.cs-res { margin: 48px auto 0; max-width: 860px; text-align: center; padding-top: 32px; border-top: 1px solid #DCD3EE; }
.cs-res h3 { font-weight: 800; font-size: 20px; margin-bottom: 8px; }
.cs-res p { color: var(--muted-on-light); font-size: 17px; line-height: 1.65; }
@media (max-width: 860px) {
  .cs-line { grid-template-columns: 1fr; gap: 28px; text-align: left; }
  .cs-line::before { top: 24px; bottom: 24px; left: 23px; right: auto; width: 2px; height: auto; }
  .cs-line li { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 2px 18px; align-items: start; }
  .cs-dot { grid-row: span 2; margin: 0; }
  .cs-line h3 { padding-top: 10px; }
  .cs-res { text-align: left; }
}

/* ---------- Header: gold login icon (B1), brushed-gold border (E1), frosted on scroll (E5) ---------- */
.nav-login { display: flex; align-items: center; }
.lg-sep { width: 1px; height: 26px; background: rgba(226,181,101,.35); margin: 0 4px 0 6px; flex-shrink: 0; }
.lg-quiet { width: 44px; height: 44px; border: 0; border-radius: 999px; background: none; display: inline-flex; align-items: center; justify-content: center; gap: 10px; color: var(--gold); cursor: pointer; flex-shrink: 0; transition: background-color .15s, color .15s; }
.lg-quiet:hover { background: rgba(226,181,101,.14); color: var(--gold-light); }
.lg-quiet:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.lg-text { display: none; }
.main-nav { flex-wrap: nowrap; }
.nav-trigger { white-space: nowrap; }
.header-row { border: 1.5px solid transparent; background: linear-gradient(var(--ink), var(--ink)) padding-box, linear-gradient(105deg, #8C5E1B, #E9C688 22%, #C8902F 45%, #F3DDA8 62%, #A8721F 82%, #E2B565) border-box; }
.site-header { position: sticky; top: 0; z-index: 30; transition: background-color .3s ease; }
.header-row { transition: transform .3s ease, box-shadow .3s ease, background .3s ease; transform-origin: top center; }
.site-header.is-scrolled { background: transparent; }
.site-header.is-scrolled .header-row {
  background: linear-gradient(rgba(27,18,56,.74), rgba(27,18,56,.74)) padding-box, linear-gradient(105deg, #8C5E1B, #E9C688 22%, #C8902F 45%, #F3DDA8 62%, #A8721F 82%, #E2B565) border-box;
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  box-shadow: 0 16px 34px -20px rgba(0,0,0,.9); transform: translateY(-8px) scale(.97);
}
@media (prefers-reduced-motion: reduce) { .site-header, .header-row { transition: none; } }
@media (max-width: 900px) {
  .main-nav { flex-wrap: wrap; }
  .nav-login { border-top: 1px solid #2A1E55; padding-top: 4px; }
  .nav-login .lg-sep { display: none; }
  .nav-login .lg-quiet { width: 100%; height: auto; justify-content: flex-start; padding: 12px 10px; border-radius: 12px; font-family: var(--font-display); font-weight: 600; font-size: 15px; }
  .nav-login .lg-text { display: inline; }
}

/* ---------- Member login pop-up (design preview, not connected) ---------- */
dialog.login { width: min(820px, calc(100% - 32px)); padding: 0; background: var(--white); overflow: hidden auto; }
dialog.login[open] { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 0; }
.login-side { background: var(--indigo); color: var(--white); padding: 38px 32px; display: flex; flex-direction: column; gap: 10px; }
.login-emblem { width: 88px; height: 88px; border-radius: 50%; background: var(--white); box-shadow: 0 0 0 3px var(--gold); display: grid; place-items: center; margin-bottom: 8px; }
.login-emblem img { width: 72px; height: auto; }
.login-side h2 { font-weight: 800; font-size: 30px; line-height: 1.2; color: var(--white); }
.login-side p { color: #D7D0EE; font-size: 16px; line-height: 1.6; }
.login-side ul { list-style: none; margin: 10px 0 0; padding: 14px 0 0; border-top: 1px solid #3A2E6B; display: grid; gap: 8px; color: #D7D0EE; font-size: 15px; }
.login-side li::before { content: "\2022"; color: var(--gold); margin-right: 8px; }
.login-form { padding: 40px 32px 30px; display: flex; flex-direction: column; gap: 14px; }
.login-form h3 { font-weight: 800; font-size: 22px; margin-bottom: 2px; padding-right: 44px; }
.lf { display: flex; flex-direction: column; gap: 6px; }
.lf label { font-family: var(--font-display); font-weight: 700; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--indigo); }
.lf input, .lf select { font: inherit; font-size: 16px; padding: 12px 14px; border: 1px solid #D9D1EC; border-radius: 12px; background: #FBFAFE; color: var(--indigo); }
.lf input:focus, .lf select:focus { outline: 3px solid rgba(226,181,101,.45); border-color: var(--gold-deep); }
.login-submit { width: 100%; justify-content: center; margin-top: 4px; }
.login-note { margin: 0; font-size: 14px; color: var(--brown); background: var(--honey); border-radius: 10px; padding: 10px 12px; }
.login-links { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; font-size: 14px; color: var(--muted-on-light); }
.login-links a { color: var(--brown); font-weight: 600; }
dialog.login .bio-close { background: var(--lavender); }
@media (max-width: 700px) {
  dialog.login[open] { grid-template-columns: 1fr; }
  .login-side { padding: 28px 24px; }
  .login-side ul { display: none; }
  .login-form { padding: 26px 24px; }
  dialog.login .bio-close { background: rgba(255,255,255,.15); color: var(--white); }
}

/* ---------- Home: Guided support (G2c, connected steps) ---------- */
.guide { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.2fr); gap: 32px 64px; align-items: center; }
.guide-head h2 { font-weight: 800; font-size: clamp(30px, 3.2vw, 44px); line-height: 1.12; margin-top: 10px; color: var(--white); }
.guide-head p { color: var(--muted-on-dark); font-size: 18px; line-height: 1.6; margin-top: 14px; max-width: 30em; }
.guide-head .btn { margin-top: 24px; }
.guide-steps { list-style: none; margin: 0; padding: 0; position: relative; }
.guide-steps::before { content: ""; position: absolute; left: 54px; top: 54px; bottom: 54px; width: 2px; background: linear-gradient(var(--gold-deep), var(--gold-light), var(--gold-deep)); }
.guide-step { display: grid; grid-template-columns: 64px minmax(0, 1fr) 44px; gap: 20px; align-items: center; padding: 26px 22px; border-radius: 22px; color: inherit; text-decoration: none; transition: background-color .2s; }
.guide-step:hover { background: rgba(255,255,255,.04); }
.guide-ic { width: 64px; height: 64px; border-radius: 50%; background: var(--gold); color: var(--indigo); display: grid; place-items: center; position: relative; z-index: 1; box-shadow: 0 0 0 6px var(--ink); }
.guide-mid { display: flex; flex-direction: column; gap: 4px; }
.guide-label { font-family: var(--font-display); font-weight: 800; font-size: 11.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); }
.guide-mid b { font-family: var(--font-display); font-weight: 800; font-size: 19px; color: var(--white); }
.guide-mid > span:last-child { color: var(--muted-on-dark); font-size: 15.5px; line-height: 1.55; }
.guide-arr { width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(226,181,101,.5); color: var(--gold); display: grid; place-items: center; font-weight: 700; transition: background-color .2s, color .2s, transform .2s; }
.guide-step:hover .guide-arr { background: var(--gold); color: var(--indigo); transform: translateX(3px); }
@media (max-width: 960px) { .guide { grid-template-columns: 1fr; } }
@media (max-width: 560px) {
  .guide-step { grid-template-columns: 52px minmax(0, 1fr); padding: 20px 8px; gap: 16px; }
  .guide-ic { width: 52px; height: 52px; }
  .guide-arr { display: none; }
  .guide-steps::before { left: 33px; top: 46px; bottom: 46px; }
}

/* ---------- Home: Find your way in (option 5, "pick what sounds like you") ---------- */
.way-head { text-align: center; margin-bottom: 36px; }
.way-head h2 { font-weight: 800; font-size: clamp(30px, 3.2vw, 44px); line-height: 1.12; margin-top: 10px; }
.way-head p { color: var(--muted-on-light); font-size: 18px; margin-top: 10px; }
.way-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.way { position: relative; overflow: hidden; border-radius: 26px; padding: 30px; display: flex; flex-direction: column; gap: 10px; min-height: 300px; text-decoration: none; color: var(--indigo); transition: transform .2s, box-shadow .2s; }
.way:hover { transform: translateY(-4px); box-shadow: 0 24px 40px -28px rgba(27,18,56,.6); }
.way-0 { background: var(--white); border: 1px solid var(--line-light); }
.way-1 { background: var(--gold); }
.way-2 { background: var(--indigo); color: var(--white); }
.way-who { font-family: var(--font-quote); font-style: italic; font-size: 24px; line-height: 1.25; margin-bottom: 4px; }
.way-0 .way-who { color: var(--gold-text); } .way-2 .way-who { color: var(--gold); }
.way-title { font-family: var(--font-display); font-weight: 800; font-size: 18px; line-height: 1.3; }
.way-text { color: var(--muted-on-light); font-size: 16px; line-height: 1.6; position: relative; z-index: 1; }
.way-1 .way-text { color: #4A3410; } .way-2 .way-text { color: #D7D0EE; }
.way-pill { margin-top: auto; align-self: flex-start; padding: 10px 18px; border-radius: 999px; font-family: var(--font-display); font-weight: 700; font-size: 14px; background: var(--indigo); color: var(--white); position: relative; z-index: 1; }
.way-2 .way-pill { background: var(--gold); color: var(--indigo); }
.way-pill .arrow { display: inline-block; transition: transform .2s; }
.way:hover .way-pill .arrow { transform: translateX(4px); }
.way-mark { position: absolute; right: -18px; bottom: -18px; opacity: .1; line-height: 0; }
.way-1 .way-mark { opacity: .18; } .way-2 .way-mark { color: var(--gold); opacity: .16; }
@media (max-width: 960px) { .way-grid { grid-template-columns: 1fr; } .way { min-height: 0; } }

/* Mid-size screens: keep "CRAZY BY CHIARI" visible from 980px up with a slightly smaller logo and menu;
   only the narrow 901–979px range falls back to the emblem alone */
@media (max-width: 1199px) and (min-width: 980px) {
  .site-header .brand-word { display: inline; font-size: 16px; }
  .site-header .brand { gap: 9px; }
  .site-header .brand-disc { width: 44px; height: 44px; }
  .site-header .brand-disc img { width: 37px; }
  .main-nav { gap: 2px; }
  .nav-trigger { padding: 9px 9px; font-size: 13.5px; }
  .lg-sep { margin: 0 2px 0 4px; }
}

/* =========================================================
   Floating side menu (G5), wider than 900px.
   Phones keep .site-header. Folds into the emblem on scroll.
   ========================================================= */
.site-rail { display: none; }
@media (min-width: 901px) {
  :root {
    --rail-clear: 124px; /* 22px gap + 78px pill + 24px breathing room */
    --rail-plum: linear-gradient(172deg, #3B2742 0%, #574259 16%, #3E2C47 34%, #5C4862 52%, #402D48 70%, #52405A 88%, #3C2944 100%);
    --rail-plum-wide: linear-gradient(100deg, #3B2742, #574259 30%, #3E2C47 60%, #52405A);
    --rail-gold: linear-gradient(160deg, #8C5E1B, #E9C688 22%, #C8902F 45%, #F3DDA8 62%, #A8721F 82%, #E2B565);
  }
  .site-header { display: none; }
  /* keep page content clear of the menu; on wide screens the normal side margin already is */
  .wrap { padding-left: max(24px, calc(var(--rail-clear) - (100vw - var(--max)) / 2)); }

  .site-rail { display: block; position: fixed; left: 22px; top: var(--rail-top, 22px); z-index: 40; }
  .rail-pill {
    width: 78px; max-height: var(--rail-h, 720px); overflow: hidden;
    display: flex; flex-direction: column; padding: 7px; border-radius: 39px;
    border: 1.5px solid transparent;
    background: var(--rail-plum) padding-box, var(--rail-gold) border-box;
    box-shadow: 0 18px 36px -18px rgba(0,0,0,.85), inset 0 1px 0 rgba(255,255,255,.08);
    transition: width .35s ease, max-height .4s ease, border-radius .35s ease, padding .35s ease, box-shadow .2s ease;
  }
  .rail-disc { align-self: center; flex-shrink: 0; width: 53px; height: 53px; border-radius: 50%; background: #fff; display: grid; place-items: center; }
  .rail-disc img { width: 44px; height: auto; }
  .rail-disc:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
  .rail-nav { display: flex; flex-direction: column; gap: 2px; margin-top: 14px; }
  .rail-item {
    appearance: none; border: 0; background: none; cursor: pointer;
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px;
    padding: 15px 0; border-radius: 16px;
    font: 600 12px/1.2 var(--font-display); color: #F2E9F0; text-align: center;
    transition: background-color .15s ease, color .15s ease;
  }
  .rail-item:hover, .rail-item[aria-expanded="true"] { background: rgba(255,255,255,.08); color: var(--gold-light); }
  .rail-item.is-current, .rail-item.is-current:hover, .rail-item.is-current[aria-expanded="true"] { background: var(--gold); color: var(--ink); }
  .rail-item:focus-visible { outline: 2px solid var(--gold); outline-offset: -2px; }
  .rail-line { height: 1px; background: rgba(226,181,101,.45); margin: 8px 10px; }
  .rail-login { padding: 10px 0; color: var(--gold); }

  .rail-word {
    position: absolute; left: 88px; top: 15px; white-space: nowrap; text-decoration: none;
    padding: 10px 18px; border-radius: 999px;
    font: 800 17px/1 var(--font-display); letter-spacing: .04em; color: var(--white);
    border: 1.5px solid transparent;
    background: var(--rail-plum-wide) padding-box, var(--rail-gold) border-box;
    box-shadow: 0 14px 30px -18px rgba(0,0,0,.9);
    transition: opacity .25s ease, transform .25s ease;
  }
  .rail-word:hover { color: var(--white); }

  .rail-fly {
    position: absolute; left: 90px; top: 0; width: 330px; display: none;
    background: var(--ink-raised); border: 1.5px solid rgba(226,181,101,.55); border-radius: 22px;
    padding: 18px 12px 12px; box-shadow: 0 24px 50px -16px rgba(0,0,0,.7);
  }
  .rail-fly.is-open { display: block; }
  .rail-fly .eyebrow { display: block; padding: 0 14px 10px; color: var(--gold); }
  .rail-fly ul { list-style: none; margin: 0; padding: 0; }
  .rail-fly a { display: block; padding: 11px 14px; border-radius: 14px; text-decoration: none; }
  .rail-fly a:hover, .rail-fly a:focus-visible { background: rgba(255,255,255,.04); box-shadow: inset 0 0 0 1.5px var(--gold); outline: 0; }
  .rail-fly b { display: block; font: 600 15px/1.3 var(--font-display); color: var(--white); }
  .rail-fly small { display: block; margin-top: 2px; font-size: 13.5px; color: var(--muted-on-dark); }
  .rail-fly a[aria-current="page"] b { color: var(--gold); }
  .rail-fly .rail-sep { border-top: 1px solid var(--ink-line); margin-top: 6px; padding-top: 6px; }

  /* fold order: opening grows the pill first, then the names fade in */
  .rail-nav, .rail-line, .rail-login { transition: opacity .2s ease .28s; }
  .site-rail.is-collapsed .rail-pill { width: 62px; max-height: 62px; padding: 3px; border-radius: 999px; transition-delay: .1s; }
  .site-rail.is-collapsed .rail-nav, .site-rail.is-collapsed .rail-line, .site-rail.is-collapsed .rail-login { opacity: 0; pointer-events: none; transition: opacity .12s ease 0s; }
  .site-rail.is-collapsed .rail-word { opacity: 0; transform: translateX(-10px); pointer-events: none; }
  .site-rail.is-collapsed .rail-pill:hover { box-shadow: 0 0 0 3px rgba(226,181,101,.3), 0 18px 36px -18px rgba(0,0,0,.85); }
}
/* short laptop screens: tighten so the whole menu fits */
@media (min-width: 901px) and (max-height: 640px) {
  .rail-nav { margin-top: 8px; }
  .rail-item { padding: 10px 0; }
}
@media (prefers-reduced-motion: reduce) {
  .rail-pill, .rail-nav, .rail-line, .rail-login, .rail-word { transition: none !important; }
}

@media (min-width: 901px) {
  .page-hero { padding-top: 96px; }
}

/* =========================================================
   Sub-page tabs in the top right corner (S1e), wider than 900px.
   main.js adds .tabs-corner to <html> only when the bar fits
   beside the CRAZY BY CHIARI pill; otherwise the band stays under the title.
   ========================================================= */
@media (min-width: 901px) {
  .tabs-corner .about-tabs {
    position: absolute; top: var(--tabs-top, 0px); right: 0; z-index: 35;
    background: var(--ink); /* same as the page title area */
    border-bottom: 1px solid #33275F;
    transition: opacity .2s ease, filter .2s ease;
  }
  .tabs-corner .about-tabs ul.wrap { max-width: none; margin: 0; padding: 0 24px 0 10px; }
  /* the haze: fade back while a side-menu panel is open */
  .tabs-corner:has(.rail-fly.is-open) .about-tabs { opacity: .35; filter: saturate(.6); }
}
@media (prefers-reduced-motion: reduce) {
  .about-tabs { transition: none !important; }
}

/* =========================================================
   Side menu: cut corners (shape 4), wider than 900px.
   ::before = gold outline, ::after = inside (1.5px smaller), both clipped.
   The old 1.5px border is replaced by 1.5px of extra padding.
   ========================================================= */
@media (min-width: 901px) {
  .rail-pill, .rail-word, .rail-fly {
    isolation: isolate; border: 0; background: none; box-shadow: none; border-radius: 0;
  }
  .rail-pill { --k: 16px; position: relative; padding: 8.5px; filter: drop-shadow(0 14px 16px rgba(0,0,0,.55)); }
  .site-rail.is-collapsed .rail-pill { padding: 4.5px; border-radius: 0; }
  .rail-word { --k: 10px; padding: 11.5px 19.5px; filter: drop-shadow(0 12px 14px rgba(0,0,0,.6)); }
  .rail-fly { --k: 16px; padding: 19.5px 13.5px 13.5px; filter: drop-shadow(0 20px 24px rgba(0,0,0,.6)); }

  .rail-pill::before, .rail-pill::after,
  .rail-word::before, .rail-word::after,
  .rail-fly::before, .rail-fly::after {
    content: ""; position: absolute; z-index: -1; pointer-events: none;
    clip-path: polygon(var(--c) 0, calc(100% - var(--c)) 0, 100% var(--c), 100% calc(100% - var(--c)),
                       calc(100% - var(--c)) 100%, var(--c) 100%, 0 calc(100% - var(--c)), 0 var(--c));
  }
  .rail-pill::before, .rail-word::before, .rail-fly::before { inset: 0; --c: var(--k); background: var(--rail-gold); }
  .rail-pill::after, .rail-word::after, .rail-fly::after { inset: 1.5px; --c: calc(var(--k) - .6px); }
  .rail-pill::after { background: var(--rail-plum); }
  .rail-word::after { background: var(--rail-plum-wide); }
  .rail-fly::before { background: rgba(226,181,101,.55); }
  .rail-fly::after { background: var(--ink-raised); }

  /* folded badge: soft gold glow on hover instead of the old ring */
  .site-rail.is-collapsed .rail-pill:hover { box-shadow: none; filter: drop-shadow(0 0 4px rgba(226,181,101,.55)) drop-shadow(0 14px 16px rgba(0,0,0,.55)); }

  /* item and link fills with small cut corners: one clipped layer behind the text (--fill sets the colour) */
  .site-rail .rail-item, .site-rail .rail-item:hover, .site-rail .rail-item[aria-expanded="true"],
  .site-rail .rail-item.is-current, .site-rail .rail-item.is-current:hover, .site-rail .rail-item.is-current[aria-expanded="true"],
  .site-rail .rail-fly a {
    border-radius: 0; background: none; position: relative; isolation: isolate;
  }
  .site-rail .rail-item::before, .site-rail .rail-fly a::before {
    content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
    background: var(--fill, transparent);
    clip-path: polygon(7px 0, calc(100% - 7px) 0, 100% 7px, 100% calc(100% - 7px), calc(100% - 7px) 100%, 7px 100%, 0 calc(100% - 7px), 0 7px);
  }
  .site-rail .rail-item:hover, .site-rail .rail-item[aria-expanded="true"] { --fill: rgba(255,255,255,.08); }
  .site-rail .rail-item.is-current, .site-rail .rail-item.is-current:hover, .site-rail .rail-item.is-current[aria-expanded="true"] { --fill: var(--gold); }
  .site-rail .rail-fly a:hover, .site-rail .rail-fly a:focus-visible { --fill: rgba(226,181,101,.14); box-shadow: none; }
  .site-rail .rail-fly a:focus-visible { outline: 1.5px solid var(--gold); outline-offset: -1.5px; }
}

/* Footer: disclaimer above the logo row, centred in a soft grey; smaller wordmark */
.footer-disclaimer { max-width: 920px; margin: 0 auto; padding: 26px max(24px, env(safe-area-inset-left, 0px)) 22px; border-bottom: 1px solid rgba(185,176,214,.18); text-align: center; }
.footer-disclaimer p { margin: 0; font-size: 13.5px; line-height: 1.65; color: #A39CBD; }
.footer-disclaimer b { font-weight: 700; color: #B4ADCB; letter-spacing: .02em; }
.footer-brand .brand-word { font-size: 15px; }
.footer-row { padding-block: 22px 24px; }

/* Footer social links: gold icon with its name underneath */
.footer-social { gap: 6px 10px; align-items: flex-start; }
.footer-social .so-lab { display: inline-flex; flex-direction: column; align-items: center; gap: 6px; padding: 4px 10px; color: var(--gold); text-decoration: none; transition: transform .15s ease; }
.footer-social .so-lab svg { width: 20px; height: 20px; }
.footer-social .so-lab span { font: 600 12.5px var(--font-display); color: #B9B0D6; transition: color .15s ease; }
.footer-social .so-lab:hover { transform: translateY(-2px); color: var(--gold-light); }
.footer-social .so-lab:hover span { color: var(--gold-light); }
@media (max-width: 480px) {
  .footer-social { gap: 6px 2px; width: 100%; justify-content: space-between; }
  .footer-social .so-lab { padding: 4px 3px; }
  .footer-social .so-lab span { font-size: 12px; }
}

/* Slideshow controls: a gold ombre line along the bottom edge shows when the next slide comes;
   small dots jump between slides; a clear Pause button sits on the right */
.controls-line .carousel-controls {
  left: max(24px, calc((100% - var(--max)) / 2 + 24px));
  right: max(24px, calc((100% - var(--max)) / 2 + 24px));
  bottom: 26px; justify-content: flex-end;
  --ctrl-ring: rgba(226,181,101,.65);
}
.hero.on-light.controls-line .carousel-controls { --ctrl-ring: rgba(36,23,79,.4); }
.controls-line .counter, .controls-line .ctrl-arrow { display: none; }
.controls-line .dots { gap: 2px; }
.controls-line .dot { width: 24px; height: 32px; }
.controls-line .dot-fill {
  position: absolute; left: 50%; top: 50%; width: 9px; height: 9px; border-radius: 50%;
  transform: translate(-50%, -50%); background: var(--ctrl-soft); transition: background-color .3s ease, transform .3s ease;
}
.controls-line .dot.is-active .dot-fill { background: var(--ctrl-active); transform: translate(-50%, -50%) scale(1.3); }
.controls-line .dot:focus-visible { outline-offset: -2px; border-radius: 50%; }
.controls-line .ctrl-pause {
  width: 36px; height: 36px; padding: 0; border-radius: 50%; opacity: .8;
  display: grid; place-items: center; box-shadow: none; margin-left: 2px; margin-right: -9px;
}
.controls-line .ctrl-pause:hover { opacity: 1; background: rgba(226,181,101,.16); }
.controls-line .ctrl-pause svg { width: 14px; height: 14px; }
.controls-line .ctrl-label { display: none; }
.hero-line { display: none; }
.controls-line .hero-line { display: block; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: rgba(255,255,255,.12); z-index: 3; pointer-events: none; }
.hero.on-light.controls-line .hero-line { background: rgba(36,23,79,.12); }
.hero-line i {
  display: block; height: 100%; width: 0;
  background: linear-gradient(90deg, #8C5E1B 0%, #C8902F 30%, #E2B565 62%, #F3DDA8 100%) left / 100vw 100% no-repeat;
}
.controls-line.is-playing .hero-line i { animation: line-fill var(--interval) linear forwards; }
.hero.is-held .hero-line i { animation-play-state: paused !important; }
@keyframes line-fill { from { width: 0; } to { width: 100%; } }
@media (prefers-reduced-motion: reduce) { .controls-line.is-playing .hero-line i { animation: none; width: 100%; } }

/* =========================================================
   Mission page: dark chapter band with a labelled line, one angled-corner frame
   ========================================================= */
.ch-band { background: var(--ink); clip-path: polygon(0 36px, 100% 0, 100% 100%, 0 100%); margin-top: -4px; padding: 76px 0 68px; position: relative; }
.ch-label { display: flex; align-items: center; gap: 18px; margin-bottom: 30px; }
.ch-label h2 { font: 700 12.5px var(--font-display); letter-spacing: .14em; text-transform: uppercase; color: var(--gold); margin: 0; text-align: center; }
.ch-ln { flex: 1; height: 1.5px; background: linear-gradient(90deg, transparent, rgba(226,181,101,.75)); }
.ch-ln:last-child { background: linear-gradient(90deg, rgba(226,181,101,.75), transparent); }

.ch-card { --k: 18px; position: relative; isolation: isolate; display: grid; grid-template-columns: 1fr; color: var(--indigo); }
.ch-card::before, .ch-card::after { content: ""; position: absolute; z-index: -1; pointer-events: none; clip-path: polygon(var(--c) 0, calc(100% - var(--c)) 0, 100% var(--c), 100% calc(100% - var(--c)), calc(100% - var(--c)) 100%, var(--c) 100%, 0 calc(100% - var(--c)), 0 var(--c)); }
.ch-card::before { inset: 0; --c: var(--k); background: linear-gradient(160deg, #8C5E1B, #E9C688 22%, #C8902F 45%, #F3DDA8 62%, #A8721F 82%, #E2B565); }
.ch-card::after { inset: 1.5px; --c: calc(var(--k) - .6px); background: var(--white); }
.ch-inner { position: absolute; inset: 10px; border: 1.5px solid rgba(36,23,79,.5); pointer-events: none; clip-path: polygon(10px 0, calc(100% - 10px) 0, 100% 10px, 100% calc(100% - 10px), calc(100% - 10px) 100%, 10px 100%, 0 calc(100% - 10px), 0 10px); }
.ch-tabs { display: none; }
.ch-body { padding: 36px 34px; min-width: 0; }
.ch-panel + .ch-panel { margin-top: 48px; padding-top: 40px; border-top: 1px solid var(--line-light); }
.ch-js { grid-template-columns: 262px minmax(0, 1fr); }
.ch-js .ch-tabs { display: flex; flex-direction: column; gap: 6px; padding: 30px 16px 30px 26px; margin: 28px 0; border-right: 1.5px solid rgba(200,144,47,.5); }
.ch-js .ch-panel { display: none; margin: 0; padding: 0; border: 0; }
.ch-js .ch-panel.on { display: block; }
.ch-panel:focus-visible { outline: 2px solid var(--gold-deep); outline-offset: 6px; }

.ch-tab { position: relative; isolation: isolate; display: block; text-align: left; padding: 12px 14px 12px 28px; border: 0; background: none; cursor: pointer; color: var(--indigo); font: inherit; }
.ch-tab b { display: block; font: 800 17px/1.25 var(--font-display); }
.ch-tab small { display: block; margin-top: 2px; font-size: 13.5px; color: var(--muted-on-light); }
.ch-tab::before { content: ""; position: absolute; inset: 0; z-index: -1; background: transparent; transition: background-color .15s; clip-path: polygon(8px 0, calc(100% - 8px) 0, 100% 8px, 100% calc(100% - 8px), calc(100% - 8px) 100%, 8px 100%, 0 calc(100% - 8px), 0 8px); }
.ch-tab:hover::before { background: rgba(36,23,79,.06); }
.ch-tab[aria-selected="true"]::before { background: rgba(226,181,101,.28); }
.ch-tab::after { content: ""; position: absolute; left: 11px; top: 21px; width: 8px; height: 8px; background: var(--gold-deep); transform: rotate(45deg) scale(0); transition: transform .2s; }
.ch-tab[aria-selected="true"]::after { transform: rotate(45deg) scale(1); }
.ch-tab:focus-visible { outline: 2px solid var(--gold-deep); outline-offset: -2px; }

.ch-panel h3 { font-weight: 800; font-size: clamp(22px, 2.4vw, 28px); line-height: 1.18; letter-spacing: -.01em; margin: 0 0 12px; color: var(--indigo); }
.ch-panel p { color: var(--muted-on-light); font-size: 16.5px; line-height: 1.65; margin: 0 0 12px; }
.ch-story { display: grid; grid-template-columns: 1.5fr 1fr; gap: 36px; align-items: center; }
.ch-quote { margin: 0; padding: 6px 0 6px 22px; border-left: 4px solid var(--gold-deep); }
.ch-quote p { margin: 0; font: italic 500 clamp(22px, 2.4vw, 28px)/1.3 var(--font-quote); color: var(--indigo); }
.ch-th { display: flex; align-items: center; gap: 14px; margin-bottom: 12px; }
.ch-th h3 { margin: 0; }
.ch-yt { display: inline-flex; line-height: 0; filter: drop-shadow(0 4px 8px rgba(0,0,0,.25)); transition: transform .2s; }
.ch-yt:hover { transform: scale(1.1); }
.ch-lead { max-width: 46em; }
.ch-sgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 14px; }
.ch-ser small { display: block; margin: 10px 0 2px; font: 700 12px var(--font-display); letter-spacing: .09em; text-transform: uppercase; color: var(--gold-text); }
.ch-ser b { display: block; margin-bottom: 4px; font: 800 19px/1.25 var(--font-display); color: var(--indigo); }
.ch-ser p { font-size: 15px; margin: 0; }
.ch-card .commit-steps .cs-head { margin-bottom: 34px; }
.ch-card .cs-title { font-weight: 800; font-size: clamp(24px, 2.4vw, 30px); line-height: 1.18; margin: 10px 0 14px; text-wrap: balance; color: var(--indigo); }
.ch-card .cs-head p { color: var(--muted-on-light); }
.ch-card .cs-dot { box-shadow: 0 0 0 6px var(--white); }
.ch-card .cs-line h4 { font-weight: 800; font-size: 19px; line-height: 1.3; margin: 0; }
.ch-card .cs-res { margin-top: 36px; }
.ch-card .cs-res h4 { font-weight: 800; font-size: 20px; margin: 0 0 8px; }
.ch-card .cs-res p { color: var(--muted-on-light); font-size: 17px; line-height: 1.65; }

.gov-band { background: var(--ink-deep); padding: 40px 0; }
.gov-dark { display: flex; justify-content: space-between; align-items: center; gap: 28px; }
.gov-dark h3 { font-weight: 800; font-size: 22px; margin: 4px 0 6px; color: var(--white); }
.gov-dark p { color: var(--muted-on-dark); margin: 0; max-width: 46em; font-size: 15.5px; line-height: 1.6; }
.gov-dark .btn { flex: none; }
@media (max-width: 900px) {
  .ch-js { grid-template-columns: 1fr; }
  .ch-js .ch-tabs { flex-direction: row; flex-wrap: wrap; gap: 4px; padding: 22px 20px 10px; margin: 0; border-right: 0; border-bottom: 1.5px solid rgba(200,144,47,.5); }
  .ch-tab small { display: none; }
  .ch-tab { padding: 10px 12px 10px 24px; }
  .ch-tab::after { top: 18px; left: 9px; }
  .ch-body { padding: 26px 22px 32px; }
  .ch-story, .ch-sgrid { grid-template-columns: 1fr; }
  .gov-dark { flex-direction: column; align-items: flex-start; }
  .ch-label h2 { font-size: 11.5px; letter-spacing: .1em; }
}

/* chapter titles: every card opens with the same eyebrow + headline as Our Commitment */
.ch-eyrow { display: flex; align-items: center; justify-content: center; gap: 12px; }
.ch-eyrow .eyebrow { margin: 0; }
.ch-card .ch-panel > .cs-head { margin-bottom: 34px; }
.ch-card .ch-panel > .cs-head .eyebrow { display: block; }
.ch-card .ch-eyrow .eyebrow { display: inline-block; }
.ch-sgrid { margin-top: 0; }
.ch-story { align-items: start; }

/* Our records chapter: paragraph and button beside an "at a glance" list */
.rc-split { display: grid; grid-template-columns: 1.3fr 1fr; gap: 32px; align-items: center; }
.ch-panel .rc-split p { margin: 0 0 18px; }
.rc-facts { background: var(--honey); border-radius: 18px; padding: 20px 22px; box-shadow: inset 0 0 0 1.5px rgba(200,144,47,.4); }
.rc-facts h4 { font: 700 12.5px var(--font-display); letter-spacing: .1em; text-transform: uppercase; color: var(--gold-text); margin: 0 0 10px; }
.rc-facts ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.rc-facts li { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; color: var(--indigo); line-height: 1.4; }
.rc-facts svg { color: var(--gold-deep); flex: none; margin-top: 1px; }
@media (max-width: 900px) { .rc-split { grid-template-columns: 1fr; } }

/* =========================================================
   Advisory Board: member spotlight (list on the left, chosen advisor on the right)
   ========================================================= */
.spot { display: grid; grid-template-columns: 270px minmax(0, 1fr); gap: 22px; align-items: start; }
.spot-nav { display: none; flex-direction: column; gap: 6px; }
.spot-js .spot-nav { display: flex; }
.spot:not(.spot-js) { grid-template-columns: 1fr; }
.spot-item { display: flex; align-items: center; gap: 12px; text-align: left; padding: 9px 12px; border: 0; border-radius: 16px; background: var(--white); color: var(--indigo); font: inherit; cursor: pointer; box-shadow: inset 0 0 0 1.5px var(--line-light); transition: box-shadow .15s, background-color .15s, color .15s; }
.spot-item img { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; flex: none; }
.spot-item b { display: block; font: 800 15.5px/1.2 var(--font-display); }
.spot-item small { display: block; font-size: 12.5px; line-height: 1.3; color: var(--muted-on-light); }
.spot-item:hover { box-shadow: inset 0 0 0 1.5px var(--gold-deep); }
.spot-item[aria-selected="true"] { background: var(--indigo); color: var(--white); box-shadow: none; }
.spot-item[aria-selected="true"] small { color: var(--muted-on-dark); }
.spot-item:focus-visible { outline: 2px solid var(--gold-deep); outline-offset: 2px; }
.spot-card { --k: 18px; position: relative; isolation: isolate; padding: 34px 36px; min-height: 380px; display: flex; flex-direction: column; justify-content: center; }
.spot-card::before, .spot-card::after { content: ""; position: absolute; z-index: -1; pointer-events: none; clip-path: polygon(var(--c) 0, calc(100% - var(--c)) 0, 100% var(--c), 100% calc(100% - var(--c)), calc(100% - var(--c)) 100%, var(--c) 100%, 0 calc(100% - var(--c)), 0 var(--c)); }
.spot-card::before { inset: 0; --c: var(--k); background: linear-gradient(160deg, #8C5E1B, #E9C688 22%, #C8902F 45%, #F3DDA8 62%, #A8721F 82%, #E2B565); }
.spot-card::after { inset: 1.5px; --c: calc(var(--k) - .6px); background: var(--white); }
.spot-inner { position: absolute; inset: 10px; border: 1.5px solid rgba(36,23,79,.45); pointer-events: none; clip-path: polygon(10px 0, calc(100% - 10px) 0, 100% 10px, 100% calc(100% - 10px), calc(100% - 10px) 100%, 10px 100%, 0 calc(100% - 10px), 0 10px); }
.spot-panel { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 30px; align-items: center; }
.spot-panel + .spot-panel { margin-top: 30px; padding-top: 30px; border-top: 1px solid var(--line-light); }
.spot-js .spot-panel { display: none; margin: 0; padding: 0; border: 0; }
.spot-js .spot-panel.on { display: grid; }
.spot-panel:focus-visible { outline: 2px solid var(--gold-deep); outline-offset: 6px; }
.spot-panel > img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 22px; box-shadow: 0 0 0 4px var(--gold-light); }
.spot-panel h3 { font-weight: 800; font-size: 28px; line-height: 1.15; margin: 6px 0 4px; color: var(--indigo); }
.spot-org { margin: 0; color: var(--faint-on-light); font-size: 15px; }
.spot-panel blockquote { margin: 14px 0; padding-left: 16px; border-left: 4px solid var(--gold-deep); font: italic 500 19px/1.4 var(--font-quote); color: var(--indigo); }
.spot-chips { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0 0 16px; padding: 0; }
.spot-chips li { padding: 4px 10px; border-radius: 999px; background: var(--honey); box-shadow: inset 0 0 0 1px rgba(200,144,47,.4); font: 600 12px var(--font-display); color: var(--brown); }
.spot-actions { display: flex; gap: 8px; flex-wrap: wrap; }
@media (max-width: 900px) {
  .spot { grid-template-columns: 1fr; }
  .spot-js .spot-nav { flex-direction: row; flex-wrap: wrap; gap: 8px; }
  .spot-item { padding: 6px 12px 6px 6px; } .spot-item small { display: none; }
  .spot-item img { width: 36px; height: 36px; }
  .spot-card { padding: 28px 22px; min-height: 0; }
  .spot-panel { grid-template-columns: 1fr; gap: 18px; } .spot-panel > img { max-width: 200px; }
}

/* Advisory Board: the commitment as a pull-quote, then the two supporting points */
.pq { text-align: center; max-width: 820px; margin: 0 auto 34px; }
.pq blockquote { margin: 10px 0 12px; font: italic 500 clamp(26px, 3vw, 36px)/1.25 var(--font-quote); color: var(--indigo); text-wrap: balance; }
.pq blockquote::before { content: "“"; display: block; font: 800 64px/0.7 var(--font-display); color: var(--gold-deep); margin-bottom: 4px; }
.pq p { margin: 0; color: var(--muted-on-light); font-size: 18px; line-height: 1.65; }
.pq-two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 44px; padding-top: 28px; border-top: 1px solid var(--line-light); }
.pq-two article { display: flex; flex-direction: column; gap: 6px; }
.pq-ic { color: var(--gold-text); }
.pq-two h3 { font-weight: 800; font-size: 20px; line-height: 1.25; margin: 0; color: var(--indigo); }
.pq-two p { margin: 0; color: var(--muted-on-light); font-size: 16px; line-height: 1.65; }
@media (max-width: 900px) { .pq-two { grid-template-columns: 1fr; gap: 26px; } }

/* Advisory Board: tighter space between the member spotlight and the pull-quote */
.adv-mem { padding-top: 56px; padding-bottom: 72px; }
.pq-sec { padding-top: 64px; padding-bottom: 44px; }

/* About pages: slim pale closing strip with square outlined buttons */
.cta-pale { background: var(--sand); padding: 22px 0; }
.cta-pale .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px 28px; }
.cta-ic { flex: none; display: inline-flex; color: var(--indigo); }
.cta-pale p { flex: 1; margin: 0; font: 700 17px/1.4 var(--font-display); color: var(--indigo); max-width: 38em; }
.cta-btns { display: flex; flex-wrap: wrap; gap: 10px; flex: none; }
.cta-btn { display: inline-flex; align-items: center; padding: 10px 18px; border: 1.5px solid var(--indigo); border-radius: 0; background: none; color: var(--indigo); font: 700 14px var(--font-display); text-decoration: none; transition: background-color .15s ease; }
.cta-btn:hover { background: rgba(36,23,79,.08); color: var(--indigo); }
.cta-btn.alt { border-color: var(--brown); color: var(--brown); }
.cta-btn.alt:hover { background: rgba(110,74,16,.08); color: var(--brown); }
.cta-btn:focus-visible { outline: 2px solid var(--gold-deep); outline-offset: 3px; }
@media (max-width: 760px) { .cta-pale .wrap { flex-direction: column; align-items: flex-start; } .cta-pale p { max-width: none; } }

/* closing strip: use the full width (no rail clearance on the left), one line of slightly smaller text */
.cta-pale .wrap { max-width: 1400px; padding-left: 36px; padding-right: 36px; gap: 16px 24px; }
.cta-pale p { font-size: 15.5px; max-width: none; text-wrap: balance; }
.cta-ic { margin-right: -8px; }
@media (max-width: 760px) { .cta-pale .wrap { padding-left: 24px; padding-right: 24px; } }

/* Closing strip motion (M6): icon glint + button outlines redraw on hover */
.cta-pale .cta-ic { position: relative; overflow: hidden; }
.cta-pale .cta-ic::after { content: ""; position: absolute; top: -20%; bottom: -20%; left: 0; width: 45%; background: linear-gradient(105deg, transparent, rgba(226,181,101,.95), transparent); transform: translateX(-160%) skewX(-18deg); animation: iconglint 4.5s ease-in-out infinite; }
@keyframes iconglint { 0% { transform: translateX(-160%) skewX(-18deg); } 18% { transform: translateX(340%) skewX(-18deg); } 100% { transform: translateX(340%) skewX(-18deg); } }
.cta-pale .cta-btn { position: relative; border-color: transparent; background-image: linear-gradient(var(--indigo), var(--indigo)), linear-gradient(var(--indigo), var(--indigo)), linear-gradient(var(--indigo), var(--indigo)), linear-gradient(var(--indigo), var(--indigo)); background-repeat: no-repeat; background-size: 100% 1.5px, 1.5px 100%, 100% 1.5px, 1.5px 100%; background-position: 0 0, 100% 0, 100% 100%, 0 100%; }
.cta-pale .cta-btn.alt { background-image: linear-gradient(var(--brown), var(--brown)), linear-gradient(var(--brown), var(--brown)), linear-gradient(var(--brown), var(--brown)), linear-gradient(var(--brown), var(--brown)); }
.cta-pale .cta-btn:hover { background-color: rgba(36,23,79,.08); animation: redraw .7s ease-out 1; }
.cta-pale .cta-btn.alt:hover { background-color: rgba(110,74,16,.08); }
@keyframes redraw { 0% { background-size: 0 1.5px, 1.5px 0, 0 1.5px, 1.5px 0; } 25% { background-size: 100% 1.5px, 1.5px 0, 0 1.5px, 1.5px 0; } 50% { background-size: 100% 1.5px, 1.5px 100%, 0 1.5px, 1.5px 0; } 75% { background-size: 100% 1.5px, 1.5px 100%, 100% 1.5px, 1.5px 0; } 100% { background-size: 100% 1.5px, 1.5px 100%, 100% 1.5px, 1.5px 100%; } }
@media (prefers-reduced-motion: reduce) { .cta-pale .cta-ic::after, .cta-pale .cta-btn:hover { animation: none; } }

/* Closing strip: icon glint starts the moment the strip is hovered (no idle loop) */
.cta-pale .cta-ic::after { animation: none; }
.cta-pale:hover .cta-ic::after { animation: iconglint-hover .8s ease-out 1; }
@keyframes iconglint-hover { from { transform: translateX(-160%) skewX(-18deg); } to { transform: translateX(340%) skewX(-18deg); } }
@media (prefers-reduced-motion: reduce) { .cta-pale:hover .cta-ic::after { animation: none; } }

/* Advisory Board: lift the member spotlight a little, keep the section's overall height */
.adv-mem .spot { margin-top: -18px; }
.adv-mem { padding-bottom: 90px; }

/* Closing strip buttons: keep the drawn outline at its normal weight and stop the old hover rule from filling the button */
.cta-pale .cta-btns .cta-btn, .cta-pale .cta-btns .cta-btn:hover { background-origin: border-box; background-repeat: no-repeat; background-position: 0 0, 100% 0, 100% 100%, 0 100%; background-size: 100% 1.5px, 1.5px 100%, 100% 1.5px, 1.5px 100%; background-image: linear-gradient(var(--indigo), var(--indigo)), linear-gradient(var(--indigo), var(--indigo)), linear-gradient(var(--indigo), var(--indigo)), linear-gradient(var(--indigo), var(--indigo)); }
.cta-pale .cta-btns .cta-btn.alt, .cta-pale .cta-btns .cta-btn.alt:hover { background-image: linear-gradient(var(--brown), var(--brown)), linear-gradient(var(--brown), var(--brown)), linear-gradient(var(--brown), var(--brown)), linear-gradient(var(--brown), var(--brown)); }
.cta-pale .cta-btns .cta-btn:hover { background-color: rgba(36,23,79,.08); }
.cta-pale .cta-btns .cta-btn.alt:hover { background-color: rgba(110,74,16,.08); }

/* Heart icon (Staff & Volunteers strip): fills with gold, then fades away like a long heartbeat */
.cta-pale .cta-ic-heart { overflow: visible; }
.cta-pale .cta-ic-heart::after { display: none; }
.cta-pale .cta-ic-heart path { fill: rgba(226,181,101,0); transform-box: fill-box; transform-origin: center; }
.cta-pale:hover .cta-ic-heart path { animation: heartbeat 2.2s ease-out 1; }
@keyframes heartbeat {
  0%   { fill: rgba(226,181,101,0);  transform: scale(1); }
  14%  { fill: rgba(226,181,101,1);  transform: scale(1.16); }
  26%  { fill: rgba(226,181,101,.95); transform: scale(1); }
  38%  { fill: rgba(226,181,101,.9); transform: scale(1.09); }
  52%  { fill: rgba(226,181,101,.6); transform: scale(1); }
  100% { fill: rgba(226,181,101,0);  transform: scale(1); }
}
@media (prefers-reduced-motion: reduce) { .cta-pale:hover .cta-ic-heart path { animation: none; } }

/* Advisory spotlight: focus pills now sit above the quote */
.spot-chips { margin: 12px 0 0; }
.spot-panel blockquote { margin-top: 16px; }

/* Advisory spotlight: the bio button's click area stays on the button itself, so the Profile link underneath it works */
.spot-actions .btn-bio { position: relative; }
.spot-actions .btn-mini-ink { position: relative; z-index: 4; }

/* ================= Internal Documents: shelf, hover preview, reading room ================= */
.docs-shelf .doc-group h2 { margin-bottom: 16px; }
.dshelf { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); gap: 16px; }
.dcard { display: flex; flex-direction: column; height: 100%; padding: 10px; background: var(--white); border-radius: 16px; box-shadow: inset 0 0 0 1.5px var(--line-light); color: var(--indigo); text-decoration: none; transition: transform .18s ease, box-shadow .18s ease; }
.dcard:hover, .dcard:focus-visible { transform: translateY(-4px); box-shadow: inset 0 0 0 1.5px var(--gold-deep), 0 16px 26px -18px rgba(27,18,56,.5); color: var(--indigo); }
.dcard:focus-visible { outline: 2px solid var(--gold-deep); outline-offset: 3px; }
.dthumb { position: relative; display: block; aspect-ratio: 8.5 / 11; border-radius: 8px; overflow: hidden; background: #EDE8F6; margin-bottom: 10px; }
.dthumb canvas { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; opacity: 0; transition: opacity .3s; }
.dcard.has-thumb .dthumb canvas { opacity: 1; }
.dthumb-ph { position: absolute; inset: 0; display: grid; place-items: center; color: var(--indigo); opacity: .35; }
.dthumb-ph svg { width: 40px; height: 40px; }
.dcard.has-thumb .dthumb-ph { display: none; }
.dcard strong { font: 800 14.5px/1.25 var(--font-display); }
.dcard small { margin-top: 4px; font-size: 13px; line-height: 1.35; color: var(--muted-on-light); }
.dgo { margin-top: auto; padding-top: 10px; font: 700 12.5px var(--font-display); color: var(--brown); }

.dpeek { position: fixed; z-index: 80; width: 260px; background: var(--white); border-radius: 12px; padding: 8px; box-shadow: 0 0 0 1.5px var(--gold-deep), 0 24px 40px -16px rgba(27,18,56,.55); pointer-events: none; opacity: 0; transform: translateY(6px); transition: opacity .15s, transform .15s; }
.dpeek.show { opacity: 1; transform: none; }
.dpeek canvas { width: 100%; display: block; border-radius: 6px; background: #EDE8F6; }
.dpeek p { margin: 6px 2px 0; font: 600 12.5px var(--font-display); color: var(--indigo); }
.dpeek p span { color: var(--muted-on-light); font-weight: 600; }

/* the reading room */
dialog.room { position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: #171128; color: #fff; transition: background-color .4s; }
dialog.room[open] { display: flex; }
dialog.room::backdrop { background: #000; }
.room-rail { flex: none; width: 290px; display: flex; flex-direction: column; background: #211A3D; border-right: 1px solid #2F2752; min-height: 0; }
.room-rail-head { padding: 16px 20px 12px; font: 800 12px var(--font-display); letter-spacing: .16em; text-transform: uppercase; color: #E2B565; border-bottom: 1px solid #2F2752; }
.room-rail-scroll { overflow-y: auto; flex: 1; min-height: 0; scrollbar-color: #4A3F7A #211A3D; }
.rr-group + .rr-group { margin-top: 6px; border-top: 2px solid #E2B565; }
.rr-title { position: sticky; top: 0; z-index: 2; margin: 0; padding: 12px 20px; display: flex; align-items: center; justify-content: space-between; gap: 10px; background: #2A2150; color: #fff; font: 800 13.5px/1.25 var(--font-display); box-shadow: 0 1px 0 #3A3160; }
.rr-count { flex: none; min-width: 22px; padding: 1px 7px; border-radius: 99px; background: rgba(226,181,101,.22); color: #E2B565; font: 700 11.5px var(--font-display); text-align: center; }
.rr-list { list-style: none; margin: 0; padding: 6px 0 10px; }
.rr-item { display: flex; align-items: center; gap: 12px; width: 100%; padding: 8px 20px; border: 0; background: transparent; color: #fff; font: inherit; text-align: left; cursor: pointer; border-left: 3px solid transparent; }
.rr-item:hover { background: rgba(226,181,101,.12); }
.rr-item:focus-visible { outline: 2px solid #E2B565; outline-offset: -2px; }
.rr-item.on { background: rgba(226,181,101,.2); border-left-color: #E2B565; }
.rr-thumb { flex: none; width: 40px; aspect-ratio: 8.5 / 11; border-radius: 3px; overflow: hidden; background: #3A2F63; }
.rr-thumb canvas { width: 100%; height: 100%; display: block; object-fit: cover; }
.rr-text b { display: block; font: 800 13px/1.25 var(--font-display); }
.rr-text small { display: block; margin-top: 2px; font-size: 12px; line-height: 1.3; color: #B9B0D9; }
.room-stage { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.room-bar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 12px 20px; background: #211A3D; border-bottom: 1px solid #2F2752; }
.room-title { margin-right: auto; min-width: 0; }
.room-cat { display: block; font: 700 11px var(--font-display); letter-spacing: .14em; text-transform: uppercase; color: #E2B565; }
.room-title b { display: block; font: 800 17px/1.25 var(--font-display); }
.room-title small { color: #B9B0D9; font-size: 13px; }
.room-btn { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border: 1.5px solid #E2B565; background: none; color: #E2B565; font: 700 13px var(--font-display); text-decoration: none; cursor: pointer; white-space: nowrap; border-radius: 0; }
.room-btn:hover { background: rgba(226,181,101,.15); color: #E2B565; }
.room-btn:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.room-close { border-color: #fff; color: #fff; } .room-close:hover { background: rgba(255,255,255,.12); color: #fff; }
.room-comfort[aria-expanded="true"] { background: rgba(226,181,101,.2); }
.room-view { position: relative; flex: 1; min-height: 0; padding: 14px 24px 0; display: flex; }
.room-page { position: relative; flex: 1; min-width: 0; overflow: hidden; border-radius: 8px 8px 0 0; background: #E9E4F2; }
.room-page iframe { width: 100%; height: 100%; border: 0; display: block; background: #E9E4F2; transition: filter .3s; }
.room-tint, .room-dimmer { position: absolute; inset: 0; pointer-events: none; transition: background-color .3s, opacity .3s; }
.room-tint { mix-blend-mode: multiply; } .room-dimmer { background: #000; opacity: 0; }

/* comfort edge tab: a slim tab that opens on hover, and slurps into the Comfort button */
.comfort { position: absolute; right: 24px; top: 34px; z-index: 5; width: 62px; padding: 10px; display: flex; flex-direction: column; gap: 8px; overflow: hidden; background: #211A3D; border: 1.5px solid #E2B565; border-right: 0; border-radius: 12px 0 0 12px; box-shadow: -14px 10px 30px -14px #000; transition: width .22s ease; will-change: transform; }
.comfort[hidden] { display: none; }
.comfort:hover, .comfort:focus-within { width: 236px; }
.cf-head { display: flex; align-items: center; justify-content: space-between; min-height: 28px; }
.cf-lab { font: 800 11px var(--font-display); letter-spacing: .14em; text-transform: uppercase; color: #E2B565; padding-left: 4px; opacity: 0; transition: opacity .15s; white-space: nowrap; }
.comfort:hover .cf-lab, .comfort:focus-within .cf-lab { opacity: 1; }
.cf-hide { flex: none; width: 34px; height: 28px; border: 0; border-radius: 6px; background: rgba(255,255,255,.1); color: #fff; font: 700 15px var(--font-display); cursor: pointer; }
.cf-hide:hover { background: rgba(226,181,101,.35); } .cf-hide:focus-visible { outline: 2px solid #E2B565; }
.cf-modes { display: flex; flex-direction: column; gap: 4px; }
.cf-mode { display: flex; align-items: center; gap: 10px; border: 1.5px solid transparent; background: transparent; color: #fff; padding: 5px; border-radius: 99px; font: 700 12.5px var(--font-display); cursor: pointer; white-space: nowrap; text-align: left; }
.cf-mode:hover { border-color: #E2B565; } .cf-mode.on { border-color: #E2B565; background: rgba(226,181,101,.2); } .cf-mode:focus-visible { outline: 2px solid #E2B565; }
.cf-mode i { flex: none; width: 24px; height: 24px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(255,255,255,.5); }
.cf-mode span { opacity: 0; transition: opacity .15s; } .comfort:hover .cf-mode span, .comfort:focus-within .cf-mode span { opacity: 1; }
.cf-bright { display: flex; flex-direction: column; gap: 4px; padding: 0 4px; font: 700 12px var(--font-display); color: #CFC8E6; white-space: nowrap; opacity: 0; transition: opacity .15s; }
.cf-bright input { width: 100%; accent-color: #E2B565; }
.comfort:hover .cf-bright, .comfort:focus-within .cf-bright { opacity: 1; }
.cf-note { display: none; margin: 0; padding: 0 4px; font: 400 12px/1.4 var(--font-body, inherit); color: #B9B0D9; }
.comfort:hover .cf-note, .comfort:focus-within .cf-note { display: block; white-space: normal; }
@media (max-width: 1100px) { .room-rail { width: 230px; } }
@media (max-width: 760px) { .room-rail { display: none; } }
@media (prefers-reduced-motion: reduce) { .dcard, .comfort, .room-page iframe, dialog.room { transition: none; } .dcard:hover { transform: none; } }

/* Reading room rail: the thumbnail under the pointer (or keyboard focus) grows as you scroll through the documents */
.rr-item { transition: background-color .15s, padding .22s ease; }
.rr-thumb { transition: width .22s ease, box-shadow .22s ease; box-shadow: 0 0 0 0 rgba(226,181,101,0); }
.rr-item:hover, .rr-item:focus-visible { padding-top: 12px; padding-bottom: 12px; }
.rr-item:hover .rr-thumb, .rr-item:focus-visible .rr-thumb { width: 96px; box-shadow: 0 0 0 1.5px #E2B565, 0 10px 18px -8px #000; }
.rr-item:hover .rr-thumb canvas, .rr-item:focus-visible .rr-thumb canvas { image-rendering: auto; }
@media (max-width: 1100px) { .rr-item:hover .rr-thumb, .rr-item:focus-visible .rr-thumb { width: 78px; } }
@media (prefers-reduced-motion: reduce) { .rr-item, .rr-thumb { transition: none; } }

/* Reading room rail: Dock-style magnification (replaces the simple hover grow above). --m is 0..1, set by docs-room.js from the pointer's distance */
.rr-item { padding: 12px 20px; --m: 0; }
.rr-item:hover, .rr-item:focus-visible { padding-top: 12px; padding-bottom: 12px; }
.rr-item:hover .rr-thumb, .rr-item:focus-visible .rr-thumb { width: 40px; box-shadow: none; }
.rr-thumb { width: 40px; transform-origin: left center; transform: scale(calc(1 + var(--m) * 1.35)); transition: transform .09s linear; box-shadow: 0 0 0 calc(var(--m) * 1.5px) rgba(226,181,101,.9), 0 calc(var(--m) * 10px) calc(var(--m) * 18px) calc(var(--m) * -8px) #000; }
.rr-text { transform: translateX(calc(var(--m) * 56px)); transition: transform .09s linear; }
@media (prefers-reduced-motion: reduce) { .rr-thumb, .rr-text { transition: none; transform: none !important; } }
.room-rail { width: 330px; }
.rr-text { padding-right: 20px; }
@media (max-width: 1100px) { .room-rail { width: 280px; } }

/* Reading room rail, final: slim strip of page previews that widens on hover (names appear), with slim category titles above each group's first document */
.room-rail { width: 92px; overflow: hidden; transition: width .22s ease; }
.room-rail:hover, .room-rail:focus-within { width: 224px; }
.room-rail-head { display: none; }
.room-rail-scroll { padding: 4px 0 24px; overflow-x: hidden; }
.rr-group + .rr-group { margin-top: 10px; border-top: 1px solid rgba(226,181,101,.6); }
.rr-title { position: sticky; top: 0; z-index: 2; display: block; padding: 8px 12px 6px; background: #211A3D; box-shadow: none; font: 800 9.5px/1.25 var(--font-display); letter-spacing: .14em; text-transform: uppercase; color: #E2B565; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rr-full { display: none; }
.room-rail:hover .rr-full, .room-rail:focus-within .rr-full { display: inline; }
.room-rail:hover .rr-short, .room-rail:focus-within .rr-short { display: none; }
.rr-list { padding: 2px 0 4px; }
.rr-item, .rr-item:hover, .rr-item:focus-visible { display: block; width: 100%; padding: 6px 10px; border-left: 0; border-radius: 12px; background: transparent; }
.rr-item:hover { background: rgba(226,181,101,.12); }
.rr-item.on { background: rgba(226,181,101,.2); box-shadow: inset 0 0 0 2px #E2B565; }
.rr-item:focus-visible { outline: 2px solid #E2B565; outline-offset: -2px; }
.rr-thumb, .rr-item:hover .rr-thumb, .rr-item:focus-visible .rr-thumb { display: block; width: 100%; transform: none; box-shadow: none; border-radius: 6px; transition: none; }
.rr-text, .rr-item:hover .rr-text { display: none; transform: none; margin-top: 6px; padding: 0 2px 2px; text-align: left; }
.room-rail:hover .rr-text, .room-rail:focus-within .rr-text { display: block; }
.rr-text b { font: 800 12px/1.25 var(--font-display); }
.rr-text small { display: none; }
@media (prefers-reduced-motion: reduce) { .room-rail { transition: none; } }

/* rail opens on hover, or when a keyboard user tabs into it (not merely because a document has focus) */
.room-rail:focus-within { width: 92px; }
.room-rail:focus-within .rr-full { display: none; }
.room-rail:focus-within .rr-short { display: inline; }
.room-rail:focus-within .rr-text { display: none; }
.room-rail:hover, .room-rail:has(.rr-item:focus-visible) { width: 244px; }
.room-rail:hover .rr-full, .room-rail:has(.rr-item:focus-visible) .rr-full { display: inline; }
.room-rail:hover .rr-short, .room-rail:has(.rr-item:focus-visible) .rr-short { display: none; }
.room-rail:hover .rr-text, .room-rail:has(.rr-item:focus-visible) .rr-text { display: block; }
.rr-title { font-size: 9px; letter-spacing: .08em; }

/* Reading room rail: match the original example's exact sizes (84px → 200px, tight padding, small resting previews); only the slim section titles are new */
.room-rail { width: 84px; border-right: 0; }
.room-rail:hover, .room-rail:has(.rr-item:focus-visible) { width: 200px; }
.room-rail-scroll { padding: 10px 8px 14px; overflow-y: auto; overflow-x: hidden; }
.rr-title { padding: 8px 4px 6px; margin: 0 -8px; padding-left: 12px; padding-right: 8px; }
.rr-group + .rr-group { margin-top: 12px; }
.rr-list { display: flex; flex-direction: column; gap: 10px; padding: 4px 0 2px; }
.rr-item, .rr-item:hover, .rr-item:focus-visible { padding: 5px; border-radius: 8px; }
.rr-item:hover { background: rgba(226,181,101,.15); }
.rr-item.on { background: rgba(226,181,101,.25); box-shadow: inset 0 0 0 1.5px #E2B565; }
.rr-thumb, .rr-item:hover .rr-thumb, .rr-item:focus-visible .rr-thumb { border-radius: 3px; }
.rr-text, .rr-item:hover .rr-text { margin-top: 4px; padding: 0; }
.rr-text b { font: 700 11.5px/1.25 var(--font-display); }

/* Hover preview: title on top, an inset bar (pages + real Read button), then the page */
.dpeek { width: 290px; padding: 0 0 12px; pointer-events: none; }
.dpeek.show { pointer-events: auto; cursor: pointer; }
.dpeek h4 { margin: 0; padding: 12px 16px 8px; font: 800 15px/1.25 var(--font-display); color: var(--indigo); }
.dpeek-bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 0 12px 10px; padding: 6px 6px 6px 12px; border-radius: 10px; background: #F5EDDC; }
.dpeek-pages { font: 700 13px var(--font-display); color: var(--brown); }
.dpeek-read { border: 0; border-radius: 8px; padding: 7px 12px; background: var(--indigo); color: #fff; font: 700 12.5px var(--font-display); cursor: pointer; }
.dpeek.show:hover .dpeek-read { background: #3A2A75; }
.dpeek canvas { width: calc(100% - 24px); margin: 0 12px; }
.dpeek p { display: none; }
.dpeek canvas { max-height: 290px; object-fit: cover; object-position: top; }

/* Hover preview header: a slim dark bar like the site header (no logo): title with the page count beside it, a gold read button at the right, a gold hairline under it */
.dpeek { width: 340px; padding: 0 0 12px; overflow: hidden; }
.dpeek-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0; padding: 9px 10px 9px 16px; border-radius: 0; background: #1F1547; }
.dpeek-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; min-width: 0; }
.dpeek h4 { margin: 0; padding: 0; font: 800 14px/1.25 var(--font-display); color: #fff; }
.dpeek-pages { font: 700 12px var(--font-display); color: #E2B565; white-space: nowrap; }
.dpeek-read { flex: none; border: 0; border-radius: 99px; padding: 7px 14px; background: #E2B565; color: #1F1547; font: 800 12px var(--font-display); cursor: pointer; white-space: nowrap; }
.dpeek.show:hover .dpeek-read { background: #F0C77E; }
.dpeek-line { display: block; height: 2px; margin: 0 0 12px; background: linear-gradient(90deg, rgba(226,181,101,0), #E2B565 14%, #C8902F 50%, #E2B565 86%, rgba(226,181,101,0)); }
.dpeek canvas { width: calc(100% - 28px); margin: 0 14px; }

/* Hover preview, final layout: title + page count, the gold hairline, then the Read button, then page one */
.dpeek { width: 330px; padding: 0 0 14px; overflow: hidden; }
.dpeek-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; padding: 14px 16px 10px; background: none; }
.dpeek h4 { margin: 0; padding: 0; font: 800 15px/1.25 var(--font-display); color: var(--indigo); }
.dpeek-pages { font: 700 12.5px var(--font-display); color: var(--brown); white-space: nowrap; }
.dpeek-line { display: block; height: 2px; margin: 0 0 12px; background: linear-gradient(90deg, rgba(226,181,101,0), #E2B565 14%, #C8902F 50%, #E2B565 86%, rgba(226,181,101,0)); }
.dpeek-read { display: block; width: calc(100% - 32px); margin: 0 16px 12px; border: 0; border-radius: 99px; padding: 9px 14px; background: #E2B565; color: #1F1547; font: 800 13px var(--font-display); cursor: pointer; text-align: center; }
.dpeek.show:hover .dpeek-read { background: #F0C77E; }
.dpeek canvas { width: calc(100% - 32px); margin: 0 16px; }
.dpeek-line { height: 3px; background: linear-gradient(90deg, rgba(200,144,47,0), #C8902F 12%, #E2B565 50%, #C8902F 88%, rgba(200,144,47,0)); }

/* Hover preview: smaller, translucent "Click to read" button */
.dpeek-read { width: fit-content; margin: 0 auto 12px 16px; padding: 5px 13px; border: 1.5px solid rgba(200,144,47,.55); background: rgba(226,181,101,.2); color: var(--indigo); font: 800 12px var(--font-display); }
.dpeek.show:hover .dpeek-read { background: rgba(226,181,101,.38); border-color: rgba(200,144,47,.9); }

/* Hover preview: smoother motion and a steady size */
.dpeek { width: 330px; opacity: 0; transform: translateY(10px) scale(.985); transform-origin: 50% 100%;
  transition: opacity .2s ease, transform .22s cubic-bezier(.2,.8,.2,1), left .24s cubic-bezier(.2,.8,.2,1), top .24s cubic-bezier(.2,.8,.2,1);
  box-shadow: 0 0 0 1.5px var(--gold-deep), 0 28px 50px -18px rgba(27,18,56,.5); will-change: transform, opacity, left, top; }
.dpeek.snap { transition: opacity .2s ease, transform .22s cubic-bezier(.2,.8,.2,1); }
.dpeek.show { opacity: 1; transform: none; }
.dpeek-page { position: relative; margin: 0 16px; height: 270px; overflow: hidden; border-radius: 6px; background: #EDE8F6; }
.dpeek-page canvas { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; max-height: none; object-fit: cover; object-position: top; opacity: 0; transition: opacity .25s ease; }
.dpeek.has-page .dpeek-page canvas { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .dpeek, .dpeek.snap { transition: opacity .1s linear; transform: none; } }

/* Side menu: a little more room around the item text ("Initiatives" was touching the cut corners). Pill 78 -> 92px; everything anchored to it moves with it. */
@media (min-width: 901px) {
  :root { --rail-clear: 138px; }
  .rail-pill { width: 92px; }
  .rail-word { left: 102px; }
  .rail-fly { left: 104px; }
  .site-rail.is-collapsed .rail-pill { width: 62px; }
}

/* ================= Chiari Atlas: three pamphlets that turn over ================= */
.atlas-trio { display: grid; grid-template-columns: repeat(3, minmax(0, 320px)); justify-content: center; gap: 34px; margin-top: 26px; }
.flip { position: relative; aspect-ratio: 490 / 1294; perspective: 1600px; cursor: pointer; outline: none; }
.flip-in { position: relative; width: 100%; height: 100%; transform-style: preserve-3d; transition: transform .8s cubic-bezier(.2,.8,.2,1); }
.flip.is-flipped .flip-in { transform: rotateY(180deg); }
@media (hover: hover) { .flip:hover .flip-in { transform: rotateY(180deg); } }
.flip-face { position: absolute; inset: 0; border-radius: 14px; overflow: hidden; backface-visibility: hidden; -webkit-backface-visibility: hidden; box-shadow: 0 26px 34px -22px rgba(27,18,56,.6); }
.flip:focus-visible .flip-front { outline: 3px solid var(--gold-deep); outline-offset: 3px; }
.flip-front img, .flip-front svg { display: block; width: 100%; height: 100%; object-fit: cover; }
.flip-back { transform: rotateY(180deg); background: #E3DAF0; box-shadow: inset 0 0 0 1.5px #C8902F, 0 26px 34px -22px rgba(27,18,56,.6); padding: 34px 28px 28px; display: flex; flex-direction: column; color: #3B2A6B; }
.fb-num { font: 600 21px "Cormorant Garamond", Georgia, serif; letter-spacing: .18em; text-align: center; }
.fb-line { display: block; width: 54px; height: 3px; margin: 8px auto 20px; background: #B9A3D3; border-radius: 2px; }
.flip-back h3 { margin: 0; font: 700 34px/1.12 "Cormorant Garamond", Georgia, serif; text-align: center; color: #3B2A6B; }
.fb-sub { margin: 8px 0 0; text-align: center; font: italic 500 19px/1.3 "Cormorant Garamond", Georgia, serif; color: #7A5CA5; }
.fb-rule { display: block; height: 3px; margin: 22px 0 18px; background: linear-gradient(90deg, rgba(200,144,47,0), #C8902F 15%, #E2B565 50%, #C8902F 85%, rgba(200,144,47,0)); }
.fb-what { margin: 0; font-size: 16.5px; line-height: 1.55; color: #3B2A6B; }
.fb-soon { margin-top: auto; align-self: center; padding: 6px 16px; border: 1.5px solid #C8902F; border-radius: 99px; color: #6E4A10; font: 800 12px var(--font-display); letter-spacing: .1em; text-transform: uppercase; }
@media (max-width: 1000px) { .atlas-trio { grid-template-columns: minmax(0, 340px); } }
@media (prefers-reduced-motion: reduce) {
  .flip-in { transform: none !important; transition: none; }
  .flip-face { transition: opacity .2s; }
  .flip-back { transform: none; opacity: 0; }
  .flip.is-flipped .flip-back { opacity: 1; }
  .flip.is-flipped .flip-front { opacity: 0; }
  @media (hover: hover) { .flip:hover .flip-back { opacity: 1; } .flip:hover .flip-front { opacity: 0; } }
}
.flip-front img { object-position: left top; }
@media (max-width: 1000px) { .atlas-trio { grid-template-columns: repeat(3, minmax(0, 320px)); gap: 22px; } }
@media (max-width: 860px) { .atlas-trio { grid-template-columns: minmax(0, 340px); } }
.fb-num { font-size: 18px; letter-spacing: .14em; white-space: nowrap; }
@media (max-width: 1100px) { .atlas-trio { grid-template-columns: minmax(0, 340px); gap: 34px; } }

/* Atlas pamphlets always sit side by side; text on the back scales with the card; on small phones they become a swipeable row */
.atlas-trio { grid-template-columns: repeat(3, minmax(0, 320px)); gap: 22px; }
.flip { container-type: inline-size; }
.flip-back { padding: 10.5cqw 8.7cqw 8.7cqw; }
.fb-num { font-size: max(13px, 5.6cqw); }
.fb-line { margin: 2.5cqw auto 6cqw; }
.flip-back h3 { font-size: max(21px, 10.6cqw); }
.fb-sub { font-size: max(14px, 5.9cqw); margin-top: 2.5cqw; }
.fb-rule { margin: 6.5cqw 0 5.5cqw; }
.fb-what { font-size: max(12.5px, 5.1cqw); line-height: 1.5; }
.fb-soon { font-size: max(10px, 3.7cqw); padding: 1.8cqw 5cqw; }
@media (min-width: 1101px) { .atlas-trio { gap: 34px; } }
@media (max-width: 600px) {
  .atlas-trio { display: flex; justify-content: flex-start; overflow-x: auto; scroll-snap-type: x mandatory; gap: 16px; padding: 4px 2px 14px; margin-inline: -2px; }
  .flip { flex: 0 0 78%; max-width: 320px; scroll-snap-align: center; }
}

/* Atlas: wider, more generously spaced pamphlets and a light italic note */
.atlas-trio { grid-template-columns: repeat(3, minmax(0, 360px)); gap: 30px; }
@media (min-width: 1101px) { .atlas-trio { gap: 52px; } }
.atlas-note { margin: 4px 0 0; text-align: center; font: italic 400 14.5px/1.5 var(--font-body); color: #8E86AB; }
.atlas-trio + .fineprint { text-align: center; }
@media (max-width: 600px) { .atlas-trio { grid-template-columns: none; } .flip { flex: 0 0 78%; max-width: 340px; } .atlas-note { text-align: left; } }
@media (min-width: 1101px) { .atlas-trio { gap: 44px; } }

/* The tap/swipe instruction only shows on tablet-sized and smaller screens (or any touch-only device) */
.atlas-touch-hint { display: none; }
@media (max-width: 1024px), (hover: none) { .atlas-touch-hint { display: block; } }

/* ================= Phone menu (under 901px): plum top bar, bottom pill of five words, raised submenus ================= */
.m-dock, .m-sheet { display: none; }
@media (max-width: 900px) {
  :root {
    --m-plum: linear-gradient(172deg, #3B2742 0%, #574259 16%, #3E2C47 34%, #5C4862 52%, #402D48 70%, #52405A 88%, #3C2944 100%);
    --m-plum-wide: linear-gradient(100deg, #3B2742, #574259 30%, #3E2C47 60%, #52405A);
    --m-gold: linear-gradient(160deg, #8C5E1B, #E9C688 22%, #C8902F 45%, #F3DDA8 62%, #A8721F 82%, #E2B565);
  }
  body { padding-bottom: calc(104px + env(safe-area-inset-bottom, 0px)); }
  .nav-toggle, .main-nav { display: none !important; }

  /* top bar: scrolls away with the page */
  .site-header, .site-header.is-scrolled { position: relative; top: auto; background: none; border: 0; padding: 12px max(12px, env(safe-area-inset-right, 0px)) 12px max(12px, env(safe-area-inset-left, 0px)); transition: none; }
  .header-row, .site-header.is-scrolled .header-row { --k: 16px; position: relative; isolation: isolate; max-width: none; margin: 0; padding: 9px 12px; gap: 12px; border: 0; border-radius: 0; background: none; box-shadow: none; transform: none; transition: none; -webkit-backdrop-filter: none; backdrop-filter: none; filter: drop-shadow(0 12px 14px rgba(0,0,0,.5)); }
  .header-row::before, .header-row::after { content: ""; position: absolute; z-index: -1; pointer-events: none; clip-path: polygon(var(--k) 0, calc(100% - var(--k)) 0, 100% var(--k), 100% calc(100% - var(--k)), calc(100% - var(--k)) 100%, var(--k) 100%, 0 calc(100% - var(--k)), 0 var(--k)); }
  .header-row::before { inset: 0; background: var(--m-gold); }
  .header-row::after { inset: 1.5px; background: var(--m-plum-wide); clip-path: polygon(calc(var(--k) - .6px) 0, calc(100% - var(--k) + .6px) 0, 100% calc(var(--k) - .6px), 100% calc(100% - var(--k) + .6px), calc(100% - var(--k) + .6px) 100%, calc(var(--k) - .6px) 100%, 0 calc(100% - var(--k) + .6px), 0 calc(var(--k) - .6px)); }
  .brand { gap: 12px; }
  .brand-disc { width: 46px; height: 46px; box-shadow: 0 0 0 2px rgba(226,181,101,.6); }
  .brand-disc img { width: 38px; }
  .site-header .brand-word { display: inline; font-size: 16px; letter-spacing: .04em; }
  .m-login { appearance: none; flex: none; width: 42px; height: 42px; margin-left: auto; border-radius: 50%; border: 1.5px solid rgba(226,181,101,.7); background: rgba(255,255,255,.06); color: var(--gold-light); display: grid; place-items: center; cursor: pointer; }
  .m-login svg { width: 20px; height: 20px; }
  .m-login:hover { background: rgba(226,181,101,.18); }
  .m-login:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

  /* bottom pill */
  .m-dock { --k: 16px; position: fixed; z-index: 60; left: max(12px, env(safe-area-inset-left, 0px)); right: max(12px, env(safe-area-inset-right, 0px)); bottom: max(14px, env(safe-area-inset-bottom, 0px)); display: grid; grid-template-columns: repeat(5, 1fr); gap: 2px; padding: 8px; isolation: isolate; filter: drop-shadow(0 12px 16px rgba(0,0,0,.6)); }
  .m-dock::before, .m-dock::after, .m-sheet::before, .m-sheet::after { content: ""; position: absolute; z-index: -1; pointer-events: none; clip-path: polygon(var(--k) 0, calc(100% - var(--k)) 0, 100% var(--k), 100% calc(100% - var(--k)), calc(100% - var(--k)) 100%, var(--k) 100%, 0 calc(100% - var(--k)), 0 var(--k)); }
  .m-dock::before, .m-sheet::before { inset: 0; background: var(--m-gold); }
  .m-dock::after, .m-sheet::after { inset: 1.5px; background: var(--m-plum); clip-path: polygon(calc(var(--k) - .6px) 0, calc(100% - var(--k) + .6px) 0, 100% calc(var(--k) - .6px), 100% calc(100% - var(--k) + .6px), calc(100% - var(--k) + .6px) 100%, calc(var(--k) - .6px) 100%, 0 calc(100% - var(--k) + .6px), 0 calc(var(--k) - .6px)); }
  .m-it { appearance: none; border: 0; background: none; position: relative; isolation: isolate; padding: 14px 0; color: #F2E9F0; font: 600 12px/1.15 var(--font-display); text-align: center; cursor: pointer; }
  .m-it::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--fill, transparent); clip-path: polygon(6px 0, calc(100% - 6px) 0, 100% 6px, 100% calc(100% - 6px), calc(100% - 6px) 100%, 6px 100%, 0 calc(100% - 6px), 0 6px); }
  .m-it:hover { --fill: rgba(255,255,255,.08); color: var(--gold-light); }
  .m-it.is-current { --fill: var(--gold); color: var(--ink); }
  .m-dock:has(.m-it[aria-expanded="true"]) .m-it.is-current:not([aria-expanded="true"]) { --fill: transparent; color: #F2E9F0; }
  .m-it[aria-expanded="true"] { --fill: var(--gold); color: var(--ink); }
  .m-it:focus-visible { outline: 2px solid var(--gold-light); outline-offset: -2px; }

  /* raised submenu: same plum as the bar */
  .m-sheet:not([hidden]) { display: block; --k: 16px; position: fixed; z-index: 59; left: max(12px, env(safe-area-inset-left, 0px)); right: max(12px, env(safe-area-inset-right, 0px)); bottom: calc(max(14px, env(safe-area-inset-bottom, 0px)) + 84px); padding: 16px 10px 10px; isolation: isolate; filter: drop-shadow(0 18px 22px rgba(0,0,0,.6)); animation: m-rise .18s ease-out; }
  .m-sheet .eyebrow { display: block; padding: 0 14px 8px; color: var(--gold-light); }
  .m-sheet ul { list-style: none; margin: 0; padding: 0; max-height: calc(100vh - 260px); max-height: calc(100dvh - 260px); overflow-y: auto; overscroll-behavior: contain; }
  .m-sheet a { display: block; padding: 10px 14px; border-radius: 10px; color: var(--white); text-decoration: none; }
  .m-sheet a b { display: block; font: 600 15px/1.3 var(--font-display); }
  .m-sheet a small { display: block; margin-top: 1px; font-size: 13.5px; color: #CFC8E6; }
  .m-sheet a:hover, .m-sheet a:focus-visible { background: rgba(226,181,101,.14); }
  .m-sheet a:focus-visible { outline: 2px solid var(--gold-light); outline-offset: -2px; }
  .m-sheet a[aria-current="page"] b { color: var(--gold-light); }
  @keyframes m-rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
}
@media (max-width: 900px) and (prefers-reduced-motion: reduce) { .m-sheet:not([hidden]) { animation: none; } }

/* Phone menu refinements */
@media (max-width: 900px) {
  /* login: just the simple gold icon, no circle */
  .m-login { border: 0; background: none; border-radius: 0; width: 44px; height: 44px; }
  .m-login svg { width: 24px; height: 24px; }
  .m-login:hover { background: none; color: #F3DDA8; }
  /* when the first or last word is selected, its gold runs out to the pill's edge (left/top/bottom, or right/top/bottom); the inner side keeps its small cut corners */
  .m-it:first-child::before { inset: -6.5px 0 -6.5px -6.5px; clip-path: polygon(15.4px 0, calc(100% - 6px) 0, 100% 6px, 100% calc(100% - 6px), calc(100% - 6px) 100%, 15.4px 100%, 0 calc(100% - 15.4px), 0 15.4px); }
  .m-it:last-child::before { inset: -6.5px -6.5px -6.5px 0; clip-path: polygon(6px 0, calc(100% - 15.4px) 0, 100% 15.4px, 100% calc(100% - 15.4px), calc(100% - 15.4px) 100%, 6px 100%, 0 calc(100% - 6px), 0 6px); }
}

/* Phone menu end buttons: gold runs almost to the pill's edge, leaving a 3px hairline of plum (chosen "2 · a hairline of plum") */
@media (max-width: 900px) {
  .m-it:first-child::before { inset: -3.5px 0 -3.5px -3.5px; clip-path: polygon(12.4px 0, calc(100% - 6px) 0, 100% 6px, 100% calc(100% - 6px), calc(100% - 6px) 100%, 12.4px 100%, 0 calc(100% - 12.4px), 0 12.4px); }
  .m-it:last-child::before { inset: -3.5px -3.5px -3.5px 0; clip-path: polygon(6px 0, calc(100% - 12.4px) 0, 100% 12.4px, 100% calc(100% - 12.4px), calc(100% - 12.4px) 100%, 6px 100%, 0 calc(100% - 6px), 0 6px); }
}

/* Smart bottom bar: slides away when scrolling down, returns when scrolling up (or near the top / bottom of the page) */
@media (max-width: 900px) {
  .m-dock { transition: transform .38s cubic-bezier(.2,.8,.2,1), opacity .28s ease; }
  .m-dock.is-away { transform: translateY(calc(100% + 40px)); opacity: 0; pointer-events: none; }
}
@media (max-width: 900px) and (prefers-reduced-motion: reduce) { .m-dock { transition: opacity .1s linear; } .m-dock.is-away { transform: none; } }

/* ===== For Neurosurgeons: hover gallery panels (option E) ===== */
.np-hint { color: var(--muted-on-dark) !important; }
.np-panels { display: flex; gap: 12px; height: 480px; container-type: inline-size; }
.np-panel {
  --k: 18px; --bg: linear-gradient(165deg, #2E2160, #1B1238);
  position: relative; isolation: isolate; flex: 1 1 0; min-width: 0; overflow: hidden; scroll-margin-top: 24px;
  transition: flex-grow .6s cubic-bezier(.3,.7,.2,1);
}
.np-panel:nth-child(2) { --bg: linear-gradient(165deg, #3B2742, #1B1238); }
.np-panel:nth-child(3) { --bg: linear-gradient(165deg, #24305A, #1B1238); }
.np-panel.is-open { flex-grow: 3; }
.np-panel::before, .np-panel::after {
  content: ""; position: absolute; z-index: -1; pointer-events: none;
  clip-path: polygon(var(--c) 0, calc(100% - var(--c)) 0, 100% var(--c), 100% calc(100% - var(--c)), calc(100% - var(--c)) 100%, var(--c) 100%, 0 calc(100% - var(--c)), 0 var(--c));
}
.np-panel::before { inset: 0; --c: var(--k); background: linear-gradient(160deg, #8C5E1B, #E9C688 22%, #C8902F 45%, #F3DDA8 62%, #A8721F 82%, #E2B565); opacity: .5; transition: opacity .3s; }
.np-panel::after { inset: 1.5px; --c: calc(var(--k) - .6px); background: var(--bg); }
.np-panel.is-open::before, .np-panel:hover::before { opacity: 1; }
.np-art { position: absolute; inset: 1.5px; z-index: 0; pointer-events: none; background: radial-gradient(circle at 75% 20%, rgba(226,181,101,.22), transparent 55%); }
.np-art b { position: absolute; right: 22px; top: 4px; font: italic 500 170px/1 var(--font-quote); color: rgba(226,181,101,.16); transition: transform .6s cubic-bezier(.3,.7,.2,1); }
.np-panel.is-open .np-art b { transform: translateX(-10px); }
.np-shut {
  position: absolute; inset: 0; z-index: 1; width: 100%; display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-end; gap: 12px;
  padding: 26px 24px; border: 0; background: none; color: var(--white); font: inherit; text-align: left; cursor: pointer; transition: opacity .25s;
}
.np-shut:focus-visible { outline: 2px solid var(--gold); outline-offset: -6px; }
.np-vt { writing-mode: vertical-rl; text-orientation: sideways; transform: rotate(180deg); white-space: nowrap; font-family: var(--font-display); font-weight: 800; font-size: 21px; }
.np-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--gold); }
.np-dot.is-live { background: #FF5A5A; }
.np-panel.is-open .np-shut { opacity: 0; visibility: hidden; transition: opacity .25s, visibility 0s .25s; }
.np-body {
  position: absolute; left: 0; bottom: 0; z-index: 1; width: calc((100cqw - 24px) * .6); padding: 30px 34px;
  display: flex; flex-direction: column; align-items: flex-start; gap: 6px;
  opacity: 0; visibility: hidden; transition: opacity .25s, visibility 0s .25s;
}
.np-panel.is-open .np-body { opacity: 1; visibility: visible; transition: opacity .3s .3s, visibility 0s; }
.np-body h3 { font-weight: 800; font-size: 28px; line-height: 1.2; color: var(--white); margin-top: 4px; }
.np-body h3:focus { outline: none; }
.np-verb { margin: 0; font: italic 500 19px/1.4 var(--font-quote); color: var(--gold-light); }
.np-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin: 8px 0 6px; }
.np-badge { display: inline-flex; align-items: center; gap: 7px; padding: 4px 12px; border-radius: 999px; font-family: var(--font-display); font-weight: 800; font-size: 11px; letter-spacing: .07em; text-transform: uppercase; }
.np-badge.is-live { background: rgba(255,80,80,.16); color: #FFB4B4; }
.np-badge.is-live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #FF5A5A; }
.np-badge.is-soon { background: rgba(226,181,101,.18); color: var(--gold-light); }
.np-lead { margin: 0; color: var(--muted-on-dark); max-width: 36em; }
.np-more { margin-top: 8px; padding: 0 0 2px; border: 0; border-bottom: 1px solid transparent; background: none; color: var(--gold); font-family: var(--font-display); font-weight: 700; font-size: 14px; cursor: pointer; }
.np-more::after { content: " →"; }
.np-more:hover { border-bottom-color: var(--gold); }
.np-more:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
/* the "Read more" pop-up reuses the bio pop-up (light lavender card) */
.np-pop-head { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding-bottom: 22px; border-bottom: 1px solid #DCD4EE; }
.np-pop-head h2 { font-weight: 800; font-size: 30px; line-height: 1.2; }
.np-pop-fmt { margin: 0; font-family: var(--font-display); font-weight: 700; font-size: 15px; color: var(--brown); }
.np-pop .np-badge.is-live { background: #FDE8E8; color: #9B1C1C; }
.np-pop .np-badge.is-soon { background: #F3E3BD; color: var(--brown); }
.np-pop .yt-link, .np-pop .np-join { color: var(--indigo); border-color: var(--gold-deep); }
.np-pop .yt-link:hover, .np-pop .np-join:hover { color: var(--indigo); background: rgba(200,144,47,.12); }
@media (max-width: 900px) {
  .np-panels { flex-direction: column; height: auto; }
  .np-panel { flex: none !important; min-height: 74px; }
  .np-shut { flex-direction: row; align-items: center; justify-content: flex-start; gap: 14px; padding: 0 22px; }
  .np-vt { writing-mode: horizontal-tb; transform: none; font-size: 18px; }
  .np-art b { font-size: 110px; }
  .np-panel:not(.is-open) .np-body { display: none; }
  .np-panel.is-open .np-body { position: relative; width: auto; padding: 24px 22px; }
}
@media (prefers-reduced-motion: reduce) {
  .np-panel, .np-art b, .np-shut, .np-body { transition: none !important; }
}

/* home carousel: the "Crazy by Chiari" menu tab hangs down over the top of the headline on the bridge slide; give it room */
@media (min-width: 901px) {
  .slide-bridge { padding-top: 104px; }
}

/* narrow desktop: below the content's max width the side margin is only the page edge, so clear the menu with exactly that (was doubling up) */
@media (min-width: 901px) {
  .wrap { padding-left: max(24px, calc(var(--rail-clear) - max(0px, (100vw - var(--max)) / 2))); }
}

/* phones: the carousel is only as tall as the slide being shown (slides no longer all take the tallest one's height) */
@media (max-width: 900px) {
  .slides { position: relative; }
  .slide:not(.is-active) { position: absolute; top: 0; left: 0; width: 100%; }
}

/* ===== Zoom page redesign: group rows (5c), calendar pop-ups, "How to join" timeline ===== */
/* --- group rows: plain white rows; a row fills with its group's card colour on hover, keyboard focus, or when opened --- */
.zoom-rows { margin-top: 48px; border-top: 1px solid var(--line-light); }
.zoom-row { scroll-margin-top: 24px; border-bottom: 1px solid var(--line-light); border-radius: 14px; transition: background-color .2s; }
.zoom-row:hover, .zoom-row:focus-within, .zoom-row.is-open, .zoom-row:target { background: color-mix(in srgb, var(--g) 8%, white); border-bottom-color: transparent; }
.zr { display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; gap: 2px 18px; padding: 18px 20px 16px; }
.zr-logo { grid-column: 1; grid-row: 1 / span 2; width: 52px; height: 52px; display: grid; place-items: center; }
.zr-logo img { display: block; width: auto; height: auto; max-width: 100%; max-height: 100%; }
.zr-host { grid-column: 2; grid-row: 1; align-self: end; font-family: var(--font-display); font-weight: 700; font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; color: color-mix(in srgb, var(--g) 75%, black); }
.zr-name { grid-column: 2; grid-row: 2; margin: 0; font-weight: 800; font-size: 18px; line-height: 1.3; color: var(--indigo); }
.zr-act { grid-column: 3; grid-row: 1 / span 2; align-self: start; }
.zr-go { display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px; border-radius: 999px; border: 1.5px solid var(--indigo); color: var(--indigo); background: transparent; font-family: var(--font-display); font-weight: 700; font-size: 13px; text-decoration: none; white-space: nowrap; transition: background-color .2s, color .2s; }
.zr-go:hover { background: var(--indigo); color: var(--white); }
.zr-go:focus-visible { outline: 2px solid var(--indigo); outline-offset: 3px; }
.zr-soon { display: block; max-width: 150px; text-align: right; font-family: var(--font-display); font-weight: 700; font-size: 13px; line-height: 1.3; color: var(--brown); }
.zr-times { grid-column: 2 / -1; list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 12px; }
.zr-times li { display: flex; align-items: center; gap: 12px; }
.zr-times li::before { content: none; }
.zr-when { font-size: 15.5px; line-height: 1.4; color: var(--muted-on-light); }
.zr-when b { font-family: var(--font-display); font-weight: 700; font-size: 14.5px; color: var(--indigo); }
.zr-next { display: block; margin-bottom: 2px; font-family: var(--font-display); font-weight: 700; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: color-mix(in srgb, var(--g) 70%, black); }
/* the little tear-off calendar (month on a coloured top, day underneath, two rings) */
.zr-cal { position: relative; flex: none; width: 34px; border-radius: 6px; background: var(--white); box-shadow: 0 0 0 1px color-mix(in srgb, var(--g) 30%, white); text-align: center; line-height: 1; }
.zr-cal[hidden] { display: none; }
.zr-cal i { display: block; border-radius: 6px 6px 0 0; background: var(--g); color: var(--white); font: normal 800 7.5px/1 var(--font-display); letter-spacing: .1em; text-transform: uppercase; padding: 4px 0 3px; }
.zr-cal b { display: block; font-family: var(--font-display); font-weight: 800; font-size: 15px; line-height: 1; color: var(--indigo); padding: 3px 0 4px; }
.zr-cal::before, .zr-cal::after { content: ""; position: absolute; top: -2px; width: 3px; height: 6px; border-radius: 2px; background: color-mix(in srgb, var(--g) 60%, black); }
.zr-cal::before { left: 9px; } .zr-cal::after { right: 9px; }
.zr-foot { grid-column: 1 / -1; margin-top: 12px; }
.zr-more { appearance: none; border: 0; background: none; padding: 0; display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-display); font-weight: 700; font-size: 13.5px; color: color-mix(in srgb, var(--g) 70%, black); cursor: pointer; }
.zr-more::after { content: "+"; font-size: 16px; line-height: 1; }
.zr-more[aria-expanded="true"]::after { content: "–"; }
.zr-more:hover { text-decoration: underline; }
.zr-more:focus-visible { outline: 2px solid var(--indigo); outline-offset: 3px; }
.zr-desc { margin: 0; padding: 0 20px 20px; max-width: 60em; font-size: 15.5px; color: var(--muted-on-light); }
@media (max-width: 760px) {
  .zr { grid-template-columns: 40px minmax(0, 1fr) auto; gap: 4px 12px; padding: 16px 12px 14px; }
  .zr-logo { width: 40px; height: 40px; grid-row: 1; align-self: start; }
  .zr-act { grid-row: 1; align-self: center; }
  .zr-name { grid-column: 2 / -1; font-size: 17px; }
  .zr-times { grid-column: 1 / -1; }
  .zr-go { font-size: 12.5px; padding: 5px 11px; }
  .zr-soon { max-width: 96px; font-size: 12px; }
  .zr-desc { padding: 0 12px 18px; }
}

/* --- "How to join": three steps on a gold timeline (no cards) --- */
.zoom-steps { list-style: none; margin: 28px 0 0; padding: 0; position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); counter-reset: zstep; }
.zoom-steps::before { content: ""; position: absolute; left: 15px; right: calc(33.3% - 15px); top: 15px; height: 2px; background: linear-gradient(90deg, var(--gold-deep), var(--gold)); }
.zoom-steps li { position: relative; counter-increment: zstep; padding: 0 18px 0 0; }
.zoom-steps li::before { content: counter(zstep); position: relative; display: grid; place-items: center; width: 30px; height: 30px; margin-bottom: 14px; border-radius: 50%; background: var(--indigo); color: var(--gold); font-family: var(--font-display); font-weight: 800; font-size: 14px; box-shadow: 0 0 0 5px var(--lavender); }
.zoom-steps b { display: block; margin-bottom: 4px; font-family: var(--font-display); font-weight: 800; font-size: 15px; line-height: 1.3; color: var(--indigo); }
.zoom-steps span { display: block; font-size: 14.5px; line-height: 1.45; color: var(--muted-on-light); }
@media (max-width: 1000px) {
  .zoom-steps { grid-template-columns: 1fr; }
  .zoom-steps::before { content: none; }
  .zoom-steps li { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 0 14px; padding: 0 0 18px; }
  .zoom-steps li::before { grid-row: span 2; margin: 0; }
  .zoom-steps li:not(:last-child)::after { content: ""; position: absolute; left: 14px; top: 30px; bottom: 0; width: 2px; background: var(--gold); }
}

/* --- calendar: compact (no "Coming up" box beside it any more), meeting days are buttons --- */
.zoom-intro .meet-cal { position: relative; align-self: start; }
.zoom-intro .cal-days { flex: none; }
.cal-day.has-meeting { appearance: none; border: 0; padding: 0; font: inherit; font-size: 14px; font-weight: 800; cursor: pointer; transition: transform .15s, box-shadow .15s; }
.cal-day.has-meeting:hover, .cal-day.has-meeting[aria-expanded="true"] { transform: translateY(-2px); box-shadow: 0 0 0 2px var(--g1), 0 8px 14px -8px rgba(27,18,56,.5); }
.cal-day.has-meeting:focus-visible { outline: 2px solid var(--indigo); outline-offset: 2px; }
.cal-hint { margin: -4px 0 0; font-size: 13.5px; color: var(--faint-on-light); text-align: center; }
/* legend: one short wrapping line of dots and names */
.zoom-intro .cal-legend { display: flex; flex-direction: row; flex-wrap: wrap; justify-content: center; gap: 6px 16px; margin: 0; padding: 14px 0 0; border-top: 1px solid var(--line-light); }
.zoom-intro .cal-legend li { display: block; }
.zoom-intro .cal-legend a { gap: 7px; }
.zoom-intro .cal-legend .sw { width: auto; height: auto; background: none; border-radius: 0; }
.zoom-intro .cal-legend .sw::after { width: 9px; height: 9px; }
.zoom-intro .cal-legend .nm { font-size: 13px; }
.zoom-intro .cal-legend a:hover .nm { text-decoration: underline; }

/* --- calendar pop-up --- */
.cal-pop { position: absolute; z-index: 20; width: min(320px, calc(100% - 24px)); padding: 6px; border-radius: 16px; background: var(--white); box-shadow: 0 0 0 1px var(--line-light), 0 22px 40px -18px rgba(27,18,56,.55); opacity: 0; transform: translateY(4px); transition: opacity .15s, transform .15s; pointer-events: none; }
.cal-pop[hidden] { display: none; }
.cal-pop.is-open { opacity: 1; transform: none; pointer-events: auto; }
.cal-pop::after { content: ""; position: absolute; left: var(--ax, 50%); width: 14px; height: 14px; background: var(--white); transform: translateX(-50%) rotate(45deg); box-shadow: 1px 1px 0 var(--line-light); }
.cal-pop.is-above::after { bottom: -7px; }
.cal-pop.is-below::after { top: -7px; box-shadow: -1px -1px 0 var(--line-light); }
.pop-date { margin: 0; padding: 8px 12px 4px; font-family: var(--font-display); font-weight: 800; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--faint-on-light); }
.pop-item { position: relative; z-index: 1; display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 4px 12px; padding: 12px; border-radius: 12px; background: color-mix(in srgb, var(--g) 8%, white); }
.pop-item + .pop-item { margin-top: 6px; }
.pop-logo { grid-row: span 2; width: 44px; height: 44px; display: grid; place-items: center; }
.pop-logo img { display: block; width: auto; height: auto; max-width: 100%; max-height: 100%; }
.pop-host { display: block; font-family: var(--font-display); font-weight: 700; font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: color-mix(in srgb, var(--g) 75%, black); }
.pop-name { margin: 0; font-family: var(--font-display); font-weight: 800; font-size: 15px; line-height: 1.3; color: var(--indigo); }
.pop-time { margin: 0; font-size: 14.5px; color: var(--muted-on-light); }
.pop-time b { font-family: var(--font-display); font-weight: 700; color: var(--indigo); }
.pop-acts { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-top: 8px; }
.pop-go { display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px; border-radius: 999px; border: 1.5px solid var(--indigo); color: var(--indigo); font-family: var(--font-display); font-weight: 700; font-size: 13px; text-decoration: none; white-space: nowrap; }
.pop-go:hover { background: var(--indigo); color: var(--white); }
.pop-more { font-family: var(--font-display); font-weight: 700; font-size: 12.5px; color: color-mix(in srgb, var(--g) 70%, black); text-decoration: none; }
.pop-more:hover { text-decoration: underline; }
.pop-go:focus-visible, .pop-more:focus-visible { outline: 2px solid var(--indigo); outline-offset: 3px; }
.pop-soon { font-family: var(--font-display); font-weight: 700; font-size: 13px; color: var(--brown); }
.pop-x { position: absolute; z-index: 2; top: 6px; right: 8px; width: 28px; height: 28px; border: 0; border-radius: 50%; background: none; font-size: 20px; line-height: 1; color: var(--faint-on-light); cursor: pointer; display: none; }
.pop-x:hover { background: var(--lavender); }
.cal-pop.is-pinned .pop-x { display: block; }
/* past meetings: same group colours, just faded like the past days */
.pop-item.is-past { background: color-mix(in srgb, var(--g) 5%, white); }
.pop-item.is-past > * { opacity: .55; }
.pop-item.is-past .pop-acts { opacity: .75; }
.pop-past { grid-column: 1 / -1; margin: 2px 0 0; font-family: var(--font-display); font-weight: 700; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: color-mix(in srgb, var(--g) 75%, black); }
@media (prefers-reduced-motion: reduce) {
  .zoom-row, .zr-go, .cal-pop, .cal-day.has-meeting { transition: none; }
  .cal-day.has-meeting:hover { transform: none; }
}

/* For Neurosurgeons intro: text and a pull quote (the framework box is gone; its heading now introduces the panels) */
.ni-intro { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 32px 56px; align-items: center; }
.ni-quote { position: relative; margin: 0; padding: 8px 0 8px 32px; border-left: 3px solid var(--gold-deep); }
.ni-quote p { margin: 0; font-family: var(--font-quote); font-style: italic; font-weight: 500; font-size: clamp(24px, 2.6vw, 32px); line-height: 1.35; color: var(--indigo); }
.ni-quote p::before { content: "\201C"; position: absolute; left: 20px; top: -34px; font-family: var(--font-quote); font-style: italic; font-weight: 500; font-size: 110px; line-height: 1; color: rgba(200,144,47,.22); pointer-events: none; }
.ni-quote cite { display: block; margin-top: 16px; font-family: var(--font-display); font-weight: 700; font-size: 12px; letter-spacing: .16em; text-transform: uppercase; font-style: normal; color: var(--gold-text); }
.np-section .section-head > p:not(.np-hint) { color: var(--muted-on-dark); max-width: 46em; }
@media (max-width: 860px) { .ni-intro { grid-template-columns: 1fr; } }

/* ===== Brave Brain Club redesign: circle of giving, opening brain bag, donor strip ===== */
/* circle of giving (dark band under the page title) */
.bbc-give { background: radial-gradient(circle at 85% 20%, rgba(226,181,101,.2), transparent 45%), var(--ink); }
.bbc-give-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 40px; align-items: center; }
.bbc-give h2 { font-weight: 800; font-size: clamp(32px, 4vw, 48px); line-height: 1.08; margin: 8px 0 14px; color: var(--white); }
.bbc-give h2 em { font-style: normal; color: var(--gold); }
.bbc-give-text p { color: var(--muted-on-dark); margin: 0 0 22px; max-width: 30em; }
.bbc-cycle { position: relative; width: min(340px, 100%); aspect-ratio: 1; margin: 0 auto; }
.bbc-cycle .ring { position: absolute; inset: 0; width: 100%; height: 100%; }
.bbc-cyc-list { list-style: none; margin: 0; padding: 0; }
.bbc-cycle .cyc { position: absolute; width: 42%; text-align: center; transform: translate(-50%, -50%); }
.bbc-cycle .cyc::before { content: none; }
.bbc-cycle .cyc b { display: grid; place-items: center; width: 64px; height: 64px; margin: 0 auto 6px; border-radius: 50%; background: var(--gold); color: var(--ink); font-family: var(--font-display); font-weight: 800; font-size: 15px; box-shadow: 0 0 0 6px rgba(226,181,101,.18); }
.bbc-cycle .cyc span { display: block; font-size: 13.5px; line-height: 1.35; color: var(--muted-on-dark); }
.bbc-cycle .c1 { left: 50%; top: 16%; } .bbc-cycle .c2 { left: 84%; top: 70%; } .bbc-cycle .c3 { left: 16%; top: 70%; }
.bbc-cycle .mid { position: absolute; left: 50%; top: 52%; transform: translate(-50%, -50%); margin: 0; text-align: center; font-family: var(--font-display); font-weight: 800; font-size: 13px; line-height: 1.3; letter-spacing: .1em; text-transform: uppercase; color: var(--gold-light); }
.bbc-cycle .mid b { display: block; font-size: 42px; line-height: 1; letter-spacing: 0; color: var(--white); }
@media (max-width: 860px) { .bbc-give-grid { grid-template-columns: 1fr; } }

/* the brain bag */
.bbc-bag { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 36px; align-items: center; }
@media (max-width: 860px) { .bbc-bag { grid-template-columns: 1fr; gap: 10px; } }
.bb-art { display: block; width: 100%; max-width: 520px; margin: 0 auto; overflow: visible; }
.bb-art .it { cursor: pointer; outline: none; transition: transform .25s cubic-bezier(.3,.7,.2,1), filter .25s; transform-box: fill-box; transform-origin: 50% 100%; }
.bb-art .it:hover, .bb-art .it:focus-visible { transform: translateY(-8px) scale(1.04); }
.bb-art .it.body:hover, .bb-art .it.body:focus-visible { transform: scale(1.015); }
.bb-art .it.is-on { filter: drop-shadow(0 0 7px rgba(200,144,47,.95)) drop-shadow(0 0 2px rgba(200,144,47,.9)); }
.bb-art .it:focus-visible { filter: drop-shadow(0 0 3px #24174F); }
.bb-art .bob { animation: bbc-bob 3.6s ease-in-out infinite; transform-box: fill-box; }
.bb-art .bob.b2 { animation-delay: -.9s; } .bb-art .bob.b3 { animation-delay: -1.8s; } .bb-art .bob.b4 { animation-delay: -2.7s; }
@keyframes bbc-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }
.bb-art .spark { animation: bbc-twinkle 2.4s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
.bb-art .spark.s2 { animation-delay: -.8s; } .bb-art .spark.s3 { animation-delay: -1.6s; }
@keyframes bbc-twinkle { 0%, 100% { opacity: .25; transform: scale(.7); } 50% { opacity: 1; transform: scale(1); } }
.bb-art .tag { font-family: var(--font-display); font-weight: 800; font-size: 11.5px; fill: var(--indigo); pointer-events: none; }
.bb-art .tag-bg { fill: var(--white); stroke: var(--line-light); stroke-width: 1; }
/* packed: each item sits inside the bag (offset by --dx/--dy); .is-open slides them out to their spots */
.bbc-bag.is-ready .mv { transform: translate(var(--dx, 0px), var(--dy, 0px)); }
.bbc-bag.is-ready .mv { transition: transform .9s cubic-bezier(.34,1.45,.5,1); transition-delay: var(--wait, 0s); }
.bbc-bag.is-ready .bb-art.is-open .mv { transform: none; }
.bbc-bag.is-ready .tagg, .bbc-bag.is-ready .trail { opacity: 0; transition: opacity .4s; transition-delay: calc(var(--wait, 0s) + .55s); }
.bbc-bag.is-ready .bb-art.is-open .tagg, .bbc-bag.is-ready .bb-art.is-open .trail { opacity: 1; }
.bb-art.is-opening .brainbody { animation: bbc-wobble .55s ease; transform-box: fill-box; transform-origin: 50% 100%; }
@keyframes bbc-wobble { 0% { transform: scale(1, 1); } 35% { transform: scale(1.04, .95); } 70% { transform: scale(.98, 1.03); } 100% { transform: scale(1, 1); } }
.bbc-replay { appearance: none; border: 0; background: none; padding: 0; margin: 14px auto 0; display: block; font-family: var(--font-display); font-weight: 700; font-size: 13px; color: var(--faint-on-light); cursor: pointer; }
.bbc-replay[hidden] { display: none; }
.bbc-replay:hover { color: var(--indigo); text-decoration: underline; }
.bbc-replay:focus-visible { outline: 2px solid var(--indigo); outline-offset: 3px; }
.bbc-note { margin: 10px 0 0; text-align: center; font: italic 400 14.5px/1.5 var(--font-body); color: #8E86AB; }

/* item text: plain text beside the drawing, no card. Without JavaScript all six items are listed. */
.bb-panel { padding: 4px 0 18px; }
.bb-panel.is-prompt, .bb-nav[hidden] { display: none; }
.bbc-bag.is-ready .bb-panel { display: none; }
.bbc-bag.is-ready .bb-panel.is-on { display: block; animation: bbc-fadein .3s ease; }
@keyframes bbc-fadein { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.bb-ey { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 700; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: color-mix(in srgb, var(--c, #A8721F) 80%, black); }
.bb-ey::before { content: ""; width: 28px; height: 3px; border-radius: 3px; background: var(--c, var(--gold-deep)); }
.bb-panel h3 { font-weight: 800; font-size: clamp(24px, 2.6vw, 30px); line-height: 1.2; margin: 10px 0 12px; color: var(--indigo); }
.bb-panel p { margin: 0; color: var(--muted-on-light); font-size: 16.5px; line-height: 1.65; max-width: 32em; }
.bb-nav { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 4px; }
.bb-dots { display: flex; gap: 8px; }
.bb-dots button { appearance: none; border: 0; padding: 0; width: 10px; height: 10px; border-radius: 50%; background: #D6CDEA; cursor: pointer; transition: transform .2s, background-color .2s; }
.bb-dots button[aria-current="true"] { background: var(--c, var(--gold-deep)); transform: scale(1.35); }
.bb-next { appearance: none; border: 0; background: none; padding: 0 0 2px; font-family: var(--font-display); font-weight: 700; font-size: 14px; color: var(--indigo); border-bottom: 1.5px solid var(--c, var(--gold-deep)); cursor: pointer; }
.bb-dots button:focus-visible, .bb-next:focus-visible { outline: 2px solid var(--indigo); outline-offset: 3px; }

/* donor strip above the request form */
.bbc-fund { display: flex; align-items: center; justify-content: space-between; gap: 18px 40px; flex-wrap: wrap; background: var(--sand); border-radius: 22px; padding: 28px 32px; }
.bbc-fund > div { flex: 1 1 420px; }
.bbc-fund h2 { font-weight: 800; font-size: 26px; line-height: 1.2; margin: 6px 0 8px; }
.bbc-fund p { margin: 0; color: var(--muted-on-light); font-size: 15.5px; max-width: 46em; }
@media (prefers-reduced-motion: reduce) {
  .bb-art .bob, .bb-art .spark, .bb-art.is-opening .brainbody, .bbc-bag.is-ready .bb-panel.is-on { animation: none; }
  .bb-art .it, .bbc-bag.is-ready .mv, .bbc-bag.is-ready .tagg, .bbc-bag.is-ready .trail, .bb-dots button { transition: none; }
}
/* the circle's full explanations (original wording), under the diagram */
.bbc-how { grid-column: 1 / -1; list-style: none; margin: 36px 0 0; padding: 28px 0 0; border-top: 1px solid rgba(226,181,101,.3); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px 32px; }
.bbc-how li::before { content: none; }
.bbc-how b { display: block; margin-bottom: 6px; font-family: var(--font-display); font-weight: 800; font-size: 15px; letter-spacing: .08em; text-transform: uppercase; color: var(--gold); }
.bbc-how span { display: block; font-size: 15px; line-height: 1.55; color: var(--muted-on-dark); }
@media (max-width: 860px) { .bbc-how { grid-template-columns: 1fr; } }

/* Brave Brain Club band: tighter */
.bbc-give.section { padding-block: 52px 48px; }
.bbc-give-grid { gap: 24px 40px; }
.bbc-give h2 { margin: 6px 0 10px; font-size: clamp(30px, 3.4vw, 42px); }
.bbc-give-text p { margin: 0 0 12px; font-size: 16.5px; line-height: 1.5; }
.bbc-give-text .btn-row { margin-top: 18px; }
.bbc-cycle { width: min(290px, 100%); }
.bbc-cycle .cyc b { width: 54px; height: 54px; font-size: 14px; }
.bbc-cycle .cyc span { font-size: 12.5px; }
.bbc-cycle .c2 { top: 68%; } .bbc-cycle .c3 { top: 68%; }
.bbc-how { margin-top: 20px; padding-top: 18px; gap: 16px 32px; }
.bbc-how span { font-size: 14.5px; line-height: 1.5; }
@media (max-width: 860px) { .bbc-give.section { padding-block: 40px 36px; } }

/* brain bag hover: grow in place instead of lifting (lifting moved the item out from under the pointer, so thin items like the wristband flickered) */
.bb-art .it { transform-origin: 50% 50%; }
.bb-art .it:hover, .bb-art .it:focus-visible { transform: scale(1.08); }
.bb-art .it.body:hover, .bb-art .it.body:focus-visible { transform: scale(1.015); }

/* "Keep the circle going": no box, headline and button left, paragraph right behind a gold rule */
.bbc-fund2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 20px 56px; align-items: center; }
.bbc-fund2 h2 { font-weight: 800; font-size: 28px; line-height: 1.2; margin: 6px 0 18px; }
.bbc-fund2 .rule { border-left: 3px solid var(--gold-deep); padding-left: 28px; }
.bbc-fund2 p { margin: 0; color: var(--muted-on-light); font-size: 17px; line-height: 1.6; }
@media (max-width: 860px) { .bbc-fund2 { grid-template-columns: 1fr; } .bbc-fund2 .rule { padding-left: 20px; } }

/* ===== Forms (mock-form): gold plaque frame, cut-corner floating-label fields, cut-corner button, custom dropdown ===== */
.mock-form { --k: 20px; position: relative; isolation: isolate; background: none; border: 0; border-radius: 0; padding: clamp(28px, 4vw, 44px); filter: drop-shadow(0 14px 20px rgba(36,23,79,.16)); }
.mock-form::before, .mock-form::after { content: ""; position: absolute; z-index: -1; pointer-events: none; clip-path: polygon(var(--k) 0, calc(100% - var(--k)) 0, 100% var(--k), 100% calc(100% - var(--k)), calc(100% - var(--k)) 100%, var(--k) 100%, 0 calc(100% - var(--k)), 0 var(--k)); }
.mock-form::before { inset: 0; background: linear-gradient(160deg, #8C5E1B, #E9C688 22%, #C8902F 45%, #F3DDA8 62%, #A8721F 82%, #E2B565); }
.mock-form::after { inset: 2px; background: var(--white); }
.mock-form .field { gap: 0; }
.mock-form .fld { --k: 10px; position: relative; isolation: isolate; }
.mock-form .fld::before, .mock-form .fld::after { content: ""; position: absolute; z-index: -1; pointer-events: none; clip-path: polygon(var(--k) 0, calc(100% - var(--k)) 0, 100% var(--k), 100% calc(100% - var(--k)), calc(100% - var(--k)) 100%, var(--k) 100%, 0 calc(100% - var(--k)), 0 var(--k)); transition: background .2s; }
.mock-form .fld::before { inset: 0; background: #D9D2EA; }
.mock-form .fld::after { inset: 1.5px; background: #FBF9FE; }
.mock-form .fld:hover::before { background: #BFB3DC; }
.mock-form .fld:focus-within::before, .mock-form .fld.is-open::before { background: linear-gradient(160deg, #8C5E1B, #E9C688 22%, #C8902F 45%, #F3DDA8 62%, #A8721F 82%, #E2B565); }
.mock-form .fld:focus-within::after, .mock-form .fld.is-open::after { background: var(--white); }
.mock-form .fld.is-open { z-index: 30; }
.mock-form .fld input, .mock-form .fld select, .mock-form .fld textarea { display: block; width: 100%; border: 0; border-radius: 0; background: transparent; padding: 25px 18px 8px; font: 400 17px var(--font-body); color: var(--indigo); outline: 0; appearance: none; -webkit-appearance: none; }
.mock-form .fld textarea { min-height: 128px; resize: vertical; }
.mock-form .fld label { position: absolute; left: 19px; top: 17px; margin: 0; font: 600 16px var(--font-body); color: #8E86AB; pointer-events: none; transition: top .18s, font-size .18s, letter-spacing .18s, color .18s; }
.mock-form .fld input:focus + label, .mock-form .fld input:not(:placeholder-shown) + label,
.mock-form .fld textarea:focus + label, .mock-form .fld textarea:not(:placeholder-shown) + label,
.mock-form .fld-sel select + label, .mock-form .fld.has label, .mock-form .fld.is-open label { top: 8px; font: 700 11px var(--font-display); letter-spacing: .12em; text-transform: uppercase; color: #6E4A10; }
.mock-form .fld-sel.dd-on:not(.has):not(.is-open) label { top: 17px; font: 600 16px var(--font-body); letter-spacing: 0; text-transform: none; color: #8E86AB; }
/* native select (before the script runs, or without it) */
.mock-form .fld-sel:not(.dd-on) select { padding-right: 40px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%23A8721F' stroke-width='2'%3E%3Cpath d='M1 1l5 5 5-5'/%3E%3C/svg%3E") no-repeat right 16px center; }
/* custom dropdown */
.mock-form .dd-btn { appearance: none; -webkit-appearance: none; display: block; width: 100%; min-height: 56px; border: 0; background: transparent; text-align: left; cursor: pointer; padding: 25px 44px 8px 18px; font: 400 17px var(--font-body); color: var(--indigo); outline: 0; }
.mock-form .dd-btn::after { content: ""; position: absolute; right: 18px; top: 50%; width: 8px; height: 8px; margin-top: -6px; border-right: 2px solid var(--gold-text); border-bottom: 2px solid var(--gold-text); transform: rotate(45deg); transition: transform .2s; }
.mock-form .fld.is-open .dd-btn::after { transform: rotate(-135deg); margin-top: -2px; }
.mock-form .dd-btn:focus-visible { box-shadow: inset 0 0 0 2px rgba(36,23,79,.0); }
.mock-form .dd-val { display: block; min-height: 24px; }
.mock-form .dd-panel { --k: 12px; position: absolute; z-index: 40; left: 0; right: 0; top: calc(100% + 8px); isolation: isolate; filter: drop-shadow(0 16px 22px rgba(36,23,79,.28)); }
.mock-form .dd-panel[hidden] { display: none; }
.mock-form .dd-panel::before, .mock-form .dd-panel::after { content: ""; position: absolute; z-index: -1; clip-path: polygon(var(--k) 0, calc(100% - var(--k)) 0, 100% var(--k), 100% calc(100% - var(--k)), calc(100% - var(--k)) 100%, var(--k) 100%, 0 calc(100% - var(--k)), 0 var(--k)); }
.mock-form .dd-panel::before { inset: 0; background: linear-gradient(160deg, #8C5E1B, #E9C688 22%, #C8902F 45%, #F3DDA8 62%, #A8721F 82%, #E2B565); }
.mock-form .dd-panel::after { inset: 2px; background: var(--white); }
.mock-form .dd-list { list-style: none; margin: 0; padding: 12px 8px; max-height: 280px; overflow-y: auto; }
.mock-form .dd-list li { position: relative; margin: 0; padding: 11px 16px 11px 38px; border-radius: 8px; font: 400 16.5px/1.3 var(--font-body); color: var(--indigo); cursor: pointer; }
.mock-form .dd-list li::before { content: none; }
.mock-form .dd-list li.is-active { background: #F1ECFA; }
.mock-form .dd-list li[aria-selected="true"] { font-weight: 600; }
.mock-form .dd-list li[aria-selected="true"]::before { content: ""; display: block; position: absolute; left: 16px; top: 50%; width: 5px; height: 10px; margin-top: -7px; border-right: 2.5px solid var(--gold-text); border-bottom: 2.5px solid var(--gold-text); transform: rotate(40deg); }
/* the button */
.mock-form .btn.btn-cut { --k: 12px; position: relative; isolation: isolate; align-self: flex-start; margin-top: 6px; padding: 15px 36px; border: 0; border-radius: 0; background: none; box-shadow: none; color: var(--gold); font: 800 16px var(--font-display); cursor: pointer; transition: transform .15s, filter .2s; }
.mock-form .btn.btn-cut::before, .mock-form .btn.btn-cut::after { content: ""; position: absolute; z-index: -1; clip-path: polygon(var(--k) 0, calc(100% - var(--k)) 0, 100% var(--k), 100% calc(100% - var(--k)), calc(100% - var(--k)) 100%, var(--k) 100%, 0 calc(100% - var(--k)), 0 var(--k)); transition: background .2s; }
.mock-form .btn.btn-cut::before { inset: 0; background: linear-gradient(160deg, #8C5E1B, #E9C688 22%, #C8902F 45%, #F3DDA8 62%, #A8721F 82%, #E2B565); }
.mock-form .btn.btn-cut::after { inset: 2px; background: var(--indigo); }
.mock-form .btn.btn-cut:hover { background: none; transform: translateY(-1px); filter: drop-shadow(0 6px 8px rgba(36,23,79,.25)); }
.mock-form .btn.btn-cut:hover::after { background: #33236B; }
.mock-form .btn.btn-cut:focus-visible { outline: 2px solid var(--indigo); outline-offset: 4px; }
@media (prefers-reduced-motion: reduce) { .mock-form .fld label, .mock-form .dd-btn::after, .mock-form .btn.btn-cut { transition: none; } }
.mock-form .field-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); }
.mock-form .fld label { white-space: nowrap; max-width: calc(100% - 44px); overflow: hidden; text-overflow: ellipsis; }
.mock-form .fld input:focus + label, .mock-form .fld input:not(:placeholder-shown) + label,
.mock-form .fld textarea:focus + label, .mock-form .fld textarea:not(:placeholder-shown) + label,
.mock-form .fld-sel select + label, .mock-form .fld.has label, .mock-form .fld.is-open label { letter-spacing: .09em; font-size: 10.5px; }

/* forms: smaller and quieter (less of the page's focus) */
.mock-form { --k: 16px; max-width: 760px; padding: clamp(20px, 3vw, 30px); gap: 12px; }
.mock-form h2 { font-size: 21px; }
.mock-form > p { font-size: 15px; line-height: 1.5; }
.mock-form .field-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); gap: 10px 14px; }
.mock-form .fld { --k: 8px; }
.mock-form .fld input, .mock-form .fld select, .mock-form .fld textarea { padding: 21px 14px 6px; font-size: 15.5px; }
.mock-form .fld textarea { min-height: 96px; }
.mock-form .fld label { left: 15px; top: 14px; font-size: 14.5px; }
.mock-form .fld input:focus + label, .mock-form .fld input:not(:placeholder-shown) + label,
.mock-form .fld textarea:focus + label, .mock-form .fld textarea:not(:placeholder-shown) + label,
.mock-form .fld-sel select + label, .mock-form .fld.has label, .mock-form .fld.is-open label { top: 6px; font-size: 10px; }
.mock-form .fld-sel.dd-on:not(.has):not(.is-open) label { top: 14px; font-size: 14.5px; }
.mock-form .dd-btn { min-height: 47px; padding: 21px 38px 6px 14px; font-size: 15.5px; }
.mock-form .dd-btn::after { right: 15px; width: 7px; height: 7px; }
.mock-form .dd-panel { --k: 10px; top: calc(100% + 6px); }
.mock-form .dd-list { padding: 8px 6px; }
.mock-form .dd-list li { padding: 9px 14px 9px 34px; font-size: 15px; }
.mock-form .dd-list li[aria-selected="true"]::before { left: 14px; }
.mock-form .btn.btn-cut { --k: 10px; margin-top: 4px; padding: 11px 26px; font-size: 14.5px; }
.mock-form .form-note { font-size: 14px; padding: 10px 12px; }

/* ===== For Neurosurgeons: the bridge (three stepping points on an arch, one open conversation below) ===== */
.bg-section { text-align: center; }
.bg-head { max-width: 46em; margin: 0 auto; }
.bg-head h2 { margin: 6px 0 10px; }
.bg-head p { margin: 0; color: var(--muted-on-dark); }
.bg-arch { position: relative; height: 150px; max-width: 860px; margin: 30px auto 0; }
.bg-line { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.bg-line path { fill: none; stroke: var(--gold); stroke-width: 3; stroke-dasharray: 2 9; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.bg-pt { position: absolute; left: var(--x); top: 70px; transform: translateX(-50%); width: 200px; padding: 0; border: 0; background: none; color: var(--white); text-align: center; cursor: pointer; font-family: var(--font-display); }
.bg-pt:nth-of-type(2) { top: 4px; }
.bg-c { display: grid; place-items: center; width: 46px; height: 46px; margin: 0 auto 7px; border-radius: 50%; background: #3A2A78; border: 2px solid var(--gold-deep); color: var(--gold); font: italic 500 17px var(--font-quote); transition: background-color .2s, color .2s, box-shadow .2s; }
.bg-pt b { display: block; font-weight: 800; font-size: 15px; color: #E5E0F4; transition: color .2s; }
.bg-pt:hover .bg-c, .bg-pt.is-on .bg-c { background: var(--gold); color: var(--ink); box-shadow: 0 0 0 7px rgba(226,181,101,.22); }
.bg-pt:hover b, .bg-pt.is-on b { color: var(--white); }
.bg-pt:focus-visible { outline: 2px solid var(--gold); outline-offset: 6px; border-radius: 12px; }
.bg-details { max-width: 880px; margin: 22px auto 0; padding-top: 24px; border-top: 1px solid rgba(200,144,47,.4); text-align: left; }
.bg-detail { display: grid; grid-template-columns: 1fr 1.15fr; gap: 12px 44px; animation: bg-in .3s ease; }
.bg-detail[hidden] { display: none; }
@keyframes bg-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.bg-eyl { font-family: var(--font-display); font-weight: 700; font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }
.bg-detail h3 { font-weight: 800; font-size: 28px; line-height: 1.15; color: var(--white); margin: 6px 0 2px; }
.bg-detail h3:focus { outline: none; }
.bg-detail .np-row { margin: 12px 0 0; }
.bg-right { border-left: 3px solid var(--gold-deep); padding-left: 26px; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; }
.bg-right .np-lead { max-width: none; font-size: 17px; line-height: 1.6; }
.bg-hint { margin: 22px 0 0; font-family: var(--font-display); font-weight: 600; font-size: 12px; letter-spacing: .08em; color: #9D93C4; }
.bg-low .ni-quote { margin: 20px 0 28px; }
.bg-low .ni-quote p { font-size: 21px; }
.bg-low .ni-quote p::before { font-size: 80px; top: -24px; }
.bg-join-ey { display: block; }
@media (max-width: 760px) {
  .bg-arch { height: auto; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 22px; }
  .bg-line { display: none; }
  .bg-pt, .bg-pt:nth-of-type(2) { position: static; transform: none; width: auto; top: auto; }
  .bg-pt b { font-size: 12.5px; }
  .bg-detail { grid-template-columns: 1fr; }
  .bg-right { border-left: 0; border-top: 3px solid var(--gold-deep); padding: 16px 0 0; }
  .bg-detail h3 { font-size: 24px; }
}
@media (prefers-reduced-motion: reduce) { .bg-detail { animation: none; } .bg-c, .bg-pt b { transition: none; } }

/* For Neurosurgeons lower page: intro + quote stretch across the page; the join text and form sit together below */
.ni-quote p { font-size: clamp(22px, 2.4vw, 30px); }
.bg-low .ni-quote { margin: 0; }

/* forms stretch the full width of the content */
.mock-form { max-width: none; width: 100%; }
.mock-form .field-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr)); }
.mock-form .field:has(textarea) { grid-column: 1 / -1; }
.mock-form > p { max-width: 60em; }

/* For Neurosurgeons lower page: smaller, and the form sits above its "Join the conversation" text */
.section:has(.ni-intro) { padding-block: 56px 28px; }
.section:has(.bg-low) { padding-block: 0 56px; }
.ni-intro .prose h2, .bg-low .prose h2 { font-size: 27px; line-height: 1.2; margin: 4px 0 8px; }
.ni-intro .prose p, .bg-low .prose p { font-size: 16px; line-height: 1.6; }
.ni-quote p { font-size: clamp(19px, 1.9vw, 24px); }
.ni-quote p::before { font-size: 72px; top: -22px; }
.ni-quote { padding: 4px 0 4px 26px; }
.ni-quote cite { margin-top: 12px; font-size: 11px; }
.ni-intro { gap: 24px 48px; }
.two-col.bg-low { display: flex; flex-direction: column-reverse; gap: 22px; }

/* home carousel: smaller overall (desktop) */
@media (min-width: 901px) {
  .slide { padding-block: 36px 60px; }
  .slide-bridge { padding-top: 82px; }
  .hero h1, .hero-title { font-size: clamp(30px, 3.1vw, 42px); }
  .lead { font-size: 17px; }
  .slide-copy { gap: 16px; }
  .emblem-disc, .emblem-arch { width: min(250px, 100%); }
  .bridge { gap: 20px; }
  .bridge-head { gap: 12px 40px; }
  .side-card { padding: 22px 26px; gap: 10px; font-size: 16px; }
  .side-card h3 { font-size: 22px; }
  .carousel-controls { bottom: 18px; }
}
.ni-format { margin-top: 10px; font-size: 15px !important; color: var(--muted-on-light); }
.np-badge.is-live { white-space: normal; }
.mock-form .fld-sel.dd-on label { max-width: calc(100% - 64px); }

/* ---------- Bridging the Gap: platform app icons + series tabs with preview ---------- */
.btg-plat { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; }
.btg-plat h2 { font-weight: 800; font-size: clamp(30px, 3.2vw, 40px); line-height: 1.15; }
.btg-apps { display: flex; justify-content: center; gap: 56px; margin-top: 26px; }
.btg-app { display: flex; flex-direction: column; align-items: center; gap: 10px; width: 150px; text-align: center; color: var(--indigo); text-decoration: none; }
.btg-app b { font-family: var(--font-display); font-weight: 800; font-size: 18px; }
.btg-app-ic { display: grid; place-items: center; width: 120px; height: 120px; border-radius: 30px; box-shadow: 0 18px 30px -18px rgba(36,23,79,.55); transition: transform .2s; }
.btg-app-ic.is-youtube { background: #FF0000; }
.btg-app-ic.is-podcasts { background: linear-gradient(160deg, #B96BE8, #7A2FB8); }
a.btg-app:hover { color: var(--indigo); }
a.btg-app:hover .btg-app-ic { transform: translateY(-4px) scale(1.03); }
a.btg-app:focus-visible { outline: 3px solid var(--gold-deep); outline-offset: 6px; border-radius: 18px; }
.btg-app-cap { font-family: var(--font-display); font-weight: 700; font-size: 13.5px; color: var(--brown); }
.btg-app.is-soon .btg-app-ic { filter: saturate(.25); opacity: .55; }
.btg-app.is-soon .btg-app-cap { font-family: var(--font-quote); font-style: italic; font-weight: 500; font-size: 15px; color: var(--faint-on-light); }

.btg-lead { color: var(--muted-on-dark) !important; }
.btg-series { display: flex; flex-direction: column; gap: 28px; }
.btg-tabs { display: flex; gap: 6px; border-bottom: 1px solid #3A2D6B; }
.btg-tabs[hidden] { display: none; }
.btg-tab { appearance: none; background: none; border: 0; border-bottom: 3px solid transparent; margin-bottom: -1px; padding: 12px 16px; cursor: pointer;
  font-family: var(--font-display); font-weight: 800; font-size: 15.5px; color: #B9B0D6; transition: color .15s, border-color .15s; }
.btg-tab:hover { color: var(--white); }
.btg-tab[aria-selected="true"] { color: var(--gold); border-bottom-color: var(--gold); }
.btg-tab:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 6px; }
.btg-panel { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 40px; align-items: center; }
.btg-panel[hidden] { display: none; }
.btg-player { position: relative; aspect-ratio: 16 / 9; border-radius: 18px; overflow: hidden; background: radial-gradient(120% 90% at 20% 10%, #4A3696 0%, #24174F 55%, #140D2B 100%); box-shadow: 0 30px 60px -30px rgba(0,0,0,.8); }
.btg-player.tone-1 { background: radial-gradient(120% 90% at 80% 10%, #8C5E1B 0%, #3E2A4F 55%, #140D2B 100%); }
.btg-player.tone-2 { background: radial-gradient(120% 90% at 50% 0%, #2E7F8C 0%, #23305A 55%, #140D2B 100%); }
.btg-player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.btg-play { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; padding: 24px; text-align: center; color: var(--white); text-decoration: none; }
.btg-play:hover { color: var(--white); }
.btg-play-ic { display: grid; place-items: center; width: 78px; height: 78px; border-radius: 50%; background: #FF0000; box-shadow: 0 12px 26px -10px rgba(0,0,0,.6); transition: transform .2s; }
.btg-play-ic svg { margin-left: 4px; }
.btg-play:hover .btg-play-ic { transform: scale(1.08); }
.btg-play:focus-visible { outline: 3px solid var(--gold); outline-offset: -6px; border-radius: 18px; }
.btg-play-q { font-family: var(--font-quote); font-style: italic; font-weight: 500; font-size: clamp(20px, 2.2vw, 26px); line-height: 1.25; max-width: 16em; }
.btg-play-note { font-family: var(--font-display); font-weight: 700; font-size: 12.5px; letter-spacing: .04em; color: var(--muted-on-dark); }
.btg-text { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.btg-num { font-family: var(--font-display); font-weight: 800; font-size: 11.5px; letter-spacing: .16em; text-transform: uppercase; color: #B9B0D6; }
.btg-text h3 { font-weight: 800; font-size: 26px; line-height: 1.2; color: var(--gold); }
.btg-text p { color: var(--muted-on-dark); margin-bottom: 6px; }
@media (max-width: 860px) {
  .btg-panel { grid-template-columns: 1fr; gap: 22px; }
  .btg-tab { flex: 1 1 0; padding: 10px 6px; font-size: 13.5px; line-height: 1.25; }
}
@media (max-width: 560px) {
  .btg-apps { gap: 24px; }
  .btg-app-ic { width: 92px; height: 92px; border-radius: 24px; }
  .btg-play-ic { width: 60px; height: 60px; }
  .btg-play-note { display: none; }
}
@media (prefers-reduced-motion: reduce) { .btg-app-ic, .btg-play-ic { transition: none; } }

/* ---------- Page titles, version B: light title band, gold bar, pill tabs ---------- */
.page-hero.is-light {
  background: linear-gradient(180deg, var(--white) 0%, #FBF9FE 100%);
  color: var(--indigo);
  border-bottom: 1px solid var(--line-light);
  padding-bottom: 32px;
}
.page-hero.is-light .wrap { gap: 22px; }
.page-hero.is-light .ph-text { display: flex; flex-direction: column; gap: 10px; border-left: 5px solid var(--gold-deep); padding-left: 24px; }
.page-hero.is-light .eyebrow { color: var(--gold-text); }
.page-hero.is-light h1 { color: var(--indigo); font-size: clamp(28px, 3.2vw, 40px); line-height: 1.1; }
.page-hero.is-light .lead { color: var(--muted-on-light); font-size: 17px; }
.ph-tabs ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.ph-tabs a {
  display: inline-block; padding: 8px 16px; border-radius: 999px;
  border: 1.5px solid #D8D0EA; background: var(--white);
  font-family: var(--font-display); font-weight: 700; font-size: 13.5px; line-height: 1.3;
  color: var(--muted-on-light); text-decoration: none; transition: border-color .15s, color .15s, background-color .15s;
}
.ph-tabs a:hover { border-color: var(--gold-deep); color: var(--indigo); }
.ph-tabs a[aria-current="page"] { background: var(--indigo); border-color: var(--indigo); color: var(--gold-light); }
.ph-tabs a:focus-visible { outline: 3px solid var(--gold-deep); outline-offset: 2px; }
/* wide screens: clear the CRAZY BY CHIARI pill above the gold bar */
@media (min-width: 901px) { .page-hero.is-light { padding-top: 92px; } }
@media (max-width: 900px) {
  .page-hero.is-light { padding-top: 32px; padding-bottom: 26px; }
  .page-hero.is-light .ph-text { padding-left: 18px; border-left-width: 4px; }
  /* phones: one scrolling row of pills instead of several wrapped rows */
  .ph-tabs { margin-inline: -20px; }
  .ph-tabs ul { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding: 2px 20px 4px; }
  .ph-tabs ul::-webkit-scrollbar { display: none; }
  .ph-tabs a { white-space: nowrap; }
}
@media (prefers-reduced-motion: reduce) { .ph-tabs a { transition: none; } }

/* Page titles, version B from the options sheet: same dark band and top-right tabs as before, smaller title with a short brushed-gold rule */
.page-hero h1 { font-size: clamp(28px, 3vw, 38px); line-height: 1.1; }
.page-hero h1::after { content: ""; display: block; width: 64px; height: 3px; margin-top: 14px; border-radius: 3px; background: linear-gradient(160deg, #8C5E1B, #E9C688 22%, #C8902F 45%, #F3DDA8 62%, #A8721F 82%, #E2B565); }
.page-hero .lead { font-size: 17px; }
.page-hero { padding-bottom: 40px; }
@media (min-width: 901px) { .page-hero { padding-top: 84px; } }
@media (min-width: 901px) { .page-hero { padding-top: 112px; } }

/* Page title band: light versions (picked per page in tools/shell.py TITLE_TONE) */
.page-hero.tl-light { background: linear-gradient(180deg, #FFFFFF, #FBF9FE); border-bottom: 1px solid #E4DDF2; }
.page-hero.tl-light h1 { color: var(--indigo); }
.page-hero.tl-light .eyebrow { color: var(--gold-text); }
.page-hero.tl-light .lead { color: var(--muted-on-light); }
.page-hero.tl-light.tl-same { background: var(--lavender); border-bottom: 0; }
.tl-light + .about-tabs, .tabs-corner .tl-light + .about-tabs { background: #FFFFFF; border-bottom: 1px solid #E4DDF2; }
.tl-same + .about-tabs, .tabs-corner .tl-same + .about-tabs { background: var(--lavender); border-bottom: 0; }
.tl-light + .about-tabs a { color: #6B6190; }
.tl-light + .about-tabs a:hover { color: var(--indigo); }
.tl-light + .about-tabs a[aria-current="page"] { color: var(--indigo); border-bottom-color: var(--gold-deep); }

/* Bridging the Gap: smaller "Choose your platform" */
.section:has(.btg-plat) { padding-block: 44px; }
.btg-plat { gap: 4px; }
.btg-plat h2 { font-size: clamp(24px, 2.4vw, 30px); }
.btg-apps { gap: 36px; margin-top: 14px; }
.btg-app { width: 110px; gap: 6px; }
.btg-app b { font-size: 15.5px; }
.btg-app-ic { width: 76px; height: 76px; border-radius: 20px; }
.btg-app-ic svg { width: 36px; height: 36px; }
.btg-app-cap { font-size: 12.5px; }
.btg-app.is-soon .btg-app-cap { font-size: 13.5px; }
.btg-ctl { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.btg-ctl span { font-family: var(--font-display); font-weight: 800; font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; color: #B9B0D6; margin-right: 6px; }
.btg-ctl button { appearance: none; cursor: pointer; padding: 8px 16px; border-radius: 999px; border: 1.5px solid #5A4A8F; background: transparent; color: var(--white); font-family: var(--font-display); font-weight: 700; font-size: 13.5px; transition: border-color .15s, color .15s; }
.btg-ctl button:hover { border-color: var(--gold); color: var(--gold); }
.btg-ctl button:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
/* preview play button = the YouTube logo mark */
.btg-play-ic { width: auto; height: auto; border-radius: 0; background: none; box-shadow: none; filter: drop-shadow(0 10px 18px rgba(0,0,0,.45)); }
.btg-play-ic svg { display: block; margin: 0; }
@media (max-width: 560px) { .btg-play-ic { width: auto; height: auto; } .btg-play-ic svg { width: 66px; height: 47px; } }

/* title band and section below share a colour: trim the gap between them by about a quarter */
.page-hero.tl-same + .about-tabs + .section { padding-top: 62px; }
.page-hero.tl-same + .section { padding-top: 62px; }

/* Specialists directory (Clinical Registry data) */
.spec-tools { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 16px; align-items: end; }
.spec-tools > div { display: flex; flex-direction: column; gap: 8px; }
.spec-tools select { font: inherit; font-size: 16px; color: var(--indigo); padding: 12px 14px; border-radius: 12px; border: 1px solid #D5CDEA; background: #FBFAFD; width: 100%; }
.spec-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; }
.spec-about { background: none; border: 0; padding: 0; font: inherit; font-weight: 600; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.spec-count { margin: 0; font-size: 15px; color: var(--faint-on-light); }
.spec-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag-adv { background: var(--indigo); color: var(--gold); }
.spec-mono { width: 72px; height: 72px; border-radius: 50%; flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--indigo), #5a3e9e); color: var(--gold); font-family: var(--font-display); font-weight: 800; font-size: 24px;
  box-shadow: 0 0 0 3px var(--white), 0 0 0 4px var(--gold-deep); }
.spec-mono-big { width: 180px; height: 180px; font-size: 56px; }
@media (max-width: 640px) { .spec-mono-big { width: 120px; height: 120px; font-size: 38px; } }
.spec-actions { display: flex; flex-direction: column; gap: 8px; align-self: center; flex: 0 0 auto; }
.spec-actions .btn-mini { flex: 0 0 auto; }
.spec-list > .spec[hidden] { display: none; }
.bio-text ul { margin: 0 0 14px; padding-left: 20px; break-inside: avoid; }
@media (max-width: 760px) { .spec-tools { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .spec-list .spec { flex-wrap: wrap; } .spec-main { flex-basis: calc(100% - 92px); } .spec-actions { flex-direction: row; flex-wrap: wrap; flex-basis: 100%; align-self: flex-start; } .spec-link { margin-left: 0; } }

/* ===== Chiari Specialists search (E4 + See all in the bar + gold-to-plum A–Z + T1 sort/per page + P1 pages) ===== */
.sx { --sx-gold: linear-gradient(160deg, #8C5E1B, #E9C688 22%, #C8902F 45%, #F3DDA8 62%, #A8721F 82%, #E2B565); }
/* cut corners: ::before is the edge, ::after the fill */
.sx-cut { --k: 14px; --edge: #D9D2EA; --fill: var(--white); --bw: 1.5px; position: relative; isolation: isolate; }
.sx-cut::before, .sx-cut::after { content: ""; position: absolute; z-index: -1; pointer-events: none; transition: background .2s;
  clip-path: polygon(var(--k) 0, calc(100% - var(--k)) 0, 100% var(--k), 100% calc(100% - var(--k)), calc(100% - var(--k)) 100%, var(--k) 100%, 0 calc(100% - var(--k)), 0 var(--k)); }
.sx-cut::before { inset: 0; background: var(--edge); }
.sx-cut::after { inset: var(--bw); background: var(--fill);
  clip-path: polygon(calc(var(--k) - .6px) 0, calc(100% - var(--k) + .6px) 0, 100% calc(var(--k) - .6px), 100% calc(100% - var(--k) + .6px), calc(100% - var(--k) + .6px) 100%, calc(var(--k) - .6px) 100%, 0 calc(100% - var(--k) + .6px), 0 calc(var(--k) - .6px)); }

/* search bar */
.sx-bar { --k: 18px; --edge: var(--sx-gold); --bw: 2px; z-index: 2; display: flex; align-items: center; gap: 12px; min-height: 72px; padding: 8px 8px 8px 24px; filter: drop-shadow(0 14px 20px rgba(36,23,79,.16)); }
.sx-bar:focus-within { --fill: #FFFDF8; }
.sx-bar-ic { display: grid; color: var(--gold-text); }
.sx-bar input { flex: 1; min-width: 0; border: 0; background: none; outline: 0; font: 600 19px var(--font-body); color: var(--indigo); padding: 12px 0; }
.sx-bar input::placeholder { color: #8E86AB; font-weight: 400; }
.sx-bar input::-webkit-search-cancel-button { cursor: pointer; }
.sx-see, .sx-ftog { flex: none; display: inline-flex; align-items: center; gap: 8px; border: 0; border-left: 1.5px solid var(--line-light); background: none; padding: 10px 18px; font: 800 14.5px var(--font-display) !important; color: var(--indigo); cursor: pointer; }
.sx-see svg, .sx-ftog svg { color: var(--gold-text); }
.sx-see:hover, .sx-see.is-on, .sx-ftog:hover, .sx-ftog[aria-expanded="true"] { color: var(--gold-text); }
.sx-see:focus-visible, .sx-ftog:focus-visible { outline: 2px solid var(--gold-deep); outline-offset: -2px; border-radius: 10px; }
.sx-badge { min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: var(--gold); color: var(--ink); font: 800 12px var(--font-display); display: inline-grid; place-items: center; }
.sx-badge[hidden] { display: none; }
.sx-go { --k: 10px; --edge: var(--sx-gold); --fill: var(--indigo); --bw: 2px; flex: none; border: 0; background: none; color: var(--gold); font: 800 15.5px var(--font-display) !important; padding: 15px 30px; cursor: pointer; }
.sx-go:hover { --fill: #33236B; }
.sx-go:focus-visible { outline: 2px solid var(--indigo); outline-offset: 4px; }

/* filter drawer */
.sx-drawer { display: grid; grid-template-rows: 0fr; opacity: 0; transition: grid-template-rows .38s cubic-bezier(.2,.7,.2,1), opacity .3s; }
.sx-drawer.is-open { grid-template-rows: 1fr; opacity: 1; }
.sx-drawer-in { overflow: hidden; min-height: 0; }
.sx-drawer:not(.is-open) .sx-drawer-in { visibility: hidden; transition: visibility 0s .38s; }
.sx-panel { --k: 16px; --edge: var(--sx-gold); --bw: 2px; margin: 14px 0 4px; padding: 24px 26px 18px; filter: drop-shadow(0 14px 20px rgba(36,23,79,.14)); }
.sx-cols { display: grid; grid-template-columns: .8fr .9fr 2fr; gap: 0 26px; }
.sx-col { border: 0; margin: 0; padding: 0; min-width: 0; }
.sx-col + .sx-col { border-left: 1px solid var(--line-light); padding-left: 26px; }
.sx-col legend { display: flex; align-items: center; gap: 8px; padding: 0; margin-bottom: 12px; font: 800 12px var(--font-display); letter-spacing: .14em; text-transform: uppercase; color: var(--gold-text); }
.sx-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.sx-p { display: inline-flex; align-items: center; gap: 7px; border: 1.5px solid #D5CDEA; background: var(--white); color: var(--indigo); padding: 6px 7px 6px 13px; border-radius: 999px; font: 600 14.5px var(--font-body) !important; cursor: pointer; white-space: nowrap; transition: background .15s, border-color .15s; }
.sx-p small { font: 700 11.5px var(--font-display); color: var(--faint-on-light); background: var(--lavender); padding: 1px 7px; border-radius: 999px; }
.sx-p:hover { border-color: var(--gold-deep); }
.sx-p[aria-pressed="true"] { background: var(--indigo); border-color: var(--indigo); color: var(--white); }
.sx-p[aria-pressed="true"] small { background: var(--gold); color: var(--ink); }
.sx-p[aria-pressed="true"]::before { content: ""; width: 5px; height: 9px; margin: -3px 2px 0 -2px; border-right: 2px solid var(--gold); border-bottom: 2px solid var(--gold); transform: rotate(40deg); }
.sx-foot { display: flex; justify-content: flex-end; align-items: center; gap: 22px; margin-top: 20px; padding-top: 14px; border-top: 1px solid var(--line-light); }
.sx-foot .sx-go { padding: 11px 26px; }
.sx-link { background: none; border: 0; padding: 0; font: 600 15.5px var(--font-body) !important; color: var(--indigo); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }

/* chosen filters + "How specialists are chosen" */
.sx-under { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; margin-top: 18px; }
.sx-how { margin-left: auto; font-size: 15px !important; color: var(--muted-on-light); }
.sx-picked { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; }
.sx-picked[hidden] { display: none; }
.sx-picked-l { font: 800 11.5px var(--font-display); letter-spacing: .14em; text-transform: uppercase; color: var(--faint-on-light); }
.sx-picked-list { display: contents; }
.sx-x { display: inline-flex; align-items: center; gap: 6px; padding: 5px 8px 5px 13px; border-radius: 999px; background: var(--sand); color: var(--brown); border: 0; font: 700 14px var(--font-body) !important; cursor: pointer; }
.sx-x i { font-style: normal; font-size: 16px; line-height: 1; width: 18px; height: 18px; display: grid; place-items: center; border-radius: 50%; background: rgba(110,74,16,.12); }
.sx-x:hover i { background: var(--brown); color: var(--sand); }

/* empty start */
.sx-start { margin-top: 26px; min-height: 180px; border: 2px dashed #D5CDEA; border-radius: 18px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; text-align: center; color: var(--faint-on-light); padding: 20px; }
.sx-start[hidden] { display: none; }
.sx-start span { font: 800 13px var(--font-display); letter-spacing: .16em; text-transform: uppercase; }
.sx-start small { font-size: 15px; }

/* results */
.sx-res { margin-top: 26px; }
.sx-res[hidden] { display: none; }
.sx-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 18px; margin-bottom: 12px; padding-right: 52px; }
.sx-count { margin: 0; color: var(--faint-on-light); font-size: 16px; }
.sx-count b { font: 800 18px var(--font-display); color: var(--indigo); }
.sx-sep { margin: 0 8px; color: #BFB3DC; }
.sx-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 22px; }
.sx-tg { display: flex; align-items: center; gap: 2px; }
.sx-tg + .sx-tg { border-left: 1px solid #D5CDEA; padding-left: 20px; }
.sx-tl { margin-right: 8px; font: 800 11px var(--font-display); letter-spacing: .14em; text-transform: uppercase; color: var(--faint-on-light); }
.sx-tb { position: relative; border: 0; background: none; padding: 6px 8px; font: 600 14px var(--font-display) !important; color: var(--faint-on-light); cursor: pointer; }
.sx-tb:hover { color: var(--indigo); }
.sx-tb[aria-pressed="true"] { color: var(--indigo); font-weight: 800 !important; }
.sx-tb[aria-pressed="true"]::after { content: ""; position: absolute; left: 8px; right: 8px; bottom: 1px; height: 1.5px; background: var(--gold-deep); }
.sx-body { display: grid; grid-template-columns: minmax(0,1fr) 36px; gap: 16px; align-items: start; }
.sx-col-main { min-width: 0; }
.sx-list { list-style: none; margin: 0; padding: 0; background: var(--white); border: 1px solid var(--line-light); border-radius: 18px; overflow: hidden; }
.sx-list[hidden] { display: none; }
.sx-row { display: flex; align-items: center; gap: 16px; padding: 15px 22px; border-top: 1px solid var(--line-light); transition: background .6s; }
.sx-row[hidden] { display: none; }
.sx-row.is-first { border-top: 0; }
.sx-row.is-flash { background: var(--honey); transition: none; }
.sx-ltr { flex: none; width: 22px; text-align: center; font: 800 13px var(--font-display); color: var(--gold-text); }
.sx-ltr.is-rep { visibility: hidden; }
.sx-face { width: 50px; height: 50px; border-radius: 50%; flex: none; object-fit: cover; display: inline-grid; place-items: center; background: var(--indigo); color: var(--gold); font: 800 16px var(--font-display); box-shadow: 0 0 0 2.5px var(--white), 0 0 0 4px var(--gold-light); }
.sx-main { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.35; }
.sx-main strong { font: 800 16.5px var(--font-display); color: var(--indigo); }
.sx-where { color: var(--muted-on-light); font-size: 15px; }
.sx-hosp { color: #94651A; }
.sx-focus { color: var(--faint-on-light); font-size: 14px; }
.sx-star { color: var(--gold-deep); margin-left: 5px; vertical-align: 1px; }
.sx-tags { display: flex; gap: 5px; flex: none; }
.sx-tag { display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px 3px 8px; border-radius: 999px; border: 1px solid var(--line-light); color: var(--faint-on-light); font: 600 12px var(--font-display); white-space: nowrap; }
.sx-tag::before { content: ""; width: 7px; height: 7px; border-radius: 50%; }
.sx-tag-p::before { background: var(--gold); } .sx-tag-a::before { background: #8A73C9; }
.sx-acts { display: flex; gap: 6px; flex: none; }
.sx-acts .btn-mini { flex: none; min-height: 36px; padding: 7px 14px; }
.sx-grp { padding: 10px 22px; background: #FBF8EF; border-top: 1px solid var(--line-light); font: 800 11.5px var(--font-display); letter-spacing: .14em; text-transform: uppercase; color: var(--gold-text); }
.sx-grp.is-first { border-top: 0; }
.sx-none { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 40px 16px; text-align: center; background: var(--white); border: 1px solid var(--line-light); border-radius: 18px; }
.sx-none[hidden] { display: none; }
.sx-none b { font: 800 18px var(--font-display); color: var(--indigo); } .sx-none span { color: var(--muted-on-light); }

/* A–Z strip: gold-to-plum letters on a matching ombre line */
.sx-az { position: sticky; top: 16px; display: flex; flex-direction: column; align-items: center; gap: 1px; padding: 6px 0; }
.sx-az::before { content: ""; position: absolute; left: 0; top: 4px; bottom: 4px; width: 2px; border-radius: 2px; background: var(--line); }
.sx-l { position: relative; width: 28px; height: 22px; border: 0; background: none; padding: 0; border-radius: 6px; font: 800 12.5px var(--font-display) !important; color: var(--c); cursor: pointer; transition: background .15s; }
.sx-l:hover:not(:disabled) { background: var(--lavender-card); }
.sx-l:disabled { opacity: .28; cursor: default; }
.sx-l.is-here::before { content: ""; position: absolute; left: -5px; top: 50%; width: 9px; height: 1.5px; margin-top: -.75px; background: var(--c); }
.sx-l.is-cur { background: var(--gold); color: var(--ink); }
.sx-l:focus-visible { outline: 2px solid var(--gold-deep); outline-offset: 1px; }

/* page numbers: bare numbers, thin gold underline, slender line arrows */
.sx-pag { display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 22px; flex-wrap: wrap; }
.sx-pag[hidden] { display: none; }
.sx-pg { position: relative; min-width: 34px; height: 38px; border: 0; background: none; padding: 0 6px; font: 600 15.5px var(--font-display) !important; color: var(--faint-on-light); cursor: pointer; }
.sx-pg:hover { color: var(--indigo); }
.sx-pg[aria-current="page"] { color: var(--indigo); font-weight: 800 !important; }
.sx-pg[aria-current="page"]::after { content: ""; position: absolute; left: 9px; right: 9px; bottom: 4px; height: 1.5px; background: var(--gold-deep); }
.sx-gap { color: var(--faint-on-light); padding: 0 2px; }
.sx-step { display: inline-flex; align-items: center; gap: 12px; border: 0; background: none; padding: 6px 4px; font: 700 13.5px var(--font-display) !important; letter-spacing: .1em; text-transform: uppercase; color: var(--indigo); cursor: pointer; }
.sx-step svg { color: var(--gold-text); transition: transform .25s; }
.sx-step.is-prev { margin-right: 18px; } .sx-step.is-next { margin-left: 18px; }
.sx-step.is-prev svg { transform: scaleX(-1); }
.sx-step.is-next:hover:not(:disabled) svg { transform: translateX(4px); }
.sx-step.is-prev:hover:not(:disabled) svg { transform: scaleX(-1) translateX(4px); }
.sx-step:disabled { color: #BFB3DC; cursor: default; } .sx-step:disabled svg { color: #D5CDEA; }

@media (prefers-reduced-motion: reduce) { .sx-drawer, .sx-drawer-in, .sx-row, .sx-step svg { transition: none !important; } }
@media (max-width: 900px) {
  .sx-cols { grid-template-columns: 1fr; gap: 18px; }
  .sx-col + .sx-col { border-left: 0; padding-left: 0; border-top: 1px solid var(--line-light); padding-top: 16px; }
}
@media (max-width: 640px) {
  .sx-bar { min-height: 62px; padding: 6px 6px 6px 16px; gap: 6px; }
  .sx-bar input { font-size: 17px; }
  .sx-see span, .sx-ftog span { display: none; }
  .sx-see, .sx-ftog { padding: 10px 11px; }
  .sx-bar .sx-go { display: none; }
  .sx-panel { padding: 20px 18px 16px; }
  .sx-head { padding-right: 0; }
  .sx-tools { width: 100%; }
  .sx-tg { flex-wrap: wrap; } .sx-tg + .sx-tg { border-left: 0; padding-left: 0; }
  .sx-tl { width: 100%; margin: 0; } .sx-tb { padding: 6px; font-size: 13.5px !important; }
  .sx-body { grid-template-columns: minmax(0,1fr) 24px; gap: 8px; }
  .sx-l { width: 22px; height: 19px; font-size: 11.5px !important; }
  .sx-row { flex-wrap: wrap; padding: 14px; gap: 10px 12px; }
  .sx-ltr { display: none; }
  .sx-main { flex-basis: calc(100% - 62px); }
  .sx-tags { margin-left: 62px; }
  .sx-acts { width: 100%; } .sx-acts .btn-mini { flex: 1; }
  .sx-pag { flex-wrap: nowrap; gap: 0; } .sx-pg { min-width: 28px; padding: 0 4px; }
  .sx-step span { display: none; } .sx-step.is-prev { margin-right: 6px; } .sx-step.is-next { margin-left: 6px; }
}

/* ---- State wheel (shown when USA is picked): a scrolling list where picked states fill gold ---- */
.sx-col-state[hidden] { display: none; }
.sx-cols.has-state { grid-template-columns: .7fr .75fr 1.05fr 1.6fr; }
.sx-wheel { position: relative; height: 222px; border-radius: 14px; background: linear-gradient(#fff, #F8F5FD); border: 1.5px solid var(--line-light); overflow: hidden; }
.sx-wheel::before, .sx-wheel::after { content: ""; position: absolute; left: 0; right: 0; height: 34px; pointer-events: none; z-index: 2; }
.sx-wheel::before { top: 0; background: linear-gradient(#fff, rgba(255,255,255,0)); }
.sx-wheel::after { bottom: 0; background: linear-gradient(rgba(255,255,255,0), #fff); }
.sx-scr { height: 100%; overflow-y: auto; padding: 6px 0; scrollbar-width: none; scroll-snap-type: y proximity; }
.sx-scr::-webkit-scrollbar { display: none; }
.sx-scr:focus-visible { outline: 2px solid var(--gold-deep); outline-offset: -3px; border-radius: 14px; }
.sx-it { height: 40px; margin: 0 6px; padding: 0 10px 0 12px; display: flex; align-items: center; gap: 10px; border-radius: 8px; scroll-snap-align: center; cursor: pointer; font: 700 14.5px var(--font-display); color: var(--indigo); transition: background .15s; }
.sx-it .sx-n { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sx-it small { font: 700 11.5px var(--font-display); color: var(--faint-on-light); }
.sx-it:hover { background: var(--lavender-card); }
.sx-it.is-act { box-shadow: inset 0 0 0 2px var(--gold-deep); }
.sx-it.is-on { background: var(--gold); color: var(--ink); }
.sx-it.is-on small { color: var(--ink); }
.sx-pm { position: relative; flex: none; width: 16px; height: 16px; color: var(--gold-text); }
.sx-pm::before, .sx-pm::after { content: ""; position: absolute; background: currentColor; border-radius: 1px; }
.sx-pm::before { left: 1px; right: 1px; top: 7px; height: 2px; }
.sx-pm::after { top: 1px; bottom: 1px; left: 7px; width: 2px; }
.sx-it.is-on .sx-pm { color: var(--indigo); }
.sx-it.is-on .sx-pm::before { background: none; left: 4px; top: 0; right: auto; width: 6px; height: 11px; border-right: 2.5px solid currentColor; border-bottom: 2.5px solid currentColor; border-radius: 0; transform: rotate(40deg); }
.sx-it.is-on .sx-pm::after { display: none; }
.sx-wnote { margin: 8px 0 0; font-size: 13px; color: var(--faint-on-light); }
@media (max-width: 900px) { .sx-cols.has-state { grid-template-columns: 1fr; } .sx-wheel { height: 200px; } }
.sx-cols.has-state { grid-template-columns: .62fr .7fr minmax(215px, 1fr) 1.5fr; }
.sx-it { gap: 8px; padding: 0 9px 0 11px; font-size: 14px; }

/* State wheel now sits inside the Country column, under the country pills */
.sx-cols.has-state { grid-template-columns: .8fr .9fr 2fr; }
.sx-col-state { margin-top: 16px; padding-top: 14px; border-top: 1px dashed var(--line-light); }
.sx-sublg { display: flex; align-items: center; gap: 7px; margin-bottom: 8px; font: 800 11.5px var(--font-display); letter-spacing: .14em; text-transform: uppercase; color: var(--gold-text); }
.sx-sublg svg { width: 17px; height: 17px; }
.sx-wheel { height: 170px; }
.sx-it { height: 34px; font-size: 13.5px; }
.sx-pm { width: 14px; height: 14px; }
.sx-pm::before { top: 6px; } .sx-pm::after { left: 6px; }
.sx-it.is-on .sx-pm::before { left: 3px; width: 5px; height: 9px; }
.sx-wnote { font-size: 12.5px; }
@media (max-width: 900px) { .sx-cols.has-state { grid-template-columns: 1fr; } .sx-wheel { height: 170px; } }
/* scrolling the state list never scrolls the page behind it, even when it reaches the end */
.sx-scr { overscroll-behavior: contain; }

/* live counts: choices that would give no doctors are faded and can't be picked */
.sx-p.is-zero { opacity: .38; cursor: default; }
.sx-p.is-zero:hover { border-color: #D5CDEA; }
.sx-it.is-zero { opacity: .38; cursor: default; }
.sx-it.is-zero:hover { background: none; }

/* Specialists: pink Pediatric / indigo Adult tags, "Clinical Registry" pop-up label, reset button */
.sx-tag-p { background: #FDF2F8; border-color: #FBCFE8; color: #DB2777; }
.sx-tag-a { background: #EEF2FF; border-color: #C7D2FE; color: #3B2A6D; }
.sx-tag-p::before { background: #EC4899; } .sx-tag-a::before { background: #3B2A6D; }
.reg-label { align-self: flex-start; margin-bottom: 8px; padding: 3px 10px; border-radius: 4px; background: var(--indigo); color: var(--white); font: 700 11px var(--font-display); letter-spacing: .14em; text-transform: uppercase; }
.reg-badges { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 0; }
.sx-reset { margin-top: 14px; flex: 0 0 auto; }

/* Specialists rows: stack tags and buttons under the name on mid-width screens */
@media (max-width: 900px) {
  .sx-row { flex-wrap: wrap; padding: 14px 16px; gap: 10px 14px; }
  .sx-ltr { display: none; }
  .sx-main { flex: 1 1 calc(100% - 70px); }
  .sx-tags { margin-left: 64px; flex-wrap: wrap; }
  .sx-acts { margin-left: auto; }
}
@media (max-width: 640px) {
  .sx-tags { margin-left: 62px; }
  .sx-acts { margin-left: 0; width: 100%; }
}

/* Haze behind any open main-menu panel: dims and softly blurs the page so the menu stands apart */
body::after {
  content: ""; position: fixed; inset: 0; z-index: 38; pointer-events: none; opacity: 0;
  background: radial-gradient(ellipse at 12% 40%, rgba(27,18,56,.5), rgba(27,18,56,.72));
  -webkit-backdrop-filter: blur(5px) saturate(.8); backdrop-filter: blur(5px) saturate(.8);
  transition: opacity .25s ease;
}
body:has(.rail-fly.is-open)::after,
body:has(.nav-trigger[aria-expanded="true"])::after,
body:has(.m-it[aria-expanded="true"])::after { opacity: 1; pointer-events: auto; }
@media (max-width: 900px) { body::after { z-index: 58; } }
@media (prefers-reduced-motion: reduce) { body::after { transition: none; } }

/* ===== Corner cleanup: rounded by default, gold glint accent; cut corners kept for featured items (advisory spotlight) ===== */
:root { --glint: #E2B565; }

:root { --glint: #E2B565; }
/* ---------- desktop side menu: pills ---------- */
@media (min-width: 901px) {
  .rail-pill::before, .rail-pill::after, .rail-word::before, .rail-word::after, .rail-fly::before, .rail-fly::after { clip-path: none !important; }
  .rail-pill::before { border-radius: 34px; } .rail-pill::after { border-radius: 32.5px; }
  .site-rail.is-collapsed .rail-pill::before, .site-rail.is-collapsed .rail-pill::after { border-radius: 999px; }
  .rail-word::before, .rail-word::after { border-radius: 999px; }
  .rail-fly::before { border-radius: 24px; } .rail-fly::before { background: linear-gradient(225deg, #F3DDA8 0, #E2B565 30px, rgba(226,181,101,.5) 110px); }
  .rail-fly::after { border-radius: 22.5px; }
  .site-rail .rail-item::before, .site-rail .rail-fly a::before { clip-path: none !important; border-radius: 999px; }
  .site-rail .rail-fly a::before { border-radius: 16px; }
}
/* ---------- phone bottom bar ---------- */
@media (max-width: 900px) {
  .m-dock::before, .m-dock::after, .m-sheet::before, .m-sheet::after { clip-path: none !important; }
  .m-dock::before { border-radius: 30px; } .m-dock::after { border-radius: 28.5px; }
  .m-sheet::before { border-radius: 24px; } .m-sheet::after { border-radius: 22.5px; }
  .m-it::before { clip-path: none !important; border-radius: 999px; }
}
/* ---------- forms ---------- */
.mock-form::before, .mock-form::after, .mock-form .fld::before, .mock-form .fld::after, .mock-form .dd-panel::before, .mock-form .dd-panel::after { clip-path: none !important; }
.mock-form::before { border-radius: 26px; background: var(--ring-glint, linear-gradient(225deg, #F3DDA8 0, #C8902F 34px, #D9D2EA 120px)); }
.mock-form::after { border-radius: 24.5px; inset: 1.5px; background: #fff; }
.mock-form .fld::before, .mock-form .fld:focus-within::before, .mock-form .fld.is-open::before { border-radius: 16px; }
.mock-form .fld::before { background: linear-gradient(225deg, #F3DDA8 0, #C8902F 16px, #D9D2EA 60px); }
.mock-form .fld:hover::before { background: linear-gradient(225deg, #F3DDA8 0, #C8902F 16px, #BFB3DC 60px); }
.mock-form .fld::after, .mock-form .fld:focus-within::after, .mock-form .fld.is-open::after { border-radius: 14.5px; }
.mock-form .dd-panel::before { border-radius: 20px; background: linear-gradient(225deg, #F3DDA8 0, #C8902F 22px, #D9D2EA 90px); }
.mock-form .dd-panel::after { border-radius: 18.5px; background: #fff; }
.mock-form .btn.btn-cut::before, .mock-form .btn.btn-cut::after { clip-path: none !important; border-radius: 999px; }
.mock-form .btn.btn-cut::after { inset: 2px; }
.mock-form .dd-list li { border-radius: 12px; }
/* phone top header pill */
.header-row::before, .header-row::after { clip-path: none !important; border-radius: 999px; }

/* mission chapter card + tabs, specialists panels: rounded */
.ch-card::before, .ch-card::after, .sx-cut::before, .sx-cut::after { clip-path: none !important; }
.ch-card::before { border-radius: 24px; background: #D9D2EA; }
.ch-card::after { border-radius: 22.5px; }
.ch-tab::before { clip-path: none !important; border-radius: 14px; }
.sx-cut::before { border-radius: calc(var(--k) * 1.5); }
.sx-cut::after { border-radius: calc(var(--k) * 1.5 - var(--bw)); }

/* ---- featured items keep ALL FOUR cut corners: pamphlet cards, presale goal card (spotlight card already) ---- */
.goal-card { --k: 18px; position: relative; isolation: isolate; background: none; border-radius: 0; }
.goal-card::before, .goal-card::after { content: ""; position: absolute; z-index: -1; pointer-events: none; clip-path: polygon(var(--c) 0, calc(100% - var(--c)) 0, 100% var(--c), 100% calc(100% - var(--c)), calc(100% - var(--c)) 100%, var(--c) 100%, 0 calc(100% - var(--c)), 0 var(--c)); }
.goal-card::before { inset: 0; --c: var(--k); background: linear-gradient(160deg, #8C5E1B, #E9C688 22%, #C8902F 45%, #F3DDA8 62%, #A8721F 82%, #E2B565); }
.goal-card::after { inset: 1.5px; --c: calc(var(--k) - .6px); background: var(--indigo); }
.flip-face { --k: 18px; border-radius: 0; box-shadow: none; clip-path: polygon(var(--k) 0, calc(100% - var(--k)) 0, 100% var(--k), 100% calc(100% - var(--k)), calc(100% - var(--k)) 100%, var(--k) 100%, 0 calc(100% - var(--k)), 0 var(--k)); }
.flip-back { box-shadow: none; background: none; isolation: isolate; }
.flip-back::before, .flip-back::after { content: ""; position: absolute; z-index: -1; pointer-events: none; clip-path: polygon(var(--k) 0, calc(100% - var(--k)) 0, 100% var(--k), 100% calc(100% - var(--k)), calc(100% - var(--k)) 100%, var(--k) 100%, 0 calc(100% - var(--k)), 0 var(--k)); }
.flip-back::before { inset: 0; background: linear-gradient(160deg, #8C5E1B, #E9C688 22%, #C8902F 45%, #F3DDA8 62%, #A8721F 82%, #E2B565); }
.flip-back::after { inset: 1.5px; background: #E3DAF0; clip-path: polygon(calc(var(--k) - .6px) 0, calc(100% - var(--k) + .6px) 0, 100% calc(var(--k) - .6px), 100% calc(100% - var(--k) + .6px), calc(100% - var(--k) + .6px) 100%, calc(var(--k) - .6px) 100%, 0 calc(100% - var(--k) + .6px), 0 calc(var(--k) - .6px)); }

/* ---------- Brave Brain Club: real storybook cover, book viewer (look inside + treasure hunt), coloring-book items ---------- */
.bbv-thumb, .bbv-cov, .bbv-loupe, .bbv-peek { background-image: url("../images/goodie-bag/storybook-cover.jpg"); background-repeat: no-repeat; }
/* storybook panel */
.bbv-row { display: flex; gap: 18px; align-items: center; margin: 10px 0 12px; }
.bbv-row h3 { margin: 0 0 2px; }
.bbv-thumb { position: relative; flex: none; width: 96px; aspect-ratio: 696 / 900; padding: 0; border: 0; border-radius: 4px 6px 6px 4px; background-size: cover; background-position: center; cursor: zoom-in;
  box-shadow: 3px 3px 0 #FBF3DC, 4px 4px 0 #E6DCC2, 0 10px 22px rgba(36,23,79,.25); transform: rotate(-3deg); transition: transform .4s cubic-bezier(.2,.7,.2,1); }
.bbv-thumb:hover, .bbv-thumb:focus-visible { transform: rotate(0) scale(1.04); }
.bbv-thumb:focus-visible { outline: 3px solid var(--gold-deep); outline-offset: 4px; }
.bbv-zoom { position: absolute; right: -8px; bottom: -8px; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--indigo); color: var(--gold); box-shadow: 0 0 0 2px #fff; transition: transform .25s; }
.bbv-thumb:hover .bbv-zoom { transform: scale(1.15); }
.bb-panel .bbv-sub { margin: 0; font: 600 14px var(--font-display); color: var(--faint-on-light); }
.bb-panel .bbv-covers { margin: 14px 0 8px; font: 800 11.5px var(--font-display); letter-spacing: .14em; text-transform: uppercase; color: var(--faint-on-light); }
.bbv-ribbons { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 6px; margin: 0; padding: 0; }
.bbv-ribbons li { font: 600 14px/1 Fredoka, var(--font-display); color: #1F2E78; background: #F8E7A8; padding: 7px 16px; clip-path: polygon(0 0, 100% 0, calc(100% - 7px) 50%, 100% 100%, 0 100%, 7px 50%); }
.bbv-ribbons li::before { content: none; }
.bbv-acts { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 16px 0 6px; }
.bbv-link { appearance: none; border: 0; background: none; padding: 0 0 2px; font: 700 14px var(--font-display); color: var(--indigo); border-bottom: 1.5px solid #D6312B; cursor: pointer; }
.bbv-link:hover { color: #D6312B; }
.bbv-link:focus-visible { outline: 2px solid var(--indigo); outline-offset: 3px; }

/* book viewer */
dialog.bbv { width: min(960px, calc(100vw - 24px)); max-width: none; max-height: calc(100dvh - 24px); border: 0; padding: 0; border-radius: 24px; background: var(--lavender); color: var(--indigo); overflow: auto; box-shadow: 0 30px 80px rgba(0,0,0,.45); }
dialog.bbv[open] { animation: bbv-in .45s cubic-bezier(.2,.7,.2,1); }
dialog.bbv::backdrop { background: rgba(14,9,32,.72); backdrop-filter: blur(4px); }
@keyframes bbv-in { from { opacity: 0; transform: translateY(24px) scale(.96); } }
.bbv-top { position: sticky; top: 0; z-index: 8; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; padding: 18px 20px 14px 26px; background: var(--lavender); border-bottom: 1.5px solid var(--line-light); }
.bbv-top h2 { margin: 0; flex: 1 1 auto; font: 600 20px Fredoka, var(--font-display); color: #1F2E78; }
.bbv-tabs { position: relative; display: inline-grid; grid-template-columns: 1fr 1fr; background: #fff; border: 1.5px solid var(--line-light); border-radius: 99px; padding: 4px; --i: 0; }
.bbv-tabs .bbv-knob { position: absolute; top: 4px; bottom: 4px; left: 4px; width: calc(50% - 4px); border-radius: 99px; background: #F8E7A8; box-shadow: inset 0 0 0 1.5px #2B2238; transform: translateX(calc(var(--i) * 100%)); transition: transform .4s cubic-bezier(.2,.7,.2,1); }
.bbv-tabs button { position: relative; z-index: 1; appearance: none; border: 0; background: none; padding: 8px 18px; font: 600 15px Fredoka, var(--font-display); color: var(--muted-on-light); cursor: pointer; white-space: nowrap; border-radius: 99px; }
.bbv-tabs button[aria-selected="true"] { color: #1F2E78; }
.bbv-x { appearance: none; border: 0; background: #fff; width: 40px; height: 40px; border-radius: 50%; font-size: 26px; line-height: 1; color: var(--indigo); cursor: pointer; box-shadow: 0 0 0 1.5px var(--line-light); }
.bbv-x:hover { background: #F8E7A8; }
.bbv-pane { padding: 28px 20px 30px; animation: bbv-fade .35s ease; }
.bbv-pane[hidden] { display: none; }
@keyframes bbv-fade { from { opacity: 0; transform: translateY(8px); } }
.bbv-cap { text-align: center; margin: 16px auto 0; max-width: 34em; color: var(--muted-on-light); font-size: 15px; }

/* look inside: the cover swings open */
.bbv-ob { --bw: min(380px, 44vw); position: relative; width: calc(var(--bw) * 2); aspect-ratio: 1392 / 900; margin: 0 auto; perspective: 1400px; transition: transform .9s cubic-bezier(.5,.05,.25,1); }
.bbv-ob:not(.open) { transform: translateX(-25%); }
.bbv-in { position: absolute; left: 50%; top: 0; width: 50%; height: 100%; }
.bbv-pg { position: absolute; inset: 0; overflow: hidden; background: #FBF3DC; border-radius: 2px 8px 8px 2px; padding: 24px 26px 36px; color: #2B2238; font-size: 15px; line-height: 1.4;
  outline: 2px solid #2B2238; outline-offset: -8px; box-shadow: inset 8px 0 12px -8px rgba(0,0,0,.3), 0 14px 30px rgba(36,23,79,.22); }
.bbv-pg::after { content: ""; position: absolute; inset: 11px; border: 1px solid #2B2238; pointer-events: none; }
.bbv-pg h3 { margin: 6px 0 10px; text-align: center; font: 600 24px Fredoka, var(--font-display); color: #1F2E78; }
.bbv-inside { list-style: none; margin: 0 0 10px; padding: 0 4px; }
.bbv-inside li { position: relative; margin: 0 0 7px; padding-left: 16px; }
.bbv-inside li::before { content: "★"; position: absolute; left: 0; top: 1px; color: var(--gold-deep); font-size: 11px; }
.bbv-inside b { color: #D6312B; }
.bbv-pg .bbv-covers { text-align: center; margin: 0 0 6px; font: 800 11px var(--font-display); letter-spacing: .14em; text-transform: uppercase; color: var(--faint-on-light); }
.bbv-pg .bbv-ribbons { justify-content: center; gap: 5px 4px; }
.bbv-pg .bbv-ribbons li { font-size: 13px; padding: 5px 11px; }
.bbv-heart { position: absolute; bottom: 16px; left: 50%; transform: translateX(-50%); color: #D6312B; font-size: 14px; }
.bbv-cover { position: absolute; left: 50%; top: 0; width: 50%; height: 100%; padding: 0; border: 0; background: none; cursor: pointer; transform-origin: 0 50%; transform-style: preserve-3d; transition: transform 1.1s cubic-bezier(.5,.05,.25,1); }
.bbv-cover:hover { transform: rotateY(-12deg); }
.bbv-ob.open .bbv-cover { transform: rotateY(-178deg); }
.bbv-front, .bbv-back { position: absolute; inset: 0; border-radius: 2px 8px 8px 2px; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.bbv-front { background-size: cover; background-position: center; box-shadow: inset 6px 0 8px -4px rgba(0,0,0,.35), 0 14px 30px rgba(36,23,79,.25); }
.bbv-back { transform: rotateY(180deg); display: grid; align-content: center; justify-items: center; gap: 14px; background: #FBF3DC; outline: 2px solid #2B2238; outline-offset: -8px; box-shadow: inset -8px 0 12px -8px rgba(0,0,0,.3); }
.bbv-back span { max-width: 84%; text-align: center; font: 600 22px Fredoka, var(--font-display); color: #1F2E78; }
.bbv-back small { max-width: 84%; text-align: center; font: 600 13px Fredoka, var(--font-display); color: #D6312B; }
.bbv-back i { width: 70%; height: 26px; border-bottom: 2px dashed #2B2238; }

/* treasure hunt: a gold magnifier over the cover; hover a name to see what to look for */
#bbv-hunt { display: grid; justify-items: center; text-align: center; }
#bbv-hunt[hidden] { display: none; }
.bbv-hunt { position: relative; width: min(440px, 86vw); aspect-ratio: 696 / 900; overflow: hidden; border-radius: 6px; cursor: none; touch-action: pan-y; box-shadow: 0 16px 34px rgba(36,23,79,.25); }
.bbv-hunt .bbv-cov { position: absolute; inset: 0; background-size: cover; }
.bbv-loupe { position: absolute; left: var(--x, 50%); top: var(--y, 50%); width: 130px; height: 130px; margin: -65px 0 0 -65px; border-radius: 50%; pointer-events: none; opacity: 0; transform: scale(.6);
  background-size: calc(var(--w, 400px) * 2.4) auto; background-position: calc(65px - var(--px, 0px) * 2.4) calc(65px - var(--py, 0px) * 2.4);
  box-shadow: 0 0 0 4px #E9C688, 0 0 0 7px #A8721F, 0 10px 24px rgba(0,0,0,.35); transition: opacity .2s, transform .25s cubic-bezier(.2,.7,.2,1); }
.bbv-hunt.on .bbv-loupe { opacity: 1; transform: none; }
.bbv-spot { position: absolute; aspect-ratio: 1; transform: translate(-50%, -50%); padding: 0; border: 0; border-radius: 50%; background: none; cursor: none; }
.bbv-spot.got { background: radial-gradient(circle, transparent 45%, rgba(242,194,48,.85) 47%, rgba(242,194,48,.85) 53%, transparent 55%); animation: bbv-pop .5s cubic-bezier(.2,.7,.2,1); }
.bbv-spot.got::after { content: "★"; position: absolute; right: -4px; top: -6px; color: #F2C230; font-size: 20px; text-shadow: 0 1px 2px rgba(0,0,0,.4); }
@keyframes bbv-pop { from { transform: translate(-50%, -50%) scale(.4); } }
.bbv-finds { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 14px; margin: 16px 0 0; padding: 0; font-size: 15px; color: var(--muted-on-light); }
.bbv-finds li { position: relative; cursor: help; border-bottom: 1.5px dotted var(--gold-deep); outline: none; }
.bbv-finds li::before { content: none; }
.bbv-finds li:focus-visible { box-shadow: 0 0 0 3px var(--gold-deep); border-radius: 4px; }
.bbv-finds i { font-style: normal; color: var(--gold-deep); margin-right: 5px; }
.bbv-finds li.got { color: var(--indigo); font-weight: 600; }
.bbv-finds li.got i { color: #F2C230; }
.bbv-peek { position: absolute; left: 50%; bottom: calc(100% + 12px); z-index: 6; width: 118px; aspect-ratio: 1; border-radius: 50%; pointer-events: none;
  background-size: var(--bs) auto; background-position: var(--bp); box-shadow: 0 0 0 4px #E9C688, 0 0 0 7px #A8721F, 0 12px 26px rgba(0,0,0,.35);
  opacity: 0; transform: translateX(-50%) translateY(8px) scale(.7); transform-origin: 50% 100%; transition: opacity .2s, transform .3s cubic-bezier(.2,.7,.2,1); }
.bbv-peek::after { content: ""; position: absolute; left: 50%; top: 100%; width: 10px; height: 10px; margin: 5px 0 0 -5px; background: #A8721F; clip-path: polygon(0 0, 100% 0, 50% 100%); }
.bbv-finds li:hover .bbv-peek, .bbv-finds li:focus-visible .bbv-peek { opacity: 1; transform: translateX(-50%) scale(1); }
.bbv-found { margin: 6px 0 0; font: 800 13px var(--font-display); letter-spacing: .06em; color: var(--gold-text); }


@media (max-width: 640px) {
  .bbv-top { display: grid; grid-template-columns: 1fr auto; padding: 14px 14px 12px 18px; }
  .bbv-top h2 { font-size: 17px; }
  .bbv-tabs { grid-column: 1 / -1; order: 3; }
  .bbv-tabs button { padding: 8px 10px; }
  .bbv-pane { padding: 22px 12px 24px; }
  .bbv-ob { --bw: min(200px, calc((100vw - 64px) / 2)); }
  .bbv-pg { font-size: 11px; line-height: 1.35; padding: 14px 14px 22px; }
  .bbv-pg h3 { font-size: 16px; }
  .bbv-pg .bbv-covers, .bbv-pg .bbv-ribbons, .bbv-heart { display: none; }
  .bbv-inside li { margin-bottom: 8px; }
  .bbv-back span { font-size: 13px; }
  .bbv-back small { font-size: 10px; }
  .bbv-hunt, .bbv-spot { cursor: auto; }
}
@media (prefers-reduced-motion: reduce) {
  dialog.bbv[open], .bbv-pane, .bbv-spot.got { animation: none; }
  .bbv-ob, .bbv-cover, .bbv-thumb, .bbv-loupe, .bbv-peek, .bbv-tabs .bbv-knob { transition: none; }
}

/* storybook: the open book shows the first two pages (images), the text moves under the book */
.bbv-pg.img, .bbv-back.img { padding: 0; outline: 0; background: var(--pg) center / 100% 100% no-repeat, #FBF3DC; display: grid; place-items: center; }
.bbv-pg.img::after { display: none; }
.bbv-ph { font: 600 18px Fredoka, var(--font-display); color: #B8AA86; }
.bbv-back.img span.bbv-ph { max-width: none; font: 600 18px Fredoka, var(--font-display); color: #B8AA86; }
.bbv-about { max-width: 640px; margin: 22px auto 0; text-align: center; }
.bbv-about h3 { margin: 0 0 8px; font: 600 20px Fredoka, var(--font-display); color: #1F2E78; }
.bbv-about .bbv-inside { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 20px; padding: 0; margin: 0 0 12px; font-size: 15px; }
.bbv-about .bbv-inside li { padding-left: 14px; margin: 0; text-align: left; }
.bbv-about .bbv-covers { margin: 0 0 8px; font: 800 11px var(--font-display); letter-spacing: .14em; text-transform: uppercase; color: var(--faint-on-light); }
.bbv-about .bbv-ribbons { justify-content: center; }
@media (max-width: 640px) { .bbv-about .bbv-inside { flex-direction: column; align-items: flex-start; } .bbv-about .bbv-ribbons { display: none; } }

/* storybook spreads: the open book shows a real spread (3 in all), split across the two halves */
.bbv-pg.img { border-radius: 2px 6px 6px 2px; }
.bbv-ob[data-s="1"] .bbv-back.img { background: url("../images/goodie-bag/storybook-spread-1.jpg") 0 0 / 200% 100% no-repeat, #fff; }
.bbv-ob[data-s="1"] .bbv-pg.img { background: url("../images/goodie-bag/storybook-spread-1.jpg") 100% 0 / 200% 100% no-repeat, #fff; }
.bbv-ob[data-s="2"] .bbv-back.img { background: url("../images/goodie-bag/storybook-spread-2.jpg") 0 0 / 200% 100% no-repeat, #fff; }
.bbv-ob[data-s="2"] .bbv-pg.img { background: url("../images/goodie-bag/storybook-spread-2.jpg") 100% 0 / 200% 100% no-repeat, #fff; }
.bbv-ob[data-s="3"] .bbv-back.img { background: url("../images/goodie-bag/storybook-spread-3.jpg") 0 0 / 200% 100% no-repeat, #fff; }
.bbv-ob[data-s="3"] .bbv-pg.img { background: url("../images/goodie-bag/storybook-spread-3.jpg") 100% 0 / 200% 100% no-repeat, #fff; }
.bbv-turn { display: flex; align-items: center; justify-content: center; gap: 18px; margin: 18px 0 0; }
.bbv-turn button { appearance: none; width: 42px; height: 42px; border-radius: 50%; border: 0; background: #fff; box-shadow: 0 0 0 1.5px var(--line-light); font: 600 24px/1 Fredoka, var(--font-display); color: #1F2E78; cursor: pointer; padding-bottom: 3px; }
.bbv-turn button:hover:not(:disabled) { background: #F8E7A8; }
.bbv-turn button:disabled { opacity: .35; cursor: default; }
.bbv-turn button:focus-visible { outline: 3px solid var(--gold-deep); outline-offset: 2px; }
.bbv-spnum { min-width: 8em; text-align: center; font: 600 15px Fredoka, var(--font-display); color: #1F2E78; }

/* "Inside this book": highlights on the left, condition ribbons on the right, divided by a rule */
.bbv-about { max-width: 760px; }
.bbv-about h3 { position: relative; display: inline-block; padding-bottom: 10px; margin-bottom: 18px; }
.bbv-about h3::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; border-top: 2px solid #D6312B; border-bottom: 1.5px solid #E2B565; }
.bbv-ab-cols { display: grid; grid-template-columns: 1fr 1fr; text-align: left; }
.bbv-ab-l { padding: 2px 28px 2px 8px; border-right: 2px solid #E6DCC2; display: flex; align-items: center; }
.bbv-ab-r { padding: 2px 8px 2px 28px; }
.bbv-about .bbv-inside { display: block; margin: 0; }
.bbv-about .bbv-inside li { margin: 0 0 9px; padding-left: 18px; font-size: 15.5px; }
.bbv-about .bbv-inside li:last-child { margin-bottom: 0; }
.bbv-about .bbv-covers { text-align: left; margin: 0 0 10px; }
.bbv-about .bbv-ribbons { justify-content: flex-start; }
@media (max-width: 640px) {
  .bbv-ab-cols { grid-template-columns: 1fr; }
  .bbv-ab-l { padding: 0 4px 14px; border-right: 0; border-bottom: 2px solid #E6DCC2; margin-bottom: 14px; }
  .bbv-ab-r { padding: 0 4px; }
  .bbv-about .bbv-ribbons { display: flex; }
  .bbv-about .bbv-inside { flex-direction: column; }
}

/* storybook panel, cleaned up: conditions as one quiet line above two soft buttons; a rule above the dots */
.bb-panel .bbv-plain { margin: 12px 0 14px; font-size: 14.5px; line-height: 1.5; color: var(--faint-on-light); }
.bb-panel .bbv-plain b { color: var(--indigo); }
.bb-panel .bbv-acts { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 6px; }
.bbv-btn { appearance: none; cursor: pointer; padding: 8px 16px; border-radius: 999px; border: 1px solid rgba(36,23,79,.16); background: rgba(36,23,79,.06); color: var(--indigo); font: 700 13.5px var(--font-display); transition: background-color .15s, border-color .15s; }
.bbv-btn:hover { background: rgba(36,23,79,.12); border-color: rgba(36,23,79,.3); }
.bbv-btn:focus-visible { outline: 2px solid var(--indigo); outline-offset: 3px; }
.bb-nav:not([hidden]) { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line-light); justify-content: space-between; }
@media (prefers-reduced-motion: reduce) { .bbv-btn { transition: none; } }

/* storybook panel buttons: one joined pill, gold "Look inside" | purple "Find the hidden treasures" */
.bb-panel .bbv-acts { display: flex; flex-wrap: nowrap; gap: 0; width: 100%; max-width: 420px; border-radius: 999px; overflow: hidden; box-shadow: 0 0 0 1px rgba(36,23,79,.22); }
.bb-panel .bbv-btn { flex: 1 1 auto; border: 0; border-radius: 0; padding: 10px 14px; font: 700 13px var(--font-display); white-space: nowrap; text-align: center; transition: background-color .15s, color .15s; }
.bb-panel .bbv-btn[data-bbv="book"] { background: var(--indigo); color: var(--gold); }
.bb-panel .bbv-btn[data-bbv="book"]:hover { background: #33236B; color: var(--gold-light); }
.bb-panel .bbv-btn[data-bbv="hunt"] { background: #EFE9FA; color: #5A3FA8; box-shadow: inset 2px 0 0 var(--gold); }
.bb-panel .bbv-btn[data-bbv="hunt"]:hover { background: #E2D8F5; color: #43298A; }
.bb-panel .bbv-btn:focus-visible { outline-offset: -3px; outline-color: var(--gold); }


/* storybook panel actions, minimal: two text links, a light grey divider a little taller than the text */
.bb-panel .bbv-acts { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 0; width: auto; max-width: none; border-radius: 0; overflow: visible; box-shadow: none; background: none; margin: 2px 0 6px; }
.bb-panel .bbv-btn { flex: 0 0 auto; position: relative; border: 0; border-radius: 0; background: none; box-shadow: none !important; padding: 6px 16px; font: 700 14px var(--font-display); transition: color .15s; }
.bb-panel .bbv-btn[data-bbv="book"] { padding-left: 0; color: var(--gold-text); }
.bb-panel .bbv-btn[data-bbv="hunt"] { color: #5A3FA8; }
.bb-panel .bbv-btn[data-bbv="hunt"]::before { content: ""; position: absolute; left: 0; top: 50%; width: 1px; height: 24px; margin-top: -12px; background: #D5CFE3; }
.bb-panel .bbv-btn[data-bbv="book"]:hover { background: none; color: #7A4F12; }
.bb-panel .bbv-btn[data-bbv="hunt"]:hover { background: none; color: #43298A; }
.bb-panel .bbv-btn:hover { text-decoration: underline; text-underline-offset: 4px; }
.bb-panel .bbv-btn:focus-visible { outline: 2px solid var(--indigo); outline-offset: 2px; border-radius: 4px; }
.bb-panel .bbv-btn, .bb-panel .bbv-btn:hover { background: none !important; }
.bb-panel .bbv-btn { font-size: 13px; padding: 6px 12px; white-space: nowrap; }
.bb-panel .bbv-btn[data-bbv="book"] { padding-left: 0; }
@media (max-width: 420px) { .bb-panel .bbv-btn[data-bbv="hunt"]::before { display: none; } .bb-panel .bbv-btn[data-bbv="hunt"] { padding-left: 0; } }
.bb-nav .bb-next { order: -1; }

/* ---------- Board + Staff pages: portrait cards on the dark band (gold frames = board, purple = staff) ---------- */
.ts-board { --ts-acc: linear-gradient(160deg, #8C5E1B, #E9C688 22%, #C8902F 45%, #F3DDA8 62%, #A8721F 82%, #E2B565); --ts-light: #E9C688; }
.ts-staff { --ts-acc: linear-gradient(160deg, #4A2F86, #B79BE6 24%, #7A55C2 48%, #D6C4F5 64%, #5E3EA0 84%, #9B7BD8); --ts-light: #C3AAEE; }
.ts { display: flex; flex-direction: column; gap: 24px; width: 100%; max-width: calc(4 * 240px + 3 * 22px); } /* four cards wide */
.ts-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 240px)); gap: 22px; }
/* the cut-corner frame: a 2px gradient edge around a clipped inner card */
.ts-fr { --k: 22px; clip-path: polygon(var(--k) 0, calc(100% - var(--k)) 0, 100% var(--k), 100% calc(100% - var(--k)), calc(100% - var(--k)) 100%, var(--k) 100%, 0 calc(100% - var(--k)), 0 var(--k)); background: var(--ts-acc); padding: 2px; height: 100%; }
.ts-in { --k: 21px; clip-path: polygon(var(--k) 0, calc(100% - var(--k)) 0, 100% var(--k), 100% calc(100% - var(--k)), calc(100% - var(--k)) 100%, var(--k) 100%, 0 calc(100% - var(--k)), 0 var(--k)); position: relative; background: var(--ink-raised); height: 100%; }
.ts-card { height: 100%; }
.ts-pic { position: relative; aspect-ratio: 4 / 5; overflow: hidden; }
.ts-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.ts-img.is-logo { object-fit: contain; padding: 8% 16% 36%; } /* sits high, clear of the name */
.ts-card:hover .ts-img:not(.is-logo) { transform: scale(1.04); }
/* name and role sit on the photo; the quote and Read bio open underneath them on hover or keyboard focus */
.ts-tx { position: absolute; inset: auto 0 0; padding: 64px 18px 16px; background: linear-gradient(transparent, rgba(20,13,43,.94) 45%); color: var(--text-on-dark); }
.ts-tx h3 { font-family: var(--font-display); font-weight: 800; font-size: 18px; line-height: 1.2; margin: 0; }
.ts-role { display: block; font: 600 13px/1.35 var(--font-display); color: var(--ts-light); margin-top: 3px; }
.ts-more { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .4s; }
.ts-more > div { overflow: hidden; }
.ts-more q { display: block; font: italic 400 15.5px/1.45 var(--font-quote); color: #E7E1F5; margin: 10px 0 4px; }
.ts-card:hover .ts-more, .ts-card:focus-within .ts-more { grid-template-rows: 1fr; }
.ts-bio { font: 700 14px var(--font-display); color: var(--ts-light); background: none; border: 0; padding: 4px 0; cursor: pointer; display: inline-flex; gap: 6px; }
.ts-bio:hover { text-decoration: underline; }
.ts-bio:focus-visible { outline: 3px solid var(--ts-light); outline-offset: 3px; border-radius: 6px; }
/* the President callout on the board page */
.ts-lead .ts-fr { --k: 26px; }
.ts-lead .ts-in { --k: 25px; display: flex; align-items: center; gap: 32px; padding: 28px 34px; color: var(--text-on-dark); }
.ts-lead-pic { flex: none; width: 180px; height: 180px; border-radius: 50%; padding: 4px; background: var(--ts-acc); }
.ts-lead-pic img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; border: 4px solid var(--ink-raised); }
.ts-lead h3 { font-family: var(--font-display); font-weight: 800; font-size: 28px; line-height: 1.2; margin: 6px 0 10px; }
.ts-lead blockquote { margin: 0 0 8px; font: italic 400 clamp(18px, 2.2vw, 22px)/1.45 var(--font-quote); color: #E7E1F5; }
/* touch screens and phones: always show the quote */
@media (hover: none), (max-width: 760px) { .ts-more { grid-template-rows: 1fr; } }
@media (max-width: 760px) {
  .ts-grid { grid-template-columns: 1fr; max-width: 420px; margin: 0 auto; width: 100%; }
  .ts-lead .ts-in { flex-direction: column; text-align: center; padding: 24px 18px; gap: 16px; }
  .ts-lead-pic { width: 150px; height: 150px; }
  .ts-lead h3 { font-size: 24px; }
}
@media (prefers-reduced-motion: reduce) { .ts-img, .ts-more { transition: none; } .ts-card:hover .ts-img { transform: none; } }

/* ---------- Community Resources: open partner feature with a site screenshot, "what's coming" list, partner form (the only cut corner) ---------- */
.cr-open { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(28px, 4vw, 56px); align-items: center; }
.cr-shot { display: block; border-radius: 18px; overflow: hidden; background: var(--white); box-shadow: 0 18px 40px rgba(36,23,79,.16), 0 0 0 1px var(--line-light); transition: transform .35s, box-shadow .35s; }
.cr-shot:hover { transform: translateY(-4px); box-shadow: 0 24px 50px rgba(36,23,79,.22), 0 0 0 1px var(--line-light); }
.cr-shot:focus-visible { outline: 3px solid var(--gold-deep); outline-offset: 4px; }
.cr-shot img { display: block; width: 100%; height: auto; }
.cr-tx { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.cr-tx h2 { font-weight: 800; font-size: clamp(28px, 3.4vw, 38px); line-height: 1.15; }
.cr-tx p { color: var(--muted-on-light); }
.cr-tx .btn { margin-top: 4px; }
.cr-next { margin-top: clamp(20px, 3vw, 32px); padding-top: 28px; border-top: 1px solid var(--line-light); }
.cr-next h2 { font-weight: 800; font-size: 18px; margin-bottom: 18px; }
.cr-next ol { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px 30px; }
.cr-next li { display: flex; gap: 14px; align-items: flex-start; }
.cr-ic { flex: none; width: 44px; height: 44px; border-radius: 50%; background: var(--honey); color: var(--gold-deep); display: grid; place-items: center; }
.cr-next b { display: block; font: 700 16px var(--font-display); color: var(--indigo); }
.cr-next li span:not(.cr-ic) { color: var(--muted-on-light); font-size: 15.5px; }
.cr-partner { display: grid; grid-template-columns: 1fr 1.3fr; gap: clamp(28px, 4vw, 56px); align-items: center; margin-top: clamp(24px, 4vw, 48px); scroll-margin-top: 24px; }
.cr-cut { --k: 26px; clip-path: polygon(var(--k) 0, calc(100% - var(--k)) 0, 100% var(--k), 100% calc(100% - var(--k)), calc(100% - var(--k)) 100%, var(--k) 100%, 0 calc(100% - var(--k)), 0 var(--k)); background: linear-gradient(160deg, #8C5E1B, #E9C688 22%, #C8902F 45%, #F3DDA8 62%, #A8721F 82%, #E2B565); padding: 2px; }
.cr-cut .mock-form { --k: 25px; clip-path: polygon(var(--k) 0, calc(100% - var(--k)) 0, 100% var(--k), 100% calc(100% - var(--k)), calc(100% - var(--k)) 100%, var(--k) 100%, 0 calc(100% - var(--k)), 0 var(--k)); border: 0; border-radius: 0; }
.cr-cut .mock-form h2 { font-size: 22px; }
@media (max-width: 820px) {
  .cr-open, .cr-partner { grid-template-columns: 1fr; }
  .cr-next ol { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { .cr-shot { transition: none; } .cr-shot:hover { transform: none; } }
/* the partner form's own rounded ring/glint would clash with the cut-corner frame: keep only the frame */
.cr-cut .mock-form { background: var(--white); filter: none; }
.cr-cut .mock-form::before, .cr-cut .mock-form::after { display: none; }

/* Board + Staff & Volunteers pages: centered title and content */
body:has(.ts-sec) .page-hero .wrap { align-items: center; text-align: center; }
body:has(.ts-sec) .page-hero h1 { margin-inline: auto; }
body:has(.ts-sec) .page-hero h1::after { margin-inline: auto; }
body:has(.ts-sec) .page-hero .lead { max-width: 40em; margin-inline: auto; }
body:has(.ts-sec) .ts-sec .wrap { align-items: center; }
body:has(.ts-sec) .ts-sec .prose, body:has(.ts-sec) .ts-sec .section-head { align-items: center; text-align: center; margin-inline: auto; }
body:has(.ts-sec) .ts { margin-inline: auto; }
body:has(.ts-sec) .ts-grid { display: flex; flex-wrap: wrap; justify-content: center; }
body:has(.ts-sec) .ts-card { width: 240px; height: auto; }
@media (max-width: 760px) { body:has(.ts-sec) .ts-card { width: 100%; max-width: 420px; } body:has(.ts-sec) .ts-grid { flex-direction: column; align-items: center; } }

/* ---------- What is Chiari?: short intro + Primary/Secondary underline tabs in a card, then one tab per type ---------- */
.wc-top { display: grid; grid-template-columns: 1fr 1.25fr; gap: clamp(24px, 4vw, 48px); align-items: start; }
.wc-intro { display: flex; flex-direction: column; gap: 10px; }
.wc-big { font-size: 20px; line-height: 1.55; color: var(--indigo); }
.wc-more summary { font: 700 15px var(--font-display); color: #5A3FA8; cursor: pointer; list-style: none; width: fit-content; }
.wc-more summary::-webkit-details-marker { display: none; }
.wc-more summary::after { content: " ↓"; }
.wc-more[open] summary::after { content: " ↑"; }
.wc-more[open] summary { margin-bottom: 10px; }
.wc-more p { color: var(--muted-on-light); margin-bottom: 10px; }
.wc-more summary:focus-visible { outline: 3px solid var(--gold-deep); outline-offset: 3px; border-radius: 4px; }
/* underline tabs (shared by both groups) */
.wc-tabs { display: flex; flex-wrap: wrap; gap: 4px; border-bottom: 2px solid var(--line-light); }
.wc-tabs [role="tab"] { border: 0; background: none; padding: 12px 15px 10px; margin-bottom: -2px; border-bottom: 3px solid transparent; font: 800 15px var(--font-display); color: var(--faint-on-light); cursor: pointer; transition: color .15s, border-color .15s; }
.wc-tabs [role="tab"]:hover { color: var(--indigo); }
.wc-tabs [role="tab"][aria-selected="true"] { color: var(--indigo); border-bottom-color: var(--gold-deep); }
.wc-tabs [role="tab"]:focus-visible { outline: 3px solid var(--gold-deep); outline-offset: -3px; border-radius: 8px 8px 0 0; }
.wc-panel:focus-visible { outline: 3px solid var(--gold-deep); outline-offset: 4px; }
/* Primary / Secondary: the tabs sit inside the card's top edge */
.wc-card { background: var(--white); border: 1px solid var(--line-light); border-radius: 22px; overflow: hidden; }
.wc-ps .wc-tabs { padding: 0 18px; }
.wc-ps .wc-panel { padding: 20px 24px 22px; }
.wc-ps .wc-panel p { color: var(--muted-on-light); margin-bottom: 10px; }
.wc-ps .wc-panel p:last-child { margin-bottom: 0; }
.wc-short { font-weight: 700; font-size: 18px; line-height: 1.45; color: var(--indigo) !important; }
/* the type tabs: underline row, then one white panel */
.wc-types .wc-tabs { margin-bottom: 18px; }
.wc-types .wc-panel { background: var(--white); border: 1px solid var(--line-light); border-radius: 24px; padding: clamp(22px, 3.4vw, 36px); }
.wc-th { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 18px; }
.wc-th h3 { font-weight: 800; font-size: 24px; line-height: 1.2; }
.wc-grid { display: grid; grid-template-columns: 1.7fr 1fr; gap: clamp(22px, 3vw, 40px); align-items: start; }
.wc-plain { font-weight: 600; font-size: 18px; line-height: 1.5; color: var(--indigo); background: var(--honey); border-left: 4px solid var(--gold-deep); padding: 12px 16px; border-radius: 0 14px 14px 0; margin-bottom: 18px; }
.wc-read p:not(.wc-plain) { font-size: 17.5px; line-height: 1.75; color: var(--muted-on-light); max-width: 62ch; margin-bottom: 14px; }
.wc-facts { background: var(--lavender); border-radius: 18px; padding: 20px; display: flex; flex-direction: column; gap: 18px; }
.wc-facts h4 { font: 700 12px var(--font-display); text-transform: uppercase; letter-spacing: .12em; color: var(--brown); margin-bottom: 8px; }
.wc-facts p, .wc-facts a { font-size: 15px; }
.wc-facts p { color: var(--muted-on-light); }
.wc-checks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.wc-checks li { position: relative; padding-left: 28px; font-size: 16px; line-height: 1.4; color: var(--indigo); }
.wc-checks li::before { content: ""; position: absolute; left: 0; top: 2px; width: 18px; height: 18px; border-radius: 50%; background: var(--honey) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23A8721F' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12 4 4 8-8'/%3E%3C/svg%3E") center / 12px no-repeat; }
@media (max-width: 860px) {
  .wc-top, .wc-grid { grid-template-columns: 1fr; }
  .wc-tabs [role="tab"] { padding: 10px 12px 8px; }
}
@media (prefers-reduced-motion: reduce) { .wc-tabs [role="tab"] { transition: none; } }

/* ---------- What is Chiari?: type illustrations beside the tabs (Child | Adult, Whole head | Close-up) ---------- */
.wc-ill-grid { display: grid; grid-template-columns: minmax(280px, 380px) 1fr; gap: clamp(20px, 3vw, 36px); align-items: start; }
.wc-ill .wc-grid { grid-template-columns: 1fr; }
.wc-ill .wc-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 18px; }
.wc-fig { margin: 0; position: sticky; top: 24px; display: flex; flex-direction: column; gap: 10px; }
.wc-fig-ctrl { display: flex; flex-wrap: wrap; gap: 8px; }
.wc-switch { display: inline-flex; background: var(--white); border: 1px solid var(--line-light); border-radius: 999px; padding: 3px; }
.wc-switch button { border: 0; background: none; border-radius: 999px; padding: 6px 14px; font: 700 13px var(--font-display); color: var(--muted-on-light); cursor: pointer; }
.wc-switch button[aria-pressed="true"] { background: var(--indigo); color: var(--white); }
.wc-view button[aria-pressed="true"] { background: var(--gold-deep); }
.wc-switch button:focus-visible { outline: 3px solid var(--gold-deep); outline-offset: 2px; }
.wc-stage { position: relative; aspect-ratio: 1716 / 2128; border-radius: 18px; overflow: hidden; background: var(--white); border: 1px solid var(--line-light); }
.wc-lay { position: absolute; inset: 0; opacity: 0; transition: opacity .7s ease; }
.wc-lay.is-on { opacity: 1; }
.wc-lay img, .wc-ph { position: absolute; inset: 0; width: 100%; height: 100%; }
.wc-lay img { object-fit: contain; transition: transform .6s cubic-bezier(.3,.7,.2,1); transform-origin: 66% 59%; }
.wc-lay img.wc-adult { object-fit: cover; transform-origin: 68% 56%; }
.wc-stage[data-show="child"] .wc-adult, .wc-stage[data-show="adult"] .wc-child { display: none; }
.wc-note { margin: 0; font-size: 14px; color: var(--faint-on-light); }
.wc-stage.is-close img.wc-child { transform: scale(2.3); }
.wc-stage.is-close img.wc-adult { transform: scale(2.1); }
.wc-ph { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; text-align: center; padding: 20px; color: var(--faint-on-light); font: 700 14px var(--font-display); background: repeating-linear-gradient(45deg, #FBF9FE 0 12px, #F4F0FA 12px 24px); }
@media (max-width: 860px) {
  .wc-ill-grid { grid-template-columns: 1fr; }
  .wc-fig { position: static; max-width: 380px; width: 100%; margin: 0 auto; }
}
@media (prefers-reduced-motion: reduce) { .wc-lay, .wc-lay img { transition: none; } }

/* All main page titles: centered */
.page-hero .wrap { align-items: center; text-align: center; }
.page-hero h1 { margin-inline: auto; }
.page-hero h1::after { margin-inline: auto; }
.page-hero .lead { max-width: 40em; margin-inline: auto; }
.page-hero.is-light .ph-text { border-left: 0; padding-left: 0; align-items: center; }
.ph-tabs ul { justify-content: center; }

/* Board / Staff pages: a little more room around the cards */
body:has(.ts-sec) .ts { max-width: calc(4 * 240px + 3 * 34px); }
body:has(.ts-sec) .ts-grid { gap: 34px; }
body:has(.ts-sec) .ts-sec { padding-top: 72px; }
body:has(.ts-sec) .ts { gap: 36px; }

/* ---------- Comorbidities: body map (pick a part on the body or in the list; it glows gold) ---------- */
.cm-map { display: grid; grid-template-columns: minmax(280px, 340px) 1fr; gap: clamp(20px, 3vw, 36px); align-items: start; }
.cm-side { position: sticky; top: 24px; }
.cm-panel { background: var(--ink); border-radius: 22px; padding: 14px 10px 12px; display: flex; flex-direction: column; gap: 6px; }
.cm-body { display: block; width: 100%; height: auto; max-height: 600px; margin: 0 auto; }
.cm-z { cursor: pointer; }
.cm-hl * { fill: var(--gold-light); }
.cm-hl { opacity: 0; transition: opacity .4s; }
.cm-g { filter: url(#cm-blur); mix-blend-mode: screen; }
.cm-c { mix-blend-mode: color; }
.cm-hit * { fill: transparent; }
.cm-z:hover .cm-c { opacity: .4; }
.cm-z.is-on .cm-g { opacity: .55; }
.cm-z.is-on .cm-c { opacity: .95; }
.cm-parts { display: flex; flex-direction: column; gap: 2px; }
.cm-parts button { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; border: 0; background: none; border-radius: 10px; padding: 10px 12px; font: 700 14px var(--font-display); color: var(--muted-on-dark); cursor: pointer; transition: background .3s, color .3s; }
.cm-parts button:hover { background: rgba(255, 255, 255, .05); }
.cm-parts button[aria-selected="true"] { background: rgba(255, 255, 255, .08); color: var(--white); }
.cm-parts button:focus-visible { outline: 3px solid var(--gold-light); outline-offset: 2px; }
.cm-dot { flex: none; width: 8px; height: 8px; border-radius: 50%; background: #4A3C80; transition: background .3s, box-shadow .3s; }
.cm-parts [aria-selected="true"] .cm-dot { background: var(--gold-light); box-shadow: 0 0 8px 2px rgba(233, 198, 136, .7); }
.cm-pane { scroll-margin-top: 90px; }
.cm-pane h2 { font: 800 clamp(24px, 3vw, 30px)/1.2 var(--font-display); color: var(--indigo); margin: 0 0 16px; }
.cm-cond { background: var(--white); border: 1px solid var(--line-light); border-radius: 18px; padding: 18px 22px; margin-bottom: 12px; scroll-margin-top: 90px; }
.cm-cond summary { list-style: none; cursor: pointer; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.cm-cond summary::-webkit-details-marker { display: none; }
.cm-cond summary:focus-visible { outline: 3px solid var(--gold-deep); outline-offset: 4px; border-radius: 8px; }
.cm-name { font: 800 19px/1.3 var(--font-display); color: var(--indigo); }
.cm-chev { margin-left: auto; font-size: 22px; line-height: 1; color: var(--faint-on-light); transition: transform .25s; }
.cm-cond[open] .cm-chev { transform: rotate(180deg); }
.cm-cond[open] summary { margin-bottom: 14px; }
.cm-plain { font: 600 18px/1.5 var(--font-body); color: var(--indigo); background: var(--honey); border-left: 4px solid var(--gold-deep); padding: 12px 16px; border-radius: 0 14px 14px 0; margin: 0 0 18px; }
.cm-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: clamp(18px, 3vw, 32px); align-items: start; }
.cm-read p { color: var(--muted-on-light); font-size: 17px; line-height: 1.7; margin: 0 0 12px; max-width: 62ch; }
.cm-facts { background: var(--lavender); border-radius: 18px; padding: 20px; display: flex; flex-direction: column; gap: 18px; }
.cm-facts h4 { font: 700 12px var(--font-display); text-transform: uppercase; letter-spacing: .12em; color: var(--brown); margin: 0 0 8px; }
.cm-facts .dot-list li, .cm-facts a { font-size: 15px; }
@media (max-width: 860px) {
  .cm-map, .cm-grid { grid-template-columns: 1fr; }
  .cm-side { position: static; max-width: 340px; width: 100%; margin: 0 auto; }
  .cm-body { max-height: 440px; }
}
@media (prefers-reduced-motion: reduce) { .cm-hl, .cm-parts button, .cm-dot, .cm-chev { transition: none; } }

/* ---------- CNS CM Guidelines: G5 on light (numbered chapter rows that open in the reading room) ---------- */
.g5-band { gap: 0; color: var(--indigo); }
.g5-head { max-width: 720px; margin-bottom: 20px; }
.g5-eb { font: 800 12px var(--font-display); text-transform: uppercase; letter-spacing: .16em; color: var(--gold-text); }
.g5-band .g5-head h2 { font: 800 clamp(22px, 3vw, 28px)/1.2 var(--font-display); color: var(--indigo); margin: 8px 0 10px; }
.g5-head p { color: var(--muted-on-light); font-size: 17px; line-height: 1.6; margin: 0; }
.g5-list { list-style: none; margin: 0; padding: 0; }
.g5-band .dcard.g5-row { flex-direction: row; align-items: center; gap: 20px; height: auto; padding: 20px 12px; margin: 0 -12px; background: none; box-shadow: none; border-radius: 14px; border-top: 1px solid var(--line-light); color: var(--indigo); transform: none; transition: background .2s, box-shadow .2s; }
.g5-band .dcard.g5-row:hover, .g5-band .dcard.g5-row:focus-visible { background: var(--white); color: var(--indigo); transform: none; box-shadow: 0 10px 24px -18px rgba(27, 18, 56, .45); }
.g5-band .dcard.g5-row:focus-visible { outline: 2px solid var(--gold-deep); outline-offset: 2px; }
.g5-n { font: 800 28px var(--font-display); color: var(--gold-text); min-width: 44px; }
.g5-t { flex: 1; display: flex; flex-direction: column; gap: 3px; }
.g5-t b { font: 800 18px var(--font-display); color: var(--indigo); }
.g5-t span { color: var(--muted-on-light); font-size: 16px; line-height: 1.45; }
.g5-pill { display: inline-flex; align-items: center; gap: 6px; background: var(--indigo); color: var(--white); border-radius: 999px; padding: 9px 16px; font: 800 13px var(--font-display); white-space: nowrap; transition: background .2s; }
.g5-row:hover .g5-pill { background: #3A2A75; }
.g5-foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; margin: 20px 0 0; padding-top: 18px; border-top: 1px solid var(--line-light); font-size: 14px; color: var(--faint-on-light); }
.g5-foot a { font: 700 15px var(--font-display); color: #5A3FA8; }
@media (max-width: 860px) {
  .g5-band .dcard.g5-row { flex-wrap: wrap; gap: 10px 16px; }
  .g5-t { flex-basis: calc(100% - 64px); }
  .g5-pill { margin-left: 60px; }
}

/* Mission page title stays left-aligned */
body:has(.about-tabs a[href="about-mission.html"][aria-current="page"]) .page-hero .wrap { align-items: flex-start; text-align: left; }
body:has(.about-tabs a[href="about-mission.html"][aria-current="page"]) .page-hero h1,
body:has(.about-tabs a[href="about-mission.html"][aria-current="page"]) .page-hero h1::after,
body:has(.about-tabs a[href="about-mission.html"][aria-current="page"]) .page-hero .lead { margin-inline: 0; }

/* Treasure hunt names: soft honey pills (found = filled, not found = dashed) */
.bbv-finds { gap: 8px 10px; }
.bbv-finds li { border-bottom: 0; padding: 5px 12px; border-radius: 999px; border: 1.5px dashed #C9BFE3; }
.bbv-finds li.got { background: #FFF3D1; border: 1.5px solid #E9C688; color: var(--indigo); font-weight: 600; }

/* ---------- Patient & Caregiver Grants: intro cards and the step-by-step application ---------- */
.g-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.g-cards + .g-cards { margin-top: 16px; }
.g-card p b { color: var(--indigo); }
.g-card { background: var(--white); border: 1px solid var(--line-light); border-radius: 20px; padding: 20px 22px; }
.g-card p { margin: 0; color: var(--muted-on-light); }
.g-card small { color: var(--faint-on-light); font-size: 14px; }
.g-card .g-eb { font: 800 12px var(--font-display); text-transform: uppercase; letter-spacing: .14em; color: var(--brown); margin: 0 0 10px; }
.g-amts { font: 800 20px var(--font-display); color: var(--indigo) !important; }
.g-how { margin: 0; padding-left: 20px; color: var(--muted-on-light); font-size: 15.5px; display: flex; flex-direction: column; gap: 4px; }
.g-how b { color: var(--indigo); }
.g-form h3 { font: 800 20px var(--font-display); color: var(--indigo); margin: 4px 0 4px; }
.g-step { display: flex; flex-direction: column; gap: 14px; }
.g-step[hidden] { display: none; }
.g-step h3:focus { outline: none; }
.g-amount { grid-column: 1 / -1; max-width: 440px; }
.g-wide, .g-form .field-grid > .g-group.g-wide { grid-column: 1 / -1; }
.g-hint { display: block; margin: 6px 4px 0; font-size: 13.5px; color: var(--faint-on-light); }
.g-row { display: flex; justify-content: space-between; gap: 12px; }
[data-who="patient"] [data-only="caregiver"], [data-who="caregiver"] [data-only="patient"] { display: none; }
/* steps bar */
.g-bar { list-style: none; margin: 4px 0 6px; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); }
.g-bar li { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; font: 700 13px var(--font-display); color: var(--faint-on-light); }
.g-bar li::before { content: ""; position: absolute; top: 15px; left: -50%; right: 50%; height: 3px; background: #E6E1F2; z-index: 0; }
.g-bar li:first-child::before { display: none; }
.g-bar span { position: relative; z-index: 1; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--white); border: 2px solid #D9D2EA; font-size: 13px; }
.g-bar li.is-on, .g-bar li.is-past { color: var(--indigo); }
.g-bar li.is-on span { background: var(--indigo); border-color: var(--indigo); color: var(--gold-light); }
.g-bar li.is-past span { background: var(--gold-deep); border-color: var(--gold-deep); color: var(--white); }
.g-bar li.is-on::before, .g-bar li.is-past::before { background: var(--gold-deep); }
/* who is applying */
.g-whos { border: 0; margin: 0; padding: 0; }
.g-whos + .g-whos { margin-top: 4px; }
.g-whos legend, .g-group legend { padding: 0; font: 700 11px var(--font-display); letter-spacing: .1em; text-transform: uppercase; color: #6E4A10; margin-bottom: 8px; }
.g-who-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.g-who { position: relative; display: flex; gap: 14px; align-items: center; padding: 14px 16px; border-radius: 16px; background: #FBF9FE; box-shadow: inset 0 0 0 1.5px #D9D2EA; cursor: pointer; transition: box-shadow .2s, background .2s; }
.g-who:hover { box-shadow: inset 0 0 0 1.5px #BFB3DC; }
.g-who input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.g-who-ic { flex: none; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: var(--lavender-card); color: #5A3FA8; }
.g-who-t { display: flex; flex-direction: column; }
.g-who-t b { font: 800 16px var(--font-display); color: var(--indigo); }
.g-who-t small { font-size: 14px; line-height: 1.4; color: var(--muted-on-light); }
.g-who-tick { position: absolute; top: 10px; right: 10px; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--gold-deep); color: var(--white); opacity: 0; }
.g-who:has(input:checked) { background: var(--white); box-shadow: inset 0 0 0 2px var(--gold-deep); }
.g-who:has(input:checked) .g-who-tick { opacity: 1; }
.g-who:has(input:checked) .g-who-ic { background: var(--honey); color: var(--gold-text); }
.g-who:has(input:focus-visible) { outline: 2px solid var(--indigo); outline-offset: 3px; }
/* choice chips */
.g-group { border: 0; margin: 0; padding: 0; min-width: 0; }
.g-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.g-chip { position: relative; }
.g-chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.g-chip span { display: inline-block; padding: 9px 16px; border-radius: 999px; background: #FBF9FE; box-shadow: inset 0 0 0 1.5px #D9D2EA; font: 600 15px var(--font-body); color: var(--indigo); cursor: pointer; transition: box-shadow .2s, background .2s, color .2s; }
.g-chip span:hover { box-shadow: inset 0 0 0 1.5px #BFB3DC; }
.g-chip input:checked + span { background: var(--indigo); color: var(--gold-light); box-shadow: inset 0 0 0 1.5px var(--indigo); font-weight: 700; }
.g-chip input:focus-visible + span { outline: 2px solid var(--gold-deep); outline-offset: 2px; }
/* need box, upload, agreements */
.g-need { background: var(--lavender); border-radius: 18px; padding: 16px; }
.g-need p { margin: 0 0 12px; font-size: 15px; color: var(--muted-on-light); }
.g-drop { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; padding: 30px 16px; border-radius: 18px; background: #FBF9FE; border: 2px dashed #D9D2EA; color: var(--muted-on-light); cursor: pointer; }
.g-drop:hover { border-color: var(--gold-deep); }
.g-drop b { font: 800 17px var(--font-display); color: var(--indigo); }
.g-drop-ic { color: var(--gold-deep); }
.g-drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.g-warn { margin: 0; font-size: 15px; color: var(--brown); background: #F6EEDC; border-radius: 12px; padding: 10px 14px; }
.g-agree { display: flex; flex-direction: column; gap: 10px; }
.g-tick { display: flex; gap: 10px; align-items: flex-start; font-size: 16px; line-height: 1.45; color: var(--indigo); }
.g-tick input { flex: none; width: 20px; height: 20px; margin-top: 2px; accent-color: var(--indigo); }
.g-optn { color: var(--muted-on-light); border-top: 1px dashed var(--line-light); padding-top: 10px; }
.g-sig .fld input:not([type="date"]) { font-family: Georgia, serif; font-style: italic; }
/* step buttons */
.g-nav { display: flex; justify-content: space-between; align-items: center; margin-top: 6px; }
.g-back { border: 0; background: none; padding: 8px 0; font: 700 15px var(--font-display); color: #5A3FA8; cursor: pointer; }
.g-back:hover { color: var(--indigo); }
.g-nav .btn.btn-cut { align-self: auto; margin-top: 0; }
@media (max-width: 860px) {
  .g-cards, .g-cards.g-two, .g-who-row { grid-template-columns: 1fr; }
  .g-bar b { display: none; }
}

/* ---------- Donation Station: navy goal band with ring and bag, items card, ticket cards, steps ---------- */
.ds-band { position: relative; display: grid; grid-template-columns: auto 1fr 220px; gap: 32px; align-items: center; background: var(--ink); border-radius: 26px; padding: 30px 34px; color: var(--text-on-dark); margin-top: 40px; }
.ds-band .eyebrow { color: var(--gold-light); }
.ds-band h2 { font: 800 clamp(28px, 3.4vw, 40px)/1.1 var(--font-display); color: var(--white); margin: 8px 0 12px; }
.ds-band h2 em { font-style: normal; color: var(--gold-light); }
.ds-band p { color: var(--muted-on-dark); margin: 0; }
.ds-sample { display: block; margin-top: 6px; color: #9C90C4; font-size: 13px; }
.ds-ring { --size: 180px; width: var(--size); height: var(--size); border-radius: 50%; display: grid; place-items: center; background: conic-gradient(var(--gold-light) calc(var(--p) * 1%), #2E2257 0); }
.ds-ring > div { width: calc(var(--size) - 34px); height: calc(var(--size) - 34px); border-radius: 50%; background: var(--ink); display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.ds-ring b { font: 800 44px/1 var(--font-display); color: var(--white); }
.ds-ring small { margin-top: 4px; font: 700 12.5px/1.3 var(--font-display); color: var(--muted-on-dark); }
.ds-bag { position: relative; width: 230px; margin: -70px -14px -46px 0; align-self: end; }
.ds-bag img { display: block; width: 100%; filter: drop-shadow(0 18px 22px rgba(0, 0, 0, .35)); }
.ds-x3 { position: absolute; right: -4px; bottom: 14px; background: var(--ink); color: var(--gold-light); font: 800 22px var(--font-display); border-radius: 999px; padding: 6px 14px; box-shadow: 0 0 0 4px var(--white); }
.ds-under { display: grid; grid-template-columns: 1fr auto; gap: 32px; align-items: start; background: var(--white); border: 1px solid var(--line-light); border-radius: 22px; padding: 24px 28px; }
.ds-under h2 { font: 800 22px var(--font-display); color: var(--indigo); margin: 0 0 10px; }
.ds-kick { font: 800 12px var(--font-display); text-transform: uppercase; letter-spacing: .14em; color: var(--gold-text); }
.ds-inside { display: flex; flex-direction: column; gap: 10px; }
.ds-inside ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.ds-inside li { display: flex; flex-direction: column; align-items: center; gap: 4px; width: 66px; }
.ds-inside li::before { content: none; }
.ds-inside img { width: 54px; height: 54px; object-fit: contain; background: var(--lavender); border-radius: 14px; padding: 6px; }
.ds-inside span { font: 700 12px var(--font-display); color: var(--muted-on-light); }
.ds-inside .text-link { font-size: 15px; }
/* tickets */
.ds-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: stretch; }
.ds-tk { position: relative; display: flex; flex-direction: column; gap: 14px; background: var(--white); border: 1px solid var(--line-light); border-radius: 22px; padding: 26px; }
.ds-tk-top { display: flex; gap: 14px; align-items: center; }
.ds-tk-top img { width: 60px; }
.ds-tk h3 { font: 800 24px var(--font-display); color: var(--indigo); margin: 4px 0 0; }
.ds-tk p { flex: 1; margin: 0; color: var(--muted-on-light); font-size: 17px; line-height: 1.6; }
.ds-tk-cut { position: relative; margin: 4px -26px; border-top: 2px dashed #D9D2EA; }
.ds-tk-cut::before, .ds-tk-cut::after { content: ""; position: absolute; top: -12px; width: 22px; height: 22px; border-radius: 50%; background: var(--lavender); }
.ds-tk-cut::before { left: -11px; } .ds-tk-cut::after { right: -11px; }
.ds-dest { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.ds-dest li { display: flex; align-items: center; gap: 10px; font: 700 15px var(--font-display); color: var(--indigo); }
.ds-dest li::before { content: none; }
.ds-dest i { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--lavender); color: #5A3FA8; }
.ds-tk.is-dark { background: var(--ink); border-color: var(--ink); }
.ds-tk.is-dark h3 { color: var(--white); } .ds-tk.is-dark p { color: var(--muted-on-dark); } .ds-tk.is-dark .ds-kick { color: var(--gold-light); }
.ds-tk.is-dark .ds-tk-cut { border-top-color: #3A2D6B; }
.ds-tk.is-dark .ds-dest li { color: var(--white); } .ds-tk.is-dark .ds-dest i { background: #2E2257; color: var(--gold-light); }
.ds-btn { align-self: flex-start; border: 0; border-radius: 999px; background: var(--indigo); color: var(--gold-light); padding: 12px 24px; font: 800 15px var(--font-display); cursor: pointer; box-shadow: inset 0 0 0 2px var(--gold-deep); transition: background .2s, transform .15s; }
.ds-btn:hover { background: #33236B; transform: translateY(-1px); }
.ds-btn.is-gold { background: var(--gold-light); color: var(--ink); box-shadow: none; }
.ds-btn.is-gold:hover { background: #F3DDA8; }
.ds-btn:focus-visible { outline: 3px solid var(--gold-deep); outline-offset: 3px; }
.ds-lede { margin: 0; max-width: 70ch; color: var(--muted-on-light); }
.ds-h { font: 800 26px var(--font-display); color: var(--indigo); margin: 18px 0 0; }
.ds-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.ds-steps li { background: var(--white); border: 1px solid var(--line-light); border-radius: 20px; padding: 20px; }
.ds-steps li::before { content: none; }
.ds-steps span { display: grid; place-items: center; width: 34px; height: 34px; margin-bottom: 10px; border-radius: 50%; background: var(--indigo); color: var(--gold-light); font: 800 15px var(--font-display); }
.ds-steps b { font: 800 17px var(--font-display); color: var(--indigo); }
.ds-steps p { margin: 6px 0 0; color: var(--muted-on-light); font-size: 15.5px; }
.ds-note { margin: 0; padding: 12px 16px; background: var(--honey); border-left: 4px solid var(--gold-deep); border-radius: 0 14px 14px 0; color: var(--indigo); }
.ds-thanks { align-self: center; max-width: 46ch; margin: 6px auto 0; text-align: center; font: 700 18px/1.5 var(--font-display); color: var(--gold-text); }
@media (max-width: 900px) {
  .ds-band, .ds-under, .ds-pair, .ds-steps { grid-template-columns: 1fr; }
  .ds-band { text-align: center; margin-top: 0; }
  .ds-ring { justify-self: center; }
  .ds-bag { width: 170px; margin: 0 auto -8px; align-self: center; }
}

/* ---------- Patient & Caregiver Grants: plum "About these grants" bar, and the form header outside the card ---------- */
.gi-bar { background: #3A2D6B; border-radius: 22px; padding: 14px 20px; }
.gi-bar summary { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; list-style: none; cursor: pointer; }
.gi-bar summary::-webkit-details-marker { display: none; }
.gi-bar summary:focus-visible { outline: 2px solid var(--gold-light); outline-offset: 4px; border-radius: 14px; }
.gi-nums { display: flex; flex-wrap: wrap; gap: 8px 28px; }
.gi-nums span { display: flex; flex-direction: column; }
.gi-nums b { font: 700 18px var(--font-display); color: #F3DDA8; }
.gi-nums small { font-size: 13px; color: #D6CEF0; }
.gi-btn { flex: none; display: inline-flex; align-items: center; gap: 10px; font: 700 13.5px var(--font-display); color: #F4F0FA; }
.gi-chev { flex: none; width: 9px; height: 9px; border-right: 2.2px solid #F3DDA8; border-bottom: 2.2px solid #F3DDA8; transform: rotate(45deg); margin-top: -4px; transition: transform .25s; }
.gi-bar[open] .gi-chev { transform: rotate(-135deg); margin-top: 4px; }
.gi-bar .gi-less, .gi-bar[open] .gi-more { display: none; }
.gi-bar[open] .gi-less { display: inline; }
.gi-body { padding-top: 18px; }
.g-app { display: flex; flex-direction: column; gap: 18px; }
.g-top { display: flex; flex-direction: column; gap: 12px; }
.g-top h2 { font: 800 clamp(24px, 3vw, 30px)/1.2 var(--font-display); color: var(--indigo); margin: 0; }
.g-top > p { margin: 0; color: var(--muted-on-light); }
.g-title { font: 800 22px var(--font-display); color: var(--indigo); margin: 6px 0 0; }
.g-title:focus { outline: none; }
.g-before { background: var(--white); border: 1px solid var(--line-light); border-radius: 18px; padding: 16px 20px; }
.g-before[hidden] { display: none; }
.g-before h4 { font: 800 12px var(--font-display); text-transform: uppercase; letter-spacing: .14em; color: var(--brown); margin: 0 0 8px; }
.g-ask { margin: 0; font-size: 15px; color: var(--muted-on-light); }
@media (prefers-reduced-motion: reduce) { .gi-chev { transition: none; } }
/* the six sections inside the plum bar: simple rows (gold label left, details right, thin lines) */
.gi-bar .gi-body { margin-top: 14px; border-top: 1px solid rgba(255, 255, 255, .14); }
.gi-bar .g-cards { display: block; }
.gi-bar .g-cards + .g-cards { margin-top: 0; }
.gi-bar .g-card { display: grid; grid-template-columns: 190px 1fr; gap: 16px; padding: 12px 0; background: none; border: 0; border-radius: 0; border-top: 1px solid rgba(255, 255, 255, .1); color: #E6E0F6; }
.gi-bar .g-cards:first-child .g-card:first-child { border-top: 0; }
.gi-bar .g-card > :not(.g-eb) { grid-column: 2; }
.gi-bar .g-card .g-eb { margin: 3px 0 0; font-size: 11px; color: #F3DDA8; }
.gi-bar .g-card p, .gi-bar .g-how, .gi-bar .dot-list, .gi-bar .dot-list li { font-size: 15px; line-height: 1.55; color: #E6E0F6; }
.gi-bar .g-card p b, .gi-bar .g-how b { color: var(--white); }
.gi-bar .g-card small { font-size: 13px; color: #C9C0E3; }
.gi-bar .g-amts { font-size: 17px; color: var(--white) !important; }
.gi-bar .text-link { color: #F3DDA8; }
@media (max-width: 860px) {
  .gi-bar .g-card { grid-template-columns: 1fr; gap: 4px; }
  .gi-bar .g-card > :not(.g-eb) { grid-column: 1; }
}

/* Volunteer page: gold edge and glow around the "Most needed right now" band */
.role-band { box-shadow: 0 0 0 2.5px rgba(233, 198, 136, .75), 0 0 44px 12px rgba(233, 198, 136, .42), 0 20px 56px -8px rgba(90, 63, 168, .6); }

/* Volunteer page: gold dividers (fading at the ends) between the three "Most needed" roles */
@media (min-width: 861px) {
  .role-feat + .role-feat { border-left: 0; background: linear-gradient(180deg, transparent, #E9C688 30%, #E9C688 70%, transparent) left / 2px 100% no-repeat; }
  .role-feat + .role-feat:hover { background: linear-gradient(180deg, transparent, #E9C688 30%, #E9C688 70%, transparent) left / 2px 100% no-repeat, rgba(255, 255, 255, .05); }
}
@media (max-width: 860px) {
  .role-feat + .role-feat { border-top-color: rgba(233, 198, 136, .5); }
}

/* ---------- Advisory Board: "How are advisors chosen?" link under the advisor card + selection process pop-up ---------- */
.smab-link { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; margin-top: 28px; padding-top: 16px; border-top: 1px solid var(--line-light); }
.smab-link p { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 16px; color: var(--muted-on-light); }
.smab-link-ic { display: inline-flex; color: var(--gold-text); }
.smab-link-ic svg { width: 20px; height: 20px; }
.smab-open { border: 0; background: none; padding: 2px 0; border-bottom: 2px solid var(--gold); font: 700 15.5px var(--font-display); color: #5A3FA8; cursor: pointer; }
.smab-open:hover { color: var(--indigo); border-bottom-color: var(--gold-deep); }
.smab-open:focus-visible { outline: 2px solid var(--gold-deep); outline-offset: 3px; }
dialog.smab { gap: 18px; }
.smab-head h2 { font: 800 clamp(24px, 3vw, 30px) var(--font-display); color: var(--indigo); margin: 6px 0 0; }
.smab h3 { font: 800 19px var(--font-display); color: var(--indigo); margin: 0 0 8px; }
.smab p { margin: 0 0 10px; color: var(--muted-on-light); line-height: 1.7; }
.smab p:last-child { margin-bottom: 0; }
.smab-lead { font-size: 18px; color: var(--indigo) !important; }
.smab-sec { padding-top: 18px; border-top: 1px solid #DCD4EE; }
.smab-head + .smab-sec { padding-top: 0; border-top: 0; }
.smab-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 12px; }
.smab-cards article { display: flex; flex-direction: column; gap: 6px; background: var(--white); border-radius: 16px; padding: 16px; }
.smab-ic { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; background: var(--honey); color: var(--gold-text); }
.smab-cards h4 { font: 800 15.5px var(--font-display); color: var(--indigo); margin: 4px 0 0; }
.smab-cards p { margin: 0; font-size: 14.5px; line-height: 1.55; }
.smab-dark { padding: 22px 24px; border: 0; border-radius: 18px; background: var(--ink); }
.smab-dark .eyebrow { color: var(--gold-light); }
.smab-dark blockquote { margin: 8px 0 12px; font: italic 500 clamp(22px, 2.6vw, 28px)/1.25 var(--font-quote); color: var(--white); }
.smab-dark p { color: var(--muted-on-dark); }
@media (max-width: 760px) { .smab-cards { grid-template-columns: 1fr; } }

/* ---------- Chiari Atlas: "Show all backs" switch, Pamphlet I link, and the unfolding pamphlet viewer ---------- */
.atlas-tools { display: flex; justify-content: center; margin-top: 6px; }
.atlas-all { display: inline-flex; align-items: center; gap: 12px; border: 0; background: none; border-radius: 999px; padding: 6px 8px; font: 700 15px var(--font-display); color: var(--indigo); cursor: pointer; }
.atlas-all:focus-visible { outline: 3px solid var(--gold-deep); outline-offset: 3px; }
.aa-track { position: relative; width: 46px; height: 26px; border-radius: 999px; background: #D9D2EA; transition: background .25s; }
.aa-knob { position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: var(--white); box-shadow: 0 2px 4px rgba(27,18,56,.25); transition: transform .25s; }
.atlas-all:hover .aa-track { background: #CBC1E4; }
.atlas-all[aria-checked="true"] .aa-track { background: var(--indigo); }
.atlas-all[aria-checked="true"]:hover .aa-track { background: #33236B; }
.atlas-all[aria-checked="true"] .aa-knob { transform: translateX(20px); background: var(--gold-light); }
/* all backs on: every card turned; single-card hover / tap does nothing */
.atlas-trio.all-backs .flip-in { transform: rotateY(180deg) !important; }
.atlas-trio.all-backs .flip { cursor: default; }
@media (prefers-reduced-motion: reduce) {
  .atlas-trio.all-backs .flip-back { opacity: 1 !important; }
  .atlas-trio.all-backs .flip-front { opacity: 0 !important; }
  .aa-track, .aa-knob { transition: none; }
}
.fb-open { align-self: center; margin-top: auto; border: 0; background: var(--indigo); color: var(--gold-light); border-radius: 999px; padding: 10px 18px; font: 700 max(12.5px, 4.2cqw) var(--font-display); cursor: pointer; box-shadow: inset 0 0 0 1.5px var(--gold-deep); text-align: center; }
.fb-open:hover { background: #33236B; }
.fb-open:focus-visible { outline: 3px solid var(--gold-deep); outline-offset: 3px; }
/* viewer */
.zf-dialog { width: min(1040px, calc(100% - 24px)); max-height: calc(100vh - 24px); padding: 22px 26px 18px; border: 0; border-radius: 24px; background: #F6F2FB; color: var(--indigo); box-shadow: 0 40px 80px -24px rgba(0,0,0,.55); overflow: hidden; }
.zf-dialog[open] { display: flex; flex-direction: column; gap: 14px; }
.zf-dialog::backdrop { background: rgba(20,13,43,.78); backdrop-filter: blur(3px); }
.zf-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.zf-eb { font: 800 12px var(--font-display); text-transform: uppercase; letter-spacing: .16em; color: var(--gold-text); }
.zf-top h2 { margin: 2px 0 0; font: 700 30px/1.1 "Cormorant Garamond", Georgia, serif; color: #3B2A6B; }
.zf-x { flex: none; width: 40px; height: 40px; border: 0; border-radius: 50%; background: var(--white); color: var(--indigo); font-size: 24px; cursor: pointer; box-shadow: inset 0 0 0 1.5px var(--line-light); }
.zf-x:focus-visible { outline: 3px solid var(--gold-deep); outline-offset: 2px; }
.zf-stage { --h: min(calc(100vh - 260px), 520px); --w: calc(var(--h) * .386); overflow-x: auto; overflow-y: hidden; padding: 18px 0 22px; perspective: 2400px; }
.zf { position: relative; width: calc(var(--w) * 4); height: var(--h); margin: 0 auto; transform-style: preserve-3d; transition: transform 1.45s cubic-bezier(.3,.7,.2,1); }
.zf-sheet { position: absolute; left: 0; top: 0; width: var(--w); height: var(--h); transform-style: preserve-3d; transform-origin: 0 50%; transition: transform 1.45s cubic-bezier(.3,.7,.2,1); }
.zp { position: absolute; top: 0; width: var(--w); height: var(--h); transform-style: preserve-3d; transform-origin: left center; transition: transform 1.45s cubic-bezier(.3,.7,.2,1); }
.zp1 { left: 0; transform-origin: center; }
.zp2, .zp3, .zp4 { left: 100%; transform: rotateY(0deg) translateZ(0); }
.zf-face { position: absolute; inset: 0; background-repeat: no-repeat; backface-visibility: hidden; -webkit-backface-visibility: hidden; box-shadow: inset 0 0 0 2px #C8902F, inset 0 0 0 3px rgba(255,255,255,.35), 0 18px 24px -18px rgba(27,18,56,.45); }
.zp2 > .zf-face, .zp3 > .zf-face, .zp4 > .zf-face { box-shadow: inset 0 0 0 2px #C8902F, inset 10px 0 14px -10px rgba(27,18,56,.3), 0 18px 24px -18px rgba(27,18,56,.45); }
.zf-a { background-image: url("../images/atlas/pamphlet-1.jpg"); }
.zf-b { background-image: url("../images/atlas/pamphlet-1-inside.jpg"); transform: rotateY(180deg); }
/* fold shading: darker while folded, a soft crease once open */
.zf-face::after { content: ""; position: absolute; inset: 0; pointer-events: none; transition: opacity 1.45s ease; }
.zp1 > .zf-face::after { background: linear-gradient(90deg, rgba(27,18,56,0) 80%, rgba(27,18,56,.14)); }
.zp2 > .zf-face::after, .zp4 > .zf-face::after { background: linear-gradient(90deg, rgba(27,18,56,.22), rgba(27,18,56,0) 22%, rgba(27,18,56,0) 80%, rgba(27,18,56,.12)); }
.zp3 > .zf-face::after { background: linear-gradient(90deg, rgba(255,255,255,.28), rgba(255,255,255,0) 25%, rgba(27,18,56,0) 78%, rgba(27,18,56,.14)); }
.zf[data-state="closed"] .zp2 > .zf-face::after, .zf[data-state="closed"] .zp3 > .zf-face::after, .zf[data-state="closed"] .zp4 > .zf-b::after { background: rgba(27,18,56,.55); }
.zf[data-state="closed"] .zp4 > .zf-a::after { background: linear-gradient(90deg, rgba(27,18,56,.12), rgba(27,18,56,0) 25%); }
/* closed: a true zigzag tucked behind the cover, the stack centred */
.zf[data-state="closed"] .zf-sheet { transform: translateX(calc(var(--w) * 1.5)); }
.zf[data-state="closed"] .zp2 { transform: rotateY(180deg) translateZ(2px); }
.zf[data-state="closed"] .zp3 { transform: rotateY(-180deg) translateZ(-2px); }
.zf[data-state="closed"] .zp4 { transform: rotateY(180deg) translateZ(2px); }
/* open: rests slightly folded and tilted, so it reads as paper */
.zf[data-state="open"] { transform: rotateX(10deg); }
.zf[data-state="open"] .zp2 { transform: rotateY(22deg) translateZ(0); transition-delay: 0s; }
.zf[data-state="open"] .zp3 { transform: rotateY(-44deg) translateZ(0); transition-delay: .34s; }
.zf[data-state="open"] .zp4 { transform: rotateY(44deg) translateZ(0); transition-delay: .68s; }
.zf[data-state="closed"] .zp4 { transition-delay: 0s; }
.zf[data-state="closed"] .zp3 { transition-delay: .3s; }
.zf[data-state="closed"] .zp2 { transition-delay: .6s; }
/* turned over: the whole sheet spins round */
.zf[data-side="b"][data-state="open"] .zf-sheet { transform: translateX(calc(var(--w) * 4)) rotateY(180deg); }
.zf[data-side="b"][data-state="closed"] .zf-sheet { transform: translateX(calc(var(--w) * 2.5)) rotateY(180deg); }
.zf-ctrl { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px 14px; }
.zf-btn { border: 0; border-radius: 999px; background: var(--indigo); color: var(--gold-light); padding: 11px 22px; font: 700 15px var(--font-display); cursor: pointer; box-shadow: inset 0 0 0 1.5px var(--gold-deep); }
.zf-btn.zf-alt { background: var(--white); color: var(--indigo); box-shadow: inset 0 0 0 1.5px var(--line-light); }
.zf-btn:focus-visible { outline: 3px solid var(--gold-deep); outline-offset: 3px; }
.zf-side { flex-basis: 100%; text-align: center; font-size: 14px; color: var(--faint-on-light); }
.zf-note { margin: 0; text-align: center; font-size: 13px; color: var(--faint-on-light); }
@media (max-width: 700px) {
  .zf-dialog { padding: 16px 14px 14px; }
  .zf-stage { --h: min(calc(100vh - 290px), 440px); }
  .zf-top h2 { font-size: 24px; }
}
@media (prefers-reduced-motion: reduce) { .zf, .zf-sheet, .zp, .zf-face::after { transition: none !important; } }

/* ---------- Chiari Atlas: magnifier for the Pamphlet I viewer (wide rectangle lens) ---------- */
.zf-dialog[open] { gap: 10px; }
.zf-stage { --h: min(calc(100vh - 300px), 510px); }
.zf-tools { display: flex; justify-content: center; }
.zf-tool { border: 0; border-radius: 999px; background: var(--white); color: var(--indigo); padding: 9px 18px; font: 700 14px var(--font-display); cursor: pointer; box-shadow: inset 0 0 0 1.5px var(--line-light); }
.zf-tool:hover { box-shadow: inset 0 0 0 1.5px #BFB3DC; }
.zf-tool[aria-pressed="true"] { background: var(--indigo); color: var(--gold-light); box-shadow: inset 0 0 0 1.5px var(--gold-deep); }
.zf-tool:focus-visible { outline: 3px solid var(--gold-deep); outline-offset: 2px; }
/* while the magnifier is on, the pamphlet lies flat so the lens lines up with the full-size image */
.zf[data-lens][data-state="open"] { transform: none; }
.zf[data-lens][data-state="open"] .zp2, .zf[data-lens][data-state="open"] .zp3, .zf[data-lens][data-state="open"] .zp4 { transform: rotateY(0deg) translateZ(0); }
.zf[data-lens] { cursor: none; }
.zf-stage.lens-on { touch-action: none; }
.zf-lens { position: fixed; z-index: 10; width: 320px; height: 170px; border-radius: 14px; pointer-events: none; background-color: #fff; background-repeat: no-repeat; box-shadow: 0 0 0 3px #C8902F, 0 0 0 5px rgba(255,255,255,.7), 0 18px 34px rgba(27,18,56,.45); }
.zf-lens[hidden] { display: none; }
@media (max-width: 700px) {
  .zf-stage { --h: min(calc(100vh - 330px), 430px); }
  .zf-lens { width: 260px; height: 140px; }
}

/* ---------- Chiari Atlas: gold cut-corner border on the pamphlet fronts, built exactly like the backs' ---------- */
.flip-front { isolation: isolate; }
.flip-front::before, .flip-front::after { content: ""; position: absolute; z-index: -1; pointer-events: none; clip-path: polygon(var(--k) 0, calc(100% - var(--k)) 0, 100% var(--k), 100% calc(100% - var(--k)), calc(100% - var(--k)) 100%, var(--k) 100%, 0 calc(100% - var(--k)), 0 var(--k)); }
.flip-front::before { inset: 0; background: linear-gradient(160deg, #8C5E1B, #E9C688 22%, #C8902F 45%, #F3DDA8 62%, #A8721F 82%, #E2B565); }
.flip-front::after { inset: 1.5px; background: #E3DAF0; clip-path: polygon(calc(var(--k) - .6px) 0, calc(100% - var(--k) + .6px) 0, 100% calc(var(--k) - .6px), 100% calc(100% - var(--k) + .6px), calc(100% - var(--k) + .6px) 100%, calc(var(--k) - .6px) 100%, 0 calc(100% - var(--k) + .6px), 0 calc(var(--k) - .6px)); }
.flip-front img, .flip-front svg { position: absolute; inset: 1.5px; width: calc(100% - 3px); height: calc(100% - 3px); clip-path: polygon(calc(var(--k) - .6px) 0, calc(100% - var(--k) + .6px) 0, 100% calc(var(--k) - .6px), 100% calc(100% - var(--k) + .6px), calc(100% - var(--k) + .6px) 100%, calc(var(--k) - .6px) 100%, 0 calc(100% - var(--k) + .6px), 0 calc(var(--k) - .6px)); }

/* Chiari Atlas: each pamphlet is never taller than the window, so the whole pamphlet can be in view at any size */
.atlas-trio .flip { --ph: calc(100svh - 140px); --pw: max(190px, calc(var(--ph) * 490 / 1294)); justify-self: center; width: min(100%, var(--pw)); }
@media (max-width: 600px) {
  .atlas-trio .flip { flex: 0 0 min(78%, var(--pw)); width: auto; max-width: 340px; }
}

/* ---------- Chiari Atlas: "coming soon" on the Type 2 and 3 fronts (haze over the illustration + navy banner) ---------- */
.fs-soon { position: absolute; inset: 0; z-index: 2; pointer-events: none; display: flex; align-items: center; background: linear-gradient(180deg, rgba(243,239,249,0) 38%, rgba(243,239,249,.72) 52%, rgba(243,239,249,.72) 100%); }
.fs-soon b { width: 100%; margin-top: 30%; padding: 4.5% 0; text-align: center; font: 800 max(11px, 3.6cqw) var(--font-display); letter-spacing: .16em; text-transform: uppercase; color: var(--gold-light); background: rgba(27,18,56,.88); box-shadow: inset 0 1.5px 0 #C8902F, inset 0 -1.5px 0 #C8902F; }

/* ---------- Chiari Atlas: "coming soon" over the whole Type 2 and 3 cards, front and back (replaces the half haze above) ---------- */
.fs-soon { inset: 1.5px; z-index: 3; clip-path: polygon(calc(var(--k) - .6px) 0, calc(100% - var(--k) + .6px) 0, 100% calc(var(--k) - .6px), 100% calc(100% - var(--k) + .6px), calc(100% - var(--k) + .6px) 100%, calc(var(--k) - .6px) 100%, 0 calc(100% - var(--k) + .6px), 0 calc(var(--k) - .6px)); background: rgba(243, 239, 249, .7); }
.fs-soon b { margin-top: 0; background: rgba(27, 18, 56, .9); }

/* ================= Little Acts of Brave (little-acts-of-brave.html, working-files/tools/little_acts.py) =================
   Everything is scoped to .la (the page's sections). Designs: working-files/design-examples/build_little_acts_o1c.py,
   _borders.py (B3) and _cards.py. The letter opening is played by js/little-acts.js. */
.la{--la-paper:#FFFBF3;--la-purple:#5A3FA8;--la-serif:"Cormorant Garamond",Georgia,serif;
  --la-gold:linear-gradient(160deg,#8C5E1B,#E9C688 22%,#C8902F 45%,#F3DDA8 62%,#A8721F 82%,#E2B565)}
.la .wrap.stack{gap:34px}
.la h2,.la h3{color:var(--indigo)}
.la-eb{display:block;font:700 12px var(--font-display);text-transform:uppercase;letter-spacing:.14em;color:var(--gold-text);margin-bottom:6px}
.la-btn{display:inline-block;border:0;cursor:pointer;background:var(--ink);color:var(--gold-light);font:800 15px var(--font-display);padding:14px 22px;border-radius:999px;box-shadow:inset 0 0 0 1.5px var(--gold-deep);text-decoration:none}
.la-btn:hover{background:#2A1D58;color:var(--gold-light)}
.la-link{font:700 15px var(--font-display);color:var(--la-purple);text-decoration:none}.la-link:hover{text-decoration:underline}
.la-privacy{display:flex;gap:10px;align-items:flex-start;font-size:14.5px;line-height:1.5;color:var(--faint-on-light)}.la-privacy svg{flex:none;color:var(--gold-text);margin-top:2px}

/* ---- the letter (B3 plum frame) ---- */
.la-letter{display:grid;grid-template-columns:1.25fr 1fr;gap:30px;align-items:center}
.la-paper{position:relative;background:var(--la-paper);border:7px solid #1B1238;border-radius:8px;padding:clamp(22px,3.6vw,40px);box-shadow:0 24px 30px -24px rgba(36,23,79,.5);color:var(--muted-on-light);font-size:17px}
.la-paper::before{content:"";position:absolute;inset:6px;border:1.5px solid #C8902F;border-radius:3px;pointer-events:none}
.la-paper h2{font:800 clamp(28px,4vw,42px)/1.12 var(--font-display);color:var(--indigo)}
.la-paper p{margin:0 0 12px}
.la-tag{font:italic 700 26px var(--la-serif);color:var(--gold-text);margin:6px 0 16px!important}
.la-p{color:var(--indigo);font-weight:600}
.la-sign{margin-top:18px!important;font:italic 500 19px var(--la-serif);color:var(--indigo)}.la-sign b{font:700 15px var(--font-display);font-style:normal}
.la-bags{display:grid;grid-template-columns:1fr 1fr;gap:16px;align-items:end}
.la-bag{margin:0;text-align:center}.la-bag img{width:100%;height:auto;filter:drop-shadow(0 16px 18px rgba(36,23,79,.22))}.la-tilt img{transform:rotate(4deg)}
.la-bag figcaption{font:700 13.5px/1.3 var(--font-display);color:var(--indigo);background:#fff;border:1.5px solid var(--gold);border-radius:999px;padding:6px 12px;display:inline-block;margin-top:8px}
.la-rp-row{display:flex;justify-content:flex-end;margin-bottom:-24px}.la-rp-row[hidden]{display:none}
.la-replay{border:1.5px solid #D9D2EA;background:#fff;border-radius:999px;padding:7px 14px;font:700 13px var(--font-display);color:var(--indigo);cursor:pointer}
.la-replay:hover{border-color:var(--gold-deep)}

/* ---- the envelope (gold rims are SVG lines, the same width at any size, so they meet cleanly at the corners) ---- */
.la-stage{position:relative}
.la-ev{position:absolute;top:55%;left:-1%;right:-1%;bottom:0;pointer-events:none;transition:transform .9s cubic-bezier(.35,.1,.25,1)}
.la-ev i{position:absolute;display:block}
.la-ev-back{inset:0;z-index:1;box-shadow:0 26px 34px -24px rgba(36,23,79,.55);background:url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%20100%20100%27%20preserveAspectRatio%3D%27none%27%3E%3Cdefs%3E%3ClinearGradient%20id%3D%27g%27%20x1%3D%270%27%20y1%3D%270%27%20x2%3D%271%27%20y2%3D%271%27%3E%3Cstop%20offset%3D%270%27%20stop-color%3D%27%238C5E1B%27%2F%3E%3Cstop%20offset%3D%27.25%27%20stop-color%3D%27%23E9C688%27%2F%3E%3Cstop%20offset%3D%27.5%27%20stop-color%3D%27%23C8902F%27%2F%3E%3Cstop%20offset%3D%27.65%27%20stop-color%3D%27%23F3DDA8%27%2F%3E%3Cstop%20offset%3D%27.85%27%20stop-color%3D%27%23A8721F%27%2F%3E%3Cstop%20offset%3D%271%27%20stop-color%3D%27%23E2B565%27%2F%3E%3C%2FlinearGradient%3E%3C%2Fdefs%3E%3Crect%20x%3D%270%27%20y%3D%270%27%20width%3D%27100%27%20height%3D%27100%27%20fill%3D%27none%27%20stroke%3D%27url%28%23g%29%27%20stroke-width%3D%273%27%20stroke-linejoin%3D%27miter%27%20vector-effect%3D%27non-scaling-stroke%27%2F%3E%3C%2Fsvg%3E") 0 0/100% 100% no-repeat,linear-gradient(180deg,#D9C79E,#E6D7B4)}
.la-ev-front{inset:0;z-index:4;clip-path:polygon(0 0,50% 50%,100% 0,100% 100%,0 100%);background:url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%20100%20100%27%20preserveAspectRatio%3D%27none%27%3E%3Cdefs%3E%3ClinearGradient%20id%3D%27g%27%20x1%3D%270%27%20y1%3D%270%27%20x2%3D%271%27%20y2%3D%271%27%3E%3Cstop%20offset%3D%270%27%20stop-color%3D%27%238C5E1B%27%2F%3E%3Cstop%20offset%3D%27.25%27%20stop-color%3D%27%23E9C688%27%2F%3E%3Cstop%20offset%3D%27.5%27%20stop-color%3D%27%23C8902F%27%2F%3E%3Cstop%20offset%3D%27.65%27%20stop-color%3D%27%23F3DDA8%27%2F%3E%3Cstop%20offset%3D%27.85%27%20stop-color%3D%27%23A8721F%27%2F%3E%3Cstop%20offset%3D%271%27%20stop-color%3D%27%23E2B565%27%2F%3E%3C%2FlinearGradient%3E%3C%2Fdefs%3E%3Cpolygon%20points%3D%270%2C100%2050%2C50%20100%2C100%27%20fill%3D%27rgba%28140%2C94%2C27%2C.07%29%27%2F%3E%3Cpath%20d%3D%27M0%20100%2050%2050%20100%20100%27%20fill%3D%27none%27%20stroke%3D%27rgba%28200%2C144%2C47%2C.75%29%27%20stroke-width%3D%271.5%27%20vector-effect%3D%27non-scaling-stroke%27%2F%3E%3Cpath%20d%3D%27M0%200%2050%2050%20100%200%20100%20100%200%20100Z%27%20fill%3D%27none%27%20stroke%3D%27url%28%23g%29%27%20stroke-width%3D%273%27%20stroke-linejoin%3D%27miter%27%20vector-effect%3D%27non-scaling-stroke%27%2F%3E%3C%2Fsvg%3E") 0 0/100% 100% no-repeat,linear-gradient(165deg,#F8F0DE,#ECDFC2)}
.la-ev-flap,.la-ev-sealtop{left:0;right:0;top:0;height:56%;transform-origin:50% 0;transform-style:preserve-3d;transform:perspective(1300px) rotateX(0);transition:transform .9s cubic-bezier(.45,.05,.25,1)}
.la-ev-flap{z-index:5}.la-ev-sealtop{z-index:6}
.la-fl-out,.la-fl-in{inset:0;backface-visibility:hidden;-webkit-backface-visibility:hidden}
.la-fl-out{clip-path:polygon(0 0,100% 0,50% 100%);background:url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%20100%20100%27%20preserveAspectRatio%3D%27none%27%3E%3Cdefs%3E%3ClinearGradient%20id%3D%27g%27%20x1%3D%270%27%20y1%3D%270%27%20x2%3D%271%27%20y2%3D%271%27%3E%3Cstop%20offset%3D%270%27%20stop-color%3D%27%238C5E1B%27%2F%3E%3Cstop%20offset%3D%27.25%27%20stop-color%3D%27%23E9C688%27%2F%3E%3Cstop%20offset%3D%27.5%27%20stop-color%3D%27%23C8902F%27%2F%3E%3Cstop%20offset%3D%27.65%27%20stop-color%3D%27%23F3DDA8%27%2F%3E%3Cstop%20offset%3D%27.85%27%20stop-color%3D%27%23A8721F%27%2F%3E%3Cstop%20offset%3D%271%27%20stop-color%3D%27%23E2B565%27%2F%3E%3C%2FlinearGradient%3E%3C%2Fdefs%3E%3Cpath%20d%3D%27M0%200%20100%200%2050%20100Z%27%20fill%3D%27none%27%20stroke%3D%27url%28%23g%29%27%20stroke-width%3D%273%27%20stroke-linejoin%3D%27miter%27%20vector-effect%3D%27non-scaling-stroke%27%2F%3E%3C%2Fsvg%3E") 0 0/100% 100% no-repeat,linear-gradient(180deg,#F4E9D1,#E7D7B3)}
.la-fl-in{transform:rotateX(180deg);clip-path:polygon(0 100%,100% 100%,50% 0);background:url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%20100%20100%27%20preserveAspectRatio%3D%27none%27%3E%3Cdefs%3E%3ClinearGradient%20id%3D%27g%27%20x1%3D%270%27%20y1%3D%270%27%20x2%3D%271%27%20y2%3D%271%27%3E%3Cstop%20offset%3D%270%27%20stop-color%3D%27%238C5E1B%27%2F%3E%3Cstop%20offset%3D%27.25%27%20stop-color%3D%27%23E9C688%27%2F%3E%3Cstop%20offset%3D%27.5%27%20stop-color%3D%27%23C8902F%27%2F%3E%3Cstop%20offset%3D%27.65%27%20stop-color%3D%27%23F3DDA8%27%2F%3E%3Cstop%20offset%3D%27.85%27%20stop-color%3D%27%23A8721F%27%2F%3E%3Cstop%20offset%3D%271%27%20stop-color%3D%27%23E2B565%27%2F%3E%3C%2FlinearGradient%3E%3C%2Fdefs%3E%3Cpath%20d%3D%27M0%20100%20100%20100%2050%200Z%27%20fill%3D%27none%27%20stroke%3D%27url%28%23g%29%27%20stroke-width%3D%273%27%20stroke-linejoin%3D%27miter%27%20vector-effect%3D%27non-scaling-stroke%27%2F%3E%3C%2Fsvg%3E") 0 0/100% 100% no-repeat,radial-gradient(circle,#E2B565 1.4px,transparent 1.8px) 0 0/16px 16px,linear-gradient(0deg,#CBB9E6,#B9A3D3)}
/* the wax seal on the flap's tip; it cracks across, the top half lifts with the flap and the bottom half drops */
.la-w-top,.la-w-bot{left:50%;width:70px;height:70px;margin-left:-35px;transition:transform .5s cubic-bezier(.3,1.4,.5,1),opacity .5s}
.la-w-top{top:calc(100% - 35px);backface-visibility:hidden;-webkit-backface-visibility:hidden;clip-path:polygon(0 0,100% 0,100% 47%,82% 54%,64% 45%,46% 56%,28% 46%,12% 55%,0 49%)}
.la-w-bot{top:calc(56% - 35px);z-index:7;clip-path:polygon(0 49%,12% 55%,28% 46%,46% 56%,64% 45%,82% 54%,100% 47%,100% 100%,0 100%)}
.la-wi{position:absolute;inset:0;border-radius:50%;display:grid;place-items:center;background:radial-gradient(circle at 35% 30%,#F3DDA8,#C8902F 55%,#8C5E1B);box-shadow:0 4px 10px rgba(36,23,79,.35),inset 0 0 0 3px rgba(255,255,255,.25),inset 0 0 0 7px rgba(140,94,27,.25);transition:transform .5s cubic-bezier(.3,1.4,.5,1)}
.la-wi img{width:66%;height:auto;filter:brightness(.25) sepia(1) hue-rotate(220deg) saturate(2)}

/* ---- the Z-fold letter: three panels built from the letter by the script, each hinged on the edge above it ---- */
/* without the script (.la-on) the letter simply shows open, with no envelope */
.la-letter:not(.la-on) .la-pk,.la-letter:not(.la-on) .la-ev,.la-letter.done .la-pk{display:none}
.la-letter.la-on:not(.done) .la-stage>.la-paper{visibility:hidden}
.la-letter.done .la-stage>.la-paper{position:relative;z-index:7}
.la-pk{position:absolute;inset:0;z-index:2;perspective:9000px;transform-style:preserve-3d;transform-origin:50% 16.667%;will-change:transform;transform:translateY(58%) scale(.86);transition:transform .9s cubic-bezier(.3,.1,.2,1)}
.la-fold{position:absolute;left:0;right:0;transform-style:preserve-3d;transition:transform .75s cubic-bezier(.45,.05,.2,1)}
.la-pk>.la-f0{top:0;height:33.333%}
.la-fold .la-fold{top:100%;height:100%;transform-origin:50% 0}
.la-face{position:absolute;inset:0 0 -1px;overflow:hidden;backface-visibility:hidden;-webkit-backface-visibility:hidden}
.la-face .la-paper{position:absolute!important;left:0;right:0;margin:0;backface-visibility:hidden;box-shadow:none;visibility:visible}
.la-face.la-back{transform:rotateX(180deg);background:linear-gradient(180deg,#FFFBF3,#F1E7D2);box-shadow:inset 0 0 0 1px #EADFC6}
.la-pk>.la-f0>.la-face.la-front{box-shadow:0 18px 26px -20px rgba(36,23,79,.45)}
/* folded like an accordion, a hair short of flat so the hinges never move */
.la-f1{transform:rotateX(-179.4deg)}.la-f2{transform:rotateX(178.8deg)}
/* s1 seal cracks · s2 flap opens · s3 letter rises out, top showing · s4 comes forward and unfolds, envelope tucks behind · done */
.la-letter.s1 .la-w-top>.la-wi,.la-letter.s2 .la-w-top>.la-wi{transform:translateY(-3px) rotate(-5deg)}.la-letter.s1 .la-w-bot{transform:translateY(4px) rotate(7deg)}
.la-letter.s2 .la-w-bot,.la-letter.s3 .la-w-bot,.la-letter.s4 .la-w-bot,.la-letter.done .la-w-bot{transform:translate(10px,90px) rotate(32deg);opacity:0}
.la-letter.s2 .la-ev-flap,.la-letter.s2 .la-ev-sealtop,.la-letter.s3 .la-ev-flap,.la-letter.s3 .la-ev-sealtop,.la-letter.s4 .la-ev-flap,.la-letter.done .la-ev-flap{transform:perspective(1300px) rotateX(180deg)}
.la-letter.s3 .la-ev-flap,.la-letter.s4 .la-ev-flap,.la-letter.done .la-ev-flap,.la-letter.s3 .la-ev-sealtop{z-index:2}
.la-letter.s3 .la-pk{transform:translateY(22%) scale(.86);z-index:3}
.la-letter.s4 .la-pk{transform:none;z-index:7}
.la-letter.s4 .la-f1{transform:rotateX(0);transition-delay:.15s}.la-letter.s4 .la-f2{transform:rotateX(0);transition-delay:.4s}
.la-letter.s4 .la-ev,.la-letter.done .la-ev{transform:translate(8%,14%) rotate(5deg) scale(.94)}
.la-letter.s4 .la-ev-sealtop,.la-letter.done .la-ev-sealtop{opacity:0}
.la-bag{transition:transform .6s cubic-bezier(.3,1.3,.5,1),opacity .5s}.la-bag+.la-bag{transition-delay:.15s}
.la-letter.s0 .la-bag,.la-letter.s1 .la-bag,.la-letter.s2 .la-bag,.la-letter.s3 .la-bag,.la-letter.s4 .la-bag{opacity:0;transform:translateY(26px)}
.la-letter.la-snap,.la-letter.la-snap *{transition:none!important}
@media (prefers-reduced-motion:reduce){.la-letter,.la-letter *{transition:none!important}}

/* ---- how it works ---- */
.la-how h2{font:800 clamp(24px,2.8vw,30px)/1.2 var(--font-display);margin-bottom:14px}
.la-steps{list-style:none;margin:0;padding:0;counter-reset:la;display:grid;grid-template-columns:repeat(2,1fr);gap:14px}
.la-steps li{counter-increment:la;background:#fff;border:1px solid var(--line-light);border-radius:18px;padding:16px 18px 16px 62px;position:relative}
.la-steps li::before{content:counter(la);position:absolute;left:16px;top:16px;width:32px;height:32px;border-radius:50%;display:grid;place-items:center;background:var(--ink);color:var(--gold-light);font:800 15px var(--font-display)}
.la-steps b{display:block;font:800 16.5px var(--font-display);color:var(--indigo)}.la-steps span{color:var(--muted-on-light);font-size:15.5px}

/* ---- the map and the postcards (layout B) ---- */
.la-sample{position:relative}
.la-sample-tag{position:absolute;right:18px;top:-12px;z-index:3;background:var(--ink);color:var(--gold-light);font:800 12px var(--font-display);letter-spacing:.12em;text-transform:uppercase;border-radius:999px;padding:6px 12px}
.la-sample-note{margin:10px 4px 0;font:600 14px var(--font-body);color:var(--faint-on-light)}
.la-mapsec{background:#fff;border:1px solid var(--line-light);border-radius:24px;padding:clamp(18px,3vw,30px);display:flex;flex-direction:column;gap:18px;scroll-margin-top:90px}
.la-ms-head h2{font:800 clamp(24px,2.8vw,30px)/1.2 var(--font-display)}.la-ms-head p{color:var(--muted-on-light)}
.la-count{display:flex;gap:10px;flex-wrap:wrap}
.la-count>div{flex:1 1 120px;background:#fff;border:1px solid var(--line-light);border-radius:16px;padding:12px 16px}
.la-count b{display:block;font:800 30px/1 var(--font-display);color:var(--indigo)}.la-count span{font:700 12.5px var(--font-display);color:var(--faint-on-light);text-transform:uppercase;letter-spacing:.08em}
.la-ms-map{background:var(--lavender);border-radius:18px;padding:14px}
.la-map{display:block;width:100%;height:auto}.la-dots{fill:#D9CFEC}
.la-pin path{fill:#C8902F;stroke:#fff;stroke-width:2.5}
.la-pin{animation:la-drop .5s cubic-bezier(.3,1.4,.5,1) both;animation-delay:var(--d)}
.la-halo{fill:rgba(226,181,101,.28);transform-origin:0 0;animation:la-ping 2.6s ease-out infinite;animation-delay:var(--d)}
@keyframes la-ping{0%{transform:scale(.3);opacity:1}100%{transform:scale(1.6);opacity:0}}
@keyframes la-drop{from{transform:translateY(-40px);opacity:0}}
@media (prefers-reduced-motion:reduce){.la-pin,.la-halo{animation:none}}
.la-row-head{display:flex;justify-content:space-between;align-items:baseline;gap:12px;margin-bottom:-6px}
.la-row-head h3{font:800 14px var(--font-display);text-transform:uppercase;letter-spacing:.1em;color:var(--brown)}.la-row-head span{font:700 13px var(--font-display);color:var(--faint-on-light)}
.la-cards{list-style:none;margin:0;padding:14px 6px 22px;display:grid;grid-auto-flow:column;grid-auto-columns:minmax(280px,340px);gap:20px;overflow-x:auto;scroll-snap-type:x mandatory;scrollbar-width:thin}
.la-cards:focus-visible{outline:3px solid var(--gold);outline-offset:4px;border-radius:8px}
/* a postcard: the ChatGPT blank card, scene, stamp and postmark, with the words on top (sizes in cqw so it scales as one) */
.la-card{position:relative;aspect-ratio:16/10;container-type:inline-size;scroll-snap-align:start;transform:rotate(var(--r,0deg));filter:drop-shadow(0 10px 12px rgba(36,23,79,.28))}
.la-card img{position:absolute;display:block;pointer-events:none;height:auto}
.la-card-bg{inset:0;width:100%;height:100%!important}
.la-card-scene{right:4.2%;bottom:5.5%;width:68%;mix-blend-mode:multiply}
.la-stamp{position:absolute;right:6%;top:8.5%;width:15.5%;aspect-ratio:1295/1214;z-index:2}
.la-stamp img{inset:0;width:100%;height:100%!important}
.la-stamp b{position:absolute;inset:0;display:grid;place-items:center;font:800 5.4cqw var(--font-display);color:#3B2A6B;letter-spacing:.02em}
.la-mark{right:17%;top:10.5%;width:21%;opacity:.55;z-index:3;mix-blend-mode:multiply}
.la-card-txt{position:absolute;left:7.5%;top:9%;width:52%;display:flex;flex-direction:column;align-items:flex-start;z-index:1}
/* a soft paper wash and halo behind the words, so they stay readable over busy scenes */
.la-card-txt::before{content:"";position:absolute;z-index:-1;left:-6cqw;top:-5cqw;right:-8cqw;bottom:-6cqw;border-radius:50%;background:radial-gradient(closest-side,rgba(251,241,220,.94) 62%,rgba(251,241,220,0))}
.la-card-txt>*{text-shadow:0 0 .6cqw #FBF1DC,0 0 1.4cqw #FBF1DC,0 0 2.4cqw rgba(251,241,220,.9)}
.la-city{font:800 6.4cqw/1.1 var(--font-display);color:var(--indigo)}
.la-who{font:600 4.3cqw/1.25 var(--font-body);color:var(--la-purple);margin-top:1cqw}
.la-when{font:800 3.5cqw var(--font-display);font-style:normal;letter-spacing:.12em;text-transform:uppercase;color:var(--gold-text);margin-top:2cqw}
.la-note{margin:2.4cqw 0 0;max-width:44cqw;font:italic 600 4.4cqw/1.3 var(--la-serif);color:var(--indigo)}
.la-ms-foot{display:flex;gap:18px;align-items:center;justify-content:space-between;flex-wrap:wrap}.la-ms-foot .la-privacy{max-width:56ch}

/* ---- the share form (city picker; not connected yet) ---- */
.la-form{background:#fff;border:1px solid var(--line-light);border-radius:24px;padding:clamp(20px,3.4vw,34px);width:100%;max-width:640px;margin:0 auto;display:flex;flex-direction:column;gap:16px;color:var(--indigo);scroll-margin-top:90px}
.la-form h2{font:800 26px/1.2 var(--font-display);margin-top:-6px}.la-fsub{margin-top:-6px;color:var(--muted-on-light)}
.la-fld{display:flex;flex-direction:column;gap:6px;border:0;padding:0;margin:0;min-width:0}
.la-fld>span,.la-fld>label,.la-fld legend{font:700 14px var(--font-display);color:var(--indigo);padding:0;margin-bottom:6px}
.la-fld i{font-style:normal;font-weight:600;color:var(--faint-on-light);font-size:12.5px;margin-left:4px}.la-fld small{color:var(--faint-on-light);font-size:13.5px}
.la-fld input,.la-fld textarea{font:inherit;font-size:16px;color:var(--indigo);border:1.5px solid #D9D2EA;border-radius:12px;padding:12px 14px;background:#fff;width:100%}
.la-fld input:focus,.la-fld textarea:focus{outline:none;border-color:var(--gold-deep);box-shadow:0 0 0 3px rgba(226,181,101,.35)}
.la-cp-box{position:relative}
#la-cp-list{position:absolute;left:0;right:0;top:calc(100% + 6px);z-index:5;list-style:none;margin:0;padding:6px;background:#fff;border:1.5px solid #D9D2EA;border-radius:14px;box-shadow:0 16px 24px -14px rgba(36,23,79,.4);max-height:240px;overflow:auto}
#la-cp-list li{padding:9px 12px;border-radius:10px;cursor:pointer;color:var(--indigo)}#la-cp-list li[aria-selected=true],#la-cp-list li:hover{background:var(--honey)}
#la-cp-list li mark{background:none;color:var(--gold-text);font-weight:700}#la-cp-list .la-none{color:var(--faint-on-light);cursor:default;background:none!important}
.la-cp-picked{display:flex;align-items:center;gap:10px;background:var(--honey);border:1.5px solid var(--gold);border-radius:12px;padding:10px 14px}
.la-cp-picked b{font:800 16px var(--font-display);color:var(--indigo);flex:1}.la-cp-picked button{border:0;background:none;font:700 14px var(--font-display);color:var(--la-purple);cursor:pointer}
.la-mm-pin{flex:none;width:12px;height:12px;border-radius:50% 50% 50% 0;transform:rotate(-45deg);background:var(--gold-deep)}
.la-chips{display:flex;flex-wrap:wrap;gap:8px}.la-chip{position:relative}.la-chip input{position:absolute;opacity:0;width:1px;height:1px}
.la-chip span{display:inline-block;border:1.5px solid #D9D2EA;border-radius:999px;padding:8px 14px;font:600 14.5px var(--font-body);cursor:pointer;background:#fff;color:var(--indigo)}
.la-chip input:checked+span{background:var(--honey);border-color:var(--gold-deep);color:var(--brown)}.la-chip input:focus-visible+span{outline:3px solid var(--gold);outline-offset:2px}
.la-chk{display:flex;gap:10px;align-items:flex-start;font-size:15.5px;line-height:1.5;color:var(--indigo);cursor:pointer}.la-chk input{width:18px;height:18px;margin-top:3px;accent-color:#C8902F;flex:none}
.la-form .la-btn{align-self:flex-start}
.la-form-note{background:var(--honey);border-radius:12px;padding:10px 14px;color:var(--brown);font-size:15px}

/* ---- what's inside + the quote ---- */
.la-items{display:grid;grid-template-columns:240px 1fr;gap:24px;align-items:center;background:#fff;border:1px solid var(--line-light);border-radius:22px;padding:22px}
.la-items h2{font:800 clamp(22px,2.6vw,27px)/1.2 var(--font-display);margin-bottom:8px}
.la-items ul{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(5,1fr);gap:12px}
.la-items li{display:flex;flex-direction:column;align-items:center;text-align:center;gap:6px;font:700 13px/1.3 var(--font-display);color:var(--indigo)}
.la-items img{width:100%;aspect-ratio:1;object-fit:contain;background:var(--lavender);border-radius:16px;padding:8px}
.la-quote{margin:0;text-align:center;padding:10px 0}
.la-quote::before{content:"";display:block;width:60px;height:3px;margin:0 auto 18px;background:var(--la-gold)}
.la-quote p{font:italic 600 clamp(21px,2.6vw,28px)/1.4 var(--la-serif);color:var(--indigo);max-width:30ch;margin:0 auto}

@media (max-width:860px){
  .la-letter,.la-items{grid-template-columns:1fr}
  .la-steps{grid-template-columns:1fr}
  .la-items ul{grid-template-columns:repeat(3,1fr)}
  .la-bags{max-width:420px;margin:0 auto;width:100%}
}
@media (max-width:520px){
  .la-items ul{grid-template-columns:repeat(2,1fr)}.la-mapsec{padding:16px 12px}.la-cards{grid-auto-columns:94%;padding-inline:2px}
  /* a shorter letter on phones, so the envelope keeps its long shape */
  .la-paper{font-size:15px;line-height:1.5;padding:22px 20px}.la-paper h2{font-size:25px}.la-tag{font-size:21px;margin:4px 0 12px!important}.la-sign{font-size:17px}
}

/* ================= Little Acts of Brave, round 2 (change plan, working-files/design-examples/build_little_acts_v2page.py) ================= */
/* the letter: a little further left, its title on two lines, and the envelope tucked up and to the left once open */
@media (min-width:861px){.la-stage{margin-left:-14px}}
@media (min-width:521px){
  .la-paper{padding-top:clamp(20px,2.6vw,30px)}
  .la-paper h2{font-size:clamp(26px,3.1vw,38px)}
  .la-paper h2 .la-nw{white-space:nowrap}
  .la-paper .la-tag{margin:2px 0 18px!important}
}
.la-letter.s4 .la-ev,.la-letter.done .la-ev{transform:translate(-2%,6%) rotate(3.5deg) scale(.95)}

/* the two bags twirl down once the letter is open: gold halo behind the first, purple behind the second; staggered, Replay under them */
.la-bags2{grid-template-columns:1fr 1fr;align-items:start;gap:6px 22px;padding-top:20px}
.la-sb{position:relative;margin:0;text-align:center;--glow:236,170,40;--ring:#C8902F}
.la-sb.la-plum{--glow:130,90,215;--ring:#7E5CC8}
.la-sb-2{margin-top:64px}
.la-sb-spin{position:relative;z-index:1;display:block}
.la-sb-spin img{width:100%;height:auto;filter:drop-shadow(0 14px 16px rgba(36,23,79,.24))}
.la-sb-2 .la-sb-spin img{transform:rotate(3deg)}
.la-glow{position:absolute;left:50%;top:42%;width:175%;aspect-ratio:1;border-radius:50%;transform:translate(-50%,-50%);z-index:0;pointer-events:none;
  background:radial-gradient(closest-side,rgba(var(--glow),.9) 0,rgba(var(--glow),.8) 45%,rgba(var(--glow),.45) 68%,rgba(var(--glow),.12) 86%,rgba(var(--glow),0) 100%)}
.la-glow::after{content:"";position:absolute;inset:14%;border-radius:50%;border:2px solid var(--ring);opacity:0}
.la-sb figcaption{position:relative;z-index:1;display:flex;gap:8px;align-items:baseline;justify-content:center;margin-top:12px;font:italic 700 18px/1.25 var(--la-serif);color:var(--indigo)}
.la-sb figcaption i{flex:none;width:9px;height:9px;border-radius:50%;background:var(--ring);transform:translateY(-1px)}
.la-letter.la-on:not(.done) .la-sb-spin,.la-letter.la-on:not(.done) .la-sb figcaption,.la-letter.la-on:not(.done) .la-glow{opacity:0}
.la-letter.done .la-sb-spin{animation:la-twirl 1s cubic-bezier(.3,1.35,.45,1) both}
.la-letter.done .la-sb-2 .la-sb-spin{animation-delay:.4s}
@keyframes la-twirl{from{opacity:0;transform:translateY(-90px) rotate(-260deg) scale(.4)}30%{opacity:1}}
.la-letter.done .la-glow{animation:la-bloom .9s cubic-bezier(.2,.8,.2,1) both,la-breathe 4.5s ease-in-out 1.8s infinite}
.la-letter.done .la-sb-1 .la-glow{animation-delay:.75s,1.8s}.la-letter.done .la-sb-2 .la-glow{animation-delay:1.15s,2.2s}
@keyframes la-bloom{from{opacity:0;transform:translate(-50%,-50%) scale(.3)}}
@keyframes la-breathe{0%,100%{transform:translate(-50%,-50%) scale(1);opacity:1}50%{transform:translate(-50%,-50%) scale(1.07);opacity:.8}}
.la-letter.done .la-glow::after{animation:la-ring 1.1s ease-out both}
.la-letter.done .la-sb-1 .la-glow::after{animation-delay:.85s}.la-letter.done .la-sb-2 .la-glow::after{animation-delay:1.25s}
@keyframes la-ring{0%{opacity:.9;transform:scale(.6)}100%{opacity:0;transform:scale(1.35)}}
.la-letter.done .la-sb figcaption{animation:la-fadeup .6s ease-out both}
.la-letter.done .la-sb-1 figcaption{animation-delay:1s}.la-letter.done .la-sb-2 figcaption{animation-delay:1.4s}
@keyframes la-fadeup{from{opacity:0;transform:translateY(8px)}}
@media (prefers-reduced-motion:reduce){.la-sb *,.la-sb *::after{animation:none!important}.la-letter .la-sb-spin,.la-letter .la-glow,.la-letter .la-sb figcaption{opacity:1!important}}
/* a minimal Replay: a small text link under the bags */
.la-bags2 .la-rp-row{grid-column:1/-1;justify-content:center;margin:6px 0 0}
.la-replay{border:0;background:none;padding:6px 4px;border-radius:6px;font:700 13px var(--font-display);color:var(--faint-on-light);letter-spacing:.04em;display:inline-flex;gap:6px;align-items:center}
.la-replay:hover{border:0;color:var(--indigo);text-decoration:underline;text-underline-offset:3px}

/* how it works: just text on the lavender, outlined gold numbers, two by two */
.la-how{margin-top:56px}
.la-how .la-steps{gap:22px 34px}
.la-how .la-steps li{background:none;border:0;border-radius:0;padding:0 0 0 46px}
.la-how .la-steps li::before{left:0;top:0;width:30px;height:30px;font-size:14px;background:none;color:var(--gold-text);box-shadow:inset 0 0 0 1.5px var(--gold-deep)}
.la-how .la-steps b{font-size:17px}

/* what's inside: right under the steps, centred, each item on a soft circle (behind the picture, so nothing is cropped), a gold line under it */
.la-items.la-items2{grid-template-columns:1fr;justify-items:center;text-align:center;gap:16px;background:none;border:0;border-radius:0;
  margin-top:-6px;padding:0 0 34px;border-bottom:1.5px solid rgba(200,144,47,.45)}
.la-items2 ul{width:100%;max-width:820px}
.la-items2 img{background:radial-gradient(circle closest-side,#EDE6F8 0 97%,rgba(237,230,248,0) 100%);border-radius:0;padding:10%;filter:drop-shadow(0 6px 8px rgba(36,23,79,.14))}

/* the map's pins drop in once the map scrolls into view (js/little-acts.js adds .la-wait, then takes it off) */
.la-ms-map.la-wait .la-pin,.la-ms-map.la-wait .la-halo{animation-play-state:paused}

/* the share form, inside the map card: page width, two columns, opened by "Pin where your second gift went" */
.la-form.la-form-in{max-width:none;margin:0;padding:0;border:0;border-radius:0;background:none;gap:0}
.la-f2-body{display:grid;grid-template-rows:1fr;transition:grid-template-rows .5s cubic-bezier(.3,.1,.2,1)}
.la-form-in.la-closed .la-f2-body{grid-template-rows:0fr}
.la-f2-inner{overflow:hidden;min-height:0}
.la-f2-head{border-top:1.5px dashed #D9D2EA;margin-top:4px;padding-top:24px;margin-bottom:18px}
.la-f2-head h2{font:800 clamp(22px,2.6vw,28px)/1.2 var(--font-display)}
.la-f2-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px 34px;align-items:start}
.la-f2-col{display:flex;flex-direction:column;gap:16px;min-width:0}
.la-f2-foot{display:flex;justify-content:flex-end;margin-top:18px;padding-top:18px;border-top:1px solid var(--line-light)}
.la-form-in .la-form-note{margin-top:14px}
.la-pin-open[aria-expanded=true]{background:#2A1D58}
@media (prefers-reduced-motion:reduce){.la-f2-body{transition:none}}
@media (max-width:760px){.la-f2-grid{grid-template-columns:1fr}}
@media (max-width:520px){.la-sb-2{margin-top:40px}}

/* ================= Little Acts of Brave, round 3: postcards on the map pins (design Q3, working-files/design-examples/build_little_acts_pinpop.py) ================= */
.la-ms-map{position:relative}
.la-pp-pin{cursor:pointer;outline:none}
.la-pp-pin path{transition:fill .2s}
.la-pp-pin:hover path,.la-pp-pin:focus-visible path,.la-pp-pin.on path{fill:#1B1238;stroke:#E9C688}
.la-pp-pin:hover circle[fill="#1B1238"],.la-pp-pin.on circle[fill="#1B1238"]{fill:#E9C688}
.la-pp-pin:focus-visible path{stroke-width:4}
.la-pp-badge circle{fill:#5A3FA8;stroke:#fff;stroke-width:2.5}.la-pp-badge text{fill:#fff;font:800 13px var(--font-display)}
/* the pop-up above (or below) the pin */
.la-pp-pop{position:absolute;z-index:6;width:min(330px,82%);transform:translate(-50%,calc(-100% - 52px));filter:drop-shadow(0 18px 24px rgba(36,23,79,.35))}
.la-pp-pop.below{transform:translate(-50%,18px)}
.la-pp-in{position:relative;background:#fff;border:1px solid var(--line-light);border-radius:18px;padding:12px}
.la-pp-pop::after{content:"";position:absolute;left:var(--ax,50%);bottom:-8px;width:16px;height:16px;margin-left:-8px;background:#fff;border-right:1px solid var(--line-light);border-bottom:1px solid var(--line-light);transform:rotate(45deg)}
.la-pp-pop.below::after{top:-8px;bottom:auto;transform:rotate(225deg)}
.la-pp-top{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:0 2px 10px}
.la-pp-top b{font:800 15px var(--font-display);color:var(--indigo)}.la-pp-top small{font:700 12px var(--font-display);color:var(--faint-on-light);letter-spacing:.06em;text-transform:uppercase}
.la-pp-x{border:0;background:none;width:28px;height:28px;border-radius:50%;font:700 18px/1 var(--font-display);color:var(--faint-on-light);cursor:pointer}.la-pp-x:hover{background:var(--lavender);color:var(--indigo)}
.la-pp-pop .la-card,.la-pp-dlg .la-card{transform:none;filter:drop-shadow(0 6px 9px rgba(36,23,79,.22))}
/* a city with more than one share: the postcards fanned out (more as you hover); click them to open full size */
.la-pp-fan{position:relative;height:200px}
.la-pp-fan .la-card{position:absolute;left:6%;right:6%;top:14px;transition:transform .35s cubic-bezier(.3,1.3,.5,1);cursor:pointer}
.la-pp-fan .la-card:nth-child(1){z-index:3}.la-pp-fan .la-card:nth-child(2){z-index:2;transform:rotate(-6deg) translate(-14px,6px)}.la-pp-fan .la-card:nth-child(3){z-index:1;transform:rotate(6deg) translate(14px,10px)}
.la-pp-fan .la-card:nth-child(n+4){display:none}
.la-pp-fan:hover .la-card:nth-child(2){transform:rotate(-11deg) translate(-34px,10px)}.la-pp-fan:hover .la-card:nth-child(3){transform:rotate(11deg) translate(34px,14px)}
.la-pp-fan.one{height:auto}.la-pp-fan.one .la-card{position:relative;left:0;right:0;top:0;cursor:default}
.la-pp-all{display:block;width:100%;border:0;background:none;cursor:pointer;text-align:center;margin-top:8px;font:700 13px var(--font-display);color:var(--la-purple)}
.la-pp-all:hover{text-decoration:underline}
@media (prefers-reduced-motion:reduce){.la-pp-fan .la-card{transition:none}}
/* the full-size window: one postcard at a time, arrows, dots and "1 of 3" (room round the card so its shadow isn't cut off square) */
.la-pp-dlg{border:0;padding:0;background:none;max-width:min(620px,92vw);width:100%}
.la-pp-dlg::backdrop{background:rgba(15,10,34,.6)}
.la-pp-dlg-in{background:#fff;border-radius:22px;padding:18px}
.la-pp-track{display:grid;grid-auto-flow:column;grid-auto-columns:100%;overflow-x:auto;scroll-snap-type:x mandatory;scrollbar-width:none;gap:24px;padding:6px 14px 20px;scroll-padding-inline:14px;margin:-6px -14px -14px}
.la-pp-track::-webkit-scrollbar{display:none}.la-pp-track>*{scroll-snap-align:center}
.la-pp-nav{display:flex;align-items:center;justify-content:center;gap:12px;margin-top:10px}
.la-pp-nav button{width:32px;height:32px;border-radius:50%;border:1.5px solid #D9D2EA;background:#fff;color:var(--indigo);font:800 15px var(--font-display);cursor:pointer}
.la-pp-nav button:hover:not(:disabled){border-color:var(--gold-deep)}.la-pp-nav button:disabled{opacity:.35;cursor:default}
.la-pp-dots{display:flex;gap:6px}.la-pp-dots i{width:7px;height:7px;border-radius:50%;background:#D9D2EA}.la-pp-dots i.on{background:var(--gold-deep)}
.la-pp-of{font:700 13px var(--font-display);color:var(--indigo)}
/* the postcard row under the map: room at the sides so the first and last cards' shadows aren't cut off square */
.la-cards{padding:14px 16px 24px;scroll-padding-inline:16px}
@media (max-width:520px){.la-cards{padding-inline:10px;scroll-padding-inline:10px}}

/* the bag halos reach past the page edge on some widths: clip them at the section so the page never scrolls sideways */
section#letter{overflow-x:clip}

/* ================= Little Acts of Brave, round 4: United States / World map tabs (design W3, working-files/design-examples/build_little_acts_world.py) ================= */
.la-mtabs{display:inline-flex;align-self:flex-start;gap:4px;background:var(--lavender);border-radius:999px;padding:4px;margin-bottom:-6px}
.la-mtabs button{border:0;background:none;border-radius:999px;padding:8px 16px;font:700 14px var(--font-display);color:var(--faint-on-light);cursor:pointer}
.la-mtabs button:hover{color:var(--indigo)}
.la-mtabs button[aria-selected=true]{background:var(--ink);color:var(--gold-light)}
.la-mtabs button:focus-visible{outline:3px solid var(--gold);outline-offset:2px}
.la-mv[hidden]{display:none}
.la-inset rect{stroke:#D9CFEC;stroke-width:1.5;stroke-dasharray:4 4}
.la-inset-lab text{font:700 13px var(--font-display);fill:var(--faint-on-light);letter-spacing:.08em;text-transform:uppercase}
.la-count>div{flex:1 1 110px}

/* the wax seal: no soft shadow around it (it showed as a blur on the envelope) */
.la-wi{box-shadow:inset 0 0 0 3px rgba(255,255,255,.25),inset 0 0 0 7px rgba(140,94,27,.25)}

/* the wax seal: each half's clip area reaches past its edges, so when the halves jolt apart at the crack
   (the top half lifts 3px and tilts, the bottom half drops 4px and tilts) their outer edges aren't cut flat. The crack line is unchanged. */
.la-w-top{clip-path:polygon(-20% -20%,120% -20%,120% 47%,100% 47%,82% 54%,64% 45%,46% 56%,28% 46%,12% 55%,0 49%,-20% 49%)}
.la-w-bot{clip-path:polygon(-20% 49%,0 49%,12% 55%,28% 46%,46% 56%,64% 45%,82% 54%,100% 47%,120% 47%,120% 120%,-20% 120%)}

/* Replay only shows once the letter's opening has finished (and hides again while it replays) */
.la-letter:not(.done) .la-rp-row{visibility:hidden}
