/* Wilayah Indonesia: one stylesheet, tokens first. Light is the default theme; theme.js sets
   data-theme="dark" on request. Series colours were validated for colour-blind separation in both themes. */

:root {
  --bg: #f7f5f0;
  --surface: #fffdf9;
  --sunken: #efece5;
  --ink: #17181a;
  --ink-2: #45484d;
  --muted: #676a70;
  --rule: #e3dfd6;
  --rule-strong: #c8c3b7;
  --accent: #b4471e;
  --accent-text: #963a16;
  --accent-soft: rgb(180 71 30 / 0.12);
  --ok: #1f7a43;
  --error: #b42318;
  --series-1: #b4471e;
  --series-2: #008a7c;
  --series-3: #a07c12;
  --shadow: 0 12px 32px -12px rgb(23 24 26 / 0.22);

  --font-sans: "Schibsted Grotesk", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --radius: 6px;
  --control-height: 2.75rem;

  color-scheme: light;
}

:root[data-theme="dark"] {
  --bg: #131412;
  --surface: #1b1c1a;
  --sunken: #1f201d;
  --ink: #ecebe6;
  --ink-2: #c4c2bb;
  --muted: #9b9992;
  --rule: #2b2c29;
  --rule-strong: #43443f;
  --accent: #d4663a;
  --accent-text: #ec8a5f;
  --accent-soft: rgb(212 102 58 / 0.16);
  --ok: #5fbf7f;
  --error: #f07b6c;
  --series-1: #d4663a;
  --series-2: #15a092;
  --series-3: #ac8820;
  --shadow: 0 12px 32px -12px rgb(0 0 0 / 0.6);

  color-scheme: dark;
}

/* Base */

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 1.5rem;
}

@media (min-width: 1600px) { html { font-size: 106.25%; } }
@media (min-width: 2200px) { html { font-size: 118.75%; } }

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

h1, h2, h3, p, dl, dd, ol, ul, figure { margin: 0; }
ol, ul { padding: 0; list-style: none; }
h1, h2, h3 { font-weight: 600; letter-spacing: -0.02em; line-height: 1.15; text-wrap: balance; }
p { text-wrap: pretty; }
a { color: inherit; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
strong { font-weight: 600; }

code, .mono { font-family: var(--font-mono); font-size: 0.875em; }
.bar-value, .legend .value, .log .ms { font-variant-numeric: tabular-nums; }
:not(pre) > code { padding: 0.1em 0.35em; border-radius: 4px; background: var(--sunken); color: var(--ink-2); white-space: nowrap; }

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

/* Scrollbars: 6px and themed. Blink/WebKit use the pseudo-elements; Firefox only supports the standard properties. */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--rule-strong); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--muted); }
::-webkit-scrollbar-corner { background: transparent; }
@supports not selector(::-webkit-scrollbar) {
  * { scrollbar-width: thin; scrollbar-color: var(--rule-strong) transparent; }
}

.sr-only {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap;
}

.skip {
  position: absolute; left: var(--gutter); top: -3rem; z-index: 50;
  padding: 0.5rem 0.9rem; border-radius: var(--radius); background: var(--ink); color: var(--bg);
}
.skip:focus { top: 0.75rem; }

.wrap { width: min(100% - 2 * var(--gutter), 76rem); margin-inline: auto; }
.muted, .help { color: var(--muted); }
.help { font-size: 0.8125rem; }
.empty { color: var(--muted); padding-block: 1rem; }

.link { color: var(--accent-text); text-decoration: underline; text-decoration-color: var(--rule-strong); text-underline-offset: 0.2em; }
.link:hover { text-decoration-color: currentColor; }

.eyebrow {
  font: 500 0.75rem/1.4 var(--font-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

/* Masthead and footer */

.masthead { border-bottom: 1px solid var(--rule); }
.masthead-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 0.25rem 1.5rem; min-height: 4rem; }

.wordmark { display: inline-flex; align-items: center; gap: 0.6rem; font-weight: 600; text-decoration: none; white-space: nowrap; }
.wordmark img { display: block; border-radius: 5px; }

.nav { order: 1; margin-left: auto; display: flex; flex-wrap: wrap; gap: 0 1.25rem; font-size: 0.9375rem; }
.nav a { color: var(--ink-2); text-decoration: none; white-space: nowrap; padding-block: 0.5rem; }
.nav a:hover { color: var(--ink); }

/* Theme switch: a borderless pill; the thumb slides on a slight spring and carries the sun or moon.
   Motion comes from transform and opacity only, and stops under prefers-reduced-motion. */
.theme-switch {
  --track-w: 2.75rem; --track-h: 1.5rem; --inset: 3px;
  --thumb: calc(var(--track-h) - 2 * var(--inset));
  --x: 0px; --press: 1;
  order: 2; position: relative; flex: none;
  width: var(--track-w); height: var(--track-h); padding: 0; border: 0; border-radius: 999px;
  background: var(--rule-strong);
  transition: background-color 300ms ease;
  -webkit-tap-highlight-color: transparent;
}
.theme-switch::before { content: ""; position: absolute; inset: -10px -4px; } /* 44px touch target */
.theme-switch[aria-checked="true"] { --x: calc(var(--track-w) - var(--thumb) - 2 * var(--inset)); background: var(--accent); }
.theme-switch:active { --press: 0.86; }
.theme-switch:focus-visible { outline-offset: 3px; }

.theme-switch-thumb {
  position: absolute; top: var(--inset); left: var(--inset);
  display: grid; place-items: center; width: var(--thumb); height: var(--thumb); border-radius: 50%;
  background: #fff; box-shadow: 0 1px 2px rgb(0 0 0 / 0.2), 0 2px 6px rgb(0 0 0 / 0.12);
  transform: translateX(var(--x)) scale(var(--press));
  transition: transform 380ms cubic-bezier(0.3, 1.45, 0.55, 1);
}
.theme-switch-thumb svg {
  grid-area: 1 / 1; width: 0.75rem; height: 0.75rem;
  fill: none; stroke: var(--accent); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round;
  transition: opacity 220ms ease, transform 380ms cubic-bezier(0.3, 1.45, 0.55, 1);
}
.theme-switch .icon-moon { opacity: 0; transform: rotate(-90deg) scale(0.4); }
.theme-switch[aria-checked="true"] .icon-sun { opacity: 0; transform: rotate(90deg) scale(0.4); }
.theme-switch[aria-checked="true"] .icon-moon { opacity: 1; transform: none; }

@media (max-width: 719px) {
  .masthead-inner { padding-block: 0.75rem 0.25rem; }
  .theme-switch { order: 0; margin-left: auto; }
  .nav { order: 1; flex-basis: 100%; margin-left: 0; gap: 0 1rem; font-size: 0.875rem; }
}

.footer { margin-top: clamp(2rem, 5vw, 4rem); border-top: 1px solid var(--rule); padding-block: clamp(3rem, 6vw, 4.5rem) 2.5rem; font-size: 0.9375rem; }
.footer-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2.5rem 1.5rem; }
.footer-brand { grid-column: 1 / -1; display: grid; gap: 0.9rem; align-content: start; max-width: 24rem; }
.footer-brand p { color: var(--ink-2); }
.footer-version { font-size: 0.75rem; color: var(--muted); }
.footer-column h2 {
  margin-bottom: 0.9rem; font: 500 0.75rem/1.4 var(--font-mono);
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted);
}
.footer-column ul { display: grid; gap: 0.55rem; }
.footer-column a { color: var(--ink-2); text-decoration: none; }
.footer-column a:hover { color: var(--accent-text); }
.footer-note {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.75rem 2rem;
  margin-top: clamp(2.5rem, 5vw, 4rem); padding-top: 1.5rem; border-top: 1px solid var(--rule);
  font-size: 0.8125rem; color: var(--muted);
}
.footer-note p:first-child { max-width: 68ch; }
.footer-note a { color: var(--ink-2); }
@media (min-width: 720px) { .footer-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 960px) { .footer-grid { grid-template-columns: minmax(0, 2fr) repeat(3, minmax(0, 1fr)); } .footer-brand { grid-column: auto; } }

/* Hero */

.hero { padding-block: clamp(3.5rem, 9vw, 7.5rem) clamp(3rem, 6vw, 5rem); }
.hero h1 { margin-top: 1.25rem; max-width: 17ch; font-size: clamp(2.25rem, 1.35rem + 3.6vw, 4.25rem); line-height: 1.04; letter-spacing: -0.035em; }
.lede { margin-top: 1.5rem; max-width: 56ch; font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.25rem); color: var(--ink-2); }

.totals { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem 1rem; margin-top: clamp(2.5rem, 5vw, 4rem); }
.totals > div { border-top: 1px solid var(--rule-strong); padding-top: 0.75rem; }
.totals dt { font-size: 0.875rem; color: var(--muted); }
.totals dd { font-size: clamp(1.75rem, 1.3rem + 1.6vw, 2.75rem); font-weight: 500; letter-spacing: -0.03em; line-height: 1.2; }
@media (min-width: 720px) { .totals { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

.snippet {
  display: flex; align-items: center; gap: 1rem; margin-top: 2.5rem; max-width: 40rem;
  padding: 0.7rem 0.9rem; border: 1px solid var(--rule); border-radius: var(--radius); background: var(--surface);
}
.snippet code { flex: 1; min-width: 0; overflow-x: auto; white-space: nowrap; background: none; padding: 0; color: var(--ink); scrollbar-width: none; }

/* Sections */

.section { padding-block: clamp(3.5rem, 7vw, 6rem); border-top: 1px solid var(--rule); }
.section-head { display: grid; gap: 0.75rem; margin-bottom: clamp(2rem, 4vw, 3rem); }
.section-head h1 { font-size: clamp(2rem, 1.5rem + 2vw, 3rem); }
.section-head h2 { font-size: clamp(1.5rem, 1.3rem + 0.8vw, 2rem); }
.section-head p { max-width: 64ch; color: var(--ink-2); }
@media (min-width: 960px) {
  .section-head:has(h2) { grid-template-columns: 16rem minmax(0, 1fr); align-items: baseline; }
}

h3 { font-size: 1rem; }

/* Controls */

.button, .button-quiet { border: 0; background: none; padding: 0; }
.button {
  height: var(--control-height); padding-inline: 1.25rem; border-radius: var(--radius);
  background: var(--ink); color: var(--bg); font-weight: 500;
}
.button:hover { background: var(--accent); color: #fff; }
.button-quiet { flex: none; color: var(--accent-text); font-size: 0.8125rem; font-weight: 500; }
.button-quiet:hover { text-decoration: underline; text-underline-offset: 0.2em; }

.input {
  width: 100%; height: var(--control-height); padding: 0 0.85rem;
  border: 1px solid var(--rule-strong); border-radius: var(--radius);
  background: var(--surface); font-size: 1rem;
  transition: border-color 120ms, box-shadow 120ms;
}
.input::placeholder { color: var(--muted); opacity: 1; }
.input:hover:not(:disabled) { border-color: var(--muted); }
.input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.input:disabled { cursor: not-allowed; background: transparent; border-style: dashed; }
.input[aria-invalid="true"] { border-color: var(--error); }

label, .label { display: block; margin-bottom: 0.4rem; font-size: 0.875rem; font-weight: 500; }
label > span:not([class]) { font-weight: 400; color: var(--muted); }

.field-error { margin-top: 0.5rem; font-size: 0.875rem; color: var(--error); }
.field-error a { color: inherit; }

/* Combobox */

.combo { position: relative; }
.combo .input { padding-right: 2.5rem; text-overflow: ellipsis; }
.combo-caret {
  position: absolute; right: 1rem; top: 50%; width: 0.5rem; height: 0.5rem; pointer-events: none;
  border-right: 1.5px solid var(--muted); border-bottom: 1.5px solid var(--muted);
  transform: translateY(-70%) rotate(45deg); transition: transform 120ms;
}
.combo:has([aria-expanded="true"]) .combo-caret { transform: translateY(-30%) rotate(225deg); }

.combo-list {
  position: absolute; z-index: 30; inset-inline: 0; top: calc(100% + 0.35rem);
  max-height: min(20rem, 55vh); overflow-y: auto; overscroll-behavior: contain;
  padding: 0.3rem; border: 1px solid var(--rule-strong); border-radius: var(--radius);
  background: var(--surface); box-shadow: var(--shadow);
}
.combo-list [role="option"] {
  display: flex; align-items: baseline; justify-content: space-between; gap: 1rem;
  padding: 0.55rem 0.65rem; border-radius: 4px; cursor: pointer; font-size: 0.9375rem;
}
.combo-list [role="option"].is-active { background: var(--accent-soft); }
.combo-list [aria-selected="true"] { font-weight: 600; }
.combo-list mark { background: none; color: var(--accent-text); text-decoration: underline; text-underline-offset: 0.2em; }
.combo-list .option-code { flex: none; font: 0.75rem var(--font-mono); color: var(--muted); }
.combo-list .option-empty { padding: 0.6rem 0.65rem; color: var(--muted); font-size: 0.9375rem; }

/* Checkbox */

.check { position: relative; display: inline-flex; align-items: center; gap: 0.65rem; margin: 0; font-weight: 400; cursor: pointer; }
.check input { position: absolute; opacity: 0; width: 1.125rem; height: 1.125rem; margin: 0; }
.check-box {
  flex: none; width: 1.125rem; height: 1.125rem; border-radius: 4px;
  border: 1.5px solid var(--rule-strong); background: var(--surface); position: relative;
  transition: background-color 120ms, border-color 120ms;
}
.check input:checked + .check-box { background: var(--accent); border-color: var(--accent); }
.check input:checked + .check-box::after {
  content: ""; position: absolute; left: 0.32rem; top: 0.1rem; width: 0.3rem; height: 0.58rem;
  border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg);
}
.check input:focus-visible + .check-box { outline: 2px solid var(--accent); outline-offset: 2px; }

/* Segmented control (radio group) */

.segmented { display: inline-flex; flex-wrap: wrap; gap: 0.25rem; padding: 0.2rem; border-radius: var(--radius); background: var(--sunken); border: 0; margin: 0; }
.segmented label { position: relative; margin: 0; }
.segmented input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.segmented span { display: block; padding: 0.3rem 0.75rem; border-radius: 4px; font-size: 0.8125rem; font-weight: 500; color: var(--muted); }
.segmented input:checked + span { background: var(--surface); color: var(--ink); box-shadow: 0 1px 2px rgb(0 0 0 / 0.08); }
.segmented input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 1px; }

/* Explorer */

.explorer { display: grid; gap: clamp(2.5rem, 5vw, 4rem); }
@media (min-width: 960px) { .explorer { grid-template-columns: minmax(17rem, 4fr) minmax(0, 7fr); align-items: start; } }

.controls { display: grid; gap: 2rem; }
@media (min-width: 960px) { .controls { position: sticky; top: 1.5rem; } }

.jump-row { display: flex; gap: 0.5rem; }
.jump .help { margin-top: 0.5rem; }
.levels { display: grid; gap: 1.1rem; padding-top: 2rem; border-top: 1px solid var(--rule); }

.result { display: grid; gap: 2rem; min-width: 0; }

.trail { display: flex; flex-wrap: wrap; align-items: center; gap: 0.25rem 0.5rem; font-size: 0.875rem; color: var(--muted); min-height: 1.5rem; }
.trail button { border: 0; background: none; padding: 0; color: var(--ink-2); text-decoration: underline; text-decoration-color: var(--rule-strong); text-underline-offset: 0.2em; }
.trail button:hover { color: var(--ink); }
.trail [aria-current] { color: var(--ink); font-weight: 500; }
.trail .sep { color: var(--rule-strong); }

.detail-kind { font-size: 0.875rem; color: var(--muted); }
.detail-name { margin-top: 0.35rem; font-size: clamp(1.625rem, 1.3rem + 1.2vw, 2.25rem); letter-spacing: -0.025em; overflow-wrap: anywhere; }

.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin-top: 1.5rem; }
.facts > div { border-top: 1px solid var(--rule); padding-top: 0.6rem; min-width: 0; }
.facts dt { font-size: 0.8125rem; color: var(--muted); }
.facts dd { overflow-wrap: anywhere; }
@media (min-width: 640px) { .facts { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

.calls { margin-top: 1.75rem; border-top: 1px solid var(--rule); }
.calls li { border-bottom: 1px solid var(--rule); }
.calls button {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.25rem 1rem; width: 100%;
  padding: 0.7rem 0; border: 0; background: none; text-align: left;
}
.calls button:hover code { color: var(--accent-text); }
.calls code { background: none; padding: 0; color: var(--ink); white-space: normal; overflow-wrap: anywhere; }
.calls .help { font-size: 0.8125rem; }

/* Request console */

.console { display: grid; gap: 0.75rem; min-width: 0; }
.console-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; }
.console-head h3 { font: 500 0.75rem/1.4 var(--font-mono); text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); }

.log { max-height: 11.5rem; overflow-y: auto; border-top: 1px solid var(--rule); }
.log button {
  display: grid; grid-template-columns: 3ch minmax(0, 1fr) auto; gap: 1rem; align-items: baseline; width: 100%;
  padding: 0.45rem 0.5rem; border: 0; border-bottom: 1px solid var(--rule); background: none; text-align: left;
  font: 0.8125rem/1.5 var(--font-mono);
}
.log button:hover { background: var(--sunken); }
.log button[aria-current="true"] { background: var(--accent-soft); }
.log .path { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.log .ms { color: var(--muted); }
.status-ok { color: var(--ok); }
.status-error { color: var(--error); }

.response { min-width: 0; border: 1px solid var(--rule); border-radius: var(--radius); background: var(--surface); }
.response-bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0.55rem 0.8rem; border-bottom: 1px solid var(--rule); }
.response-bar code { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 0.75rem; color: var(--muted); }

.json {
  margin: 0; padding: 0.9rem 1rem; max-height: 28rem; overflow: auto;
  font: 0.8125rem/1.6 var(--font-mono); tab-size: 2; color: var(--ink-2);
}
.json:empty::before { content: "Responses appear here."; color: var(--muted); font-family: var(--font-sans); }
.j-key { color: var(--ink); }
.j-str { color: var(--series-2); }
.j-num { color: var(--accent-text); }
.j-lit { color: var(--series-3); }

/* Analytics */

.analytics { display: grid; gap: clamp(2.5rem, 5vw, 3.5rem); }

.figures { display: grid; grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr)); gap: 1rem; }
.figures > div { border-top: 1px solid var(--rule-strong); padding-top: 0.6rem; }
.figures dt { font-size: 0.8125rem; color: var(--muted); }
.figures dd { font-size: clamp(1.5rem, 1.25rem + 1vw, 2.125rem); font-weight: 500; letter-spacing: -0.03em; }

.splits { display: grid; gap: 2.5rem; }
@media (min-width: 960px) { .splits { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4rem; } }

.split-bar { display: flex; gap: 2px; height: 0.875rem; margin-top: 0.9rem; }
.split-bar span { min-width: 2px; flex-basis: 0; flex-grow: var(--value); background: var(--color); }
.split-bar span:first-child { border-radius: 4px 0 0 4px; }
.split-bar span:last-child { border-radius: 0 4px 4px 0; }
.split-bar span:only-child { border-radius: 4px; }

.legend { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; margin-top: 0.9rem; font-size: 0.875rem; }
.legend li { display: flex; align-items: center; gap: 0.5rem; }
.legend .swatch { width: 0.625rem; height: 0.625rem; border-radius: 2px; background: var(--color); }
.legend .value { color: var(--muted); }
.term { color: var(--muted); }

.ranking-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.75rem 1.5rem; margin-bottom: 1.25rem; }

.bars li {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "name value" "bar bar";
  gap: 0.3rem 1rem; align-items: center; padding-block: 0.45rem; border-bottom: 1px solid var(--rule);
}
.bars li:hover { background: linear-gradient(to right, transparent, var(--sunken) 20%, var(--sunken) 80%, transparent); }
.bar-name {
  grid-area: name; min-width: 0; border: 0; background: none; padding: 0; text-align: left;
  font-size: 0.9375rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.bar-name:hover { color: var(--accent-text); text-decoration: underline; text-underline-offset: 0.2em; }
.bar-track { grid-area: bar; height: 0.5rem; }
.bar-fill { display: block; height: 100%; width: var(--share); min-width: 2px; border-radius: 0 4px 4px 0; background: var(--series-1); }
.bar-value { grid-area: value; font-size: 0.875rem; color: var(--ink-2); }
@media (min-width: 720px) {
  .bars li { grid-template-columns: minmax(10rem, 16rem) minmax(0, 1fr) 5.5rem; grid-template-areas: "name bar value"; }
  .bar-value { text-align: right; }
  .bar-track { height: 0.75rem; }
}
.more { margin-top: 1rem; }

/* Tables */

.table-scroll { overflow-x: auto; border-top: 1px solid var(--rule-strong); }
.table { width: 100%; border-collapse: collapse; font-size: 0.9375rem; }
.table th { padding: 0.75rem 0.75rem 0.6rem 0; text-align: left; font-size: 0.75rem; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
.table td { padding: 0.75rem 0.75rem 0.75rem 0; border-top: 1px solid var(--rule); vertical-align: top; }
.table td:first-child code { background: none; padding: 0; color: var(--ink); }
.table td .link { font-family: var(--font-mono); font-size: 0.8125rem; white-space: nowrap; }
.errors tr:target td { background: var(--accent-soft); }

/* Small screens: each table row becomes a stacked block instead of a sideways-scrolling grid. */
@media (max-width: 719px) {
  .table-scroll { overflow: visible; }
  .table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .table, .table tbody, .table tr, .table td { display: block; }
  .table tr { padding-block: 0.8rem; border-top: 1px solid var(--rule); }
  .table td { padding: 0.1rem 0; border: 0; }
  .table td:first-child code, .table td .link { white-space: normal; overflow-wrap: anywhere; }
  .errors td:nth-child(2)::before { content: "HTTP "; }
  .table .table-tag { display: none; }
}
.errors td:first-child { white-space: nowrap; }

.notes { display: grid; gap: 1.5rem 3rem; margin-top: clamp(2.5rem, 5vw, 3.5rem); }
@media (min-width: 720px) { .notes { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.notes dt { font-weight: 600; }
.notes dd { margin-top: 0.3rem; color: var(--ink-2); }
.notes :not(pre) > code { white-space: normal; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}

@media (forced-colors: active) {
  .bar-fill, .split-bar span, .legend .swatch { background: CanvasText; }
  .check input:checked + .check-box { background: Highlight; }
}
