/* =========================================================
   Yellow Ghana — main.css
   Design tokens, global resets, and component styles.
   ========================================================= */

:root {
  --yellow: #F5C518;
  --yellow-deep: #D4A30C;
  --yellow-soft: #FFF4C2;
  --ink: #0A0A0A;
  --ink-soft: #1A1A1A;
  --paper: #FAF7F0;
  --paper-alt: #F2EDE0;
  --red: #CE1126;
  --green: #006B3F;
  --mute: #6B6358;
  --mute-soft: #A39A8A;
  --line: #E8E1D0;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; padding: 0; }
body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--paper);
  color: var(--ink);
  min-height: 100vh;
  padding-bottom: calc(88px + env(safe-area-inset-bottom));
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.serif { font-family: 'Fraunces', Georgia, serif; font-variation-settings: "opsz" 96; }
.mono  { font-family: 'JetBrains Mono', monospace; }

button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, select, textarea {
  font-family: inherit; font-size: 16px;
  width: 100%; padding: 14px;
  border: 1.5px solid var(--line); border-radius: 10px;
  background: var(--paper); color: var(--ink);
}
input:focus, select:focus, textarea:focus { outline: 2px solid var(--yellow); outline-offset: 1px; }

.btn-tap { transition: transform 120ms ease, opacity 120ms ease; }
.btn-tap:active { transform: scale(0.97); opacity: 0.9; }

.hide-scroll::-webkit-scrollbar { display: none; }
.hide-scroll { scrollbar-width: none; -ms-overflow-style: none; }

/* ---------- Animations ---------- */
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }
.fade-in { animation: fadeIn 400ms ease both; }
.slide-up { animation: slideUp 500ms cubic-bezier(0.16, 1, 0.3, 1) both; }
.stagger > * { animation: slideUp 500ms cubic-bezier(0.16, 1, 0.3, 1) both; }
.stagger > *:nth-child(1) { animation-delay: 0ms; }
.stagger > *:nth-child(2) { animation-delay: 80ms; }
.stagger > *:nth-child(3) { animation-delay: 160ms; }
.stagger > *:nth-child(4) { animation-delay: 240ms; }
.stagger > *:nth-child(5) { animation-delay: 320ms; }
.stagger > *:nth-child(6) { animation-delay: 400ms; }
.stagger > *:nth-child(7) { animation-delay: 480ms; }
.stagger > *:nth-child(8) { animation-delay: 560ms; }

/* ---------- Status bar (Ghana flag stripe) ---------- */
.status-bar {
  height: 6px;
  background: linear-gradient(90deg, var(--ink) 0% 33%, var(--red) 33% 66%, var(--green) 66% 100%);
}

/* ---------- Top bar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 40;
  background: rgba(250, 247, 240, 0.92);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  padding: 14px 18px;
  display: flex; align-items: center; justify-content: space-between;
}
.topbar-logo {
  display: flex; align-items: center; gap: 8px;
  font-family: 'Fraunces', serif; font-size: 18px; font-weight: 700; letter-spacing: -0.01em;
  text-decoration: none; color: var(--ink);
}
.topbar-logo span { color: var(--yellow-deep); }
.topbar-btn {
  background: var(--ink); padding: 8px 10px; border-radius: 8px;
  color: var(--yellow); font-size: 12px; font-weight: 600;
  display: flex; align-items: center; gap: 6px;
  text-decoration: none;
}
.icon-btn { padding: 8px; margin: -8px; display: flex; }

/* ---------- Anchor mark ---------- */
.anchor-mark {
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--yellow);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 0 var(--yellow-deep);
  flex-shrink: 0;
}
.anchor-mark svg { width: 20px; height: 20px; color: var(--ink); }
.anchor-mark.sm { width: 26px; height: 26px; }
.anchor-mark.sm svg { width: 16px; height: 16px; }
.anchor-mark.lg { width: 42px; height: 42px; }
.anchor-mark.lg svg { width: 26px; height: 26px; }

/* ---------- Notif banner ---------- */
.notif {
  background: var(--ink); color: var(--yellow);
  padding: 10px 16px; display: flex; align-items: center; gap: 10px;
  font-size: 13px; font-weight: 500;
}
.notif-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--yellow); animation: pulse 2s infinite; flex-shrink: 0; }
.notif-btn { background: var(--yellow); color: var(--ink); padding: 4px 10px; border-radius: 4px; font-size: 12px; font-weight: 700; }
.notif-close { color: var(--yellow); padding: 4px; display: flex; }
#page-home .notif { display: none; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background: var(--ink); color: var(--paper);
  padding: 40px 22px 48px;
}
.hero-halo-y { position: absolute; right: -80px; top: -80px; width: 260px; height: 260px;
  background: radial-gradient(circle, rgba(245,197,24,0.2) 0%, transparent 70%); pointer-events: none; }
.hero-halo-r { position: absolute; left: -40px; bottom: -40px; width: 180px; height: 180px;
  background: radial-gradient(circle, rgba(206,17,38,0.13) 0%, transparent 70%); pointer-events: none; }
.hero-grain {
  position: absolute; inset: 0; opacity: 0.04; pointer-events: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence baseFrequency='0.9' /></filter><rect width='200' height='200' filter='url(%23n)' /></svg>");
}
.hero-inner { position: relative; z-index: 1; }
.eyebrow-pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px; border-radius: 100px;
  background: rgba(245,197,24,0.13); color: var(--yellow);
  font-size: 11px; font-weight: 600; letter-spacing: 0.1em;
  margin-bottom: 24px; border: 1px solid rgba(245,197,24,0.27);
}
.hero h1 {
  font-family: 'Fraunces', serif;
  font-size: clamp(44px, 11vw, 64px); line-height: 0.95;
  margin: 0 0 20px; font-weight: 600; letter-spacing: -0.03em;
}
.hero h1 em { font-style: italic; color: var(--yellow); font-weight: 500; }
.hero p { font-size: 16px; line-height: 1.5; max-width: 420px; color: #D8D2C4; margin: 0 0 28px; }

/* ---------- Buttons ---------- */
.btn-primary {
  background: var(--yellow); color: var(--ink);
  padding: 14px 22px; border-radius: 10px; font-size: 15px; font-weight: 700;
  display: inline-flex; align-items: center; gap: 8px;
  box-shadow: 0 2px 0 var(--yellow-deep);
  text-decoration: none;
}
.btn-primary:disabled { background: var(--line); color: var(--mute-soft); box-shadow: none; cursor: not-allowed; }
.btn-outline {
  background: transparent; color: var(--paper);
  border: 1.5px solid rgba(250,247,240,0.27);
  padding: 14px 22px; border-radius: 10px; font-size: 15px; font-weight: 600;
  display: inline-flex; align-items: center; gap: 8px;
  text-decoration: none;
}
.btn-secondary {
  background: transparent; color: var(--ink);
  border: 1.5px solid var(--line); padding: 14px 20px; border-radius: 10px;
  font-size: 15px; font-weight: 600;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  flex: 1; text-decoration: none;
}
.hero-cta { display: flex; gap: 10px; flex-wrap: wrap; }

/* ---------- Marquee ---------- */
.marquee-strip { overflow: hidden; background: var(--yellow); border-bottom: 2px solid var(--ink); }
.marquee-track {
  display: flex; gap: 40px; padding: 10px 0;
  animation: marquee 28s linear infinite; width: max-content;
  font-size: 13px; font-weight: 700; letter-spacing: 0.2em;
  color: var(--ink); font-family: 'Fraunces', serif;
}

/* ---------- Sections ---------- */
section { padding: 40px 22px; }
.section-alt { background: var(--paper-alt); padding: 32px 22px; }
.section-ink { background: var(--paper); padding: 8px 22px 32px; }
.eyebrow { font-size: 10px; letter-spacing: 0.18em; color: var(--yellow-deep); font-weight: 700; margin-bottom: 6px; }
.section-title {
  font-family: 'Fraunces', serif;
  font-size: 26px; font-weight: 600; margin: 0 0 20px;
  letter-spacing: -0.02em; line-height: 1;
}
.section-header-row { display: flex; justify-content: space-between; align-items: end; margin-bottom: 16px; }
.section-header-row .section-title { margin: 0; }
.view-all {
  color: var(--mute); font-size: 13px; font-weight: 600;
  display: inline-flex; align-items: center; gap: 4px; text-decoration: none;
}

/* ---------- Stats ---------- */
.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.stat { padding: 16px 12px; background: var(--paper); border-radius: 12px; border: 1px solid var(--line); }
.stat-n { font-family: 'Fraunces', serif; font-size: 26px; font-weight: 700; line-height: 1; color: var(--ink); }
.stat-l { font-size: 10px; color: var(--mute); margin-top: 6px; font-weight: 500; letter-spacing: 0.04em; }

/* ---------- Pillars ---------- */
.pillars { display: flex; flex-direction: column; gap: 12px; }
.pillar {
  background: var(--paper); border: 1px solid var(--line);
  border-radius: 16px; padding: 20px; display: flex; gap: 16px;
  position: relative; overflow: hidden;
}
.pillar-ic { width: 48px; height: 48px; border-radius: 12px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.pillar-ic svg { width: 22px; height: 22px; color: var(--ink); }
.pillar-title { font-family: 'Fraunces', serif; font-size: 22px; font-weight: 600; margin-bottom: 4px; }
.pillar-desc { font-size: 14px; color: var(--mute); line-height: 1.5; }
.pillar-n {
  position: absolute; right: 12px; top: 6px;
  font-family: 'Fraunces', serif; font-size: 56px; font-weight: 800;
  color: var(--line); line-height: 1; pointer-events: none;
}

/* ---------- Quick actions ---------- */
.actions-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.action-btn {
  padding: 20px 16px; border-radius: 14px; text-align: left;
  min-height: 116px; display: flex; flex-direction: column; justify-content: space-between;
  text-decoration: none;
}
.action-btn svg { width: 22px; height: 22px; }
.action-t { font-weight: 700; font-size: 15px; margin-bottom: 2px; }
.action-s { font-size: 12px; opacity: 0.8; }

/* ---------- News list ---------- */
.news-item { padding: 18px 0; border-bottom: 1px solid var(--line); display: flex; gap: 14px; }
.news-item:last-child { border-bottom: none; }
.news-date { width: 54px; text-align: center; flex-shrink: 0; border-right: 1px solid var(--line); padding-right: 12px; }
.news-date .d { font-family: 'JetBrains Mono', monospace; font-size: 10px; color: var(--mute); font-weight: 600; }
.news-live { margin-top: 6px; font-size: 9px; color: var(--red); font-weight: 700; letter-spacing: 0.1em; }
.news-tag { font-size: 10px; color: var(--yellow-deep); font-weight: 700; letter-spacing: 0.12em; margin-bottom: 4px; }
.news-title { font-family: 'Fraunces', serif; font-size: 17px; font-weight: 600; line-height: 1.25; margin: 0 0 6px; }
.news-excerpt { font-size: 13px; color: var(--mute); line-height: 1.45; margin: 0; }

/* ---------- Quote block ---------- */
.quote-block { padding: 40px 22px; background: var(--yellow-soft); position: relative; overflow: hidden; }
.quote-mark {
  position: absolute; top: -20px; left: 12px;
  font-size: 160px; font-family: 'Fraunces', serif; font-weight: 700;
  color: var(--yellow); line-height: 1; pointer-events: none; opacity: 0.5;
}
.quote-text {
  font-family: 'Fraunces', serif;
  font-size: 24px; line-height: 1.3; font-weight: 500; font-style: italic;
  color: var(--ink); margin: 0 0 20px; position: relative;
}
.quote-attr { display: flex; align-items: center; gap: 12px; position: relative; }
.avatar {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--ink); color: var(--yellow);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 14px; font-family: 'Fraunces', serif; flex-shrink: 0;
}
.avatar.muted { background: var(--line); color: var(--mute); }

/* ---------- Events carousel (home) ---------- */
.events-strip { padding: 32px 0 32px 22px; }
.events-scroll { display: flex; gap: 12px; overflow-x: auto; padding-right: 22px; padding-bottom: 4px; }
.event-card { min-width: 260px; flex-shrink: 0; background: var(--paper); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.event-head { background: var(--ink); color: var(--yellow); padding: 16px; display: flex; align-items: center; justify-content: space-between; }
.event-d { font-family: 'Fraunces', serif; font-size: 30px; font-weight: 700; line-height: 1; }
.event-m { font-family: 'JetBrains Mono', monospace; font-size: 10px; letter-spacing: 0.15em; margin-top: 2px; }
.event-tag { font-size: 9px; background: var(--yellow); color: var(--ink); padding: 3px 8px; border-radius: 4px; font-weight: 700; letter-spacing: 0.08em; }
.event-body { padding: 14px 16px; }
.event-title { font-size: 14px; font-weight: 600; line-height: 1.3; margin-bottom: 8px; }
.event-meta { font-size: 12px; color: var(--mute); display: flex; align-items: center; gap: 4px; margin-bottom: 3px; }
.event-meta svg { width: 11px; height: 11px; }

/* ---------- CTA card ---------- */
.cta-card {
  margin: 0 22px 32px; padding: 32px 24px;
  background: linear-gradient(135deg, var(--ink) 0%, var(--ink-soft) 100%);
  border-radius: 20px; color: var(--paper); position: relative; overflow: hidden;
}
.cta-halo {
  position: absolute; top: -20px; right: -20px;
  width: 140px; height: 140px; border-radius: 50%;
  background: radial-gradient(circle, rgba(245,197,24,0.27), transparent 70%);
}
.cta-card h3 { font-family: 'Fraunces', serif; font-size: 28px; font-weight: 600; line-height: 1.1; margin: 16px 0 12px; position: relative; }
.cta-card p { font-size: 14px; color: #D8D2C4; margin: 0 0 20px; line-height: 1.5; position: relative; }
.cta-card .btn-primary { position: relative; }

/* ---------- Back button ---------- */
.back-btn { color: var(--mute); display: inline-flex; align-items: center; gap: 4px; font-size: 13px; padding: 0; margin-bottom: 16px; text-decoration: none; }

/* ---------- Forms ---------- */
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.field label { font-size: 12px; font-weight: 600; color: var(--ink); letter-spacing: 0.02em; }
.field .hint { font-size: 11px; color: var(--mute); }
.checkbox-row {
  display: flex; gap: 10px; padding: 12px;
  background: var(--paper); border: 1px solid var(--line); border-radius: 10px;
}
.checkbox-row input { width: auto; margin-top: 2px; accent-color: var(--yellow-deep); padding: 0; }
.checkbox-row span { font-size: 13px; line-height: 1.4; }

/* ---------- Progress ---------- */
.progress { display: flex; gap: 6px; margin-bottom: 28px; }
.progress span { flex: 1; height: 4px; border-radius: 2px; background: var(--line); }
.progress span.active { background: var(--yellow); }

/* ---------- Success ---------- */
.success-hero {
  background: var(--ink); color: var(--yellow);
  border-radius: 20px; padding: 32px 24px; text-align: center;
  position: relative; overflow: hidden; margin-bottom: 24px;
}
.success-halo { position: absolute; inset: 0; background: radial-gradient(circle at 50% 0%, rgba(245,197,24,0.2), transparent 60%); }
.success-check {
  width: 64px; height: 64px; border-radius: 50%;
  background: var(--yellow); color: var(--ink);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 16px; position: relative;
}
.success-hero h2 { font-family: 'Fraunces', serif; font-size: 32px; font-weight: 600; margin: 0 0 8px; line-height: 1; position: relative; }
.next-step { display: flex; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.next-step:last-child { border-bottom: none; }
.next-n {
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--yellow); color: var(--ink);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 13px; flex-shrink: 0;
}
.success-id { font-family: 'JetBrains Mono', monospace; font-size: 13px; opacity: 0.8; margin-top: 12px; position: relative; }

/* ---------- Membership card ---------- */
.card-wrap { perspective: 1000px; margin: 24px 0; cursor: pointer; }
.card-inner { position: relative; width: 100%; aspect-ratio: 1.6/1; transform-style: preserve-3d; transition: transform 600ms; }
.card-inner.flipped { transform: rotateY(180deg); }
.card-face { position: absolute; inset: 0; backface-visibility: hidden; border-radius: 16px; overflow: hidden; }
.card-front { background: var(--ink); color: var(--yellow); padding: 20px; display: flex; flex-direction: column; justify-content: space-between; }
.card-front::before { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at 100% 0%, rgba(245,197,24,0.13), transparent 60%); }
.card-front::after {
  content: ''; position: absolute; bottom: -40px; right: -40px;
  width: 180px; height: 180px; border-radius: 50%;
  border: 1px solid rgba(245,197,24,0.13);
}
.card-back {
  transform: rotateY(180deg);
  background: var(--yellow); color: var(--ink);
  padding: 20px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px;
}
.card-label { font-size: 9px; letter-spacing: 0.2em; opacity: 0.7; }
.qr-grid {
  width: 120px; height: 120px; background: var(--ink);
  display: grid; grid-template-columns: repeat(12, 1fr); gap: 1px; padding: 6px;
  border-radius: 6px;
}
.qr-grid div { aspect-ratio: 1/1; }
.card-hint { font-size: 12px; color: var(--mute); text-align: center; margin-bottom: 24px; }
.dash-row { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid var(--line); }
.dash-row:last-child { border-bottom: none; }
.dash-row .l { font-size: 13px; }
.dash-row .v { font-size: 13px; font-weight: 700; }
.dash-card { margin-top: 32px; padding: 20px; background: var(--paper); border: 1px solid var(--line); border-radius: 14px; }
.dash-title { font-size: 11px; letter-spacing: 0.1em; color: var(--mute); font-weight: 600; margin-bottom: 12px; }

/* ---------- Manifesto ---------- */
.manifesto-hero { padding: 24px 22px 32px; background: var(--ink); color: var(--paper); }
.manifesto-hero h1 { font-family: 'Fraunces', serif; font-size: 40px; font-weight: 600; margin: 0; line-height: 0.95; letter-spacing: -0.02em; }
.manifesto-hero h1 em { color: var(--yellow); font-style: italic; }
.manifesto-hero p { font-size: 14px; color: #C8C2B4; margin-top: 18px; line-height: 1.5; }
.manifesto-hero .mini-btn {
  background: var(--yellow); color: var(--ink);
  padding: 12px 16px; border-radius: 8px; font-size: 13px; font-weight: 700;
  display: inline-flex; align-items: center; gap: 6px;
}
.manifesto-hero .mini-btn-outline {
  background: transparent; color: var(--paper);
  border: 1px solid rgba(250,247,240,0.2);
  padding: 12px 16px; border-radius: 8px; font-size: 13px; font-weight: 600;
  display: inline-flex; align-items: center; gap: 6px;
}
.policy { background: var(--paper); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; margin-bottom: 8px; }
.policy-head { width: 100%; padding: 16px; display: flex; align-items: center; gap: 14px; text-align: left; }
.policy-ic { width: 40px; height: 40px; border-radius: 10px; background: var(--yellow-soft); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.policy-ic svg { width: 18px; height: 18px; color: var(--ink); }
.policy-chev { transition: transform 200ms; color: var(--mute); }
.policy.open .policy-chev { transform: rotate(180deg); }
.policy-body { padding: 0 16px 16px; font-size: 13px; color: var(--mute); line-height: 1.5; display: none; }
.policy.open .policy-body { display: block; animation: fadeIn 300ms; }
.policy-body-inner { padding: 12px 0; border-top: 1px dashed var(--line); }
.ask-box { margin-top: 32px; padding: 24px; background: var(--yellow-soft); border: 1px solid var(--yellow); border-radius: 14px; }
.ask-input { display: flex; gap: 8px; background: var(--paper); border-radius: 10px; padding: 4px; margin-top: 14px; }
.ask-input input { flex: 1; border: none; background: transparent; padding: 10px 12px; font-size: 14px; border-radius: 0; }
.ask-input input:focus { outline: none; }
.ask-send { background: var(--ink); color: var(--yellow); padding: 10px 14px; border-radius: 8px; }

/* ---------- Filter chips ---------- */
.filters { display: flex; gap: 8px; overflow-x: auto; margin-bottom: 20px; padding-bottom: 4px; }
.chip { padding: 8px 14px; border-radius: 100px; font-size: 12px; font-weight: 600; border: 1px solid var(--line); background: transparent; color: var(--ink); white-space: nowrap; text-transform: capitalize; }
.chip.active { background: var(--ink); color: var(--yellow); border-color: var(--ink); }

/* ---------- Events list (full) ---------- */
.event-row { background: var(--paper); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; display: flex; margin-bottom: 12px; }
.event-row-date { background: var(--ink); color: var(--yellow); padding: 20px 14px; min-width: 74px; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.event-row-date .d { font-family: 'Fraunces', serif; font-size: 32px; font-weight: 700; line-height: 1; }
.event-row-date .m { font-family: 'JetBrains Mono', monospace; font-size: 10px; letter-spacing: 0.15em; margin-top: 2px; }
.event-row-body { padding: 14px; flex: 1; }
.event-row-tag { display: inline-block; font-size: 9px; background: var(--yellow); color: var(--ink); padding: 2px 8px; border-radius: 4px; font-weight: 700; letter-spacing: 0.08em; margin-bottom: 6px; }
.rsvp-btn { background: var(--yellow); color: var(--ink); padding: 8px 14px; border-radius: 6px; font-size: 12px; font-weight: 700; margin-top: 6px; }

/* ---------- Donate ---------- */
.donate-card { background: var(--ink); color: var(--paper); border-radius: 16px; padding: 24px; margin-bottom: 20px; }
.donate-label { font-size: 11px; letter-spacing: 0.15em; color: var(--yellow); font-weight: 600; margin-bottom: 12px; }
.donate-amount { font-family: 'Fraunces', serif; font-size: 48px; font-weight: 700; line-height: 1; margin-bottom: 16px; }
.amount-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; margin-bottom: 14px; }
.amount-btn { padding: 10px 4px; border-radius: 8px; font-size: 13px; font-weight: 700; background: transparent; color: var(--paper); border: 1px solid rgba(250,247,240,0.2); }
.amount-btn.active { background: var(--yellow); color: var(--ink); border-color: var(--yellow); }
.donate-card input { background: transparent; color: var(--paper); border: 1px solid rgba(250,247,240,0.2); padding: 12px; font-size: 14px; }
.pay-option { width: 100%; background: var(--paper); border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; margin-bottom: 6px; display: flex; align-items: center; justify-content: space-between; font-size: 14px; font-weight: 500; }

/* ---------- Roles ---------- */
.role-row { background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 16px; display: flex; align-items: center; gap: 14px; margin-bottom: 10px; }
.role-n { width: 40px; height: 40px; border-radius: 10px; background: var(--yellow); display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-weight: 700; font-family: 'Fraunces', serif; }
.role-hrs { font-size: 10px; color: var(--yellow-deep); font-weight: 700; letter-spacing: 0.08em; margin-top: 4px; }

/* ---------- Report ---------- */
.cat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px; }
.cat-btn { padding: 10px; border-radius: 8px; font-size: 12px; font-weight: 600; border: 1px solid var(--line); background: var(--paper); color: var(--ink); text-align: left; }
.cat-btn.active { background: var(--ink); color: var(--yellow); border-color: var(--ink); }

/* ---------- Members / chapters ---------- */
.search-box {
  display: flex; align-items: center; gap: 8px; margin: 16px 0 20px;
  background: var(--paper); border: 1.5px solid var(--line); border-radius: 10px;
  padding: 4px 4px 4px 14px;
}
.search-box svg { color: var(--mute); flex-shrink: 0; }
.search-box input { border: none; background: transparent; padding: 12px 0; font-size: 14px; }
.search-box input:focus { outline: none; }
.chapter-row { background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 16px; display: flex; align-items: center; gap: 12px; margin-bottom: 6px; }
.chapter-row svg { color: var(--yellow-deep); flex-shrink: 0; }

/* ---------- About ---------- */
.about-intro { padding: 24px 22px 40px; background: var(--paper-alt); }
.about-intro p { font-size: 15px; color: var(--ink); line-height: 1.6; margin: 16px 0 0; }
.anchor-hero { margin-top: 20px; padding: 24px; background: var(--ink); color: var(--yellow); border-radius: 16px; text-align: center; }
.anchor-hero svg { margin: 0 auto 12px; color: var(--yellow); }
.anchor-hero h3 { font-family: 'Fraunces', serif; font-size: 20px; font-weight: 600; margin: 0 0 8px; }
.leader-row { background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 14px; display: flex; align-items: center; gap: 14px; margin-bottom: 8px; }
.apply-card { margin-top: 16px; padding: 14px; background: var(--yellow-soft); border-radius: 10px; font-size: 12px; color: var(--ink); line-height: 1.5; }

/* ---------- Contact ---------- */
.contact-row { background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 16px; display: flex; align-items: start; gap: 14px; margin-bottom: 10px; }
.contact-ic { width: 36px; height: 36px; border-radius: 10px; background: var(--yellow-soft); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.contact-ic svg { width: 16px; height: 16px; color: var(--ink); }
.contact-l { font-size: 11px; color: var(--mute); font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; }
.contact-v { font-size: 14px; margin-top: 4px; white-space: pre-line; line-height: 1.5; }
.social-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 10px; }
.social-btn { background: var(--ink); color: var(--yellow); padding: 14px; border-radius: 10px; font-weight: 700; font-family: 'Fraunces', serif; }
.social-btn.is-disabled { opacity: 0.42; text-align: center; cursor: not-allowed; }
.form-status { margin-top: 12px; min-height: 20px; font-size: 13px; line-height: 1.4; }
.form-status.success { color: var(--green); }
.form-status.error { color: var(--red); }
.notice-card { background: var(--yellow-soft); border: 1px solid var(--yellow); border-radius: 12px; padding: 16px; font-size: 13px; line-height: 1.5; }
.legal-page { max-width: 760px; margin: 0 auto; padding: 32px 22px 60px; }
.legal-page section { padding: 0; }
.legal-page h2 { font-family: 'Fraunces', serif; font-size: 21px; margin: 28px 0 8px; }
.legal-page p { color: var(--mute); line-height: 1.65; }
.legal-page a { color: var(--ink); }
.legal-updated { font-size: 12px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; transition-duration: 0.01ms !important; }
}

/* ---------- Footer ---------- */
footer { background: var(--ink); color: var(--paper); padding: 40px 22px 28px; }
.footer-logo { display: flex; align-items: center; gap: 10px; margin-bottom: 20px; }
.footer-logo h4 { font-family: 'Fraunces', serif; font-size: 18px; font-weight: 700; margin: 0; }
.footer-logo small { font-size: 10px; letter-spacing: 0.12em; opacity: 0.6; }
.footer-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 28px; }
.footer-col-title { font-size: 10px; letter-spacing: 0.15em; color: var(--yellow); font-weight: 600; margin-bottom: 10px; }
.footer-link { background: transparent; color: var(--paper); opacity: 0.8; padding: 4px 0; font-size: 13px; display: block; text-align: left; text-decoration: none; }
.footer-legal { font-size: 11px; opacity: 0.5; line-height: 1.6; border-top: 1px solid rgba(250,247,240,0.13); padding-top: 20px; }

/* ---------- Drawer ---------- */
.drawer-backdrop { position: fixed; inset: 0; background: rgba(10,10,10,0.5); z-index: 90; opacity: 0; pointer-events: none; transition: opacity 300ms; }
.drawer-backdrop.open { opacity: 1; pointer-events: auto; }
.drawer {
  position: fixed; top: 0; left: 0; height: 100vh; width: 84%; max-width: 340px;
  background: var(--paper); z-index: 100;
  transform: translateX(-100%);
  transition: transform 320ms cubic-bezier(0.32, 0.72, 0, 1);
  display: flex; flex-direction: column;
  box-shadow: 4px 0 40px rgba(0,0,0,0.15);
}
.drawer.open { transform: translateX(0); }
.drawer-head { padding: 22px 20px; background: var(--ink); color: var(--yellow); display: flex; align-items: center; justify-content: space-between; }
.drawer-head-logo { display: flex; align-items: center; gap: 10px; }
.drawer-head-logo h4 { font-family: 'Fraunces', serif; font-size: 20px; font-weight: 700; line-height: 1; margin: 0; }
.drawer-head-logo small { font-size: 10px; letter-spacing: 0.12em; opacity: 0.7; margin-top: 4px; display: block; }
.drawer-nav { flex: 1; overflow-y: auto; padding: 12px 0; }
.drawer-item {
  width: 100%; padding: 14px 20px; display: flex; align-items: center; gap: 14px;
  color: var(--ink); font-size: 15px; font-weight: 500;
  border-left: 3px solid transparent; text-align: left; text-decoration: none;
}
.drawer-item.active { background: var(--yellow-soft); font-weight: 600; border-left-color: var(--yellow-deep); }
.drawer-foot { padding: 16px 20px; border-top: 1px solid var(--line); font-size: 11px; color: var(--mute); }
.drawer-foot .phone { color: var(--ink); font-weight: 600; margin-top: 8px; }

/* ---------- Bottom tabs ---------- */
.tabs {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 50;
  background: rgba(250, 247, 240, 0.96);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid var(--line);
  display: grid; grid-template-columns: repeat(5, 1fr);
  padding: 8px 4px calc(8px + env(safe-area-inset-bottom));
}
.tab {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  padding: 6px 4px; color: var(--mute); text-decoration: none;
}
.tab.active { color: var(--ink); }
.tab.active span { font-weight: 700; }
.tab svg { width: 20px; height: 20px; }
.tab.active svg { stroke-width: 2.4; }
.tab span { font-size: 10px; font-weight: 500; }
.tab-primary { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 4px; position: relative; text-decoration: none; }
.tab-primary-inner {
  background: var(--yellow); width: 48px; height: 48px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 12px rgba(245, 197, 24, 0.4), 0 2px 0 var(--yellow-deep);
  margin-top: -14px;
}
.tab-primary-inner svg { width: 22px; height: 22px; color: var(--ink); }
.tab-primary span { font-size: 10px; font-weight: 700; color: var(--ink); letter-spacing: 0.03em; }

/* ---------- Install prompt ---------- */
.install-prompt {
  position: fixed; bottom: 96px; left: 16px; right: 16px; z-index: 60;
  background: var(--ink); color: var(--paper); border-radius: 14px;
  padding: 14px 16px; display: flex; align-items: center; gap: 12px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.25);
}
.install-ic { width: 40px; height: 40px; border-radius: 10px; background: var(--yellow); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.install-ic svg { color: var(--ink); }
.install-text { flex: 1; font-size: 13px; line-height: 1.3; }
.install-text .t { font-weight: 700; margin-bottom: 2px; }
.install-text .s { opacity: 0.7; font-size: 11px; }
.install-btn { background: var(--yellow); color: var(--ink); padding: 8px 12px; border-radius: 8px; font-size: 12px; font-weight: 700; }

.text-link {
  background: transparent; color: var(--ink); padding: 0;
  font-weight: 600; font-size: 13px;
  display: inline-flex; align-items: center; gap: 4px;
  text-decoration: underline; text-decoration-color: var(--yellow);
  text-decoration-thickness: 2px; text-underline-offset: 3px;
}

/* ---------- Homepage introduction video ---------- */
.intro-video-section { padding: 32px 22px 28px; background: var(--paper); }
.intro-video-copy { max-width: 640px; margin-bottom: 18px; }
.intro-video-copy p { margin: -4px 0 0; color: var(--mute); font-size: 14px; line-height: 1.65; }
.intro-video-frame {
  overflow: hidden; border-radius: 18px; background: var(--ink);
  border: 1px solid rgba(10,10,10,0.15);
  box-shadow: 0 16px 38px rgba(10,10,10,0.16);
}
.intro-video { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: var(--ink); }
.intro-video-transcript { margin-top: 12px; color: var(--mute); font-size: 12px; line-height: 1.6; }
.intro-video-transcript summary { cursor: pointer; color: var(--ink); font-weight: 700; }
.intro-video-transcript p { margin: 8px 0 0; }

/* ---------- Simplified homepage flow ---------- */
.hero-text-link,
.quiet-link {
  display: inline-flex; align-items: center; gap: 6px;
  color: inherit; font-size: 13px; font-weight: 700; text-decoration: none;
  border-bottom: 1px solid currentColor; padding-bottom: 3px;
}
.hero-text-link { color: var(--paper); opacity: 0.86; }
.home-principles,
.home-involve,
.home-latest { padding: 46px 22px; }
.home-principles { background: var(--paper); }
.principles-grid { display: grid; gap: 1px; margin-top: 24px; background: var(--line); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.principle-card { background: var(--paper); padding: 24px 20px; }
.principle-card span { color: var(--yellow-deep); font: 600 10px/1 'JetBrains Mono', monospace; letter-spacing: .12em; }
.principle-card h3 { margin: 12px 0 7px; font: 700 25px/1.1 'Fraunces', serif; }
.principle-card p { margin: 0; color: var(--mute); font-size: 13px; line-height: 1.6; }
.home-principles > .quiet-link { margin-top: 22px; }
.home-involve { background: var(--yellow-soft); }
.involve-list { margin-top: 22px; border-top: 1px solid rgba(10,10,10,.16); }
.involve-list > a {
  display: grid; grid-template-columns: 32px 1fr 20px; align-items: center; gap: 12px;
  min-height: 82px; color: var(--ink); text-decoration: none;
  border-bottom: 1px solid rgba(10,10,10,.16);
}
.involve-number { color: var(--mute); font: 500 10px/1 'JetBrains Mono', monospace; }
.involve-list strong { display: block; font-size: 15px; margin-bottom: 5px; }
.involve-list small { display: block; color: var(--mute); font-size: 12px; }
.involve-list svg { width: 18px; height: 18px; }
.home-latest { display: grid; gap: 24px; background: var(--ink); color: var(--paper); }
.home-latest .eyebrow { color: var(--yellow); }
.home-latest p { margin: -4px 0 0; max-width: 500px; color: rgba(250,247,240,.68); font-size: 14px; line-height: 1.65; }
.latest-links { display: flex; align-items: center; flex-wrap: wrap; gap: 20px; }
.home-latest .quiet-link { color: var(--paper); }

@media (min-width: 760px) {
  .intro-video-section { padding: 48px max(32px, calc((100vw - 1100px) / 2)); }
  .intro-video-frame { border-radius: 24px; }
  .home-principles,
  .home-involve,
  .home-latest { padding: 72px max(32px, calc((100vw - 1100px) / 2)); }
  .principles-grid { grid-template-columns: repeat(3, 1fr); }
  .principle-card { padding: 30px 26px; min-height: 180px; }
  .home-latest { grid-template-columns: minmax(0, 1fr) auto; align-items: center; }
}
