/* Shared styles for every Issaquah Ward page. Markup emitted by shared code is
   styled here, not in the page that used it first (HS40 lesson). */
:root {
  --bg: #fbf7ef; --card: #ffffff; --ink: #2b2420; --muted: #6f655c; --line: #e6dccd;
  --green: #1f6b45; --green-ink: #ffffff; --red: #b3262f; --gold: #c98a12; --soft: #f3ece0;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #17140f; --card: #211d17; --ink: #f1ebe2; --muted: #b3a898; --line: #3a332a;
          --green: #3f9b6d; --green-ink: #0f0d0a; --red: #e0606a; --gold: #e2a83a; --soft: #2a251e; }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink);
  font: 18px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
a { color: var(--green); }
.topbar { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--line); background: var(--card); }
.topbar .home { font-weight: 700; text-decoration: none; color: var(--ink); }
.topbar .home span { color: var(--red); }
.topbar .spacer { flex: 1; }
.topbar .who { font-size: 15px; }
main { max-width: 760px; margin: 0 auto; padding: 24px 16px 64px; }
main.narrow { max-width: 560px; }
h1 { font-size: 30px; line-height: 1.2; margin: 8px 0 12px; }
h2 { font-size: 21px; margin: 32px 0 10px; }
.lede { font-size: 19px; color: var(--ink); }
.hint { color: var(--muted); font-size: 15px; }
.btn { display: inline-block; font: inherit; font-weight: 600; border: 0; border-radius: 10px; cursor: pointer;
  padding: 12px 20px; background: var(--green); color: var(--green-ink); text-decoration: none; min-height: 48px; }
.btn:disabled { opacity: .55; cursor: default; }
.btn.secondary { background: var(--soft); color: var(--ink); border: 1px solid var(--line); }
.btn.small { padding: 6px 12px; min-height: 36px; font-size: 15px; }
.btn.red { background: var(--red); color: #fff; }
input[type=text], input[type=search], input[type=tel], input[type=email] {
  font: inherit; width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px;
  background: var(--card); color: var(--ink); }
label { display: block; font-weight: 600; margin: 16px 0 6px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 16px; margin: 12px 0; }
.note { background: var(--soft); border-left: 4px solid var(--gold); border-radius: 8px; padding: 12px 14px; margin: 16px 0; font-size: 16px; }
.error { color: var(--red); font-weight: 600; }
.spinner { color: var(--muted); }
.row { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.row:last-child { border-bottom: 0; }
.row .name { flex: 1; min-width: 180px; }
.row .name small { display: block; color: var(--muted); font-size: 15px; }
.pill { display: inline-block; font-size: 14px; font-weight: 600; padding: 3px 10px; border-radius: 99px; white-space: nowrap; }
.pill.open { background: #fdeaea; color: #8c1c24; }
.pill.claimed { background: #fff3d6; color: #7a5200; }
.pill.elfed { background: #e3f3ea; color: #175536; }
.pill.out { background: var(--soft); color: var(--muted); }
@media (prefers-color-scheme: dark) {
  .pill.open { background: #4a1d21; color: #ffc9cd; } .pill.claimed { background: #4a3a12; color: #ffe2a3; }
  .pill.elfed { background: #173a28; color: #bfe9d0; }
}
.hero { text-align: center; padding: 8px 0 0; }
.hero .elf { font-size: 96px; line-height: 1; }
.choices { display: grid; gap: 10px; margin: 12px 0; }
.adults { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
footer { margin-top: 48px; color: var(--muted); font-size: 15px; border-top: 1px solid var(--line); padding-top: 16px; }
table.admin { width: 100%; border-collapse: collapse; font-size: 15px; }
table.admin th, table.admin td { text-align: left; padding: 8px 6px; border-bottom: 1px solid var(--line); vertical-align: top; }
.tabs { display: flex; gap: 6px; flex-wrap: wrap; margin: 12px 0; }
.tabs button { font: inherit; font-size: 15px; padding: 8px 14px; border-radius: 99px; border: 1px solid var(--line); background: var(--card); color: var(--ink); cursor: pointer; }
.tabs button.on { background: var(--green); color: var(--green-ink); border-color: var(--green); }
.scroll { overflow-x: auto; }
@media print { .topbar, footer, .noprint { display: none !important; } body { background: #fff; color: #000; } }
