/* =========================================================
   Nepal Autism Summit — main stylesheet
   Vibrant, warm, "event" energy — colors pulled from the
   butterfly mark, big expressive type, motion on scroll.
   ========================================================= */

/* ---- Self-hosted type ---- */

@font-face {
  font-family: 'Plus Jakarta Sans';
  src: url('../fonts/jakarta-400.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Plus Jakarta Sans';
  src: url('../fonts/jakarta-500.woff2') format('woff2');
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Plus Jakarta Sans';
  src: url('../fonts/jakarta-600.woff2') format('woff2');
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Plus Jakarta Sans';
  src: url('../fonts/jakarta-700.woff2') format('woff2');
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Plus Jakarta Sans';
  src: url('../fonts/jakarta-800.woff2') format('woff2');
  font-weight: 800; font-style: normal; font-display: swap;
}

/* ---- Design tokens ---- */
:root {
  --color-bg: #FFFFFF;
  --color-bg-warm: #FFFCF6;
  --color-ink: #17151F;
  --color-muted: #6B6675;
  --color-border: #ECE7F0;
  --color-header-bg: #021937;
  --color-header-text: #F2F5FA;

  /* Rainbow, pulled from the butterfly mark. Each has a text-safe
     "strong" value (>=4.5:1 on white), a saturated "soft" value for
     fills/badges/decoration, and a near-white "tint" for backgrounds. */
  --c-indigo: #6C5CE0;      --c-indigo-soft: #8C7BFF;  --c-indigo-tint: #F1EFFE;
  --c-blue:   #0D7CAA;      --c-blue-soft:   #29B6F6;  --c-blue-tint:   #E9F7FE;
  --c-teal:   #098059;      --c-teal-soft:   #1FD1A5;  --c-teal-tint:   #E7FBF4;
  --c-green:  #1B7D23;      --c-green-soft:  #4CD25A;  --c-green-tint:  #EAFBEA;
  --c-orange: #A85C00;      --c-orange-soft: #FFAA06;  --c-orange-tint: #FFF4DE;
  --c-pink:   #D42D5E;      --c-pink-soft:   #FF4F81;  --c-pink-tint:   #FFEAF0;

  --color-primary: var(--c-orange);
  --gradient-primary: linear-gradient(135deg, #FF9500, #FF4F81);

  --font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;

  --measure: 68ch;
  --gutter: clamp(1.25rem, 4vw, 3.5rem);
  --section-space: clamp(3.5rem, 9vw, 7.5rem);
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --shadow-soft: 0 8px 30px -12px rgba(23, 21, 31, 0.18);
  --shadow-lift: 0 20px 45px -18px rgba(23, 21, 31, 0.28);

  color-scheme: light;
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: auto; }
body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-ink);
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
@media (max-width: 640px) {
  body { font-size: 16.5px; }
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; }
ul, ol { padding-left: 1.25em; }
table { border-collapse: collapse; width: 100%; }
button { font: inherit; }

h1, h2, h3, h4 {
  font-family: var(--font-body);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.01em;
  margin: 0 0 0.5em;
  color: var(--color-ink);
}
h1 { font-size: clamp(2.6rem, 3.4vw + 1.8rem, 4.6rem); font-weight: 700; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.9rem, 1.6vw + 1.4rem, 2.8rem); }
h3 { font-size: clamp(1.25rem, 0.6vw + 1.1rem, 1.55rem); }
h4 { font-size: 1.1rem; }

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

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-family: var(--font-body);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.82rem;
}

/* Respect reduced motion everywhere */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1 !important; transform: none !important; }
}

/* ---- Focus states ---- */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 3px solid var(--color-ink);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute; left: -999px; top: 0;
  background: var(--color-ink); color: #fff;
  padding: 0.75em 1.25em; z-index: 1000;
  font-family: var(--font-body);
  border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; top: 0; }

/* ---- Layout ---- */
.wrap { max-width: 1180px; margin-inline: auto; padding-inline: var(--gutter); }
.prose { max-width: var(--measure); }
.section { padding-block: var(--section-space); position: relative; }
.section-alt { background: var(--color-bg-warm); }
.muted { color: var(--color-muted); }

.icon { width: 1em; height: 1em; display: inline-block; vertical-align: -0.125em; }

/* ---- Reveal-on-scroll ---- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s cubic-bezier(.16,.8,.3,1), transform 0.7s cubic-bezier(.16,.8,.3,1);
  transition-delay: var(--reveal-delay, 0s);
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55em;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1.02rem;
  text-decoration: none;
  padding: 0.95em 1.8em;
  border-radius: 999px;
  border: none;
  background: var(--gradient-primary);
  color: #fff;
  box-shadow: var(--shadow-soft);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  cursor: pointer;
}
.btn .icon { width: 1.1em; height: 1.1em; }
.btn:hover { transform: translateY(-3px) scale(1.02); box-shadow: var(--shadow-lift); }
.btn-lg { padding: 1.1em 2.2em; font-size: 1.1rem; }
.btn-sm { padding: 0.6em 1.25em; font-size: 0.9rem; }
.header-cta .btn { padding: 0.6em 1.3em; font-size: 0.92rem; }
.btn-outline {
  background: #fff;
  color: var(--color-ink);
  border: 2px solid var(--color-border);
  box-shadow: none;
}
.btn-outline:hover { border-color: var(--c-orange-soft); background: var(--c-orange-tint); }
.btn--pending {
  background: #fff;
  color: var(--color-muted);
  border: 2px dashed var(--color-border);
  box-shadow: none;
  cursor: not-allowed;
}
.btn--pending:hover { transform: none; box-shadow: none; }

/* ---- Site header ---- */
.site-header {
  position: sticky; top: var(--wp-admin--admin-bar--height, 0px); z-index: 100;
  background: var(--color-header-bg);
  border-bottom: 1px solid transparent;
  transition: background-color 0.35s ease, border-color 0.35s ease;
}
.site-header.is-scrolled {
  border-bottom-color: rgba(255,255,255,0.1);
}

/* Home only — floats transparently over the full-bleed hero photo
   until the visitor scrolls past it, then becomes the same solid
   header used everywhere else. No shadow, by design: the header
   reads as part of the hero, not a bar stacked on top of it. */
.site-header--transparent {
  position: fixed; top: var(--wp-admin--admin-bar--height, 0px); left: 0; right: 0;
  background: transparent;
  border-bottom-color: transparent;
}
.site-header--transparent.is-scrolled {
  background: var(--color-header-bg);
  border-bottom-color: rgba(255,255,255,0.1);
}
.site-header__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.5rem; padding-block: 0.65rem;
}
.site-brand { display: flex; align-items: center; gap: 0.7rem; text-decoration: none; color: var(--color-header-text); flex-shrink: 0; }
.site-brand img { height: 40px; width: auto; }

.primary-nav-desktop { display: flex; align-items: center; flex: 1; justify-content: center; }
.primary-nav-desktop ul { display: flex; gap: 1.6rem; list-style: none; margin: 0; padding: 0; }
.primary-nav-desktop a {
  display: inline-block;
  text-decoration: none; font-weight: 600; font-size: 0.86rem;
  padding: 0.4em 0.1em; color: var(--color-header-text);
  background-image: linear-gradient(90deg, #FF9500, #FF4F81, #FF9500);
  background-size: 250% 100%;
  background-position: 0% 0%;
  background-clip: text; -webkit-background-clip: text;
  -webkit-text-fill-color: var(--color-header-text);
  transition: background-position 0.7s ease, transform 0.2s ease;
}
.primary-nav-desktop a:hover,
.primary-nav-desktop a:focus-visible,
.primary-nav-desktop a[aria-current="page"] {
  background-position: 100% 0%;
  -webkit-text-fill-color: transparent;
  transform: translateY(-1px);
}
.header-cta--desktop { display: none; flex-shrink: 0; }
.header-cta--mobile { flex-shrink: 0; }

.nav-toggle {
  display: none; background: rgba(255,255,255,0.12); color: var(--color-header-text); border: 1px solid rgba(255,255,255,0.2);
  border-radius: 999px; padding: 0.6em 1.1em; font-weight: 700;
}

/* The mobile full-screen overlay — a sibling of <header> in the DOM
   (see header.php), always hidden until .is-open is added at
   mobile widths. */
.primary-nav { display: none; }
.primary-nav__topbar { display: none; }

@media (min-width: 901px) {
  .header-cta--desktop { display: inline-flex; }
  .header-cta--mobile { display: none; }
}

@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; align-items: center; gap: 0.5em; }
  .header-cta--desktop { display: none; }
  .primary-nav-desktop { display: none; }

  /* Self-contained full-screen takeover — independent of the real
     header's height, so it can never leave a gap that lets the page
     underneath show through. */
  .primary-nav {
    position: fixed;
    top: var(--wp-admin--admin-bar--height, 0px); right: 0; bottom: 0; left: 0;
    background: #fff;
    flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 0;
    padding: 0 var(--gutter) 2rem;
    display: none;
    overflow-y: auto;
    z-index: 200;
    -webkit-overflow-scrolling: touch;
  }
  .primary-nav.is-open {
    display: flex;
    animation: nas-nav-in 0.28s ease both;
  }
  @keyframes nas-nav-in {
    from { opacity: 0; }
    to { opacity: 1; }
  }

  .primary-nav__topbar {
    display: flex; align-items: center; justify-content: space-between;
    margin: 0 calc(var(--gutter) * -1);
    padding: 0.65rem var(--gutter);
    border-bottom: 1px solid var(--color-border);
    margin-bottom: 0.5rem;
  }
  .primary-nav__topbar img { height: 40px; width: auto; }
  .nav-close {
    display: inline-flex; align-items: center; justify-content: center;
    width: 2.5rem; height: 2.5rem;
    background: var(--color-bg-warm); border: 1px solid var(--color-border);
    border-radius: 50%; color: var(--color-ink);
    flex-shrink: 0;
  }
  .nav-close .icon { width: 1.2em; height: 1.2em; }

  .primary-nav ul { flex-direction: column; gap: 0; width: 100%; padding: 0.5rem 0 0; margin: 0; list-style: none; }
  .primary-nav li { border-bottom: 1px solid var(--color-border); }
  .primary-nav li:first-child { border-top: 1px solid var(--color-border); }
  .primary-nav ul a {
    display: flex; align-items: center; justify-content: flex-start;
    padding: 1.15em 0.25em; font-size: 1.08rem; font-weight: 600;
    text-decoration: none; color: var(--color-ink);
    background-image: linear-gradient(90deg, #FF9500, #FF4F81, #FF9500);
    background-size: 250% 100%;
    background-position: 0% 0%;
    background-clip: text; -webkit-background-clip: text;
    -webkit-text-fill-color: var(--color-ink);
    transition: background-position 0.5s ease;
  }
  .primary-nav ul a::before {
    content: ""; width: 4px; align-self: stretch; border-radius: 2px;
    background: var(--gradient-primary); opacity: 0; margin-right: 0.9em;
    transition: opacity 0.2s ease;
  }
  .primary-nav ul a:hover, .primary-nav ul a[aria-current="page"] {
    background-position: 100% 0%;
    -webkit-text-fill-color: transparent;
  }
  .primary-nav ul a[aria-current="page"]::before { opacity: 1; }

  .primary-nav .header-cta--mobile {
    margin-top: 1.5rem; padding-top: 1.5rem;
    border-top: 1px solid var(--color-border);
  }
  .header-cta--mobile .btn { display: inline-flex; width: 100%; justify-content: center; padding: 0.95em 1.8em; font-size: 1.02rem; }

  @media (prefers-reduced-motion: reduce) {
    .primary-nav.is-open { animation: none; }
  }
}

/* ---- Hero ---- */
.hero {
  position: relative;
  padding-block: clamp(2.5rem, 7vw, 4.5rem);
  /* Not clipped — the "Recent updates" card is allowed to hang
     slightly past the hero's bottom edge (see .hero-updates-float).
     The background layer clips itself instead (see .hero__bg). */
  overflow: visible;
}
.hero__bg { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.hero__blobs { position: absolute; inset: 0; }
.blob {
  position: absolute; border-radius: 50%; filter: blur(60px); opacity: 0.55;
  animation: blob-float 16s ease-in-out infinite;
}
.blob-1 { width: 420px; height: 420px; background: var(--c-orange-soft); top: -140px; right: -80px; }
.blob-2 { width: 340px; height: 340px; background: var(--c-pink-soft); bottom: -120px; left: -60px; animation-delay: -6s; }
.blob-3 { width: 260px; height: 260px; background: var(--c-blue-soft); top: 30%; left: 40%; opacity: 0.35; animation-delay: -11s; }
@keyframes blob-float {
  0%, 100% { transform: translate(0,0) scale(1); }
  33% { transform: translate(20px, -30px) scale(1.08); }
  66% { transform: translate(-25px, 15px) scale(0.95); }
}
/* width:100% because .hero--photo makes .hero a row flex container
   (to center .hero__content vertically) — without it .hero__content
   would shrink-to-fit its children instead of filling the row, which
   also breaks the percentage in .hero__heading's max-width below. */
.hero__content { position: relative; z-index: 1; width: 100%; }

/* Heading group — badge + h1, left-aligned. */
.hero__date-badge {
  display: inline-flex; align-items: center; gap: 0.6em;
  background: #fff; border: 1px solid var(--color-border);
  padding: 0.6em 1.2em; border-radius: 999px; box-shadow: var(--shadow-soft);
  font-weight: 700; font-size: 0.92rem; margin-bottom: 1.5rem;
}
.hero__date-badge .icon { color: var(--c-pink); width: 1.15em; height: 1.15em; }
.hero h1 { max-width: 20ch; margin-bottom: 0.45em; font-size: clamp(2.1rem, 2.4vw + 1.5rem, 3.4rem); }
.hero h1 .accent-word {
  background: var(--gradient-primary); -webkit-background-clip: text; background-clip: text; color: transparent;
  font-style: italic; font-weight: 600;
}

/* Lower row — lede + action, left-aligned; room is left on the right
   for the "Recent updates" card (see .hero-updates-float). */
.hero p.lede { max-width: 52ch; font-size: 1.2rem; color: var(--color-muted); margin-bottom: 2rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; }

/* Once the "Recent updates" card floats (see the matching breakpoint
   on .hero-updates-float below), keep the heading and lede out from
   under it by reserving the float's whole width (card + pager
   buttons) plus a gap. */
@media (min-width: 901px) {
  .hero__heading, .hero__lower-left { max-width: calc(100% - min(430px, 38vw) - 3rem); }
}

/* ---- "Recent updates" card — floats over the right half of the
   hero, starting at the vertical midpoint of the viewport; it's fine
   for it to run past the hero's own bottom edge into the section
   below. The up/down pager buttons (.hero-updates__nav) share this
   same width budget, sitting beside the card rather than outside it
   — keeps the whole thing inside the hero's right margin instead of
   risking an overflow past the viewport on narrower desktop widths. */
.hero-updates-float {
  position: absolute;
  top: 50vh;
  right: 0;
  width: min(430px, 38vw);
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  z-index: 6;
}
.hero-updates-float .hero-updates { flex: 1 1 auto; min-width: 0; }
@media (max-width: 900px) {
  .hero-updates-float {
    position: static;
    width: auto;
    max-width: 380px;
    flex-direction: column;
    margin-top: clamp(2rem, 5vw, 2.75rem);
  }
}
/* The label and the list share one white card — see .hero-updates
   below — so the "Recent updates" heading reads as part of the box,
   not as a caption floating above it. Sized to its content (five
   items at a time) — it's fine for this to run past the hero's own
   bottom edge into the section below. */
.hero-updates {
  background: #fff; border: 1px solid var(--color-border);
  border-radius: var(--radius-md); box-shadow: var(--shadow-lift);
  padding: 1.15rem 1.1rem 0.5rem;
}
.hero-updates__label {
  display: flex; align-items: center; gap: 0.5em;
  font-family: var(--font-display); font-weight: 600;
  letter-spacing: 0.01em;
  font-size: 1.3rem; color: var(--color-ink);
  margin-bottom: 1rem;
}
.hero-updates__label .icon { color: var(--c-pink); width: 0.85em; height: 0.85em; }
.hero-updates__list {
  list-style: none; margin: 0; padding: 0;
  transition: opacity 0.22s ease;
}
.hero-updates__list.is-paging { opacity: 0; }
.hero-updates__item { display: none; }
.hero-updates__item.is-active { display: block; }
/* Adjacent-sibling would still "see" hidden items from other pages
   and add a stray top border to the first visible row of page 2+;
   this only matches an active item that has an earlier active
   sibling, i.e. never the first row actually on screen. */
.hero-updates__item.is-active ~ .hero-updates__item.is-active { border-top: 1px solid var(--color-border); }
.hero-updates__link {
  display: flex; flex-direction: column; gap: 0.3rem;
  text-decoration: none; color: var(--color-ink);
  padding: 0.65rem 0.15rem; border-radius: var(--radius-sm);
}
.hero-updates__link:hover .hero-updates__title { text-decoration: underline; }
.hero-updates__meta {
  display: flex; align-items: baseline; flex-wrap: wrap; gap: 0.4em;
  font-size: 0.74rem; font-weight: 700; color: var(--color-muted);
}
.hero-updates__cat { text-transform: uppercase; letter-spacing: 0.03em; }
.hero-updates__meta time { white-space: nowrap; }
.hero-updates__title {
  font-size: 0.94rem; font-weight: 600; line-height: 1.35;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

/* ---- Recent-updates pager — two round buttons beside the card (a
   flex sibling within .hero-updates-float, sharing its width budget
   so nothing risks overflowing past the viewport), centered on the
   card's height; a horizontal row below it once the card drops into
   normal flow on narrower widths. ---- */
.hero-updates__nav {
  display: flex; flex-direction: column; gap: 0.6rem;
  flex-shrink: 0;
  align-self: center;
}
.hero-updates__nav-btn {
  width: 2.5rem; height: 2.5rem; padding: 0; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: #fff; border: 1px solid var(--color-border); box-shadow: var(--shadow-soft);
  color: var(--color-ink); cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}
.hero-updates__nav-btn .icon { width: 1.1em; height: 1.1em; }
.hero-updates__nav-btn--up .icon { transform: rotate(-90deg); }
.hero-updates__nav-btn--down .icon { transform: rotate(90deg); }
.hero-updates__nav-btn:hover:not(:disabled) {
  background: var(--c-orange-tint); border-color: var(--c-orange-soft);
  transform: translateY(-2px); box-shadow: var(--shadow-lift);
}
.hero-updates__nav-btn:disabled { opacity: 0.3; cursor: not-allowed; }
@media (max-width: 900px) {
  .hero-updates__nav {
    flex-direction: row; justify-content: center;
    align-self: stretch; margin-top: 1rem;
  }
}

.hero__scroll-cue {
  position: absolute; bottom: 18px; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 0.4em;
  color: var(--color-muted); font-size: 0.78rem; font-weight: 600; z-index: 1;
}
.hero__scroll-cue .icon { animation: bob-down 1.8s ease-in-out infinite; }
@keyframes bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(6px); } }

/* ---- Hero background photo + parallax (Home only, optional) ---- */
/* Full viewport height on every width — on mobile the "Recent
   updates" card drops into normal flow below the text (see the
   max-width:900px rule on .hero-updates-float) so content can simply
   run taller than 100vh and the page scrolls, same as any tall hero.
   The flex-centering trick below is desktop-only: there the card is
   absolutely positioned and never adds height, so it's safe to
   vertically-center the text within a fixed-height box. */
.hero--photo {
  min-height: 100vh;
  /* Extra top clearance below the fixed transparent header (see
     .site-header--transparent) — only needed up to the 901px
     breakpoint below, which zeroes it out again for the desktop
     flex-centered layout. */
  padding-top: clamp(6.5rem, 24vw, 8rem);
}
@media (min-width: 901px) {
  /* .hero__content stretches to the full hero height (align-items'
     default is stretch) instead of being centered as a short block —
     otherwise its own box would be shorter than the hero, and the
     "Recent updates" card's `top: 50vh` (see .hero-updates-float)
     would be measured from that short box's top and overshoot it.
     The text is then re-centered *inside* that full-height box. */
  .hero--photo {
    display: flex;
    /* The flex-centered content supplies its own breathing room; the
       section's own block padding would just eat into the band the
       card has to work with (see .hero-updates-float). */
    padding-block: 0;
  }
  .hero--photo .hero__content { display: flex; flex-direction: column; justify-content: center; min-height: 100%; }
}
.hero__bg-image {
  position: absolute; left: 0; right: 0; top: -15%; height: 130%;
  background-size: cover; background-position: center;
  z-index: 0; will-change: transform;
}
.hero__scrim {
  position: absolute; inset: 0; z-index: 0;
  background: linear-gradient(180deg, rgba(2,25,55,0.72), rgba(2,25,55,0.55) 45%, rgba(2,25,55,0.82));
}
.hero--photo .hero__content { z-index: 1; }
.hero--photo h1,
.hero--photo p.lede { color: #fff; }
.hero--photo p.lede { color: rgba(255,255,255,0.85); }
.hero--photo .hero__scroll-cue { color: rgba(255,255,255,0.8); }
@media (prefers-reduced-motion: reduce) {
  .hero__bg-image { transform: none !important; }
}
@keyframes bob-down {
  0%,100% { transform: rotate(90deg) translateX(0); }
  50% { transform: rotate(90deg) translateX(6px); }
}

/* ---- Section headers ---- */
.section-head { max-width: 46rem; margin-bottom: 2.5rem; }
.section-head .eyebrow { margin-bottom: 0.9rem; }

/* ---- Stat cards ---- */
.stat-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem;
  margin: 2.5rem 0;
}
@media (max-width: 760px) { .stat-grid { grid-template-columns: 1fr; } }
.stat-card {
  background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius-md);
  padding: 1.75rem; box-shadow: var(--shadow-soft);
  display: flex; flex-direction: column; gap: 0.75rem;
}
.stat-card .badge { width: 3rem; height: 3rem; }
.stat-card .num {
  font-family: var(--font-display); font-weight: 700; font-size: clamp(2.1rem, 3vw, 2.6rem);
  line-height: 1;
}
.stat-card .label { color: var(--color-muted); font-size: 0.96rem; }

/* ---- Icon badges (colored circles) ---- */
.badge {
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%; flex-shrink: 0;
}
.badge .icon { width: 55%; height: 55%; }
.badge-indigo { background: var(--c-indigo-tint); color: var(--c-indigo); }
.badge-blue   { background: var(--c-blue-tint);   color: var(--c-blue); }
.badge-teal   { background: var(--c-teal-tint);   color: var(--c-teal); }
.badge-green  { background: var(--c-green-tint);  color: var(--c-green); }
.badge-orange { background: var(--c-orange-tint); color: var(--c-orange); }
.badge-pink   { background: var(--c-pink-tint);   color: var(--c-pink); }

/* ---- Numbered/produces list, now with icon badges ---- */
.feature-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.1rem; }
.feature-list li {
  display: flex; gap: 1.25rem; align-items: center;
  background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius-md);
  padding: 1.4rem 1.6rem;
}
.feature-list .badge { width: 2.75rem; height: 2.75rem; flex-shrink: 0; }
.feature-list p { margin: 0; line-height: 1.5; }

/* ---- Track cards ---- */
.track-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem;
}
@media (max-width: 900px) { .track-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .track-grid { grid-template-columns: 1fr; } }
.track-card {
  background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius-md);
  padding: 1.8rem; box-shadow: var(--shadow-soft);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.track-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lift); }
.track-card .badge { width: 3.25rem; height: 3.25rem; margin-bottom: 1.1rem; }
.track-card .track-name { font-family: var(--font-display); font-weight: 600; font-size: 1.18rem; margin: 0 0 0.35em; }
.track-card .track-leads { color: var(--color-muted); font-size: 0.92rem; }

/* ---- Logo row (sponsor showcase) ---- */
.logo-row {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 1.5rem;
}
.logo-row a, .logo-row .logo-tile {
  display: flex; align-items: center; justify-content: center;
  background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius-md);
  padding: 1.5rem; min-height: 140px; box-shadow: var(--shadow-soft);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.logo-row a:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }
.logo-row img { height: 84px; width: auto; max-width: 100%; object-fit: contain; }
@media (max-width: 640px) {
  .logo-row { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 1rem; }
  .logo-row a, .logo-row .logo-tile { padding: 1rem; min-height: 100px; }
  .logo-row img { height: 56px; }
}

/* ---- Timetable / timeline ---- */
.timeline { position: relative; margin-top: 1rem; }
.timeline::before {
  content: ""; position: absolute; left: 27px; top: 8px; bottom: 8px; width: 2px;
  background: linear-gradient(var(--c-orange-soft), var(--c-pink-soft), var(--c-indigo-soft));
}
.timeline-row { position: relative; display: flex; gap: 1.5rem; padding: 1.1rem 0; align-items: flex-start; }
.timeline-row .badge { width: 3.25rem; height: 3.25rem; position: relative; z-index: 1; border: 4px solid var(--color-bg); }
.timeline-row .t-time { font-family: var(--font-display); font-weight: 700; color: var(--color-ink); font-size: 1.02rem; }
.timeline-row .t-session { color: var(--color-muted); }
.timeline-row .t-body { padding-top: 0.5rem; }

/* ---- Partner blocks ---- */
.partner-blocks { display: grid; grid-template-columns: 1fr 1fr; gap: 1.75rem; }
@media (max-width: 760px) { .partner-blocks { grid-template-columns: 1fr; } }
.partner-card {
  border-radius: var(--radius-lg); padding: 2.2rem; box-shadow: var(--shadow-soft);
  border: 1px solid var(--color-border);
}
.partner-card.is-co { background: linear-gradient(160deg, var(--c-indigo-tint), #fff 60%); }
.partner-card.is-partner { background: linear-gradient(160deg, var(--c-teal-tint), #fff 60%); }
.partner-card .badge { width: 3.5rem; height: 3.5rem; margin-bottom: 1.2rem; }
.partner-card h2 { margin-bottom: 0.6rem; }
.partner-card .contribution { font-weight: 700; font-size: 1.1rem; margin-bottom: 0.6rem; }

/* ---- Contact ---- */
.contact-grid { display: grid; gap: 1.1rem; margin-top: 1.5rem; }
.contact-row {
  display: flex; gap: 1.25rem; align-items: center;
  background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius-md);
  padding: 1.2rem 1.5rem;
}
.contact-row .badge { width: 3rem; height: 3rem; flex-shrink: 0; }
.contact-row > div:last-child { min-width: 0; flex: 1; }
.contact-row .k { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--color-muted); margin-bottom: 0.15em; }
.contact-row .v { font-weight: 600; font-size: 1.05rem; overflow-wrap: break-word; word-break: break-word; }
.contact-row a { text-decoration: none; }
.contact-row a:hover { text-decoration: underline; }
@media (max-width: 400px) {
  .contact-row { padding: 1rem; gap: 1rem; }
  .contact-row .v { font-size: 0.95rem; }
}

/* ---- Numbered step timeline (Register: "how it works") ---- */
.step-timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.step-timeline::before {
  content: ""; position: absolute; left: 19px; top: 6px; bottom: 6px; width: 2px;
  background: linear-gradient(var(--c-orange-soft), var(--c-pink-soft), var(--c-indigo-soft));
}
.step-timeline li { position: relative; display: flex; gap: 1.25rem; padding-bottom: 1.85rem; }
.step-timeline li:last-child { padding-bottom: 0; }
.step-timeline__num {
  position: relative; z-index: 1; flex-shrink: 0;
  width: 40px; height: 40px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--gradient-primary); color: #fff;
  font-family: var(--font-display); font-weight: 700; font-size: 1.05rem;
  box-shadow: 0 0 0 4px var(--color-bg);
}
.step-timeline__body { padding-top: 0.55rem; }
.step-timeline__body p { margin: 0; }

/* ---- Register page: how-it-works + payment card ---- */
.register-layout {
  display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(2rem, 5vw, 3.5rem);
  align-items: start;
}
@media (max-width: 860px) { .register-layout { grid-template-columns: 1fr; } }

.payment-card {
  background: linear-gradient(160deg, var(--c-orange-tint), #fff 60%);
  border: 1px solid var(--color-border); border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 4vw, 2.25rem); box-shadow: var(--shadow-soft);
}
.payment-card .badge { width: 3.25rem; height: 3.25rem; margin-bottom: 1rem; }
.payment-card h3 { margin-bottom: 0.5rem; }
.payment-card__details { margin-top: 1.5rem; border-top: 1px solid var(--color-border); }
.payment-card__row {
  display: flex; justify-content: space-between; align-items: baseline; gap: 1rem;
  padding: 0.85em 0; border-bottom: 1px solid var(--color-border);
}
.payment-card__row .k { color: var(--color-muted); font-size: 0.88rem; }
.payment-card__row .v { font-weight: 700; text-align: right; }
.payment-card__qr { margin-top: 1.5rem; }
.payment-card__qr img {
  width: 100%; height: auto; max-width: 100%; object-fit: contain;
  background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius-sm);
  padding: 0.75rem;
}
.payment-card__qr--pending {
  display: flex; align-items: center; gap: 0.75em;
  border: 2px dashed var(--color-border); border-radius: var(--radius-sm);
  padding: 1rem; color: var(--color-muted); font-size: 0.9rem;
  background: rgba(255,255,255,0.6);
}
.payment-card__qr--pending .icon { flex-shrink: 0; width: 1.5em; height: 1.5em; color: var(--c-orange); }

.aid-callout {
  display: flex; gap: 1.5rem; align-items: flex-start;
  margin-top: clamp(2rem, 5vw, 3rem);
  padding: clamp(1.5rem, 4vw, 2rem);
  background: var(--c-teal-tint); border-radius: var(--radius-lg);
}
.aid-callout .badge { width: 3rem; height: 3rem; flex-shrink: 0; background: #fff; }
.aid-callout h3 { margin-bottom: 0.4rem; }
.aid-callout p { margin-bottom: 1rem; }
.aid-callout .btn-outline { background: #fff; }
@media (max-width: 560px) { .aid-callout { flex-direction: column; } }

/* ---- Forms (Registration + Contact) ---- */
.contact-layout { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(2rem, 5vw, 3.5rem); align-items: start; }
@media (max-width: 860px) { .contact-layout { grid-template-columns: 1fr; } }

.nas-form { display: flex; flex-direction: column; gap: 1.25rem; background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius-lg); padding: clamp(1.5rem, 4vw, 2.25rem); box-shadow: var(--shadow-soft); }
.nas-form__honeypot { display: none; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
@media (max-width: 560px) { .form-grid { grid-template-columns: 1fr; } }
.form-row { display: flex; flex-direction: column; gap: 0.5rem; }
.form-row label { font-weight: 700; font-size: 0.92rem; }
.form-row .req { color: var(--c-pink); }
.form-row input,
.form-row select,
.form-row textarea {
  font: inherit; font-size: 1rem;
  padding: 0.75em 0.9em;
  border: 2px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-bg-warm);
  color: var(--color-ink);
  width: 100%;
}
.form-row input:focus, .form-row select:focus, .form-row textarea:focus {
  outline: none; border-color: var(--c-indigo);
  background: #fff;
}
.form-row textarea { resize: vertical; min-height: 6em; }
.nas-form .btn { align-self: flex-start; margin-top: 0.5rem; }

.form-notice {
  display: flex; align-items: center; gap: 0.65em;
  padding: 1rem 1.25rem; border-radius: var(--radius-sm);
  font-weight: 600; margin-bottom: 1.5rem;
}
.form-notice--success { background: var(--c-teal-tint); color: var(--c-teal); }
.form-notice--error { background: var(--c-pink-tint); color: var(--c-pink); }

/* ---- Survey / form cards ---- */
.survey-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem;
}
@media (max-width: 900px) { .survey-grid { grid-template-columns: 1fr; } }
.survey-card {
  display: flex; flex-direction: column;
  background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius-md);
  overflow: hidden; text-decoration: none; color: var(--color-ink);
  box-shadow: var(--shadow-soft);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.survey-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lift); }
.survey-card__img { width: 100%; aspect-ratio: 16/9; height: auto; object-fit: cover; }
.survey-card__body { padding: 1.5rem; display: flex; flex-direction: column; gap: 0.6rem; flex: 1; }
.survey-card__body h3 { margin: 0; font-size: 1.15rem; }
.survey-card__body p { margin: 0; font-size: 0.95rem; }
.survey-card__cta {
  margin-top: auto; padding-top: 0.75rem;
  display: inline-flex; align-items: center; gap: 0.5em;
  font-weight: 700; font-size: 0.92rem; color: var(--c-blue);
}

/* ---- Closing CTA banner ---- */
.cta-banner {
  border-radius: var(--radius-lg);
  background: var(--gradient-primary);
  color: #fff; padding: clamp(2.5rem, 6vw, 4rem); text-align: left;
  position: relative; overflow: hidden;
}
.cta-banner::before {
  content: ""; position: absolute; width: 320px; height: 320px; border-radius: 50%;
  background: rgba(255,255,255,0.25); filter: blur(70px);
  top: -100px; right: -60px;
}
.cta-banner h2 { color: #fff; position: relative; }
.cta-banner p { color: rgba(255,255,255,0.9); position: relative; max-width: 46ch; }
.cta-banner .btn-outline { background: #fff; color: var(--color-ink); border-color: transparent; position: relative; }

/* ---- Footer ---- */
.site-footer { border-top: 1px solid var(--color-border); padding-block: var(--section-space) 2rem; background: var(--color-bg-warm); }
.site-footer address { font-style: normal; line-height: 1.9; }
.site-footer .organiser-line { color: var(--color-muted); font-size: 0.92rem; display: flex; align-items: center; gap: 0.5em; }
.site-footer h3 { font-family: var(--font-body); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--color-muted); margin-bottom: 1.1rem; }
.site-footer__top {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 2rem;
  padding-bottom: 2.5rem; border-bottom: 1px solid var(--color-border);
}
.footer-col--brand { grid-column: span 2; }
.footer-col--brand__lede { max-width: 34ch; font-size: 0.95rem; }
.footer-col--spacer { grid-column: span 1; }
.footer-social { margin-top: 1.25rem; }

.footer-links { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.65rem; }
.footer-links a { text-decoration: none; color: var(--color-ink); font-weight: 500; font-size: 0.9rem; }
.footer-links a:hover { color: var(--c-indigo); text-decoration: underline; }
.site-footer address { font-size: 0.9rem; }

@media (max-width: 860px) {
  .site-footer__top { grid-template-columns: 1fr 1fr; row-gap: 2rem; }
  .footer-col--brand { grid-column: 1 / -1; }
  .footer-col--spacer { display: none; }
}
@media (max-width: 560px) {
  .site-footer__top { grid-template-columns: 1fr; row-gap: 1.75rem; }
  .footer-col--brand__lede { max-width: none; }
}
.site-footer__bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center;
  gap: 1rem; padding-top: 1.75rem;
}

/* ---- Single post article ---- */
.post-article__head h1 { max-width: 26ch; }
.post-article__meta { display: flex; align-items: center; gap: 0.55em; font-size: 0.95rem; margin-top: 0.75rem; }
.post-article__meta .icon { color: var(--c-blue); }

/* Content on the left, featured image on the right; the image
   sticks alongside the text on tall articles instead of scrolling
   away above the fold. */
.post-article__layout {
  display: grid; grid-template-columns: 1fr minmax(280px, 380px);
  gap: clamp(2rem, 5vw, 3.5rem); align-items: start;
}
.post-article__layout--no-media { grid-template-columns: 1fr; max-width: var(--measure); }
.post-article__media { position: sticky; top: calc(var(--wp-admin--admin-bar--height, 0px) + 6rem); }
.post-article__img {
  width: 100%; height: auto; aspect-ratio: 4/5; object-fit: cover;
  border-radius: var(--radius-lg); box-shadow: var(--shadow-lift);
}
@media (max-width: 860px) {
  .post-article__layout { grid-template-columns: 1fr; }
  .post-article__media { position: static; order: -1; }
  .post-article__img { aspect-ratio: 16/9; }
}
.post-article__tags { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 2rem; }
.post-article__tag {
  background: var(--color-bg-warm); border: 1px solid var(--color-border);
  border-radius: 999px; padding: 0.4em 0.9em; font-size: 0.85rem; color: var(--color-muted);
}

/* ---- Tables kept for any leftover use ---- */
.data-table { width: 100%; font-size: 1rem; }
.data-table th, .data-table td { text-align: left; padding: 0.85em 1em 0.85em 0; border-bottom: 1px solid var(--color-border); vertical-align: top; }

/* ---- Utility ---- */
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}
.rule { border: none; border-top: 2px solid var(--color-border); width: 100%; margin: 0 0 2rem; }