/* LEADr: red, white and blue. Deep navy ink, a clear flag blue for actions, red for the brand mark and alerts. */
:root {
  --navy: #0d1f3c;
  --blue: #1f4fc8;
  --blue-dark: #173c9a;
  --blue-soft: #e8eefc;
  --red: #d7263d;
  --red-soft: #fdecee;
  --white: #ffffff;
  --bg: #f4f6fa;
  --line: #d9dfea;
  --muted: #5a6478;
  --green: #1d7a4a;
  --green-soft: #e5f4ec;
  --amber: #9a6400;
  --amber-soft: #fdf3dc;
  --display: "Bricolage Grotesque", "Helvetica Neue", Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Consolas, monospace;
  --body: "Inter", "Segoe UI", Helvetica, Arial, sans-serif;
  color-scheme: light;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--navy); font: 16px/1.55 var(--body); }
a { color: var(--blue); }
h1, h2, h3 { font-family: var(--display); line-height: 1.1; margin: 0; text-wrap: balance; }
p { margin: 0; }
.gutter { padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.wrap { max-width: 1080px; margin: 0 auto; }

/* brand bar: navy with a red-white-blue rule underneath */
.bar { background: var(--navy); color: var(--white); }
.bar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 14px; flex-wrap: wrap; }
.stripe { height: 5px; background: linear-gradient(90deg, var(--red) 0 33.3%, var(--white) 33.3% 66.6%, var(--blue) 66.6%); }
.mark { font: 800 1.6rem/1 var(--display); letter-spacing: -0.01em; color: var(--white); text-decoration: none; }
.mark span { color: var(--red); }
.bar nav { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.bar nav a { color: #cfd8ea; text-decoration: none; font-weight: 600; font-size: 0.95rem; }
.bar nav a:hover { color: var(--white); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 8px;
  padding: 11px 18px; font: 600 0.98rem/1 var(--body); cursor: pointer; text-decoration: none; background: var(--blue); color: var(--white); }
.btn:hover { background: var(--blue-dark); }
.btn:disabled { opacity: 0.55; cursor: default; }
.btn.red { background: var(--red); }
.btn.red:hover { background: #b51e32; }
.btn.ghost { background: transparent; color: var(--blue); box-shadow: inset 0 0 0 1.5px var(--blue); }
.btn.ghost:hover { background: var(--blue-soft); }
.btn.light { background: var(--white); color: var(--navy); }
.btn.small { padding: 7px 12px; font-size: 0.88rem; }
.btn:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, button:focus-visible {
  outline: 3px solid #9db6f2; outline-offset: 2px; }

label { display: grid; gap: 6px; font-weight: 600; font-size: 0.92rem; }
input, select, textarea { font: 400 1rem/1.4 var(--body); color: var(--navy); background: var(--white);
  border: 1.5px solid var(--line); border-radius: 8px; padding: 10px 12px; width: 100%; min-width: 0; }
.hint { color: var(--muted); font-size: 0.88rem; font-weight: 400; }
.err { color: var(--red); font-weight: 600; font-size: 0.93rem; min-height: 1.2em; }
.ok { color: var(--green); font-weight: 600; font-size: 0.93rem; }

.panel { background: var(--white); border: 1px solid var(--line); border-radius: 12px; padding: 22px; display: grid; gap: 16px; min-width: 0; }
.grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.pill { display: inline-block; border-radius: 999px; padding: 3px 10px; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.02em; }
.pill.green { background: var(--green-soft); color: var(--green); }
.pill.amber { background: var(--amber-soft); color: var(--amber); }
.pill.red { background: var(--red-soft); color: var(--red); }
.pill.blue { background: var(--blue-soft); color: var(--blue-dark); }
.pill.grey { background: #eceff4; color: var(--muted); }
.table-scroll { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; font-variant-numeric: tabular-nums; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); }
