/* The support site (specs/support-site.md). WCAG 2.2 AA: every colour pair below is checked by the tests
   (text 4.5:1 or more, controls and focus 3:1 or more), in light and dark. */
:root {
  --bg: #ffffff;
  --surface: #f5f6f8;
  --text: #1b1f24;
  --muted: #4a5360;
  --line: #6b7480;
  --accent: #1d4ed8;
  --accent-text: #ffffff;
  --error: #b42318;
  --ok: #146c2e;
  --focus: #1d4ed8;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #121417;
    --surface: #1d2126;
    --text: #eef1f4;
    --muted: #b7bfc8;
    --line: #8a939e;
    --accent: #8db4ff;
    --accent-text: #0b1220;
    --error: #ff9b8f;
    --ok: #7fd99a;
    --focus: #8db4ff;
  }
}

* { box-sizing: border-box; }
html { font-size: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 1rem/1.55 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 1rem; top: 1rem; background: var(--bg); padding: 0.5rem 0.75rem; z-index: 10; }
header, main, footer { max-width: 44rem; margin: 0 auto; padding: 0 1rem; }
header { padding-top: 1.5rem; display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; align-items: baseline; }
header .site { font-weight: 700; font-size: 1.125rem; }
nav a { margin-right: 1rem; }
h1 { font-size: 1.75rem; line-height: 1.25; margin: 1.5rem 0 0.5rem; }
h2 { font-size: 1.25rem; margin: 1.75rem 0 0.5rem; }
p { margin: 0.5rem 0; }
a { color: var(--accent); text-underline-offset: 0.15em; }
.muted { color: var(--muted); }

form { margin-top: 1rem; }
.field { margin: 1.1rem 0; }
label, legend { display: block; font-weight: 600; margin-bottom: 0.3rem; }
fieldset { border: 0; padding: 0; margin: 1.1rem 0; }
.choice { display: flex; gap: 0.6rem; align-items: flex-start; margin: 0.35rem 0; min-height: 24px; }
.choice label { font-weight: 400; margin: 0; }
.choice input { width: 1.5rem; height: 1.5rem; margin: 0; accent-color: var(--accent); }
.hint { color: var(--muted); font-size: 0.95rem; margin: 0.2rem 0 0.4rem; }
input[type="email"], input[type="password"], input[type="text"], select, textarea {
  width: 100%;
  font: inherit;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0.55rem 0.65rem;
  min-height: 2.75rem;
}
textarea { min-height: 10rem; resize: vertical; }
[aria-invalid="true"] { border-color: var(--error); border-width: 2px; }
.error { color: var(--error); font-weight: 600; margin: 0.3rem 0 0; }
.error:empty { display: none; }
button {
  font: inherit;
  font-weight: 600;
  color: var(--accent-text);
  background: var(--accent);
  border: 2px solid var(--accent);
  border-radius: 6px;
  padding: 0.6rem 1.2rem;
  min-height: 2.75rem;
  min-width: 2.75rem;
  cursor: pointer;
}
button.secondary { color: var(--accent); background: transparent; }
button[disabled] { opacity: 0.7; cursor: progress; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.panel { background: var(--surface); border-radius: 8px; padding: 1rem 1.1rem; margin: 1rem 0; }
.result { border-left: 4px solid var(--ok); }
.result.bad { border-left-color: var(--error); }
.levels { margin: 0.5rem 0 0; padding-left: 1.2rem; }
.builds { list-style: none; padding: 0; margin: 0; }
.builds li { background: var(--surface); border-radius: 8px; padding: 1rem 1.1rem; margin: 0.75rem 0; }
.builds h3 { margin: 0 0 0.25rem; font-size: 1.1rem; }
.hash { font-family: ui-monospace, Consolas, monospace; font-size: 0.85rem; overflow-wrap: anywhere; }
.notes { white-space: pre-line; }
footer { margin-top: 3rem; padding-bottom: 2rem; color: var(--muted); font-size: 0.95rem; }
[hidden] { display: none !important; }
