﻿/* Change the brand colours here. Everything else uses these variables. */
:root {
  --brand: #0b3d6b;
  --brand-text: #ffffff;
  --accent: #0a7d8c;
  --bg: #f4f6f9;
  --card: #ffffff;
  --text: #1b2430;
  --muted: #5b6776;
  --line: #dde2e9;
  --critical: #b3261e;
  --high: #d9622b;
  --medium: #b88a00;
  --low: #2f7d4f;
  --info: #5b6776;
}
@media (prefers-color-scheme: dark) {
  :root {
    --brand: #123a5e;
    --accent: #3fb3c2;
    --bg: #11161d;
    --card: #1a222c;
    --text: #e8edf3;
    --muted: #9aa7b6;
    --line: #2b3643;
    --critical: #ff8a80;
    --high: #ffab7c;
    --medium: #f2c94c;
    --low: #7fd39b;
    --info: #9aa7b6;
  }
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
header { background: var(--brand); color: var(--brand-text); }
.wrap { max-width: 960px; margin: 0 auto; padding: 0 16px; }
header .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 24px; padding-top: 16px; padding-bottom: 16px; }
header h1 { margin: 0; font-size: 1.25rem; }
nav a { color: var(--brand-text); margin-left: 16px; text-decoration: none; opacity: .85; }
nav a:first-child { margin-left: 0; }
nav a[aria-current="page"] { opacity: 1; text-decoration: underline; text-underline-offset: 4px; }
main.wrap { padding-top: 24px; padding-bottom: 48px; }
h2 { font-size: 1.1rem; margin: 32px 0 12px; }
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.tile, .panel { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 16px; }
.tile .num { font-size: 2rem; font-weight: 700; line-height: 1.1; }
.tile .lbl { color: var(--muted); font-size: .9rem; }
.bars { display: grid; gap: 10px; }
.bar { display: grid; grid-template-columns: 80px 1fr 56px; align-items: center; gap: 12px; }
.bar .name { text-transform: capitalize; }
.bar .track { background: var(--bg); border-radius: 6px; height: 16px; overflow: hidden; }
.bar .fill { height: 100%; border-radius: 6px; min-width: 2px; }
.bar .val { text-align: right; font-variant-numeric: tabular-nums; font-weight: 600; }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); }
th { color: var(--muted); font-weight: 600; font-size: .85rem; }
td.n, th.n { text-align: right; font-variant-numeric: tabular-nums; }
.table-scroll { overflow-x: auto; }
.msg { background: var(--card); border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: 8px; padding: 16px; }
.msg.warn { border-left-color: var(--high); }
.msg h2 { margin: 0 0 4px; }
.msg p { margin: 4px 0 0; color: var(--muted); }
button { font: inherit; background: var(--brand); color: var(--brand-text); border: 0; border-radius: 6px; padding: 8px 16px; cursor: pointer; margin-top: 12px; }
button:focus-visible, a:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
ul.list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
ul.list li { background: var(--card); border: 1px solid var(--line); border-radius: 8px; padding: 12px 16px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
ul.list .sub { color: var(--muted); }
.note { color: var(--muted); font-size: .9rem; margin-top: 24px; }
@media (max-width: 520px) { .bar { grid-template-columns: 64px 1fr 44px; gap: 8px; } }
