/* Crescent Movement Club. Warm and welcoming: ivory, the logo's gold, deep ink, serif headings. */
@font-face { font-family: "Marcellus"; src: url("/fonts/marcellus-latin.woff2") format("woff2"); font-display: swap; }

:root {
  --bg: #fbf7f0;
  --bg-soft: #f4ecdf;
  --paper: #ffffff;
  --ink: #1d1b18;
  --muted: #6b645a;
  --line: #ebe1d0;
  --gold: #b2802a;
  --gold-soft: #f3e3c2;
  --gold-bright: #f2c46d;
  --night: #000;
  --river: #c6dceb;
  --ok: #2f7a4f;
  --danger: #b42318;
  --radius: 18px;
  --shadow: 0 1px 2px rgba(60, 45, 20, .05), 0 8px 24px rgba(60, 45, 20, .06);
  --serif: "Marcellus", Georgia, "Times New Roman", serif;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "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: 17px/1.55 var(--font); min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }
a { color: inherit; text-underline-offset: 3px; text-decoration-color: rgba(178, 128, 42, .6); }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.15; margin: 0 0 .4em; letter-spacing: .005em; }
h1 { font-size: 2.3rem; overflow-wrap: break-word; }
h2 { font-size: 1.35rem; margin-top: 1em; }
p { margin: 0 0 .8em; }
ul, ol { padding-left: 1.2em; margin: 0 0 .8em; }
[hidden] { display: none !important; }

main { flex: 1; padding: 0 16px 40px; }
main > * { max-width: 600px; margin-left: auto; margin-right: auto; }
main > .bleed { max-width: none; margin-left: -16px; margin-right: -16px; }

/* Header */
.top { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 12px 8px 16px; padding-top: max(8px, env(safe-area-inset-top)); background: rgba(251, 247, 240, .92); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 8px; text-decoration: none; min-height: 44px; min-width: 0; }
.brand .mark { width: 34px; height: 34px; flex: none; }
.brand-text { display: grid; line-height: 1; }
.brand-text b { font-family: var(--serif); font-weight: 400; font-size: 1.15rem; letter-spacing: .12em; text-transform: uppercase; }
.brand-text small { font-size: .56rem; letter-spacing: .3em; text-transform: uppercase; color: var(--gold); margin-top: 4px; font-weight: 600; }
.top nav { display: flex; flex: none; gap: 2px; }
.top nav a { text-decoration: none; padding: 10px 9px; font-size: .92rem; font-weight: 600; color: var(--muted); border-radius: 999px; }
.top nav a[aria-current="page"] { color: var(--ink); background: var(--gold-soft); }

/* Footer (same layout as the Phonetexs and Amana sites: columns, copyright bar, credit strip) */
.foot { background: var(--night); color: #c9bfae; margin-top: 48px; font-size: .94rem; }
.foot a { color: #d8cfbf; text-decoration: none; }
.foot a:hover { color: var(--gold-bright); }
.foot-grid { max-width: 1040px; margin: 0 auto; padding: 48px 20px 36px; display: grid; gap: 32px; }
.foot-logo { display: inline-flex; align-items: center; gap: 10px; }
.foot-logo img { width: 44px; height: 44px; }
.foot-logo span { display: grid; line-height: 1; }
.foot-logo b { font-family: var(--serif); font-weight: 400; font-size: 1.25rem; letter-spacing: .12em; text-transform: uppercase; color: #fff; }
.foot-logo small { font-size: .6rem; letter-spacing: .3em; text-transform: uppercase; color: var(--gold-bright); margin-top: 5px; font-weight: 600; }
.foot-brand p { margin: 14px 0 0; max-width: 34ch; line-height: 1.65; color: #a99f8e; }
.foot-social { display: flex; gap: 10px; margin-top: 18px; }
.foot-social a { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; background: rgba(255, 255, 255, .08); color: #fff; transition: background-color .2s ease, color .2s ease; }
.foot-social a:hover { background: var(--gold); color: #fff; }
.foot-col { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.foot-col h2 { font-family: var(--font); font-size: .78rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-bright); margin: 0 0 6px; }
.foot-col a, .foot-col span { padding: 5px 0; }
.foot-col p { margin: 0 0 6px; color: #a99f8e; }
.foot-btn { display: inline-block; margin-top: 4px; padding: 10px 18px !important; border-radius: 999px; background: var(--gold); color: #fff !important; font-weight: 700; }
.foot-btn:hover { background: #c8923a; }
.foot-bottom { max-width: 1040px; margin: 0 auto; padding: 18px 20px; border-top: 1px solid rgba(255, 255, 255, .1); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 16px; font-size: .82rem; color: #8a8173; }
.foot-tag { font-family: var(--serif); color: #b3a892; }
.foot-credit { border-top: 1px solid rgba(255, 255, 255, .1); background: #0d0b08; display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 10px; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); font-size: .78rem; color: #8a8173; text-align: center; }
.foot-credit a { font-weight: 700; color: #b3a892; }
.foot .foot-credit-cta { color: var(--gold-bright); }
.foot .foot-credit-cta:hover { text-decoration: underline; }
@media (min-width: 640px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 900px) { .foot-grid { grid-template-columns: 1.5fr .8fr 1.1fr 1.1fr; gap: 40px; } }

/* Text helpers */
.lead { font-size: 1.1rem; color: var(--muted); }
.muted { color: var(--muted); }
.small { font-size: .88rem; }
.center { text-align: center; }
.eyebrow { display: block; font-size: .74rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); margin: 0 0 6px; }
.danger { color: var(--danger); }
.section-title { font-size: 1.6rem; margin: 0 0 12px; }
.section-row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 40px auto 12px; }
.section-row .section-title { margin: 0; }
.section-row a { font-weight: 600; font-size: .95rem; color: var(--gold); text-decoration: none; }
.page-head { padding: 28px 0 8px; }

/* Cards */
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; margin-bottom: 16px; box-shadow: var(--shadow); }
.card.is-cancelled { opacity: .65; }
.stack { display: grid; gap: 12px; margin-bottom: 16px; }
.card > h2:first-child, .card > .section-title:first-child { margin-top: 0; }
.prose h2 { font-size: 1.25rem; margin-top: 1.2em; }

/* Event card with date badge */
.event-card { display: flex; gap: 16px; align-items: flex-start; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; text-decoration: none; box-shadow: var(--shadow); transition: transform .15s ease, box-shadow .15s ease; }
.event-card:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(60, 45, 20, .1); }
.event-card.is-cancelled { opacity: .6; }
.date-badge { flex: none; width: 64px; border-radius: 14px; background: var(--night); color: var(--gold-bright); text-align: center; padding: 8px 0 10px; }
.date-badge span { display: block; font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.date-badge b { display: block; font-family: var(--serif); font-weight: 400; font-size: 1.9rem; line-height: 1; color: #fff; margin-top: 2px; }
.event-card-body { display: grid; gap: 2px; min-width: 0; }
.event-card-title { font-family: var(--serif); font-size: 1.35rem; line-height: 1.2; }
.event-card-cta { margin-top: 6px; font-weight: 700; color: var(--gold); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px; padding: 12px 22px; border-radius: 999px; border: 1.5px solid var(--ink); background: transparent; color: var(--ink); font: 650 1rem/1.2 var(--font); text-decoration: none; cursor: pointer; text-align: center; width: 100%; transition: transform .12s ease, background-color .2s ease, box-shadow .2s ease; }
.btn:active { transform: scale(.98); }
.btn-primary { background: var(--ink); border-color: var(--ink); color: #fff; box-shadow: 0 6px 18px rgba(29, 27, 24, .18); }
.btn-primary:hover { background: #000; }
.btn-big { min-height: 56px; font-size: 1.08rem; }
.btn[disabled] { opacity: .6; cursor: progress; }
.btn-row { display: grid; gap: 10px; margin-top: 14px; }
.card .btn { margin-top: 12px; }
.cta-row { display: grid; gap: 10px; max-width: 360px; margin: 0 auto; }
.link-btn { background: none; border: 0; padding: 12px 4px; min-height: 44px; font: 600 .95rem var(--font); color: var(--ink); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; width: 100%; }
.link-btn.danger { color: var(--danger); }
.inline-form { margin: 0; }

/* Photo hero (home) and cover (event) */
.photo-hero { position: relative; color: #fff; }
.photo-hero img { width: 100%; height: min(68vh, 560px); min-height: 380px; object-fit: cover; object-position: 30% 50%; }
.photo-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 30%, rgba(10,8,4,.72) 100%); }
.photo-hero-text { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; padding: 0 20px 28px; max-width: 640px; margin: 0 auto; text-align: center; }
.photo-hero .kicker { color: var(--gold-bright); }
.photo-hero h1 { color: #fff; font-size: 2.4rem; margin: 0; text-shadow: 0 2px 16px rgba(0,0,0,.35); animation: rise .8s ease-out both; }
.cover img { width: 100%; height: 220px; object-fit: cover; object-position: 50% 60%; }

/* Home */
.welcome { text-align: center; padding: 24px 4px 8px; }
.welcome-logo { width: min(240px, 64vw); margin: 0 auto 4px; animation: rise .8s ease-out both; }
.kicker { font-family: var(--serif); color: var(--gold); font-size: 1.1rem; margin-bottom: 6px; }
.welcome h1 { font-size: 2.2rem; max-width: 16ch; margin: 0 auto 12px; }
.welcome .lead { max-width: 34ch; margin: 0 auto 22px; }
.pillars { display: grid; gap: 12px; margin-top: 36px; }
.pillar { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 18px 14px; box-shadow: var(--shadow); }
.pillar h2 { margin: 6px 0 4px; font-size: 1.3rem; }
.pillar p { color: var(--muted); margin: 0; }
.pillar-icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--gold-soft); font-size: 1.3rem; }
.first-time { margin-top: 28px; background: var(--bg-soft); box-shadow: none; }
.checks { list-style: none; padding: 0; margin: 0 0 12px; display: grid; gap: 8px; }
.checks li { position: relative; padding-left: 28px; }
.checks li::before { content: "✓"; position: absolute; left: 0; top: 0; color: var(--gold); font-weight: 800; }
.first-time a { font-weight: 700; color: var(--gold); text-decoration: none; }
.ig-band { text-align: center; padding: 28px 0 8px; }
.ig-band p { font-family: var(--serif); font-size: 1.3rem; max-width: 22ch; margin: 0 auto 14px; }
.ig-band .btn { max-width: 360px; }

/* Event page */
.event { padding: 16px 0 8px; }
.back { display: inline-block; padding: 8px 0; margin-bottom: 8px; color: var(--muted); text-decoration: none; font-weight: 600; font-size: .95rem; }
.event h1 { margin-bottom: 8px; }
.when { font-size: 1.15rem; font-weight: 700; margin: 0 0 4px; }
.where { margin: 0 0 12px; }
.distances { list-style: none; padding: 0; display: flex; gap: 8px; margin: 0 0 12px; flex-wrap: wrap; }
.distances li { background: var(--paper); border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; font-size: .95rem; }
.distances span { font-weight: 700; margin-right: 6px; color: var(--gold); }
.headcount { font-weight: 700; color: var(--ok); margin: 0 0 14px; }
.flyer { margin-top: 28px; }
.flyer img { border-radius: var(--radius); margin-bottom: 12px; box-shadow: var(--shadow); }
#route { margin-top: 28px; scroll-margin-top: 72px; }

/* Route map */
.map { margin: 0; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.map svg { display: block; width: 100%; height: auto; max-height: 78vh; }
.map .land { fill: #f6f0e4; }
.map .streets { fill: none; stroke: #e6dccb; stroke-width: 7; stroke-linecap: round; stroke-linejoin: round; }
.map .river { fill: none; stroke: var(--river); stroke-linecap: round; stroke-linejoin: round; }
.map .bldg { fill: #e3d3b4; stroke: #d2bf98; stroke-width: 2; }
.map .run-shadow { fill: none; stroke: rgba(29, 27, 24, .12); stroke-width: 26; stroke-linecap: round; stroke-linejoin: round; }
.map .run { fill: none; stroke: var(--ink); stroke-width: 11; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 2s .2s ease-in-out forwards; }
.map .walk { fill: none; stroke: var(--gold-bright); stroke-width: 5; stroke-linecap: round; stroke-dasharray: 2 14; }
.map .runner { fill: var(--gold-bright); stroke: var(--ink); stroke-width: 5; }
.map .start { fill: var(--ink); stroke: #fff; stroke-width: 7; }
.map .turn { stroke: #fff; stroke-width: 7; }
.map .run-turn { fill: var(--gold); }
.map .walk-turn { fill: var(--gold-bright); }
.map .lbl { font: 400 34px var(--font); fill: var(--muted); paint-order: stroke; stroke: #f6f0e4; stroke-width: 8px; stroke-linejoin: round; }
.map .lbl.strong { font-family: var(--serif); font-size: 40px; fill: var(--ink); }
.map .lbl.soft { font-style: italic; fill: #8a7a5c; }
.map .credit { font: 400 20px var(--font); fill: #9b907e; }
.map figcaption { display: grid; gap: 8px; padding: 14px 16px 16px; font-size: .95rem; color: var(--muted); border-top: 1px solid var(--line); }
.map figcaption b { color: var(--ink); }
.map figcaption a { font-weight: 700; color: var(--gold); text-decoration: none; }

/* Forms */
.rsvp { display: grid; gap: 14px; }
.field { display: grid; gap: 6px; font-weight: 650; }
.field input, .field select, .field textarea { width: 100%; min-height: 52px; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 14px; font: 400 1.05rem var(--font); color: var(--ink); background: #fffdf9; }
.field textarea { min-height: 96px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(242, 196, 109, .35); }
.toggles { border: 0; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.toggles legend { font-weight: 650; margin-bottom: 6px; padding: 0; }
.toggle { position: relative; }
.toggle input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.toggle span { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 68px; border: 1.5px solid var(--line); border-radius: 14px; font: 400 1.3rem/1.1 var(--serif); background: #fffdf9; transition: background-color .15s, color .15s, border-color .15s; }
.toggle small { font: 400 .78rem var(--font); color: var(--muted); margin-top: 3px; }
.toggle input:checked + span { border-color: var(--ink); background: var(--ink); color: #fff; }
.toggle input:checked + span small { color: #d8cfbf; }
.toggle input:focus-visible + span { outline: 3px solid var(--gold-bright); outline-offset: 2px; }
.check { display: flex; gap: 12px; align-items: flex-start; min-height: 44px; }
.check input { width: 24px; height: 24px; margin: 2px 0 0; flex: none; accent-color: var(--ink); }
.form-msg { margin: 0; padding: 10px 14px; border-radius: 12px; background: #fdecea; color: var(--danger); font-weight: 650; }
.form-msg.ok { background: #e7f3eb; color: var(--ok); }
.hello { font: 400 1.5rem/1.2 var(--serif); margin-bottom: 12px; }
.going { display: grid; gap: 4px; }
.going-title { font-weight: 700; color: var(--ok); font-size: 1.1rem; }
.notice { padding: 4px 0; }
.rsvp .cf-turnstile:empty { display: none; }

/* Confirmation */
.done { text-align: center; padding: 20px 0 12px; }
.done-check { width: 72px; height: 72px; margin: 0 auto 12px; border-radius: 50%; background: var(--ink); color: var(--gold-bright); font-size: 2.1rem; line-height: 72px; animation: pop .5s cubic-bezier(.3, 1.6, .5, 1) both; }
.details { margin: 0; display: grid; gap: 10px; }
.details div { display: grid; grid-template-columns: 80px 1fr; gap: 8px; }
.details dt { color: var(--muted); font-weight: 650; }
.details dd { margin: 0; font-weight: 650; }

/* Waiver sheet */
.sheet { border: 0; border-radius: var(--radius); padding: 0; width: min(560px, calc(100% - 32px)); max-height: 85vh; color: var(--ink); }
.sheet::backdrop { background: rgba(21, 19, 15, .55); }
.sheet-body { padding: 20px; overflow: auto; max-height: calc(85vh - 84px); }
.sheet-body > h2:first-child { margin-top: 0; font-size: 1.6rem; }
.sheet form { padding: 12px 20px 20px; border-top: 1px solid var(--line); }

/* Admin */
.admin-who p { margin: 0 0 4px; }
.admin-stats { font-weight: 650; }
.admin-table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.admin-table th, .admin-table td { text-align: left; padding: 8px 6px; border-bottom: 1px solid var(--line); vertical-align: top; word-break: break-word; }
.admin-row { display: flex; gap: 10px; flex-wrap: wrap; }
.admin-row .btn { width: auto; margin-top: 0; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 420px) { .grid2 { grid-template-columns: 1fr; } }

@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } }
@keyframes pop { from { transform: scale(0); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
  .map .run { stroke-dashoffset: 0; }
  .map .runner { display: none; }
}
@media (min-width: 720px) {
  h1 { font-size: 3rem; }
  .photo-hero h1 { font-size: 3.4rem; }
  .cover img { height: 320px; }
  .pillars { grid-template-columns: repeat(3, 1fr); max-width: 900px; }
  .cta-row { grid-template-columns: 1fr 1fr; max-width: 480px; }
}

/* Admin: nav and team */
.admin-nav { display: flex; gap: 4px; align-items: center; }
.admin-nav .nav-btn { background: none; border: 0; padding: 10px 12px; min-height: 44px; border-radius: 999px; font: 650 .95rem var(--font); color: var(--muted); cursor: pointer; }
.admin-nav .nav-btn[aria-current="true"] { background: var(--ink); color: #fff; }
.admin-nav a { padding: 10px 8px; }
.person-top { display: flex; align-items: center; gap: 12px; }
.person-top > div { flex: 1; min-width: 0; }
.person-top h3 { margin: 0; }
.person-top p { margin: 2px 0 0; overflow-wrap: anywhere; }
.person > .small { margin: 10px 0 0; }
.person .admin-row { margin-top: 12px; }
.avatar { flex: none; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--night); color: var(--gold-bright); font: 1.2rem var(--serif); }
.role { flex: none; font-size: .74rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; padding: 5px 10px; border-radius: 999px; background: #efe7d8; color: var(--ink); }
.role-owner { background: var(--gold); color: #fff; }
.btn.btn-danger { color: var(--danger); border-color: currentColor; }
.invite { border: 2px solid var(--gold); }
.invite pre { white-space: pre-wrap; word-break: break-word; background: var(--bg); padding: 14px; border-radius: 12px; font: .95rem/1.5 ui-monospace, SFMono-Regular, Menlo, monospace; }

/* Home: what we do, ideas, steps */
.pillars .pillar h3 { margin: 6px 0 4px; font-size: 1.3rem; font-family: var(--serif); font-weight: 400; }
@media (min-width: 560px) { .pillars { grid-template-columns: 1fr 1fr; } }
.ideas { list-style: none; padding: 0; margin: 0 0 12px; display: grid; gap: 10px; grid-template-columns: 1fr 1fr; }
.ideas li { display: flex; gap: 10px; align-items: flex-start; background: var(--paper); border: 1px solid var(--line); border-radius: 16px; padding: 12px; }
.ideas b { display: block; font-size: .95rem; line-height: 1.25; }
.ideas small { display: block; color: var(--muted); font-size: .8rem; line-height: 1.35; margin-top: 2px; }
.idea-icon { font-size: 1.3rem; line-height: 1; }
.how { margin-top: 32px; }
.steps { margin: 0; padding-left: 0; list-style: none; counter-reset: s; display: grid; gap: 12px; }
.steps li { counter-increment: s; position: relative; padding-left: 44px; }
.steps li::before { content: counter(s); position: absolute; left: 0; top: -2px; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--night); color: var(--gold-bright); font: 1rem var(--serif); }
.filters { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; margin-bottom: 16px; }
.filters a { flex: none; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--paper); text-decoration: none; color: var(--ink); font-weight: 600; font-size: .9rem; }
.filters a[aria-current="page"] { background: var(--ink); color: #fff; border-color: var(--ink); }
#do-title { margin-top: 44px; }

/* ── Admin layout ── */
.admin .top { position: sticky; top: 0; z-index: 5; }
.admin-site { margin-left: auto; font-weight: 600; font-size: .92rem; color: var(--muted); text-decoration: none; padding: 10px 4px; }
.admin-tabs { position: sticky; top: 61px; z-index: 4; display: flex; gap: 6px; justify-content: center; padding: 8px 16px; background: var(--bg); border-bottom: 1px solid var(--line); }
.admin-tabs button { flex: 1; max-width: 160px; min-height: 44px; border: 1px solid var(--line); border-radius: 999px; background: var(--paper); font: 650 .95rem var(--font); color: var(--ink); cursor: pointer; }
.admin-tabs button[aria-current="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.head-row { justify-content: space-between; align-items: center; margin: 8px 0 12px; }
.head-row h1 { margin: 0; }
.stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 12px 0 8px; }
.stat { background: var(--paper); border: 1px solid var(--line); border-radius: 16px; padding: 12px; text-align: center; }
.stat b { display: block; font: 1.7rem var(--serif); line-height: 1.1; }
.stat span { font-size: .8rem; color: var(--muted); font-weight: 600; }
.btn.btn-sm { min-height: 38px; padding: 6px 14px; font-size: .88rem; }
.admin-event h2 { margin: 0 0 2px; font-size: 1.35rem; }
.admin-event .when { margin: 0; color: var(--muted); font-weight: 500; font-size: .95rem; }
.going-line { margin: 8px 0 10px; color: var(--muted); }
.going-line b { color: var(--ok); }
.admin-event .actions { gap: 6px; }
.who { margin-top: 14px; border-top: 1px solid var(--line); padding-top: 10px; }
.who h3 { margin: 0 0 6px; font-size: 1rem; font-family: var(--font); font-weight: 700; }
.who .link-btn { width: auto; padding: 8px 0; min-height: 0; }
.who-list { margin: 0; padding-left: 22px; }
.who-list li { padding: 7px 0; border-bottom: 1px solid var(--line); display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
.who-list li::marker { color: var(--muted); font-size: .85rem; }
.who-list li:last-child { border-bottom: 0; }
.who-name { background: none; border: 0; padding: 0; font: 650 1rem var(--font); color: var(--ink); text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 3px; cursor: pointer; text-align: left; }
.who-contact { display: flex; flex-wrap: wrap; gap: 2px 10px; width: 100%; font-size: .86rem; }
.who-contact a { color: var(--muted); overflow-wrap: anywhere; }
.who-cancelled { margin-top: 8px; color: var(--muted); }
.who-cancelled summary { cursor: pointer; font-size: .9rem; font-weight: 600; }
.tag { display: inline-block; font-size: .72rem; font-weight: 700; letter-spacing: .04em; padding: 3px 8px; border-radius: 999px; background: #efe7d8; color: var(--ink); white-space: nowrap; }
.tag-run { background: var(--night); color: var(--gold-bright); }
.tag-walk { background: var(--gold-soft); }
.tag-ok { background: #e7f3eb; color: var(--ok); }
.tag-warn { background: #fdecea; color: var(--danger); }
.past { margin-top: 24px; }
.past summary { cursor: pointer; font-weight: 700; padding: 10px 0; }
.search { width: 100%; min-height: 48px; border: 1px solid var(--line); border-radius: 14px; padding: 10px 14px; font: 1rem var(--font); background: var(--paper); margin-bottom: 10px; }
.filters button { flex: none; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--paper); color: var(--ink); font: 600 .9rem var(--font); cursor: pointer; }
.filters button[aria-current="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.people { display: grid; gap: 8px; }
.person-row { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; background: var(--paper); border: 1px solid var(--line); border-radius: 16px; padding: 12px; cursor: pointer; font: inherit; color: inherit; }
.person-main { flex: 1; min-width: 0; }
.person-main b { display: block; }
.person-main small { display: block; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.person-meta { display: grid; gap: 4px; justify-items: end; font-size: .8rem; color: var(--muted); font-weight: 600; }
.avatar-lg { width: 56px; height: 56px; font-size: 1.5rem; }
#member-detail h1 { margin: 0; font-size: 1.7rem; }
#member-detail .details { margin-top: 14px; }
.history { list-style: none; padding: 0; margin: 0; }
.history li { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.history li:last-child { border-bottom: 0; }
.history small { display: block; color: var(--muted); }
.history .is-cancelled b { text-decoration: line-through; color: var(--muted); }
.link-back { background: none; border: 0; font: 600 .95rem var(--font); color: var(--muted); padding: 10px 0; cursor: pointer; }

/* Centered section heads, wider event grid, About jump links, feedback form */
.section-head { text-align: center; margin: 44px auto 16px; }
.section-head .section-title { margin: 0 0 4px; }
.section-head p { margin: 0; }
.more-link { display: inline-block; padding: 10px 4px; font-weight: 700; color: var(--gold); text-decoration: none; }
.page-head.center .lead { max-width: 40ch; margin-left: auto; margin-right: auto; }
.filters { justify-content: safe center; }
.jumps { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-bottom: 20px; }
.jumps a { padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--paper); text-decoration: none; font-weight: 600; font-size: .88rem; }
.jumps a:hover { border-color: var(--gold); }
.jumps a[href="#feedback"] { background: var(--ink); border-color: var(--ink); color: #fff; }
main section[id] { scroll-margin-top: 76px; }
.prose > h2:first-child { margin-top: 0; }
.feedback { border: 2px solid var(--gold-soft); }
.feedback h2 { margin-top: 0; font-size: 1.5rem; }
.toggles-3 { grid-template-columns: repeat(3, 1fr); }
.toggles-3 .toggle span { min-height: 52px; font: 600 .92rem/1.2 var(--font); padding: 6px; text-align: center; }
.field small { font-weight: 400; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.feedback-done { padding: 12px 0 0; }
.feedback-done .link-btn { width: auto; }
@media (min-width: 720px) {
  main > .wide, main > .event-grid { max-width: 900px; }
  .event-grid { grid-template-columns: 1fr 1fr; }
  .event-grid > :last-child:nth-child(odd) { grid-column: 1 / -1; justify-self: center; width: calc(50% - 6px); }
}
.roles { border: 0; padding: 0; margin: 0; display: grid; gap: 8px; }
.roles legend { font-weight: 650; margin-bottom: 6px; padding: 0; }
.role-pick { position: relative; display: block; }
.role-pick input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.role-pick span { display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 10px 14px; border: 1.5px solid var(--line); border-radius: 14px; background: #fffdf9; font-weight: 600; }
.role-pick span::before { content: ""; flex: none; width: 20px; height: 20px; border-radius: 6px; border: 1.5px solid var(--muted); display: grid; place-items: center; font-size: .8rem; color: #fff; }
.role-pick input:checked + span { border-color: var(--ink); }
.role-pick input:checked + span::before { content: "✓"; background: var(--ink); border-color: var(--ink); }
.role-pick input:focus-visible + span { outline: 3px solid var(--gold-bright); outline-offset: 2px; }
@media (min-width: 560px) { .roles { grid-template-columns: 1fr 1fr; } .roles legend { grid-column: 1 / -1; } }
.inbox-item { margin-bottom: 0; }
.inbox-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 8px; }
.inbox-msg { white-space: pre-wrap; overflow-wrap: anywhere; margin: 0 0 8px; }
.inbox-roles { margin: 0 0 8px; padding-left: 1.1em; font-weight: 600; }
.inbox-item .who-contact b { color: var(--ink); }
.admin-tabs button { max-width: 130px; }
