/* Same look as the tracker (colours from lockerbietractorrun.co.uk), trimmed to what the registration pages use.
   Light or dark follows the phone. Inputs are 16px so iOS does not zoom, and every control is at least 44px tall. */
:root {
  color-scheme: light dark;
  --red: #b80406;
  --ink: #2a345d;
  --on-ink: #fff;
  --bg: #fff;
  --soft: #f1f2f7;
  --notice: #e8ebf5;
  --muted: #4b5470;
  --err: #b80406;
}
@media (prefers-color-scheme: dark) {
  :root {
    --ink: #dbe3f7;
    --on-ink: #0f1b2d;
    --bg: #0f1b2d;
    --soft: #16253b;
    --notice: #1d2d49;
    --muted: #b4bfd6;
    --err: #ff7a7d;
  }
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink);
       font: 16px/1.4 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; }
a { color: var(--ink); }
[hidden] { display: none !important; }
.brand { background: #fff; padding: .35rem 1rem; display: flex; align-items: center; }
.brand img { display: block; height: 48px; width: auto; }
.bar { background: var(--red); color: #fff; padding: .45rem 1rem .5rem; }
h1 { margin: 0; font-size: 1.05rem; line-height: 1.2; }
.lede { margin: .1rem 0 0; font-size: .85rem; }
.lede:empty { display: none; }
main { padding: 1rem; max-width: 34rem; margin: 0 auto; }
h2 { font-size: 1.2rem; margin: .2rem 0 .6rem; }
.number { font-size: 1.1rem; margin: 0 0 1rem; }
.number b { font-size: 2.2rem; vertical-align: -.1em; }
.field { margin: 0 0 1rem; }
label { display: block; font-weight: 700; margin-bottom: .25rem; }
input { display: block; width: 100%; min-height: 44px; padding: .5rem .6rem; font: inherit; font-size: 16px;
        color: var(--ink); background: var(--bg); border: 2px solid var(--ink); border-radius: .4rem; }
input:focus-visible, button:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }
.hint, .fine { color: var(--muted); font-size: .85rem; margin: 0 0 .35rem; }
.err { color: var(--err); font-weight: 700; margin: .25rem 0 0; }
.err:empty { display: none; }
.notice { background: var(--notice); padding: .6rem .75rem; border-radius: .4rem; font-size: .85rem; }
.status { font-size: 1.15rem; font-weight: 700; }
button { font: inherit; font-weight: 700; min-height: 44px; padding: .5rem 1.4rem; border-radius: .4rem; cursor: pointer;
         border: 2px solid var(--ink); background: var(--ink); color: var(--on-ink); margin-right: .5rem; }
button.secondary { background: var(--bg); color: var(--ink); }
button:disabled { opacity: .6; cursor: wait; }
/* Bots fill every field; people never see this one. Kept off screen rather than display:none so bots still see it. */
/* Organisers' page. Cards instead of a table so it reads on a phone in a car park. */
main.wide { max-width: 46rem; }
select { display: block; width: 100%; min-height: 44px; padding: .5rem .6rem; font: inherit; font-size: 16px;
         color: var(--ink); background: var(--bg); border: 2px solid var(--ink); border-radius: .4rem; }
select:focus-visible, summary:focus-visible, a:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }
.toolbar { display: grid; grid-template-columns: 1fr; gap: .1rem; align-items: end; }
@media (min-width: 40rem) { .toolbar { grid-template-columns: 1.4fr 1.4fr 1fr auto; gap: .75rem; } }
#msg:empty { display: none; }
#msg { background: var(--notice); padding: .6rem .75rem; border-radius: .4rem; font-weight: 700; }
.row { border: 2px solid var(--soft); background: var(--soft); border-radius: .5rem; padding: .7rem .8rem; margin: 0 0 .7rem; }
.row-head { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem .6rem; }
.row .num { font-size: 1.3rem; }
.row .who { font-weight: 700; flex: 1 1 8rem; }
.chip { font-size: .8rem; font-weight: 700; padding: .1rem .5rem; border-radius: 1rem; border: 2px solid var(--ink); }
.chip.yes { background: var(--ink); color: var(--on-ink); }
.vehicle { margin: .3rem 0; }
.contacts { display: flex; flex-direction: column; gap: .15rem; margin: .3rem 0 .6rem; }
.contact a { display: inline-block; padding: .35rem 0; font-weight: 700; }
summary { min-height: 44px; display: flex; align-items: center; cursor: pointer; font-weight: 700; }
#setup, #users, #tools { border: 2px solid var(--soft); border-radius: .5rem; padding: 0 .8rem; margin: .8rem 0; }
#setup form, #users > *, #tools > * { margin-bottom: .8rem; }
.range { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; }
details p[role="status"]:empty { display: none; }
.actions { display: flex; flex-wrap: wrap; gap: .5rem; margin: .5rem 0; }
button.danger { border-color: var(--err); color: var(--err); }
.pin-out:empty { display: none; }
.pin-out { font-size: 1.1rem; font-weight: 700; }
.doc { line-height: 1.5; }
.doc h2 { font-size: 1.05rem; margin: 1.4rem 0 .3rem; }
.doc p, .doc li { font-size: .95rem; }
.doc ul { padding-left: 1.2rem; }
.doc .updated { color: var(--muted); font-size: .85rem; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.user-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem; padding: .4rem 0; border-bottom: 1px solid var(--soft); }
dialog#drawer { margin: 0 0 0 auto; padding: 0; width: min(26rem, 100vw); max-width: none; height: 100dvh; max-height: none; border: 0; border-left: 4px solid var(--red); background: var(--bg); color: var(--ink); overflow-y: auto; }
dialog#drawer::backdrop { background: rgb(0 0 0 / .55); }
dialog#drawer[open] { animation: drawer-in .2s ease-out; }
@keyframes drawer-in { from { transform: translateX(100%); } }
@media (prefers-reduced-motion: reduce) { dialog#drawer[open] { animation: none; } }
.drawer-body { padding: 1rem; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; gap: .5rem; }
.drawer-head h2 { margin: 0; }
