/* Beer League Roster. One stylesheet, no build step.
   Tokens first, then: chrome (top bar, tabs), content primitives (list, item, btn, field),
   page pieces, sheets, server-rendered pages (/r, /install, legal). Light + dark. */

:root {
  --bg: #f6f6f4;
  --surface: #ffffff;
  --ink: #16191d;
  --ink-2: #5f6670;
  --ink-3: #9aa0a8;
  --line: rgba(20, 24, 30, .09);
  --fill: rgba(20, 24, 30, .05);
  --brand: #0b1d33;
  --accent: #d98a06;
  --amber-bg: #fdf3df;
  --in: #1f8a4c;
  --in-bg: #e5f4ea;
  --out: #c23b32;
  --out-bg: #fbe9e7;
  --warn: #a15c00;
  --radius: 12px;
  --tap: 44px;
  --col: 640px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "Segoe UI", Roboto, sans-serif;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1114; --surface: #181b20; --ink: #eceef1; --ink-2: #a3a9b2; --ink-3: #848a93;
    --line: rgba(255, 255, 255, .09); --fill: rgba(255, 255, 255, .06);
    --amber-bg: #3a2c12; --in: #3ec27a; --in-bg: #16301f; --out: #f0675d; --out-bg: #3a1a18; --warn: #f0b04a;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.45 var(--font); -webkit-font-smoothing: antialiased;
  padding-bottom: calc(76px + env(safe-area-inset-bottom)); }
a { color: inherit; }
[hidden] { display: none !important; }
h1, h2, h3, p { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* ---------- chrome ---------- */
/* Phones: the header scrolls away instead of sticking. iOS blurs the status-bar edge and stretches
   that blur over a header pinned to the top, so a sticky header there renders soft. Extra top room
   keeps the logo clear of the edge band at rest. Desktop keeps it sticky (below). */
.topbar { position: relative; top: 0; z-index: 20; display: flex; align-items: center; gap: 12px;
  padding: calc(env(safe-area-inset-top) + 20px) 16px 10px; background: var(--bg); border-bottom: 1px solid var(--line); }
/* No filter/backdrop-filter here: it would trap the phone tab bar (position: fixed) inside the header. */
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 650; letter-spacing: -.01em; min-width: 0; }
.brand img { border-radius: 7px; }
.brand-text { display: flex; flex-direction: column; min-width: 0; line-height: 1.15; }
.brand span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.brand-meta { font-size: 12px; font-weight: 400; color: var(--ink-2); }
.team-switch { margin-left: auto; width: auto; min-height: 32px; padding: 4px 28px 4px 10px; font-size: 14px; }

.tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; display: flex; justify-content: space-around;
  padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); background: color-mix(in srgb, var(--surface) 88%, transparent);
  backdrop-filter: saturate(1.6) blur(16px); -webkit-backdrop-filter: saturate(1.6) blur(16px); border-top: 1px solid var(--line); }
.tabbar a { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 4px 0; min-height: var(--tap);
  font-size: 11px; font-weight: 550; color: var(--ink-3); text-decoration: none; }
.tabbar a svg { width: 24px; height: 24px; }
.tabbar a.active { color: var(--ink); }

.banner { display: flex; align-items: center; gap: 10px; max-width: var(--col); margin: 12px auto 0; padding: 8px 8px 8px 14px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); font-size: 15px; }
.banner span { flex: 1; }

main { display: block; max-width: var(--col); margin: 0 auto; padding: 16px 16px 24px; }
main > * + *, section > * + * { margin-top: 12px; }
main > section, main > .next, main > .note-card { margin-top: 24px; }
main > :first-child { margin-top: 0; }

@media (min-width: 820px) {
  body { padding-bottom: 0; }
  .topbar { position: sticky; padding: 12px 24px; }
  .tabbar { position: static; padding: 0; margin: 0 auto 0 16px; justify-content: flex-start; gap: 4px; background: none;
    border: 0; backdrop-filter: none; -webkit-backdrop-filter: none; }
  .tabbar a { flex: none; flex-direction: row; min-height: 32px; padding: 0 12px; border-radius: 8px; font-size: 14px; color: var(--ink-2); }
  .tabbar a svg { display: none; }
  .tabbar a:hover { background: var(--fill); }
  .tabbar a.active { background: var(--fill); color: var(--ink); }
  main { padding: 32px 24px 64px; }
}

/* ---------- type ---------- */
.page-title { font-size: 28px; line-height: 1.15; font-weight: 700; letter-spacing: -.02em; }
.section-title { font-size: 13px; font-weight: 600; color: var(--ink-2); letter-spacing: .02em; padding: 0 4px; }
.sub { color: var(--ink-2); }
.muted { color: var(--ink-3); }
.small { font-size: 14px; }
.count { color: var(--ink-3); font-weight: 500; margin-left: 4px; }
.num { font-variant-numeric: tabular-nums; text-align: right; }
.kicker { font-size: 13px; font-weight: 600; color: var(--accent); }
.empty { color: var(--ink-3); text-align: center; padding: 24px 8px; }
.empty.small { padding: 12px; }
.error, .warn { color: var(--out); }
.center { text-align: center; }

/* ---------- list + item: the one container ---------- */
.list { list-style: none; margin: 0; padding: 0; background: var(--surface); border-radius: var(--radius); border: 1px solid var(--line); overflow: hidden; }
.list > li + li, .list > .item + .item, .list > .toggle + .toggle, .list > .item + .toggle, .list > .toggle + .item { border-top: 1px solid var(--line); }
.item { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 52px; padding: 10px 14px; background: none; border: 0;
  text-align: left; text-decoration: none; cursor: default; }
a.item, button.item, label.item { cursor: pointer; }
a.item:active, button.item:active, label.item:active { background: var(--fill); }
@media (hover: hover) { a.item:hover, button.item:hover, label.item:hover { background: var(--fill); } }
.item-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.item-title { font-weight: 550; overflow: hidden; text-overflow: ellipsis; }
.item > .item-title { flex: 1; }
.item-sub { font-size: 14px; color: var(--ink-2); }
.item-meta { color: var(--ink-3); font-size: 14px; white-space: nowrap; }
.item > svg { color: var(--ink-3); width: 16px; height: 16px; }
.item.dim, .dim { opacity: .5; }
.item.check input { width: 20px; height: 20px; margin: 0; accent-color: var(--brand); flex: none; }
.list.compact .item, .list.compact li { min-height: 40px; padding: 8px 14px; display: flex; justify-content: space-between; gap: 12px; font-size: 15px; }
.list li { position: relative; }

.group > summary { list-style: none; cursor: pointer; display: flex; align-items: baseline; padding: 4px; }
.group > summary::-webkit-details-marker { display: none; }
.group > summary::after { content: ""; width: 7px; height: 7px; margin-left: 8px; border: solid var(--ink-3); border-width: 0 1.6px 1.6px 0;
  transform: translateY(-2px) rotate(45deg); transition: transform .15s; }
.group:not([open]) > summary::after { transform: rotate(-45deg); }
.group > .list { margin-top: 6px; }
.group + .group { margin-top: 16px; }

/* ---------- controls ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: var(--tap); padding: 0 16px;
  border-radius: 10px; border: 1px solid var(--line); background: var(--surface); font-weight: 600; font-size: 15px;
  text-decoration: none; cursor: pointer; white-space: nowrap; -webkit-tap-highlight-color: transparent; transition: background .12s, transform .06s; }
.btn:active { transform: scale(.98); }
.btn:disabled { opacity: .45; cursor: default; transform: none; }
.btn svg { width: 16px; height: 16px; }
.btn.primary { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.btn.danger { color: var(--out); }
.btn.quiet { background: none; border-color: transparent; color: var(--ink-2); }
.btn.small { min-height: 34px; padding: 0 12px; font-size: 14px; border-radius: 9px; }
.btn.wide { width: 100%; }
@media (hover: hover) { .btn:not(:disabled):not(.primary):hover { background: var(--fill); } }

.icon-btn { display: inline-grid; place-items: center; width: 36px; height: 36px; border: 0; border-radius: 50%; background: none;
  color: var(--ink-3); cursor: pointer; font-size: 18px; flex: none; }
.icon-btn:hover { background: var(--fill); color: var(--ink); }

.inout { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.inout .btn { min-height: 48px; font-size: 16px; }
.party-stepper { display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 10px; }
.party-stepper #party-n { min-width: 2ch; text-align: center; font-size: 16px; }
.rsvp-note { margin-top: 10px; }
.btn.in.sel-in { background: var(--in); border-color: var(--in); color: #fff; }
.btn.out.sel-out { background: var(--out); border-color: var(--out); color: #fff; }

.actions { display: flex; flex-wrap: wrap; gap: 8px; }
.actions.center { justify-content: center; align-items: center; }
.actions-inline { display: flex; gap: 6px; }
.page-actions { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 8px; }
.page-actions select { width: auto; min-width: 0; max-width: 100%; min-height: 34px; padding-top: 0; padding-bottom: 0; border-radius: 9px;
  margin-right: auto; text-overflow: ellipsis; }

input, select, textarea { width: 100%; min-height: var(--tap); padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px;
  background: var(--surface); font-size: 16px; outline: none; }
textarea { resize: vertical; line-height: 1.4; }
input:focus, select:focus, textarea:focus { border-color: var(--ink-3); box-shadow: 0 0 0 3px var(--fill); }
input[type="checkbox"], input[type="radio"] { width: auto; min-height: 0; }
input[type="file"] { padding: 10px; font-size: 14px; }
select { appearance: none; -webkit-appearance: none; padding-right: 32px;
  background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M3 4.5l3 3 3-3' fill='none' stroke='%239aa0a8' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E") right 10px center / 12px no-repeat; }
.field { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.field > span { font-size: 13px; font-weight: 550; color: var(--ink-2); padding-left: 2px; }
.form { display: flex; flex-direction: column; gap: 12px; }
.form > * + * { margin-top: 0; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

.toggle { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 52px; padding: 8px 14px; cursor: pointer; }
.toggle > span { font-weight: 550; }
.toggle input { appearance: none; -webkit-appearance: none; position: relative; width: 46px; height: 28px; margin: 0; border: 0; border-radius: 14px;
  background: var(--fill); box-shadow: inset 0 0 0 1px var(--line); cursor: pointer; flex: none; transition: background .15s; }
.toggle input::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .25); transition: transform .15s; }
.toggle input:checked { background: var(--in); box-shadow: none; }
.toggle input:checked::after { transform: translateX(18px); }
.toggle input:focus { box-shadow: 0 0 0 3px var(--fill); }
.form > .toggle { padding: 0 2px; min-height: 40px; }

.check { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; }
.check.consent { font-size: 14px; color: var(--ink-2); line-height: 1.4; }
.check.consent input { margin-top: 2px; width: 18px; height: 18px; accent-color: var(--brand); flex: none; }

.search { display: flex; align-items: center; gap: 8px; padding: 0 12px; background: var(--fill); border-radius: 10px; color: var(--ink-3); }
.search input { border: 0; background: none; padding: 8px 0; min-height: 40px; box-shadow: none; }

.tag { display: inline-flex; align-items: center; height: 24px; padding: 0 8px; border-radius: 6px; font-size: 13px; font-weight: 600;
  background: var(--fill); color: var(--ink-2); white-space: nowrap; font-variant-numeric: tabular-nums; }
.tag.in, .tag.W { background: var(--in-bg); color: var(--in); }
.tag.out, .tag.L { background: var(--out-bg); color: var(--out); }
.tag.T, .tag.OTL { background: var(--fill); color: var(--ink-2); }
.tag.none, .tag.muted { background: none; color: var(--ink-3); font-weight: 500; }

.seg { display: flex; gap: 4px; padding: 3px; background: var(--fill); border-radius: 10px; overflow-x: auto; }
.seg a { flex: 1; text-align: center; padding: 6px 12px; border-radius: 8px; font-size: 14px; font-weight: 550; color: var(--ink-2); text-decoration: none; white-space: nowrap; }
.seg a.active { background: var(--surface); color: var(--ink); box-shadow: 0 1px 2px rgba(0, 0, 0, .08); }
/* JS-toggled segmented choice (same tokens as .seg, pressed buttons instead of links). */
.seg .seg-btn { flex: 1; display: block; margin: 0; padding: 6px 12px; border: 0; border-radius: 8px;
  background: none; color: var(--ink-2); font: inherit; font-size: 14px; font-weight: 550; cursor: pointer; white-space: nowrap; }
.seg .seg-btn.active { background: var(--surface); color: var(--ink); box-shadow: 0 1px 2px rgba(0, 0, 0, .08); }

.back { display: inline-flex; align-items: center; gap: 2px; margin-left: -6px; padding: 4px 6px; min-height: 36px; color: var(--ink-2);
  text-decoration: none; font-size: 15px; font-weight: 550; }
.back svg { width: 18px; height: 18px; }

details.fold > summary { cursor: pointer; color: var(--ink-3); font-size: 14px; padding: 4px; list-style: none; }
details.fold > summary::-webkit-details-marker { display: none; }
details.fold[open] > summary { margin-bottom: 8px; }

/* ---------- table ---------- */
.scroll-x { overflow-x: auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.table { width: 100%; border-collapse: collapse; font-size: 15px; }
.table th { font-size: 12px; font-weight: 600; color: var(--ink-2); text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.table td { padding: 8px 12px; border-top: 1px solid var(--line); }
.table tr:first-child td { border-top: 0; }
.table td input[type="checkbox"] { width: 20px; height: 20px; accent-color: var(--brand); }
.stats-input { width: 56px; min-height: 36px; padding: 4px 6px; text-align: center; }

/* ---------- games ---------- */
.next { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 18px; display: flex; flex-direction: column; gap: 14px; }
.next .game-link { text-decoration: none; display: flex; flex-direction: column; gap: 4px; }
.next-when { font-size: 15px; font-weight: 600; color: var(--accent); }
.next-when span { color: var(--ink-2); font-weight: 500; margin-left: 4px; }
.next h2 { font-size: 26px; line-height: 1.15; font-weight: 700; letter-spacing: -.02em; }
.next .lineup { margin-top: 10px; }
.duty-mine { font-size: 14px; font-weight: 600; color: var(--warn); }

.lineup { display: flex; align-items: center; gap: 12px; font-size: 14px; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.meter { flex: 1; height: 6px; border-radius: 3px; background: var(--fill); overflow: hidden; }
.meter span { display: block; height: 100%; background: var(--ink-3); border-radius: 3px; }
.lineup.confirmed .meter span { background: var(--in); }
.lineup.at-risk .meter span { background: var(--accent); }

.note-card { display: flex; gap: 8px; align-items: flex-start; padding: 14px 8px 14px 16px; background: var(--amber-bg); border-radius: var(--radius); }
.note-card > div { flex: 1; display: flex; flex-direction: column; gap: 4px; }
.note-card h3 { font-size: 16px; }
.note-card p { white-space: pre-wrap; }

/* ---------- game ---------- */
.game-head { display: flex; flex-direction: column; gap: 4px; }
.score { display: flex; align-items: center; gap: 8px; font-size: 20px; font-weight: 650; font-variant-numeric: tabular-nums; margin-top: 4px; }
.notes { padding: 12px 14px; background: var(--amber-bg); border-radius: var(--radius); white-space: pre-wrap; }
.duties { display: flex; flex-direction: column; gap: 8px; }
.duty { display: flex; align-items: center; gap: 10px; padding: 8px 8px 8px 14px; min-height: 52px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.duty-who { flex: 1; display: flex; align-items: baseline; gap: 10px; background: none; border: 0; padding: 0; text-align: left; font-weight: 550; cursor: inherit; }
button.duty-who { cursor: pointer; }
.duty-who .label { color: var(--ink-2); font-weight: 500; }
.lineup-block { display: flex; flex-direction: column; gap: 12px; }
.lineup-block .lineup { padding: 0 4px; }
.rsvp-at { font-size: 12px; color: var(--ink-3); margin-left: 6px; }
.manager { padding-top: 8px; border-top: 1px solid var(--line); }
.projection { color: var(--ink-2); font-size: 15px; padding: 0 4px; }
.spares li { display: flex; align-items: center; }
.spares li .item { flex: 1; }
.spare-state { display: flex; align-items: center; gap: 2px; padding-right: 6px; }
.nav-list .item { justify-content: space-between; }

/* ---------- roster / me / fees / stats ---------- */
.roster-row .item { min-height: 50px; }
.contact { display: grid; grid-template-columns: repeat(auto-fit, minmax(90px, 1fr)); gap: 8px; }
.contact-lines { color: var(--ink-2); font-size: 14px; text-align: center; word-break: break-all; }
.me-head { display: flex; flex-direction: column; gap: 4px; }
.sms { margin-top: 12px; }
.hero { text-align: center; padding: 16px 0 4px; display: flex; flex-direction: column; gap: 6px; }
.hero-num { font-size: 44px; font-weight: 700; letter-spacing: -.03em; font-variant-numeric: tabular-nums; line-height: 1.1; }
.hero .actions { margin-top: 10px; }
.stats-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; }
.stat { display: flex; flex-direction: column; gap: 2px; padding: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.stat-num { font-size: 24px; font-weight: 700; font-variant-numeric: tabular-nums; }
.stat-label { font-size: 13px; color: var(--ink-2); }
.ann-log > summary { list-style: none; }
.ann-log > summary::-webkit-details-marker { display: none; }
.ann-body { padding: 0 14px 14px; white-space: pre-wrap; color: var(--ink-2); }
.summary { font-weight: 550; }
.off-season { margin-top: 24px; }

/* ---------- chat ---------- */
.chat-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.tab-dot { display: inline-block; width: 6px; height: 6px; margin-left: 4px; border-radius: 50%; background: var(--accent); vertical-align: 2px; }
.dot { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.lock-icon { color: var(--ink-3); }
.lock-icon svg { width: 16px; height: 16px; }
.posts .post { display: flex; flex-direction: column; gap: 4px; padding: 12px 14px; }
.post-tap { cursor: pointer; }
.post-tap:active { background: var(--fill); }
@media (hover: hover) { .post-tap:hover { background: var(--fill); } }
.post-head { display: flex; align-items: baseline; gap: 8px; }
.post-author { font-size: 14px; font-weight: 600; }
.post-time, .post-edited { font-size: 12px; color: var(--ink-3); }
.post-body { white-space: pre-wrap; word-break: break-word; }
.reply-bar { display: flex; align-items: flex-end; gap: 8px; }
.reply-bar textarea { flex: 1; min-height: 48px; }
.reply-bar .btn { min-height: 48px; }
.locked { color: var(--ink-3); text-align: center; padding: 12px; }

/* ---------- sign in ---------- */
.login { max-width: 340px; margin: 12vh auto 0; display: flex; flex-direction: column; align-items: center; gap: 16px; text-align: center; }
.login h1 { font-size: 24px; font-weight: 700; letter-spacing: -.02em; }
.login-mark { border-radius: 14px; }
.login form { width: 100%; display: flex; flex-direction: column; gap: 10px; margin-top: 8px; }
.login input { text-align: center; }
.login-sent { color: var(--ink-2); font-size: 15px; }
.quiet-link { color: var(--ink-3); font-size: 14px; text-decoration: none; padding: 6px; }
.legal-links { display: flex; gap: 16px; margin-top: 24px; font-size: 13px; }
.legal-links a { color: var(--ink-3); text-decoration: none; }
body:has(.login) .topbar { display: none; }

/* ---------- sheet ---------- */
dialog.sheet { padding: 0; border: 0; background: none; max-width: none; max-height: none; width: 100%; height: 100%; margin: 0; color: inherit; }
dialog.sheet::backdrop { background: rgba(0, 0, 0, .35); }
.sheet-panel { position: absolute; left: 0; right: 0; bottom: 0; max-height: 92vh; overflow-y: auto; background: var(--bg);
  border-radius: 16px 16px 0 0; padding: 0 16px calc(20px + env(safe-area-inset-bottom)); animation: sheet-up .22s cubic-bezier(.2, .8, .2, 1); }
.sheet-head { position: sticky; top: 0; z-index: 1; display: flex; align-items: center; gap: 8px; padding: 14px 0 10px; background: var(--bg); }
.sheet-head h2 { flex: 1; font-size: 18px; font-weight: 650; }
.sheet-body { display: flex; flex-direction: column; gap: 14px; }
.sheet-body > .scroll-x, .sheet-body > .table { background: var(--surface); }
.sheet-body > .table { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
@keyframes sheet-up { from { transform: translateY(40px); opacity: 0; } }
@media (min-width: 640px) {
  .sheet-panel { left: 50%; top: 50%; bottom: auto; width: min(520px, calc(100% - 48px)); max-height: 85vh; transform: translate(-50%, -50%);
    border-radius: 16px; padding-bottom: 20px; animation: none; }
}

/* ---------- feedback ---------- */
.toast { position: fixed; left: 50%; bottom: calc(88px + env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 100;
  max-width: calc(100% - 32px); padding: 10px 16px; border-radius: 12px; background: var(--ink); color: var(--bg); font-size: 15px; font-weight: 550;
  box-shadow: 0 6px 24px rgba(0, 0, 0, .18); }
@media (min-width: 820px) { .toast { bottom: 24px; } }
.ptr { position: fixed; left: 50%; z-index: 15; padding: 6px 12px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line);
  font-size: 13px; color: var(--ink-2); opacity: 0; pointer-events: none; }
.ptr.on { opacity: 1; }
.ptr.settle { transition: transform .2s, opacity .2s; }

/* ---------- server-rendered pages: /r/:token, /install, legal, errors ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 20px; }
.card + .card { margin-top: 12px; }
main.card { margin-top: 24px; }
.narrow { max-width: 520px; margin-left: auto; margin-right: auto; }
.card h1 { font-size: 24px; letter-spacing: -.02em; margin-bottom: 8px; }
.card h2 { font-size: 18px; margin: 20px 0 6px; }
.card p, .card ul, .card ol, .card blockquote { margin: 8px 0; }
.card a.btn { margin-top: 4px; }
.legal { line-height: 1.55; }
.legal blockquote { padding: 10px 14px; background: var(--fill); border-radius: 10px; margin-left: 0; margin-right: 0; }
.big { font-size: 22px; font-weight: 650; margin: 16px 0; }
.rsvp-buttons { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 16px 0; }
.rsvp-buttons .btn { min-height: 52px; font-size: 17px; }
body[data-rsvp="in"] .rsvp-buttons .btn.in { background: var(--in); border-color: var(--in); color: #fff; }
body[data-rsvp="out"] .rsvp-buttons .btn.out { background: var(--out); border-color: var(--out); color: #fff; }
body.standalone, body:not(:has(#tabbar)) { padding-bottom: 24px; }
body:not(:has(#tabbar)) main { padding: 16px; }
