/* Oga-Aga-Agwu-Agwu Achi Festival — site styles
   Layout concept: "Twelve" — Achi la eri l'iboo. A 12-arc emblem (six Ụlọ above, six Agụ below),
   deep palm-green bands carry the festival; a chalk-white (nzu) ground carries the reading;
   omu gold marks every way to give; camwood red is kept for live/urgent marks only. */

:root {
  /* colour */
  --ground: #F2F4EE;        /* nzu chalk, slight green bias */
  --surface: #FFFFFF;
  --surface-2: #E6ECE3;
  --ink: #15201B;
  --ink-soft: #4B5B53;
  --line: #D3DCD1;
  --palm: #0E4A36;          /* palm green: links, buttons */
  --palm-deep: #0A3427;     /* festival bands (same in both themes) */
  --on-palm: #F5F2E6;
  --on-palm-soft: #BFD3C6;
  --omu: #D9A21B;           /* young palm frond gold: giving */
  --omu-ink: #7E5A05;       /* gold for text on light ground */
  --uhie: #A13A26;          /* camwood red: live, urgent */
  --good: #1F7A4D;
  --warn: #9A6A00;
  --btn-bg: #0E4A36;
  --btn-fg: #FFFFFF;
  --focus: #D9A21B;
  --shadow: 0 1px 2px rgba(10, 40, 28, .06), 0 8px 24px rgba(10, 40, 28, .07);

  /* type */
  --display: "Big Shoulders Display", "Arial Narrow", "Roboto Condensed", Impact, sans-serif;
  --body: "Alegreya Sans", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --voice: "Alegreya", Georgia, "Times New Roman", serif;

  --step--1: .875rem;
  --step-0: 1.0625rem;
  --step-1: 1.25rem;
  --step-2: 1.6rem;
  --step-3: 2.2rem;
  --step-4: 3.1rem;
  --step-5: clamp(3.2rem, 9vw, 6.6rem);

  --wrap: 1180px;
  --radius: 6px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ground: #0C1511;
    --surface: #131F1A;
    --surface-2: #1A2822;
    --ink: #E5ECE4;
    --ink-soft: #A3B4AA;
    --line: #273731;
    --palm: #5DBB8E;
    --palm-deep: #08261C;
    --on-palm: #F5F2E6;
    --on-palm-soft: #A9C4B4;
    --omu: #E8B53A;
    --omu-ink: #F0C55E;
    --uhie: #E2735C;
    --good: #5DBB8E;
    --warn: #E8B53A;
    --btn-bg: #E8B53A;
    --btn-fg: #15201B;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .25);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --ground: #0C1511;
  --surface: #131F1A;
  --surface-2: #1A2822;
  --ink: #E5ECE4;
  --ink-soft: #A3B4AA;
  --line: #273731;
  --palm: #5DBB8E;
  --palm-deep: #08261C;
  --on-palm: #F5F2E6;
  --on-palm-soft: #A9C4B4;
  --omu: #E8B53A;
  --omu-ink: #F0C55E;
  --uhie: #E2735C;
  --good: #5DBB8E;
  --warn: #E8B53A;
  --btn-bg: #E8B53A;
  --btn-fg: #15201B;
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .25);
  color-scheme: dark;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--body);
  font-size: var(--step-0);
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 60; background: var(--palm-deep); }
img { max-width: 100%; height: auto; display: block; }
[hidden] { display: none !important; }
.stack > *, .stack-lg > *, .split > *, .section-head > *, .panel > * { min-width: 0; }
.table-wrap { max-width: 100%; }
a { color: var(--palm); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 3px; }
h1, h2, h3, h4 { line-height: 1.1; text-wrap: balance; margin: 0; }
h1, h2 { font-family: var(--display); font-weight: 800; letter-spacing: .005em; }
h2 { font-size: var(--step-4); text-transform: uppercase; }
h3 { font-family: var(--body); font-weight: 700; font-size: var(--step-1); }
p { margin: 0; }
ul, ol { margin: 0; padding-left: 1.2em; }
.num, .tabular { font-variant-numeric: tabular-nums; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: -9999px; top: 0; z-index: 100; background: var(--omu); color: #15201B; padding: .6rem 1rem; }
.skip:focus { left: 1rem; top: calc(env(safe-area-inset-top, 0px) + .5rem); }

.wrap {
  width: 100%;
  max-width: calc(var(--wrap) + 32px);
  margin: 0 auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
.prose { max-width: 66ch; display: grid; gap: 1rem; }
.prose h3 { margin-top: .6rem; }
.lede { font-size: var(--step-1); color: var(--ink-soft); max-width: 60ch; }
.eyebrow {
  font-family: var(--body); font-weight: 700; font-size: var(--step--1);
  letter-spacing: .14em; text-transform: uppercase; color: var(--omu-ink);
}
.voice { font-family: var(--voice); font-style: italic; font-weight: 500; }
.muted { color: var(--ink-soft); }
.small { font-size: var(--step--1); }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  background: var(--palm-deep); color: var(--on-palm);
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}
.site-header .wrap { display: flex; align-items: center; gap: 1rem; min-height: 64px; }
.brand { display: flex; align-items: center; gap: .65rem; color: var(--on-palm); text-decoration: none; min-width: 0; }
.brand svg { width: 40px; height: 40px; flex: none; }
.brand-text { display: grid; line-height: 1; min-width: 0; }
.brand-name { font-family: var(--display); font-weight: 800; font-size: 1.35rem; text-transform: uppercase; letter-spacing: .02em; white-space: nowrap; }
.brand-sub { font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--on-palm-soft); margin-top: .2rem; white-space: nowrap; }
.nav { margin-left: auto; display: flex; align-items: center; gap: .15rem; }
.nav a { color: var(--on-palm); text-decoration: none; padding: .45rem .55rem; border-radius: 4px; font-size: .98rem; white-space: nowrap; }
.nav a:hover { background: rgba(255, 255, 255, .08); }
.nav a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--omu); border-radius: 0; }
.nav .give-link { background: var(--omu); color: #15201B; font-weight: 700; padding: .5rem .95rem; margin-left: .4rem; border-radius: 4px; box-shadow: none; }
.nav .give-link:hover { background: #F0BC3C; }
.menu-btn { display: none; margin-left: auto; background: none; border: 1px solid rgba(255, 255, 255, .3); color: var(--on-palm); border-radius: 4px; padding: .45rem .7rem; font: inherit; font-weight: 700; cursor: pointer; }
@media (max-width: 1120px) {
  .menu-btn { display: inline-flex; align-items: center; gap: .4rem; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--palm-deep); flex-direction: column; align-items: stretch; gap: 0;
    padding: .5rem max(16px, env(safe-area-inset-right, 0px)) 1rem max(16px, env(safe-area-inset-left, 0px)); border-bottom: 1px solid rgba(255, 255, 255, .1); }
  .nav.open { display: flex; }
  .nav a { padding: .75rem .4rem; border-bottom: 1px solid rgba(255, 255, 255, .07); font-size: 1.05rem; }
  .nav a[aria-current="page"] { box-shadow: inset 3px 0 0 var(--omu); padding-left: .8rem; }
  .nav .give-link { margin: .8rem 0 0; text-align: center; border-bottom: 0; }
}
@media (max-width: 420px) { .brand-sub { display: none; } .brand-name { font-size: 1.15rem; } }

/* ---------- bands ---------- */
.band { padding-block: clamp(3rem, 7vw, 5.5rem); }
.band-tight { padding-block: clamp(2rem, 5vw, 3.5rem); }
.band-alt { background: var(--surface-2); }
.band-palm { background: var(--palm-deep); color: var(--on-palm); }
.band-palm a:not(.btn) { color: var(--omu); }
.band-palm .eyebrow { color: var(--omu); }
.band-palm .muted, .band-palm .lede { color: var(--on-palm-soft); }
.section-head { display: grid; gap: .75rem; margin-bottom: 2rem; max-width: 70ch; }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; background: var(--palm-deep); color: var(--on-palm); }
.hero::before {
  content: ""; position: absolute; inset: -10% -10% -10% 30%;
  background: url("../img/achi-roads-texture.svg") center / cover no-repeat;
  opacity: .5; pointer-events: none;
}
.hero .wrap { position: relative; display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, .9fr); gap: 2.5rem; align-items: center; padding-block: clamp(2.5rem, 6vw, 5rem); }
.hero h1 { font-size: var(--step-5); line-height: .86; text-transform: uppercase; letter-spacing: -.005em; }
.hero h1 .line { display: block; }
.hero h1 .gold { color: var(--omu); }
.hero .meta { display: flex; flex-wrap: wrap; gap: .4rem 1.4rem; margin-top: 1.2rem; font-size: var(--step-1); }
.hero .meta strong { color: var(--omu); font-weight: 700; }
.hero .theme { margin-top: 1rem; font-size: var(--step-1); color: var(--on-palm-soft); max-width: 46ch; }
.hero .actions { margin-top: 1.8rem; }
.hero-side { display: grid; justify-items: center; gap: 1.2rem; }
.hero-side .emblem { width: min(320px, 70vw); height: auto; }
.page-hero { background: var(--palm-deep); color: var(--on-palm); position: relative; overflow: hidden; }
.page-hero::before { content: ""; position: absolute; inset: -20% -20% -20% 45%; background: url("../img/achi-roads-texture.svg") center / cover no-repeat; opacity: .35; pointer-events: none; }
.page-hero .wrap { position: relative; padding-block: clamp(2.2rem, 5vw, 3.8rem); display: grid; gap: .8rem; }
.page-hero h1 { font-size: clamp(2.6rem, 7vw, 4.6rem); text-transform: uppercase; line-height: .92; }
.page-hero .lede { color: var(--on-palm-soft); }
.page-hero .eyebrow { color: var(--omu); }
@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-side { justify-items: start; }
  .hero-side .emblem { width: 150px; }
  .hero::before { inset: 20% -30% -10% -10%; }
}

/* countdown */
.countdown { display: grid; grid-template-columns: repeat(3, auto); gap: .2rem 1.4rem; align-items: end; }
.countdown .n { font-family: var(--display); font-weight: 800; font-size: clamp(2.6rem, 6vw, 3.6rem); line-height: 1; font-variant-numeric: tabular-nums; color: var(--on-palm); }
.countdown .u { font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--on-palm-soft); }
.countdown-cap { font-size: var(--step--1); color: var(--on-palm-soft); }

/* ---------- buttons ---------- */
.actions { display: flex; flex-wrap: wrap; gap: .7rem; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .45rem;
  font: inherit; font-weight: 700; font-size: 1.02rem; line-height: 1.2;
  padding: .8rem 1.25rem; border-radius: 4px; border: 2px solid transparent;
  text-decoration: none; cursor: pointer; transition: transform .12s ease, background-color .12s ease;
}
.btn:active { transform: translateY(1px); }
.btn-give { background: var(--omu); color: #15201B; }
.btn-give:hover { background: #F0BC3C; }
.btn-primary { background: var(--btn-bg); color: var(--btn-fg); }
.btn-primary:hover { filter: brightness(1.1); }
.btn-ghost { background: transparent; color: inherit; border-color: currentColor; }
.btn-ghost:hover { background: rgba(127, 127, 127, .1); }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .55; cursor: not-allowed; }
.btn-small { padding: .45rem .8rem; font-size: .92rem; }
.band-palm .btn-ghost, .hero .btn-ghost, .page-hero .btn-ghost { color: var(--on-palm); }

/* ---------- grids & cards ---------- */
.grid { display: grid; gap: 1.25rem; }
.grid > * { min-width: 0; }
.g-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 980px) { .g-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .g-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .g-2, .g-3 { grid-template-columns: 1fr; } }
@media (max-width: 460px) { .g-4 { grid-template-columns: 1fr; } }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 3.5rem); align-items: start; }
.split-wide { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); }
@media (max-width: 860px) { .split, .split-wide { grid-template-columns: 1fr; } }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.35rem; display: grid; gap: .6rem; align-content: start; }
.card h3 { font-size: 1.2rem; }
.card .eyebrow { font-size: .78rem; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.2rem, 3vw, 2rem); box-shadow: var(--shadow); }
.band-palm .card { background: rgba(255, 255, 255, .05); border-color: rgba(255, 255, 255, .12); color: var(--on-palm); }

/* pills / status */
.pill { display: inline-flex; align-items: center; gap: .35rem; font-size: .8rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; padding: .2rem .55rem; border-radius: 999px; border: 1px solid currentColor; width: fit-content; }
.pill::before { content: ""; width: .5rem; height: .5rem; border-radius: 50%; background: currentColor; }
.pill-open { color: var(--good); }
.pill-pending { color: var(--warn); }
.pill-live { color: var(--uhie); }
.pill-note { color: var(--ink-soft); }
.band-palm .pill-pending { color: var(--omu); }

/* ---------- twelve emblem strip ---------- */
.twelve { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.twelve a { background: var(--surface); padding: 1rem .9rem; text-decoration: none; color: var(--ink); display: grid; gap: .2rem; min-height: 96px; align-content: start; }
.twelve a:hover { background: var(--surface-2); }
.twelve .nm { font-family: var(--display); font-weight: 800; font-size: 1.45rem; text-transform: uppercase; line-height: 1; }
.twelve .sub { font-size: .82rem; color: var(--ink-soft); }
.twelve .bar { margin-top: .45rem; }
@media (max-width: 900px) { .twelve { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 520px) { .twelve { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* progress bars */
.bar { height: 8px; background: var(--surface-2); border-radius: 999px; overflow: hidden; }
.band-alt .bar { background: var(--line); }
.bar > span { display: block; height: 100%; background: var(--omu); border-radius: inherit; width: 0; transition: width .8s ease; }
.bar.palm > span { background: var(--palm); }
.band-palm .bar, .hero .bar { background: rgba(255, 255, 255, .14); }
.progress-big { display: grid; gap: .6rem; }
.progress-big .bar { height: 14px; }
.progress-big .figs { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .3rem 1rem; font-variant-numeric: tabular-nums; }
.progress-big .figs strong { font-family: var(--display); font-weight: 800; font-size: 2rem; line-height: 1; }

/* stat tiles (accounts) */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem 1.2rem; display: grid; gap: .25rem; }
.stat .k { font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-soft); font-weight: 700; }
.stat .v { font-family: var(--display); font-weight: 800; font-size: clamp(1.8rem, 4vw, 2.5rem); line-height: 1.05; font-variant-numeric: tabular-nums; }
.stat .d { font-size: .9rem; color: var(--ink-soft); }
@media (max-width: 860px) { .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* horizontal bar chart */
.hbars { display: grid; gap: .85rem; container-type: inline-size; }
.band-palm .hbar .val { color: var(--on-palm-soft); }
.band-palm .hbar .track { background: rgba(255, 255, 255, .14); }
.hbar { display: grid; grid-template-columns: minmax(0, 13rem) minmax(0, 1fr) 8.5rem; gap: .4rem 1rem; align-items: center; }
.hbar .lbl { font-weight: 500; min-width: 0; }
.hbar .val { font-variant-numeric: tabular-nums; font-size: .92rem; color: var(--ink-soft); text-align: right; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hbar .track { position: relative; height: 14px; background: var(--surface-2); border-radius: 3px; overflow: hidden; }
.hbar .fill { position: absolute; inset: 0 auto 0 0; background: var(--palm); border-radius: 3px; }
.hbar .fill.gold { background: var(--omu); }
.hbar .mark { position: absolute; top: -3px; bottom: -3px; width: 2px; background: var(--ink); opacity: .55; }
@media (max-width: 600px) { .hbar { grid-template-columns: minmax(0, 1fr) auto; } .hbar .val { overflow: visible; } .hbar .track { grid-column: 1 / -1; grid-row: 2; } }
@container (max-width: 520px) { .hbar { grid-template-columns: minmax(0, 1fr) auto; } .hbar .track { grid-column: 1 / -1; grid-row: 2; } .hbar .val { overflow: visible; } }
.legend { display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; font-size: .88rem; color: var(--ink-soft); margin-top: .8rem; }
.legend i { display: inline-block; width: .8rem; height: .8rem; border-radius: 2px; vertical-align: -.1rem; margin-right: .35rem; }

/* tables */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
table { border-collapse: collapse; width: 100%; font-size: .96rem; }
th, td { text-align: left; padding: .65rem .8rem; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-soft); background: var(--surface-2); position: sticky; top: 0; white-space: nowrap; }
td.amt, th.amt { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
tr:last-child td { border-bottom: 0; }
.table-tools { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; margin-bottom: .8rem; }
.table-tools input, .table-tools select { font: inherit; padding: .5rem .7rem; border: 1px solid var(--line); border-radius: 4px; background: var(--surface); color: var(--ink); min-width: 0; }
.table-tools input { flex: 1 1 14rem; }
.tabs { display: flex; flex-wrap: wrap; gap: .3rem; border-bottom: 1px solid var(--line); margin-bottom: 1rem; }
.tabs button { font: inherit; font-weight: 700; background: none; border: 0; padding: .6rem .9rem; color: var(--ink-soft); cursor: pointer; border-bottom: 3px solid transparent; margin-bottom: -1px; }
.tabs button[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--omu); }

/* notices */
.notice { border: 1px solid var(--line); border-left: 4px solid var(--omu); background: var(--surface); padding: .9rem 1.1rem; border-radius: 4px; display: grid; gap: .3rem; }
.notice.demo { border-left-color: var(--uhie); }
.notice.safe { border-left-color: var(--good); }
.band-palm .notice { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .14); border-left-color: var(--omu); }

/* bank card */
.acct { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.3rem; display: grid; gap: .9rem; align-content: start; }
.acct h3 { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; justify-content: space-between; }
.acct dl { display: grid; grid-template-columns: minmax(0, 1fr); gap: .15rem; margin: 0; }
.acct dt { color: var(--ink-soft); font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; font-weight: 700; margin-top: .55rem; }
.acct dt:first-child { margin-top: 0; }
.acct dd { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; min-width: 0; }
.acct .acno { font-family: var(--display); font-weight: 800; font-size: 2rem; letter-spacing: .06em; line-height: 1; font-variant-numeric: tabular-nums; }
.copy { font: inherit; font-size: .82rem; font-weight: 700; padding: .25rem .6rem; border-radius: 4px; border: 1px solid var(--line); background: var(--surface-2); color: var(--ink); cursor: pointer; }
.copy.done { border-color: var(--good); color: var(--good); }

/* forms */
form.f { display: grid; gap: 1rem; }
.f .row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; align-items: end; }
@media (max-width: 600px) { .f .row { grid-template-columns: 1fr; } }
.f label { display: block; font-weight: 700; font-size: .95rem; }
.f label > input, .f label > select, .f label > textarea { display: block; margin-top: .35rem; }
.f label > .hint.num { display: block; margin-top: .25rem; }
.f .hint { font-weight: 400; color: var(--ink-soft); font-size: .88rem; }
.f input, .f select, .f textarea { font: inherit; font-weight: 400; padding: .7rem .8rem; border: 1px solid var(--line); border-radius: 4px; background: var(--ground); color: var(--ink); width: 100%; min-width: 0; }
.f textarea { min-height: 7rem; resize: vertical; }
.f .check { display: flex; gap: .6rem; align-items: flex-start; font-weight: 400; }
.f .check input { width: auto; margin-top: .3rem; }
.f .hp { position: absolute; left: -9999px; }
.f .status { font-weight: 700; }
.f .status.ok { color: var(--good); }
.f .status.err { color: var(--uhie); }
.amount-chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.amount-chips button { font: inherit; font-weight: 700; padding: .45rem .8rem; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer; font-variant-numeric: tabular-nums; }
.amount-chips button[aria-pressed="true"] { background: var(--omu); border-color: var(--omu); color: #15201B; }

/* story list */
.stories { display: grid; gap: 0; border-top: 1px solid var(--line); }
.story { display: grid; grid-template-columns: 9.5rem minmax(0, 1fr); gap: 1.4rem; padding: 1.3rem 0; border-bottom: 1px solid var(--line); }
.story time { font-variant-numeric: tabular-nums; color: var(--ink-soft); font-size: .95rem; padding-top: .15rem; }
.story h3 { font-size: 1.25rem; }
.story h3 a { color: var(--ink); text-decoration: none; }
.story h3 a:hover { text-decoration: underline; }
.story p { margin-top: .35rem; color: var(--ink-soft); }
.story .src { margin-top: .45rem; font-size: .88rem; }
@media (max-width: 600px) { .story { grid-template-columns: 1fr; gap: .3rem; } }

/* people */
.people-group { display: grid; grid-template-columns: minmax(0, 12rem) minmax(0, 1fr); gap: 1rem 2rem; border-top: 1px solid var(--line); padding-top: 1.4rem; }
.people-list { display: grid; gap: 0; }
.person { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 1.1rem; align-items: start; padding-bottom: 1.4rem; }
.person + .person { border-top: 1px solid var(--line); padding-top: 1.4rem; }
@media (max-width: 760px) { .people-group { grid-template-columns: 1fr; } }
.mono { width: 64px; height: 64px; border-radius: 50%; background: var(--palm-deep); color: var(--omu); display: grid; place-items: center; font-family: var(--display); font-weight: 800; font-size: 1.5rem; letter-spacing: .04em; }
.person .role { color: var(--ink-soft); font-size: .95rem; }
.person .src { font-size: .85rem; }

/* community detail */
.community { display: grid; grid-template-columns: minmax(0, 15rem) minmax(0, 1fr); gap: 1.5rem 2.5rem; padding-block: 2.2rem; border-top: 1px solid var(--line); scroll-margin-top: 90px; }
.community h2 { font-size: clamp(2.2rem, 5vw, 3.2rem); }
.community .aka { color: var(--ink-soft); margin-top: .3rem; }
.community ul { display: grid; gap: .5rem; }
@media (max-width: 760px) { .community { grid-template-columns: 1fr; } }

/* timeline */
.timeline { list-style: none; padding: 0; display: grid; gap: 0; border-left: 2px solid var(--line); margin-left: .4rem; }
.timeline li { position: relative; padding: 0 0 1.4rem 1.5rem; display: grid; gap: .15rem; }
.timeline li::before { content: ""; position: absolute; left: -7px; top: .45rem; width: 12px; height: 12px; border-radius: 50%; background: var(--ground); border: 2px solid var(--palm); }
.timeline .yr { font-family: var(--display); font-weight: 800; font-size: 1.5rem; line-height: 1; }
.timeline li.now::before { background: var(--omu); border-color: var(--omu); }

/* quote */
.quote { font-family: var(--voice); font-style: italic; font-size: clamp(1.4rem, 3vw, 2rem); line-height: 1.3; max-width: 34ch; }
.quote-cap { margin-top: .8rem; color: var(--ink-soft); font-size: .95rem; }
.band-palm .quote-cap { color: var(--on-palm-soft); }

/* figure */
.figure { display: grid; gap: .5rem; }
.figure img { border-radius: var(--radius); width: 100%; }
.figure figcaption { font-size: .88rem; color: var(--ink-soft); }
figure { margin: 0; }

/* gallery */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); gap: .8rem; }
.gallery figure { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: grid; }
.gallery img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; max-width: 100%; }
.gallery figcaption { padding: .6rem .8rem; font-size: .88rem; }
.gallery .credit { color: var(--ink-soft); font-size: .8rem; display: block; }
.frame-empty { aspect-ratio: 4 / 3; max-width: 100%; display: grid; place-items: center; background: var(--surface-2); color: var(--ink-soft); border: 1px dashed var(--line); border-radius: var(--radius); text-align: center; padding: 1rem; font-size: .92rem; }

/* sources */
.sources { font-size: .88rem; color: var(--ink-soft); display: grid; gap: .3rem; }
.sources ol { display: grid; gap: .25rem; }

/* footer */
.site-footer { background: var(--palm-deep); color: var(--on-palm); padding-block: 3rem 2rem; margin-top: 0; }
.site-footer a:not(.btn) { color: var(--on-palm); }
.site-footer .cols { display: grid; grid-template-columns: minmax(0, 1.3fr) repeat(3, minmax(0, 1fr)); gap: 2rem; }
.site-footer h4 { font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--omu); margin-bottom: .7rem; font-family: var(--body); }
.site-footer ul { list-style: none; padding: 0; display: grid; gap: .35rem; }
.site-footer .fine { border-top: 1px solid rgba(255, 255, 255, .12); margin-top: 2.2rem; padding-top: 1.2rem; display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; justify-content: space-between; color: var(--on-palm-soft); font-size: .88rem; }
.site-footer .warn { color: var(--on-palm-soft); font-size: .92rem; margin-top: .8rem; }
@media (max-width: 860px) { .site-footer .cols { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .site-footer .cols { grid-template-columns: 1fr; } }

/* utility spacing via stacks */
.stack { display: grid; gap: 1rem; align-content: start; }
.stack-lg { display: grid; gap: 2rem; align-content: start; }
.mt-2 { margin-top: 2rem; }
.mt-1 { margin-top: 1rem; }
.center { text-align: center; }
.hide-empty:empty { display: none; }
