/*
 * The site of Standard Test. The colours are those of the repository's other public sites
 * (analytic/priv/static/style.css), light, and dark where the reader's device is.
 */

:root {
  --background: oklch(1 0 0);
  --foreground: oklch(0.2 0.02 250);
  --muted: oklch(0.965 0.006 250);
  --muted-foreground: oklch(0.46 0.02 250);
  --primary: oklch(0.48 0.14 250);
  --primary-foreground: oklch(0.985 0 0);
  --border: oklch(0.9 0.008 250);
  --input: oklch(0.7 0.01 250);
  --ring: oklch(0.55 0.14 250);
  --pass: oklch(0.52 0.12 150);
  --fail: oklch(0.52 0.18 25);
  --warning: oklch(0.6 0.13 75);
  --radius: 0.625rem;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --background: oklch(0.17 0.015 250);
    --foreground: oklch(0.96 0.005 250);
    --muted: oklch(0.24 0.018 250);
    --muted-foreground: oklch(0.75 0.02 250);
    --primary: oklch(0.74 0.13 250);
    --primary-foreground: oklch(0.17 0.015 250);
    --border: oklch(0.32 0.018 250);
    --input: oklch(0.5 0.02 250);
    --ring: oklch(0.74 0.13 250);
    --pass: oklch(0.75 0.13 150);
    --fail: oklch(0.72 0.16 25);
    --warning: oklch(0.8 0.13 75);
  }
}

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

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

body {
  margin: 0;
  background: var(--background);
  color: var(--foreground);
  font: 1rem/1.6 system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", "Liberation Sans", Arial, sans-serif;
}

a {
  color: var(--primary);
  text-underline-offset: 0.2em;
}

:focus-visible {
  outline: 2px solid var(--ring);
  outline-offset: 2px;
  border-radius: 2px;
}

code,
pre {
  font: 0.9em/1.45 ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  overflow-wrap: anywhere;
}

pre {
  margin: 0.25rem 0 0.75rem;
  padding: 0.75rem;
  border-radius: var(--radius);
  background: var(--muted);
  white-space: pre-wrap;
}

h1,
h2,
h3,
h4 {
  line-height: 1.25;
}

main h2 {
  margin: 2.5rem 0 0.75rem;
  font-size: 1.25rem;
}

.skip {
  position: absolute;
  left: 1rem;
  top: -10rem;
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius);
  background: var(--primary);
  color: var(--primary-foreground);
}

.skip:focus {
  top: 1rem;
}

.top,
main,
.bottom {
  max-width: 64rem;
  margin: 0 auto;
  padding: 0 1rem;
}

.top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1.25rem;
  padding-bottom: 1.25rem;
}

.top nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.95rem;
}

.brand {
  color: var(--foreground);
  font-size: 1.15rem;
  font-weight: 650;
  text-decoration: none;
}

.languages a {
  color: var(--muted-foreground);
}

.languages [aria-current] {
  font-weight: 600;
}

.bottom {
  margin-top: 4rem;
  padding-top: 1.5rem;
  padding-bottom: 2rem;
  border-top: 1px solid var(--border);
  color: var(--muted-foreground);
  font-size: 0.9rem;
}

form {
  margin: 1rem 0;
}

label {
  display: block;
  font-weight: 600;
}

input[type="text"] {
  width: 100%;
  max-width: 32rem;
  margin: 0.25rem 0;
  padding: 0.55rem 0.7rem;
  border: 1px solid var(--input);
  border-radius: var(--radius);
  background: var(--background);
  color: var(--foreground);
  font: inherit;
}

button {
  margin-top: 0.75rem;
  padding: 0.55rem 1.1rem;
  border: 0;
  border-radius: var(--radius);
  background: var(--primary);
  color: var(--primary-foreground);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

fieldset {
  margin: 1rem 0;
  padding: 0;
  border: 0;
}

legend {
  font-weight: 650;
}

.category,
.accept {
  margin: 0.75rem 0;
}

.category label,
.accept label {
  display: inline;
}

.hint {
  color: var(--muted-foreground);
  font-size: 0.92rem;
}

.error,
.notice {
  padding: 0.6rem 0.8rem;
  border-radius: var(--radius);
  background: var(--muted);
}

.error {
  border-left: 4px solid var(--fail);
}

.notice {
  border-left: 4px solid var(--primary);
}

.terms {
  max-height: 24rem;
  overflow: auto;
  padding: 0 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

dl {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 0.25rem 1rem;
}

dt {
  font-weight: 600;
}

dd {
  margin: 0;
}

table.summary {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}

table.summary th,
table.summary td {
  padding: 0.35rem 0.5rem;
  border-bottom: 1px solid var(--border);
  text-align: left;
}

.check,
.recommendation {
  margin: 1rem 0;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
  border-left: 4px solid var(--border);
  border-radius: var(--radius);
}

.check h4,
.recommendation h3 {
  margin: 0 0 0.25rem;
}

.meta,
.kind {
  color: var(--muted-foreground);
  font-size: 0.9rem;
  font-weight: 400;
}

.status-pass {
  border-left-color: var(--pass);
}

.status-fail {
  border-left-color: var(--fail);
}

.status-warning {
  border-left-color: var(--warning);
}

.result {
  margin: 0.5rem 0;
}

.result.status-fail strong {
  color: var(--fail);
}

.result.status-warning strong {
  color: var(--warning);
}

.result.status-pass strong {
  color: var(--pass);
}

progress {
  width: 100%;
  max-width: 32rem;
}

.downloads a {
  margin-right: 1rem;
}
