/* ==========================================================================
   The Common Connection — site styles
   Palette and motifs drawn from the foundation's brand art:
   night-indigo sky, Blue Ridge sunrise, the Mill Mountain star, rainbow path.
   ========================================================================== */

:root {
  --night: #120832;
  --indigo: #1d1050;
  --indigo-2: #2b1a73;
  --violet: #5b33d6;
  --violet-soft: #a892f7;
  --pink: #ec3a8b;
  --coral: #f2603e;
  --coral-ink: #bf3a1a;
  --orange: #ff8a1f;
  --gold: #ffc42e;
  --cyan: #1fb6ee;
  --green: #78c043;
  --green-ink: #2f7a1c;
  --cream: #fbf6ec;
  --paper: #fffdf8;
  --sand: #f3ebdb;
  --ink: #1b1240;
  --muted: #564e75;
  --line: #e5dccb;
  --focus: #5b33d6;

  --rainbow: linear-gradient(90deg, var(--cyan), var(--orange) 28%, var(--pink) 52%, var(--gold) 78%, var(--cyan));
  --sun: linear-gradient(135deg, var(--gold), var(--orange));
  --display: "Fraunces", Georgia, "Times New Roman", serif;
  --body: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --r-sm: 10px;
  --r: 18px;
  --r-lg: 28px;
  --shadow: 0 24px 60px -28px rgba(27, 18, 64, 0.45);
  --shadow-sm: 0 8px 24px -14px rgba(27, 18, 64, 0.35);
  --wrap: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; }
img { display: block; height: auto; }
a { color: inherit; text-underline-offset: 3px; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4 { font-family: var(--display); font-weight: 700; line-height: 1.08; letter-spacing: -0.015em; margin: 0 0 0.5em; text-wrap: balance; }
h1 { font-size: clamp(2.5rem, 6.2vw, 4.9rem); }
h2 { font-size: clamp(1.95rem, 4vw, 3.05rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); line-height: 1.2; }
h4 { font-size: 1.1rem; line-height: 1.3; }
p { margin: 0 0 1em; }
ul { padding-left: 1.2em; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
[hidden] { display: none !important; }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 200; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 8px; }
.skip-link:focus { top: 12px; }

.wrap { width: min(var(--wrap), 100% - 40px); margin-inline: auto; }
.wrap--narrow { width: min(820px, 100% - 40px); margin-inline: auto; }
.section { padding: clamp(64px, 9vw, 118px) 0; position: relative; }
.section--tight { padding: clamp(44px, 6vw, 72px) 0; }
.section--paper { background: var(--paper); }
.section--sand { background: var(--sand); }
.section--dark { background: var(--indigo); color: var(--cream); --focus: var(--gold); --muted: #cfc6ee; --line: rgba(255, 255, 255, 0.16); }
.stars {
  background-image:
    radial-gradient(1.6px 1.6px at 24px 34px, rgba(255, 255, 255, 0.7), transparent 60%),
    radial-gradient(1.2px 1.2px at 110px 140px, rgba(255, 255, 255, 0.5), transparent 60%),
    radial-gradient(1.4px 1.4px at 190px 70px, rgba(255, 220, 160, 0.6), transparent 60%),
    radial-gradient(1px 1px at 70px 200px, rgba(255, 255, 255, 0.45), transparent 60%),
    radial-gradient(1.2px 1.2px at 230px 220px, rgba(170, 200, 255, 0.55), transparent 60%);
  background-size: 260px 260px;
}
.center { text-align: center; }
.section-head { max-width: 720px; margin-bottom: clamp(32px, 5vw, 56px); }
.section-head.center { margin-inline: auto; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--coral-ink); margin-bottom: 14px; }
.eyebrow::before { content: ""; width: 28px; height: 3px; border-radius: 3px; background: var(--rainbow); }
.section--dark .eyebrow, .hero .eyebrow, .page-hero .eyebrow { color: var(--gold); }
.lead { font-size: clamp(1.1rem, 1.6vw, 1.3rem); color: var(--muted); max-width: 62ch; }
.center .lead { margin-inline: auto; }
.grad-text { background: linear-gradient(90deg, var(--gold), var(--orange) 45%, var(--pink)); -webkit-background-clip: text; background-clip: text; color: transparent; font-style: italic; padding-right: 0.06em; }
.rainbow-rule { height: 5px; border: 0; border-radius: 5px; background: var(--rainbow); margin: 0; }
.sample-tag { display: inline-block; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); border: 1px dashed currentColor; border-radius: 999px; padding: 2px 10px; }

/* ---------- Icons ---------- */
.icon { width: 1.25em; height: 1.25em; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.icon--fill { fill: currentColor; stroke: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.55rem;
  padding: 0.85rem 1.5rem; border-radius: 999px; border: 2px solid transparent;
  font-weight: 700; font-size: 1rem; line-height: 1.2; text-decoration: none; white-space: nowrap;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease, color 0.18s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn--sun { background: var(--sun); color: var(--ink); box-shadow: 0 10px 26px -10px rgba(255, 138, 31, 0.85); }
.btn--sun:hover { box-shadow: 0 16px 34px -10px rgba(255, 138, 31, 0.95); }
.btn--ink { background: var(--indigo); color: var(--cream); }
.btn--ink:hover { background: var(--indigo-2); }
.btn--ghost { border-color: currentColor; background: transparent; }
.btn--ghost:hover { background: rgba(127, 110, 200, 0.14); }
.btn--light { background: var(--cream); color: var(--ink); }
.btn--lg { padding: 1.05rem 1.9rem; font-size: 1.08rem; }
.btn--sm { padding: 0.55rem 1.05rem; font-size: 0.92rem; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: 0.55; cursor: not-allowed; transform: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }
.center .btn-row { justify-content: center; }
.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--violet); text-decoration: none; }
.section--dark .link-arrow { color: var(--gold); }
.link-arrow .icon { transition: transform 0.2s ease; }
.link-arrow:hover .icon { transform: translateX(4px); }
.icon-btn { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 2px solid var(--line); background: var(--paper); color: var(--ink); transition: border-color 0.2s, background-color 0.2s; }
.icon-btn:hover { border-color: var(--violet); }

/* ---------- Preview bar + header ---------- */
.preview-bar { background: var(--night); color: #e9e2ff; font-size: 0.82rem; text-align: center; padding: 7px 16px; }
.preview-bar strong { color: var(--gold); }
.site-header { position: sticky; top: 0; z-index: 100; min-height: 76px; background: rgba(251, 246, 236, 0.92); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.site-header::after { content: ""; position: absolute; left: 0; right: 0; bottom: -3px; height: 3px; background: var(--rainbow); opacity: 0; transition: opacity 0.3s; }
.site-header.is-scrolled::after { opacity: 1; }
.site-header__inner { display: flex; align-items: center; gap: 20px; min-height: 76px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; margin-right: auto; }
.brand__mark { width: 46px; height: 46px; flex: none; }
.brand__name { font-family: var(--display); font-weight: 800; font-size: 1.22rem; line-height: 1; letter-spacing: -0.01em; }
.brand__name small { display: block; font-family: var(--body); font-size: 0.62rem; font-weight: 700; letter-spacing: 0.22em; text-transform: uppercase; color: var(--coral-ink); margin-bottom: 3px; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a { position: relative; padding: 10px 13px; border-radius: 999px; font-weight: 600; font-size: 0.97rem; text-decoration: none; transition: background-color 0.2s; }
.nav a:hover { background: var(--sand); }
.nav a[aria-current="page"]::after { content: ""; position: absolute; left: 13px; right: 13px; bottom: 3px; height: 3px; border-radius: 3px; background: var(--rainbow); }
.header-actions { display: flex; align-items: center; gap: 10px; }
.nav-toggle { display: none; }
@media (max-width: 1020px) {
  .nav-toggle { display: inline-grid; }
  .nav { position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 0; padding: 12px 20px 22px; background: var(--paper); border-bottom: 1px solid var(--line); box-shadow: var(--shadow); display: none; }
  .nav.is-open { display: flex; }
  .nav a { padding: 14px 12px; border-radius: 12px; font-size: 1.08rem; }
  .nav a[aria-current="page"]::after { left: 12px; right: auto; width: 34px; bottom: 6px; }
}
@media (max-width: 520px) {
  .brand__name { font-size: 1.02rem; }
  .brand__mark { width: 40px; height: 40px; }
  .header-actions .btn { padding: 0.6rem 0.95rem; font-size: 0.92rem; }
  .site-header__inner { gap: 10px; }
}

/* ---------- Accessibility panel ---------- */
.a11y { position: relative; }
.a11y-panel { position: absolute; right: 0; top: calc(100% + 12px); width: 290px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); padding: 18px; z-index: 120; }
.a11y-panel h2 { font-size: 1.1rem; margin-bottom: 12px; }
.a11y-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 0; border-top: 1px solid var(--line); font-weight: 600; font-size: 0.95rem; }
.a11y-size { display: flex; gap: 6px; }
.a11y-size button { width: 38px; height: 38px; border-radius: 10px; border: 2px solid var(--line); background: var(--cream); font-weight: 800; }
.a11y-size button[aria-pressed="true"] { border-color: var(--violet); background: var(--violet); color: #fff; }
.switch { position: relative; width: 50px; height: 28px; border-radius: 999px; border: 2px solid var(--muted); background: var(--cream); flex: none; padding: 0; transition: background-color 0.2s, border-color 0.2s; }
.switch::after { content: ""; position: absolute; top: 2px; left: 2px; width: 20px; height: 20px; border-radius: 50%; background: var(--muted); transition: transform 0.2s, background-color 0.2s; }
.switch[aria-checked="true"] { background: var(--violet); border-color: var(--violet); }
.switch[aria-checked="true"]::after { transform: translateX(22px); background: #fff; }
@media (max-width: 520px) { .a11y-panel { position: fixed; left: 12px; right: 12px; top: 120px; width: auto; } }

/* ---------- Home hero ---------- */
.hero { position: relative; overflow: hidden; color: var(--cream); --focus: var(--gold); background: linear-gradient(180deg, var(--night) 0%, var(--indigo) 38%, #3a1c8c 70%, #6f2aa6 100%); }
.hero::before { content: ""; position: absolute; inset: 0; opacity: 0.9; background-image: radial-gradient(1.6px 1.6px at 24px 34px, rgba(255, 255, 255, 0.75), transparent 60%), radial-gradient(1.2px 1.2px at 110px 140px, rgba(255, 255, 255, 0.5), transparent 60%), radial-gradient(1.4px 1.4px at 190px 70px, rgba(255, 220, 160, 0.6), transparent 60%), radial-gradient(1px 1px at 70px 200px, rgba(255, 255, 255, 0.45), transparent 60%); background-size: 260px 260px; -webkit-mask-image: linear-gradient(180deg, #000 30%, transparent 75%); mask-image: linear-gradient(180deg, #000 30%, transparent 75%); }
.hero__content { position: relative; z-index: 2; text-align: center; padding: clamp(56px, 9vw, 110px) 0 0; }
.hero__content h1 { max-width: 15ch; margin-inline: auto; text-shadow: 0 4px 30px rgba(18, 8, 50, 0.55); }
.hero__content .lead { color: #e6defb; margin: 0 auto 30px; max-width: 56ch; text-shadow: 0 2px 16px rgba(18, 8, 50, 0.7); }
.hero__scene { position: relative; z-index: 1; display: block; width: 100%; height: auto; margin-top: clamp(-150px, -9vw, -40px); overflow: visible; pointer-events: none; }
@media (min-width: 1500px) { .hero__scene { height: 600px; } }
.hero__badges { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 22px; margin-top: 26px; font-size: 0.9rem; font-weight: 600; color: #e6defb; }
.hero__badges span { display: inline-flex; align-items: center; gap: 7px; }
.hero__badges .icon { color: var(--gold); }
.scene-rays { transform-origin: 720px 300px; animation: spin 140s linear infinite; }
.scene-star { transform-box: fill-box; transform-origin: center; animation: pulse 3.4s ease-in-out infinite; }
.scene-path { stroke-dasharray: 2200; stroke-dashoffset: 2200; animation: draw 2.8s 0.3s ease-out forwards; }
.scene-fig { opacity: 0; animation: fade-up 0.7s ease-out forwards; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulse { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.12); opacity: 0.86; } }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fade-up { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* ---------- Inner page hero ---------- */
.page-hero { position: relative; overflow: hidden; color: var(--cream); --focus: var(--gold); background-color: var(--indigo); padding: clamp(56px, 8vw, 104px) 0 clamp(96px, 11vw, 150px); }
.page-hero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 90% at 78% 110%, rgba(236, 58, 139, 0.5), transparent 60%), radial-gradient(40% 70% at 72% 115%, rgba(255, 138, 31, 0.6), transparent 60%); }
.page-hero .wrap { position: relative; z-index: 2; }
.page-hero h1 { font-size: clamp(2.3rem, 5.2vw, 4rem); max-width: 18ch; }
.page-hero .lead { color: #e2daf8; }
.page-hero__ridge { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: clamp(70px, 9vw, 130px); z-index: 1; }
.crumbs { display: flex; gap: 8px; font-size: 0.88rem; font-weight: 600; margin-bottom: 18px; color: #cfc6ee; }
.crumbs a { color: inherit; }

/* ---------- Layout helpers ---------- */
.grid { display: grid; gap: clamp(18px, 2.4vw, 28px); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 84px); align-items: center; }
.split--flip > :first-child { order: 2; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } .split--flip > :first-child { order: 0; } }
.stack > * + * { margin-top: 1rem; }

.media { position: relative; border-radius: var(--r-lg); }
.media img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--r-lg); aspect-ratio: 4 / 3; box-shadow: var(--shadow); position: relative; }
.media::before { content: ""; position: absolute; inset: 18px -14px -14px 18px; border-radius: var(--r-lg); background: var(--rainbow); opacity: 0.9; }
.media--tall img { aspect-ratio: 4 / 5; }
.collage { position: relative; display: grid; grid-template-columns: 1.15fr 1fr; grid-template-rows: auto auto; gap: 16px; }
.collage img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--r); box-shadow: var(--shadow-sm); }
.collage img:first-child { grid-row: span 2; aspect-ratio: 3 / 4; border-radius: var(--r-lg); }
.collage img:not(:first-child) { aspect-ratio: 4 / 3; }
.collage__badge { position: absolute; left: -14px; bottom: 26px; background: var(--paper); border-radius: var(--r); box-shadow: var(--shadow); padding: 14px 18px; display: flex; align-items: center; gap: 12px; font-weight: 700; max-width: 250px; line-height: 1.3; font-size: 0.95rem; }
.collage__badge .icon { width: 34px; height: 34px; color: var(--coral); }
@media (max-width: 520px) { .collage__badge { left: 8px; } }

/* ---------- Cards ---------- */
.card { position: relative; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); padding: clamp(22px, 2.6vw, 30px); box-shadow: var(--shadow-sm); transition: transform 0.25s ease, box-shadow 0.25s ease; overflow: hidden; }
.card::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 5px; background: var(--rainbow); transform: scaleX(0); transform-origin: left; transition: transform 0.35s ease; }
.card:hover, .card:focus-within { transform: translateY(-5px); box-shadow: var(--shadow); }
.card:hover::before, .card:focus-within::before { transform: scaleX(1); }
.card p { color: var(--muted); }
.card > :last-child { margin-bottom: 0; }
.section--dark .card { background: rgba(255, 255, 255, 0.07); border-color: rgba(255, 255, 255, 0.14); box-shadow: none; }
.pillar__icon { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 16px; margin-bottom: 18px; color: var(--ink); font-size: 1.3rem; }
.tint-cyan { background: #d4f1fc; } .tint-orange { background: #ffe3c6; } .tint-pink { background: #fcd9e8; } .tint-gold { background: #fff0c2; } .tint-green { background: #e0f2d1; } .tint-violet { background: #e4dcfb; }
.pillars-overlap { margin-top: clamp(-90px, -6vw, -40px); position: relative; z-index: 3; }

.feature { display: flex; flex-direction: column; padding: 0; }
.feature__img { aspect-ratio: 16 / 10; object-fit: cover; width: 100%; }
.feature__body { padding: clamp(20px, 2.4vw, 28px); display: flex; flex-direction: column; gap: 10px; flex: 1; }
.feature__body p { margin: 0; }
.feature__body .link-arrow { margin-top: auto; padding-top: 8px; }
.feature a.stretched::after { content: ""; position: absolute; inset: 0; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px; font-size: 0.8rem; font-weight: 700; background: var(--sand); color: var(--ink); border: 1px solid transparent; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
button.chip { cursor: pointer; padding: 9px 16px; font-size: 0.92rem; background: var(--paper); border: 2px solid var(--line); transition: border-color 0.2s, background-color 0.2s; }
button.chip:hover { border-color: var(--violet); }
button.chip[aria-pressed="true"] { background: var(--indigo); border-color: var(--indigo); color: var(--cream); }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 28px; text-align: center; }
.stat__num { font-family: var(--display); font-weight: 800; font-size: clamp(2.6rem, 5vw, 4rem); line-height: 1; background: linear-gradient(90deg, var(--gold), var(--orange)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat__label { margin-top: 8px; font-weight: 600; color: #ddd5f6; }

/* ---------- Carousel ---------- */
.carousel { position: relative; }
.carousel__viewport { overflow: hidden; border-radius: var(--r-lg); }
.carousel__track { display: flex; transition: transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1); }
.carousel__slide { flex: 0 0 100%; display: grid; grid-template-columns: 1fr 1.1fr; background: var(--paper); min-height: 420px; }
.carousel__slide img { width: 100%; height: 100%; object-fit: cover; }
.carousel__text { padding: clamp(26px, 5vw, 60px); display: flex; flex-direction: column; justify-content: center; gap: 16px; }
.carousel__text blockquote { margin: 0; font-family: var(--display); font-size: clamp(1.3rem, 2.3vw, 1.85rem); line-height: 1.3; font-weight: 500; }
.carousel__text cite { font-style: normal; font-weight: 700; }
.carousel__text cite span { display: block; font-weight: 500; color: var(--muted); font-size: 0.95rem; }
.carousel__controls { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 22px; }
.carousel__dots { display: flex; gap: 8px; }
.carousel__dots button { width: 12px; height: 12px; padding: 0; border-radius: 50%; border: 2px solid var(--indigo); background: transparent; }
.carousel__dots button[aria-current="true"] { background: var(--indigo); width: 30px; border-radius: 8px; }
@media (max-width: 760px) { .carousel__slide { grid-template-columns: 1fr; } .carousel__slide img { aspect-ratio: 16 / 10; } }

/* ---------- Quick give band ---------- */
.give-band { position: relative; overflow: hidden; border-radius: var(--r-lg); background: linear-gradient(120deg, var(--indigo) 0%, var(--indigo-2) 55%, #6a2aa3 100%); color: var(--cream); padding: clamp(28px, 5vw, 64px); display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(26px, 4vw, 60px); align-items: center; --focus: var(--gold); }
.give-band::after { content: ""; position: absolute; right: -120px; bottom: -220px; width: 460px; height: 460px; border-radius: 50%; background: radial-gradient(circle, rgba(255, 176, 46, 0.55), rgba(236, 58, 139, 0.25) 50%, transparent 70%); pointer-events: none; }
.give-band > * { position: relative; z-index: 1; }
.give-band p { color: #ddd5f6; }
.give-box { background: var(--paper); color: var(--ink); border-radius: var(--r); padding: clamp(20px, 2.6vw, 30px); box-shadow: var(--shadow); --focus: var(--violet); }
.give-box p { color: var(--muted); }
@media (max-width: 860px) { .give-band { grid-template-columns: 1fr; } }

.seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; background: var(--sand); border-radius: 999px; padding: 5px; gap: 4px; }
.seg button { border: 0; background: transparent; border-radius: 999px; padding: 11px 14px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; gap: 7px; transition: background-color 0.2s, color 0.2s; }
.seg button[aria-pressed="true"] { background: var(--indigo); color: var(--cream); box-shadow: var(--shadow-sm); }
.amounts { display: grid; grid-template-columns: repeat(auto-fit, minmax(96px, 1fr)); gap: 10px; margin: 16px 0; }
.amount { border: 2px solid var(--line); background: var(--paper); border-radius: 14px; padding: 14px 8px; font-family: var(--display); font-weight: 700; font-size: 1.35rem; transition: border-color 0.15s, background-color 0.15s, transform 0.15s; }
.amount:hover { border-color: var(--orange); transform: translateY(-2px); }
.amount[aria-pressed="true"] { border-color: var(--orange); background: #fff1d6; box-shadow: inset 0 0 0 1px var(--orange); }
.impact-line { display: flex; gap: 10px; align-items: flex-start; background: #fff4dd; border-radius: 12px; padding: 12px 14px; font-size: 0.95rem; font-weight: 600; margin-bottom: 16px; }
.impact-line .icon { color: var(--coral-ink); margin-top: 2px; }

/* ---------- Events ---------- */
.event { display: grid; grid-template-columns: auto 1fr; gap: 18px; align-items: start; }
.event__date { width: 74px; text-align: center; border-radius: 14px; overflow: hidden; background: var(--indigo); color: var(--cream); font-weight: 700; flex: none; }
.event__date span { display: block; }
.event__date .m { background: var(--sun); color: var(--ink); font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; padding: 4px 0; }
.event__date .d { font-family: var(--display); font-size: 1.9rem; line-height: 1.5; }
.event__meta { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 0.9rem; color: var(--muted); font-weight: 600; margin: 6px 0 12px; }
.event__meta span { display: inline-flex; align-items: center; gap: 6px; }
.event h3 { margin-bottom: 4px; }

/* ---------- Sponsor ---------- */
.sponsor { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(24px, 4vw, 44px); }
.sponsor__name { font-family: var(--display); font-weight: 800; font-size: clamp(1.7rem, 3.4vw, 2.6rem); line-height: 1.05; }
.sponsor__label { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--coral-ink); }

/* ---------- Tabs ---------- */
.tabs__list { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.tabs__list button { border: 2px solid var(--line); background: var(--paper); border-radius: 999px; padding: 10px 18px; font-weight: 700; display: inline-flex; gap: 8px; align-items: center; }
.tabs__list button[aria-selected="true"] { background: var(--indigo); border-color: var(--indigo); color: var(--cream); }
.tabs__panel { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(22px, 4vw, 44px); }

/* ---------- FAQ ---------- */
.faq { border: 1px solid var(--line); border-radius: var(--r); background: var(--paper); margin-bottom: 12px; overflow: hidden; }
.faq summary { list-style: none; cursor: pointer; padding: 18px 22px; font-weight: 700; font-size: 1.08rem; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--display); font-size: 1.6rem; line-height: 1; color: var(--coral-ink); transition: transform 0.25s; }
.faq[open] summary::after { transform: rotate(45deg); }
.faq > div { padding: 0 22px 20px; color: var(--muted); }

/* ---------- Steps / timeline ---------- */
.steps-list { counter-reset: step; display: grid; gap: 18px; padding: 0; list-style: none; }
.steps-list li { counter-increment: step; display: grid; grid-template-columns: auto 1fr; gap: 18px; align-items: start; }
.steps-list li::before { content: counter(step, decimal-leading-zero); font-family: var(--display); font-weight: 800; font-size: 1.5rem; width: 58px; height: 58px; display: grid; place-items: center; border-radius: 50%; background: var(--sun); color: var(--ink); }
.steps-list h3 { margin-bottom: 4px; }
.steps-list p { color: var(--muted); margin: 0; }
.checklist { list-style: none; padding: 0; display: grid; gap: 10px; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; font-weight: 600; }
.checklist .icon { color: var(--green-ink); background: #e0f2d1; border-radius: 50%; padding: 4px; width: 1.6em; height: 1.6em; stroke-width: 3; }
.section--dark .checklist .icon { color: var(--ink); background: var(--gold); }

/* ---------- Donut ---------- */
.donut-wrap { display: grid; grid-template-columns: minmax(200px, 300px) 1fr; gap: clamp(24px, 5vw, 60px); align-items: center; }
@media (max-width: 700px) { .donut-wrap { grid-template-columns: 1fr; justify-items: center; } }
.donut circle { fill: none; stroke-width: 22; transition: stroke-dashoffset 1.2s ease; }
.legend { list-style: none; padding: 0; display: grid; gap: 14px; }
.legend li { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; font-weight: 600; }
.legend i { width: 16px; height: 16px; border-radius: 5px; }
.legend b { font-family: var(--display); font-size: 1.25rem; }

/* ---------- Forms ---------- */
.form { display: grid; gap: 16px; }
.form-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 16px; }
.field label, .field legend { display: block; font-weight: 700; font-size: 0.93rem; margin-bottom: 6px; }
.field .req { color: var(--coral-ink); }
.field input, .field select, .field textarea { width: 100%; padding: 13px 15px; border: 2px solid var(--line); border-radius: 12px; background: var(--paper); transition: border-color 0.15s; }
.field textarea { min-height: 130px; resize: vertical; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: #cbbfa6; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline-offset: 0; border-color: var(--violet); }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: var(--coral-ink); background: #fff3ee; }
.field__error { color: var(--coral-ink); font-size: 0.86rem; font-weight: 700; margin-top: 5px; }
.hint { font-size: 0.86rem; color: var(--muted); margin-top: 5px; }
.check { display: flex; gap: 12px; align-items: flex-start; font-weight: 600; cursor: pointer; }
.check input { width: 22px; height: 22px; margin-top: 2px; accent-color: var(--violet); flex: none; }
.check small { display: block; font-weight: 500; color: var(--muted); }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.form-success { display: flex; gap: 14px; align-items: flex-start; background: #e7f5da; border: 2px solid var(--green); border-radius: var(--r); padding: 18px 20px; font-weight: 600; }
.form-success .icon { color: var(--green-ink); width: 1.6em; height: 1.6em; }
.inline-form { display: flex; gap: 10px; flex-wrap: wrap; }
.inline-form input { flex: 1 1 220px; padding: 14px 18px; border-radius: 999px; border: 2px solid transparent; background: #fff; color: var(--ink); }

/* ---------- Modal + toast ---------- */
.modal { position: fixed; inset: 0; z-index: 300; display: grid; place-items: center; padding: 20px; background: rgba(18, 8, 50, 0.72); backdrop-filter: blur(4px); animation: fade 0.2s ease; }
.modal__dialog { position: relative; width: min(620px, 100%); max-height: calc(100vh - 40px); overflow: auto; background: var(--paper); border-radius: var(--r-lg); padding: clamp(24px, 4vw, 40px); box-shadow: var(--shadow); animation: pop 0.25s ease; }
.modal__dialog--wide { width: min(800px, 100%); }
.modal__close { position: absolute; right: 14px; top: 14px; }
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: translateY(14px) scale(0.98); } }
.toast { position: fixed; left: 50%; bottom: 26px; transform: translateX(-50%); z-index: 400; background: var(--ink); color: #fff; padding: 14px 22px; border-radius: 999px; font-weight: 600; box-shadow: var(--shadow); display: flex; align-items: center; gap: 10px; max-width: calc(100% - 32px); animation: pop 0.25s ease; }
.toast .icon { color: var(--gold); }

/* ---------- CTA band + footer ---------- */
.cta { text-align: center; }
.cta h2 { max-width: 20ch; margin-inline: auto; }
.site-footer { background: var(--night); color: #d9d1f2; padding: clamp(48px, 7vw, 84px) 0 28px; --focus: var(--gold); position: relative; }
.site-footer::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 5px; background: var(--rainbow); }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 36px; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h3 { font-family: var(--body); font-size: 0.8rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold); margin-bottom: 14px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer .brand__name { color: var(--cream); }
.site-footer .brand__name small { color: var(--gold); }
.footer-social { display: flex; gap: 10px; margin-top: 18px; }
.footer-social a { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.25); }
.footer-social a:hover { background: rgba(255, 255, 255, 0.1); }
.footer-legal { border-top: 1px solid rgba(255, 255, 255, 0.14); margin-top: 40px; padding-top: 22px; display: flex; flex-wrap: wrap; gap: 10px 24px; justify-content: space-between; font-size: 0.86rem; color: #b6acd8; }

/* ---------- Donate ---------- */
.donate { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(280px, 1fr); gap: clamp(24px, 4vw, 48px); align-items: start; margin-top: clamp(-80px, -6vw, -48px); position: relative; z-index: 3; }
@media (max-width: 900px) { .donate { grid-template-columns: 1fr; } }
.donate__panel { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow); padding: clamp(22px, 3.6vw, 42px); }
.progress { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 0 0 28px; padding: 0; list-style: none; }
.progress li { font-size: 0.82rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); padding-top: 12px; border-top: 5px solid var(--line); border-radius: 3px; }
.progress li.is-active { color: var(--ink); border-image: var(--rainbow) 1; }
.progress li.is-done { color: var(--green-ink); border-color: var(--green); }
.donate h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); }
.donate .group { margin-bottom: 26px; }
.donate .group > label, .donate .group > .label { display: block; font-weight: 700; margin-bottom: 10px; }
.custom-amount { position: relative; }
.custom-amount span { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); font-family: var(--display); font-weight: 700; font-size: 1.3rem; }
.custom-amount input { width: 100%; padding: 14px 16px 14px 36px; font-family: var(--display); font-weight: 700; font-size: 1.3rem; border: 2px solid var(--line); border-radius: 14px; background: var(--paper); }
.nudge { display: flex; gap: 12px; align-items: center; background: linear-gradient(90deg, #efe9ff, #fde6f0); border-radius: 14px; padding: 12px 16px; font-size: 0.95rem; font-weight: 600; margin-top: 12px; }
.nudge .icon { color: var(--violet); }
.summary { position: sticky; top: 100px; display: grid; gap: 18px; }
.summary__card { background: var(--indigo); color: var(--cream); border-radius: var(--r-lg); padding: clamp(22px, 3vw, 32px); box-shadow: var(--shadow); --focus: var(--gold); }
.summary__total { font-family: var(--display); font-weight: 800; font-size: clamp(2.4rem, 5vw, 3.3rem); line-height: 1; margin: 6px 0 4px; }
.summary__total small { font-family: var(--body); font-size: 1rem; font-weight: 600; color: #cfc6ee; }
.summary dl { display: grid; grid-template-columns: 1fr auto; gap: 8px 12px; margin: 18px 0 0; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, 0.18); font-size: 0.95rem; }
.summary dt { color: #cfc6ee; }
.summary dd { margin: 0; font-weight: 700; text-align: right; }
.trust { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; font-size: 0.93rem; font-weight: 600; }
.trust li { display: flex; gap: 12px; align-items: flex-start; }
.trust .icon { color: var(--violet); margin-top: 2px; }
.pay-tabs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 18px; }
.pay-tabs button { border: 2px solid var(--line); border-radius: 14px; background: var(--paper); padding: 14px 8px; font-weight: 700; }
.pay-tabs button[aria-pressed="true"] { border-color: var(--violet); background: #efe9ff; }
.demo-card { border: 2px dashed var(--violet-soft); border-radius: var(--r); padding: 18px; background: #f6f2ff; }
.demo-card input { background: #fff; }
.demo-note { display: flex; gap: 10px; align-items: flex-start; font-size: 0.9rem; font-weight: 600; color: var(--indigo-2); margin-bottom: 14px; }
.step-nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 28px; flex-wrap: wrap; }
.thanks { text-align: center; }
.thanks__burst { width: 92px; height: 92px; margin: 0 auto 18px; border-radius: 50%; display: grid; place-items: center; background: var(--sun); color: var(--ink); box-shadow: 0 0 0 12px rgba(255, 196, 46, 0.22), 0 0 0 26px rgba(255, 196, 46, 0.1); }
.thanks__burst .icon { width: 44px; height: 44px; stroke-width: 3; }
.confetti { position: fixed; inset: 0; pointer-events: none; z-index: 350; overflow: hidden; }
.confetti i { position: absolute; top: -20px; width: 10px; height: 16px; border-radius: 3px; animation: fall linear forwards; }
@keyframes fall { to { transform: translateY(110vh) rotate(720deg); opacity: 0.6; } }

/* ---------- Receipt ---------- */
.receipt { position: relative; background: #fff; color: #1b1240; border: 1px solid var(--line); border-radius: var(--r); padding: clamp(22px, 4vw, 40px); text-align: left; overflow: hidden; font-size: 0.97rem; }
.receipt::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 6px; background: var(--rainbow); }
.receipt__watermark { position: absolute; inset: 0; display: grid; place-items: center; font-weight: 800; font-size: clamp(1.4rem, 5vw, 2.6rem); letter-spacing: 0.12em; color: rgba(191, 58, 26, 0.1); transform: rotate(-24deg); pointer-events: none; text-align: center; }
.receipt__head { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; border-bottom: 2px solid var(--line); padding-bottom: 18px; margin-bottom: 18px; }
.receipt__head h3 { font-size: 1.4rem; margin: 0 0 4px; }
.receipt__head p { margin: 0; color: var(--muted); font-size: 0.9rem; }
.receipt table { width: 100%; border-collapse: collapse; margin: 6px 0 18px; }
.receipt th, .receipt td { text-align: left; padding: 9px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.receipt th { width: 42%; font-weight: 600; color: var(--muted); }
.receipt td { font-weight: 700; }
.receipt__amount { font-family: var(--display); font-size: 1.6rem; }
.receipt__legal { font-size: 0.86rem; color: var(--muted); background: var(--cream); border-radius: 12px; padding: 14px 16px; }
.receipt__legal p:last-child { margin: 0; }

/* ---------- Giving history ---------- */
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 18px; }
.tile { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); padding: 22px; }
.tile b { display: block; font-family: var(--display); font-size: 2.1rem; line-height: 1.1; }
.tile span { color: var(--muted); font-weight: 600; font-size: 0.93rem; }
.table-wrap { overflow-x: auto; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); }
.table { width: 100%; border-collapse: collapse; min-width: 640px; }
.table th, .table td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--line); }
.table th { font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); background: var(--sand); }
.table tr:last-child td { border-bottom: 0; }
.table td.num { font-family: var(--display); font-weight: 700; font-size: 1.1rem; }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 3px 11px; border-radius: 999px; font-size: 0.8rem; font-weight: 700; }
.pill--once { background: #e4dcfb; } .pill--rec { background: #e0f2d1; } .pill--paused { background: #ffe3c6; } .pill--off { background: #eee; color: #555; }
.plan { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.empty { text-align: center; padding: clamp(36px, 6vw, 70px) 20px; background: var(--paper); border: 2px dashed var(--line); border-radius: var(--r-lg); }

/* ---------- Resource directory ---------- */
.finder { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow); padding: clamp(18px, 3vw, 30px); margin-top: clamp(-80px, -6vw, -48px); position: relative; z-index: 3; }
.finder__top { display: grid; grid-template-columns: 1fr auto; gap: 12px; margin-bottom: 16px; }
@media (max-width: 640px) { .finder__top { grid-template-columns: 1fr; } }
.search { position: relative; }
.search .icon { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.search input { width: 100%; padding: 15px 16px 15px 48px; border: 2px solid var(--line); border-radius: 999px; background: var(--cream); font-size: 1.05rem; }
.finder select { padding: 13px 16px; border: 2px solid var(--line); border-radius: 999px; background: var(--cream); font-weight: 600; }
.results-bar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; margin: 34px 0 18px; font-weight: 700; }
.resource { display: flex; flex-direction: column; gap: 10px; }
.resource__top { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.resource h3 { margin: 0; font-size: 1.22rem; }
.resource p { margin: 0; font-size: 0.97rem; }
.resource__where { display: flex; align-items: center; gap: 6px; font-size: 0.9rem; font-weight: 700; color: var(--muted); }
.fav { border: 0; background: transparent; padding: 6px; border-radius: 50%; color: var(--muted); }
.fav[aria-pressed="true"] { color: var(--pink); }
.fav[aria-pressed="true"] .icon { fill: currentColor; }

/* ---------- Magazine ---------- */
.cover-stage { perspective: 1400px; display: grid; place-items: center; padding: 10px 0; }
.cover { width: min(380px, 86%); aspect-ratio: 8.5 / 11; border-radius: 10px; overflow: hidden; background: var(--night); color: var(--cream); display: flex; flex-direction: column; box-shadow: -18px 26px 60px -18px rgba(0, 0, 0, 0.7), inset 6px 0 10px -6px rgba(255, 255, 255, 0.3); transform: rotateY(-16deg) rotateX(5deg); transition: transform 0.5s ease; }
.cover:hover { transform: rotateY(-4deg) rotateX(1deg); }
.cover__mast { width: 100%; aspect-ratio: 1816 / 720; object-fit: cover; }
.cover__photo { flex: 1; min-height: 0; object-fit: cover; width: 100%; }
.cover__lines { padding: 14px 16px 16px; font-size: 0.82rem; font-weight: 600; background: var(--night); }
.cover__lines b { display: block; font-family: var(--display); font-size: 1.15rem; color: var(--gold); line-height: 1.2; margin-bottom: 4px; }
.masthead { border-radius: var(--r-lg); box-shadow: var(--shadow); width: 100%; }

/* ---------- Scroll reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1); transition-delay: var(--d, 0s); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* ---------- User preferences ---------- */
html[data-motion="reduce"] *, html[data-motion="reduce"] *::before, html[data-motion="reduce"] *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
html[data-motion="reduce"] .reveal { opacity: 1; transform: none; }
html[data-motion="reduce"] .scene-path { stroke-dashoffset: 0; }
html[data-motion="reduce"] .scene-fig { opacity: 1; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; }
  .scene-path { stroke-dashoffset: 0; }
  .scene-fig { opacity: 1; }
}
html[data-font="readable"] { --display: "DM Sans", system-ui, sans-serif; letter-spacing: 0.02em; word-spacing: 0.06em; }
html[data-font="readable"] body { line-height: 1.8; }
html[data-font="readable"] .grad-text { font-style: normal; }
html[data-contrast="high"] { --cream: #ffffff; --paper: #ffffff; --sand: #ffffff; --ink: #000000; --muted: #1a1a1a; --line: #000000; --coral-ink: #8a1f00; --indigo: #0b0430; --indigo-2: #0b0430; --night: #000000; --violet: #3a14b8; --green-ink: #14520a; }
html[data-contrast="high"] a:not(.btn):not(.brand) { text-decoration: underline; }
html[data-contrast="high"] .btn { border-color: currentColor; }
html[data-contrast="high"] .card, html[data-contrast="high"] .field input, html[data-contrast="high"] .field select, html[data-contrast="high"] .field textarea { border-width: 2px; }
html[data-contrast="high"] .section--dark, html[data-contrast="high"] .site-footer { --muted: #ffffff; --line: #ffffff; }
html[data-contrast="high"] .hero__content .lead, html[data-contrast="high"] .page-hero .lead, html[data-contrast="high"] .stat__label, html[data-contrast="high"] .give-band p { color: #fff; }
html[data-contrast="high"] .grad-text, html[data-contrast="high"] .stat__num { background: none; color: var(--gold); }

/* ---------- Print: receipts only ---------- */
#print-area { display: none; }
@media print {
  body > *:not(#print-area) { display: none !important; }
  #print-area { display: block; }
  body { background: #fff; }
  .receipt { border: 0; padding: 0; }
  .receipt + .receipt { margin-top: 28px; page-break-inside: avoid; }
  @page { margin: 18mm; }
}

/* ---------- Dark-section form tweaks ---------- */
.section--dark { --coral-ink: #ffb59c; }
.form-success { color: #1b1240; }
.form-success .hint { color: #3d3560; }
.give-box { --coral-ink: #bf3a1a; --muted: #564e75; --line: #e5dccb; }
.carousel__text .chip, .feature__body .chip, .resource > .link-arrow { align-self: flex-start; }
@media (min-width: 761px) { .carousel__slide img { aspect-ratio: 5 / 4; } }

/* ---------- Small-screen header and controls ---------- */
.icon-btn { flex: none; }
.seg button { white-space: nowrap; }
@media (max-width: 520px) {
  .wrap { width: min(var(--wrap), 100% - 28px); }
  .site-header__inner, .header-actions, .brand { gap: 8px; }
  .site-header .icon-btn { width: 40px; height: 40px; }
  .header-actions .btn { padding: 0.55rem 0.85rem; }
  .header-actions .btn .icon { display: none; }
  .seg button { padding: 11px 6px; font-size: 0.93rem; }
  .seg button .icon { display: none; }
}

/* ---------- Demo view switcher ---------- */
.preview-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px 18px; }
.viewas { display: inline-flex; align-items: center; gap: 3px; background: rgba(255, 255, 255, 0.12); border-radius: 999px; padding: 3px; }
.viewas__label { padding: 0 8px 0 10px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; font-size: 0.7rem; color: #cfc6ee; }
.viewas button { border: 0; background: transparent; color: #fff; font-weight: 700; font-size: 0.8rem; padding: 4px 13px; border-radius: 999px; }
.viewas button:hover { background: rgba(255, 255, 255, 0.16); }
.viewas button[aria-pressed="true"] { background: var(--gold); color: var(--ink); }
.viewas button:focus-visible { outline-color: var(--gold); }

/* ---------- Account menu ---------- */
.acct { position: relative; }
.acct__btn { border: 0; background: none; padding: 0; border-radius: 50%; display: block; }
.avatar { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--indigo); color: var(--cream); font-weight: 800; font-size: 0.95rem; letter-spacing: 0.03em; box-shadow: 0 0 0 2px var(--paper), 0 0 0 4px var(--gold); }
.avatar--lg { width: 72px; height: 72px; font-size: 1.5rem; }
.acct__menu { position: absolute; right: 0; top: calc(100% + 12px); width: 240px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); padding: 8px; z-index: 120; display: grid; }
.acct__who { padding: 10px 12px 12px; border-bottom: 1px solid var(--line); margin-bottom: 6px; line-height: 1.3; }
.acct__who span { display: block; font-size: 0.85rem; color: var(--muted); }
.acct__menu a, .acct__menu button { text-align: left; border: 0; background: none; padding: 10px 12px; border-radius: 10px; font-weight: 600; text-decoration: none; }
.acct__menu a:hover, .acct__menu button:hover { background: var(--sand); }
.nav__extra { display: none; }
.nav a { white-space: nowrap; }
@media (min-width: 521px) { .brand__name { white-space: nowrap; } }
.nav a { padding-inline: 11px; font-size: 0.95rem; }
@media (max-width: 1240px) {
  .acct, .acct-login { display: none; }
  .nav-toggle { display: inline-grid; }
  .nav { position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 0; padding: 12px 20px 22px; background: var(--paper); border-bottom: 1px solid var(--line); box-shadow: var(--shadow); display: none; }
  .nav.is-open { display: flex; }
  .nav a, .nav button.nav__extra { padding: 14px 12px; border-radius: 12px; font-size: 1.08rem; font-weight: 600; text-align: left; border: 0; background: none; text-decoration: none; }
  .nav a[aria-current="page"]::after { left: 12px; right: auto; width: 34px; bottom: 6px; }
  .nav__extra { display: block; }
  .nav__extra:first-of-type { border-top: 1px solid var(--line); border-radius: 0; margin-top: 8px; padding-top: 20px; }
}

/* ---------- Footer newsletter ---------- */
.site-footer { --coral-ink: #ffb59c; }
.footer-news { display: grid; grid-template-columns: 1fr 1.1fr; gap: 20px 40px; align-items: center; padding-bottom: clamp(30px, 4vw, 44px); margin-bottom: clamp(30px, 4vw, 44px); border-bottom: 1px solid rgba(255, 255, 255, 0.14); }
.footer-news h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); color: var(--cream); margin-bottom: 6px; }
.footer-news p { margin: 0; }
.footer-news .field { flex: 1 1 240px; }
.footer-news .field input { border-radius: 999px; border-color: transparent; color: #1b1240; background: #fff; }
@media (max-width: 760px) { .footer-news { grid-template-columns: 1fr; } }

/* ---------- News posts and gallery ---------- */
button.link-arrow { border: 0; background: none; padding: 0; }
.post__foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 16px; margin-top: auto; padding-top: 10px; }
.post__foot .hint { margin: 0; }
.feature__body .post__foot .link-arrow { margin: 0; padding: 0; }
.feature__body .chips .chip { align-self: auto; }
.is-blurred { filter: blur(9px) saturate(0.7); transform: scale(1.08); }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); gap: 16px; }
.gallery__item { position: relative; margin: 0; padding: 0; border: 0; background: var(--night); border-radius: var(--r); overflow: hidden; aspect-ratio: 4 / 3; display: block; width: 100%; color: #fff; text-align: left; }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
button.gallery__item:hover img, button.gallery__item:focus-visible img { transform: scale(1.06); }
.gallery__item span { position: absolute; left: 0; right: 0; bottom: 0; padding: 34px 14px 12px; font-size: 0.9rem; font-weight: 600; line-height: 1.3; background: linear-gradient(transparent, rgba(18, 8, 50, 0.88)); }
.gallery__item .icon-btn { position: absolute; top: 10px; right: 10px; }

/* ---------- Member account ---------- */
.member-head { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; }
.tabs__list .count { background: var(--gold); color: var(--ink); border-radius: 999px; padding: 0 8px; font-size: 0.8rem; }
.meter { height: 12px; border-radius: 999px; background: var(--sand); margin-top: 18px; overflow: hidden; }
.meter span { display: block; height: 100%; border-radius: 999px; background: var(--rainbow); }
.reward { display: grid; grid-template-columns: auto 1fr; gap: 18px; align-items: start; }
.reward .pillar__icon { margin: 0; }
.reward.is-locked { background: transparent; box-shadow: none; border-style: dashed; }
.reward.is-locked .pillar__icon { background: var(--sand); color: var(--muted); }
.pref { display: flex; justify-content: space-between; align-items: center; gap: 18px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.pref:first-child { padding-top: 0; }
.pref span { display: block; color: var(--muted); font-size: 0.93rem; }
.pref .pill { display: inline-flex; color: var(--ink); white-space: nowrap; }
.tile small { display: block; color: var(--muted); font-size: 0.85rem; font-weight: 600; margin-top: 4px; }
@media (max-width: 900px) { .donate[style] { grid-template-columns: 1fr !important; } }

/* ---------- Admin ---------- */
.admin__bar { background-color: var(--indigo); color: var(--cream); padding: 28px 0 26px; }
.admin__bar h1 { font-size: clamp(1.8rem, 3vw, 2.4rem); margin: 0; }
.admin__bar .eyebrow { color: var(--gold); margin-bottom: 6px; }
.admin__shell { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: clamp(20px, 3vw, 40px); padding: clamp(24px, 4vw, 44px) 0 clamp(56px, 8vw, 96px); align-items: start; }
.admin__nav { position: sticky; top: 96px; display: grid; gap: 4px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); padding: 10px; }
.admin__nav button, .admin__nav a { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border: 0; background: none; border-radius: 12px; font-weight: 700; text-align: left; text-decoration: none; }
.admin__nav button:hover, .admin__nav a:hover { background: var(--sand); }
.admin__nav button[aria-current="page"] { background: var(--indigo); color: var(--cream); }
.admin__nav a { border-top: 1px solid var(--line); border-radius: 0 0 12px 12px; margin-top: 6px; color: var(--muted); font-weight: 600; font-size: 0.93rem; }
.admin__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 12px 20px; margin-bottom: 22px; }
.admin__head h2 { font-size: clamp(1.6rem, 2.6vw, 2.1rem); margin: 0 0 2px; }
.admin__head p { margin: 0; color: var(--muted); }
.admin .tile b { font-size: 2.3rem; margin-top: 2px; }
.admin .card:hover, .admin .card:focus-within { transform: none; box-shadow: var(--shadow-sm); }
.admin .card::before { display: none; }
.admin__cols { display: grid; grid-template-columns: 1.3fr 1fr; gap: 26px; margin-top: 30px; }
.admin__cols h3 { margin-bottom: 12px; }
.admin .table small { font-family: var(--body); font-weight: 600; color: var(--muted); font-size: 0.8rem; }
@media (max-width: 1000px) { .admin__cols { grid-template-columns: 1fr; } }
@media (max-width: 860px) {
  .admin__shell { grid-template-columns: minmax(0, 1fr); }
  .admin__nav { position: static; display: flex; overflow-x: auto; }
  .admin__nav button, .admin__nav a { white-space: nowrap; border: 0; margin: 0; border-radius: 12px; }
}
.chart-card { margin-top: 24px; }
.chart { position: relative; }
.chart svg { display: block; width: 100%; height: auto; }
.chart__grid { stroke: var(--line); stroke-width: 1; }
.chart__tick { font-size: 12px; fill: var(--muted); font-weight: 600; }
.chart__value { font-size: 13px; fill: var(--ink); font-weight: 800; }
.chart__hit { fill: transparent; cursor: default; }
.chart__hit:hover, .chart__hit:focus-visible { fill: rgba(91, 51, 214, 0.07); outline: none; }
.chart-legend { list-style: none; display: flex; gap: 18px; margin: 0; padding: 0; font-weight: 700; font-size: 0.9rem; }
.chart-legend li, .chart-tip span { display: flex; align-items: center; gap: 8px; }
.chart-legend i, .chart-tip i { width: 12px; height: 12px; border-radius: 3px; flex: none; }
.chart-tip { position: absolute; top: 6px; transform: translateX(-50%); background: var(--ink); color: #fff; border-radius: 12px; padding: 10px 14px; font-size: 0.85rem; min-width: 170px; display: grid; gap: 4px; pointer-events: none; box-shadow: var(--shadow-sm); z-index: 2; }
.chart-tip b { margin-left: auto; padding-left: 14px; }
.chart-tip__total { border-top: 1px solid rgba(255, 255, 255, 0.25); padding-top: 5px; margin-top: 2px; }
.chart-table { margin-top: 14px; }
.chart-table summary { cursor: pointer; font-weight: 700; color: var(--violet); margin-bottom: 12px; }
.upload { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; border: 2px dashed var(--line); border-radius: 12px; padding: 12px; background: var(--paper); }
.upload img { width: 110px; height: 80px; object-fit: cover; border-radius: 10px; }
.upload input[type="file"] { border: 0; padding: 0; background: none; width: auto; flex: 1 1 200px; }
.post-row { display: flex; align-items: center; gap: 12px; min-width: 240px; }
.post-row img, .post-row__blank { width: 56px; height: 42px; border-radius: 8px; object-fit: cover; background: var(--sand); flex: none; }

/* ---------- Admin on small screens ---------- */
@media (max-width: 1000px) { .admin__cols { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 640px) {
  .admin .finder__top { grid-template-columns: minmax(0, 1fr) !important; }
  .admin .form-row > .field { grid-column: auto !important; }
  .admin__head .sample-tag { white-space: normal; border-radius: 12px; }
}
.table-wrap { position: relative; }
