/* Go Fund Yourself
   Layout: sticky header, marker-swash hero, card grids; fundraiser page = story column + sticky donate rail;
   admin = sidebar + tables. Tokens below drive every color, light and dark. */
:root {
  --bg: #F5F6FB; --surface: #FFFFFF; --surface-2: #EEF0F8; --ink: #13152C; --muted: #5A5E79; --line: #E1E3EE;
  --accent: #2E3BFF; --accent-ink: #FFFFFF; --accent-soft: #E7E9FF;
  --sun: #FFC83D; --sun-ink: #2A1F00;
  --good: #12804A; --good-soft: #E3F5EB; --warn: #8F5B00; --warn-soft: #FFF3D6; --bad: #C42B3A; --bad-soft: #FDE8EA;
  --shade: rgba(19, 21, 44, .45);
  --f-display: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --f-body: "Figtree", "Segoe UI", system-ui, -apple-system, sans-serif;
  --r: 14px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0C0E1C; --surface: #161930; --surface-2: #1E2240; --ink: #EEF0FF; --muted: #A3A7C6; --line: #2A2E4D;
    --accent: #8790FF; --accent-ink: #0C0E1C; --accent-soft: #23285A;
    --sun: #FFCF57; --sun-ink: #2A1F00;
    --good: #4CC98A; --good-soft: #12301F; --warn: #F2B84B; --warn-soft: #33270C; --bad: #FF7D89; --bad-soft: #3A1520;
    --shade: rgba(0, 0, 0, .6);
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.55 var(--f-body); }
img { max-width: 100%; display: block; }
h1, h2, h3 { font-family: var(--f-display); line-height: 1.12; margin: 0; text-wrap: balance; letter-spacing: -.015em; }
p { margin: 0; }
a { color: var(--accent); }
button, input, select, textarea { font: inherit; color: inherit; }
code { font-size: .9em; background: var(--surface-2); padding: 1px 6px; border-radius: 6px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.ico { flex: none; }
.wrap { max-width: 1180px; margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.narrow { max-width: 780px; }
.num { font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.nowrap { white-space: nowrap; }
.center { text-align: center; }
.sr-only { position: absolute !important; 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: 8px; z-index: 100; background: var(--ink); color: var(--bg); padding: 10px 14px; border-radius: 8px; }
.skip:focus { left: 12px; }
.eyebrow { font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.lede { font-size: 1.15rem; color: var(--muted); max-width: 60ch; }
.section { padding-block: 36px; }
.page-title { font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 800; letter-spacing: -.03em; margin-bottom: 12px; overflow-wrap: anywhere; }
.sub-title { font-size: 1.35rem; margin: 36px 0 14px; }
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.page-head > div { min-width: 0; }
.actions { display: flex; gap: 10px; flex-wrap: wrap; }
.actions.center { justify-content: center; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 999px; padding: 11px 20px; font-weight: 700; line-height: 1.2; text-decoration: none; cursor: pointer; white-space: nowrap; transition: filter .15s, background .15s, box-shadow .15s, color .15s; }
.btn .ico { width: 18px; height: 18px; }
.btn-sm { padding: 8px 14px; font-size: .92rem; }
.btn-xs { padding: 5px 11px; font-size: .82rem; }
.btn-lg { padding: 15px 26px; font-size: 1.06rem; }
.btn-block { width: 100%; }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { filter: brightness(1.1); }
.btn-sun { background: var(--sun); color: var(--sun-ink); }
.btn-sun:hover { filter: brightness(1.05); }
.btn-dark { background: var(--ink); color: var(--bg); }
.btn-dark:hover { filter: brightness(1.2); }
.btn-ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn-ghost:hover { box-shadow: inset 0 0 0 1.5px var(--accent); color: var(--accent); }
.btn-danger { background: transparent; color: var(--bad); box-shadow: inset 0 0 0 1.5px var(--bad); }
.btn-danger:hover { background: var(--bad-soft); }
.btn:disabled { opacity: .5; cursor: not-allowed; filter: none; }
.btn-text { background: none; border: 0; padding: 0; margin-top: 4px; color: var(--accent); font-weight: 600; cursor: pointer; text-decoration: underline; }

/* header */
.top { position: sticky; top: 0; z-index: 30; background: var(--surface); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; gap: 14px; padding-block: 12px; flex-wrap: wrap; }
.logo { display: flex; align-items: center; gap: 9px; font-family: var(--f-display); font-weight: 800; font-size: 1.28rem; color: var(--ink); text-decoration: none; letter-spacing: -.02em; }
.logo .dot { width: 28px; height: 28px; border-radius: 50%; background: var(--sun); color: var(--sun-ink); display: grid; place-items: center; font-size: 1rem; }
.nav { margin-left: auto; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.nav-link { color: var(--ink); text-decoration: none; font-weight: 600; padding: 8px 12px; border-radius: 999px; }
.nav-link:hover { background: var(--accent-soft); }
.menu { position: relative; }
.menu summary { list-style: none; display: flex; align-items: center; gap: 8px; cursor: pointer; padding: 4px 12px 4px 4px; border-radius: 999px; font-weight: 600; }
.menu summary::-webkit-details-marker { display: none; }
.menu summary:hover { background: var(--accent-soft); }
.menu-pop { position: absolute; right: 0; top: calc(100% + 8px); min-width: 240px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 18px 40px -18px var(--shade); padding: 8px; display: flex; flex-direction: column; z-index: 40; }
.menu-pop a, .menu-pop button { display: block; text-align: left; width: 100%; padding: 9px 12px; border-radius: 9px; color: var(--ink); text-decoration: none; background: none; border: 0; cursor: pointer; font-weight: 500; }
.menu-pop a:hover, .menu-pop button:hover { background: var(--accent-soft); }
.menu-head { padding: 8px 12px 10px; border-bottom: 1px solid var(--line); margin-bottom: 6px; display: flex; flex-direction: column; }
.menu-head small { color: var(--muted); overflow-wrap: anywhere; }
.announce { background: var(--ink); color: var(--bg); font-size: .92rem; font-weight: 600; text-align: center; }
.announce .wrap { padding-block: 8px; }
.flash { font-weight: 600; overflow-wrap: anywhere; }
.flash .wrap { padding-block: 12px; }
.flash-ok { background: var(--good-soft); color: var(--good); }
.flash-error { background: var(--bad-soft); color: var(--bad); }
.notice .wrap { padding-block: 12px; }
.notice-bad { background: var(--bad-soft); color: var(--bad); }
.alert { background: var(--bad-soft); color: var(--bad); border-radius: 10px; padding: 12px 14px; font-weight: 600; }
.note { background: var(--surface-2); border-radius: 10px; padding: 12px 14px; font-size: .92rem; color: var(--muted); display: flex; gap: 8px; align-items: flex-start; margin-bottom: 16px; }
.form .note, .auth-card .note, .field .note { margin-bottom: 0; }
.note .ico { width: 18px; height: 18px; margin-top: 2px; }
.note-demo { background: var(--warn-soft); color: var(--warn); display: block; }

/* hero */
.hero { background: var(--surface); border-bottom: 1px solid var(--line); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 40px; align-items: center; padding-block: 56px 48px; }
.hero h1 { font-size: clamp(2.8rem, 7.5vw, 5.4rem); font-weight: 800; letter-spacing: -.04em; line-height: 1; }
.swash { position: relative; white-space: nowrap; z-index: 0; }
.swash::after { content: ""; position: absolute; left: -.06em; right: -.1em; bottom: .04em; height: .4em; background: var(--sun); border-radius: .2em .5em .3em .6em; transform: rotate(-1.5deg); z-index: -1; }
.hero .lede { margin: 18px 0 26px; }
.hero-side { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.search { display: flex; align-items: center; gap: 10px; background: var(--bg); border: 1.5px solid var(--line); border-radius: 999px; padding: 6px 6px 6px 16px; min-width: 0; }
.search:focus-within { border-color: var(--accent); }
.search .ico { width: 20px; height: 20px; color: var(--muted); }
.search input { flex: 1; min-width: 0; border: 0; background: transparent; padding: 8px 0; outline: none; }
.toolbar .search { background: var(--surface); padding-right: 16px; }
.grow { flex: 1 1 260px; }
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; margin: 0; }
.stats div { background: var(--bg); padding: 16px; display: flex; flex-direction: column-reverse; gap: 4px; min-width: 0; }
.stats dd { margin: 0; font-family: var(--f-display); font-weight: 800; font-size: 1.65rem; letter-spacing: -.02em; }
.stats dt { font-size: .74rem; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; font-weight: 700; }

/* sections & cards */
.section-h { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 18px; flex-wrap: wrap; }
.section-h h2 { font-size: 1.7rem; }
.section-h a { font-weight: 600; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 22px; }
.card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; color: inherit; text-decoration: none; transition: transform .15s, box-shadow .15s; }
.card:hover { transform: translateY(-3px); box-shadow: 0 14px 30px -18px var(--shade); }
.card-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; min-width: 0; }
.card h3 { font-size: 1.12rem; font-weight: 700; overflow-wrap: anywhere; }
.by { font-size: .86rem; color: var(--muted); }
.raised { font-size: .92rem; color: var(--muted); margin-top: auto; }
.raised b { color: var(--ink); }
.cover { position: relative; aspect-ratio: 16 / 10; width: 100%; max-width: 100%; overflow: hidden; display: grid; place-items: center; background: #4B4F7A; }
.cover img { width: 100%; height: 100%; object-fit: cover; }
.cover .glyph { font-family: var(--f-display); font-weight: 800; font-size: 5rem; color: rgba(255, 255, 255, .92); line-height: 1; }
.cover .tag { position: absolute; left: 10px; bottom: 10px; background: rgba(10, 12, 28, .75); color: #fff; font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 4px 9px; border-radius: 999px; }
.badges { position: absolute; right: 10px; top: 10px; display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.badge { background: #fff; color: #13152C; font-size: .7rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; padding: 4px 9px; border-radius: 999px; }
.badge-bad { background: #C42B3A; color: #fff; }
.cover-big { border-radius: var(--r); aspect-ratio: 16 / 9; }
.cover-big .glyph { font-size: 9rem; }
.cover-sm { width: 112px; flex: none; border-radius: 10px; }
.cover-sm .glyph { font-size: 2.4rem; }
.cv-medical { background: linear-gradient(135deg, #D9415E, #8C1F49); }
.cv-emergency { background: linear-gradient(135deg, #E8562A, #9E2B12); }
.cv-memorial { background: linear-gradient(135deg, #6F5BD6, #3A2C86); }
.cv-education { background: linear-gradient(135deg, #2D7FE0, #1A4396); }
.cv-animals { background: linear-gradient(135deg, #E0892D, #A1520F); }
.cv-community { background: linear-gradient(135deg, #1FA37A, #0E6249); }
.cv-creative { background: linear-gradient(135deg, #C447B5, #7A1F7F); }
.cv-business { background: linear-gradient(135deg, #3C55D9, #1E2B8A); }
.cv-sports { background: linear-gradient(135deg, #3FA33A, #1D6420); }
.cv-travel { background: linear-gradient(135deg, #1AA0B8, #0B5F73); }
.cv-wishes { background: linear-gradient(135deg, #E2A41F, #9C6A08); }
.cv-other { background: linear-gradient(135deg, #5A6386, #2E3452); }
.bar { height: 8px; background: var(--accent-soft); border-radius: 99px; overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--accent); border-radius: 99px; }
.empty { background: var(--surface); border: 2px dashed var(--line); border-radius: var(--r); padding: 40px 24px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.empty h3 { font-size: 1.3rem; }
.empty p { color: var(--muted); max-width: 48ch; }
.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
.cat { display: flex; align-items: flex-end; min-height: 84px; padding: 14px; border-radius: 12px; color: #fff; font-weight: 700; font-family: var(--f-display); font-size: 1.1rem; text-decoration: none; transition: transform .15s; }
.cat:hover { transform: translateY(-2px); }
.how { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; counter-reset: how; }
.how li { counter-increment: how; border-top: 3px solid var(--ink); padding-top: 16px; }
.how li::before { content: counter(how); font-family: var(--f-display); font-weight: 800; font-size: 2.2rem; color: var(--accent); display: block; line-height: 1; margin-bottom: 8px; }
.how b { font-family: var(--f-display); font-size: 1.2rem; display: block; margin-bottom: 6px; }
.how p { color: var(--muted); }
.band { background: var(--accent); color: var(--accent-ink); margin-top: 20px; }
.band-inner { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; padding-block: 44px; }
.band h2 { font-size: clamp(1.6rem, 4vw, 2.4rem); font-weight: 800; }

/* discover */
.toolbar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 14px; }
.select { background: var(--surface); border: 1.5px solid var(--line); border-radius: 999px; padding: 10px 14px; }
.chips { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 8px; margin-bottom: 10px; scrollbar-width: thin; }
.chip-link { flex: none; border: 1.5px solid var(--line); background: var(--surface); border-radius: 999px; padding: 7px 14px; font-weight: 600; font-size: .9rem; color: var(--muted); text-decoration: none; }
.chip-link:hover { border-color: var(--accent); color: var(--accent); }
.chip-link[aria-current="page"] { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.result-count { margin-bottom: 16px; }
.pager { display: flex; justify-content: center; align-items: center; gap: 14px; margin-top: 28px; }

/* fundraiser page */
.camp { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 40px; align-items: start; padding-block: 28px 64px; }
.camp-title { font-size: clamp(1.8rem, 4.4vw, 2.9rem); font-weight: 800; letter-spacing: -.03em; margin-bottom: 18px; overflow-wrap: anywhere; }
.org-line { display: flex; gap: 12px; align-items: center; padding-block: 18px; border-bottom: 1px solid var(--line); }
.org-line p { min-width: 0; }
.meta-row { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; padding-block: 14px; font-size: .92rem; }
.pill { background: var(--accent-soft); color: var(--accent); font-weight: 700; font-size: .78rem; padding: 4px 11px; border-radius: 999px; text-transform: uppercase; letter-spacing: .05em; text-decoration: none; }
.story { padding-block: 8px 18px; border-bottom: 1px solid var(--line); max-width: 68ch; font-size: 1.04rem; }
.story p { margin: 0 0 1em; overflow-wrap: anywhere; }
.block { padding-block: 24px; border-bottom: 1px solid var(--line); }
.block h2 { font-size: 1.4rem; margin-bottom: 14px; display: flex; align-items: center; gap: 10px; }
.count { font-family: var(--f-body); font-size: .82rem; background: var(--accent-soft); color: var(--accent); padding: 2px 9px; border-radius: 999px; font-weight: 700; }
.update { padding-block: 14px; border-top: 1px solid var(--line); }
.update:first-of-type { border-top: 0; padding-top: 0; }
.update-meta { font-size: .85rem; color: var(--muted); font-weight: 600; margin-bottom: 6px; }
.update-body p { margin: 0 0 .8em; overflow-wrap: anywhere; }
.update-body p:last-child { margin-bottom: 0; }
.words { list-style: none; margin: 12px 0 0; padding: 0; }
.word { display: flex; gap: 12px; padding-block: 14px; border-top: 1px solid var(--line); }
.word:first-child { border-top: 0; }
.word-body { min-width: 0; flex: 1; }
.word-text { margin: 4px 0 8px; overflow-wrap: anywhere; }
.heart { display: inline-flex; align-items: center; gap: 5px; background: none; border: 1.5px solid var(--line); border-radius: 999px; padding: 3px 10px; color: var(--muted); cursor: pointer; text-decoration: none; font-size: .85rem; font-weight: 600; }
.heart .ico { width: 15px; height: 15px; }
.heart:hover, .heart.on { color: #D9415E; border-color: #D9415E; }
.report-line { padding-top: 18px; font-size: .9rem; }
.report-line a { color: var(--muted); display: inline-flex; gap: 6px; align-items: center; }
.report-line .ico { width: 16px; height: 16px; }
.rail { position: sticky; top: 84px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 22px; box-shadow: 0 20px 44px -30px var(--shade); display: flex; flex-direction: column; gap: 14px; }
.big { font-family: var(--f-display); font-weight: 800; font-size: 2.1rem; letter-spacing: -.02em; line-height: 1; }
.rail .bar { height: 10px; }
.don-list { list-style: none; margin: 0; padding: 0; }
.don { display: flex; align-items: center; gap: 10px; padding-block: 8px; }
.don-list-lg .don { padding-block: 12px; border-bottom: 1px solid var(--line); }
.don-who { flex: 1; min-width: 0; display: flex; flex-direction: column; font-size: .93rem; }
.don-who b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.don-who .muted { font-size: .82rem; }
.don-amt { font-weight: 700; }
.highlights { display: flex; flex-direction: column; gap: 8px; }
.hl { display: flex; gap: 10px; align-items: center; background: var(--accent-soft); border-radius: 10px; padding: 10px 12px; font-size: .9rem; }
.hl div { display: flex; flex-direction: column; min-width: 0; }
.guarantee { display: flex; gap: 8px; font-size: .82rem; color: var(--muted); align-items: flex-start; }
.guarantee .ico { width: 18px; height: 18px; color: var(--good); }
.share-pop summary { list-style: none; }
.share-pop summary::-webkit-details-marker { display: none; }
.share-pop[open] summary { margin-bottom: 10px; }
.share { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.copy-row { display: flex; gap: 8px; }
.copy-row .input { flex: 1; min-width: 0; font-size: .88rem; padding: 8px 12px; }
.share-links { display: flex; flex-wrap: wrap; gap: 8px; }
.sbtn { flex: 1 1 auto; text-align: center; border: 1.5px solid var(--line); border-radius: 999px; padding: 7px 12px; font-weight: 600; font-size: .88rem; color: var(--ink); text-decoration: none; }
.sbtn:hover { border-color: var(--accent); color: var(--accent); }
.mobile-cta { display: none; }
.launch { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; align-items: center; background: var(--sun); color: var(--sun-ink); border-radius: var(--r); padding: 24px; margin-top: 24px; }
.launch h2 { font-size: 1.6rem; margin-bottom: 6px; }
.launch .input { background: #fff; color: #13152C; border-color: rgba(42, 31, 0, .25); }
.launch .sbtn { color: var(--sun-ink); border-color: rgba(42, 31, 0, .3); }
.launch .btn-ghost { color: var(--sun-ink); box-shadow: inset 0 0 0 1.5px rgba(42, 31, 0, .35); }

/* avatars */
.avatar { width: 44px; height: 44px; border-radius: 50%; flex: none; display: grid; place-items: center; font-weight: 700; font-size: .95rem; color: #fff; background: hsl(var(--h, 230) 55% 45%); object-fit: cover; }
.avatar.sm { width: 34px; height: 34px; font-size: .78rem; }
.avatar.lg { width: 72px; height: 72px; font-size: 1.4rem; }
.avatar.anon { background: var(--accent-soft); color: var(--accent); }
.avatar.anon .ico { width: 16px; height: 16px; }

/* forms */
.form { display: flex; flex-direction: column; gap: 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 24px; margin-bottom: 22px; }
.form h2 { font-size: 1.3rem; }
.stack { display: flex; flex-direction: column; gap: 14px; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; border: 0; padding: 0; margin: 0; }
.label, .field > label, .field legend, .label-row label { font-weight: 700; font-size: .93rem; padding: 0; }
.field legend { margin-bottom: 6px; }
.label-row { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; }
.label-row a { font-size: .88rem; font-weight: 600; }
.hint { font-size: .84rem; color: var(--muted); font-weight: 400; }
.fine { font-size: .82rem; color: var(--muted); }
.input { width: 100%; min-width: 0; background: var(--bg); border: 1.5px solid var(--line); border-radius: 10px; padding: 11px 13px; }
.input:focus { border-color: var(--accent); outline: none; }
textarea.input { resize: vertical; min-height: 110px; line-height: 1.5; }
.row2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; }
.money { position: relative; }
.money span { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: var(--muted); font-weight: 700; }
.money .input { padding-left: 28px; }
.money-big { display: flex; align-items: center; gap: 6px; border: 1.5px solid var(--line); border-radius: 14px; padding: 6px 16px; background: var(--bg); }
.money-big:focus-within { border-color: var(--accent); }
.money-big span { font-family: var(--f-display); font-size: 2rem; font-weight: 800; color: var(--muted); }
.money-big input { flex: 1; min-width: 0; width: 100%; border: 0; background: transparent; font-family: var(--f-display); font-size: 2.4rem; font-weight: 800; padding: 4px 0; outline: none; font-variant-numeric: tabular-nums; }
.money-big .cur { font-family: var(--f-body); font-size: .95rem; font-weight: 700; }
.amounts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-bottom: 4px; }
.amt { border: 1.5px solid var(--line); background: var(--bg); border-radius: 10px; padding: 12px; font-weight: 700; cursor: pointer; }
.amt:hover { border-color: var(--accent); }
.amt[aria-pressed="true"] { border-color: var(--accent); background: var(--accent-soft); color: var(--accent); }
.check { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; }
.check input { width: 18px; height: 18px; margin: 3px 0 0; accent-color: var(--accent); flex: none; }
.summary { background: var(--surface-2); border-radius: 12px; padding: 14px 16px; display: flex; flex-direction: column; gap: 6px; }
.summary div { display: flex; justify-content: space-between; gap: 12px; }
.summary .total { border-top: 1px solid var(--line); padding-top: 8px; margin-top: 2px; font-weight: 800; }
.donate-head { display: flex; gap: 16px; align-items: center; margin: 14px 0 22px; }
.donate-head > div:last-child { min-width: 0; }
.donate-head h1 { font-size: 1.5rem; margin: 2px 0; overflow-wrap: anywhere; }
.back { display: inline-block; font-weight: 600; text-decoration: none; margin-bottom: 8px; }
.radio-list { display: flex; flex-direction: column; gap: 8px; }
.radio { display: flex; gap: 10px; align-items: center; border: 1.5px solid var(--line); border-radius: 10px; padding: 10px 12px; cursor: pointer; font-weight: 500; }
.radio:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.radio input { accent-color: var(--accent); }
.switch { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; }
.switch input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--accent); flex: none; }
.switch span { display: flex; flex-direction: column; }
.switch small { color: var(--muted); font-size: .88rem; }
.form.danger { border-color: var(--bad); }
.imgpick .drop { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; border: 2px dashed var(--line); border-radius: 12px; padding: 20px; text-align: center; cursor: pointer; min-height: 140px; }
.imgpick .drop:hover, .imgpick .drop.over { border-color: var(--accent); background: var(--accent-soft); }
.imgpick .drop img { max-height: 220px; border-radius: 8px; object-fit: cover; }
.drop-text { display: flex; flex-direction: column; gap: 2px; }
.avatar-edit { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.avatar-edit .imgpick { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }

/* start wizard */
.steps { display: flex; gap: 6px; list-style: none; padding: 0; margin: 0 0 4px; counter-reset: st; }
.steps li { flex: 1; counter-increment: st; font-size: .82rem; font-weight: 700; color: var(--muted); border-top: 4px solid var(--line); padding-top: 8px; min-width: 0; }
.steps li::before { content: counter(st) ". "; }
.steps li.on { color: var(--ink); border-color: var(--accent); }
.steps li.done { border-color: var(--accent); }
.step { border: 0; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.step > legend { font-family: var(--f-display); font-size: 1.5rem; font-weight: 800; margin-bottom: 14px; padding: 0; }
.js .step:not(.on) { display: none; }
.step-nav { display: flex; justify-content: space-between; gap: 10px; }
html:not(.js) [data-next], html:not(.js) [data-back] { display: none; }
.pick-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 8px; }
.pick { position: relative; cursor: pointer; }
.pick input { position: absolute; opacity: 0; inset: 0; cursor: pointer; margin: 0; }
.pick span { display: block; text-align: center; border: 1.5px solid var(--line); border-radius: 999px; padding: 10px 12px; font-weight: 600; }
.pick input:checked + span { border-color: var(--accent); background: var(--accent-soft); color: var(--accent); }
.pick input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 2px; }
.who { display: flex; flex-direction: column; gap: 10px; }
.who-opt { display: flex; gap: 12px; align-items: flex-start; border: 1.5px solid var(--line); border-radius: 12px; padding: 14px; cursor: pointer; }
.who-opt:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.who-opt input { margin-top: 4px; accent-color: var(--accent); }
.who-opt span { display: flex; flex-direction: column; }
.who-opt small { color: var(--muted); }

/* sign in pages */
.auth { display: grid; place-items: center; padding-block: 48px 72px; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.auth-card { width: 100%; max-width: 440px; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 32px; box-shadow: 0 30px 60px -40px var(--shade); display: flex; flex-direction: column; gap: 14px; }
.auth-card h1 { font-size: 1.9rem; font-weight: 800; }
.auth-alt { text-align: center; font-size: .95rem; }
.auth-admin { background: linear-gradient(180deg, #13152C 0 230px, transparent 230px); }
.auth-admin .auth-card { border-top: 6px solid var(--sun); }

/* tables, tabs, panels */
.table-wrap { position: relative; overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); margin-bottom: 10px; }
.table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.table th { text-align: left; font-size: .74rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 700; padding: 12px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.table td { padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table tr:last-child td { border-bottom: 0; }
.table .r { text-align: right; }
.msg-cell { max-width: 320px; min-width: 180px; overflow-wrap: anywhere; }
.strike { text-decoration: line-through; }
.act { display: flex; flex-wrap: wrap; gap: 6px; align-items: flex-start; }
.act form { display: inline; margin: 0; }
.user-cell { display: flex; gap: 10px; align-items: center; min-width: 200px; }
.pop { position: relative; }
.pop summary, .thank summary { list-style: none; }
.pop summary::-webkit-details-marker, .thank summary::-webkit-details-marker { display: none; }
.pop[open] > form { position: absolute; right: 0; top: calc(100% + 6px); z-index: 20; width: 270px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 12px; box-shadow: 0 18px 40px -18px var(--shade); }
.thank[open] > form { margin-top: 8px; min-width: 240px; }
.chip { display: inline-block; font-size: .72rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; padding: 3px 9px; border-radius: 999px; background: var(--surface-2); color: var(--muted); white-space: nowrap; }
.chip-good { background: var(--good-soft); color: var(--good); }
.chip-warn { background: var(--warn-soft); color: var(--warn); }
.chip-bad { background: var(--bad-soft); color: var(--bad); }
.chip-accent { background: var(--accent-soft); color: var(--accent); }
.row-meta { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; margin: 0 0 24px; }
.tiles div { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 16px 18px; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.tiles dt { font-size: .76rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 700; }
.tiles dd { margin: 0; font-family: var(--f-display); font-size: 1.7rem; font-weight: 800; letter-spacing: -.02em; }
.tiles dd.small { font-family: var(--f-body); font-size: .85rem; font-weight: 500; letter-spacing: 0; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 20px; margin-bottom: 22px; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.panel h2 { font-size: 1.2rem; }
.panel h3 { font-size: 1rem; margin-top: 8px; }
.two-col { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 22px; margin-bottom: 22px; }
.two-col .panel { margin-bottom: 0; }
.checklist { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 8px; }
.chart { display: flex; flex-direction: column; gap: 8px; }
.chart-top, .chart-axis { display: flex; justify-content: space-between; gap: 12px; }
.chart-bars { display: flex; align-items: flex-end; gap: 3px; height: 150px; border-bottom: 1px solid var(--line); background: repeating-linear-gradient(to top, transparent 0 37px, var(--line) 37px 38px); }
.chart-col { flex: 1; height: 100%; display: flex; align-items: flex-end; }
.chart-col i { display: block; width: 100%; background: var(--accent); border-radius: 4px 4px 0 0; min-height: 2px; }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 22px; overflow-x: auto; overflow-y: hidden; scrollbar-width: thin; }
.tabs-tight { gap: 0; }
.tabs-tight a { padding-inline: 8px; }
@media (min-width: 901px) { .tabs-tight { flex-wrap: wrap; overflow-x: visible; } }
.tabs a { padding: 10px 14px; font-weight: 600; color: var(--muted); text-decoration: none; border-bottom: 3px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.tabs a:hover { color: var(--ink); }
.tabs a[aria-current="page"] { color: var(--ink); border-color: var(--accent); }
.rows { list-style: none; margin: 0 0 10px; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.row-item { display: flex; gap: 16px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 12px; }
.row-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.row-title { font-weight: 700; color: var(--ink); text-decoration: none; font-size: 1.05rem; overflow-wrap: anywhere; }
.row-title:hover { color: var(--accent); }
.row-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.update-row, .report { display: flex; justify-content: space-between; gap: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 16px; }
.update-row > div, .report-main { min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.report-text { overflow-wrap: anywhere; }
.team-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.team-list li { display: flex; gap: 12px; align-items: center; }
.team-list li > div { flex: 1; min-width: 0; display: flex; flex-direction: column; overflow-wrap: anywhere; }

/* admin */
.admin { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 32px; padding-block: 28px 64px; align-items: start; }
.admin-nav, .admin-main { min-width: 0; }
.admin-nav { position: sticky; top: 84px; }
.admin-nav nav { display: flex; flex-direction: column; gap: 2px; }
.admin-nav a { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 9px 12px; border-radius: 10px; color: var(--ink); text-decoration: none; font-weight: 600; }
.admin-nav a:hover { background: var(--accent-soft); }
.admin-nav a[aria-current="page"] { background: var(--ink); color: var(--bg); }
.nbadge { background: var(--bad); color: #fff; font-size: .72rem; font-weight: 800; border-radius: 999px; padding: 1px 8px; }
.mini { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.mini li { display: flex; justify-content: space-between; gap: 12px; padding-block: 9px; border-top: 1px solid var(--line); font-size: .92rem; }
.mini li:first-child { border-top: 0; }
.mini li > :first-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mail { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; margin-bottom: 10px; }
.mail summary { display: flex; justify-content: space-between; gap: 12px; padding: 12px 14px; cursor: pointer; list-style: none; }
.mail summary::-webkit-details-marker { display: none; }
.mail summary > span:first-child { min-width: 0; overflow-wrap: anywhere; }
.mail pre { margin: 0; padding: 0 14px 14px; white-space: pre-wrap; overflow-wrap: anywhere; font-family: inherit; font-size: .92rem; color: var(--muted); }
.attention { display: flex; flex-direction: column; gap: 8px; margin-bottom: 20px; }
.attention a { display: flex; justify-content: space-between; align-items: center; gap: 12px; background: var(--warn-soft); color: var(--warn); font-weight: 700; padding: 12px 16px; border-radius: 12px; text-decoration: none; }

/* receipt, thank-you, errors */
.receipt { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 28px; display: flex; flex-direction: column; gap: 16px; }
.receipt-head { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; border-bottom: 2px solid var(--ink); padding-bottom: 12px; }
.logo-sm { font-family: var(--f-display); font-weight: 800; font-size: 1.15rem; }
.kv { margin: 0; display: flex; flex-direction: column; }
.kv div { display: flex; justify-content: space-between; gap: 16px; padding-block: 9px; border-bottom: 1px solid var(--line); }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; text-align: right; overflow-wrap: anywhere; min-width: 0; }
.kv .kv-total { font-weight: 800; border-bottom: 2px solid var(--ink); }
.thanks { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 16px; }
.thanks .lede { margin: 0 auto; }
.thanks-mark { width: 72px; height: 72px; border-radius: 50%; background: var(--sun); color: var(--sun-ink); display: grid; place-items: center; }
.thanks-mark .ico { width: 34px; height: 34px; }
.card-flat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 22px; text-align: left; width: 100%; display: flex; flex-direction: column; gap: 10px; }
.center-page { text-align: center; padding-block: 72px; display: flex; flex-direction: column; align-items: center; gap: 14px; }

/* footer */
.foot { border-top: 1px solid var(--line); background: var(--surface); margin-top: 40px; }
.foot .wrap { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding-block: 28px; font-size: .9rem; color: var(--muted); }
.foot nav { display: flex; gap: 16px; flex-wrap: wrap; }
.foot nav a { color: var(--muted); text-decoration: none; font-weight: 600; }
.foot nav a:hover { color: var(--accent); }
.foot .fine { width: 100%; }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); padding-block: 36px 32px; gap: 24px; }
  .camp { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .rail { position: static; }
  .mobile-cta { display: flex; flex-direction: column; gap: 10px; padding-block: 16px; border-bottom: 1px solid var(--line); }
  .admin { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .admin-nav { position: static; }
  .admin-nav nav { flex-direction: row; overflow-x: auto; padding-bottom: 6px; }
  .admin-nav a { flex: none; }
  .two-col { grid-template-columns: minmax(0, 1fr); }
  .launch { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 600px) {
  .row2 { grid-template-columns: 1fr; }
  .how { grid-template-columns: 1fr; }
  .stats dd { font-size: 1.3rem; }
  .nav .nav-link { padding: 8px; }
  .menu-name { display: none; }
  .row-item { flex-wrap: wrap; }
  .cover-sm { width: 84px; }
  .amounts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .auth-card { padding: 24px; }
  .form { padding: 18px; }
  .update-row, .report { flex-direction: column; }
  .pop[open] > form { right: auto; left: 0; }
}
@media print {
  .top, .foot, .flash, .announce, .no-print, .skip { display: none !important; }
  body { background: #fff; color: #000; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}

/* ================= Donate vs. Invest =================
   Donate keeps the cobalt and sunflower look. Invest switches the accent to green on every Invest page,
   adds a green strip and an "Invest" tag next to the logo, and labels everything "Investment". */
:root {
  --invest: #0A7A55; --invest-ink: #FFFFFF; --invest-soft: #DDF3EA; --invest-deep: #0B3A2C; --invest-swash: #9BE8C9;
  --sun-soft: #FFF3CF; --sun-soft-ink: #5A4300;
}
@media (prefers-color-scheme: dark) {
  :root { --invest: #43D39E; --invest-ink: #04130D; --invest-soft: #0E3326; --invest-deep: #0A2E23; --invest-swash: #11654A; --sun-soft: #33270C; --sun-soft-ink: #F2D68A; }
}
.sec-invest { --accent: var(--invest); --accent-ink: var(--invest-ink); --accent-soft: var(--invest-soft); }
.sec-invest .logo .dot { background: var(--invest); color: var(--invest-ink); }
.logo-tag { font-family: var(--f-body); font-size: .68rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; background: var(--invest); color: var(--invest-ink); padding: 3px 8px; border-radius: 999px; }
.nav-donate[aria-current="page"] { background: var(--sun-soft); color: var(--sun-soft-ink); }
.nav-invest[aria-current="page"] { background: var(--invest-soft); color: var(--invest); }
.strip { font-size: .9rem; }
.strip .wrap { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; padding-block: 9px; }
.strip a { font-weight: 700; color: inherit; }
.strip-tag { font-weight: 800; letter-spacing: .08em; text-transform: uppercase; font-size: .72rem; padding: 3px 9px; border-radius: 999px; }
.strip-donate { background: var(--sun-soft); color: var(--sun-soft-ink); }
.strip-donate .strip-tag { background: var(--sun); color: var(--sun-ink); }
.strip-invest { background: var(--invest-deep); color: #DDF3EA; }
.strip-invest .strip-tag { background: #43D39E; color: #04130D; }
.kind { display: inline-flex; align-self: flex-start; align-items: center; font-family: var(--f-body); font-size: .68rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; padding: 3px 9px; border-radius: 999px; line-height: 1.4; white-space: nowrap; }
.kind-donate { background: var(--sun-soft); color: var(--sun-soft-ink); }
.kind-invest { background: var(--invest-soft); color: var(--invest); }
.group-title { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.btn-invest { background: var(--invest); color: var(--invest-ink); }
.btn-invest:hover { filter: brightness(1.1); }
.split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; margin-bottom: 22px; }
.split-card { border-radius: 18px; padding: 24px; display: flex; flex-direction: column; gap: 12px; border: 1px solid var(--line); background: var(--surface); min-width: 0; }
.split-donate { border-top: 6px solid var(--sun); }
.split-invest { border-top: 6px solid var(--invest); }
.split-card h3 { font-size: 1.5rem; }
.split-card ul { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; color: var(--muted); }
.section-invest { border-top: 4px solid var(--invest); margin-top: 12px; }
.section-note { margin: -8px 0 16px; }
.note-invest { background: var(--invest-soft); color: var(--ink); display: block; }
.note-kind { align-items: center; flex-wrap: wrap; }
.tell-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.tell-list li { display: flex; gap: 12px; align-items: flex-start; }
.compare th[scope="col"] { font-size: .8rem; }
.table th[scope="row"] { text-transform: none; letter-spacing: 0; font-size: .92rem; color: var(--ink); font-weight: 700; white-space: normal; vertical-align: top; }
.compare td { min-width: 200px; }
.faq { display: flex; flex-direction: column; gap: 10px; margin-bottom: 24px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; }
.faq summary { font-weight: 700; cursor: pointer; }
.faq details p { margin-top: 10px; color: var(--muted); }
.plain-list { margin: 0 0 1em; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; }
.learn h2 { font-size: 1.25rem; margin: 26px 0 8px; }
.learn p { max-width: 68ch; }

/* invest hero and browse */
.ih1 { font-size: clamp(2.2rem, 5.4vw, 3.9rem) !important; }
.swash-invest::after { background: var(--invest-swash); }
.compare-link { display: flex; flex-direction: column; gap: 2px; padding: 16px; border-radius: var(--r); border: 1.5px solid var(--line); text-decoration: none; color: var(--ink); background: var(--bg); }
.compare-link span { color: var(--accent); font-weight: 600; }
.how-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.how-3x2 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.band-invest { background: var(--invest-deep); color: #EAFBF3; }
.clogo { width: 64px; height: 64px; border-radius: 14px; flex: none; display: grid; place-items: center; font-family: var(--f-display); font-weight: 800; font-size: 1.3rem; color: #fff; background: hsl(var(--h, 160) 45% 32%); object-fit: cover; }
.clogo.sm { width: 40px; height: 40px; border-radius: 10px; font-size: .85rem; }
.ocover-logo { position: absolute; left: 12px; bottom: 12px; padding: 3px; background: #fff; border-radius: 12px; display: flex; }
.iv-0 { background: linear-gradient(135deg, #12936A, #0B3A2C); }
.iv-1 { background: linear-gradient(135deg, #1B8FA3, #0B3F4F); }
.iv-2 { background: linear-gradient(135deg, #4D8F2E, #1F4512); }
.iv-3 { background: linear-gradient(135deg, #2F7D7A, #12393A); }
.iv-4 { background: linear-gradient(135deg, #3E6FA8, #18304F); }
.iv-5 { background: linear-gradient(135deg, #6E8F3A, #2E3F16); }
.obar { position: relative; height: 10px; background: var(--invest-soft); border-radius: 99px; }
.obar i { display: block; height: 100%; background: var(--invest); border-radius: 99px; }
.obar-target { position: absolute; top: -4px; bottom: -4px; width: 3px; background: var(--ink); border-radius: 2px; transform: translateX(-50%); }
.obar-legend { display: flex; justify-content: space-between; gap: 8px; margin-top: 4px; }
.oterms { font-size: .86rem; font-weight: 700; }
.ofoot { display: flex; justify-content: space-between; gap: 8px; }

/* raise page */
.offer { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 40px; align-items: start; padding-block: 28px 64px; }
.ohead { display: flex; gap: 16px; align-items: flex-start; margin-bottom: 18px; }
.ohead-text { min-width: 0; }
.otitle { margin-bottom: 6px; }
.ohead .lede { font-size: 1.05rem; }
.ostats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; text-align: center; }
.ostats div { background: var(--bg); border-radius: 10px; padding: 10px 6px; display: flex; flex-direction: column; min-width: 0; }
.ostats b { font-family: var(--f-display); font-size: 1.05rem; overflow-wrap: anywhere; }
.ostats span { font-size: .75rem; color: var(--muted); }
.rail-h { font-size: 1rem; margin-top: 4px; }
.mine { background: var(--accent-soft); border-radius: 10px; padding: 10px 12px; font-size: .92rem; }
.guarantee-risk .ico { color: var(--warn); }
.pitch h2 { font-size: 1.35rem; margin: 26px 0 10px; }
.pitch h3 { font-size: 1.1rem; margin: 6px 0; }
.pitch > p, .pitch .update-body p { max-width: 68ch; }
.pitch p { margin: 0 0 1em; overflow-wrap: anywhere; }
.highlights-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.highlights-list li { display: flex; gap: 10px; align-items: flex-start; }
.highlights-list .ico { color: var(--accent); margin-top: 3px; }
.notice-info { background: var(--accent-soft); color: var(--ink); }
.notice-good { background: var(--good-soft); color: var(--good); }
.notice-box { background: var(--warn-soft); color: var(--warn); border-radius: 12px; padding: 14px 16px; margin-top: 18px; }
.notice-box ul { margin: 6px 0 0; padding-left: 20px; }
.funds { display: flex; flex-direction: column; gap: 12px; }
.fund-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; font-size: .92rem; }
.fund-row .bar { grid-column: 1 / -1; }
.perks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.perk { display: flex; gap: 12px; justify-content: space-between; align-items: center; border: 1.5px solid var(--line); border-radius: 12px; padding: 10px 14px; }
.perk div { display: flex; flex-direction: column; min-width: 0; }
.perk.on { border-color: var(--accent); background: var(--accent-soft); }
.perk-min { font-weight: 700; white-space: nowrap; }
.team-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.member { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.member-head { display: flex; gap: 12px; align-items: center; }
.qa { list-style: none; margin: 16px 0 0; padding: 0; }
.qa-item { padding-block: 16px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 6px; }
.qa-item.is-hidden { opacity: .6; }
.qa-text p { margin: 0 0 .6em; overflow-wrap: anywhere; }
.qa-answer { margin: 6px 0 0 22px; padding: 12px 14px; background: var(--accent-soft); border-radius: 12px; }
.qa-actions { display: flex; gap: 12px; align-items: flex-start; flex-wrap: wrap; }
.tag { font-size: .7rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; padding: 2px 8px; border-radius: 999px; }
.tag-founder { background: var(--accent); color: var(--accent-ink); }
.tag-team { background: var(--ink); color: var(--bg); }
.ask { margin-bottom: 8px; }
.doc-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.doc-list li { display: flex; flex-direction: column; gap: 2px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; }
.doc-list a { font-weight: 700; }
.risk-box { background: var(--warn-soft); color: var(--warn); border-radius: var(--r); padding: 18px 20px; display: flex; gap: 12px; align-items: flex-start; }
.risk-box .ico { width: 22px; height: 22px; margin-top: 2px; }
.risk-box a { color: inherit; font-weight: 700; }

/* documents */
.doc { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 32px; display: flex; flex-direction: column; gap: 12px; max-width: 880px; }
.doc h2 { font-size: 1.15rem; margin-top: 12px; }
.doc h3 { font-size: 1rem; margin-top: 6px; }
.doc p { max-width: 72ch; overflow-wrap: anywhere; }
.doc-title { font-size: clamp(1.5rem, 3.4vw, 2.1rem); font-weight: 800; }
.doc-banner { background: var(--warn-soft); color: var(--warn); font-weight: 700; border-radius: 10px; padding: 10px 14px; }
.sig { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; border-top: 2px solid var(--ink); padding-top: 16px; margin-top: 12px; }
.sig-name { font-family: "Brush Script MT", "Segoe Script", cursive; font-size: 1.6rem; font-weight: 400; }

/* founder application and management */
.timeline { list-style: none; display: flex; padding: 0; margin: 0 0 22px; overflow-x: auto; }
.timeline li { flex: 1; min-width: 104px; border-top: 4px solid var(--line); padding: 8px 10px 0 0; font-size: .82rem; color: var(--muted); font-weight: 600; }
.timeline li.done { border-color: var(--accent); color: var(--ink); }
.timeline li.on { border-color: var(--accent); color: var(--ink); font-weight: 800; }
.timeline small { display: block; color: var(--muted); font-weight: 400; }
.steps-links li a { color: inherit; text-decoration: none; }
.steps-links li a:hover { text-decoration: underline; }
fieldset.plain { border: 0; padding: 0; margin: 0; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
fieldset.plain:disabled { opacity: .75; }
.pct { display: flex; align-items: center; gap: 8px; }
.pct .input { flex: 1; min-width: 0; }
.pct span { color: var(--muted); font-weight: 700; }
.rowset { display: flex; flex-direction: column; gap: 8px; }
.rowset-row { display: grid; grid-template-columns: minmax(0, 1fr) 130px; gap: 10px; }
.team-row, .perk-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; border: 1.5px dashed var(--line); border-radius: 12px; padding: 12px; }
.team-row textarea, .perk-row .full { grid-column: 1 / -1; }
.team-row textarea { min-height: 64px; }
.pct-total { font-weight: 700; margin: 0; }
.pct-total.bad { color: var(--bad); }
.check-steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.check-steps li { display: flex; gap: 10px; align-items: center; }
.check-steps li.ok .ico { color: var(--good); }
.todo-dot { width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--line); display: inline-block; margin: 0 2px; }
.drop-square img { max-width: 160px; aspect-ratio: 1; }
.check-pad { align-self: end; padding-bottom: 12px; }
.warn-line { color: var(--bad); font-weight: 600; font-size: .9rem; margin: 0; }
.sig-input { font-family: "Brush Script MT", "Segoe Script", cursive; font-size: 1.4rem; }
.launch-invest { background: var(--invest); color: var(--invest-ink); margin-bottom: 18px; }
.launch-invest .btn-ghost { color: var(--invest-ink); box-shadow: inset 0 0 0 1.5px currentColor; }
.checklist li { line-height: 1.45; }

/* admin, invest side */
.admin-group { font-size: .7rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin: 14px 12px 4px; }
.admin-group:first-child { margin-top: 0; }
.tabs-wrap { flex-wrap: wrap; }
.app-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 18px; display: flex; flex-direction: column; gap: 12px; }
.app-head { display: flex; gap: 12px; align-items: flex-start; }
.app-head > div { min-width: 0; }
.kv-tight div { padding-block: 6px; }

/* footer columns */
.foot-cols { display: grid; grid-template-columns: 1.3fr repeat(4, minmax(0, 1fr)); gap: 24px; width: 100%; }
.foot-cols h3 { font-family: var(--f-body); font-size: .8rem; margin-bottom: 10px; color: var(--ink); text-transform: uppercase; letter-spacing: .08em; }
.foot-cols nav { flex-direction: column; gap: 8px; }

@media (max-width: 900px) {
  .offer { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .offer .rail { position: static; }
  .split { grid-template-columns: minmax(0, 1fr); }
  .how-4, .how-3x2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .foot-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .admin-group { margin: 0; align-self: center; padding: 0 6px 0 12px; flex: none; }
}
@media (max-width: 600px) {
  .how-4, .how-3x2 { grid-template-columns: minmax(0, 1fr); }
  .rowset-row { grid-template-columns: minmax(0, 1fr) 96px; }
  .team-row, .perk-row { grid-template-columns: minmax(0, 1fr); }
  .doc { padding: 20px; }
  .sig { grid-template-columns: minmax(0, 1fr); }
  .foot-cols { grid-template-columns: minmax(0, 1fr); }
  .ohead { flex-direction: column; }
  .qa-answer { margin-left: 8px; }
}

/* ================= Rewards =================
   Rewards pages switch the accent to berry, add a berry strip and a "Rewards" tag next to the logo, and label
   everything as projects, backers and pledges. All-or-nothing, with a platform fee on funded projects. */
:root { --rewards: #B0124F; --rewards-ink: #FFFFFF; --rewards-soft: #FCE6EF; --rewards-deep: #4A0B27; --rewards-swash: #FFB1CF; }
@media (prefers-color-scheme: dark) {
  :root { --rewards: #FF79AE; --rewards-ink: #1C0410; --rewards-soft: #3A1226; --rewards-deep: #3A0A20; --rewards-swash: #8E1F55; }
}
.sec-rewards { --accent: var(--rewards); --accent-ink: var(--rewards-ink); --accent-soft: var(--rewards-soft); }
.sec-rewards .logo .dot { background: var(--rewards); color: var(--rewards-ink); }
.logo-tag-rewards { background: var(--rewards); color: var(--rewards-ink); }
.nav-rewards[aria-current="page"] { background: var(--rewards-soft); color: var(--rewards); }
.strip-rewards { background: var(--rewards-deep); color: #FCE6EF; }
.strip-rewards .strip-tag { background: #FF79AE; color: #1C0410; }
.kind-rewards { background: var(--rewards-soft); color: var(--rewards); }
.btn-rewards { background: var(--rewards); color: var(--rewards-ink); }
.btn-rewards:hover { filter: brightness(1.1); }
.split-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.split-rewards { border-top: 6px solid var(--rewards); }
.split-card .model { font-size: .88rem; font-weight: 700; color: var(--ink); }
.section-rewards { border-top: 4px solid var(--rewards); margin-top: 12px; }
.swash-rewards::after { background: var(--rewards-swash); }
.rhero .eyebrow { color: var(--rewards); }
.compare-3 td { min-width: 210px; }
.chooser { display: flex; flex-direction: column; gap: 14px; margin-top: 8px; }
.kwyr { background: var(--sun-soft); color: var(--sun-soft-ink); border-radius: 10px; padding: 10px 12px; }
.tiles-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.tiles .tile-donate { border-top: 4px solid var(--sun); }
.tiles .tile-rewards { border-top: 4px solid var(--rewards); }
.tiles .tile-invest { border-top: 4px solid var(--invest); }

/* project cards, covers and progress */
.rv-0 { background: linear-gradient(135deg, #C2185B, #5E0B30); }
.rv-1 { background: linear-gradient(135deg, #8E24AA, #3F0F57); }
.rv-2 { background: linear-gradient(135deg, #E0533D, #7A1E14); }
.rv-3 { background: linear-gradient(135deg, #5E35B1, #26145A); }
.rv-4 { background: linear-gradient(135deg, #D81B60, #6A1240); }
.rv-5 { background: linear-gradient(135deg, #AD1457, #3E0A2A); }
.rbar { height: 8px; background: var(--rewards-soft); border-radius: 99px; overflow: hidden; }
.rbar i { display: block; height: 100%; background: var(--rewards); border-radius: 99px; }
.rail .rbar { height: 10px; }
.badge-pick { background: var(--rewards); color: var(--rewards-ink); }
.rhead { margin-bottom: 18px; }
.rhead .lede { font-size: 1.05rem; margin: 6px 0 12px; }

/* rewards and stretch goals */
.reward-list { display: flex; flex-direction: column; gap: 12px; }
.reward-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.reward { background: var(--surface); border: 1.5px solid var(--line); border-radius: var(--r); padding: 16px; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.rail .reward { background: var(--bg); }
.reward h3 { font-size: 1.05rem; margin: 0; overflow-wrap: anywhere; }
.reward .small { overflow-wrap: anywhere; }
.reward-price { font-weight: 800; font-size: .9rem; color: var(--rewards); }
.reward-items { margin: 0; padding-left: 18px; font-size: .88rem; display: flex; flex-direction: column; gap: 2px; }
.reward-meta { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; font-size: .84rem; }
.reward-meta div { min-width: 0; }
.reward-meta dt { font-size: .7rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
.reward-meta dd { margin: 0; overflow-wrap: anywhere; }
.reward-foot { display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; color: var(--muted); }
.reward.gone { opacity: .62; }
.gone-text { color: var(--bad); font-weight: 700; }
.reward-edit { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.stretch { list-style: none; margin: 0 0 16px; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.stretch li { display: flex; gap: 12px; align-items: flex-start; border: 1.5px solid var(--line); border-radius: 12px; padding: 12px 14px; background: var(--surface); }
.stretch li > div { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
.stretch li.hit { border-color: var(--good); background: var(--good-soft); }
.stretch li.hit .ico { color: var(--good); margin-top: 2px; }
.stretch .todo-dot { flex: none; margin-top: 4px; }

/* pledge form */
.reward-picks { display: flex; flex-direction: column; gap: 10px; }
.pick-reward { display: flex; gap: 12px; align-items: flex-start; border: 1.5px solid var(--line); border-radius: 12px; padding: 14px; background: var(--surface); cursor: pointer; }
.pick-reward:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.pick-reward:has(input:focus-visible) { outline: 3px solid var(--accent); outline-offset: 2px; }
.pick-reward input[type="radio"] { margin-top: 4px; accent-color: var(--accent); flex: none; }
.pick-reward.gone { opacity: .55; cursor: not-allowed; }
.pr-body { display: flex; flex-direction: column; gap: 4px; flex: 1; min-width: 0; }
.pr-top { display: flex; justify-content: space-between; gap: 12px; }
.pr-top b { overflow-wrap: anywhere; }
.pr-option { display: flex; flex-direction: column; gap: 4px; margin-top: 6px; max-width: 280px; }
.addon { display: flex; justify-content: space-between; align-items: center; gap: 12px; border: 1.5px solid var(--line); border-radius: 12px; padding: 12px 14px; margin-top: 8px; }
.addon > div { min-width: 0; overflow-wrap: anywhere; }
.qty { width: 84px; flex: none; }
.addon:has(.qty:disabled) { opacity: .55; }

/* notes and banners */
.note-rewards { background: var(--rewards-soft); color: var(--ink); display: block; }
.note-good { background: var(--good-soft); color: var(--good); }
.launch-rewards { background: var(--rewards); color: var(--rewards-ink); margin-bottom: 18px; }
.launch-rewards .btn-ghost { color: var(--rewards-ink); box-shadow: inset 0 0 0 1.5px currentColor; }

@media (max-width: 900px) {
  .split-3 { grid-template-columns: minmax(0, 1fr); }
  .tiles-3 { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
}
@media (max-width: 600px) {
  .reward-meta { grid-template-columns: minmax(0, 1fr); }
  .pr-top { flex-direction: column; gap: 2px; }
}
