:root {
  color-scheme: light dark;
  font-family: system-ui, sans-serif;
  line-height: 1.6;
  --text: #20283b;
  --muted: #515c71;
  --paper: #f7f8fc;
  --surface: #ffffff;
  --outline: #d5dbea;
  --accent: #264cb3;
  --on-accent: #ffffff;
  --code: #172239;
  --on-code: #eef3ff;
}
@media (prefers-color-scheme: dark) {
  :root {
    --text: #ecf0fa;
    --muted: #b4c0d4;
    --paper: #111827;
    --surface: #172235;
    --outline: #42506b;
    --accent: #a5bdff;
    --on-accent: #162345;
    --code: #0b1322;
    --on-code: #eef3ff;
  }
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--text); }
a { color: var(--accent); text-underline-offset: .22em; }
:focus-visible { outline: 3px solid currentColor; outline-offset: 4px; }
.frame { width: min(54rem, calc(100% - 2rem)); margin-inline: auto; }
.header, .footer { border-block-color: var(--outline); border-block-style: solid; }
.header { border-width: 0 0 1px; background: var(--surface); }
.header-inner, nav, .actions, .footer { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1.25rem; }
.header-inner { padding-block: 1rem; justify-content: space-between; }
.brand { display: inline-flex; align-items: center; gap: .6rem; color: var(--text); text-decoration: none; font-weight: 750; }
.brand img { border-radius: .35rem; }
.intro { padding-block: clamp(2.5rem, 8vw, 4.5rem) 1.5rem; }
h1, h2 { letter-spacing: -.025em; line-height: 1.13; }
h1 { font-size: clamp(2.4rem, 7vw, 4rem); margin: 0 0 1rem; }
h2 { font-size: clamp(1.65rem, 4vw, 2rem); margin-block: 0 .75rem; }
.summary { color: var(--muted); font-size: 1.15rem; max-width: 37rem; }
.primary { background: var(--accent); color: var(--on-accent); padding: .55rem 1rem; border-radius: .4rem; text-decoration: none; font-weight: 700; }
.primary:focus-visible { outline-color: var(--accent); }
.secondary { border: 1px solid var(--outline); padding: .5rem .95rem; border-radius: .4rem; text-decoration: none; font-weight: 700; }
.secondary:hover { border-color: var(--accent); }
.versions { display: flex; flex-wrap: wrap; gap: .8rem 2rem; margin: 1.8rem 0 0; }
.versions dt { color: var(--muted); }
.versions dd { margin: 0; font-weight: 700; }
section:not(.intro) { padding-block: 2rem; border-top: 1px solid var(--outline); scroll-margin: 1rem; }
.snippet { background: var(--code); color: var(--on-code); border-radius: .55rem; margin-block: 1rem; padding: .85rem 1rem 1rem; }
.snippet button { color: inherit; background: transparent; border: 1px solid #a1aec9; border-radius: .3rem; cursor: pointer; padding: .3rem .65rem; }
.snippet button:not([hidden]) { display: block; margin-left: auto; }
pre { overflow-x: auto; margin: .45rem 0 0; padding: .15rem; line-height: 1.55; }
.examples { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 24rem), 1fr)); gap: 1rem; margin-block: 1.25rem; align-items: start; }
.example { min-width: 0; padding: 1.15rem; background: var(--surface); border: 1px solid var(--outline); border-radius: .55rem; }
.example h3 { margin: 0; line-height: 1.25; }
.example p { color: var(--muted); }
.example-details dt { font-weight: 700; margin-top: .7rem; }
.example-details dd { margin: 0; }
.example details { margin-top: .7rem; }
.example summary { cursor: pointer; color: var(--accent); }
.value-filter label { display: block; font-weight: 700; }
.value-filter input { background: var(--surface); color: var(--text); border: 1px solid var(--outline); border-radius: .35rem; font: inherit; width: min(100%, 24rem); padding: .55rem .75rem; }
.value-filter [role="status"] { display: block; color: var(--muted); margin-top: .3rem; }
.table-scroll { overflow-x: auto; border: 1px solid var(--outline); border-radius: .45rem; }
table { border-collapse: collapse; width: 100%; background: var(--surface); font-size: .9rem; text-align: left; }
th, td { border-bottom: 1px solid var(--outline); padding: .6rem .75rem; vertical-align: top; }
th:first-child, td:nth-child(2) { overflow-wrap: anywhere; }
th:first-child { min-width: 12rem; }
td:last-child { min-width: 13rem; }
tr:last-child td, tbody tr:last-child th { border-bottom: 0; }
thead th { background: var(--paper); }
.footer { border-width: 1px 0 0; padding-block: 1.25rem 2rem; }
.footer p { margin: 0; flex-basis: 100%; color: var(--muted); }
.skip-link { position: absolute; left: 1rem; top: -5rem; padding: .5rem; background: var(--surface); z-index: 1; }
.skip-link:focus { top: .5rem; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
h3 { margin-block: 1.75rem .5rem; }
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr)); gap: 1rem; padding: 0; list-style: none; }
.features li { padding: 1rem 1.15rem; background: var(--surface); border: 1px solid var(--outline); border-radius: .55rem; color: var(--muted); }
.features strong { display: block; color: var(--text); }
.fingerprint { overflow-wrap: anywhere; }
.links { padding-left: 1.2rem; }
.callout { padding: .8rem 1rem; border-left: 4px solid var(--accent); background: var(--surface); border-radius: 0 .45rem .45rem 0; }
section > .table-scroll { margin-block: 1rem; }
