/* Boardroom Numbers — course pages (quiz, certificate). Same tokens as boardroomnumbers.com. */
:root {
  --paper: #f7f5ef; --panel: #fff; --ink: #111827; --ink-2: #344054; --muted: #667085; --line: #e4e1d8;
  --cobalt: #4657f2; --cobalt-dark: #3443d6; --cobalt-soft: #eceefe; --lime: #c9ec55; --warn: #9a3b1e; --ok: #1f7a4d;
  --font: "Geist", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: light;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 16px/1.55 var(--font); }
a { color: var(--cobalt); }
.wrap { max-width: 760px; margin: 0 auto; padding: 20px max(16px, env(safe-area-inset-left, 0px)) 48px; }
.bn-head { display: flex; align-items: center; justify-content: space-between; gap: 12px 20px; flex-wrap: wrap; padding-bottom: 16px; border-bottom: 1px solid var(--line); margin-bottom: 28px; }
.bn-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.bn-mark { width: 36px; height: 36px; border-radius: 50%; background: var(--cobalt); color: #fff; display: grid; place-items: center; position: relative; flex: none; font: 700 14px/1 var(--font); }
.bn-mark span { margin-top: -4px; }
.bn-mark::after { content: ""; position: absolute; bottom: 8px; left: 50%; transform: translateX(-50%); width: 12px; height: 3px; border-radius: 2px; background: var(--lime); }
.bn-name { font-weight: 700; font-size: 17px; }
.navrow { display: flex; gap: 6px 18px; flex-wrap: wrap; font-size: 0.9rem; }
.navrow a { color: var(--muted); text-decoration: none; }
.navrow a:hover { color: var(--cobalt); }
.kicker { margin: 0; font-size: 0.78rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--cobalt); }
h1 { font-size: clamp(1.7rem, 4vw, 2.3rem); line-height: 1.15; letter-spacing: -0.02em; margin: 6px 0 8px; }
.lede { color: var(--ink-2); margin: 0 0 8px; }
.status { color: var(--muted); min-height: 1.4em; margin: 0 0 12px; }
.questions { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; }
.q { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 20px; }
.q.right { border-color: var(--ok); }
.q.wrong { border-color: var(--warn); }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
legend { font-weight: 600; font-size: 1.05rem; line-height: 1.4; margin-bottom: 12px; padding: 0; }
.qn { display: block; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.opt { display: flex; gap: 12px; align-items: flex-start; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; margin-top: 8px; cursor: pointer; }
.opt:hover { border-color: var(--cobalt); }
.opt input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.opt .letter { flex: none; width: 26px; height: 26px; border-radius: 50%; border: 1.5px solid var(--line); display: grid; place-items: center; font-weight: 700; font-size: 0.85rem; }
.opt:has(input:checked) { border-color: var(--cobalt); background: var(--cobalt-soft); }
.opt:has(input:checked) .letter { background: var(--cobalt); border-color: var(--cobalt); color: #fff; }
.opt:has(input:focus-visible) { outline: 3px solid var(--cobalt); outline-offset: 2px; }
.fb { margin-top: 12px; padding: 12px; border-radius: 10px; background: var(--paper); font-size: 0.95rem; }
.q.right .fb strong { color: var(--ok); }
.q.wrong .fb strong { color: var(--warn); }
.row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 20px; }
.btn { display: inline-flex; align-items: center; justify-content: center; padding: 12px 20px; border-radius: 10px; border: 0; cursor: pointer; font: 600 16px/1.2 var(--font); text-decoration: none; background: var(--cobalt); color: #fff; }
.btn:hover { background: var(--cobalt-dark); }
.btn.ghost { background: transparent; color: var(--ink); border: 1.5px solid var(--ink); }
.btn.ghost:hover { background: var(--ink); color: #fff; }
.btn:focus-visible { outline: 3px solid var(--cobalt); outline-offset: 3px; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 22px; margin-top: 24px; border-top: 4px solid var(--lime); }
.card h2 { margin: 0 0 6px; font-size: 1.3rem; }
.card p { margin: 0; color: var(--ink-2); }
.foot { margin-top: 40px; padding-top: 14px; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.85rem; }
input[type=text] { font: inherit; padding: 11px 12px; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink); width: 100%; max-width: 420px; }
@media print {
  body { background: #fff; }
  .bn-head, .foot, .no-print { display: none !important; }
  .wrap { max-width: none; padding: 0; }
}
