:root {
  --ink: #111; --muted: #5d625f; --bg: #f6f5f1; --card: #fff; --line: #e4e2dc;
  --green: #007a3d; --green-d: #00602f; --red: #ce1126; --black: #111;
  --ok-bg: #e4f3ea; --bad: #b42318; --bad-bg: #fde8e6; --info-bg: #eaf1fb; --info: #24508f;
  --r: 14px; --side: 248px;
  --display: "Arial Narrow", "Roboto Condensed", "Helvetica Neue", Arial, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
a { color: var(--green); }
img { max-width: 100%; }
h1, h2, .top-title, .cd-clock b, .bib { font-family: var(--display); font-weight: 800; letter-spacing: .01em; }
h1 { font-size: 2rem; line-height: 1.1; text-transform: uppercase; margin: .4rem 0 1rem; }
h2 { font-size: 1.25rem; line-height: 1.2; margin: 0 0 .6rem; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.lead { font-size: 1.1rem; }
.eyebrow { text-transform: uppercase; font-size: .8rem; letter-spacing: .06em; color: var(--muted); font-weight: 700; margin: 0 0 .5rem; }

/* ---------- layout: top bar + left drawer (mobile), fixed sidebar (desktop) ---------- */
.topbar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 10px; height: 56px;
          padding: 0 12px; padding-top: env(safe-area-inset-top); background: #fff; color: var(--ink);
          border-bottom: 4px solid var(--green); box-shadow: 0 1px 6px rgba(0,0,0,.06); }
.burger { width: 44px; height: 44px; display: flex; flex-direction: column; justify-content: center; gap: 5px; padding: 10px; cursor: pointer; }
.burger span { display: block; height: 2px; background: var(--ink); border-radius: 2px; }
.top-title { flex: 1; display: flex; justify-content: center; text-decoration: none; }
.top-title img { height: 36px; width: auto; display: block; }
.top-tix { font-size: 1.4rem; text-decoration: none; width: 44px; height: 44px; display: grid; place-items: center; }

.side { position: fixed; z-index: 30; top: 0; bottom: 0; left: 0; width: min(82vw, var(--side)); background: #fff;
        transform: translateX(-102%); transition: transform .2s ease; overflow-y: auto; display: flex; flex-direction: column;
        border-right: 1px solid var(--line); padding-top: env(safe-area-inset-top); }
.scrim { position: fixed; inset: 0; z-index: 25; background: rgba(0,0,0,.4); opacity: 0; pointer-events: none; transition: opacity .2s; }
.nav-toggle:checked ~ .side { transform: none; box-shadow: 0 0 40px rgba(0,0,0,.25); }
.nav-toggle:checked ~ .scrim { opacity: 1; pointer-events: auto; }
.side-logo { display: block; padding: 16px 16px 4px; text-align: center; }
.side-logo img { width: 150px; height: auto; }
.side ul { list-style: none; margin: 0; padding: 8px; }
.side li a { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 10px; color: var(--ink);
             text-decoration: none; font-weight: 600; }
.side li a:hover { background: #f1f0eb; }
.side li a.on { background: var(--black); color: #fff; }
.side li a.on .ico { filter: none; }
.ico { width: 24px; text-align: center; }
.side-foot { margin-top: auto; padding: 16px; display: flex; gap: 10px; align-items: center; border-top: 1px solid var(--line); }
.side-foot img { width: 44px; height: auto; flex: none; }
.side-foot p { margin: 0; font-size: .8rem; color: var(--muted); }

.page { min-height: calc(100vh - 56px); display: flex; flex-direction: column; }
main { width: 100%; max-width: 760px; margin: 0 auto; padding: 16px; flex: 1; }

@media (min-width: 900px) {
  .topbar, .scrim { display: none; }
  .side { transform: none; width: var(--side); }
  .page { margin-left: var(--side); min-height: 100vh; }
  main { padding: 28px 32px; }
}

/* ---------- footer ---------- */
.foot { max-width: 760px; margin: 24px auto 0; padding: 20px 16px calc(24px + env(safe-area-inset-bottom)); font-size: .85rem;
        color: var(--muted); border-top: 1px solid var(--line); width: 100%; }
.foot img { float: left; margin: 2px 12px 8px 0; }
.foot p { margin: 0 0 8px; }
.foot .ack { clear: both; font-style: italic; }

/* ---------- building blocks ---------- */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 18px; margin: 0 0 14px; }
.card > :last-child { margin-bottom: 0; }
.row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 0 20px; border-radius: 999px;
       background: var(--green); color: #fff; font: inherit; font-weight: 700; text-decoration: none; border: 2px solid var(--green); cursor: pointer; }
.btn:hover { background: var(--green-d); border-color: var(--green-d); }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn.ghost:hover { background: var(--ink); color: #fff; }
.btn.big { width: 100%; min-height: 54px; font-size: 1.05rem; }
.link { background: none; border: 0; color: var(--green); text-decoration: underline; font: inherit; cursor: pointer; padding: 0; }
.flash { padding: 10px 12px; border-radius: 10px; }
.flash.bad { background: var(--bad-bg); color: var(--bad); font-weight: 600; }
.flash.info { background: var(--info-bg); color: var(--info); }
.chip { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: .8rem; font-weight: 700; background: #eeede8; white-space: nowrap; }
.chip.t-standard { background: #e8eef9; }
.chip.t-activewear { background: #f1e7f7; }
.chip.t-child { background: #fdf0dc; }
.chip.bad { background: var(--bad-bg); color: var(--bad); }

/* ---------- home ---------- */
.hero { background: #fff; border-radius: var(--r); border: 1px solid var(--line); padding: 14px 14px 16px; margin-bottom: 14px; text-align: center; }
.hero img { display: block; width: 100%; height: auto; }
.hero-when { margin: 10px 0 0; }
.hero-when a { color: var(--muted); }
.countdown { text-align: center; background: var(--black); color: #fff; border: 0; border-top: 5px solid var(--red); }
.countdown .cd-label { margin: 0 0 10px; font-weight: 700; }
.cd-clock { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; max-width: 380px; margin: 0 auto; }
.cd-clock div { background: rgba(255,255,255,.08); border-radius: 10px; padding: 8px 0; }
.cd-clock b { display: block; font-size: 2.2rem; line-height: 1; font-variant-numeric: tabular-nums; }
.cd-clock span { font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; opacity: .75; }
.countdown .btn.ghost { color: #fff; border-color: #fff; }
.countdown.live .cd-label { font-size: 1.3rem; }
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 0 0 14px; }
.tile { display: flex; flex-direction: column; gap: 2px; background: #fff; border: 1px solid var(--line); border-radius: var(--r);
        padding: 14px; color: var(--ink); text-decoration: none; }
.tile:hover { border-color: var(--ink); }
.tile span { font-size: 1.6rem; }
.tile small { color: var(--muted); }

/* progress */
.progress .amounts { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.progress .amounts b { font-family: var(--display); font-size: 2.4rem; line-height: 1; }
.progress .amounts span { color: var(--muted); }
.bar { display: block; height: 14px; background: #e9e8e2; border-radius: 999px; overflow: hidden; margin: 10px 0; }
.bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--green), #19a35a); border-radius: 999px; }
.bar.thin { height: 6px; margin: 6px 0 0; }
.progress .stats { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: .9rem; color: var(--muted); }
.progress .stats b { color: var(--ink); }

/* schedule */
.sched { list-style: none; margin: 0; padding: 0; }
.sched li { display: flex; gap: 14px; padding: 10px 0; border-top: 1px solid var(--line); }
.sched li:first-child { border-top: 0; }
.sched time { flex: none; width: 70px; font-weight: 800; color: var(--green); font-variant-numeric: tabular-nums; }
.sched small { display: block; color: var(--muted); }
.sched.compact li { padding: 6px 0; }
.facts p { display: flex; gap: 12px; margin: 0 0 10px; }
.steps { padding-left: 1.3em; margin: 0; }
.steps li { margin-bottom: 6px; }
.faq { border-top: 1px solid var(--line); padding: 10px 0; }
.faq:first-of-type { border-top: 0; }
.faq summary { font-weight: 700; cursor: pointer; }
.faq p { margin: 8px 0 0; }

/* fundraising */
.people { list-style: none; margin: 0; padding: 0; }
.people li a { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.people li:first-child a { border-top: 0; }
.people img, .avatar { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; flex: none; }
.avatar { display: grid; place-items: center; background: var(--black); color: #fff; font-weight: 800; }
.who { flex: 1; min-width: 0; }
.who b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.who small, .amt small { display: block; color: var(--muted); font-size: .8rem; }
.amt { text-align: right; font-weight: 800; white-space: nowrap; }
.filter { width: 100%; font: inherit; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; margin-bottom: 8px; }
.campaign-desc h3 { font-size: 1.05rem; margin: 1rem 0 .3rem; }
.campaign-desc ul { padding-left: 1.2em; }

/* food */
.vendor { display: flex; gap: 14px; align-items: flex-start; }
.v-emoji { font-size: 2rem; line-height: 1; }
.vendor h2 { margin-bottom: 4px; }
.vendor p { margin: 0; }

/* merch */
.merch { display: grid; gap: 16px; }
.merch-img img { display: block; width: 100%; height: auto; border-radius: 10px; }
@media (min-width: 640px) { .merch { grid-template-columns: 240px 1fr; align-items: center; } }

/* tickets */
.signin label { display: block; font-weight: 600; margin: 8px 0 6px; }
.signin input { width: 100%; font: inherit; font-size: 17px; padding: 14px; border: 2px solid var(--line); border-radius: 12px; margin-bottom: 12px; }
.signin input:focus { outline: none; border-color: var(--green); }
.sent { text-align: center; }
.big-emoji { font-size: 3rem; margin: 0; }
.signed { margin: -6px 0 12px; }
.order { margin-bottom: 20px; }
.order-head { font-weight: 700; margin: 0 0 8px; display: flex; gap: 8px; flex-wrap: wrap; justify-content: space-between; }
.ticket { display: flex; gap: 12px; background: #fff; border: 1px solid var(--line); border-left: 6px solid var(--green);
          border-radius: var(--r); padding: 14px; margin-bottom: 10px; }
.ticket.void { border-left-color: var(--bad); opacity: .7; }
.t-main { flex: 1; min-width: 0; }
.t-main h2 { margin: 0 0 6px; font-size: 1.35rem; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; margin: 0 0 10px; }
dl { margin: 0; display: grid; gap: 6px; }
dl div { display: flex; gap: 10px; align-items: baseline; }
dt { width: 64px; flex: none; color: var(--muted); font-size: .85rem; text-transform: uppercase; letter-spacing: .05em; }
dd { margin: 0; }
.bib { font-size: 2rem; line-height: 1; background: var(--black); color: #fff; padding: 2px 10px; border-radius: 8px; display: inline-block; }
.t-qr { flex: none; text-align: center; }
.qr { width: 96px; height: 96px; }
.qr svg, .qr img { width: 100%; height: 100%; display: block; }
.t-qr small { color: var(--muted); font-size: .7rem; }
@media (max-width: 380px) { .ticket { flex-direction: column; } .t-qr { align-self: center; } .qr { width: 140px; height: 140px; } }
