:root {
  --bg: #ffffff;
  --ink: #111418;
  --muted: #6b7280;
  --rule: #e5e7eb;
  --ok: #15803d;
  --warn: #b45309;
  --focus: #2563eb;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  --mono: ui-monospace, "Cascadia Mono", "SF Mono", Menlo, Consolas, monospace;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0f1115;
    --ink: #e6e8eb;
    --muted: #8b929c;
    --rule: #23272e;
    --ok: #4ade80;
    --warn: #fbbf24;
    --focus: #60a5fa;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0f1115;
  --ink: #e6e8eb;
  --muted: #8b929c;
  --rule: #23272e;
  --ok: #4ade80;
  --warn: #fbbf24;
  --focus: #60a5fa;
  color-scheme: dark;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 15px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
}

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

.bar, main, .foot {
  max-width: 60rem;
  margin: 0 auto;
  padding-inline: 1rem;
}
@media (min-width: 40rem) {
  .bar, main, .foot { padding-inline: 2rem; }
}

.bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  align-items: baseline;
  justify-content: space-between;
  padding-block: 1.5rem;
}
.mark { color: var(--ink); text-decoration: none; font-weight: 600; }
nav { display: flex; flex-wrap: wrap; gap: 0.25rem 1.25rem; }
nav button, nav a {
  font: inherit;
  color: var(--muted);
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  text-decoration: none;
}
nav button:hover, nav a:hover, nav button[aria-pressed="true"] { color: var(--ink); }
nav button:disabled { cursor: default; opacity: 0.5; }

.hero { padding-block: 3rem 2.5rem; }
@media (min-width: 40rem) {
  .hero { padding-block: 4.5rem 3rem; }
}
.hero h1 {
  margin: 0;
  max-width: 30ch;
  font-size: clamp(1.6rem, 3.6vw, 2.4rem);
  line-height: 1.25;
  font-weight: 400;
  letter-spacing: -0.015em;
  text-wrap: balance;
}
.hero h1 b { font-weight: 600; }
.verdict { margin: 1rem 0 0; color: var(--muted); max-width: 60ch; }
.verdict .ok { color: var(--ok); font-weight: 500; }
.verdict .warn { color: var(--warn); font-weight: 500; }

section + section { margin-top: 3.5rem; }
h2 { margin: 0 0 0.25rem; font-size: 1rem; font-weight: 600; }
.lede { margin: 0 0 1.25rem; color: var(--muted); max-width: 60ch; }

.table-wrap { overflow-x: auto; }
.checks { width: 100%; border-collapse: collapse; }
.checks th {
  text-align: left;
  font-weight: 500;
  color: var(--muted);
  font-size: 0.8125rem;
  padding: 0 1rem 0.5rem 0;
  border-bottom: 1px solid var(--rule);
}
.checks td {
  padding: 0.7rem 1rem 0.7rem 0;
  border-bottom: 1px solid var(--rule);
  vertical-align: top;
}
.checks th:last-child, .checks td:last-child { padding-right: 0; }
.checks td:first-child { min-width: 8.5rem; }
.checks td:nth-child(2), .checks td:nth-child(3) { overflow-wrap: anywhere; min-width: 8rem; color: var(--muted); }
.checks .note { display: block; margin-top: 0.15rem; color: var(--muted); font-size: 0.8125rem; max-width: 34ch; }

/* Phones: each check becomes a block. Name and result on one line, values under. */
@media (max-width: 40rem) {
  .checks thead { display: none; }
  .checks tr {
    display: grid;
    grid-template-columns: 1fr auto;
    column-gap: 1rem;
    padding: 0.8rem 0;
    border-bottom: 1px solid var(--rule);
  }
  .checks td { display: block; padding: 0; border: 0; min-width: 0; }
  .checks td:first-child { grid-column: 1; grid-row: 1; min-width: 0; }
  .checks td:last-child { grid-column: 2; grid-row: 1; text-align: right; }
  .checks td:nth-child(2), .checks td:nth-child(3) { grid-column: 1 / -1; min-width: 0; margin-top: 0.3rem; font-size: 0.875rem; }
  .checks td[data-label]::before { content: attr(data-label) " "; color: var(--ink); opacity: 0.55; }
  .checks td.empty { display: none; }
}

.res { white-space: nowrap; }
.res::before {
  content: "";
  display: inline-block;
  width: 0.45rem;
  height: 0.45rem;
  margin-right: 0.5rem;
  border-radius: 50%;
  vertical-align: 0.1em;
  background: var(--muted);
}
.res.ok::before { background: var(--ok); }
.res.warn { color: var(--warn); }
.res.warn::before { background: var(--warn); }
.res.info, .res.pending { color: var(--muted); }
.res.info::before { background: none; box-shadow: inset 0 0 0 1.5px var(--muted); }
.res.pending::before { display: none; }

.details {
  display: grid;
  gap: 2.5rem 3rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 24rem), 1fr));
  margin-top: 1rem;
}
.group h3 { margin: 0 0 0.5rem; font-size: 0.875rem; font-weight: 600; }
.group p { margin: 0 0 0.5rem; color: var(--muted); font-size: 0.8125rem; max-width: 52ch; }
.group dl { margin: 0; display: grid; grid-template-columns: minmax(8rem, max-content) 1fr; column-gap: 1.25rem; }
.group dt, .group dd { margin: 0; padding: 0.4rem 0; border-top: 1px solid var(--rule); }
.group dt { color: var(--muted); }
.group dd { overflow-wrap: anywhere; }
.group .missing { color: var(--muted); }
.group.wide { grid-column: 1 / -1; }

code, .mono { font-family: var(--mono); font-size: 0.8125rem; }

.hide-ids [data-sensitive] { filter: blur(5px); user-select: none; }

.foot { padding-block: 4rem 2.5rem; color: var(--muted); font-size: 0.8125rem; }
.foot p { margin: 0; max-width: 70ch; }
