/* Tokens from scc-filter-2026/docs/briefs/template.html, plus a few for forms. */
:root {
  color-scheme: light dark;
  --bg: #ffffff;
  --text: #1a1a1a;
  --muted: #4a4a4a;
  --accent: #0b4f8a;
  --on-accent: #ffffff;
  --rule: #c8c8c8;
  --panel: #f3f5f7;
  --field-border: #5c5c5c;
  --error: #a4161a;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #121417;
    --text: #f2f2f2;
    --muted: #c4c4c4;
    --accent: #8cc4ff;
    --on-accent: #121417;
    --rule: #3a3f45;
    --panel: #1c2024;
    --field-border: #9aa0a6;
    --error: #ffaaa5;
  }
}

html {
  font-size: 112.5%;
}
body {
  background: var(--bg);
  color: var(--text);
  font-family: Verdana, "Atkinson Hyperlegible", Arial, sans-serif;
  line-height: 1.6;
  margin: 0;
}
.wrap {
  max-width: 42rem;
  margin: 0 auto;
  padding: 0 1rem;
}
main {
  padding-top: 2rem;
  padding-bottom: 4rem;
}
main:focus {
  outline: none;
}

h1 {
  font-size: 1.8rem;
  line-height: 1.25;
  margin: 0 0 1rem;
}
h2 {
  font-size: 1.35rem;
  margin: 2.25rem 0 0.75rem;
  padding-top: 1rem;
  border-top: 2px solid var(--rule);
}
h3 {
  font-size: 1.1rem;
  margin: 1.75rem 0 0.25rem;
}
p,
li {
  max-width: 40rem;
}
li {
  margin: 0.4rem 0;
}
a {
  color: var(--accent);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}
a:hover {
  text-decoration-thickness: 3px;
}

/* 3px focus outlines everywhere (WCAG 2.4.7 / 2.4.13). */
a:focus-visible,
button:focus-visible,
input:focus-visible,
[tabindex="-1"]:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -10rem;
  background: var(--bg);
  padding: 0.5rem 1rem;
  z-index: 10;
}
.skip-link:focus {
  top: 1rem;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.site-header {
  border-bottom: 2px solid var(--rule);
  background: var(--panel);
}
.site-header .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}
.site-header p {
  margin: 0;
}
.site-name a {
  font-weight: bold;
  color: var(--text);
}
.site-header nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  align-items: center;
}
.signed-in {
  color: var(--muted);
}

.site-footer {
  border-top: 2px solid var(--rule);
  color: var(--muted);
  font-size: 0.9rem;
}

.meta {
  color: var(--muted);
  font-size: 0.9rem;
  margin-top: 0.25rem;
}

.toc ul {
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.25rem;
}

.items {
  list-style: none;
  padding: 0;
}
.items > li {
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--rule);
  margin: 0;
}
.items p {
  margin: 0.25rem 0;
}
.item-link {
  font-weight: bold;
}
.file-meta {
  font-weight: normal;
}

.note {
  border-left: 4px solid var(--accent);
  background: var(--panel);
  padding: 0.25rem 1rem 0.5rem;
  margin: 1rem 0;
}
.note h3 {
  margin-top: 0.75rem;
}

/* Forms */
form {
  margin: 1.5rem 0;
}
.field {
  margin-bottom: 1.5rem;
}
label {
  display: block;
  font-weight: bold;
  margin-bottom: 0.25rem;
}
.hint {
  color: var(--muted);
  margin: 0 0 0.5rem;
}
input[type="email"],
input[type="password"],
input[type="text"] {
  box-sizing: border-box;
  width: 100%;
  max-width: 28rem;
  min-height: 2.75rem;
  padding: 0.4rem 0.6rem;
  font: inherit;
  color: var(--text);
  background: var(--bg);
  border: 2px solid var(--field-border);
  border-radius: 3px;
}
button {
  font: inherit;
  font-weight: bold;
  min-height: 2.75rem;
  padding: 0.4rem 1.25rem;
  border: 2px solid var(--accent);
  border-radius: 3px;
  background: var(--accent);
  color: var(--on-accent);
  cursor: pointer;
}
button:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.button-secondary {
  background: transparent;
  color: var(--accent);
  min-height: 2.25rem;
  padding: 0.2rem 0.9rem;
}

.field-error {
  border-left: 4px solid var(--error);
  padding-left: 0.75rem;
}
.field-error input {
  border-color: var(--error);
}
.error-message {
  color: var(--error);
  font-weight: bold;
  margin: 0 0 0.5rem;
}
.error-summary {
  border: 4px solid var(--error);
  padding: 0.5rem 1rem;
  margin-bottom: 1.5rem;
}
.error-summary h2 {
  border: 0;
  margin: 0.5rem 0;
  padding: 0;
  font-size: 1.2rem;
}
.error-summary a {
  color: var(--error);
  font-weight: bold;
}
.error-summary:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

.notice {
  border-left: 4px solid var(--accent);
  background: var(--panel);
  padding: 0.25rem 1rem;
  margin-bottom: 1.5rem;
}

@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
  }
}

@media print {
  html {
    font-size: 11pt;
  }
  body {
    background: #fff;
    color: #000;
  }
  .site-header nav,
  .skip-link,
  .toc {
    display: none;
  }
  a {
    color: #000;
  }
}
