/* C3 Liverpool Attendance — shared styles.
   Brand tokens live at the top: swap these when the exact brand colours and fonts are confirmed. */
:root {
  --brand: #1f5c4a;          /* placeholder green: replace with C3 Liverpool's exact green */
  --brand-ink: #ffffff;      /* text on brand colour */
  --brand-soft: #e4efe9;
  --bg: #f4f6f5;
  --surface: #ffffff;
  --ink: #18221e;
  --muted: #5c6b65;
  --line: #d9e0dc;
  --warn: #b3412b;
  --warn-soft: #f9e3dd;
  --gold: #a57620;
  --gold-soft: #f6ecd8;
  --radius: 14px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-num: ui-monospace, "SF Mono", "Cascadia Mono", Menlo, monospace;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --brand: #5fbf9c; --brand-ink: #0c1713; --brand-soft: #1b3229;
    --bg: #101513; --surface: #18201c; --ink: #e7ede9; --muted: #9aa9a2; --line: #2b3631;
    --warn: #ef8c74; --warn-soft: #3a211b; --gold: #dcae55; --gold-soft: #33291a;
    color-scheme: dark;
  }
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--bg); color: var(--ink); font-family: var(--font); font-size: 16px; line-height: 1.5;
  -webkit-text-size-adjust: 100%;
}
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
h1, h2, h3 { margin: 0; line-height: 1.2; letter-spacing: -0.01em; }
p { margin: 0; }
.muted { color: var(--muted); }
.small { font-size: 0.85rem; }
.num { font-family: var(--font-num); font-variant-numeric: tabular-nums; }
[hidden] { display: none !important; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 18px; border-radius: 12px; border: 1px solid transparent;
  background: var(--brand); color: var(--brand-ink); font-weight: 700;
}
.btn.block { width: 100%; padding: 15px; font-size: 1.05rem; }
.btn.ghost { background: var(--surface); color: var(--ink); border-color: var(--line); font-weight: 600; }
.btn.danger { background: var(--warn); color: #fff; }
.btn.sm { padding: 6px 12px; font-size: 0.85rem; border-radius: 9px; }
.btn:disabled { opacity: .55; cursor: default; }

.field { display: flex; flex-direction: column; gap: 4px; }
.field label { font-size: 0.8rem; font-weight: 600; color: var(--muted); }
.input, select.input, textarea.input {
  width: 100%; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface);
}
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.msg { padding: 10px 12px; border-radius: 10px; font-size: 0.9rem; }
.msg.err { background: var(--warn-soft); color: var(--warn); }
.msg.ok { background: var(--brand-soft); color: var(--brand); }
.msg.info { background: var(--gold-soft); color: var(--gold); }

.wordmark { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; letter-spacing: -0.02em; }
.wordmark img { height: 28px; width: auto; display: block; }
.wordmark .badge {
  display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 8px;
  background: var(--brand); color: var(--brand-ink); font-size: 0.85rem;
}
