/* Shared styles for every page. Each lane keeps its own page styles in its own file. Works at 320 px wide. */
:root {
  color-scheme: light;
  --navy: #05153A; --ink: #0A1F44; --muted: #4E6482;
  --green: #036B04; --green-bg: #E3F3E3; --orange: #A63800; --orange-bg: #FFF0E6;
  --marigold: #FBB905; --sky: #C7EAFA; --line: #D3E6F3; --shore: #F4F8FB; --paper: #FFFFFF;
  --font: system-ui, -apple-system, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--shore); color: var(--ink); font: 16px/1.45 var(--font); overflow-wrap: anywhere; }
main { max-width: 960px; margin: 0 auto; padding: 16px 16px 64px; }
main.narrow { max-width: 420px; }
h1 { font-size: 1.5rem; margin: 0 0 12px; color: var(--navy); }
h2 { font-size: 1.2rem; margin: 24px 0 8px; color: var(--navy); }
a { color: var(--navy); }

.top { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 10px 16px;
  background: var(--navy); color: #fff; }
.top .brand { font-weight: 700; color: var(--marigold); }
.top .link { background: none; border: 0; color: #fff; text-decoration: underline; padding: 4px; min-height: 0;
  margin: 0; }

label { display: block; font-weight: 600; margin: 12px 0 4px; }
input, select, textarea { width: 100%; max-width: 100%; font: inherit; padding: 9px 10px; border: 1.5px solid #9DB3CC;
  border-radius: 8px; background: #fff; color: var(--ink); }
button { font: inherit; font-weight: 700; min-height: 44px; padding: 10px 16px; margin: 12px 0 0; border: 0;
  border-radius: 10px; background: var(--marigold); color: var(--navy); cursor: pointer; }
button.alt { background: #fff; border: 2px solid var(--navy); }
button:disabled { background: #E3E9F0; color: #6E7F96; cursor: default; }
:focus-visible { outline: 3px solid var(--navy); outline-offset: 2px; }

.card { background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 16px; margin: 0 0 12px; }
.muted { color: var(--muted); }
.error { color: var(--orange); font-weight: 600; }
.ok { color: var(--green); font-weight: 600; }
.pill { display: inline-block; font-size: .75rem; font-weight: 700; padding: 2px 8px; border-radius: 99px;
  background: var(--sky); color: var(--navy); }

.tablewrap { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; font-size: .9rem; }
th, td { text-align: left; padding: 6px 8px; border-bottom: 1px solid var(--line); }

.admin-nav { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 16px; }
.admin-nav button { margin: 0; background: #fff; border: 1.5px solid var(--line); }
.admin-nav button.on { background: var(--navy); color: #fff; border-color: var(--navy); }

/* Leak guards (spec 9.2): the watermark never takes a click; question text cannot be selected or printed. */
.watermark { position: fixed; inset: -50%; z-index: 50; pointer-events: none; user-select: none; overflow: hidden;
  display: flex; flex-wrap: wrap; align-content: flex-start; gap: 36px 40px; padding: 24px; transform: rotate(-24deg);
  opacity: .13; color: var(--navy); font-size: 13px; white-space: nowrap; }
.nocopy { user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }

/* The Register form's trap field (spec 4.1): its aria-hidden wrapper sits off screen, as the CSP allows no style
   attribute. People never see it; bots that fill every box fill it. */
.trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
@media print { .nocopy { visibility: hidden; } }
