@charset "UTF-8";
/* ---------------------------------------------------------------------------
   Sweet Souls Society - design system
   Palette taken directly from the official logo: deep brand navy, the mid
   indigo of the arch, and the smiley cyan as the accent, on cool mist neutrals.
   --------------------------------------------------------------------------- */

/* ------------------------------------------------------------ tokens */
:root {
  /* brand - the logo cyan, pushed to full saturation so it can carry a page */
  --sky-700: #0B4A6F;
  --sky-600: #0369A1;
  --sky-500: #0EA5E9;
  --sky-400: #38BDF8;
  --sky-300: #7DD3FC;
  --sky-100: #DBEEFD;
  --sky-050: #F0F9FF;

  /* Sampled from the official Sweet Souls logo. */
  --navy-900: #000B2E;
  --navy-800: #001040;
  --navy-700: #002B5C;
  --navy-600: #004080;
  --navy-500: #3050A0;
  --navy-300: #60A0D0;
  --navy-100: #D5E5F4;
  --cyan-500: #0EA5E9;

  --indigo-500: #2563EB;
  --indigo-100: #DBEAFE;

  /* Gradients. Every heading and every accent surface draws from these. */
  --grad-head:  linear-gradient(96deg,  #001040 0%, #0B4A6F 38%, #0EA5E9 100%);
  --grad-light: linear-gradient(96deg,  #FFFFFF 0%, #BAE6FD 55%, #7DD3FC 100%);
  --grad-brand: linear-gradient(135deg, #38BDF8 0%, #0EA5E9 28%, #2563EB 62%, #001040 100%);
  --grad-cta:   linear-gradient(135deg, #0EA5E9 0%, #2563EB 52%, #001040 100%);
  --grad-wash:  linear-gradient(180deg, #F0F9FF 0%, #FFFFFF 100%);

  /* neutrals - white first, tints only where a section needs separating */
  --mist-050: #F8FBFF;
  --mist-100: #EFF6FF;
  --mist-200: #DCEAF8;
  --mist-300: #BBD5EE;

  --ink-900: #0A1B33;
  --ink-700: #33455F;
  --ink-500: #5D6C82;
  --ink-300: #94A3B8;

  --white: #ffffff;
  --success: #159C5B;
  --success-bg: #E3F8ED;
  --danger: #DC2626;
  --danger-bg: #FEE9E7;
  --info-bg: #F0F9FF;

  /* type */
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  /* space & shape */
  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;
  --radius-pill: 999px;

  --shadow-sm: 0 1px 2px rgba(10, 27, 51, .05), 0 2px 6px rgba(10, 27, 51, .06);
  --shadow: 0 6px 12px -4px rgba(10, 27, 51, .08), 0 14px 32px -10px rgba(10, 27, 51, .14);
  --shadow-lg: 0 18px 40px -12px rgba(10, 27, 51, .20), 0 40px 80px -40px rgba(10, 27, 51, .30);

  --wrap: 1160px;
  --wrap-narrow: 760px;
  --header-h: 88px;
  --nav-h: 54px;
}

/* ------------------------------------------------------------ reset */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 20px); }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16.5px;
  line-height: 1.62;
  color: var(--ink-700);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img, svg, video { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--ink-900);
  line-height: 1.15;
  margin: 0 0 .6em;
  font-weight: 600;
  letter-spacing: -.015em;
}
h1 { font-size: clamp(2.1rem, 1.4rem + 2.6vw, 3.35rem); letter-spacing: -.025em; line-height: 1.08; }
h2 { font-size: clamp(1.6rem, 1.15rem + 1.7vw, 2.35rem); letter-spacing: -.02em; }
h3 { font-size: clamp(1.25rem, 1.1rem + .7vw, 1.6rem); }
h4 { font-size: 1.1rem; }
p { margin: 0 0 1.1em; }
a { color: var(--sky-600); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--sky-700); }
ul, ol { padding-left: 1.25rem; }
li { margin-bottom: .4em; }
hr { border: 0; border-top: 1px solid var(--mist-200); margin: 2.5rem 0; }
:focus-visible { outline: 3px solid var(--sky-400); outline-offset: 2px; border-radius: 4px; }

/* ------------------------------------------------------------ layout */
.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.wrap-narrow { width: min(100% - 2.5rem, var(--wrap-narrow)); margin-inline: auto; }
.section { padding: clamp(3rem, 5.5vw, 4.75rem) 0; }
.section--tight { padding: clamp(1.75rem, 3vw, 2.75rem) 0; }
.section--mist { background: var(--grad-wash); }
.section--tint { background: var(--mist-100); }
.section--navy { background: var(--navy-800); color: var(--navy-100); }
.section--navy h2, .section--navy h3 { color: var(--white); }
.grid { display: grid; gap: 1.75rem; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.stack > * + * { margin-top: 1.1rem; }
.center { text-align: center; }
.muted { color: var(--ink-500); }
.lead { font-size: 1.1rem; line-height: 1.6; color: var(--ink-700); }

/* section heading */
.eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .11em;
  text-transform: uppercase;
  color: var(--sky-700);
  background: var(--sky-050);
  border: 1px solid var(--sky-100);
  padding: .32rem .8rem;
  border-radius: var(--radius-pill);
  margin-bottom: 1rem;
}
.section--navy .eyebrow, .hero-dark .eyebrow {
  background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.2); color: #BAE6FD;
}
.section-head { max-width: 700px; margin-bottom: 2.25rem; }
.section-head.center { margin-inline: auto; }

/* ------------------------------------------------------------ buttons */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .8rem 1.6rem;
  border: 2px solid transparent;
  border-radius: var(--radius-pill);
  font: inherit; font-weight: 600; font-size: .98rem;
  text-decoration: none; cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, color .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary {
  background: var(--grad-cta); background-size: 160% 100%; background-position: 0 0;
  color: var(--white); box-shadow: 0 6px 16px -6px rgba(14,165,233,.6);
  transition: background-position .4s ease, transform .15s ease, box-shadow .2s ease;
}
.btn-primary:hover { background-position: 100% 0; color: var(--white);
  box-shadow: 0 10px 24px -8px rgba(14,165,233,.7); }
.btn-navy { background: var(--navy-700); color: var(--white); }
.btn-navy:hover { background: var(--navy-800); color: var(--white); }
.btn-outline { border-color: var(--sky-500); color: var(--sky-600); background: transparent; }
.btn-outline:hover { background: var(--sky-500); color: var(--white); }
.btn-ghost-light { border-color: rgba(255,255,255,.5); color: var(--white); }
.btn-ghost-light:hover { background: var(--white); color: var(--navy-800); }
.btn-sm { padding: .5rem 1.1rem; font-size: .88rem; }
.btn-block { width: 100%; justify-content: center; }
.btn-group { display: flex; flex-wrap: wrap; gap: .85rem; }

/* ------------------------------------------------------------ header
   Three tiers: a utility bar, a brand + contact row, and the sticky nav bar
   that carries the mega menu.
   ------------------------------------------------------------------- */
/* The three tiers scroll up together until only the nav bar is left, which
   then pins to the top. Sticky on .header-nav alone did nothing: a sticky box
   can only travel inside its parent, and .site-header ends at that bar's own
   bottom edge, so it had zero travel and scrolled away with the page.
   --header-offset is measured by site.js; the fallback covers the desktop
   layout if the script has not run yet. */
.site-header {
  position: sticky; top: calc(-1 * var(--header-offset, 145px));
  z-index: 60; background: var(--white);
}

/* --- tier 1: utility bar */
.header-top {
  background: var(--navy-800); color: var(--navy-100);
  font-size: .82rem; line-height: 1.3;
}
.header-top-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.5rem; min-height: 40px; padding-block: .55rem; flex-wrap: wrap;
}
.ht-group { display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap; }
.header-top a, .header-top .ht-item {
  color: var(--navy-100); text-decoration: none;
  display: inline-flex; align-items: center; gap: .45rem; white-space: nowrap;
}
.header-top a:hover { color: var(--white); }
.header-top svg { width: 15px; height: 15px; opacity: .75; flex-shrink: 0; }
.ht-social { display: flex; gap: .35rem; }
.ht-social a {
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--sky-500); color: var(--white); display: grid; place-items: center;
  transition: background .16s ease;
}
.ht-social a:hover { background: var(--sky-400); }
.ht-login {
  border-left: 1px solid rgba(255,255,255,.22); padding-left: 1.25rem; font-weight: 600;
}

/* --- tier 2: brand, contact details, primary actions */
.header-main { background: var(--white); border-bottom: 1px solid var(--mist-200); }
.header-main-inner {
  display: flex; align-items: center; gap: 2rem;
  min-height: 96px; padding-block: 1rem;
}
.brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; flex-shrink: 0; }
.brand-mark { display: block; flex-shrink: 0; }
.brand-mark img { height: 72px; width: auto; display: block; }

.header-contacts { display: flex; gap: 2rem; margin-left: auto; flex-wrap: wrap; }
.hc { display: flex; align-items: center; gap: .7rem; }
.hc-icon {
  width: 40px; height: 40px; border-radius: 12px; flex-shrink: 0;
  display: grid; place-items: center;
  background: var(--sky-500); color: var(--white);
  transition: background .16s ease;
}
.hc:hover .hc-icon { background: var(--sky-400); }
.hc-icon svg { width: 19px; height: 19px; }
.hc-text { line-height: 1.35; }
.hc-label {
  display: block; font-size: .7rem; letter-spacing: .1em;
  text-transform: uppercase; color: var(--ink-500); font-weight: 600;
}
.hc-value { display: block; font-size: .92rem; font-weight: 600; color: var(--ink-900); text-decoration: none; }
a.hc-value:hover { color: var(--sky-600); }

.header-cta { display: flex; gap: .6rem; flex-shrink: 0; }

/* --- tier 3: sticky nav bar. It is positioned, so the mega panel below it
   can stretch the full width of the viewport without any 100vw tricks. */
.header-nav {
  position: relative;          /* containing block for the mega panels */
  background: var(--white);
  border-bottom: 1px solid var(--mist-200);
  transition: box-shadow .2s ease;
}
/* Once the brand row has scrolled past, the bar lifts off the page and brings
   the logo and the main action along with it. */
.header-nav.is-stuck { box-shadow: 0 6px 18px -10px rgba(10, 27, 51, .38); }

.nav-inner { display: flex; align-items: center; gap: 0; min-height: var(--nav-h); }

.nav-brand, .nav-cta {
  flex: 0 0 auto; overflow: hidden;
  max-width: 0; opacity: 0; transform: translateY(-4px);
  transition: max-width .28s ease, opacity .18s ease, transform .28s ease, margin .28s ease;
}
.nav-brand { margin-right: 0; }
.nav-cta { margin-left: 0; }
.nav-brand img { display: block; height: 34px; width: auto; }

.header-nav.is-stuck .nav-brand {
  max-width: 90px; opacity: 1; transform: translateY(0); margin-right: 1.1rem;
}
.header-nav.is-stuck .nav-cta {
  max-width: 160px; opacity: 1; transform: translateY(0); margin-left: 1rem;
}
.nav { flex: 1 1 auto; min-width: 0; }

.nav { display: flex; align-items: center; gap: 0; flex-wrap: wrap; }
.nav > a {
  padding: .95rem .85rem;
  color: var(--ink-700); text-decoration: none; font-size: .92rem; font-weight: 600;
  white-space: nowrap; border-bottom: 3px solid transparent;
}
.nav > a:hover { color: var(--sky-600); border-bottom-color: var(--sky-100); }
.nav > a.is-active { color: var(--sky-600); border-bottom-color: var(--sky-500); }

.nav-bar-mobile { display: none; align-items: center; justify-content: space-between; width: 100%; gap: 1rem; }

/* ------------------------------------------------------------ mega menu */
.nav-item { position: static; display: flex; }

/* A real button, so keyboard and screen-reader behaviour is correct. */
.mega-trigger {
  display: inline-flex; align-items: center; gap: .3rem;
  padding: .95rem .85rem; border: 0; border-bottom: 3px solid transparent;
  background: none; font: inherit; font-size: .92rem; font-weight: 600;
  color: var(--ink-700); cursor: pointer; white-space: nowrap;
  transition: color .16s ease, border-color .16s ease;
}
.mega-trigger:hover { color: var(--sky-600); border-bottom-color: var(--sky-100); }
.mega-trigger .chev { width: 13px; height: 13px; transition: transform .22s ease; flex-shrink: 0; opacity: .65; }
.mega-trigger[aria-expanded="true"] { color: var(--sky-700); border-bottom-color: var(--sky-500); }
.mega-trigger[aria-expanded="true"] .chev { transform: rotate(180deg); opacity: 1; }
.mega-trigger.is-active { color: var(--sky-600); border-bottom-color: var(--sky-500); }

/* Centred panel, sized to what is actually inside it: a single column of
   links has no business spanning the full 1160px wrap.
   The translateX(-50%) is part of the transform, so the open/close slide
   has to carry it too or the panel jumps sideways. */
.mega {
  --mega-w: var(--wrap);
  /* JS lines the panel up with its own trigger and sets these two; centred on
     the bar is the fallback if it never runs. */
  --mega-x: 50%;
  --mega-shift: -50%;
  position: absolute; top: 100%; left: var(--mega-x);
  width: min(94vw, var(--mega-w));
  max-height: calc(100vh - var(--nav-h, 54px) - 2rem);
  overflow-y: auto; overscroll-behavior: contain;
  background: var(--white);
  border: 1px solid var(--mist-200);
  border-top: 3px solid var(--sky-500);
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  box-shadow: var(--shadow-lg);
  opacity: 0; visibility: hidden;
  transform: translate(var(--mega-shift), -10px);
  transition: opacity .2s ease, transform .22s cubic-bezier(.2, .8, .3, 1), visibility .22s;
  z-index: 5;
}
.mega.is-narrow { --mega-w: 740px; }   /* one column of links + promo  */
.mega.is-mid    { --mega-w: 980px; }   /* two columns of links + promo */
.mega[data-open="true"] { opacity: 1; visibility: visible; transform: translate(var(--mega-shift), 0); }

/* minmax(0,...) on every track stops long link text forcing an overlap.
   Stretch, not start, so the promo card ends level with the links beside it
   instead of leaving a ragged gap along the bottom of the panel. */
.mega-inner {
  width: 100%; padding: 1.7rem 1.9rem 1.8rem;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) minmax(0, 250px);
  gap: 1.5rem; align-items: stretch;
}
.mega-inner.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)) minmax(0, 250px); }
.mega-inner.cols-1 { grid-template-columns: minmax(0, 1fr) minmax(0, 250px); }

/* A hairline between link columns, so two lists never read as one long one. */
.mega-col + .mega-col { border-left: 1px solid var(--mist-200); padding-left: 1.5rem; }

/* Below this the promo column has no room; drop it rather than let it squeeze. */
@media (max-width: 1180px) {
  .mega-inner .mega-promo { display: none; }
  .mega-inner { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .mega-inner.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mega-inner.cols-1 { grid-template-columns: minmax(0, 1fr); }
  .mega.is-narrow { --mega-w: 560px; }
  .mega.is-mid    { --mega-w: 760px; }
}

.mega-col-title {
  font-family: var(--font-body); font-size: .7rem; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase; color: var(--ink-500);
  margin: 0 0 .8rem; padding-bottom: .55rem;
  border-bottom: 1px solid var(--mist-200);
}

/* Three tracks: icon, text, and the arrow that slides in on hover. */
.mega-link {
  display: grid; grid-template-columns: 36px minmax(0, 1fr) 14px;
  align-items: start; gap: .75rem;
  padding: .6rem .7rem; margin-inline: -.7rem;
  border-radius: 12px; text-decoration: none; color: inherit;
  transition: background .16s ease;
}
.mega-link + .mega-link { margin-top: 2px; }
.mega-link:hover, .mega-link:focus-visible { background: var(--sky-050); color: inherit; }
.mega-link:focus-visible { outline: 2px solid var(--sky-500); outline-offset: 1px; }

.mega-link .mi {
  width: 36px; height: 36px; border-radius: 11px;
  display: grid; place-items: center;
  background: var(--sky-500); color: var(--white);
  transition: background .16s ease, color .16s ease;
}
.mega-link .mi svg { width: 17px; height: 17px; }
.mega-link:hover .mi, .mega-link:focus-visible .mi { background: var(--sky-400); color: var(--white); }

.mega-link .mtx { min-width: 0; }
.mega-link .mt {
  display: block; font-weight: 600; font-size: .92rem;
  color: var(--ink-900); line-height: 1.3;
}
/* Clamped to two lines so every row in a column keeps the same rhythm. */
.mega-link .md {
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: .8rem; color: var(--ink-500); line-height: 1.45; margin-top: .15rem;
}
.mega-link .mt, .mega-link .md { overflow-wrap: break-word; }

.mega-link .ma {
  width: 14px; height: 14px; margin-top: .55rem; color: var(--sky-500);
  opacity: 0; transform: translateX(-4px);
  transition: opacity .16s ease, transform .16s ease;
}
.mega-link:hover .ma, .mega-link:focus-visible .ma { opacity: 1; transform: translateX(0); }

.mega-promo {
  position: relative; overflow: hidden;
  background: linear-gradient(155deg, var(--sky-050), var(--mist-100));
  border: 1px solid var(--sky-100); border-radius: 16px;
  padding: 1.35rem; display: flex; flex-direction: column; justify-content: center;
}
.mega-promo::after {
  content: ''; position: absolute; top: -34px; right: -34px;
  width: 132px; height: 132px; border-radius: 50%;
  background: radial-gradient(circle, rgba(14, 165, 233, .16), transparent 70%);
  pointer-events: none;
}
.mega-promo > * { position: relative; z-index: 1; }
.mega-promo .tag { align-self: flex-start; margin-bottom: .7rem; }
.mega-promo-title {
  font-family: var(--font-display); font-size: 1.05rem; color: var(--ink-900);
  margin: 0 0 .45rem; line-height: 1.25;
}
.mega-promo p { font-size: .84rem; color: var(--ink-700); line-height: 1.55; margin: 0 0 1.1rem; }
.mega-promo .btn { align-self: flex-start; }
.mega-promo .promo-stat {
  font-family: var(--font-display); font-size: 2rem; font-weight: 700;
  color: var(--sky-600); line-height: 1; margin-bottom: .4rem;
}

/* Closing strip. Gives the panel a defined bottom edge and one way onward,
   instead of trailing off into empty white. */
.mega-foot {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; flex-wrap: wrap;
  padding: .85rem 1.9rem;
  background: var(--mist-100); border-top: 1px solid var(--mist-200);
  font-size: .85rem; color: var(--ink-500);
}
.mega-foot strong { color: var(--ink-900); font-weight: 600; }
.mega-foot a {
  display: inline-flex; align-items: center; gap: .3rem;
  color: var(--sky-700); font-weight: 600; text-decoration: none; white-space: nowrap;
}
.mega-foot a svg { width: 13px; height: 13px; transition: transform .16s ease; }
.mega-foot a:hover { color: var(--sky-600); }
.mega-foot a:hover svg { transform: translateX(3px); }

.mega-scrim {
  position: fixed; inset: 0; z-index: 40;
  background: rgba(13, 27, 51, .35);
  opacity: 0; visibility: hidden; transition: opacity .18s ease, visibility .18s;
}
.mega-scrim.is-open { opacity: 1; visibility: visible; }

@media (prefers-reduced-motion: reduce) {
  .nav-brand, .nav-cta, .header-nav { transition: none; }
  .mega, .mega[data-open="true"] {
    transition: opacity .01s linear, visibility .01s linear;
    transform: translate(var(--mega-shift), 0);
  }
  .mega-trigger .chev, .mega-link .ma, .mega-foot a svg { transition: none; }
}

.nav-toggle {
  display: none;
  background: none; border: 0; padding: .5rem; cursor: pointer; color: var(--ink-900);
  align-items: center; gap: .5rem; font: inherit; font-weight: 600; font-size: .95rem;
}
.nav-toggle svg { width: 24px; height: 24px; }
.nav-toggle .x { display: none; }
.nav-toggle[aria-expanded="true"] .x { display: block; }
.nav-toggle[aria-expanded="true"] .bars { display: none; }

/* ------------------------------------------------------------ header, narrow */
@media (max-width: 1240px) {
  .header-contacts { gap: 1.25rem; }
  .hc-label { display: none; }
  .nav > a, .mega-trigger { padding-inline: .6rem; font-size: .87rem; }
}

@media (max-width: 1024px) {
  .header-main-inner { min-height: 78px; }
  .brand-mark img { height: 58px; }
  .header-contacts { display: none; }
  .header-cta { margin-left: auto; }

  .nav-toggle { display: inline-flex; }
  .nav-bar-mobile { display: flex; }
  .nav-inner { min-height: 52px; flex-wrap: wrap; }
  /* The mobile bar carries its own Menu button and Join Free, so the compact
     desktop pair would only duplicate them. */
  .nav-brand, .nav-cta { display: none; }

  /* The nav becomes a drawer hanging below the sticky bar. */
  .nav {
    position: fixed; inset: 52px 0 0 0;
    background: var(--mist-050);
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 1rem 1.25rem 4rem; margin: 0;
    overflow-y: auto; overscroll-behavior: contain;
    display: none; flex-wrap: nowrap;
  }
  .nav.is-open { display: flex; }
  .nav > a {
    padding: .95rem .5rem; border-bottom: 1px solid var(--mist-200);
    border-left: 3px solid transparent; font-size: 1rem;
  }
  .nav > a.is-active { border-bottom-color: var(--mist-200); border-left-color: var(--sky-500); }

  .nav-item { display: block; }
  .mega-trigger {
    width: 100%; justify-content: space-between;
    padding: .95rem .5rem; border-bottom: 1px solid var(--mist-200);
    border-left: 3px solid transparent; font-size: 1rem;
  }
  .mega-trigger[aria-expanded="true"] { border-left-color: var(--sky-500); border-bottom-color: var(--mist-200); }

  /* Panels become inline accordions. */
  .mega, .mega[data-open="true"] { transform: none; }
  .mega {
    position: static; left: auto; width: auto; max-height: none; overflow: visible;
    opacity: 1; visibility: visible;
    box-shadow: none; border: 0; border-radius: 0;
    border-bottom: 1px solid var(--mist-200);
    background: var(--mist-100); padding: .5rem 0 1rem;
    display: none;
  }
  .mega[data-open="true"] { display: block; }
  .mega-inner, .mega-inner.cols-2, .mega-inner.cols-1 {
    width: 100%; padding: .25rem 0 .5rem; grid-template-columns: 1fr; gap: 1.25rem;
  }
  /* Stacked, so the hairline between columns would cut across the drawer. */
  .mega-col + .mega-col { border-left: 0; padding-left: 0; }
  .mega-col-title { margin-bottom: .5rem; }
  .mega-link {
    margin-inline: 0; padding: .6rem .5rem; border-radius: 10px;
    grid-template-columns: 32px minmax(0, 1fr);
  }
  .mega-link .mi { width: 32px; height: 32px; border-radius: 9px; }
  .mega-link .md, .mega-link .ma { display: none; }
  .mega-promo { display: none; }
  .mega-foot {
    padding: .8rem .5rem 0; margin-top: .5rem; background: none;
    border-top: 1px solid var(--mist-200); font-size: .82rem;
  }
  .mega-scrim { display: none; }
}

@media (max-width: 700px) {
  .header-top-inner { justify-content: center; gap: .8rem; }
  .header-top .ht-hide-sm { display: none; }
  .brand-mark img { height: 46px; }
  .header-cta .btn-donate { display: none; }
}

/* ------------------------------------------------------------ hero */
.hero {
  position: relative;
  background:
    radial-gradient(900px 420px at 12% -10%, var(--sky-050), transparent 65%),
    radial-gradient(700px 380px at 92% 0%, var(--indigo-100), transparent 60%),
    var(--mist-100);
  padding: clamp(3.5rem, 7vw, 6rem) 0 clamp(3.5rem, 6vw, 5.5rem);
  overflow: hidden;
}
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 3rem; align-items: center; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; gap: 2.25rem; } }
.hero h1 { margin-bottom: .5em; }
.hero .lead { font-size: clamp(1.05rem, 1rem + .4vw, 1.25rem); max-width: 56ch; }
.hero-art {
  border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow-lg); aspect-ratio: 4 / 3; background: var(--mist-200);
}
.hero-art img { width: 100%; height: 100%; object-fit: cover; }
.hero-badge {
  display: inline-flex; align-items: center; gap: .5rem;
  background: var(--white); border: 1px solid var(--mist-300);
  padding: .4rem .95rem; border-radius: var(--radius-pill);
  font-size: .85rem; font-weight: 600; color: var(--navy-700);
  margin-bottom: 1.25rem; box-shadow: var(--shadow-sm);
}
.hero-badge .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--sky-500); }

/* page banner for interior pages */
.page-head {
  background:
    radial-gradient(700px 320px at 15% 0%, var(--sky-050), transparent 60%),
    var(--mist-100);
  padding: clamp(2.5rem, 5vw, 4rem) 0 clamp(2rem, 4vw, 3rem);
  border-bottom: 1px solid var(--mist-200);
}
.page-head h1 { margin-bottom: .35em; }
.page-head p { max-width: 68ch; margin: 0; color: var(--ink-500); }
.crumbs { font-size: .85rem; color: var(--ink-500); margin-bottom: 1rem; }
.crumbs a { color: var(--ink-500); text-decoration: none; }
.crumbs a:hover { color: var(--sky-600); text-decoration: underline; }

/* ------------------------------------------------------------ cards */
.card {
  background: var(--white);
  border: 1px solid var(--mist-200);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: 0 1px 2px rgba(10,27,51,.04), 0 6px 16px -8px rgba(10,27,51,.10);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.card-link { text-decoration: none; color: inherit; display: block; }
.card-link:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: var(--sky-100); color: inherit; }
.card h3 { margin-bottom: .5rem; }
.card p:last-child { margin-bottom: 0; }
.card-media { aspect-ratio: 16/10; background: var(--mist-200); overflow: hidden; }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.card-link:hover .card-media img { transform: scale(1.04); }
.card-flush { padding: 0; overflow: hidden; }

/* Shown when an album has no photograph yet, instead of a broken image. */
.media-empty {
  width: 100%; height: 100%; display: grid; place-items: center;
  background: linear-gradient(140deg, var(--sky-050), var(--mist-100));
  color: var(--sky-300);
}
.media-empty svg { width: 40px; height: 40px; }
.card-body { padding: 1.4rem 1.5rem 1.6rem; }

.icon-badge {
  width: 50px; height: 50px; border-radius: 15px;
  display: grid; place-items: center; margin-bottom: 1.1rem;
  background: var(--grad-cta); color: #fff;
  box-shadow: 0 6px 14px -6px rgba(14, 165, 233, .65);
}
.icon-badge svg { width: 24px; height: 24px; }
.icon-badge.navy { background: linear-gradient(135deg, #1E3A8A, #001040); color: #fff;
  box-shadow: 0 6px 14px -6px rgba(0, 16, 64, .55); }
.icon-badge.indigo { background: linear-gradient(135deg, #38BDF8, #2563EB); color: #fff;
  box-shadow: 0 6px 14px -6px rgba(37, 99, 235, .55); }

/* ------------------------------------------------------------ stats */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 1.25rem; }
.stat {
  background: var(--white); border: 1px solid var(--mist-200);
  border-radius: var(--radius); padding: 1.5rem 1.4rem; text-align: center;
}
.stat-value {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(2rem, 1.5rem + 1.6vw, 2.8rem);
  color: var(--sky-600); line-height: 1;
}
.stat-label { font-size: .92rem; color: var(--ink-500); margin-top: .5rem; }
.section--navy .stat { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.14); }
.section--navy .stat-value { color: var(--indigo-500); }
.section--navy .stat-label { color: var(--navy-100); }

/* ------------------------------------------------------------ people */
.person { text-align: center; }
.person-photo {
  width: 148px; height: 148px; margin: 0 auto 1rem;
  border-radius: 50%; overflow: hidden;
  background: var(--mist-200); border: 4px solid var(--white);
  box-shadow: var(--shadow);
}
.person-photo img { width: 100%; height: 100%; object-fit: cover; }
.person-initials {
  width: 100%; height: 100%; display: grid; place-items: center;
  font-family: var(--font-display); font-size: 2.2rem; font-weight: 600;
  color: var(--sky-600);
  background: linear-gradient(140deg, var(--sky-050), var(--indigo-100));
}
.person-name { font-family: var(--font-display); font-size: 1.15rem; font-weight: 600; color: var(--ink-900); margin: 0 0 .15rem; }
.person-role { font-size: .88rem; font-weight: 600; color: var(--sky-600); text-transform: uppercase; letter-spacing: .06em; }
.person-cred { font-size: .84rem; color: var(--ink-500); margin-top: .5rem; }

/* expandable bio */
.person details { margin-top: .9rem; text-align: left; }
.person summary {
  cursor: pointer; list-style: none; font-size: .88rem; font-weight: 600;
  color: var(--navy-700); text-align: center;
}
.person summary::-webkit-details-marker { display: none; }
.person summary::after { content: " ↓"; }
.person details[open] summary::after { content: " ↑"; }
.person .bio { margin-top: .9rem; font-size: .93rem; color: var(--ink-700); }
.person .bio p { margin-bottom: .8em; }

/* ------------------------------------------------------------ prose */
.prose { max-width: 72ch; }
.prose h2 { margin-top: 2.2em; }
.prose h3 { margin-top: 1.8em; }
.prose > :first-child { margin-top: 0; }
.prose ul, .prose ol { margin-bottom: 1.2em; }
.prose table {
  width: 100%; border-collapse: collapse; margin: 1.5em 0;
  font-size: .93rem; background: var(--white);
}
.prose th, .prose td { border: 1px solid var(--mist-200); padding: .7rem .85rem; text-align: left; vertical-align: top; }
.prose th { background: var(--mist-100); font-weight: 600; color: var(--ink-900); }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.prose blockquote {
  margin: 1.6em 0; padding: 1rem 1.4rem;
  border-left: 4px solid var(--sky-400); background: var(--sky-050);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-style: italic; color: var(--ink-700);
}

/* pull quote for the founders' note */
.quote-card {
  background: var(--mist-100); border: 1px solid var(--mist-200);
  border-radius: var(--radius-lg); padding: clamp(1.75rem, 3vw, 2.75rem);
}
.quote-card .quote-mark {
  font-family: var(--font-display); font-size: 3.5rem; line-height: 1;
  color: var(--sky-400); margin-bottom: -.4rem;
}

/* ------------------------------------------------------------ lists & tags */
.tick-list { list-style: none; padding: 0; }
.tick-list li { position: relative; padding-left: 2rem; margin-bottom: .85rem; }
.tick-list li::before {
  content: ""; position: absolute; left: 0; top: .45em;
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--sky-050) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230D7CB5' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center / 12px no-repeat;
}
/* Touch targets: a phone or email link sitting on its own line is only as tall
   as its text, which falls under the 24px minimum for comfortable tapping. */
.card a[href^="tel:"],
.card a[href^="mailto:"],
.footer-contact a,
aside a[href^="tel:"],
aside a[href^="mailto:"] {
  display: inline-block;
  min-height: 24px;
  line-height: 24px;
}

.tag {
  display: inline-block; padding: .25rem .7rem; border-radius: var(--radius-pill);
  font-size: .76rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase;
  background: var(--sky-050); color: var(--sky-700);
}
.tag-navy { background: var(--navy-100); color: var(--navy-700); }
.tag-indigo { background: var(--indigo-100); color: #24357A; }
.tag-green { background: var(--success-bg); color: #117A47; }
.tag-grey { background: var(--mist-200); color: #4A5769; }

/* ------------------------------------------------------------ forms */
.field { margin-bottom: 1.15rem; }
.field label, .form-label {
  display: block; font-size: .89rem; font-weight: 600;
  color: var(--ink-900); margin-bottom: .4rem;
}
.field .req { color: var(--sky-600); }
.field .hint { font-size: .82rem; color: var(--ink-500); margin-top: .35rem; }
input[type=text], input[type=email], input[type=tel], input[type=password],
input[type=date], input[type=number], input[type=url], input[type=time],
input[type=search], select, textarea {
  width: 100%; padding: .72rem .9rem;
  font: inherit; font-size: .96rem; color: var(--ink-900);
  background: var(--white);
  border: 1.5px solid var(--mist-300); border-radius: var(--radius-sm);
  transition: border-color .15s ease, box-shadow .15s ease;
}
input:focus, select:focus, textarea:focus {
  outline: none; border-color: var(--sky-400);
  box-shadow: 0 0 0 3px var(--sky-050);
}
input::placeholder, textarea::placeholder { color: var(--ink-300); }
textarea { min-height: 130px; resize: vertical; }
select { appearance: none; padding-right: 2.4rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2364748F' stroke-width='2.5' stroke-linecap='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right .8rem center; background-size: 16px;
}
.field-error input, .field-error select, .field-error textarea { border-color: var(--danger); }
.error-text { color: var(--danger); font-size: .84rem; margin-top: .35rem; }

.check { display: flex; align-items: flex-start; gap: .65rem; margin-bottom: .8rem; }
.check input { width: 18px; height: 18px; margin-top: .22rem; accent-color: var(--sky-500); flex-shrink: 0; }
.check label { font-weight: 400; font-size: .93rem; margin: 0; color: var(--ink-700); }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1.15rem; }
.form-row-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 1.15rem; }
@media (max-width: 640px) { .form-row, .form-row-3 { grid-template-columns: 1fr; } }

fieldset { border: 0; padding: 0; margin: 0 0 2rem; }
fieldset legend {
  font-family: var(--font-display); font-size: 1.2rem; font-weight: 600;
  color: var(--ink-900); padding: 0; margin-bottom: .35rem;
}
.fieldset-hint { font-size: .9rem; color: var(--ink-500); margin-bottom: 1.25rem; }

.form-card {
  background: var(--white); border: 1px solid var(--mist-200);
  border-radius: var(--radius-lg); padding: clamp(1.5rem, 3vw, 2.5rem);
  box-shadow: var(--shadow-sm);
}

/* ------------------------------------------------------------ alerts */
.alert {
  display: flex; gap: .75rem; align-items: flex-start;
  padding: .95rem 1.15rem; border-radius: var(--radius-sm);
  margin-bottom: 1.25rem; font-size: .94rem; border: 1px solid transparent;
}
.alert-success { background: var(--success-bg); color: #17563A; border-color: #B7DFC8; }
.alert-error   { background: var(--danger-bg);  color: #8C1D18; border-color: #F0C4C0; }
.alert-info    { background: var(--info-bg);    color: var(--navy-800); border-color: var(--navy-100); }
.alert-warning { background: var(--indigo-100);  color: #24357A; border-color: #BCC7EB; }
.alert ul { margin: .4rem 0 0; padding-left: 1.1rem; }

/* ------------------------------------------------------------ gallery */
.masonry { columns: 3 260px; column-gap: 1rem; }
.masonry figure { break-inside: avoid; margin: 0 0 1rem; border-radius: var(--radius); overflow: hidden; background: var(--mist-200); }
.masonry img { width: 100%; display: block; transition: transform .4s ease; }
.masonry a:hover img { transform: scale(1.03); }
.masonry figcaption { font-size: .85rem; color: var(--ink-500); padding: .6rem .8rem; background: var(--white); }

/* lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 200; display: none;
  background: rgba(4, 14, 36, .93); padding: 2rem;
  align-items: center; justify-content: center;
}
.lightbox.is-open { display: flex; }
.lightbox img { max-width: 92vw; max-height: 86vh; border-radius: var(--radius); box-shadow: var(--shadow-lg); }
.lightbox-close, .lightbox-prev, .lightbox-next {
  position: absolute; background: rgba(255,255,255,.14); border: 0; color: #fff;
  width: 46px; height: 46px; border-radius: 50%; cursor: pointer;
  display: grid; place-items: center; font-size: 1.4rem; line-height: 1;
}
.lightbox-close { top: 1.25rem; right: 1.25rem; }
.lightbox-prev { left: 1.25rem; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 1.25rem; top: 50%; transform: translateY(-50%); }
.lightbox-close:hover, .lightbox-prev:hover, .lightbox-next:hover { background: rgba(255,255,255,.28); }
.lightbox-caption { position: absolute; bottom: 1.5rem; left: 50%; transform: translateX(-50%); color: #DCEAF8; font-size: .92rem; }

/* ------------------------------------------------------------ events */
.event-row {
  display: grid; grid-template-columns: 96px 1fr auto; gap: 1.5rem; align-items: center;
  background: var(--white); border: 1px solid var(--mist-200);
  border-radius: var(--radius); padding: 1.25rem 1.5rem; margin-bottom: 1rem;
}
@media (max-width: 700px) {
  .event-row { grid-template-columns: 72px 1fr; gap: 1rem; }
  .event-row .event-cta { grid-column: 1 / -1; }
}
.date-chip {
  background: var(--sky-050); border: 1px solid var(--sky-100);
  border-radius: var(--radius-sm); padding: .6rem .3rem; text-align: center;
}
.date-chip .d { font-family: var(--font-display); font-size: 1.7rem; font-weight: 700; color: var(--sky-600); line-height: 1; }
.date-chip .m { font-size: .72rem; text-transform: uppercase; letter-spacing: .09em; color: var(--ink-700); margin-top: .2rem; font-weight: 600; }
.event-meta { font-size: .88rem; color: var(--ink-500); display: flex; flex-wrap: wrap; gap: .35rem 1rem; margin-top: .35rem; }
.event-meta span { display: inline-flex; align-items: center; gap: .35rem; }

/* ------------------------------------------------------------ member card */
.member-card {
  background: linear-gradient(140deg, var(--navy-800), var(--navy-600));
  color: var(--white); border-radius: var(--radius-lg);
  padding: 1.75rem; box-shadow: var(--shadow-lg);
  max-width: 420px;
}
.member-card .mc-org { font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; opacity: .85; }
.member-card .mc-name { font-family: var(--font-display); font-size: 1.5rem; margin: .6rem 0 .2rem; color: var(--white); }
.member-card .mc-code { font-family: ui-monospace, "SF Mono", Consolas, monospace; font-size: 1rem; letter-spacing: .08em; color: var(--indigo-500); }
.member-card dl { display: grid; grid-template-columns: auto 1fr; gap: .3rem 1rem; font-size: .86rem; margin: 1.25rem 0 0; }
.member-card dt { opacity: .75; }
.member-card dd { margin: 0; font-weight: 600; }

/* ------------------------------------------------------------ dashboard */
.dash-grid { display: grid; grid-template-columns: 250px 1fr; gap: 2rem; align-items: start; }
@media (max-width: 900px) { .dash-grid { grid-template-columns: 1fr; } }
.dash-nav {
  background: var(--white); border: 1px solid var(--mist-200);
  border-radius: var(--radius); padding: .6rem; position: sticky; top: calc(var(--header-h) + 1.5rem);
}
.dash-nav a {
  display: flex; align-items: center; gap: .6rem;
  padding: .65rem .8rem; border-radius: var(--radius-sm);
  color: var(--ink-700); text-decoration: none; font-size: .93rem; font-weight: 500;
}
.dash-nav a:hover { background: var(--mist-100); }
.dash-nav a.is-active { background: var(--sky-050); color: var(--sky-700); font-weight: 600; }

/* ------------------------------------------------------------ tables */
.data-table { width: 100%; border-collapse: collapse; background: var(--white); font-size: .92rem; }
.data-table th, .data-table td { padding: .8rem .9rem; text-align: left; border-bottom: 1px solid var(--mist-200); }
.data-table th { background: var(--mist-100); font-weight: 600; color: var(--ink-900); font-size: .85rem; text-transform: uppercase; letter-spacing: .04em; }
.data-table tbody tr:hover { background: var(--mist-050); }
.data-table td.actions { white-space: nowrap; text-align: right; }

/* ------------------------------------------------------------ pager */
.pager { display: flex; gap: .4rem; justify-content: center; margin-top: 2.5rem; flex-wrap: wrap; }
.pager a {
  min-width: 40px; padding: .5rem .75rem; text-align: center;
  border: 1px solid var(--mist-300); border-radius: var(--radius-sm);
  text-decoration: none; color: var(--ink-700); font-size: .9rem;
}
.pager a:hover { background: var(--mist-100); }
.pager a.is-current { background: var(--sky-500); border-color: var(--sky-500); color: var(--white); font-weight: 600; }

/* ------------------------------------------------------------ CTA band */
.cta-band {
  background: linear-gradient(135deg, var(--navy-800), var(--navy-600) 45%, var(--sky-500));
  color: var(--white); border-radius: var(--radius-lg);
  padding: clamp(2rem, 4vw, 3.25rem); text-align: center;
}
.cta-band h2 { color: var(--white); }
.cta-band p { color: rgba(255,255,255,.92); max-width: 60ch; margin-inline: auto; }
.cta-band .btn-group { justify-content: center; margin-top: 1.5rem; }

/* ------------------------------------------------------------ footer */
.site-footer { background: var(--navy-800); color: #C3D6EE; padding: 2.75rem 0 0; margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.3fr; gap: 2rem 2.25rem; padding-bottom: 2rem; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-heading {
  color: var(--white); font-family: var(--font-body); font-size: .82rem;
  letter-spacing: .12em; text-transform: uppercase; margin-bottom: .85rem; font-weight: 700;
}
.site-footer a { color: #C3D6EE; text-decoration: none; }
.site-footer a:hover { color: var(--white); text-decoration: underline; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: .42rem; font-size: .92rem; }
.footer-brand .brand-name { color: var(--white); }
.footer-brand p { font-size: .92rem; margin-top: .85rem; }
.footer-contact { font-size: .93rem; }
.footer-contact div { margin-bottom: .6rem; }
.footer-contact strong { color: var(--white); display: block; font-weight: 600; }
.social-row { display: flex; gap: .6rem; margin-top: 1.25rem; }
.social-row a {
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--sky-500); display: grid; place-items: center; color: var(--white);
  transition: background .16s ease;
}
.social-row a:hover { background: var(--sky-400); }
.social-row svg { width: 18px; height: 18px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.12);
  padding: 1.1rem 0; font-size: .86rem;
  display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; justify-content: space-between;
  align-items: center;
}

/* A second heading inside a footer column, e.g. "Legal" under "Explore". */
.footer-h4-sub { margin-top: 1.5rem; }

/* Build credit, bottom right. Quieter than the site's own links until hovered. */
.footer-credit { margin-left: auto; color: #93AED4; }
.footer-credit a {
  color: #C3D6EE; font-weight: 600;
  border-bottom: 1px solid rgba(255,255,255,.28); padding-bottom: 1px;
  transition: color .16s ease, border-color .16s ease;
}
.footer-credit a:hover { color: var(--white); border-bottom-color: var(--white); text-decoration: none; }

/* Stacked on small screens. This has to sit after the rules above, because a
   media query adds no specificity and source order decides. */
@media (max-width: 700px) {
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .footer-credit { margin-left: 0; }
}
/* The medical disclaimer, sitting under the brand column rather than as a
   full-width strip beneath the whole footer. */
.footer-note {
  margin-top: 1.15rem; padding: .8rem .95rem;
  background: rgba(0,0,0,.22); border-radius: var(--radius-sm);
  border-left: 3px solid rgba(255,255,255,.2);
  font-size: .8rem; line-height: 1.5; color: #93AED4;
}
.footer-note strong { display: block; color: #C3D6EE; margin-bottom: .15rem; }

.disclaimer {
  background: rgba(0,0,0,.18); font-size: .82rem; color: #93AED4;
  padding: 1rem 0; line-height: 1.55;
}

/* ------------------------------------------------------------ utilities */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 300;
  background: var(--sky-600); color: #fff; padding: .75rem 1.25rem; border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus { left: 0; color: #fff; }
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }
.mt-1 { margin-top: .5rem; } .mt-2 { margin-top: 1rem; } .mt-3 { margin-top: 1.75rem; } .mt-4 { margin-top: 2.5rem; }
.mb-1 { margin-bottom: .5rem; } .mb-2 { margin-bottom: 1rem; } .mb-3 { margin-bottom: 1.75rem; } .mb-4 { margin-bottom: 2.5rem; }
.empty-state { text-align: center; padding: 3.5rem 1.5rem; color: var(--ink-500); }
.empty-state svg { width: 56px; height: 56px; margin: 0 auto 1rem; color: var(--mist-300); }

@media print {
  .site-header, .site-footer, .btn, .nav, .dash-nav { display: none !important; }
  body { background: #fff; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* ------------------------------------------------------------ member area */
.dash-nav a { position: relative; }
.dash-nav-signout {
  display: flex; align-items: center; gap: .6rem; width: 100%;
  padding: .65rem .8rem; border: 0; border-radius: var(--radius-sm);
  background: none; font: inherit; font-size: .93rem; font-weight: 500;
  color: var(--ink-700); cursor: pointer; text-align: left;
}
.dash-nav-signout:hover { background: var(--mist-100); color: var(--danger); }
.dash-nav-signout svg { width: 18px; height: 18px; }
.dash-nav a svg { width: 18px; height: 18px; flex-shrink: 0; }

.dash-head {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 1.5rem; flex-wrap: wrap; margin-bottom: 1.75rem;
}
.dash-head h1 { font-size: clamp(1.6rem, 1.3rem + 1.2vw, 2.1rem); margin-bottom: .25rem; }
.dash-head p { margin: 0; color: var(--ink-500); }

.tile-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 1rem; }
.tile {
  background: var(--white); border: 1px solid var(--mist-200);
  border-radius: var(--radius); padding: 1.25rem;
}
.tile-value {
  font-family: var(--font-display); font-size: 1.9rem; font-weight: 700;
  color: var(--navy-700); line-height: 1;
}
.tile-label { font-size: .86rem; color: var(--ink-500); margin-top: .4rem; }

/* Definition rows used on the profile and member records. */
.dl-rows { display: grid; grid-template-columns: 200px 1fr; gap: .1rem 1.5rem; font-size: .94rem; }
.dl-rows dt { color: var(--ink-500); padding: .55rem 0; }
.dl-rows dd { margin: 0; padding: .55rem 0; color: var(--ink-900); font-weight: 500; }
.dl-rows dt, .dl-rows dd { border-bottom: 1px solid var(--mist-100); }
@media (max-width: 620px) {
  .dl-rows { grid-template-columns: 1fr; gap: 0; }
  .dl-rows dt { padding-bottom: 0; border: 0; font-size: .82rem; }
  .dl-rows dd { padding-top: .15rem; }
}

/* Printable membership card */
.card-print-wrap { display: flex; gap: 2rem; flex-wrap: wrap; align-items: flex-start; }
.member-card .mc-photo {
  width: 62px; height: 62px; border-radius: 12px; overflow: hidden;
  background: rgba(255,255,255,.15); flex-shrink: 0;
}
.member-card .mc-photo img { width: 100%; height: 100%; object-fit: cover; }
.member-card .mc-top { display: flex; gap: 1rem; align-items: flex-start; justify-content: space-between; }
.member-card .mc-qr { background: #fff; padding: 6px; border-radius: 8px; line-height: 0; }
.member-card .mc-foot {
  margin-top: 1.25rem; padding-top: .9rem;
  border-top: 1px solid rgba(255,255,255,.2);
  font-size: .74rem; opacity: .8; line-height: 1.5;
}
@media print {
  .member-card { box-shadow: none; break-inside: avoid; }
  .no-print { display: none !important; }
}

/* Timeline used for ticket conversations */
.thread-item {
  border-left: 3px solid var(--mist-200); padding: 0 0 1.5rem 1.25rem;
  position: relative;
}
.thread-item:last-child { padding-bottom: 0; }
.thread-item::before {
  content: ""; position: absolute; left: -7px; top: .35rem;
  width: 11px; height: 11px; border-radius: 50%;
  background: var(--mist-300); border: 2px solid var(--white);
}
.thread-item.is-staff { border-left-color: var(--sky-100); }
.thread-item.is-staff::before { background: var(--sky-500); }
.thread-meta { font-size: .82rem; color: var(--ink-500); margin-bottom: .35rem; }

/* ===========================================================================
   Gradient headings, motion and the hero composition
   ======================================================================== */

/* --- gradient type -------------------------------------------------------
   Guarded, because without background-clip the text would paint transparent
   on transparent and vanish completely. */
@supports ((background-clip: text) or (-webkit-background-clip: text)) {
  h1, h2,
  .grad-text,
  .stat-value,
  .promo-stat {
    background-image: var(--grad-head);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
  }

  /* On dark ground the dark half of the gradient would disappear. */
  .section--navy h1, .section--navy h2,
  .cta-band h1, .cta-band h2,
  .hero-dark h1, .hero-dark h2,
  .section--navy .stat-value,
  .grad-text-light {
    background-image: var(--grad-light);
  }

  /* Anything that must stay a flat colour opts out. */
  .no-grad, .adm h1, .adm h2, .adm-top h1 {
    background-image: none;
    color: var(--ink-900);
    -webkit-text-fill-color: currentColor;
  }
}

/* --- scroll reveal ------------------------------------------------------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .7s cubic-bezier(.22, .61, .36, 1),
              transform .7s cubic-bezier(.22, .61, .36, 1);
  transition-delay: var(--rd, 0s);
  will-change: opacity, transform;
}
[data-reveal].is-in { opacity: 1; transform: none; }
[data-reveal="left"]  { transform: translateX(-28px); }
[data-reveal="right"] { transform: translateX(28px); }
[data-reveal="zoom"]  { transform: scale(.94); }
[data-reveal].is-in { transform: none; }

/* --- animated hero ------------------------------------------------------- */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--white);
  padding: clamp(2.5rem, 4.5vw, 4rem) 0 clamp(1.5rem, 2.5vw, 2.5rem);
}
.hero > .wrap { position: relative; z-index: 2; }

/* Soft colour fields that drift behind the hero. */
.hero-blob {
  position: absolute; border-radius: 50%;
  filter: blur(72px); opacity: .5; pointer-events: none; z-index: 1;
  animation: blobDrift 20s ease-in-out infinite;
}
.hero-blob.b1 { width: 520px; height: 520px; top: -180px; left: -140px;
  background: radial-gradient(circle, #7DD3FC, transparent 70%); }
.hero-blob.b2 { width: 460px; height: 460px; top: -80px; right: -120px;
  background: radial-gradient(circle, #BFDBFE, transparent 70%); animation-delay: -7s; }
.hero-blob.b3 { width: 380px; height: 380px; bottom: -180px; left: 38%;
  background: radial-gradient(circle, #E0E7FF, transparent 70%); animation-delay: -13s; }

@keyframes blobDrift {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33%      { transform: translate(26px, -22px) scale(1.07); }
  66%      { transform: translate(-20px, 18px) scale(.95); }
}

.hero-grid { display: grid; grid-template-columns: 1.02fr .98fr; gap: 3rem; align-items: center; }
@media (max-width: 940px) { .hero-grid { grid-template-columns: 1fr; gap: 2.5rem; } }

.hero-badge {
  display: inline-flex; align-items: center; gap: .55rem;
  background: var(--white); border: 1px solid var(--sky-100);
  padding: .45rem 1rem .45rem .6rem; border-radius: var(--radius-pill);
  font-size: .85rem; font-weight: 600; color: var(--sky-700);
  margin-bottom: 1.4rem; box-shadow: var(--shadow-sm);
}
.hero-badge .dot {
  width: 9px; height: 9px; border-radius: 50%; background: var(--sky-500);
  box-shadow: 0 0 0 0 rgba(14, 165, 233, .6);
  animation: pulseDot 2.4s ease-out infinite;
}
@keyframes pulseDot {
  0%   { box-shadow: 0 0 0 0 rgba(14, 165, 233, .55); }
  70%  { box-shadow: 0 0 0 12px rgba(14, 165, 233, 0); }
  100% { box-shadow: 0 0 0 0 rgba(14, 165, 233, 0); }
}

/* --- hero photo composition ---------------------------------------------
   Built from a single photograph plus real headshots, because the society
   has very few images. It reads as a designed cluster, not a stretched photo. */
.hero-art { position: relative; }
.hero-photo {
  border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow-lg); aspect-ratio: 4 / 3; background: var(--mist-100);
  animation: heroRise 1s cubic-bezier(.22, .61, .36, 1) both;
}
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }
.hero-photo::after {
  content: ""; position: absolute; inset: 0; border-radius: var(--radius-lg);
  background: linear-gradient(180deg, transparent 55%, rgba(0, 16, 64, .32));
  pointer-events: none;
}
@keyframes heroRise {
  from { opacity: 0; transform: translateY(26px) scale(.97); }
  to   { opacity: 1; transform: none; }
}

/* Floating cards over the photo. */
.hero-float {
  position: absolute; max-width: 62%;
  background: rgba(255, 255, 255, .95);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, .8); border-radius: var(--radius);
  padding: .8rem 1rem; box-shadow: var(--shadow-lg);
  animation: floatCard 6s ease-in-out infinite;
}
.hero-float .hf-label { white-space: nowrap; }
.hero-float.f1 { left: 14px;  bottom: 14px; animation-delay: -1s; }
.hero-float.f2 { right: 14px; top: 14px; }
@media (max-width: 520px) {
  .hero-float { padding: .6rem .8rem; }
  .hero-float .hf-value { font-size: 1.15rem; }
  .hero-float .hf-label { font-size: .68rem; }
}
@keyframes floatCard {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-10px); }
}
.hero-float .hf-value {
  font-family: var(--font-display); font-size: 1.5rem; font-weight: 700;
  line-height: 1; background-image: var(--grad-head);
  background-clip: text; -webkit-background-clip: text;
  color: transparent; -webkit-text-fill-color: transparent;
}
.hero-float .hf-label { font-size: .74rem; color: var(--ink-500); margin-top: .2rem; font-weight: 600; }

/* Overlapping avatars, taken from the governing body photographs. */
.hero-avatars { display: flex; align-items: center; }
.hero-avatars img, .hero-avatars .more {
  width: 38px; height: 38px; border-radius: 50%;
  border: 2.5px solid var(--white); object-fit: cover;
  margin-left: -12px; box-shadow: var(--shadow-sm);
}
.hero-avatars img:first-child { margin-left: 0; }
.hero-avatars .more {
  display: grid; place-items: center; margin-left: -12px;
  background: var(--grad-cta); color: #fff; font-size: .7rem; font-weight: 700;
}

/* A quiet strip of proof points under the hero call to action. */
.hero-trust {
  display: flex; align-items: center; gap: .5rem 1.75rem; flex-wrap: wrap;
  margin-top: 1.75rem; padding-top: 1.3rem;
  border-top: 1px solid var(--mist-200);
}
.hero-trust span {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: .88rem; color: var(--ink-500); font-weight: 500;
}
.hero-trust svg { width: 17px; height: 17px; color: var(--sky-500); flex-shrink: 0; }

/* --- gradient rules and accents ------------------------------------------ */
.rule-grad { height: 4px; width: 72px; border-radius: 2px; background: var(--grad-brand); margin-bottom: 1.25rem; }
.section-head.center .rule-grad { margin-inline: auto; }

.card { transition: transform .25s cubic-bezier(.22,.61,.36,1), box-shadow .25s ease, border-color .25s ease; }
.card:hover { border-color: var(--sky-100); }

/* Cards that lift and reveal a gradient edge on hover. */
.card-glow { position: relative; overflow: hidden; }
.card-glow::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 3px;
  background: var(--grad-brand); transform: scaleX(0); transform-origin: left;
  transition: transform .35s cubic-bezier(.22,.61,.36,1);
}
.card-glow:hover::before { transform: scaleX(1); }

/* Stat tiles on white need a little more presence. */
.stat {
  position: relative; overflow: hidden;
  background: var(--white); border: 1px solid var(--mist-200);
  border-radius: var(--radius); padding: 1.75rem 1.4rem 1.6rem; text-align: center;
  box-shadow: var(--shadow-sm);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
/* A gradient cap gives the tile weight without adding another colour field. */
.stat::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 3px;
  background: linear-gradient(90deg, var(--sky-400), var(--sky-500) 55%, var(--indigo-500));
  opacity: .9;
}
.stat:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--sky-100); }
.stat-label { font-size: .9rem; color: var(--ink-500); margin-top: .55rem; font-weight: 500; }

.icon-badge { transition: transform .25s cubic-bezier(.22,.61,.36,1); }
.card:hover .icon-badge, .card-link:hover .icon-badge {
  transform: scale(1.08) rotate(-4deg); filter: brightness(1.12);
}

@media (prefers-reduced-motion: reduce) {
  .hero-blob, .hero-float, .hero-badge .dot, .hero-photo { animation: none !important; }
  [data-reveal] { opacity: 1 !important; transform: none !important; transition: none !important; }
}
