/* Deliberately plain. The audience for this page is suspicious of polish, and
   every byte here is served from one origin with no external font or script. */

:root {
  --bg: #0e1116;
  --surface: #161b22;
  --surface-2: #1c222b;
  --border: #2a313c;
  --text: #e6edf3;
  --muted: #9198a1;
  --accent: #58a6ff;

  --pass: #3fb950;
  --warn: #d29922;
  --fail: #f85149;
  --inconclusive: #a371f7;
  --unavailable: #6e7681;
  --info: #58a6ff;

  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
}

@media (prefers-color-scheme: light) {
  :root {
    --bg: #ffffff;
    --surface: #f6f8fa;
    --surface-2: #eef1f4;
    --border: #d0d7de;
    --text: #1f2328;
    --muted: #59636e;
    --pass: #1a7f37;
    --warn: #9a6700;
    --fail: #cf222e;
    --inconclusive: #8250df;
    --unavailable: #6e7781;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0 auto;
  padding: 2rem 1.25rem 4rem;
  max-width: 52rem;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

h1 { font-size: 1.6rem; margin: 0 0 .5rem; letter-spacing: -.01em; }
h2 { font-size: 1.1rem; margin: 2rem 0 .5rem; }
h3 { font-size: 1rem; margin: 0; }

.standfirst { color: var(--muted); margin: 0; max-width: 46rem; }
.standfirst em { color: var(--text); font-style: normal; font-weight: 600; }

.masthead { border-bottom: 1px solid var(--border); padding-bottom: 1.5rem; margin-bottom: 1.5rem; }

/* ---- language switch ---- */
.langbar { display: flex; justify-content: flex-end; gap: .25rem; margin-bottom: .75rem; }

.lang {
  padding: .2rem .55rem;
  background: none; border: 1px solid var(--border); border-radius: 5px;
  color: var(--muted); cursor: pointer;
  font-family: var(--mono); font-size: .72rem; font-weight: 600;
  letter-spacing: .04em;
}
.lang:hover { color: var(--text); border-color: var(--muted); }
.lang[aria-current="true"] {
  color: var(--accent); border-color: var(--accent);
  background: color-mix(in srgb, var(--accent) 12%, transparent);
}

/* ---- running state ---- */
.status-bar {
  display: flex; align-items: center; gap: .6rem;
  padding: .75rem 1rem; margin-bottom: 1.5rem;
  background: var(--surface); border: 1px solid var(--border); border-radius: 6px;
  font-family: var(--mono); font-size: .85rem; color: var(--muted);
}
.status-bar[hidden] { display: none; }

.spinner {
  width: .8rem; height: .8rem; flex: none;
  border: 2px solid var(--border); border-top-color: var(--accent);
  border-radius: 50%; animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spinner { animation: none; } }

/* ---- headline ---- */
.headline {
  padding: 1.25rem; margin-bottom: 1.5rem;
  background: var(--surface); border: 1px solid var(--border);
  border-left-width: 4px; border-radius: 6px;
}
.headline h2 { margin: .5rem 0 0; font-size: 1.25rem; }
.headline[data-status="pass"] { border-left-color: var(--pass); }
.headline[data-status="warn"] { border-left-color: var(--warn); }
.headline[data-status="fail"] { border-left-color: var(--fail); }
.headline[data-status="inconclusive"] { border-left-color: var(--inconclusive); }
.headline[data-status="unavailable"] { border-left-color: var(--unavailable); }

.scope-note { color: var(--muted); font-size: .875rem; margin: .75rem 0 0; }

.download {
  margin-top: .85rem; padding: .35rem .75rem;
  background: none; border: 1px solid var(--border); border-radius: 6px;
  color: var(--muted); font: inherit; font-size: .8rem; cursor: pointer;
}
.download:hover { color: var(--text); border-color: var(--muted); }

.comparison {
  padding: .75rem 1rem; margin: 0 0 1.5rem;
  background: var(--surface); border: 1px solid var(--border);
  border-left: 4px solid var(--accent); border-radius: 6px;
  font-size: .9rem; color: var(--muted);
}

/* ---- chips ---- */
.chip {
  display: inline-block; flex: none;
  padding: .1rem .5rem; border-radius: 999px;
  font-family: var(--mono); font-size: .7rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: .04em;
  border: 1px solid currentColor;
}
.chip[data-status="pass"] { color: var(--pass); }
.chip[data-status="warn"] { color: var(--warn); }
.chip[data-status="fail"] { color: var(--fail); }
.chip[data-status="inconclusive"] { color: var(--inconclusive); }
.chip[data-status="unavailable"] { color: var(--unavailable); }
.chip[data-status="info"] { color: var(--info); }

/* ---- report cards ---- */
.report { display: flex; flex-direction: column; gap: .75rem; }

.card {
  padding: 1rem 1.15rem;
  background: var(--surface); border: 1px solid var(--border); border-radius: 6px;
}
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.card-measured { color: var(--muted); font-size: .8rem; margin: .35rem 0 .75rem; }
.card-explanation { margin: 0; }
.card-explanation:empty { display: none; }

.card-details { margin-top: .85rem; }
.card-details summary {
  cursor: pointer; color: var(--muted);
  font-family: var(--mono); font-size: .78rem;
}
.card-details pre {
  margin: .6rem 0 0; padding: .75rem; overflow-x: auto;
  background: var(--surface-2); border: 1px solid var(--border); border-radius: 4px;
  font-family: var(--mono); font-size: .74rem; line-height: 1.5; color: var(--muted);
}

/* ---- disclosure ---- */
.disclosure { margin-top: 3rem; border-top: 1px solid var(--border); padding-top: 1rem; }
.disclosure p { color: var(--muted); font-size: .9rem; }
.disclosure strong { color: var(--text); }

.privacy-list { color: var(--muted); font-size: .9rem; padding-left: 1.1rem; }
.privacy-list li { margin-bottom: .5rem; }

footer {
  margin-top: 3rem; padding-top: 1rem; border-top: 1px solid var(--border);
  color: var(--muted); font-size: .8rem;
}
code { font-family: var(--mono); font-size: .85em; }
