:root {
  --ink: #111111;
  --paper: #ffffff;
  --muted: #f4f4f1;
  --accent: #ff3b00;
  --teal: #008a67;
  --line: #d8d8d2;
  --max: 1180px;
  --sans: "IBM Plex Sans", "Aptos", "Segoe UI", system-ui, sans-serif;
  --serif: "IBM Plex Serif", "Georgia", serif;
  --mono: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  line-height: 1.5;
}
a { color: inherit; }
.progress { position: fixed; inset: 0 auto auto 0; height: 3px; width: 0; background: var(--accent); z-index: 20; }
.topbar {
  position: sticky; top: 0; z-index: 10;
  display: grid; grid-template-columns: auto 1fr auto; gap: 24px; align-items: center;
  padding: 14px clamp(16px, 3vw, 34px);
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: blur(14px);
}
.brand { display: inline-flex; gap: 10px; align-items: center; font-family: var(--mono); font-size: 13px; text-decoration: none; text-transform: uppercase; }
.brand-mark { display: grid; place-items: center; width: 34px; height: 34px; border: 1px solid var(--ink); background: var(--ink); color: var(--paper); }
nav { display: flex; gap: 16px; justify-content: center; min-width: 0; }
nav a, .nav-cta { font-family: var(--mono); font-size: 12px; text-transform: uppercase; text-decoration: none; border-bottom: 1px solid transparent; white-space: nowrap; }
nav a:hover, .nav-cta:hover { border-color: var(--accent); color: var(--accent); }
.shell { width: min(var(--max), calc(100% - 32px)); margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1fr) 250px; gap: clamp(28px, 5vw, 64px); }
.content { min-width: 0; }
.toc { position: sticky; top: 86px; align-self: start; padding: 18px 0 18px 18px; border-left: 1px solid var(--line); max-height: calc(100vh - 110px); overflow: auto; }
.toc p { margin: 0 0 12px; font-family: var(--mono); font-size: 12px; text-transform: uppercase; color: #666; }
.toc a { display: block; padding: 7px 0; text-decoration: none; font-size: 14px; }
.toc a:hover { color: var(--accent); }
.hero { min-height: 520px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(230px, 330px); gap: clamp(24px, 5vw, 64px); align-items: end; padding: clamp(54px, 9vw, 110px) 0 34px; border-bottom: 1px solid var(--ink); }
.kicker { margin: 0 0 14px; color: var(--accent); font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: 0; }
h1, h2 { font-family: var(--serif); letter-spacing: 0; }
h1 { margin: 0; max-width: 920px; font-size: clamp(48px, 8vw, 104px); line-height: .92; font-weight: 700; }
h2 { margin: 0 0 12px; font-size: clamp(27px, 4vw, 46px); line-height: 1; }
.deck { max-width: 760px; font-size: clamp(18px, 2vw, 24px); color: #333; }
.actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; margin-top: 28px; }
.button, .topbar .nav-cta {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 42px; padding: 10px 16px;
  border: 1px solid var(--ink);
  text-decoration: none; font-family: var(--mono); text-transform: uppercase; font-size: 12px;
  background: transparent; color: var(--ink);
}
.button:hover, .topbar .nav-cta:hover, button:hover { background: var(--accent); color: var(--paper); border-color: var(--accent); }
.text-link { font-family: var(--mono); font-size: 13px; text-transform: uppercase; text-decoration-thickness: 1px; text-underline-offset: 5px; }
.text-link::after { content: " ->"; color: var(--accent); }
.stats { border: 1px solid var(--ink); background: var(--ink); color: var(--paper); }
.stats div { padding: 22px; border-bottom: 1px solid #444; }
.stats div:last-child { border-bottom: 0; }
.stats strong { display: block; font-family: var(--mono); font-size: clamp(34px, 5vw, 58px); line-height: 1; color: var(--accent); }
.stats span { display: block; margin-top: 8px; font-family: var(--mono); font-size: 12px; text-transform: uppercase; }
.safety-strip { margin: 20px 0 0; padding: 12px 14px; border: 1px solid var(--accent); font-family: var(--mono); font-size: 13px; color: var(--accent); }
.section-block { padding: clamp(34px, 6vw, 72px) 0; border-bottom: 1px solid var(--line); }
.section-block p { max-width: 820px; margin: 0; font-size: 18px; color: #2d2d2a; }
.intent-index { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; margin: 36px 0 0; border: 1px solid var(--ink); background: var(--ink); }
.intent-card { display: grid; gap: 10px; min-height: 176px; padding: 18px; background: var(--paper); text-decoration: none; }
.intent-card:hover { background: var(--muted); }
.intent-card span, .related-grid span { font-family: var(--mono); font-size: 12px; color: var(--accent); text-transform: uppercase; }
.intent-card strong { font-family: var(--serif); font-size: 25px; line-height: 1.05; }
.intent-card small { color: #4f4f49; font-size: 15px; }
.related-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 22px; }
.related-grid a { display: grid; gap: 8px; min-height: 118px; padding: 16px; border: 1px solid var(--line); text-decoration: none; font-family: var(--serif); font-size: 22px; line-height: 1.1; }
.related-grid a:hover { border-color: var(--accent); color: var(--accent); }
details { border-top: 1px solid var(--line); padding: 18px 0; }
details:last-child { border-bottom: 1px solid var(--line); }
summary { cursor: pointer; font-family: var(--serif); font-size: 24px; }
details p { margin-top: 12px !important; }
.footer { margin-top: 64px; padding: 28px clamp(16px, 3vw, 34px); border-top: 1px solid var(--ink); background: var(--ink); color: var(--paper); display: grid; grid-template-columns: 1.2fr .8fr 1.4fr; gap: 24px; }
.footer p { margin: 8px 0 0; color: #d9d9d4; }
.footer a { display: block; margin: 0 0 8px; color: var(--paper); }
.warning { color: #ffd9cc !important; font-family: var(--mono); font-size: 12px; }
button, select { min-height: 42px; border: 1px solid var(--ink); background: var(--paper); color: var(--ink); font: 13px var(--mono); padding: 8px 12px; }
.field { display: grid; gap: 8px; max-width: 520px; font-family: var(--mono); text-transform: uppercase; font-size: 12px; }
.admin-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0; }
pre, textarea { width: 100%; min-height: 90px; padding: 14px; border: 1px solid var(--line); background: var(--muted); color: var(--ink); font: 13px var(--mono); overflow: auto; }
#curl { min-height: 250px; }
@media (max-width: 940px) {
  .topbar { grid-template-columns: 1fr auto; }
  nav { display: none; }
  .shell { grid-template-columns: 1fr; }
  .toc { display: none; }
  .hero { grid-template-columns: 1fr; min-height: auto; }
  .stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .stats div { border-bottom: 0; border-right: 1px solid #444; }
  .stats div:last-child { border-right: 0; }
  .footer { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .topbar { gap: 10px; padding: 10px 14px; }
  .brand span:last-child { display: none; }
  .nav-cta { font-size: 11px; padding: 8px 10px; }
  .shell { width: min(100% - 24px, var(--max)); }
  h1 { font-size: clamp(42px, 15vw, 68px); }
  .stats, .intent-index, .related-grid { grid-template-columns: 1fr; }
  .stats div { border-right: 0; border-bottom: 1px solid #444; }
  .stats div:last-child { border-bottom: 0; }
}