:root {
  color-scheme: light;
  --bg: #f4f6f5;
  --surface: #fcfcfb;
  --surface-2: #f0efec;
  --border: #dddcd6;
  --text: #0b0b0b;
  --text-2: #52514e;
  --text-3: #7a7973;
  --accent: #18453B;
  --accent-soft: #e1eee8;
  --yes: #1a8a5f;
  --no: #6250d6;
  --unsure: #a9a8a1;
  --na: #d7d6cf;
  --danger: #c2372f;
  --ok: #0f7b3f;
  --radius: 10px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #121211;
    --surface: #1a1a19;
    --surface-2: #242422;
    --border: #383835;
    --text: #f0efec;
    --text-2: #c3c2b7;
    --text-3: #93928a;
    --accent: #7cc3a6;
    --accent-soft: #1f3d34;
    --yes: #2fa577;
    --no: #9085e9;
    --unsure: #6b6a64;
    --na: #45443f;
    --danger: #e66767;
    --ok: #4cc27f;
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #121211;
  --surface: #1a1a19;
  --surface-2: #242422;
  --border: #383835;
  --text: #f0efec;
  --text-2: #c3c2b7;
  --text-3: #93928a;
  --accent: #7cc3a6;
  --accent-soft: #1f3d34;
  --yes: #2fa577;
  --no: #9085e9;
  --unsure: #6b6a64;
  --na: #45443f;
  --danger: #e66767;
  --ok: #4cc27f;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 16px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
h1, h2, h3 { line-height: 1.25; margin: 0 0 .5rem; }
h1 { font-size: 1.5rem; }
h2 { font-size: 1.2rem; }
h3 { font-size: 1rem; }
p { margin: 0 0 .75rem; }
.muted { color: var(--text-2); }
.small { font-size: .875rem; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; }
button, .btn {
  font: inherit; cursor: pointer; border-radius: 8px; padding: 10px 18px;
  border: 1px solid var(--border); background: var(--surface); color: var(--text);
  text-decoration: none; display: inline-flex; align-items: center; gap: 6px;
}
button.primary, .btn.primary { background: var(--accent); color: #fff; border-color: var(--accent); }
:root[data-theme="dark"] button.primary { color: #0b0b0b; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) button.primary { color: #0b0b0b; } }
button:disabled { opacity: .5; cursor: default; }
button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, a:focus-visible {
  outline: 2px solid var(--accent); outline-offset: 2px;
}
input[type=text], input[type=number], input[type=date], input[type=password], select, textarea {
  font: inherit; color: var(--text); background: var(--surface); width: 100%;
  border: 1px solid var(--border); border-radius: 8px; padding: 10px 12px;
}
textarea { min-height: 120px; resize: vertical; }
.error { color: var(--danger); }
/* Spartan Green band; stays the same green in dark mode. */
.brand-band { background: #18453B; color: #fff; border-bottom: 4px solid #7bbd00; }
.brand-band .inner { margin: 0 auto; padding: 18px 16px 16px; }
.brand-band h1 { color: #fff; margin: 0; }
.brand-band .byline { color: #d4e4dd; font-size: .9rem; margin-top: 4px; }
.brand-band .byline strong { color: #fff; font-weight: 600; }
:root[data-theme="dark"] .stack > div:not(.light) { color: #0b0b0b; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .stack > div:not(.light) { color: #0b0b0b; } }
