:root {
  color-scheme: light;
  --ink: #172033;
  --muted: #64748b;
  --line: #e2e8f0;
  --panel: #ffffff;
  --accent: #2563eb;
  --accent-dark: #eff6ff;
  --danger: #b42318;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #f8fafc;
  color: var(--ink);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-height: 100vh; background: #f8fafc; }
button, input { font: inherit; }
code { font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace; }

.hero {
  border-bottom: 1px solid var(--line);
  background: #ffffff;
}

.nav, .hero-content, main, footer { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }
.nav { display: flex; align-items: center; justify-content: space-between; min-height: 60px; border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; font-weight: 700; letter-spacing: -0.02em; }
.status { padding: 4px 8px; border: 1px solid var(--line); border-radius: 4px; color: var(--muted); font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace; font-size: 11px; }

.hero-content { padding: 48px 0 52px; }
.eyebrow, .section-kicker { margin: 0 0 10px; color: var(--accent); font-size: 11px; font-weight: 750; letter-spacing: .12em; }
h1 { max-width: 850px; margin: 0; font-size: clamp(32px, 4vw, 44px); line-height: 1.15; letter-spacing: -0.035em; }
.intro { max-width: 710px; margin: 16px 0 28px; color: #526079; font-size: 16px; line-height: 1.6; }
.endpoint-panel { display: flex; align-items: center; justify-content: space-between; gap: 24px; max-width: 760px; padding: 14px 14px 14px 16px; border: 1px solid var(--line); border-radius: 6px; background: #f8fafc; }
.endpoint-panel > div { min-width: 0; }
.field-label { display: block; margin-bottom: 6px; color: var(--muted); font-size: 11px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; }
.endpoint-panel code { display: block; overflow: hidden; color: var(--ink); font-size: 14px; text-overflow: ellipsis; white-space: nowrap; }
.copy-button { flex: 0 0 auto; padding: 9px 13px; border: 1px solid #1d4ed8; border-radius: 5px; background: var(--accent); color: #ffffff; cursor: pointer; font-size: 12px; font-weight: 700; }
.copy-button:hover { filter: brightness(1.08); }
.copy-button:disabled { cursor: wait; opacity: .55; }

main { padding: 48px 0 72px; }
.quick-start { display: grid; grid-template-columns: 1.4fr 1fr; gap: 48px; padding-bottom: 48px; border-bottom: 1px solid var(--line); }
h2 { margin: 0; font-size: clamp(24px, 3vw, 30px); letter-spacing: -0.025em; }
.quick-start p:not(.section-kicker) { max-width: 650px; margin: 20px 0 0; color: var(--muted); line-height: 1.75; }
.quick-start code { padding: 2px 6px; border-radius: 5px; background: var(--accent-dark); color: var(--accent); font-size: .9em; }
.facts { margin: 0; border: 1px solid var(--line); border-radius: 6px; background: var(--panel); }
.facts div { display: flex; justify-content: space-between; gap: 20px; padding: 16px 18px; }
.facts div + div { border-top: 1px solid var(--line); }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; text-align: right; }
.facts code { color: var(--accent); }

.tools-section { padding-top: 48px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin-bottom: 30px; }
.count { color: var(--muted); font-size: .55em; vertical-align: middle; }
.search input { width: min(300px, 70vw); padding: 10px 12px; border: 1px solid var(--line); border-radius: 5px; outline: 0; background: #ffffff; color: var(--ink); }
.search input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(37,99,235,.1); }
.documentation { display: grid; grid-template-columns: 190px minmax(0, 1fr); gap: 42px; align-items: start; }
.documentation[hidden] { display: none; }
.section-list { position: sticky; top: 24px; padding: 15px 0; border-right: 1px solid var(--line); }
.section-list-label { display: block; margin: 0 18px 10px 0; color: var(--muted); font-size: 11px; font-weight: 800; letter-spacing: .11em; text-transform: uppercase; }
.section-list nav { display: grid; }
.section-list a { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-right: -1px; padding: 9px 18px 9px 0; border-right: 2px solid transparent; color: #475569; text-decoration: none; font-size: 13px; font-weight: 650; }
.section-list a:hover { border-right-color: var(--accent); color: var(--accent); }
.section-link-count { min-width: 24px; padding: 2px 7px; border-radius: 999px; background: #eef2f7; color: var(--muted); text-align: center; font-size: 11px; }
.tools { display: grid; gap: 44px; }
.tool-section { display: grid; gap: 14px; scroll-margin-top: 24px; }
.tool-section-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.tool-section-heading h3 { margin: 0; font-size: 20px; letter-spacing: -.015em; }
.section-count { color: var(--muted); font-size: 12px; }
.tool { overflow: hidden; border: 1px solid var(--line); border-radius: 6px; background: var(--panel); }
.tool summary { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px; padding: 23px 24px; cursor: pointer; list-style: none; }
.tool summary::-webkit-details-marker { display: none; }
.tool summary:hover { background: #f8fafc; }
.tool-name { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.tool-name code { color: var(--accent); font-size: 16px; font-weight: 700; }
.tool-title { margin-top: 8px; color: var(--muted); font-size: 14px; }
.chevron { align-self: center; color: var(--muted); transition: transform .18s ease; }
.tool[open] .chevron { transform: rotate(180deg); }
.badges { display: flex; flex-wrap: wrap; gap: 7px; }
.badge { padding: 3px 7px; border: 1px solid var(--line); border-radius: 4px; color: #64748b; font-size: 9px; font-weight: 750; letter-spacing: .03em; text-transform: uppercase; }
.badge.safe { border-color: #bfdbfe; background: #eff6ff; color: var(--accent); }
.tool-body { padding: 0 24px 26px; border-top: 1px solid var(--line); }
.description { max-width: 850px; margin: 22px 0 25px; color: #526079; line-height: 1.7; }
.schemas { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.schema h4 { margin: 0 0 9px; color: var(--muted); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; }
.schema pre { overflow: auto; min-height: 100%; max-height: 420px; margin: 0; padding: 15px; border: 1px solid var(--line); border-radius: 5px; background: #f8fafc; color: #334155; font-size: 12px; line-height: 1.6; tab-size: 2; }
.notice { padding: 20px; border: 1px dashed var(--line); border-radius: 6px; color: var(--muted); text-align: center; }
.notice.error { color: var(--danger); }
footer { padding: 26px 0 40px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

@media (max-width: 760px) {
  .status { display: none; }
  .hero-content { padding: 36px 0 40px; }
  .endpoint-panel { align-items: stretch; flex-direction: column; }
  .copy-button { align-self: start; }
  .quick-start { grid-template-columns: 1fr; gap: 32px; }
  .section-heading { align-items: stretch; flex-direction: column; }
  .search input { width: 100%; }
  .documentation { grid-template-columns: 1fr; gap: 30px; }
  .section-list { position: static; overflow-x: auto; padding: 0 0 12px; border-right: 0; border-bottom: 1px solid var(--line); }
  .section-list-label { margin-bottom: 8px; }
  .section-list nav { display: flex; gap: 8px; }
  .section-list a { flex: 0 0 auto; padding: 8px 11px; border: 1px solid var(--line); border-radius: 5px; background: #ffffff; }
  .section-list a:hover { border-color: var(--accent); }
  .schemas { grid-template-columns: 1fr; }
  .tool summary { grid-template-columns: minmax(0, 1fr) auto; padding: 20px; }
  .tool-body { padding-inline: 20px; }
}
