/* Phone-first, readable outdoors: large text, large tap targets, high contrast.
   GUARDRAIL: all styling lives in this file; inline style="" is blocked by the CSP (ADR 0012). */
:root { --ink: #1b1b1b; --muted: #555; --brand: #7a1f1f; --ok: #1e6b32; --bad: #a61b1b; --line: #ccc; }
* { box-sizing: border-box; }
body { margin: 0; font: 18px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; color: var(--ink); background: #fafafa; }
.bar { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; background: var(--brand); color: #fff; }
.brand { font-weight: 700; }
.page { max-width: 960px; margin: 0 auto; padding: 16px; }
h1 { font-size: 1.5rem; }
.stack { display: grid; gap: 14px; margin: 16px 0; }
label { display: grid; gap: 6px; font-weight: 600; }
input, select, textarea { font: inherit; padding: 12px; border: 1px solid var(--line); border-radius: 8px; width: 100%; }
button { font: inherit; padding: 14px 18px; border: 0; border-radius: 8px; background: var(--brand); color: #fff; font-weight: 700; min-height: 48px; }
button.link { background: transparent; padding: 0; min-height: 0; text-decoration: underline; }
.alert { padding: 12px; border-left: 4px solid var(--bad); background: #fdeaea; }
.ok { color: var(--ok); font-weight: 700; }
.qr svg { width: 220px; height: 220px; background: #fff; padding: 8px; }
.codes { columns: 2; font-size: 1rem; }

/* Screens (ADR 0011 order of work, step 2) */
.nav { display: flex; gap: 18px; padding: 10px 16px; background: #fff; border-bottom: 1px solid var(--line); overflow-x: auto; }
.nav a { color: var(--ink); font-weight: 600; white-space: nowrap; }
.head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; }
a.button { display: inline-block; padding: 12px 16px; border-radius: 8px; background: var(--brand); color: #fff; font-weight: 700; text-decoration: none; }
button.secondary, a.button.secondary { background: #fff; color: var(--brand); border: 2px solid var(--brand); }
.notice { padding: 12px; border-left: 4px solid var(--ok); background: #e8f4ec; }
.search { display: flex; gap: 8px; margin: 12px 0; }
.check { display: flex; gap: 10px; align-items: center; font-weight: 400; }
.check input { width: auto; }
details { border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; background: #fff; }
summary { font-weight: 600; cursor: pointer; }
.danger { margin-top: 32px; padding-top: 16px; border-top: 1px solid var(--line); }
/* Wide tables and the board scroll sideways inside their box, never the whole page. */
.scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table { border-collapse: collapse; width: 100%; background: #fff; font-size: 1rem; }
th, td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
tr.muted td { color: var(--muted); }
.tag { display: inline-block; margin-left: 6px; padding: 1px 8px; border-radius: 10px; background: #eee; font-size: .85rem; font-weight: 600; }
.tag.bad { background: #fdeaea; color: var(--bad); }
.tag.ok { background: #e8f4ec; color: var(--ok); }
.pager { display: flex; gap: 18px; margin: 12px 0; }
.tabs { display: flex; gap: 6px; flex-wrap: wrap; margin: 12px 0; }
.tabs a { padding: 8px 12px; border-radius: 8px; border: 1px solid var(--line); background: #fff; color: var(--ink); text-decoration: none; }
.tabs a.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.hint { color: var(--muted); font-size: .95rem; margin: -6px 0 0; }
.facts { display: grid; grid-template-columns: max-content 1fr; gap: 8px 16px; background: #fff; padding: 12px; border-radius: 8px; border: 1px solid var(--line); }
.facts dt { font-weight: 600; color: var(--muted); }
.facts dd { margin: 0; }
.pre { white-space: pre-line; }
.actions { margin: 20px 0; display: grid; gap: 16px; }
h2 { font-size: 1.15rem; margin: 8px 0 0; }
@media (max-width: 480px) { .facts { grid-template-columns: 1fr; } .facts dd { margin-bottom: 6px; } }
/* Availability board: narrow day columns, the unit column stays in view while scrolling sideways. */
table.board { width: auto; font-size: .9rem; }
.board th, .board td { padding: 6px 4px; min-width: 52px; text-align: center; border: 1px solid var(--line); }
.board tbody th { position: sticky; left: 0; background: #fff; text-align: left; white-space: nowrap; }
.board th.today { background: #fff4d6; }
.board th.weekend { color: var(--muted); }
.board td.held { background: #dfe8f7; }
.board td.out { background: #c9d9f2; }
.board td.late { background: #fdeaea; }
.board td a { display: block; color: var(--ink); text-decoration: none; font-size: .8rem; }
.board a.book { color: var(--muted); font-size: 1.1rem; }
.board tr.free td { font-weight: 700; color: var(--ok); }
.board tr.free td.none { color: var(--bad); background: #fdeaea; }
.langs { display: flex; gap: 4px; margin-left: auto; margin-right: 16px; }
.langs .lang { color: #fff; text-decoration: none; padding: 4px 8px; border-radius: 6px; font-weight: 700; opacity: .7; }
.langs .lang[aria-current] { opacity: 1; background: rgba(255,255,255,.2); }
