/* Accessibility scanner: "tactile wayfinding".
   Signal yellow marks where you are (the check running now, keyboard focus, the one action);
   everything else is ink on paper, set in Atkinson Hyperlegible Next. */

@font-face {
  font-family: "Atkinson Hyperlegible Next";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/atkinson-hyperlegible-next-latin-400-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
    U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Atkinson Hyperlegible Next";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("fonts/atkinson-hyperlegible-next-latin-700-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
    U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Atkinson Hyperlegible Next";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/atkinson-hyperlegible-next-latin-ext-400-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F,
    U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Atkinson Hyperlegible Next";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("fonts/atkinson-hyperlegible-next-latin-ext-700-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F,
    U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  color-scheme: light dark;
  /* Palette. Every text pairing is at least 4.5:1, every boundary at least 3:1. */
  --paper: #ffffff;
  --ink: #15233f;
  --muted: #47536b;
  --line: #6e7890;
  --wash: #eef1f6;
  --signal: #ffd200;
  --signal-deep: #b38f00;
  --on-signal: #15233f;
  --critical: #a8001c;
  --high: #8f4400;
  --medium: #665600;
  --low: #2c5a86;
  --pass: #1c6631;
  --focus-outer: var(--signal);
  --focus-inner: var(--ink);

  /* Type: one family, a 1.25 scale from an 18px body. */
  --font: "Atkinson Hyperlegible Next", "Atkinson Hyperlegible", Verdana, "Segoe UI", sans-serif;
  --step--1: 0.95rem;
  --step-0: 1.125rem;
  --step-1: 1.4rem;
  --step-2: 1.75rem;
  --step-3: 2.2rem;
  --step-4: 2.75rem;
  --measure: 44rem;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #0f1a2e;
    --ink: #eef1f6;
    --muted: #b9c2d3;
    --line: #7d89a3;
    --wash: #18243b;
    --signal: #ffd200;
    --signal-deep: #ffd200;
    --on-signal: #15233f;
    --critical: #ff8e9b;
    --high: #ffb877;
    --medium: #e9d56f;
    --low: #a3cbf5;
    --pass: #85d79d;
    --focus-outer: var(--signal);
    --focus-inner: var(--paper);
  }
}

*, *::before, *::after { box-sizing: border-box; }

html { font-size: 100%; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: var(--step-0);
  line-height: 1.55;
}

/* One focus style everywhere: an ink ring inside a yellow halo, visible on paper, ink and yellow. */
:focus-visible {
  outline: 3px solid var(--focus-inner);
  outline-offset: 2px;
  box-shadow: 0 0 0 7px var(--focus-outer);
}

a { color: var(--ink); text-decoration-thickness: 0.08em; text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 0.16em; }

h1, h2, h3, h4, h5 { line-height: 1.2; margin: 0 0 0.5em; }
h1 { font-size: var(--step-4); letter-spacing: -0.015em; }
h2 { font-size: var(--step-3); letter-spacing: -0.01em; }
h3 { font-size: var(--step-2); }
h4 { font-size: var(--step-1); }
h5 { font-size: var(--step-0); }
p { margin: 0 0 0.75em; max-width: var(--measure); }

.masthead, main, .colophon {
  width: min(100% - 2rem, 70rem);
  margin-inline: auto;
}

.masthead {
  padding-block: 1.25rem 0;
}
.product {
  margin: 0;
  font-weight: 700;
  font-size: var(--step-0);
  /* The product name sits on a short run of tactile yellow, the page's one mark. */
  display: inline-block;
  padding-left: 0.85rem;
  border-left: 0.45rem solid var(--signal-deep);
}

main { padding-block: 2rem 4rem; }

/* --- Start: the scan form is the first thing on the page ------------------------------------------ */

.start { margin-bottom: 3rem; }
.lede { font-size: var(--step-1); color: var(--muted); line-height: 1.45; max-width: 38rem; }

#scan-form { margin-top: 2rem; max-width: 50rem; }
#scan-form label { display: block; font-weight: 700; font-size: var(--step-1); }
.hint { color: var(--muted); margin: 0.1rem 0 0.6rem; }

.field-row { display: flex; flex-wrap: wrap; gap: 0.75rem; }
#url {
  flex: 1 1 18rem;
  min-width: 0;
  min-height: 3.25rem;
  padding: 0.5rem 0.9rem;
  font: inherit;
  font-size: var(--step-1);
  color: var(--ink);
  background: var(--paper);
  border: 2px solid var(--ink);
  border-radius: 0.25rem;
}
#url[aria-invalid="true"] { border-color: var(--critical); border-width: 3px; }

button { font: inherit; }
#scan-button {
  min-height: 3.25rem;
  min-width: 8rem;
  padding: 0.5rem 1.6rem;
  font-weight: 700;
  font-size: var(--step-1);
  color: var(--on-signal);
  background: var(--signal);
  border: 2px solid var(--ink);
  border-radius: 0.25rem;
  cursor: pointer;
}
#scan-button:hover { background: #ffdf4d; }
#scan-button[aria-disabled="true"] { background: var(--wash); color: var(--muted); border-color: var(--line); cursor: progress; }
@media (prefers-color-scheme: dark) {
  #scan-button { border-color: var(--signal); }
}

.field-error {
  color: var(--critical);
  font-weight: 700;
  margin: 0.2rem 0 0.5rem;
}
.field-error::before { content: "Error: "; }

.status { margin-top: 1rem; font-weight: 700; min-height: 1.55em; }
.scan-error:not(:empty) {
  margin-top: 1rem;
  padding: 0.75rem 1rem;
  border: 2px solid var(--critical);
  border-left-width: 0.5rem;
  color: var(--ink);
  max-width: var(--measure);
}

/* --- Progress: the route of checks, grouped, with a yellow strip where the scan is now ------------- */

.progress { margin-bottom: 3rem; }
.progress-summary { font-size: var(--step-1); }
#progress-bar {
  width: 100%;
  max-width: 50rem;
  height: 0.75rem;
  margin-bottom: 1.5rem;
  accent-color: var(--ink);
}

.route {
  list-style: none;
  margin: 0;
  padding: 0;
  max-width: 50rem;
}
.group {
  position: relative;
  padding: 0.9rem 0 0.9rem 1.5rem;
  border-left: 0.5rem solid var(--wash);
}
.group + .group { border-top: 1px solid var(--line); }
.group.done { border-left-color: var(--ink); }
.group.failed { border-left-color: var(--critical); }
/* Where you are: tactile paving, ribbed yellow. */
.group.running {
  border-left-color: transparent;
  border-image: repeating-linear-gradient(to bottom, var(--signal) 0 0.55rem, var(--signal-deep) 0.55rem 0.7rem) 1;
  background: color-mix(in srgb, var(--signal) 10%, var(--paper));
}
.group-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.25rem 1rem; }
.group h3 { font-size: var(--step-1); margin: 0; }
.group-status { margin: 0; color: var(--muted); }
.group.running .group-status { color: var(--ink); font-weight: 700; }

.ticks { display: flex; flex-wrap: wrap; gap: 0.3rem; margin: 0.6rem 0 0.4rem; }
.tick {
  width: 0.95rem;
  height: 0.95rem;
  border: 2px solid var(--line);
  border-radius: 0.15rem;
}
.tick.done { background: var(--ink); border-color: var(--ink); }
.tick.running { background: var(--signal); border-color: var(--ink); }
.tick.failed { background: var(--critical); border-color: var(--critical); }

.group details { margin-top: 0.2rem; }
.group summary { cursor: pointer; color: var(--muted); width: fit-content; padding: 0.2rem 0; }
.checks { list-style: none; padding: 0; margin: 0.4rem 0 0; }
.checks li { padding: 0.2rem 0; }
.checks li[aria-current="step"] { font-weight: 700; }
.checks .failed { color: var(--critical); }
.checks .pending { color: var(--muted); }

/* --- Downloads and results ------------------------------------------------------------------------ */

.downloads ul { padding-left: 1.2rem; }
.downloads li { margin: 0.35rem 0; }

.filters { margin: 1.25rem 0 0.5rem; }
.filters p { margin-bottom: 0.4rem; font-weight: 700; }
.filter-buttons { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.filter-buttons button {
  min-height: 2.75rem;
  padding: 0.35rem 1rem;
  color: var(--ink);
  background: var(--paper);
  border: 2px solid var(--line);
  border-radius: 999px;
  cursor: pointer;
}
.filter-buttons button[aria-pressed="true"] { border-color: var(--ink); background: var(--wash); font-weight: 700; }
.filter-buttons button[aria-pressed="true"]::before { content: "✓ "; }
.filter-count { color: var(--muted); margin-top: 0.4rem; }

.colophon {
  border-top: 1px solid var(--line);
  padding-block: 1.25rem 2rem;
  color: var(--muted);
  font-size: var(--step--1);
}

@media (max-width: 40rem) {
  h1 { font-size: var(--step-3); }
  h2 { font-size: var(--step-2); }
  .lede, .progress-summary { font-size: var(--step-0); }
  #scan-button { flex: 1 1 100%; }
  .group { padding-left: 1rem; }
}

@media (forced-colors: active) {
  :focus-visible { outline: 3px solid Highlight; box-shadow: none; }
  .tick.done, .tick.running, .tick.failed { background: CanvasText; }
  .group.running { border-image: none; border-left-color: Highlight; }
}
