/* Layout ideas after the free (MIT) blocks at bencho.dev; no code was copied. */
@font-face {
  font-family: "Plus Jakarta Sans";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("fonts/plus-jakarta-sans-latin-ext-wght-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,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: "Plus Jakarta Sans";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("fonts/plus-jakarta-sans-latin-wght-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;
}
:root {
  color-scheme: light dark;
  --bg: #fff;
  --surface: #f7f7f6;
  --panel: #fff;
  --ink: #17181a;
  --ink-2: #3c3b37;
  --ink-3: #5c5b56;
  --rule: #17181a29;
  --track: #ececeb;
  --focus: #007565;
  --pass: #009e73;
  --lossy: #e69f00;
  --wrong: #d55e00;
  --crash: #cc79a7;
  --hang: #cc79a7;
  --harness: #666;
  --unsupported: #a6a6a3;
  --not-covered: #d8d8d5;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0a0a0a;
    --surface: #141414;
    --panel: #1a1a1a;
    --ink: #fff;
    --ink-2: #b4b4b4;
    --ink-3: #9a9a9a;
    --rule: #ffffff24;
    --track: #292929;
    --focus: #56b4e9;
    --harness: #8a8a8a;
    --unsupported: #717171;
    --not-covered: #414141;
  }
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-padding-top: 24px; background: var(--bg); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  font-variant-numeric: tabular-nums;
  word-spacing: 0.05em;
  overflow-wrap: anywhere;
}
.page { max-width: 1152px; padding: 0 16px; margin: 0 auto; }
.site-nav { display: flex; justify-content: space-between; gap: 16px; padding: 24px 0; border-bottom: 1px solid var(--rule); }
.site-nav a { font-size: 14px; text-decoration: none; }
.site-nav > div { display: flex; align-items: center; gap: 24px; }
.site-nav > a:first-child { font-size: 18px; font-weight: 700; }
a { color: inherit; text-underline-offset: 4px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 4px; }
h1, h2, h3, p { margin: 0 0 16px; }
h1, h2, h3 { line-height: 1.3; font-weight: 650; }
h1 { font-size: 32px; }
h2 { font-size: 24px; }
h3 { font-size: 18px; margin-top: 24px; }
p { color: var(--ink-2); }
section { margin: 40px 0; min-width: 0; }
.intro { padding-top: 40px; }
.intro p { max-width: 80ch; }
.metadata { font-size: 14px; }
.muted, small { color: var(--ink-3); }
small { display: block; font-size: 12px; font-weight: 400; margin-top: 4px; }
code, pre {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  font-size: 14px;
}
pre { margin: 0; max-width: 100%; overflow-x: auto; white-space: pre; line-height: 1.6; }
section > pre, details > pre { background: var(--surface); border-radius: 12px; padding: 16px; margin: 16px 0; }
.summaries { padding: 8px 24px; border-radius: 24px; background: var(--surface); }
.meter { padding: 8px 0; }
.meter + .meter { border-top: 1px solid var(--rule); }
.meter-heading { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px 16px; margin-bottom: 8px; }
.meter-heading > a { text-decoration: none; font-size: 16px; font-weight: 600; }
.pass-count { display: flex; align-items: baseline; gap: 8px; margin: 0 0 0 auto; white-space: nowrap; }
.pass-count strong { font-size: 32px; font-weight: 600; color: var(--ink); line-height: 1; }
.pass-count > span { font-size: 14px; color: var(--ink-3); }
.bar { display: flex; gap: 3px; height: 12px; border-radius: 999px; overflow: hidden; margin-bottom: 8px; }
.exclusions { font-size: 12px; margin-bottom: 8px; }
.segment { flex-basis: 0; background: var(--grade); transition: opacity 180ms; }
.segment.dimmed { opacity: .2; }
.pass { --grade: var(--pass); }
.lossy { --grade: var(--lossy); }
.wrong { --grade: var(--wrong); }
.crash { --grade: var(--crash); }
.hang { --grade: var(--hang); }
.harness { --grade: var(--harness); }
.unsupported { --grade: var(--unsupported); }
.not-covered { --grade: var(--not-covered); }
.grade-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.grade-pill, .badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 0;
  border-radius: 16px;
  padding: 4px 12px;
  background: var(--surface);
  color: var(--ink-2);
  font: inherit;
  font-size: 12px;
  line-height: 1.5;
}
.grade-pill { min-height: 28px; padding: 4px 10px; font-size: 14px; line-height: 1.4; cursor: pointer; transition: background-color 180ms; }
.grade-pill:hover, .grade-pill:focus-visible { background: var(--track); }
.dot { width: 8px; height: 8px; flex: 0 0 8px; border-radius: 50%; background: var(--grade); }
.filters { background: var(--surface); border-radius: 20px; padding: 16px; margin-bottom: 24px; display: flex; flex-wrap: wrap; gap: 24px; }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; max-width: 100%; }
legend { font-size: 14px; color: var(--ink-2); padding: 0; margin-bottom: 8px; }
.toggle-track { display: flex; flex-wrap: wrap; gap: 8px; padding: 8px; border-radius: 20px; background: var(--track); }
.toggle { position: relative; cursor: pointer; min-width: 0; }
.toggle input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.toggle span { display: block; font-size: 14px; line-height: 24px; min-height: 32px; padding: 4px 12px; border-radius: 16px; transition: background-color 180ms, color 180ms; }
.toggle input:checked + span { background: #fff; color: #17181a; }
.toggle input:focus-visible + span { outline: 2px solid var(--focus); outline-offset: 2px; }
.toggle input:not(:checked) + span:hover { background: var(--panel); }
.table-wrap { max-width: 100%; overflow-x: auto; }
table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 14px; table-layout: auto; }
.short { white-space: nowrap; width: 1%; }
.num { text-align: right; font-variant-numeric: tabular-nums; }
th, td { text-align: left; vertical-align: top; padding: 16px; border-bottom: 1px solid var(--rule); overflow-wrap: break-word; }
th { font-weight: 600; }
thead th { background: var(--surface); }
table th:first-child, table td:first-child { padding-left: 8px; }
.matrix-wrap { overflow: visible; isolation: isolate; border: 1px solid var(--rule); border-radius: 16px; }
.matrix { width: 100%; }
.matrix th, .matrix td { padding: 7px 8px; vertical-align: middle; }
.matrix thead th { position: sticky; top: 0; z-index: 3; background: var(--surface); }
.matrix tr > :first-child { position: sticky; left: 0; z-index: 1; background: var(--bg); }
.matrix thead tr > :first-child { z-index: 4; background: var(--surface); }
.matrix .badge { padding: 0 8px; font-size: 12px; }
.matrix .family th { background: var(--surface); padding-top: 8px; padding-bottom: 8px; font-size: 14px; }
.matrix .scenario th { padding-top: 8px; padding-bottom: 8px; }
.scenario a { text-decoration: none; font-weight: 400; }
.scenario code { margin-right: 8px; }
.cell-link { font-size: 14px; text-decoration: none; min-height: 24px; }
.cell-link:hover { text-decoration: underline; }
.result:target { outline: 2px solid var(--focus); outline-offset: -2px; background: var(--surface); }
[role="tooltip"] {
  position: fixed;
  left: 16px;
  bottom: 16px;
  z-index: 10;
  width: max-content;
  max-width: min(32ch, calc(100vw - 32px));
  max-height: calc(100vh - 32px);
  overflow: auto;
  white-space: normal;
  overflow-wrap: anywhere;
  padding: 12px 16px;
  border: 1px solid var(--rule);
  border-radius: 12px;
  background: var(--panel);
  color: var(--ink);
  font-size: 14px;
  font-weight: 400;
  box-shadow: 0 4px 16px #0000000d;
  visibility: hidden;
  opacity: 0;
  transition: opacity 150ms;
}
.result:not(.dismissed):hover [role="tooltip"],
.result:not(.dismissed):has(.cell-link:focus-visible) [role="tooltip"] { visibility: visible; opacity: 1; }
.grade, .grade-pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 4px 10px;
  background: var(--surface);
  background: color-mix(in srgb, var(--grade) 15%, var(--bg));
  color: var(--ink);
  line-height: 1.5;
  white-space: nowrap;
}
.grade.unsupported, .grade.not-covered { background: none; color: var(--ink-3); }
.status { font-size: 12px; }
.verdict { font-size: 24px; font-weight: 600; color: var(--ink); }
.comparison { display: flex; gap: 24px; padding: 8px; border-radius: 24px; background: var(--surface); }
.comparison-panel { flex: 1; min-width: 0; margin: 0; padding: 24px; border-radius: 16px; background: var(--panel); }
.comparison-panel h2 { font-size: 20px; }
.facts { margin: 0; min-width: 0; }
.facts > div { padding: 16px 0; border-top: 1px solid var(--rule); }
dt { font-size: 14px; font-weight: 600; margin-bottom: 8px; }
dd { margin: 0 0 16px; min-width: 0; }
.facts dd { margin-bottom: 0; }
.plain-value { white-space: pre-wrap; overflow-wrap: anywhere; }
details { border-top: 1px solid var(--rule); padding-top: 16px; }
summary { cursor: pointer; font-size: 14px; min-height: 24px; }
.notes, .rules { padding-left: 24px; }
.notes li, .rules li { margin-bottom: 8px; }
.upstream { padding: 16px 0; border-bottom: 1px solid var(--rule); }
.upstream p:last-child { margin-bottom: 0; }
footer { border-top: 1px solid var(--rule); margin-top: 48px; padding: 24px 0 32px; color: var(--ink-3); font-size: 12px; }
footer > div { display: flex; flex-wrap: wrap; gap: 8px 24px; font-size: 14px; margin-bottom: 16px; }
footer p { color: var(--ink-3); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@media (max-width: 1100px) {
  .matrix { font-size: 12px; }
  .matrix .grade { font-size: 12px; }
  .matrix th, .matrix td { padding-left: 4px; padding-right: 4px; }
}
@media (max-width: 899px) {
  .matrix-wrap { overflow-x: auto; }
  .matrix { width: max-content; min-width: 100%; }
  .matrix [data-library] { min-width: 152px; }
  .matrix thead th { position: static; }
  .matrix thead tr > :first-child { position: sticky; top: auto; }
}
@media (max-width: 640px) {
  h1 { font-size: 24px; }
  h2 { font-size: 20px; }
  .intro { padding-top: 24px; }
  .summaries { padding-left: 16px; padding-right: 16px; }
  .meter-heading > a { font-size: 14px; }
  .pass-count > span { font-size: 12px; }
  .filters { gap: 16px; }
  .comparison { flex-direction: column; gap: 8px; }
  .comparison-panel { padding: 16px; }
  th, td { padding: 8px; }
  .table-wrap table { font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
