/*
  Sit Out — public site (legal pages + help). Brand: quitbet/DESIGN.md, direction "Scoreboard":
  dark petrol canvas, bone number plates with a hairline flap split, signal orange for links and
  the one call to action, amber for alerts and focus. Dark only by design (no light theme).
  No inline styles anywhere: the CSP allows stylesheets from 'self' and Google Fonts only.
*/
:root {
  --bg: #10333a;
  --bg-deep: #0c262c;
  --ink: #f0ebe1;
  --ink-2: #c5c9c3;
  --ink-3: #a4afac;
  --rule: #44636a;
  --rule-strong: #849695;
  --signal: #ff6b2c;
  --amber: #f2b544;
  --plate: #f0ebe1;
  --plate-lower: #e4dfd6;
  --plate-ink: #10333a;
  --radius: 6px;
  --gutter: 20px;
  --measure: 44rem;
  --wide: 70rem;
  --font-display: "Big Shoulders Display", "Arial Narrow", "Roboto Condensed", Impact, sans-serif;
  --font-body: "Barlow", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 1.0625rem/1.6 var(--font-body);
  overflow-wrap: anywhere;
}
img, svg { max-width: 100%; }

/* ---------- Type ---------- */
h1, h2, .display {
  font-family: var(--font-display);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  line-height: 0.98;
  margin: 0 0 0.45em;
  overflow-wrap: normal;
}
h1 { font-size: clamp(2.7rem, 10vw, 5rem); }
h2 { font-size: clamp(1.8rem, 5.5vw, 2.5rem); margin-top: 2.2em; scroll-margin-top: 1rem; }
h3 {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1.15rem;
  line-height: 1.3;
  margin: 1.7em 0 0.4em;
  scroll-margin-top: 1rem;
}
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.3em; }
li + li { margin-top: 0.35em; }
strong { font-weight: 600; color: var(--ink); }
small, .small { font-size: 0.9rem; }
.muted { color: var(--ink-3); }
.nb { white-space: nowrap; }
.lead { font-size: 1.2rem; line-height: 1.5; color: var(--ink-2); max-width: 38rem; }

a { color: var(--signal); text-decoration-line: underline; text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; border-radius: 2px; }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 10;
  background: var(--plate); color: var(--plate-ink); font-weight: 600;
  padding: 10px 14px; border-radius: var(--radius); text-decoration: none;
}
.skip:focus { top: 12px; }

/* ---------- Layout ---------- */
.wrap { width: 100%; max-width: var(--wide); margin: 0 auto; padding: 0 var(--gutter); }
.prose { max-width: var(--measure); }
main { display: block; padding-bottom: 2rem; }
section { margin: 0; }
hr { border: 0; border-top: 1px solid var(--rule); margin: 2.5rem 0; }

/* ---------- Header ---------- */
.site-header { border-bottom: 1px solid var(--rule); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }
.brand {
  display: inline-flex; align-items: center; gap: 12px;
  color: var(--ink); text-decoration: none;
  font: 800 1.65rem/1 var(--font-display); text-transform: uppercase; letter-spacing: 0.02em;
}
.brand-plate {
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  width: 26px; height: 32px; margin-top: 4px; border-radius: 4px;
  background: linear-gradient(var(--plate) 0 50%, var(--plate-lower) 50% 100%);
  color: var(--plate-ink); font: 900 1.4rem/1 var(--font-display);
}
.brand-plate::before { /* the hanger tab from the logo */
  content: ""; position: absolute; top: -5px; left: 50%; width: 10px; height: 5px; margin-left: -5px;
  background: var(--signal); border-radius: 2px 2px 0 0;
}
.brand-plate::after { /* hairline flap split */
  content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: rgba(16, 51, 58, 0.35);
}
.header-help { font-weight: 600; white-space: nowrap; padding: 10px 0; }
.header-help[aria-current="page"] { color: var(--ink); text-decoration: none; }

/* ---------- Page heads ---------- */
.page-head { padding: 2.75rem 0 1.25rem; }
.eyebrow {
  font: 600 0.8rem/1.3 var(--font-body); letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink-3); margin: 0 0 0.9rem;
}
.meta { color: var(--ink-3); font-size: 0.95rem; margin: 0; }

/* ---------- Plates (the signature element) ---------- */
.plate {
  position: relative; display: block; border-radius: var(--radius);
  background: linear-gradient(var(--plate) 0 50%, var(--plate-lower) 50% 100%);
  color: var(--plate-ink); text-align: center; padding: 12px 8px 10px;
}
.plate::after {
  content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: rgba(16, 51, 58, 0.28);
}
.plate-num { display: block; font: 900 clamp(2.9rem, 13vw, 4.6rem)/1 var(--font-display); }
.board { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; max-width: 34rem; margin: 2rem 0 0.75rem; }
.score-label {
  display: block; margin-top: 10px; text-align: center;
  font: 600 0.74rem/1.25 var(--font-body); letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-2);
}
.board-caption { color: var(--ink-3); margin: 0.5rem 0 0; max-width: 34rem; }

/* Bone summary plate ("the short version") */
.summary { background: var(--plate); color: var(--plate-ink); border-radius: var(--radius); padding: 20px 22px 6px; margin: 1.5rem 0 2rem; }
.summary h2 { color: var(--plate-ink); margin: 0 0 0.6em; font-size: 1.6rem; }
.summary strong { color: var(--plate-ink); }
.summary a { color: var(--plate-ink); text-decoration-color: var(--signal); text-decoration-thickness: 2px; }
.summary ul { padding-left: 1.15em; }

/* ---------- Status pill ---------- */
.status {
  display: inline-flex; align-items: center; gap: 10px; margin: 0 0 1.25rem;
  font: 600 0.82rem/1.3 var(--font-body); letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-2);
  border: 1px solid var(--rule-strong); border-radius: 999px; padding: 6px 14px;
}
.status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--amber); flex: none; }

/* ---------- Callouts ---------- */
.callout { border: 1px solid var(--rule-strong); border-radius: var(--radius); padding: 18px 20px 4px; background: var(--bg-deep); margin: 1.5rem 0; }
.callout h2, .callout h3 { margin-top: 0; }
.callout-alert { border: 2px solid var(--amber); }
.callout-alert .alert-title { color: var(--amber); }
.disclaimer { border-left: 3px solid var(--amber); background: var(--bg-deep); padding: 14px 18px 2px; margin: 1.25rem 0; border-radius: 0 var(--radius) var(--radius) 0; }
.open-item { border: 2px dashed var(--amber); border-radius: var(--radius); padding: 14px 18px 2px; margin: 1rem 0; }
.open-item .tag { color: var(--amber); font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; font-size: 0.82rem; }

.cta {
  display: inline-flex; align-items: center; min-height: 48px; padding: 12px 20px; margin: 0.25rem 0 1rem;
  border-radius: var(--radius); background: var(--signal); color: var(--plate-ink);
  font-weight: 700; text-decoration: none;
}
.cta:hover { background: #ff8550; }

/* ---------- Table of contents ---------- */
.toc { border-left: 2px solid var(--rule-strong); padding: 2px 0 2px 18px; margin: 1.5rem 0 2rem; }
.toc p { font-weight: 600; margin-bottom: 0.4em; }
.toc ol { margin: 0; }
@media (min-width: 48rem) { .toc ol { columns: 2; column-gap: 3rem; } .toc li { break-inside: avoid; } }

/* ---------- Fact cards (responsive alternative to wide tables) ---------- */
.facts { list-style: none; padding: 0; margin: 1.25rem 0 1.5rem; display: grid; gap: 12px; }
@media (min-width: 56rem) { .facts.two { grid-template-columns: 1fr 1fr; } }
.fact { background: var(--bg-deep); border: 1px solid var(--rule); border-radius: var(--radius); padding: 16px 18px 6px; margin: 0; }
.fact h3 { margin: 0 0 0.6em; font-size: 1.08rem; }
.fact dl { margin: 0; }
.fact dt { font: 600 0.74rem/1.3 var(--font-body); letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); margin-top: 0.6em; }
.fact dt:first-child { margin-top: 0; }
.fact dd { margin: 0.15em 0 0.6em; color: var(--ink-2); }
.facts li + li { margin-top: 0; }

/* ---------- Two-column tables ---------- */
.table-wrap { margin: 1.25rem 0 1.5rem; }
table { width: 100%; border-collapse: collapse; font-size: 0.98rem; }
caption { text-align: left; color: var(--ink-3); padding-bottom: 8px; }
th, td { text-align: left; vertical-align: top; padding: 11px 12px; border-bottom: 1px solid var(--rule); }
thead th { font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); font-weight: 600; border-bottom-color: var(--rule-strong); }
tbody th { font-weight: 600; color: var(--ink); width: 38%; }
td { color: var(--ink-2); }

/* ---------- Landing ---------- */
.hero { padding: 3rem 0 1rem; }
.features { margin: 1.5rem 0 0; }
.features div { border-top: 1px solid var(--rule); padding: 1.1rem 0 0.4rem; }
.features dt { font: 800 1.45rem/1 var(--font-display); text-transform: uppercase; letter-spacing: 0.02em; margin-bottom: 0.45rem; }
.features dd { margin: 0 0 0.8rem; color: var(--ink-2); max-width: 40rem; }
@media (min-width: 48rem) {
  .features div { display: grid; grid-template-columns: 15rem 1fr; gap: 1.5rem; }
  .features dt { margin: 0.15rem 0 0; }
}
.plain-list { list-style: none; padding: 0; }
.plain-list li { padding-left: 1.4em; position: relative; }
.plain-list li::before { content: ""; position: absolute; left: 0; top: 0.72em; width: 0.7em; height: 2px; background: var(--rule-strong); }

/* ---------- Help page ---------- */
.jump { margin: 1.25rem 0 2rem; }
.jump p { font-weight: 600; margin-bottom: 0.5em; }
.jump ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 4px 18px; }
.jump li + li { margin-top: 0; }
.jump a { display: inline-block; padding: 6px 0; }
.country { border-top: 1px solid var(--rule); margin-top: 2.75rem; padding-top: 0.25rem; }
.country h2 { margin-top: 1.25rem; }
.country-emergency { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin: 0 0 1rem; color: var(--ink-2); }
.lines { list-style: none; padding: 0; margin: 0.75rem 0 1.25rem; display: grid; gap: 12px; }
@media (min-width: 52rem) { .lines { grid-template-columns: 1fr 1fr; } }
.lines li + li { margin-top: 0; }
.line { background: var(--bg-deep); border: 1px solid var(--rule); border-radius: var(--radius); padding: 14px 16px 12px; }
.line-org { font-weight: 600; color: var(--ink); margin: 0; }
.line-svc { margin: 2px 0 0; color: var(--ink-2); }
.line-region {
  display: inline-block; margin: 8px 0 0; padding: 2px 8px; border: 1px solid var(--rule-strong); border-radius: 999px;
  font-size: 0.82rem; color: var(--ink-2);
}
.line-actions { list-style: none; padding: 0; margin: 12px 0 6px; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 18px; }
.line-actions li + li { margin-top: 0; }
.line-actions a { display: inline-block; padding: 10px 0; font-weight: 600; }
.line-actions a.call, a.call {
  display: inline-block; min-height: 46px; padding: 11px 14px; line-height: 1.35;
  border-radius: var(--radius); background: var(--plate); color: var(--plate-ink);
  font-weight: 700; text-decoration: none; overflow-wrap: normal;
}
a.call:hover { background: #ffffff; }
.line-meta { color: var(--ink-3); font-size: 0.92rem; margin: 4px 0 0; }
.self-ex { list-style: none; padding: 0; margin: 0.5rem 0 1rem; }
.self-ex li { border-left: 2px solid var(--rule-strong); padding: 2px 0 2px 14px; }
.self-ex li + li { margin-top: 10px; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--rule); margin-top: 3.5rem; padding: 2rem 0 3rem; color: var(--ink-3); font-size: 0.95rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0 0 1.25rem; display: flex; flex-wrap: wrap; gap: 6px 22px; }
.site-footer li + li { margin-top: 0; }
.site-footer a { display: inline-block; padding: 6px 0; }
.site-footer p { margin: 0 0 0.6em; max-width: 46rem; }

@media (min-width: 48rem) {
  :root { --gutter: 32px; }
  .hero { padding: 4.5rem 0 1.5rem; }
}
@media print {
  body { background: #fff; color: #000; }
  .site-header, .site-footer, .skip, .toc, .jump { display: none; }
  a { color: #000; }
  .summary, .fact, .line, .callout { border: 1px solid #999; background: #fff; color: #000; }
}
