/* Look: the "Club Worksheets" design system. Four colours (Paper, Ink, Slate, Mint), one typeface (Proxima Nova, with
   Montserrat as the web fallback), cards in surface-raised with a 14px radius, a mint rule on top. Shapes
   (pill buttons, 10px inputs, 14px cards) follow the Apps design system; the colours stay ISM's. Pages are always
   white: there is no dark version. Body text is 16px on screen (the system's 10pt is for printed sheets). */
:root {
  color-scheme: light;
  --paper: #fdfdf8; --ink: #303431; --slate: #4b6673; --mint: #aacfc6;
  --surface: #ffffff; --raised: #eef4f1; --muted: #4b6673; --faded: #5f6964;
  --line: #7d8782; --rule: #dfe5e1; --grey: #e7e9e8;
  --font: "Proxima Nova", Montserrat, "Helvetica Neue", Arial, sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--surface); color: var(--ink); font: 400 16px/1.5 var(--font); }
body::before { content: ""; display: block; height: 8px; background: var(--mint); }
main { max-width: 560px; margin: 0 auto; padding: 24px 16px 64px; }
main.wide { max-width: 980px; }
.eyebrow { font-size: 10.67px; line-height: 1.4; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
h1 { font-size: 29.33px; line-height: 1.1; font-weight: 700; letter-spacing: -.015em; margin: 8px 0 8px; }
h2 { font-size: 20px; line-height: 1.2; font-weight: 600; letter-spacing: -.01em; margin: 24px 0 8px; }
a { color: var(--slate); }
.sub { color: var(--muted); margin: 0 0 20px; }
.card { background: var(--raised); border-radius: 14px; padding: 20px; }
label { display: block; font-weight: 600; margin: 14px 0 4px; font-size: .95rem; }
input, select { width: 100%; padding: 12px; font: inherit; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--ink); }
input:not([type=checkbox]):not([type=radio]), select { min-height: 44px; }
input[type=checkbox] { width: auto; }
/* Buttons: one shape (a pill at least 44px tall, 1px border, weight 600) in four types, after the Apps design system,
   coloured with the ISM palette. A view has one primary; everything else steps down.
   primary (default): mint fill, ink text. .ghost: the secondary type, white fill with a line border.
   .outline: no fill, slate border and text, an alternative next to a primary. .bad: the danger type, ink fill.
   Disabled is a state, not a colour: raised fill, rule border, faded text. */
button, .btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 18px; font: 600 16px/1.2 var(--font); border: 1px solid transparent; border-radius: 999px; background: var(--mint); color: var(--ink); cursor: pointer; text-decoration: none; text-align: center; }
button:hover, .btn:hover { filter: brightness(.96); }
button:focus-visible, .btn:focus-visible, input:focus-visible, select:focus-visible, a:focus-visible { outline: 3px solid var(--slate); outline-offset: 2px; }
button.big { display: flex; width: 100%; min-height: 64px; padding: 18px 24px; font-size: 1.3rem; margin: 20px 0 8px; }
button.full { display: flex; width: 100%; margin-top: 18px; }
button.small, .btn.small { min-height: 36px; padding: 6px 14px; font-size: 14px; }
button.ghost, .btn.ghost { background: var(--surface); color: var(--ink); border-color: var(--line); }
button.outline, .btn.outline { background: transparent; color: var(--slate); border-color: var(--slate); }
button.bad, .btn.bad { background: var(--ink); color: var(--paper); }
button:disabled, button:disabled:hover { background: var(--raised); border-color: var(--rule); color: var(--faded); cursor: not-allowed; filter: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: 8px; }
.err { color: var(--ink); font-weight: 600; margin-top: 12px; min-height: 1.2em; }
.hp { position: absolute; left: -9999px; height: 0; overflow: hidden; }
.center { text-align: center; }
.who { margin: 0 0 12px; font-weight: 600; }
.statusline { margin: 4px 0 16px; }
.pill { display: inline-block; padding: 4px 14px; border-radius: 999px; font-size: .85rem; font-weight: 600; border: 1px solid var(--line); background: var(--surface); color: var(--slate); }
.pill.Confirmed { background: var(--mint); border-color: var(--mint); color: var(--ink); }
.pill.Coming { background: var(--raised); border-color: var(--slate); color: var(--ink); }
.pill.Unconfirmed, .pill.Waitlisted { background: var(--grey); border-color: var(--grey); color: var(--ink); }
.pill.NotComing { background: var(--surface); border-color: var(--line); color: var(--muted); }
.pill.Pending, .pill.Invited { background: var(--surface); border-color: var(--slate); color: var(--slate); }
.qr { background: #fff; border-radius: 12px; padding: 8px; display: block; width: fit-content; margin: 16px auto; border: 1px solid var(--rule); }
.qr svg { display: block; width: min(280px, 70vw); height: auto; }
nav { display: flex; gap: 8px; align-items: center; margin-bottom: 12px; flex-wrap: wrap; }
nav .grow { flex: 1; margin: 0; }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--rule); vertical-align: middle; font-size: .95rem; }
th { color: var(--muted); font-weight: 600; font-size: 10.67px; letter-spacing: .1em; text-transform: uppercase; }
.card table { background: var(--surface); }
.actions { display: flex; gap: 6px; flex-wrap: wrap; }
.overlay { position: fixed; inset: 0; background: rgba(48,52,49,.55); display: flex; align-items: center; justify-content: center; padding: 16px; z-index: 10; }
.overlay .card { width: 100%; max-width: 360px; background: var(--surface); }
dialog.card { border: 0; color: var(--ink); }
dialog::backdrop { background: rgba(48,52,49,.55); }
fieldset { border: 1px solid var(--rule); border-radius: 10px; margin: 12px 0; }
legend { font-weight: 600; font-size: .85rem; color: var(--muted); }
/* Door scanner: three results told apart by lightness (mint, slate, ink), with big words, not by red / green. */
#banner { border-radius: 12px; padding: 20px; text-align: center; margin: 14px 0; font-size: 1.1rem; min-height: 88px; display: flex; flex-direction: column; justify-content: center; background: var(--raised); color: var(--muted); }
#banner b { font-size: 1.5rem; display: block; }
#banner.ok { background: var(--mint); color: var(--ink); }
#banner.dup { background: var(--slate); color: var(--paper); }
#banner.bad { background: var(--ink); color: var(--paper); }
#reader { width: 100%; border-radius: 12px; overflow: hidden; background: var(--ink); }
.menu-list { display: none; }
@media (max-width: 640px) { .hide-sm { display: none; } h1 { font-size: 26px; } }

/* Footer on the guest pages (see footer.js). */
.site-foot { max-width: 560px; margin: 32px auto 0; padding: 20px 16px 32px; border-top: 1px solid var(--rule); text-align: center; color: var(--muted); font-size: .9rem; }
.site-foot img { border-radius: 50%; }
.site-foot p { margin: 8px 0 0; }
