/* =====================================================================
   GDMUN — shared stylesheet
   Palette: #09C4FB blue · butter yellow · white (+ deep ink for text)
   ===================================================================== */
:root {
  --blue: #09c4fb;
  --blue-600: #04a6d8;
  --blue-700: #0679a6;
  --blue-100: #d4f3fe;
  --blue-50: #ecfaff;
  --butter: #fbe7a1;
  --butter-400: #f6d565;
  --butter-50: #fffaea;
  --white: #ffffff;
  --ink: #0b2a3f;
  --ink-2: #3f5b6b;
  --ink-3: #6f8795;
  --line: #dbe9f0;
  --navy: #082233;
  --radius: 18px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 2px rgba(11, 42, 63, .06), 0 2px 8px rgba(11, 42, 63, .05);
  --shadow: 0 10px 30px -10px rgba(11, 42, 63, .18);
  --shadow-lg: 0 30px 60px -20px rgba(11, 42, 63, .28);
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --container: 1200px;
  --header-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  overflow-x: clip;
}
html { overflow-x: clip; }
img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; line-height: 1.12; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2.5rem, 5.6vw, 4.6rem); }
h2 { font-size: clamp(2rem, 3.8vw, 3rem); }
h3 { font-size: 1.35rem; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 6px; }

.container { width: min(var(--container), 100% - 40px); margin-inline: auto; }
.section { padding: clamp(72px, 10vw, 128px) 0; position: relative; }
.section--cream { background: var(--butter-50); }
.section--blue { background: var(--blue-50); }
.section--navy { background: var(--navy); color: #eaf6fb; }
.section--navy h2, .section--navy h3 { color: #fff; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: .78rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  color: var(--blue-700); margin-bottom: 18px;
}
.eyebrow::before { content: ""; width: 28px; height: 2px; background: var(--blue); border-radius: 2px; }
.section--navy .eyebrow { color: var(--blue); }
.section-head { max-width: 720px; margin-bottom: 48px; }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .eyebrow::after { content: ""; width: 28px; height: 2px; background: var(--blue); border-radius: 2px; }
.lead { font-size: 1.15rem; color: var(--ink-2); }
.section--navy .lead { color: #b9d3df; }
.hl { background: linear-gradient(transparent 62%, var(--butter) 62%); padding: 0 .08em; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 24px; border-radius: 999px; border: 2px solid transparent;
  font-weight: 700; font-size: .95rem; text-decoration: none; white-space: nowrap;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s, color .25s, border-color .25s;
}
.btn:hover { transform: translateY(-2px); }
.btn svg { width: 18px; height: 18px; flex: none; }
[data-icon] { display: inline-flex; }
.btn-blue { background: var(--blue); color: var(--ink); box-shadow: 0 8px 20px -8px rgba(9, 196, 251, .7); }
.btn-blue:hover { background: #2fd0ff; box-shadow: 0 14px 28px -10px rgba(9, 196, 251, .8); }
.btn-yellow { background: var(--butter-400); color: var(--ink); box-shadow: 0 8px 20px -8px rgba(246, 213, 101, .9); }
.btn-yellow:hover { background: #ffdf73; }
.btn-ink { background: var(--ink); color: #fff; }
.btn-ink:hover { background: #12405f; }
.btn-outline { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-outline:hover { background: var(--ink); color: #fff; }
.btn-ghost { color: var(--ink); background: transparent; border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-sm { padding: 9px 16px; font-size: .85rem; }
.btn[aria-disabled="true"] { opacity: .55; }

/* ---------- Scroll progress ---------- */
.scroll-progress {
  position: fixed; inset: 0 0 auto 0; height: 3px; z-index: 200;
  background: linear-gradient(90deg, var(--blue), var(--butter-400));
  transform-origin: 0 50%; transform: scaleX(0);
}

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100; height: var(--header-h);
  transition: background .35s, box-shadow .35s, height .35s;
}
.site-header.is-scrolled, .site-header.is-solid {
  background: rgba(255, 255, 255, .88);
  backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px);
  box-shadow: 0 1px 0 var(--line);
}
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-logo {
  width: 46px; height: 46px; border-radius: 50%; flex: none; overflow: hidden;
  display: grid; place-items: center; background: #fff; box-shadow: 0 0 0 2px var(--blue);
}
.brand-logo img { width: 100%; height: 100%; object-fit: contain; }
.brand-logo .logo-fallback { display: none; font-family: var(--font-display); font-weight: 700; color: var(--blue-700); font-size: 1rem; }
.brand-logo.no-logo .logo-fallback { display: block; }
.brand-text { font-family: var(--font-display); font-weight: 700; font-size: 1.3rem; line-height: 1; }
.brand-text small { display: block; font-family: var(--font-body); font-weight: 600; font-size: .66rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); margin-top: 4px; }

.nav { display: flex; align-items: center; gap: 6px; }
.nav-link, .dropdown-toggle {
  display: inline-flex; align-items: center; gap: 6px; padding: 10px 14px; border-radius: 999px;
  font-weight: 600; font-size: .95rem; text-decoration: none; background: none; border: 0;
  transition: background .2s;
}
.nav-link:hover, .dropdown-toggle:hover, .dropdown.is-open .dropdown-toggle { background: var(--blue-50); }
.nav-link.is-active { color: var(--blue-700); }
.dropdown-toggle svg { width: 14px; height: 14px; transition: transform .3s var(--ease); }
.dropdown.is-open .dropdown-toggle svg { transform: rotate(180deg); }
.nav .btn { margin-left: 6px; }

.dropdown { position: relative; }
.dropdown-menu {
  position: absolute; top: calc(100% + 12px); left: 50%; width: 560px;
  transform: translate(-50%, 8px); opacity: 0; visibility: hidden;
  background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-lg); border: 1px solid var(--line);
  padding: 14px; display: grid; grid-template-columns: 1fr 1fr; gap: 4px;
  transition: opacity .25s, transform .3s var(--ease), visibility .25s;
}
.dropdown-menu::before { content: ""; position: absolute; inset: -14px 0 auto 0; height: 14px; }
.dropdown.is-open .dropdown-menu { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.dropdown-item {
  display: flex; gap: 14px; align-items: flex-start; padding: 12px; border-radius: 12px; text-decoration: none;
  transition: background .2s;
}
.dropdown-item:hover, .dropdown-item.is-active { background: var(--blue-50); }
.dropdown-item .di-icon {
  width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; flex: none;
  background: var(--butter-50); color: var(--blue-700); border: 1px solid #f3e4ad;
}
.dropdown-item:hover .di-icon { background: var(--blue); color: var(--ink); border-color: var(--blue); }
.dropdown-item .di-icon svg { width: 20px; height: 20px; }
.dropdown-item strong { display: block; font-size: .95rem; }
.dropdown-item span { display: block; font-size: .8rem; color: var(--ink-3); line-height: 1.35; }

.burger { display: none; width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line); background: #fff; position: relative; }
.burger span { position: absolute; left: 13px; right: 13px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .3s var(--ease), opacity .2s; }
.burger span:nth-child(1) { top: 16px; } .burger span:nth-child(2) { top: 22px; } .burger span:nth-child(3) { top: 28px; }
.menu-open .burger span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menu-open .burger span:nth-child(2) { opacity: 0; }
.menu-open .burger span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: var(--header-h) 0 0 0; z-index: 99; background: #fff; padding: 20px;
  overflow-y: auto; transform: translateY(-10px); opacity: 0; visibility: hidden;
  transition: opacity .3s, transform .35s var(--ease), visibility .3s;
}
.menu-open .mobile-menu { opacity: 1; visibility: visible; transform: none; }
.mobile-menu .dropdown-item { padding: 14px 8px; border-bottom: 1px solid var(--line); border-radius: 0; }
.mobile-menu .mm-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 20px; }

@media (max-width: 980px) {
  .nav { display: none; }
  .burger { display: block; }
}

/* ---------- Reveal on scroll ---------- */
[data-reveal] { opacity: 0; transform: translateY(34px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0s); }
[data-reveal="left"] { transform: translateX(-40px); }
[data-reveal="right"] { transform: translateX(40px); }
[data-reveal="zoom"] { transform: scale(.94); }
[data-reveal].is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  [data-reveal] { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}

/* ---------- Page hero (sub-pages) ---------- */
.page-hero {
  position: relative; overflow: hidden;
  padding: calc(var(--header-h) + clamp(56px, 8vw, 100px)) 0 clamp(56px, 8vw, 96px);
  background: linear-gradient(180deg, var(--blue-50), #fff 90%);
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { max-width: 820px; }
.page-hero .lead { max-width: 640px; }
.breadcrumb { display: flex; gap: 8px; font-size: .85rem; color: var(--ink-3); margin-bottom: 22px; }
.breadcrumb a { text-decoration: none; color: var(--ink-2); }
.breadcrumb a:hover { color: var(--blue-700); }
.orb { position: absolute; border-radius: 50%; pointer-events: none; will-change: transform; }
.orb--blue { background: radial-gradient(circle at 30% 30%, #7fe0ff, var(--blue) 60%); opacity: .22; }
.orb--yellow { background: radial-gradient(circle at 30% 30%, #fff4c9, var(--butter-400) 70%); opacity: .5; }
.orb--ring { border: 2px solid var(--blue); opacity: .25; }
.page-hero .orb--blue { width: 420px; height: 420px; right: -120px; top: -80px; }
.page-hero .orb--yellow { width: 180px; height: 180px; right: 22%; bottom: -60px; }
.page-hero .orb--ring { width: 260px; height: 260px; right: 8%; top: 38%; }

.subnav {
  position: sticky; top: var(--header-h); z-index: 50; background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line);
}
.subnav .container { display: flex; gap: 6px; overflow-x: auto; padding: 10px 0; scrollbar-width: none; }
.subnav .container::-webkit-scrollbar { display: none; }
.subnav a {
  flex: none; padding: 9px 16px; border-radius: 999px; text-decoration: none; font-weight: 700; font-size: .82rem;
  letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); transition: background .2s, color .2s;
}
.subnav a:hover { background: var(--blue-50); }
.subnav a.is-active { background: var(--ink); color: #fff; }

/* ---------- Generic cards & grids ---------- */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 980px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.card-icon {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 18px;
  background: var(--blue-50); color: var(--blue-700);
}
.card-icon svg { width: 26px; height: 26px; }
.card p { color: var(--ink-2); }
.card p:last-child { margin-bottom: 0; }
.tag {
  display: inline-block; padding: 4px 10px; border-radius: 999px; font-size: .72rem; font-weight: 700;
  letter-spacing: .04em; background: var(--blue-50); color: var(--blue-700);
}
.tag--yellow { background: var(--butter); color: #6b5210; }
.tag--ink { background: var(--ink); color: #fff; }
.tag--muted { background: #eef2f4; color: var(--ink-2); }
.meta-row { display: flex; flex-wrap: wrap; gap: 8px; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 88px); align-items: center; }
@media (max-width: 880px) { .split { grid-template-columns: 1fr; } }

/* Placeholder visual (replace with photos) */
.ph {
  position: relative; overflow: hidden; border-radius: var(--radius);
  background:
    radial-gradient(circle at 20% 20%, rgba(255, 255, 255, .5), transparent 40%),
    linear-gradient(135deg, var(--blue) 0%, #6fdcff 55%, var(--butter) 100%);
  display: grid; place-items: center; color: var(--ink); text-align: center;
}
.ph::after {
  content: ""; position: absolute; inset: 0;
  background-image: repeating-radial-gradient(circle at 70% 120%, transparent 0 22px, rgba(255, 255, 255, .18) 22px 23px);
}
.ph > * { position: relative; z-index: 1; }
.ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 2; }

/* Accordion */
.accordion { border-top: 1px solid var(--line); }
.acc-item { border-bottom: 1px solid var(--line); }
.acc-q {
  width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 20px; text-align: left;
  padding: 22px 0; background: none; border: 0; font-weight: 700; font-size: 1.05rem;
}
.acc-q .plus { width: 30px; height: 30px; border-radius: 50%; border: 1.5px solid var(--line); position: relative; flex: none; transition: background .25s, border-color .25s, transform .35s var(--ease); }
.acc-q .plus::before, .acc-q .plus::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 2px; background: var(--ink); transform: translate(-50%, -50%); }
.acc-q .plus::after { transform: translate(-50%, -50%) rotate(90deg); }
.acc-item.is-open .plus { background: var(--blue); border-color: var(--blue); transform: rotate(45deg); }
.acc-a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .4s var(--ease); }
.acc-a > div { overflow: hidden; color: var(--ink-2); }
.acc-item.is-open .acc-a { grid-template-rows: 1fr; }
.acc-a p { padding-bottom: 20px; margin: 0; }

/* Forms */
.form { display: grid; gap: 18px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 640px) { .form-row { grid-template-columns: 1fr; } }
.field label { display: block; font-weight: 700; font-size: .85rem; margin-bottom: 8px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 16px; border-radius: 12px; border: 1.5px solid var(--line); background: #fff;
  font: inherit; color: var(--ink); transition: border-color .2s, box-shadow .2s;
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(9, 196, 251, .18); }
.form-note { font-size: .85rem; color: var(--ink-3); }
.form-success { display: none; padding: 16px 20px; border-radius: 12px; background: #e8f8ee; color: #1b6b3a; font-weight: 600; }
.form-success.is-visible { display: block; }

/* Toast */
.toast {
  position: fixed; left: 50%; bottom: 28px; z-index: 300; transform: translate(-50%, 20px); opacity: 0;
  background: var(--ink); color: #fff; padding: 13px 22px; border-radius: 999px; font-weight: 600; font-size: .9rem;
  box-shadow: var(--shadow-lg); transition: opacity .3s, transform .35s var(--ease); pointer-events: none; max-width: calc(100% - 40px); text-align: center;
}
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

/* ---------- CTA band ---------- */
.cta-band {
  position: relative; overflow: hidden; border-radius: 28px; padding: clamp(40px, 6vw, 72px);
  background: linear-gradient(120deg, var(--blue) 0%, #5fd9ff 60%, var(--butter) 130%);
  display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap;
}
.cta-band h2 { margin: 0 0 8px; }
.cta-band p { margin: 0; color: #0d3a52; font-weight: 500; }
.cta-band .orb--ring { border-color: #fff; opacity: .4; width: 300px; height: 300px; right: -80px; top: -120px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: #b9d3df; padding: 80px 0 32px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; }
@media (max-width: 880px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer .brand-text { color: #fff; }
.site-footer .brand-text small { color: #7fa3b4; }
.site-footer h4 { font-family: var(--font-body); font-size: .75rem; letter-spacing: .16em; text-transform: uppercase; color: var(--blue); margin-bottom: 18px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.site-footer a { text-decoration: none; color: #d5e7ef; transition: color .2s; }
.site-footer a:hover { color: var(--butter); }
.footer-bottom { margin-top: 56px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .1); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: .85rem; color: #7fa3b4; }
.social-row { display: flex; gap: 10px; margin-top: 18px; }
.social-row a { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: #fff; transition: transform .25s var(--ease); }
.social-row a:hover { transform: translateY(-3px) rotate(-4deg); }
.social-row svg { width: 24px; height: 24px; }

/* =====================================================================
   HOME PAGE
   ===================================================================== */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh; overflow: hidden;
  padding: calc(var(--header-h) + 40px) 0 80px; display: flex; align-items: center;
  background:
    radial-gradient(1200px 600px at 85% 10%, var(--blue-50), transparent 60%),
    radial-gradient(700px 500px at 0% 100%, var(--butter-50), transparent 70%), #fff;
}
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; position: relative; z-index: 1; }
@media (max-width: 980px) { .hero-grid { grid-template-columns: 1fr; text-align: center; } .hero-actions, .hero-meta { justify-content: center; } }
.hero h1 { margin-bottom: 22px; }
.hero h1 em { font-style: italic; color: var(--blue-700); }
.hero .lead { max-width: 540px; }
@media (max-width: 980px) { .hero .lead { margin-inline: auto; } }
.hero-meta { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 26px; }
.hero-chip {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px;
  background: #fff; border: 1px solid var(--line); font-weight: 600; font-size: .85rem; box-shadow: var(--shadow-sm);
}
.hero-chip svg { width: 16px; height: 16px; color: var(--blue-700); }
.hero-chip .dot { width: 8px; height: 8px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 0 rgba(34, 197, 94, .6); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(34, 197, 94, 0); } 100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); } }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }

/* Logo stage */
.logo-stage { position: relative; width: min(480px, 88vw); aspect-ratio: 1; margin-inline: auto; }
.logo-ring { position: absolute; inset: 0; will-change: transform; }
.logo-ring text { font-family: var(--font-body); font-weight: 700; font-size: 13.5px; letter-spacing: 4.2px; fill: var(--ink); text-transform: uppercase; }
.logo-orbit { position: absolute; inset: 11%; border-radius: 50%; border: 1.5px dashed rgba(9, 196, 251, .55); animation: spin 60s linear infinite; }
.logo-orbit::before, .logo-orbit::after { content: ""; position: absolute; border-radius: 50%; }
.logo-orbit::before { width: 18px; height: 18px; background: var(--butter-400); top: 8%; left: 12%; box-shadow: 0 0 0 6px rgba(246, 213, 101, .3); }
.logo-orbit::after { width: 12px; height: 12px; background: var(--blue); bottom: 12%; right: 6%; box-shadow: 0 0 0 5px rgba(9, 196, 251, .25); }
@keyframes spin { to { transform: rotate(360deg); } }
.logo-slot {
  position: absolute; inset: 20%; border-radius: 50%; background: #fff; display: grid; place-items: center;
  box-shadow: 0 0 0 10px var(--blue-50), 0 0 0 11px var(--blue-100), var(--shadow-lg); overflow: hidden;
  transition: transform .5s var(--ease);
}
.logo-slot:hover { transform: scale(1.03); }
.logo-slot img { width: 78%; height: 78%; object-fit: contain; }
.logo-slot .logo-placeholder { display: none; text-align: center; padding: 20px; }
.logo-slot.no-logo .logo-placeholder { display: block; }
.logo-placeholder strong { display: block; font-family: var(--font-display); font-size: clamp(2.2rem, 5vw, 3.2rem); color: var(--blue-700); line-height: 1; }
.logo-placeholder span { display: block; margin-top: 10px; font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); }
.hero .orb--blue { width: 560px; height: 560px; right: -200px; top: -140px; }
.hero .orb--yellow { width: 240px; height: 240px; left: -80px; bottom: 6%; }
.scroll-cue { position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%); display: grid; justify-items: center; gap: 8px; font-size: .7rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-3); text-decoration: none; z-index: 1; }
.scroll-cue i { width: 24px; height: 38px; border: 2px solid var(--ink-3); border-radius: 14px; position: relative; }
.scroll-cue i::after { content: ""; position: absolute; left: 50%; top: 7px; width: 4px; height: 8px; margin-left: -2px; background: var(--blue); border-radius: 2px; animation: cue 1.8s infinite; }
@keyframes cue { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(12px); } }
@media (max-height: 760px) { .scroll-cue { display: none; } }

/* Marquee */
.marquee { background: var(--ink); color: #fff; padding: 20px 0; overflow: hidden; white-space: nowrap; }
.marquee-track { display: inline-flex; gap: 48px; will-change: transform; }
.marquee-track span { font-family: var(--font-display); font-size: clamp(1.4rem, 2.6vw, 2rem); display: inline-flex; align-items: center; gap: 48px; }
.marquee-track span::after { content: "✦"; color: var(--butter-400); font-size: .8em; }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
@media (max-width: 760px) { .stats { grid-template-columns: repeat(2, 1fr); } }
.stat { padding: 28px 24px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); }
.stat b { display: block; font-family: var(--font-display); font-size: clamp(2.4rem, 5vw, 3.6rem); line-height: 1; color: var(--ink); }
.stat b .suffix { color: var(--blue); }
.stat span { display: block; margin-top: 10px; font-weight: 600; color: var(--ink-2); }

/* Letter */
.letter {
  position: relative; background: #fff; border-radius: 28px; padding: clamp(32px, 6vw, 72px);
  box-shadow: var(--shadow-lg); border: 1px solid var(--line); overflow: hidden;
}
.letter::before { content: "“"; position: absolute; top: -40px; right: 40px; font-family: var(--font-display); font-size: 16rem; line-height: 1; color: var(--butter); pointer-events: none; }
.letter-body { position: relative; font-size: 1.08rem; color: var(--ink-2); max-width: 780px; }
.letter-body p:first-child::first-letter { font-family: var(--font-display); float: left; font-size: 3.8rem; line-height: .9; padding: 6px 10px 0 0; color: var(--blue-700); }
.letter-more { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .5s var(--ease); }
.letter-more > div { overflow: hidden; }
.letter.is-open .letter-more { grid-template-rows: 1fr; }
.letter-sign { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; margin-top: 32px; padding-top: 28px; border-top: 1px solid var(--line); }
.signatories { display: flex; flex-wrap: wrap; gap: 28px; }
.signatory { display: flex; align-items: center; gap: 12px; }
.signatory .avatar { width: 52px; height: 52px; border-radius: 50%; }
.signatory strong { display: block; font-family: var(--font-display); font-size: 1.1rem; }
.signatory span { font-size: .85rem; color: var(--ink-3); }
.avatar { display: grid; place-items: center; font-weight: 700; color: var(--ink); background: linear-gradient(135deg, var(--blue), var(--butter)); overflow: hidden; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }

/* Committee carousel */
.carousel-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 36px; flex-wrap: wrap; }
.carousel-head .section-head { margin-bottom: 0; }
.carousel-controls { display: flex; gap: 10px; align-items: center; }
.arrow-btn {
  width: 54px; height: 54px; border-radius: 50%; border: 1.5px solid var(--ink); background: #fff; display: grid; place-items: center;
  transition: background .2s, color .2s, opacity .2s, transform .25s var(--ease);
}
.arrow-btn:hover:not(:disabled) { background: var(--ink); color: #fff; transform: scale(1.06); }
.arrow-btn:disabled { opacity: .3; cursor: default; }
.arrow-btn svg { width: 22px; height: 22px; }
.carousel { position: relative; }
.carousel-track {
  display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 72px) / 4); gap: 24px;
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; padding: 8px 2px 24px; scrollbar-width: none;
}
.carousel-track::-webkit-scrollbar { display: none; }
@media (max-width: 1100px) { .carousel-track { grid-auto-columns: calc((100% - 48px) / 3); } }
@media (max-width: 780px) { .carousel-track { grid-auto-columns: calc((100% - 24px) / 2); } }
@media (max-width: 520px) { .carousel-track { grid-auto-columns: 82%; } }
.committee-card {
  scroll-snap-align: start; position: relative; display: block; text-decoration: none; border-radius: var(--radius);
  aspect-ratio: 3 / 4; overflow: hidden; color: #fff; isolation: isolate; box-shadow: var(--shadow-sm);
  transition: transform .45s var(--ease), box-shadow .45s var(--ease);
}
.committee-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.committee-card .cc-media { position: absolute; inset: 0; z-index: -2; transition: transform .8s var(--ease); }
.committee-card:hover .cc-media { transform: scale(1.07); }
.committee-card .cc-media img { width: 100%; height: 100%; object-fit: cover; }
.committee-card::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(8, 34, 51, 0) 30%, rgba(8, 34, 51, .88) 100%); }
.cc-abbr { position: absolute; top: 20px; left: 20px; right: 20px; font-family: var(--font-display); font-size: clamp(2rem, 3vw, 2.6rem); font-weight: 700; color: rgba(255, 255, 255, .95); text-shadow: 0 2px 20px rgba(0, 0, 0, .15); line-height: 1; }
.cc-body { position: absolute; left: 20px; right: 20px; bottom: 20px; }
.cc-body h3 { font-size: 1.15rem; color: #fff; margin-bottom: 10px; }
.cc-body .tag { background: rgba(255, 255, 255, .18); color: #fff; backdrop-filter: blur(6px); }
.cc-go { position: absolute; top: 18px; right: 18px; width: 40px; height: 40px; border-radius: 50%; background: var(--butter-400); color: var(--ink); display: grid; place-items: center; transform: scale(0) rotate(-45deg); transition: transform .4s var(--ease); }
.cc-go svg { width: 18px; height: 18px; }
.committee-card:hover .cc-go { transform: scale(1) rotate(0); }
.carousel-foot { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 8px; flex-wrap: wrap; }
.carousel-progress { flex: 1; min-width: 160px; height: 4px; background: var(--line); border-radius: 4px; overflow: hidden; }
.carousel-progress i { display: block; height: 100%; width: 20%; background: var(--blue); border-radius: 4px; transition: width .3s, transform .3s; }
.carousel-count { font-weight: 700; font-variant-numeric: tabular-nums; color: var(--ink-2); }

/* Committee visual placeholders by level */
.cc-media.ph-1 { background: linear-gradient(150deg, #09c4fb, #0679a6); }
.cc-media.ph-2 { background: linear-gradient(150deg, #58d6fb, #f6d565); }
.cc-media.ph-3 { background: linear-gradient(150deg, #0b2a3f, #09c4fb); }
.cc-media.ph-4 { background: linear-gradient(150deg, #f6d565, #09c4fb); }
.cc-media.ph-5 { background: linear-gradient(150deg, #0679a6, #0b2a3f); }
.cc-media[class*="ph-"]::before {
  content: ""; position: absolute; inset: 0; opacity: .25;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200' fill='none' stroke='white' stroke-width='1.2'%3E%3Ccircle cx='100' cy='100' r='70'/%3E%3Cellipse cx='100' cy='100' rx='30' ry='70'/%3E%3Cpath d='M30 100h140M42 62h116M42 138h116M100 30v140'/%3E%3C/svg%3E") center 58% / 85% no-repeat;
}

/* Countdown */
.countdown-wrap { text-align: center; position: relative; }
.countdown { display: flex; justify-content: center; gap: clamp(10px, 2.4vw, 28px); margin: 44px 0 40px; flex-wrap: wrap; }
.cd-unit { width: clamp(120px, 17vw, 190px); padding: 26px 10px 20px; border-radius: 22px; background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .12); position: relative; overflow: hidden; }
.cd-unit::before { content: ""; position: absolute; inset: 50% 0 auto; height: 1px; background: rgba(255, 255, 255, .08); }
.cd-num { display: block; font-family: var(--font-display); font-size: clamp(3rem, 7vw, 5.4rem); line-height: 1; color: #fff; font-variant-numeric: tabular-nums; }
.cd-num.tick { animation: tick .5s var(--ease); }
@keyframes tick { 0% { transform: translateY(-14px); opacity: .2; } 100% { transform: none; opacity: 1; } }
.cd-label { display: block; margin-top: 12px; font-size: .74rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--blue); }
.cd-unit:nth-child(4) .cd-num { color: var(--butter-400); }
.live-badge { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 999px; background: rgba(239, 68, 68, .14); color: #ff8f8f; font-size: .75rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 18px; }
.live-badge::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #ef4444; animation: blink 1.2s infinite; }
@keyframes blink { 50% { opacity: .2; } }
.countdown-foot { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }
.section--navy .btn-outline { color: #fff; border-color: rgba(255, 255, 255, .4); }
.section--navy .btn-outline:hover { background: #fff; color: var(--ink); }
.globe-lines { position: absolute; inset: 0; pointer-events: none; opacity: .08; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 800 800' fill='none' stroke='white' stroke-width='1'%3E%3Ccircle cx='400' cy='400' r='390'/%3E%3Cellipse cx='400' cy='400' rx='180' ry='390'/%3E%3Cellipse cx='400' cy='400' rx='300' ry='390'/%3E%3Cpath d='M10 400h780M40 250h720M40 550h720M110 130h580M110 670h580M400 10v780'/%3E%3C/svg%3E") center / min(900px, 120%) no-repeat; }

/* Countries */
.countries-shell { display: grid; grid-template-columns: 1fr 360px; gap: 28px; align-items: start; }
@media (max-width: 980px) { .countries-shell { grid-template-columns: 1fr; } }
.toolbar { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-bottom: 18px; }
.search { position: relative; flex: 1; min-width: 220px; }
.search svg { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--ink-3); }
.search input { width: 100%; padding: 14px 16px 14px 46px; border-radius: 999px; border: 1.5px solid var(--line); font: inherit; background: #fff; }
.search input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(9, 196, 251, .18); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { padding: 9px 15px; border-radius: 999px; border: 1.5px solid var(--line); background: #fff; font-weight: 600; font-size: .85rem; transition: all .2s; }
.chip:hover { border-color: var(--ink); }
.chip.is-active { background: var(--ink); border-color: var(--ink); color: #fff; }
.select-pill { padding: 10px 16px; border-radius: 999px; border: 1.5px solid var(--line); font: inherit; font-weight: 600; font-size: .85rem; background: #fff; }
.country-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; max-height: 560px; overflow-y: auto; padding: 4px; margin: -4px; }
.country {
  display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; background: #fff; border: 1.5px solid var(--line);
  text-align: left; transition: border-color .2s, transform .25s var(--ease), box-shadow .25s; animation: pop .35s var(--ease) both;
}
@keyframes pop { from { opacity: 0; transform: scale(.96); } }
.country:hover { border-color: var(--blue); transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.country.is-selected { border-color: var(--ink); box-shadow: 0 0 0 3px rgba(9, 196, 251, .3); }
.flag { width: 32px; height: 22px; border-radius: 4px; object-fit: cover; flex: none; box-shadow: 0 0 0 1px rgba(0, 0, 0, .08); background: var(--blue-50); }
.country .c-name { flex: 1; font-weight: 600; font-size: .92rem; line-height: 1.25; }
.status-dot { width: 9px; height: 9px; border-radius: 50%; flex: none; background: #22c55e; }
.status-dot.allocated { background: #cbd5dc; }
.country.is-allocated .c-name { color: var(--ink-3); }
.list-meta { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 12px; font-size: .88rem; color: var(--ink-2); flex-wrap: wrap; }
.legend { display: flex; gap: 16px; }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.country-panel { position: sticky; top: calc(var(--header-h) + 20px); background: #fff; border-radius: var(--radius); border: 1px solid var(--line); padding: 28px; box-shadow: var(--shadow); }
.country-panel .flag-lg { width: 84px; height: 56px; border-radius: 8px; object-fit: cover; box-shadow: var(--shadow-sm); margin-bottom: 18px; }
.country-panel h3 { font-size: 1.6rem; margin-bottom: 6px; }
.country-panel ul { list-style: none; padding: 0; margin: 14px 0 22px; display: flex; flex-wrap: wrap; gap: 6px; }
.panel-empty { text-align: center; color: var(--ink-3); padding: 20px 0; }
.panel-empty svg { width: 56px; height: 56px; color: var(--blue); margin: 0 auto 12px; }
.empty-state { grid-column: 1 / -1; text-align: center; padding: 40px; color: var(--ink-3); }

/* Donate */
.donate-box { background: #fff; border-radius: 28px; padding: clamp(28px, 4vw, 44px); box-shadow: var(--shadow-lg); border: 1px solid var(--line); }
.amounts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 18px 0; }
.amount { padding: 16px 8px; border-radius: 14px; border: 1.5px solid var(--line); background: #fff; font-weight: 800; font-size: 1.1rem; transition: all .2s; }
.amount:hover { border-color: var(--blue); }
.amount.is-active { background: var(--blue); border-color: var(--blue); color: var(--ink); transform: translateY(-2px); box-shadow: 0 10px 20px -10px rgba(9, 196, 251, .8); }
.custom-amount { position: relative; margin-bottom: 18px; }
.custom-amount span { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); font-weight: 700; color: var(--ink-3); }
.custom-amount input { width: 100%; padding: 14px 16px 14px 34px; border-radius: 14px; border: 1.5px solid var(--line); font: inherit; font-weight: 700; }
.custom-amount input:focus { outline: none; border-color: var(--blue); }
.impact { display: flex; gap: 12px; align-items: center; padding: 14px 16px; border-radius: 14px; background: var(--butter-50); border: 1px dashed var(--butter-400); margin-bottom: 20px; font-size: .92rem; color: #5b4a17; }
.impact svg { width: 22px; height: 22px; flex: none; color: #b58b12; }
.donate-methods { display: grid; gap: 10px; margin-top: 14px; }
.method { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 14px; border: 1px solid var(--line); background: #fff; }
.method .m-icon { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; background: var(--blue-50); color: var(--blue-700); flex: none; }
.method .m-icon svg { width: 20px; height: 20px; }
.method strong { display: block; font-size: .95rem; }
.method small { color: var(--ink-3); }
.copy-btn { margin-left: auto; padding: 7px 12px; border-radius: 999px; border: 1px solid var(--line); background: #fff; font-size: .78rem; font-weight: 700; }
.copy-btn:hover { border-color: var(--ink); }
.check-list { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 12px; }
.check-list li { display: flex; gap: 12px; align-items: flex-start; }
.check-list li::before { content: ""; flex: none; width: 22px; height: 22px; margin-top: 2px; border-radius: 50%; background: var(--blue) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230b2a3f' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center / 13px no-repeat; }

/* Contact logos */
.contact-logos { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
@media (max-width: 760px) { .contact-logos { grid-template-columns: repeat(2, 1fr); } }
.contact-logo {
  display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 30px 16px; border-radius: var(--radius);
  background: #fff; border: 1px solid var(--line); text-decoration: none; text-align: center;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s;
}
.contact-logo:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.contact-logo svg { width: 56px; height: 56px; transition: transform .45s var(--ease); }
.contact-logo:hover svg { transform: scale(1.12) rotate(-6deg); }
.contact-logo strong { font-size: 1.05rem; }
.contact-logo span { font-size: .85rem; color: var(--ink-3); word-break: break-all; }

/* Key-dates teaser */
.dates-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
@media (max-width: 880px) { .dates-strip { grid-template-columns: repeat(2, 1fr); } }

/* =====================================================================
   INNER PAGES
   ===================================================================== */

/* Timeline (Preparation) */
.next-deadline { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; padding: 18px 22px; border-radius: 18px; background: var(--butter-50); border: 1px solid #f3e4ad; margin-bottom: 36px; }
.next-deadline .nd-days { font-family: var(--font-display); font-size: 2.4rem; line-height: 1; color: var(--ink); }
.next-deadline .nd-days small { font-family: var(--font-body); font-size: .8rem; font-weight: 700; color: var(--ink-3); margin-left: 4px; }
.next-deadline .nd-text { flex: 1; min-width: 200px; }
.next-deadline .nd-text span { font-size: .75rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: #9c7a12; }
.next-deadline .nd-text strong { display: block; font-size: 1.1rem; }
.tl-filters { margin-bottom: 26px; }
.timeline { position: relative; overflow-x: auto; padding: 10px 4px 12px; scrollbar-width: thin; }
.tl-track { position: relative; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(130px, 1fr); min-width: 100%; padding-top: 70px; }
.tl-line, .tl-fill { position: absolute; top: 94px; left: 0; height: 4px; border-radius: 4px; }
.tl-line { right: 0; background: var(--line); }
.tl-fill { background: linear-gradient(90deg, var(--blue), var(--butter-400)); width: 0; transition: width 1.6s var(--ease); }
.tl-today { position: absolute; top: 20px; transform: translateX(-50%); font-size: .7rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; background: var(--ink); color: #fff; padding: 5px 10px; border-radius: 999px; white-space: nowrap; transition: left 1.6s var(--ease); }
.tl-today::after { content: ""; position: absolute; left: 50%; top: 100%; width: 2px; height: 42px; background: var(--ink); transform: translateX(-50%); }
.tl-node { position: relative; background: none; border: 0; padding: 0 8px; text-align: center; display: grid; justify-items: center; gap: 10px; transition: opacity .3s; }
.tl-node .tl-dot { width: 26px; height: 26px; border-radius: 50%; background: #fff; border: 4px solid var(--line); position: relative; z-index: 1; transition: transform .3s var(--ease), border-color .3s, background .3s; }
.tl-node.is-past .tl-dot { border-color: var(--blue); background: var(--blue); }
.tl-node.type-deadline .tl-dot { border-radius: 7px; transform: rotate(45deg) scale(.9); }
.tl-node.type-event .tl-dot { border-color: var(--butter-400); }
.tl-node.type-event.is-past .tl-dot { background: var(--butter-400); }
.tl-node:hover .tl-dot, .tl-node.is-active .tl-dot { transform: scale(1.3); }
.tl-node.type-deadline:hover .tl-dot, .tl-node.type-deadline.is-active .tl-dot { transform: rotate(45deg) scale(1.2); }
.tl-node.is-active .tl-dot { box-shadow: 0 0 0 7px rgba(9, 196, 251, .25); }
.tl-node .tl-date { font-weight: 800; font-size: .82rem; color: var(--ink-2); }
.tl-node .tl-title { font-size: .85rem; font-weight: 600; line-height: 1.25; max-width: 140px; }
.tl-node.is-active .tl-title { color: var(--blue-700); }
.tl-node.is-dim { opacity: .25; }
.tl-detail { margin-top: 28px; display: grid; grid-template-columns: auto 1fr auto; gap: 24px; align-items: center; padding: 28px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); }
@media (max-width: 720px) { .tl-detail { grid-template-columns: 1fr; } }
.tl-detail .tl-cal { width: 88px; border-radius: 14px; overflow: hidden; text-align: center; border: 1px solid var(--line); }
.tl-cal b { display: block; background: var(--blue); color: var(--ink); font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; padding: 5px 0; }
.tl-cal strong { display: block; font-family: var(--font-display); font-size: 2.2rem; line-height: 1.2; padding: 4px 0; }
.tl-detail h3 { margin-bottom: 6px; }
.tl-detail p { margin: 0; color: var(--ink-2); }
.tl-detail.swap { animation: swap .45s var(--ease); }
@keyframes swap { from { opacity: 0; transform: translateY(10px); } }

.doc-card {
  position: relative; display: flex; flex-direction: column; justify-content: space-between; min-height: 330px; padding: 32px;
  border-radius: 24px; text-decoration: none; overflow: hidden; isolation: isolate; color: var(--ink);
  transition: transform .45s var(--ease), box-shadow .45s var(--ease);
}
.doc-card:hover { transform: translateY(-8px) rotate(-.4deg); box-shadow: var(--shadow-lg); }
.doc-card.c1 { background: var(--blue); }
.doc-card.c2 { background: var(--butter); }
.doc-card.c3 { background: var(--ink); color: #fff; }
.doc-card .doc-num { font-family: var(--font-display); font-size: 1rem; font-weight: 600; opacity: .7; }
.doc-card h3 { font-size: clamp(1.6rem, 2.4vw, 2.1rem); text-transform: uppercase; letter-spacing: .01em; margin: 0; }
.doc-card .doc-sheet { position: absolute; right: -30px; top: 30px; width: 150px; height: 190px; border-radius: 10px; background: rgba(255, 255, 255, .35); z-index: -1; transform: rotate(12deg); transition: transform .6s var(--ease); }
.doc-card .doc-sheet::before { content: ""; position: absolute; inset: 22px 18px auto; height: 70px; background: repeating-linear-gradient(transparent 0 10px, rgba(11, 42, 63, .15) 10px 12px); }
.doc-card.c3 .doc-sheet { background: rgba(9, 196, 251, .2); }
.doc-card:hover .doc-sheet { transform: rotate(4deg) translate(-16px, -8px); }
.see-pdf { display: inline-flex; align-items: center; gap: 10px; margin-top: 18px; padding: 12px 18px; border-radius: 999px; background: rgba(255, 255, 255, .95); color: var(--ink); font-weight: 800; font-size: .85rem; letter-spacing: .08em; text-transform: uppercase; width: max-content; }
.doc-card.c3 .see-pdf { background: var(--blue); }
.see-pdf svg { width: 16px; height: 16px; transition: transform .3s var(--ease); }
.doc-card:hover .see-pdf svg { transform: translate(3px, -3px); }

/* Committees page */
.committee-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 980px) { .committee-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .committee-grid { grid-template-columns: 1fr; } }
.cm-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: transform .35s var(--ease), box-shadow .35s var(--ease); scroll-margin-top: calc(var(--header-h) + 90px); }
.cm-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.cm-card.is-target { animation: target 2.4s var(--ease); }
@keyframes target { 0%, 60% { box-shadow: 0 0 0 5px var(--blue), var(--shadow-lg); } 100% { box-shadow: none; } }
.cm-media { position: relative; height: 170px; }
.cm-media img { width: 100%; height: 100%; object-fit: cover; }
.cm-media .cc-abbr { top: auto; bottom: 16px; font-size: 2rem; color: #fff; }
.cm-media .level { position: absolute; top: 14px; right: 14px; }
.cm-body { padding: 22px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.cm-body h3 { font-size: 1.2rem; }
.cm-body ol { margin: 4px 0 18px; padding-left: 18px; color: var(--ink-2); font-size: .92rem; }
.cm-body ol li { margin-bottom: 4px; }
.cm-body .cm-meta { font-size: .82rem; color: var(--ink-3); margin-bottom: 18px; }
.cm-actions { margin-top: auto; display: flex; gap: 8px; flex-wrap: wrap; }

/* Team */
.team-group { margin-bottom: 88px; }
.team-group:last-child { margin-bottom: 0; }
.team-group-head { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 30px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.team-group-head h2 { margin: 0; }
.team-group-head p { margin: 0; color: var(--ink-2); max-width: 460px; }
.team-count { font-family: var(--font-display); color: var(--blue); }
.team-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.team-grid.is-two { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 980px) { .team-grid, .team-grid.is-two { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 700px) { .team-grid, .team-grid.is-two { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 420px) { .team-grid, .team-grid.is-two { grid-template-columns: 1fr; } }
.member { perspective: 1200px; background: none; border: 0; padding: 0; text-align: left; aspect-ratio: 3 / 4; }
.member-inner { position: relative; width: 100%; height: 100%; transform-style: preserve-3d; transition: transform .8s var(--ease); }
.member.is-flipped .member-inner { transform: rotateY(180deg); }
.member-face { position: absolute; inset: 0; border-radius: var(--radius); overflow: hidden; backface-visibility: hidden; -webkit-backface-visibility: hidden; box-shadow: var(--shadow-sm); }
.member-front .avatar { position: absolute; inset: 0; font-family: var(--font-display); font-size: 3.4rem; color: rgba(11, 42, 63, .75); }
.member-front::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 50%, rgba(8, 34, 51, .8)); }
.member-front .m-caption { position: absolute; left: 18px; right: 18px; bottom: 16px; z-index: 1; color: #fff; }
.member-front .m-caption strong { display: block; font-family: var(--font-display); font-size: 1.2rem; line-height: 1.2; }
.member-front .m-caption span { font-size: .82rem; opacity: .85; }
.member-front .m-flip { position: absolute; top: 14px; right: 14px; z-index: 1; width: 34px; height: 34px; border-radius: 50%; background: rgba(255, 255, 255, .9); display: grid; place-items: center; color: var(--ink); transition: transform .4s var(--ease); }
.member:hover .m-flip { transform: rotate(180deg); }
.member-front .m-flip svg { width: 16px; height: 16px; }
.member-back { transform: rotateY(180deg); background: var(--ink); color: #dbeaf1; padding: 24px; display: flex; flex-direction: column; }
.member-back strong { font-family: var(--font-display); font-size: 1.25rem; color: #fff; line-height: 1.2; }
.member-back .role { color: var(--blue); font-weight: 700; font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; margin: 6px 0 14px; }
.member-back p { font-size: .9rem; line-height: 1.5; }
.member-back .back-hint { margin-top: auto; font-size: .75rem; color: #7fa3b4; }
.member-tilt { transition: transform .2s ease-out; transform-style: preserve-3d; height: 100%; }

/* Photos */
.gallery { columns: 3 280px; column-gap: 18px; }
.photo { break-inside: avoid; margin-bottom: 18px; display: block; width: 100%; padding: 0; border: 0; background: none; border-radius: var(--radius); overflow: hidden; position: relative; text-align: left; }
.photo .ph { border-radius: 0; transition: transform .8s var(--ease); }
.photo:hover .ph { transform: scale(1.05); }
.photo.r-wide .ph { aspect-ratio: 4 / 3; } .photo.r-tall .ph { aspect-ratio: 3 / 4; } .photo.r-square .ph { aspect-ratio: 1; }
.photo figcaption { position: absolute; inset: auto 0 0 0; padding: 40px 18px 16px; background: linear-gradient(transparent, rgba(8, 34, 51, .8)); color: #fff; font-weight: 600; transform: translateY(100%); transition: transform .45s var(--ease); z-index: 3; }
.photo figcaption small { display: block; font-weight: 500; opacity: .8; }
.photo:hover figcaption, .photo:focus-visible figcaption { transform: none; }
.photo.is-hidden { display: none; }
.ph-icon { width: 44px; height: 44px; opacity: .6; }
.lightbox { position: fixed; inset: 0; z-index: 400; background: rgba(5, 20, 31, .94); display: grid; place-items: center; padding: 60px 80px; opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s; }
.lightbox.is-open { opacity: 1; visibility: visible; }
.lb-stage { width: min(1000px, 100%); }
.lb-stage .ph { aspect-ratio: 3 / 2; max-height: 72vh; margin: 0 auto; }
.lb-caption { color: #fff; text-align: center; margin-top: 16px; font-weight: 600; }
.lb-caption small { display: block; color: #8fb2c2; font-weight: 500; }
.lb-btn { position: absolute; width: 52px; height: 52px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .3); background: rgba(255, 255, 255, .06); color: #fff; display: grid; place-items: center; }
.lb-btn:hover { background: #fff; color: var(--ink); }
.lb-btn svg { width: 22px; height: 22px; }
.lb-prev { left: 18px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 18px; top: 50%; transform: translateY(-50%); }
.lb-close { right: 18px; top: 18px; }
@media (max-width: 640px) { .lightbox { padding: 70px 12px; } .lb-prev, .lb-next { top: auto; bottom: 14px; transform: none; } }

/* Support & accommodation */
.tier { position: relative; display: flex; flex-direction: column; }
.tier .price { font-family: var(--font-display); font-size: 2.2rem; line-height: 1; margin: 10px 0 4px; }
.tier .price small { font-family: var(--font-body); font-size: .85rem; color: var(--ink-3); font-weight: 600; }
.tier ul { flex: 1; }
.tier .btn { margin-top: 24px; }
.tier.is-featured { background: var(--ink); color: #dbeaf1; border-color: var(--ink); }
.tier.is-featured h3, .tier.is-featured .price { color: #fff; }
.tier.is-featured p, .tier.is-featured .price small { color: #9fbccb; }
.tier.is-featured .ribbon { position: absolute; top: -12px; right: 20px; }
.logo-wall { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
@media (max-width: 760px) { .logo-wall { grid-template-columns: repeat(3, 1fr); } }
.logo-wall div { aspect-ratio: 3 / 2; border-radius: 14px; border: 1.5px dashed var(--line); display: grid; place-items: center; color: var(--ink-3); font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; background: #fff; }
.part-title { display: flex; align-items: center; gap: 16px; margin-bottom: 14px; }
.part-title .part-num { width: 48px; height: 48px; border-radius: 50%; background: var(--butter); display: grid; place-items: center; font-family: var(--font-display); font-weight: 700; flex: none; }
.part-title h2 { margin: 0; text-transform: uppercase; font-size: clamp(1.7rem, 3.2vw, 2.5rem); }
.place-card { overflow: hidden; padding: 0; display: flex; flex-direction: column; }
.place-card .ph { border-radius: 0; aspect-ratio: 16 / 10; }
.place-card .pc-body { padding: 22px; display: flex; flex-direction: column; flex: 1; }
.place-card .pc-body p { font-size: .93rem; }
.place-card .pc-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; font-size: .85rem; color: var(--ink-3); font-weight: 600; }
.steps { counter-reset: step; display: grid; gap: 16px; }
.step { position: relative; padding: 22px 22px 22px 80px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); }
.step::before { counter-increment: step; content: counter(step); position: absolute; left: 22px; top: 22px; width: 40px; height: 40px; border-radius: 50%; background: var(--blue); display: grid; place-items: center; font-family: var(--font-display); font-weight: 700; }
.step h3 { font-size: 1.1rem; margin-bottom: 4px; }
.step p { margin: 0; color: var(--ink-2); font-size: .95rem; }
.fee-table { width: 100%; border-collapse: collapse; background: #fff; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.fee-table th, .fee-table td { padding: 16px 20px; text-align: left; border-bottom: 1px solid var(--line); }
.fee-table th { background: var(--blue-50); font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; }
.fee-table tr:last-child td { border-bottom: 0; }
.table-wrap { overflow-x: auto; }
.value-list { display: grid; gap: 22px; }
.value { display: flex; gap: 18px; }
.value .card-icon { margin: 0; flex: none; }
.value h3 { font-size: 1.15rem; margin-bottom: 4px; }
.value p { margin: 0; color: var(--ink-2); }
.big-quote { font-family: var(--font-display); font-size: clamp(1.6rem, 3.2vw, 2.5rem); line-height: 1.3; font-weight: 500; }

[hidden] { display: none !important; }
.ph [data-icon] svg { width: 100%; height: 100%; }
.cm-media { overflow: hidden; }
.cm-media .cc-media { position: absolute; inset: 0; }
.cm-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgba(8, 34, 51, .55)); }
.cm-media .cc-abbr, .cm-media .level { z-index: 1; }

/* ---------- Logo (official GDMUN logo sits on a sky-blue square) ---------- */
:root { --logo-bg: #5bbef2; }
.brand-logo { background: var(--logo-bg); box-shadow: 0 0 0 2px #fff, 0 0 0 3.5px var(--logo-bg); }
.brand-logo img { object-fit: cover; transform: scale(1.12); }
.brand-logo .logo-fallback { color: #fff; font-family: var(--font-body); font-weight: 800; font-size: .62rem; letter-spacing: .02em; }
.logo-slot { background: var(--logo-bg); }
.logo-slot img { width: 100%; height: 100%; object-fit: cover; }
.logo-placeholder em { display: block; font-family: var(--font-display); font-style: normal; font-size: clamp(1.4rem, 3vw, 2rem); color: var(--butter); line-height: 1; }
.logo-placeholder em sup { font-size: .5em; }
.logo-slot .logo-placeholder strong { color: #fff; font-family: var(--font-body); font-weight: 600; letter-spacing: .06em; }
.logo-slot .logo-placeholder span { color: #eaf7ff; }
@media (max-width: 980px) { .hero-grid .logo-stage { order: -1; width: min(300px, 72vw); } .hero-grid { gap: 28px; } }
.flag-emoji { display: grid; place-items: center; background: none; box-shadow: none; font-size: 20px; line-height: 1; }
.country-panel .flag-emoji.flag-lg { font-size: 52px; width: auto; justify-content: start; }

/* ---------- Languages ---------- */
.lang-block { display: grid; gap: 10px; margin: 6px 0 28px; }
.lang-label { font-size: .75rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); }
.langs { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.lang { display: inline-flex; align-items: center; gap: 9px; padding: 7px 14px 7px 8px; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-weight: 600; font-size: .9rem; }
.lang-flag { display: block; width: 26px; height: 18px; border-radius: 4px; overflow: hidden; box-shadow: 0 0 0 1px rgba(11, 42, 63, .12); flex: none; }
.lang-flag svg { display: block; width: 100%; height: 100%; }
.lang-flag svg[viewBox="0 0 60 30"] { width: 36px; margin-left: -5px; }

/* ---------- Place photos ---------- */
.place-photo { position: relative; margin: 0; aspect-ratio: 16 / 10; overflow: hidden; background: var(--blue-50); }
.place-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.place-card:hover .place-photo img { transform: scale(1.06); }
.place-photo figcaption { position: absolute; right: 8px; bottom: 8px; max-width: calc(100% - 16px); }
.place-photo figcaption a { display: block; padding: 3px 8px; border-radius: 999px; background: rgba(8, 34, 51, .62); color: #fff; font-size: .66rem; text-decoration: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.place-photo figcaption a:hover { background: var(--ink); }

/* ---------- Contact email card ---------- */
.mail-card { padding: 36px; }
.mail-address { font-family: var(--font-display); font-size: clamp(1.3rem, 2.6vw, 1.8rem); color: var(--ink) !important; margin: 18px 0 24px; word-break: break-all; }

/* =====================================================================
   OCTOBER UPDATE — real logo, new hero, plain team cards, TBA panels
   ===================================================================== */

/* Logo: transparent blue line-art, so it sits on white, never on blue */
.brand-logo { background: #fff; box-shadow: 0 0 0 2px var(--blue-100); }
.brand-logo img { object-fit: contain; transform: none; padding: 3px; }
.logo-stage { display: grid; place-items: center; aspect-ratio: auto; }
.logo-mark {
  width: min(460px, 86%); height: auto; display: block;
  filter: drop-shadow(0 24px 40px rgba(9, 196, 251, .22));
  transition: transform .4s var(--ease);
}
@media (max-width: 980px) { .logo-mark { width: min(300px, 70vw); } }

/* Hero wordmark */
.hero-title { font-size: clamp(3.6rem, 9vw, 7rem); letter-spacing: -.02em; margin-bottom: .1em; }
.hero-fullname {
  font-family: var(--font-display); font-size: clamp(1.15rem, 2.2vw, 1.6rem); font-weight: 500;
  color: var(--ink-2); margin: 0 0 .35em;
}
.hero-tagline {
  font-weight: 800; font-size: clamp(1rem, 1.6vw, 1.15rem); letter-spacing: .02em;
  color: var(--blue-700); margin: 0 0 1.1em;
}
.hero-tagline::after { content: ""; display: block; width: 72px; height: 3px; margin-top: 14px; border-radius: 3px; background: var(--butter-400); }
@media (max-width: 980px) { .hero-tagline::after { margin-inline: auto; } }
.dot--closed { background: #e0a21b !important; animation: none !important; }

/* Letter signature */
.letter-signature { width: 190px; margin: 18px 0 0; mix-blend-mode: multiply; }

/* About: real photo instead of the placeholder block */
.photo-frame { margin: 0; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg); }
.photo-frame img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 3; }

/* Team: plain cards, no flip */
.member { perspective: none; aspect-ratio: auto; display: block; margin: 0; cursor: default; }
.member-photo {
  position: relative; aspect-ratio: 3 / 4; border-radius: var(--radius); overflow: hidden;
  display: grid; place-items: center; box-shadow: var(--shadow-sm);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.member:hover .member-photo { transform: translateY(-5px); box-shadow: var(--shadow); }
.member-photo img { width: 100%; height: 100%; object-fit: cover; }
.member-initials { font-family: var(--font-display); font-size: 3rem; color: rgba(11, 42, 63, .72); }
.member figcaption { padding: 14px 2px 0; }
.member figcaption strong { display: block; font-family: var(--font-display); font-size: 1.1rem; line-height: 1.25; }
.member figcaption span { display: block; font-size: .82rem; font-weight: 600; color: var(--ink-3); margin-top: 2px; }

/* "To be announced" panels */
.tba {
  grid-column: 1 / -1; text-align: center; padding: clamp(36px, 6vw, 72px) clamp(20px, 5vw, 64px);
  border-radius: 24px; border: 1.5px dashed var(--blue); background: var(--blue-50);
  display: grid; justify-items: center; gap: 6px;
}
.tba h2, .tba h3 { margin: 10px 0 4px; max-width: 18ch; }
.tba p { max-width: 54ch; color: var(--ink-2); margin: 0 0 12px; }
.tba-badge {
  display: inline-block; padding: 7px 16px; border-radius: 999px; background: var(--butter);
  font-size: .72rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: #6b5210;
}
.committee-grid.is-tba { display: block; }
.carousel-track.is-tba { display: block; overflow: visible; padding-bottom: 0; }
.tba--inline { background: #fff; border-color: var(--butter-400); }

/* =====================================================================
   NOVEMBER UPDATE — blue hero, donation link, committee badges
   ===================================================================== */
:root { --hero-blue: #30c7e7; --hero-blue-deep: #1fb2d6; }

/* ---------- Full-blue hero (home) ---------- */
.hero--blue {
  background: linear-gradient(160deg, var(--hero-blue) 0%, var(--hero-blue) 55%, var(--hero-blue-deep) 100%);
  color: #fff; min-height: auto; padding: calc(var(--header-h) + 64px) 0 clamp(64px, 9vw, 110px);
}
.hero--blue .hero-glow {
  position: absolute; inset: -20% -10% auto auto; width: 70%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, .28), transparent 62%); pointer-events: none;
}
.hero--blue .hero-chip {
  background: rgba(8, 34, 51, .3); border: 0; color: #fff; box-shadow: none; backdrop-filter: blur(4px);
}
.hero--blue .hero-title { color: #fff; margin-bottom: .06em; }
.hero--blue .hero-fullname { color: rgba(255, 255, 255, .95); font-size: clamp(1.2rem, 2.4vw, 1.75rem); }
.hero--blue .hero-tagline { color: var(--butter); }
.hero--blue .hero-tagline::after { background: rgba(255, 255, 255, .55); }
.hero--blue .lead { color: rgba(255, 255, 255, .95); }
.btn-hero-ghost { border-color: rgba(255, 255, 255, .85); color: #fff; }
.btn-hero-ghost:hover { background: #fff; color: var(--ink); }
.hero--blue .logo-mark {
  filter: brightness(0) invert(1) drop-shadow(0 10px 26px rgba(8, 34, 51, .25));
  width: min(440px, 88%);
}
.logo-stage { position: relative; }
.logo-year {
  display: block; text-align: center; margin-top: -8px;
  font-family: var(--font-display); font-weight: 600; font-size: clamp(2.2rem, 4.4vw, 3.4rem);
  color: #fff; letter-spacing: .04em; text-shadow: 0 8px 24px rgba(8, 34, 51, .25);
}
@media (max-width: 980px) { .hero--blue .logo-mark { width: min(260px, 64vw); } }

/* Header sitting on the blue hero */
body[data-page="home"] .site-header:not(.is-scrolled) .brand-logo { background: transparent; box-shadow: none; }
body[data-page="home"] .site-header:not(.is-scrolled) .brand-logo img { filter: brightness(0) invert(1); }
body[data-page="home"] .site-header:not(.is-scrolled) .brand-text { color: #fff; }
body[data-page="home"] .site-header:not(.is-scrolled) .brand-text small { color: rgba(255, 255, 255, .8); }
body[data-page="home"] .site-header:not(.is-scrolled) .nav-link,
body[data-page="home"] .site-header:not(.is-scrolled) .dropdown-toggle {
  color: #fff; background: rgba(255, 255, 255, .18);
}
body[data-page="home"] .site-header:not(.is-scrolled) .nav-link:hover,
body[data-page="home"] .site-header:not(.is-scrolled) .dropdown-toggle:hover { background: rgba(255, 255, 255, .32); }
body[data-page="home"] .site-header:not(.is-scrolled) .btn-ghost { color: #fff; border-color: rgba(255, 255, 255, .6); }
body[data-page="home"] .site-header:not(.is-scrolled) .burger { background: rgba(255, 255, 255, .22); border-color: transparent; }
body[data-page="home"] .site-header:not(.is-scrolled) .burger span { background: #fff; }

/* ---------- Donation card (replaces the amount picker) ---------- */
.donate-cta {
  background: #fff; border: 1px solid var(--line); border-radius: 24px; padding: clamp(28px, 4vw, 40px);
  box-shadow: var(--shadow-lg); display: grid; justify-items: start; gap: 6px;
}
.donate-cta h3 { margin: 6px 0 0; font-size: 1.5rem; }
.donate-cta p { color: var(--ink-2); margin: 0; }
.donate-cta .btn { margin-top: 14px; }

/* ---------- Committees: badges and "to be announced" states ---------- */
.cm-media .lang-badge { position: absolute; top: 14px; left: 14px; z-index: 1; }
.cm-topics-tba { color: var(--ink-3); font-style: italic; margin: 4px 0 18px; }
.btn.is-static { cursor: default; background: var(--blue-50); border-color: transparent; color: var(--ink-2); }
.btn.is-static:hover { transform: none; }
.doc-card.is-static { cursor: default; }
.doc-card.is-static:hover { transform: none; box-shadow: none; }
[data-mail], [data-donate] { cursor: pointer; }

/* ---------- Official 2027 logo (artwork already on its own blue ground) ---------- */
:root { --hero-blue: #30c6e7; --hero-blue-deep: #22b7da; --logo-bg: #30c6e7; }
.hero--blue .logo-mark {
  filter: none; border-radius: 28px; width: min(440px, 86%);
  box-shadow: 0 30px 60px -28px rgba(8, 34, 51, .45);
}
.hero--blue { background: linear-gradient(170deg, var(--hero-blue) 0%, var(--hero-blue) 62%, var(--hero-blue-deep) 100%); }
.brand-logo { background: var(--logo-bg); box-shadow: 0 0 0 2px rgba(255, 255, 255, .7); }
.brand-logo img { object-fit: cover; transform: scale(1.04); padding: 0; }
body[data-page="home"] .site-header:not(.is-scrolled) .brand-logo { background: var(--logo-bg); box-shadow: 0 0 0 2px rgba(255, 255, 255, .55); }
body[data-page="home"] .site-header:not(.is-scrolled) .brand-logo img { filter: none; }
.site-footer .brand-logo { box-shadow: 0 0 0 2px rgba(255, 255, 255, .25); }

/* The logo artwork carries its own blue ground: the hero must match it exactly
   and add nothing around the image, so the square edge disappears. */
.hero--blue { background: var(--hero-blue); }
.hero--blue .hero-glow { display: none; }
.hero--blue .logo-mark { border-radius: 0; box-shadow: none; width: min(520px, 100%); }

/* Transparent logo: no square ground anywhere */
.brand-logo { background: var(--logo-bg); }
.brand-logo img { object-fit: contain; transform: none; padding: 4px; }
.hero--blue .logo-mark { border-radius: 0; box-shadow: none; background: none; width: min(500px, 96%); }

/* ---------- Brand mark better centred in the header pastille ---------- */
.brand-logo { padding: 0; display: grid; place-items: center; overflow: hidden; }
.brand-logo img { width: 86%; height: 86%; object-fit: contain; object-position: center; padding: 0; margin: 0 0 1px -1px; }

/* ---------- Footer donate button: black label ---------- */
.site-footer .btn-yellow { color: #000; }
.site-footer .btn-yellow:hover { color: #000; }

/* ---------- Committee crest: real logo when provided, otherwise the coloured tile ---------- */
.cc-media .cc-logo {
  position: absolute; inset: 14% 14% 24%; width: 72%; height: auto; max-height: 62%;
  object-fit: contain; object-position: center; z-index: 1;
  filter: drop-shadow(0 6px 14px rgba(8, 34, 51, .25));
}
.cm-media .cc-media .cc-logo { inset: 10% 20% 22%; width: 60%; }

/* =====================================================================
   Official committee logos (blue artwork on a light ground)
   ===================================================================== */

/* Home carousel: the logo sits on a white disc so it reads on the coloured tile */
.committee-card .cc-logo {
  position: absolute; inset: auto;
  left: 50%; top: 40%; transform: translate(-50%, -50%);
  width: 54%; height: auto; max-height: 44%;
  background: #fff; border-radius: 50%; padding: 4.5%;
  box-shadow: 0 12px 28px -10px rgba(8, 34, 51, .45);
}

/* Committees page: clean light tile, logo centred, abbreviation in ink */
.cm-media .cc-media[class*="ph-"] { background: var(--blue-50); }
.cm-media .cc-media[class*="ph-"]::before { opacity: .07; }
.cm-media::after { display: none; }
.cm-media .cc-media .cc-logo {
  position: absolute; inset: auto;
  left: 50%; top: 52%; transform: translate(-50%, -50%);
  width: auto; height: 62%; max-width: 58%; padding: 0; background: none;
  box-shadow: none; filter: none;
}
.cm-media .cc-abbr {
  top: 12px; left: 16px; bottom: auto; right: auto;
  font-size: 1.15rem; color: var(--ink); text-shadow: none; opacity: .72;
}
.cm-media .level { top: 12px; right: 14px; }
.cm-media .lang-badge { top: auto; bottom: 12px; left: 14px; }

/* The white holder behind a carousel logo must be a circle, not an ellipse */
.committee-card .cc-logo {
  width: 48%; height: auto; aspect-ratio: 1; max-height: none;
  object-fit: contain; padding: 6%;
}

/* Carousel crest: a small, fixed disc that never touches the abbreviation */
.committee-card .cc-logo {
  position: absolute; inset: auto;
  left: 50%; top: 46%; transform: translate(-50%, -50%);
  width: min(44%, 112px); height: auto; aspect-ratio: 1; max-height: none;
  padding: 12px; background: #fff; border-radius: 50%; object-fit: contain;
  box-shadow: 0 14px 30px -12px rgba(8, 34, 51, .5);
}

/* `.committee-card .cc-media img` (width:100%) was beating the crest rule above:
   this selector is more specific, so the disc keeps its size. */
.committee-card .cc-media img.cc-logo {
  position: absolute; inset: auto;
  left: 50%; top: 46%; transform: translate(-50%, -50%);
  width: min(44%, 112px); height: auto; aspect-ratio: 1;
  padding: 12px; background: #fff; border-radius: 50%; object-fit: contain;
  box-shadow: 0 14px 30px -12px rgba(8, 34, 51, .5);
}
