/* SONIC CHECK API — static site styles.
   No external fonts or CDNs: system stacks match the production web app. */

:root {
  --bg: #1c1c22;
  --surface: #222229;
  --surface-2: #2a2a32;
  --line: rgba(255, 255, 255, 0.1);
  --line-strong: rgba(255, 255, 255, 0.18);
  --text: #f4f1e8;
  --muted: #a9a8b2;
  --faint: rgba(240, 233, 214, 0.62);
  --cream: #f0e9d6;
  --accent: #9db8f0;
  --ok: #5fd4a0;
  --warn: #f2c063;
  --bad: #f58b8b;
  --get: #9db8f0;
  --post: #7fd6a9;
  --patch: #f2c063;
  --delete: #f59a9a;

  --font-body: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-display: "Arial Black", "Helvetica Neue", Inter, ui-sans-serif, system-ui, sans-serif;
  --font-mono: ui-monospace, "SFMono-Regular", "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;

  --text-xs: clamp(0.75rem, 0.72rem + 0.12vw, 0.8125rem);
  --text-sm: clamp(0.875rem, 0.85rem + 0.12vw, 0.9375rem);
  --text-base: clamp(1rem, 0.97rem + 0.15vw, 1.0625rem);
  --text-lg: clamp(1.125rem, 1.05rem + 0.35vw, 1.3125rem);
  --text-xl: clamp(1.5rem, 1.3rem + 0.9vw, 2rem);
  --text-hero: clamp(2.5rem, 1.6rem + 4vw, 4.75rem);

  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4.5rem;
  --space-9: 6rem;

  --radius-sm: 4px;
  --radius-md: 6px;
  --radius-lg: 8px;
  --content: 72rem;
  --header-h: 3.75rem;
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + var(--space-4));
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  display: flex;
  flex-direction: column;
}

main { flex: 1 0 auto; }

img { max-width: 100%; height: auto; display: block; }

a { color: var(--accent); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { color: var(--text); }

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

code, kbd, pre, samp { font-family: var(--font-mono); font-size: 0.9em; }

:not(pre) > code {
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 0.08em 0.36em;
  overflow-wrap: anywhere;
}

h1, h2, h3, h4 { margin: 0; line-height: 1.12; color: var(--text); }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; }

.skip-link {
  position: absolute;
  left: var(--space-4);
  top: -3rem;
  z-index: 100;
  background: var(--cream);
  color: var(--bg);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-md);
  font-weight: 700;
  text-decoration: none;
}
.skip-link:focus { top: var(--space-3); }

.wrap {
  width: 100%;
  max-width: var(--content);
  margin: 0 auto;
  padding-inline: clamp(1.125rem, 4vw, 2.5rem);
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--faint);
}

[hidden] { display: none !important; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0);
  white-space: nowrap; border: 0;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(28, 28, 34, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  gap: var(--space-5);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  text-decoration: none;
  color: var(--text);
  min-height: 44px;
  flex-shrink: 0;
}
.brand img { width: 119px; height: 24px; }
.brand-tag {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.14em;
  color: var(--bg);
  background: var(--cream);
  border-radius: var(--radius-sm);
  padding: 0.12rem 0.4rem;
  font-weight: 700;
}
.site-nav { margin-left: auto; }
.site-nav ul {
  list-style: none;
  display: flex;
  align-items: center;
  gap: var(--space-1);
}
.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 var(--space-3);
  border-radius: var(--radius-md);
  color: var(--muted);
  text-decoration: none;
  font-size: var(--text-sm);
  font-weight: 500;
  white-space: nowrap;
}
.site-nav a:hover { color: var(--text); background: rgba(255, 255, 255, 0.05); }
.site-nav a[aria-current="page"] { color: var(--text); }
.site-nav .nav-out { color: var(--cream); }
.site-nav .nav-out span[aria-hidden] { margin-left: 0.3em; color: var(--faint); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  min-height: 44px;
  padding: 0 var(--space-5);
  border-radius: var(--radius-md);
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: var(--text-sm);
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: transform 160ms ease, background-color 160ms ease, border-color 160ms ease, color 160ms ease;
}
.btn:hover { transform: translateY(-1px); border-color: rgba(255, 255, 255, 0.32); color: var(--text); }
.btn-primary { background: var(--cream); color: var(--bg); border-color: var(--cream); }
.btn-primary:hover { background: #fffaf0; color: var(--bg); border-color: #fffaf0; }
.btn[disabled] { opacity: 0.6; cursor: progress; transform: none; }

/* Hero */
.hero { padding: var(--space-9) 0 var(--space-8); border-bottom: 1px solid var(--line); }
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: var(--space-8);
  align-items: center;
}
.hero h1 {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: var(--text-hero);
  letter-spacing: -0.045em;
  line-height: 0.95;
  margin-top: var(--space-4);
  text-wrap: balance;
}
.hero h1 .h1-sub { display: block; color: var(--cream); }
.hero .lede {
  margin-top: var(--space-5);
  font-size: var(--text-lg);
  color: var(--muted);
  max-width: 38rem;
  text-wrap: pretty;
}
.posture {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-top: var(--space-6);
}
.posture li {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--text);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 0.3rem 0.75rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.posture li::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--warn);
}
.posture li.is-human::before { background: var(--accent); }
.hero-actions { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-top: var(--space-6); }

.hero-art {
  position: relative;
  display: grid;
  grid-template-columns: 10px minmax(0, 1fr);
  gap: var(--space-4);
}
.hero-art .bar {
  width: 10px;
  height: 100%;
  border-radius: 5px;
  object-fit: fill;
}

/* Code */
.code-card {
  background: #16161b;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  min-width: 0;
}
.code-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  padding: var(--space-2) var(--space-2) var(--space-2) var(--space-4);
  border-bottom: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--faint);
}
.copy-btn {
  min-height: 36px;
  min-width: 44px;
  padding: 0 var(--space-3);
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: var(--text-xs);
  cursor: pointer;
}
.copy-btn:hover { color: var(--text); border-color: var(--line-strong); }
.copy-btn[data-state="copied"] { color: var(--ok); border-color: rgba(95, 212, 160, 0.4); }
pre {
  margin: 0;
  padding: var(--space-4);
  overflow-x: auto;
  font-size: 0.8125rem;
  line-height: 1.7;
  color: #e7e4dc;
  tab-size: 2;
}
pre .c { color: #8a8996; }
pre .k { color: var(--accent); }
pre .s { color: var(--cream); }
pre .o { color: var(--ok); }

/* Sections */
.section { padding: var(--space-8) 0; border-bottom: 1px solid var(--line); }
.section-head { display: grid; gap: var(--space-3); max-width: 44rem; margin-bottom: var(--space-6); }
.section-head h2 {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: var(--text-xl);
  letter-spacing: -0.03em;
}
.section-head p { color: var(--muted); }

/* Status */
.status-shell {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
}
.status-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  padding: var(--space-4) var(--space-5);
  border-bottom: 1px solid var(--line);
}
.status-overall { display: flex; align-items: center; gap: var(--space-3); font-weight: 600; }
.status-heading { display: grid; gap: var(--space-2); min-width: 0; }
.source-tag {
  justify-self: start;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.02em;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  color: var(--muted);
}
.source-tag[data-kind="live"] { color: var(--ok); border-color: rgba(95, 212, 160, 0.35); }
.source-tag[data-kind="snapshot"] { color: var(--accent); border-color: rgba(157, 184, 240, 0.35); }
.tile-source {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--faint);
}
.tile[data-source-kind="live"] .tile-source { color: var(--ok); }
.tile[data-source-kind="snapshot"] .tile-source { color: var(--accent); }
.status-actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3); }
.status-meta { font-family: var(--font-mono); font-size: var(--text-xs); color: var(--muted); }
.status-tiles {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.tile {
  padding: var(--space-5);
  border-right: 1px solid var(--line);
  min-width: 0;
  display: grid;
  gap: var(--space-2);
  align-content: start;
}
.tile:last-child { border-right: 0; }
.tile-label { font-size: var(--text-xs); color: var(--muted); display: flex; align-items: center; gap: var(--space-2); }
.tile-value {
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  color: var(--text);
  overflow-wrap: anywhere;
  min-height: 1.6em;
}
.tile[data-unavailable] .tile-value { font-family: var(--font-body); color: var(--muted); }
.tile-path { font-family: var(--font-mono); font-size: 0.75rem; color: var(--faint); overflow-wrap: anywhere; }

.dot {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: #5a5965;
  flex-shrink: 0;
  display: inline-block;
}
[data-state="ok"] .dot, .dot[data-state="ok"] { background: var(--ok); box-shadow: 0 0 0 3px rgba(95, 212, 160, 0.16); }
[data-state="warn"] .dot, .dot[data-state="warn"] { background: var(--warn); box-shadow: 0 0 0 3px rgba(242, 192, 99, 0.16); }
[data-state="bad"] .dot, .dot[data-state="bad"] { background: var(--bad); box-shadow: 0 0 0 3px rgba(245, 139, 139, 0.16); }
[data-state="pending"] .dot, .dot[data-state="pending"] { animation: pulse 1.2s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: 0.35; } }

.checks {
  border-top: 1px solid var(--line);
  padding: var(--space-5);
  display: grid;
  gap: var(--space-4);
}
.checks h3 { font-size: var(--text-sm); font-weight: 600; color: var(--muted); }
.check-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(13rem, 1fr));
  gap: var(--space-2) var(--space-5);
}
.check-list li {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--text);
  min-width: 0;
  overflow-wrap: anywhere;
}
.status-note {
  border-top: 1px solid var(--line);
  padding: var(--space-4) var(--space-5);
  font-size: var(--text-sm);
  color: var(--muted);
}
.status-note[hidden] { display: none; }

/* Guide grid (asymmetric 2 + 1) */
.guide-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-4);
}
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  display: grid;
  gap: var(--space-3);
  align-content: start;
  min-width: 0;
}
.card h3 { font-size: var(--text-base); font-weight: 700; }
.card p, .card li { color: var(--muted); font-size: var(--text-sm); }
.card ul { padding-left: 1.1rem; display: grid; gap: var(--space-2); }
.card-wide { grid-column: span 2; }
.base-url {
  font-family: var(--font-mono);
  font-size: clamp(1rem, 0.85rem + 0.9vw, 1.5rem);
  color: var(--cream);
  overflow-wrap: anywhere;
}
.kv { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: var(--space-2) var(--space-4); font-size: var(--text-sm); }
.kv dt { font-family: var(--font-mono); color: var(--text); }
.kv dd { margin: 0; color: var(--muted); }

.quick-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-4); }
.quick-grid .code-card:first-child { grid-column: 1 / -1; }

.boundary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
  gap: var(--space-7);
  align-items: start;
}
.boundary blockquote {
  margin: 0;
  font-size: var(--text-lg);
  line-height: 1.5;
  color: var(--text);
  border-left: 2px solid var(--cream);
  padding-left: var(--space-5);
  text-wrap: pretty;
}
.wording { list-style: none; display: flex; flex-wrap: wrap; gap: var(--space-2); margin-top: var(--space-5); }
.wording li { font-family: var(--font-mono); font-size: var(--text-xs); color: var(--muted); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 0.25rem 0.55rem; }

/* Footer */
.site-footer { padding: var(--space-7) 0; color: var(--muted); font-size: var(--text-sm); }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: var(--space-4) var(--space-6); justify-content: space-between; align-items: center; }
.site-footer ul { list-style: none; display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-5); }
.site-footer a { color: var(--muted); text-decoration: none; display: inline-flex; min-height: 44px; align-items: center; }
.site-footer a:hover { color: var(--text); }

/* Reference */
.ref-hero { padding: var(--space-8) 0 var(--space-6); border-bottom: 1px solid var(--line); }
.ref-hero h1 { font-family: var(--font-display); font-weight: 900; font-size: clamp(2rem, 1.4rem + 2.6vw, 3.25rem); letter-spacing: -0.04em; margin-top: var(--space-3); }
.ref-hero p { color: var(--muted); max-width: 46rem; margin-top: var(--space-4); }
.ref-meta { display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-5); margin-top: var(--space-5); font-family: var(--font-mono); font-size: var(--text-xs); color: var(--faint); }

.ref-layout {
  display: grid;
  grid-template-columns: 15.5rem minmax(0, 1fr);
  gap: var(--space-7);
  padding-top: var(--space-6);
  padding-bottom: var(--space-8);
}
.ref-side { position: sticky; top: calc(var(--header-h) + var(--space-4)); align-self: start; max-height: calc(100vh - var(--header-h) - var(--space-6)); overflow-y: auto; padding-right: var(--space-2); }
.filter label { display: block; font-size: var(--text-xs); color: var(--muted); margin-bottom: var(--space-2); }
.filter input {
  width: 100%;
  min-height: 44px;
  padding: 0 var(--space-3);
  border-radius: var(--radius-md);
  border: 1px solid var(--line-strong);
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-family: var(--font-mono);
  font-size: var(--text-sm);
}
.filter input::placeholder { color: #8a8996; }
.filter-count { font-family: var(--font-mono); font-size: var(--text-xs); color: var(--faint); margin-top: var(--space-2); min-height: 1.2em; }
.toc { list-style: none; margin-top: var(--space-5); display: grid; gap: 2px; }
.toc a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-2);
  min-height: 40px;
  padding: 0 var(--space-3);
  border-radius: var(--radius-md);
  color: var(--muted);
  text-decoration: none;
  font-size: var(--text-sm);
}
.toc a:hover { background: rgba(255, 255, 255, 0.05); color: var(--text); }
.toc .count { font-family: var(--font-mono); font-size: 0.75rem; color: var(--faint); }

.ref-group { padding-bottom: var(--space-7); }
.ref-group + .ref-group { border-top: 1px solid var(--line); padding-top: var(--space-6); }
.ref-group-head { display: grid; gap: var(--space-2); margin-bottom: var(--space-5); }
.ref-group-head h2 { font-size: var(--text-xl); font-family: var(--font-display); font-weight: 900; letter-spacing: -0.03em; }
.ref-group-head p { color: var(--muted); font-size: var(--text-sm); max-width: 44rem; }

.endpoint {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  margin-bottom: var(--space-3);
  min-width: 0;
}
.endpoint-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2) var(--space-3);
  padding: var(--space-4) var(--space-5);
}
.method {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  min-width: 4.4rem;
  text-align: center;
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-sm);
  border: 1px solid currentColor;
}
.method-get { color: var(--get); background: rgba(157, 184, 240, 0.08); }
.method-post { color: var(--post); background: rgba(127, 214, 169, 0.08); }
.method-patch { color: var(--patch); background: rgba(242, 192, 99, 0.08); }
.method-delete { color: var(--delete); background: rgba(245, 154, 154, 0.08); }
.path { font-family: var(--font-mono); font-size: var(--text-sm); color: var(--text); overflow-wrap: anywhere; min-width: 0; flex: 1 1 16rem; }
.path .param { color: var(--cream); }
.access {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  color: var(--muted);
  white-space: nowrap;
}
.access-public { color: var(--ok); border-color: rgba(95, 212, 160, 0.35); }
.access-session { color: var(--warn); border-color: rgba(242, 192, 99, 0.35); }
.anchor { color: var(--faint); text-decoration: none; font-family: var(--font-mono); min-width: 44px; min-height: 36px; display: inline-flex; align-items: center; justify-content: center; border-radius: var(--radius-sm); }
.anchor:hover { color: var(--text); background: rgba(255, 255, 255, 0.05); }
.endpoint-body { padding: 0 var(--space-5) var(--space-5); display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-4); }
.endpoint-body > * { min-width: 0; }
.endpoint-body > p { color: var(--muted); font-size: var(--text-sm); max-width: 52rem; }
.endpoint-body .note { color: var(--text); font-size: var(--text-sm); border-left: 2px solid var(--warn); padding-left: var(--space-3); }
.fields h3 { font-size: var(--text-xs); font-family: var(--font-mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--faint); font-weight: 500; margin-bottom: var(--space-2); }
.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-md); }
table { width: 100%; border-collapse: collapse; font-size: 0.8125rem; }
th, td { text-align: left; padding: var(--space-2) var(--space-3); border-bottom: 1px solid var(--line); vertical-align: top; }
tr:last-child td { border-bottom: 0; }
th { font-weight: 600; color: var(--muted); background: rgba(255, 255, 255, 0.02); white-space: nowrap; }
td:first-child { font-family: var(--font-mono); color: var(--text); white-space: nowrap; }
td.type { font-family: var(--font-mono); color: var(--accent); white-space: nowrap; }
td.req { white-space: nowrap; color: var(--muted); }
td.req.yes { color: var(--cream); }
td.desc { color: var(--muted); min-width: 12rem; }
.excluded { margin-top: var(--space-4); }
.no-results { color: var(--muted); padding: var(--space-6) 0; }
.endpoint[hidden], .ref-group[hidden], .no-results[hidden] { display: none; }

/* 404 */
.notfound { padding-block: var(--space-9); }
.notfound h1 { font-family: var(--font-display); font-weight: 900; font-size: var(--text-hero); letter-spacing: -0.045em; line-height: 0.95; margin-top: var(--space-4); }
.notfound p { color: var(--muted); margin-top: var(--space-5); max-width: 36rem; }

/* Responsive */
@media (max-width: 960px) {
  .hero-grid, .boundary { grid-template-columns: minmax(0, 1fr); gap: var(--space-7); }
  .status-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tile:nth-child(2) { border-right: 0; }
  .tile:nth-child(-n + 2) { border-bottom: 1px solid var(--line); }
  .guide-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .card-wide { grid-column: 1 / -1; }
  .ref-layout { grid-template-columns: minmax(0, 1fr); gap: var(--space-5); }
  .ref-side { position: static; max-height: none; overflow: visible; padding-right: 0; }
  .toc { display: flex; flex-wrap: wrap; gap: var(--space-2); }
  .toc a { border: 1px solid var(--line); min-height: 40px; }
}

@media (max-width: 640px) {
  .site-header .wrap { flex-wrap: wrap; gap: 0; padding-top: var(--space-1); }
  .site-nav { margin-left: 0; width: 100%; overflow-x: auto; }
  .site-nav ul { gap: 0; }
  .site-nav li:first-child a { padding-left: 0; }
  .hero { padding: var(--space-7) 0 var(--space-7); }
  .hero-art { grid-template-columns: minmax(0, 1fr); }
  .hero-art .bar { display: none; }
  .section { padding: var(--space-7) 0; }
  .status-tiles, .guide-grid, .quick-grid { grid-template-columns: minmax(0, 1fr); }
  .tile { border-right: 0; border-bottom: 1px solid var(--line); }
  .tile:last-child { border-bottom: 0; }
  .endpoint-head, .endpoint-body { padding-left: var(--space-4); padding-right: var(--space-4); }
  .kv { grid-template-columns: minmax(0, 1fr); gap: 0 0; }
  .kv dd { margin-bottom: var(--space-2); }
  .site-nav .nav-out { padding-right: 0; }
  .site-nav .nav-out span[aria-hidden] { display: none; }
  .endpoint-head { gap: var(--space-2); }
  .endpoint-head .access { margin-left: auto; }
  .endpoint-head .anchor { min-width: 36px; }
  .endpoint-head code.path { order: 3; flex: 1 1 100%; }
  .table-scroll { overflow-x: visible; }
  .table-scroll table, .table-scroll tbody { display: block; }
  .table-scroll thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .table-scroll tr {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: var(--space-1) var(--space-3);
    padding: var(--space-3);
    border-bottom: 1px solid var(--line);
  }
  .table-scroll tr:last-child { border-bottom: 0; }
  .table-scroll td { display: block; padding: 0; border: 0; white-space: normal; overflow-wrap: anywhere; }
  .table-scroll td:first-child { grid-column: 1; }
  .table-scroll td.req { grid-column: 2; grid-row: 1; text-align: right; font-size: 0.75rem; }
  .table-scroll td.type { grid-column: 1 / -1; font-size: 0.75rem; }
  .table-scroll td.desc { grid-column: 1 / -1; min-width: 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}
.endpoint-head code.path { background: none; border: 0; padding: 0; }
.nowrap { white-space: nowrap; }
