:root {
  --ink: #0a2540;
  --ink-2: #1f3651;
  --muted: #5f6b7a;
  --muted-2: #8792a2;
  --line: #e5e9ef;
  --line-strong: #d4dbe5;
  --surface: #ffffff;
  --surface-soft: #f6f8fb;
  --surface-blue: #f1f7ff;
  --surface-cyan: #ecfbfb;
  --accent: #1677ff;
  --accent-dark: #0b5dcc;
  --accent-soft: #e8f2ff;
  --cyan: #00a6a6;
  --green: #0b8f64;
  --orange: #c56a00;
  --red: #c73b4a;
  --purple: #7357d9;
  --code: #0b1f33;
  --code-2: #102b45;
  --code-text: #d7e4f2;
  --code-muted: #8fa5bb;
  --shadow-sm: 0 1px 2px rgba(10,37,64,.05), 0 4px 12px rgba(10,37,64,.04);
  --shadow-md: 0 16px 42px rgba(10,37,64,.10);
  --radius: 12px;
  --header-h: 64px;
  --sidebar-w: 276px;
  --proof-w: 420px;
  --content-max: 760px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--surface);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body.nav-open, body.search-open { overflow: hidden; }
a { color: var(--accent-dark); text-decoration: none; }
a:hover { color: var(--accent); }
button, input { font: inherit; }
img { max-width: 100%; display: block; }
::selection { background: #cfe3ff; color: var(--ink); }

.skip-link {
  position: fixed; left: 12px; top: -48px; z-index: 1000;
  padding: 9px 12px; border-radius: 8px; background: var(--ink); color: #fff;
  transition: top .15s ease;
}
.skip-link:focus { top: 10px; }

.topbar {
  position: fixed; inset: 0 0 auto 0; z-index: 90; height: var(--header-h);
  display: flex; align-items: center; gap: 26px;
  padding: 0 24px; background: rgba(255,255,255,.94); border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
}
.brand { display: inline-flex; align-items: center; gap: 10px; min-width: 224px; color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand-mark {
  width: 28px; height: 28px; border: 2px solid var(--accent); border-radius: 7px;
  position: relative; transform: rotate(45deg); box-shadow: inset 0 0 0 5px #fff;
}
.brand-mark::before, .brand-mark::after { content: ""; position: absolute; background: var(--cyan); border-radius: 999px; }
.brand-mark::before { width: 9px; height: 2px; top: 11px; left: 7px; }
.brand-mark::after { width: 2px; height: 9px; top: 7px; left: 11px; }
.brand-copy { display: flex; align-items: baseline; gap: 7px; white-space: nowrap; }
.brand-copy strong { font-size: 17px; letter-spacing: -.02em; }
.brand-copy span { color: var(--muted); font-size: 13px; }
.topnav { display: flex; align-items: center; gap: 4px; flex: 1; }
.topnav a {
  color: var(--ink-2); font-size: 14px; font-weight: 600; padding: 9px 10px; border-radius: 7px;
}
.topnav a:hover, .topnav a[aria-current="page"] { color: var(--accent-dark); background: var(--surface-blue); }
.top-actions { display: flex; align-items: center; gap: 10px; }
.search-button {
  min-width: 232px; height: 38px; display: flex; align-items: center; gap: 9px;
  padding: 0 10px; border: 1px solid var(--line-strong); border-radius: 8px;
  color: var(--muted); background: var(--surface-soft); cursor: pointer; text-align: left;
}
.search-button:hover { border-color: #b9c4d1; background: #fff; }
.search-button .search-label { flex: 1; font-size: 13px; }
.search-button kbd { border: 1px solid var(--line-strong); background: #fff; border-radius: 5px; padding: 1px 6px; color: var(--muted-2); font-size: 11px; box-shadow: 0 1px 0 rgba(10,37,64,.06); }
.header-link { color: var(--ink-2); font-weight: 600; font-size: 13px; padding: 8px; }
.header-link:hover { color: var(--accent); }
.menu-toggle { display: none; border: 0; background: transparent; width: 40px; height: 40px; border-radius: 8px; cursor: pointer; }
.menu-toggle:hover { background: var(--surface-soft); }
.menu-toggle span, .menu-toggle::before, .menu-toggle::after { content: ""; display: block; width: 19px; height: 2px; margin: 4px auto; background: var(--ink); border-radius: 2px; }

.site-shell { padding-top: var(--header-h); min-height: 100vh; }
.docs-layout { display: grid; grid-template-columns: var(--sidebar-w) minmax(0, 1fr) var(--proof-w); min-height: calc(100vh - var(--header-h)); }
.docs-layout.no-proof { grid-template-columns: var(--sidebar-w) minmax(0, 1fr); }
.docs-layout.home-layout { grid-template-columns: var(--sidebar-w) minmax(0, 1fr); }

.sidebar {
  position: sticky; top: var(--header-h); height: calc(100vh - var(--header-h)); overflow: auto;
  border-right: 1px solid var(--line); background: #fbfcfe; padding: 24px 20px 48px;
  scrollbar-width: thin;
}
.sidebar-head { display: none; }
.sidebar-group { margin: 0 0 23px; }
.sidebar-group-title {
  margin: 0 0 7px; padding: 0 9px; color: var(--muted-2); font-size: 11px; line-height: 1.3;
  font-weight: 750; text-transform: uppercase; letter-spacing: .075em;
}
.sidebar-link {
  position: relative; display: block; margin: 1px 0; padding: 6px 9px; border-radius: 7px;
  color: #425466; font-size: 13.5px; line-height: 1.35;
}
.sidebar-link:hover { color: var(--ink); background: #eef3f8; }
.sidebar-link.current { color: var(--accent-dark); background: var(--accent-soft); font-weight: 650; }
.sidebar-link.current::before { content: ""; position: absolute; width: 3px; border-radius: 4px; background: var(--accent); inset: 6px auto 6px -6px; }
.sidebar-link .nav-status { display: inline-block; margin-left: 5px; width: 6px; height: 6px; border-radius: 50%; vertical-align: 1px; background: var(--orange); }
.sidebar-footer { margin-top: 26px; padding-top: 18px; border-top: 1px solid var(--line); }
.sidebar-footer a { display: block; padding: 5px 9px; font-size: 12.5px; color: var(--muted); }

.main-pane { min-width: 0; }
.article-wrap { width: min(100%, calc(var(--content-max) + 128px)); margin: 0 auto; padding: 44px 64px 96px; }
.no-proof .article-wrap { width: min(100%, 1080px); }
.home-layout .article-wrap { width: min(100%, 1140px); padding-top: 50px; }
.breadcrumbs { display: flex; align-items: center; gap: 7px; color: var(--muted-2); font-size: 12px; margin-bottom: 20px; }
.breadcrumbs a { color: var(--muted); }
.breadcrumbs a:hover { color: var(--accent); }
.breadcrumbs .sep { color: #bdc6d0; }
.page-kicker { display: flex; align-items: center; gap: 9px; margin-bottom: 13px; }
.status-badge {
  display: inline-flex; align-items: center; min-height: 24px; padding: 2px 8px; border-radius: 999px;
  font-size: 11px; font-weight: 700; color: #3c4b5c; background: var(--surface-soft); border: 1px solid var(--line);
}
.status-badge[data-status*="Normative"], .status-badge[data-status*="Stable"] { color: #076a4b; background: #e9f8f2; border-color: #bee8d8; }
.status-badge[data-status*="Draft"], .status-badge[data-status*="Design"], .status-badge[data-status*="Emerging"] { color: #8b4d00; background: #fff4e5; border-color: #f2d1a8; }
.page-kicker .eyebrow { font-size: 12px; font-weight: 700; color: var(--accent-dark); }
h1 { font-size: clamp(34px, 4vw, 48px); line-height: 1.08; letter-spacing: -.035em; margin: 0 0 16px; color: var(--ink); }
.page-description { max-width: 760px; color: #425466; font-size: 18px; line-height: 1.55; margin: 0 0 24px; }
.page-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 24px 0 34px; }
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 39px; padding: 8px 14px;
  border: 1px solid transparent; border-radius: 8px; font-size: 13px; font-weight: 700; transition: .15s ease;
}
.button-primary { color: #fff; background: var(--accent); box-shadow: 0 3px 10px rgba(22,119,255,.22); }
.button-primary:hover { color: #fff; background: var(--accent-dark); transform: translateY(-1px); }
.button-secondary { color: var(--ink); background: #fff; border-color: var(--line-strong); }
.button-secondary:hover { color: var(--ink); border-color: #aab6c3; background: var(--surface-soft); }
.button-quiet { color: var(--accent-dark); background: var(--accent-soft); }
.button-quiet:hover { background: #d9eaff; }

.doc-content { color: #33475b; font-size: 15.5px; }
.doc-content > *:first-child { margin-top: 0; }
.doc-content h2 { margin: 52px 0 15px; padding-top: 2px; color: var(--ink); font-size: 27px; line-height: 1.25; letter-spacing: -.025em; }
.doc-content h3 { margin: 35px 0 11px; color: var(--ink); font-size: 20px; line-height: 1.35; letter-spacing: -.015em; }
.doc-content h4 { margin: 26px 0 8px; color: var(--ink); font-size: 16px; }
.doc-content p { margin: 0 0 17px; }
.doc-content strong { color: var(--ink-2); }
.doc-content ul, .doc-content ol { margin: 0 0 21px; padding-left: 23px; }
.doc-content li { margin: 7px 0; padding-left: 2px; }
.doc-content hr { border: 0; border-top: 1px solid var(--line); margin: 42px 0; }
.doc-content code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace; font-size: .9em; color: #244f78; background: #eef4fa; border-radius: 4px; padding: 2px 5px; }
.doc-content pre {
  position: relative; margin: 22px 0 25px; padding: 19px 21px; border: 1px solid #dce4ed; border-radius: 10px;
  background: #f6f9fc; color: #183550; overflow: auto; line-height: 1.55; box-shadow: inset 0 1px 0 #fff;
}
.doc-content pre code { padding: 0; background: transparent; color: inherit; font-size: 13px; }
.doc-content blockquote {
  margin: 24px 0; padding: 16px 18px 16px 20px; border-left: 3px solid var(--accent); border-radius: 0 9px 9px 0;
  color: #31465d; background: var(--surface-blue);
}
.doc-content blockquote p:last-child { margin-bottom: 0; }
.doc-content table { width: 100%; margin: 24px 0 30px; border-collapse: separate; border-spacing: 0; border: 1px solid var(--line-strong); border-radius: 10px; overflow: hidden; font-size: 14px; }
.doc-content th { background: var(--surface-soft); color: var(--ink); font-weight: 700; text-align: left; }
.doc-content th, .doc-content td { padding: 11px 13px; border-bottom: 1px solid var(--line); vertical-align: top; }
.doc-content tr:last-child td { border-bottom: 0; }
.doc-content th + th, .doc-content td + td { border-left: 1px solid var(--line); }
.doc-content a { font-weight: 550; }
.doc-content a:hover { text-decoration: underline; text-underline-offset: 3px; }
.heading-anchor { opacity: 0; color: var(--muted-2); margin-left: 7px; font-weight: 400; }
h2:hover .heading-anchor, h3:hover .heading-anchor, .heading-anchor:focus { opacity: 1; }

.callout { margin: 25px 0; padding: 17px 19px; border: 1px solid var(--line-strong); border-radius: 10px; background: var(--surface-soft); }
.callout > :last-child { margin-bottom: 0; }
.callout-title { display: flex; align-items: center; gap: 8px; margin-bottom: 7px; color: var(--ink); font-weight: 750; }
.callout-title::before { content: "i"; width: 20px; height: 20px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; background: var(--accent); color: #fff; font-size: 12px; font-family: Georgia, serif; }
.callout-important { background: #fff8ed; border-color: #f0d2a6; }
.callout-important .callout-title::before { content: "!"; background: var(--orange); font-family: inherit; }
.callout-success { background: #edf9f4; border-color: #bfe4d4; }
.callout-success .callout-title::before { content: "✓"; background: var(--green); font-family: inherit; }

.link-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 23px 0 32px; }
.link-card { position: relative; display: block; min-height: 132px; padding: 18px 19px 16px; border: 1px solid var(--line); border-radius: 11px; color: var(--ink); background: #fff; box-shadow: var(--shadow-sm); transition: .16s ease; }
.link-card:hover { color: var(--ink); transform: translateY(-2px); border-color: #b8c6d4; box-shadow: 0 10px 26px rgba(10,37,64,.08); }
.link-card .card-label { color: var(--accent-dark); font-size: 11px; font-weight: 750; text-transform: uppercase; letter-spacing: .055em; }
.link-card h3 { margin: 7px 0 6px; font-size: 17px; line-height: 1.3; }
.link-card p { margin: 0; color: var(--muted); font-size: 13.5px; line-height: 1.45; }
.link-card::after { content: "→"; position: absolute; right: 16px; top: 15px; color: var(--muted-2); }
.link-card:hover::after { color: var(--accent); transform: translateX(2px); }
.link-grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.link-grid.three .link-card { min-height: 150px; }
.catalog-section { margin: 38px 0 52px; }
.catalog-section > h2 { margin-bottom: 7px; }
.catalog-section > p { color: var(--muted); margin-bottom: 18px; }

.quickstart-list { margin: 22px 0 32px; border: 1px solid var(--line); border-radius: 11px; overflow: hidden; }
.quickstart-row { display: grid; grid-template-columns: 42px minmax(0,1fr) 170px 26px; align-items: center; gap: 13px; padding: 14px 16px; color: var(--ink); background: #fff; border-bottom: 1px solid var(--line); }
.quickstart-row:last-child { border-bottom: 0; }
.quickstart-row:hover { color: var(--ink); background: #f8fbff; }
.quickstart-icon { width: 34px; height: 34px; display: flex; align-items: center; justify-content: center; border-radius: 8px; color: var(--accent-dark); background: var(--accent-soft); font-weight: 800; }
.quickstart-row strong { display: block; font-size: 14px; }
.quickstart-row small { display: block; color: var(--muted); font-size: 12.5px; }
.quickstart-meta { color: var(--muted); font-size: 12px; }
.quickstart-arrow { color: var(--muted-2); }

.doc-step { position: relative; margin: 32px 0 44px; padding-left: 48px; }
.doc-step::before { content: attr(data-step); position: absolute; left: 0; top: -1px; width: 30px; height: 30px; display: flex; align-items: center; justify-content: center; border-radius: 50%; color: #fff; background: var(--accent); font-size: 13px; font-weight: 800; box-shadow: 0 0 0 5px var(--accent-soft); }
.doc-step::after { content: ""; position: absolute; left: 14px; top: 37px; bottom: -34px; width: 1px; background: var(--line-strong); }
.doc-step:last-of-type::after { display: none; }
.doc-step h2, .doc-step h3 { margin-top: 0; padding-top: 0; }
.step-result { margin-top: 16px; padding: 13px 15px; border-radius: 8px; background: #edf9f4; border: 1px solid #c6e7da; color: #23624c; }

.proof-pane { position: relative; min-width: 0; border-left: 1px solid #1a3955; background: var(--code); }
.proof-sticky { position: sticky; top: var(--header-h); height: calc(100vh - var(--header-h)); display: flex; flex-direction: column; color: var(--code-text); }
.proof-head { padding: 19px 20px 14px; border-bottom: 1px solid rgba(255,255,255,.10); background: rgba(255,255,255,.018); }
.proof-eyebrow { color: #73b9ff; font-size: 10px; text-transform: uppercase; letter-spacing: .10em; font-weight: 800; }
.proof-title { margin-top: 4px; color: #fff; font-size: 14px; font-weight: 700; }
.proof-tabs { display: flex; gap: 2px; padding: 8px 10px 0; border-bottom: 1px solid rgba(255,255,255,.10); overflow-x: auto; }
.proof-tab { position: relative; border: 0; padding: 9px 10px 11px; color: var(--code-muted); background: transparent; cursor: pointer; font-size: 11.5px; white-space: nowrap; }
.proof-tab:hover { color: #fff; }
.proof-tab.active { color: #fff; }
.proof-tab.active::after { content: ""; position: absolute; height: 2px; left: 8px; right: 8px; bottom: -1px; background: #61b6ff; border-radius: 2px 2px 0 0; }
.proof-content { flex: 1; min-height: 0; overflow: auto; scrollbar-width: thin; scrollbar-color: #34506a transparent; }
.proof-panel { display: none; min-height: 100%; }
.proof-panel.active { display: block; }
.proof-code-wrap { position: relative; min-height: 100%; }
.proof-code { margin: 0; padding: 21px 20px 60px; color: var(--code-text); background: transparent; white-space: pre; overflow: auto; line-height: 1.58; tab-size: 2; font: 12px/1.58 ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace; }
.proof-code .key { color: #70b7ff; }
.proof-code .string { color: #88d8b0; }
.proof-code .number { color: #f6c177; }
.proof-code .comment { color: #72879c; }
.copy-code { position: absolute; top: 13px; right: 13px; z-index: 3; border: 1px solid rgba(255,255,255,.16); border-radius: 7px; padding: 5px 8px; color: #b8c8d8; background: rgba(255,255,255,.055); cursor: pointer; font-size: 10.5px; }
.copy-code:hover { color: #fff; background: rgba(255,255,255,.10); }
.proof-model { padding: 20px; }
.proof-model h3 { margin: 0 0 12px; color: #fff; font-size: 15px; }
.proof-model p, .proof-model li { color: #b9c9d9; font-size: 12.5px; }
.proof-model ul { padding-left: 18px; }
.proof-model .model-node { margin: 10px 0; padding: 12px; border: 1px solid rgba(97,182,255,.25); border-radius: 8px; background: rgba(97,182,255,.055); }
.proof-model .model-node strong { display: block; color: #fff; font-size: 12px; }
.proof-model .model-node span { color: #9fb5ca; font-size: 11px; }
.proof-try { padding: 20px; }
.proof-try-card { padding: 17px; border: 1px solid rgba(255,255,255,.14); border-radius: 10px; background: rgba(255,255,255,.045); }
.proof-try-card strong { display: block; color: #fff; margin-bottom: 6px; }
.proof-try-card p { color: #b9c9d9; font-size: 12.5px; }
.proof-try-card a { color: #8fc8ff; font-weight: 700; }
.proof-image { padding: 18px; }
.proof-image img { border-radius: 9px; border: 1px solid rgba(255,255,255,.15); box-shadow: 0 18px 35px rgba(0,0,0,.24); }
.proof-foot { padding: 10px 15px; border-top: 1px solid rgba(255,255,255,.09); color: #8097ad; font-size: 10.5px; }

.home-hero { position: relative; display: grid; grid-template-columns: minmax(0, 1.22fr) minmax(300px, .78fr); align-items: center; gap: 52px; padding: 24px 0 58px; border-bottom: 1px solid var(--line); }
.home-hero h1 { font-size: clamp(50px, 6.5vw, 76px); margin-bottom: 18px; }
.home-hero .hero-lede { max-width: 650px; color: #425466; font-size: 20px; line-height: 1.55; }
.home-hero .page-actions { margin-bottom: 0; }
.hero-visual { position: relative; min-height: 320px; display: flex; align-items: center; justify-content: center; }
.hero-visual::before { content: ""; position: absolute; width: 340px; height: 340px; border-radius: 50%; background: radial-gradient(circle, rgba(22,119,255,.15), rgba(0,166,166,.05) 55%, transparent 70%); filter: blur(2px); }
.hero-visual img { position: relative; width: min(100%, 410px); filter: drop-shadow(0 24px 34px rgba(10,37,64,.16)); }
.home-section { padding: 52px 0 12px; }
.home-section + .home-section { border-top: 1px solid var(--line); margin-top: 40px; }
.section-head { display: flex; justify-content: space-between; gap: 36px; align-items: end; margin-bottom: 24px; }
.section-head h2 { margin: 0; font-size: 29px; letter-spacing: -.025em; }
.section-head p { max-width: 560px; margin: 0; color: var(--muted); }
.start-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 13px; }
.start-card { min-height: 198px; padding: 21px 19px; border: 1px solid var(--line); border-radius: 12px; color: var(--ink); background: #fff; box-shadow: var(--shadow-sm); transition: .17s ease; }
.start-card:hover { color: var(--ink); transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: #bcc9d6; }
.start-card .start-icon { width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; border-radius: 9px; color: var(--accent-dark); background: var(--accent-soft); font-size: 16px; font-weight: 800; }
.start-card:nth-child(2) .start-icon { color: #087d73; background: #e5f8f5; }
.start-card:nth-child(3) .start-icon { color: #805000; background: #fff3df; }
.start-card:nth-child(4) .start-icon { color: #6043b9; background: #f0ebff; }
.start-card h3 { margin: 16px 0 7px; font-size: 17px; }
.start-card p { margin: 0 0 15px; color: var(--muted); font-size: 13.5px; }
.start-card strong { color: var(--accent-dark); font-size: 12.5px; }
.capability-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 14px; }
.capability-card { padding: 21px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.capability-card h3 { margin: 0 0 10px; font-size: 17px; }
.capability-card p { min-height: 42px; color: var(--muted); font-size: 13.5px; }
.capability-links { display: flex; flex-direction: column; gap: 7px; margin-top: 13px; }
.capability-links a { display: flex; align-items: center; justify-content: space-between; padding-top: 7px; border-top: 1px solid var(--line); color: #33475b; font-size: 13px; }
.capability-links a::after { content: "›"; color: var(--muted-2); }
.capability-links a:hover { color: var(--accent); }
.feature-strip { display: grid; grid-template-columns: 1.05fr .95fr; gap: 28px; align-items: center; padding: 28px; border-radius: 15px; background: linear-gradient(135deg, #eef6ff, #f4fbfb); border: 1px solid #d8e8f7; overflow: hidden; }
.feature-strip h2 { margin: 0 0 10px; font-size: 28px; }
.feature-strip p { color: #526579; }
.feature-strip img { width: 100%; max-height: 310px; object-fit: contain; filter: drop-shadow(0 18px 24px rgba(10,37,64,.14)); }
.surface-row { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: 10px; }
.surface-card { min-height: 132px; padding: 17px; border: 1px solid var(--line); border-radius: 10px; color: var(--ink); background: #fff; }
.surface-card:hover { color: var(--ink); border-color: #b8c7d6; box-shadow: var(--shadow-sm); }
.surface-card strong { display: block; margin-bottom: 5px; font-size: 14px; }
.surface-card span { color: var(--muted); font-size: 12px; }

.on-this-page { margin: 26px 0 34px; padding: 17px 19px; border: 1px solid var(--line); border-radius: 10px; background: #fbfcfe; }
.on-this-page strong { display: block; margin-bottom: 8px; font-size: 12px; color: var(--ink); }
.on-this-page ul { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 4px 20px; margin: 0; padding: 0; list-style: none; }
.on-this-page li { margin: 0; }
.on-this-page a { color: var(--muted); font-size: 12.5px; }
.on-this-page a:hover { color: var(--accent); }

.next-prev { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; margin-top: 60px; padding-top: 25px; border-top: 1px solid var(--line); }
.next-prev a { min-height: 76px; padding: 13px 15px; border: 1px solid var(--line); border-radius: 9px; color: var(--ink); }
.next-prev a:hover { border-color: #b8c7d6; background: var(--surface-soft); }
.next-prev span { display: block; color: var(--muted-2); font-size: 10px; text-transform: uppercase; letter-spacing: .06em; }
.next-prev strong { display: block; margin-top: 4px; font-size: 13.5px; }
.next-prev .next { text-align: right; }
.page-footer { margin-top: 42px; color: var(--muted-2); font-size: 11px; }

.search-modal { position: fixed; inset: 0; z-index: 200; display: none; align-items: flex-start; justify-content: center; padding: 10vh 20px 20px; background: rgba(8,25,42,.55); backdrop-filter: blur(5px); }
.search-open .search-modal { display: flex; }
.search-dialog { width: min(680px,100%); max-height: 74vh; display: flex; flex-direction: column; overflow: hidden; border: 1px solid rgba(255,255,255,.25); border-radius: 13px; background: #fff; box-shadow: 0 30px 80px rgba(4,20,34,.3); }
.search-input-wrap { display: flex; align-items: center; gap: 10px; padding: 15px 17px; border-bottom: 1px solid var(--line); }
.search-input-wrap input { flex: 1; border: 0; outline: 0; color: var(--ink); font-size: 17px; }
.search-input-wrap kbd { color: var(--muted-2); border: 1px solid var(--line); border-radius: 5px; padding: 2px 7px; font-size: 11px; }
.search-results { overflow: auto; padding: 8px; }
.search-empty { padding: 32px; text-align: center; color: var(--muted); }
.search-result { display: block; padding: 11px 12px; border-radius: 8px; color: var(--ink); }
.search-result:hover, .search-result.selected { color: var(--ink); background: var(--surface-blue); }
.search-result strong { display: block; font-size: 14px; }
.search-result span { display: block; color: var(--muted); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.search-result small { color: var(--accent-dark); font-size: 10px; text-transform: uppercase; letter-spacing: .05em; }

.mobile-proof-toggle { display: none; }

@media (max-width: 1320px) {
  :root { --proof-w: 360px; --sidebar-w: 252px; }
  .article-wrap { padding-left: 44px; padding-right: 44px; }
  .search-button { min-width: 190px; }
}
@media (max-width: 1120px) {
  .docs-layout { grid-template-columns: var(--sidebar-w) minmax(0,1fr); }
  .proof-pane { position: fixed; z-index: 120; right: 0; top: var(--header-h); width: min(520px, 92vw); height: calc(100vh - var(--header-h)); transform: translateX(102%); transition: transform .2s ease; box-shadow: -20px 0 40px rgba(4,20,34,.18); }
  body.proof-open .proof-pane { transform: translateX(0); }
  .mobile-proof-toggle { position: fixed; z-index: 110; display: flex; right: 18px; bottom: 18px; align-items: center; gap: 8px; border: 0; border-radius: 999px; padding: 11px 15px; color: #fff; background: var(--code); box-shadow: var(--shadow-md); cursor: pointer; font-size: 12px; font-weight: 700; }
  .start-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .surface-row { grid-template-columns: repeat(3,minmax(0,1fr)); }
}
@media (max-width: 900px) {
  :root { --header-h: 58px; }
  .topbar { padding: 0 14px; gap: 10px; }
  .brand { min-width: 0; flex: 1; }
  .brand-copy span { display: none; }
  .topnav, .header-link { display: none; }
  .search-button { min-width: 0; width: 42px; justify-content: center; }
  .search-button .search-label, .search-button kbd { display: none; }
  .menu-toggle { display: block; }
  .docs-layout, .docs-layout.no-proof, .docs-layout.home-layout { display: block; }
  .sidebar { position: fixed; z-index: 150; top: var(--header-h); left: 0; width: min(320px,88vw); height: calc(100vh - var(--header-h)); transform: translateX(-102%); transition: transform .2s ease; box-shadow: 20px 0 45px rgba(8,25,42,.18); }
  .nav-open .sidebar { transform: translateX(0); }
  .sidebar-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
  .sidebar-head strong { font-size: 13px; }
  .nav-close { border: 0; background: transparent; color: var(--muted); font-size: 24px; cursor: pointer; }
  .article-wrap, .home-layout .article-wrap, .no-proof .article-wrap { width: 100%; padding: 34px 24px 80px; }
  .home-hero { grid-template-columns: 1fr; gap: 24px; }
  .hero-visual { min-height: 260px; }
  .home-hero h1 { font-size: 51px; }
  .capability-grid, .link-grid.three { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .feature-strip { grid-template-columns: 1fr; }
  .proof-pane { top: var(--header-h); height: calc(100vh - var(--header-h)); }
}
@media (max-width: 620px) {
  body { font-size: 14px; }
  .article-wrap, .home-layout .article-wrap, .no-proof .article-wrap { padding-left: 18px; padding-right: 18px; }
  h1 { font-size: 36px; }
  .home-hero h1 { font-size: 44px; }
  .home-hero .hero-lede, .page-description { font-size: 17px; }
  .start-grid, .capability-grid, .link-grid, .link-grid.three, .surface-row, .next-prev { grid-template-columns: 1fr; }
  .section-head { display: block; }
  .section-head h2 { margin-bottom: 9px; }
  .quickstart-row { grid-template-columns: 38px 1fr 20px; }
  .quickstart-meta { display: none; }
  .on-this-page ul { grid-template-columns: 1fr; }
  .doc-step { padding-left: 42px; }
  .doc-content table { display: block; overflow-x: auto; }
  .proof-pane { width: 100vw; }
}

@media print {
  .topbar, .sidebar, .proof-pane, .mobile-proof-toggle, .page-actions, .search-modal { display: none !important; }
  .site-shell { padding-top: 0; }
  .docs-layout, .docs-layout.no-proof, .docs-layout.home-layout { display: block; }
  .article-wrap { width: 100%; max-width: none; padding: 0; }
  a { color: inherit; }
}

/* v4 documentation navigation */
.topbar { gap: 18px; }
.topbar .brand { min-width: 192px; }
.topbar .topnav { gap: 1px; }
.topbar .topnav a { padding: 8px 7px; font-size: 12px; }
.topbar .search-button { min-width: 190px; }
.sidebar-main-v4 { margin: 0 0 18px; padding: 0 0 18px; border-bottom: 1px solid var(--line); }
.sidebar-main-v4 h2 { margin: 0 0 8px; padding: 0 14px; color: var(--muted-2); font-size: 10px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
.sidebar-main-v4 a { display: block; margin: 1px 8px; padding: 7px 10px; border-radius: 7px; color: var(--ink-2); font-size: 12px; font-weight: 600; }
.sidebar-main-v4 a:hover, .sidebar-main-v4 a[aria-current="page"] { color: var(--accent-dark); background: var(--surface-blue); }
@media (max-width: 1240px) {
  .topbar .brand { min-width: 155px; }
  .topbar .brand-copy span { display:none; }
  .topbar .search-button { min-width: 42px; width:42px; justify-content:center; }
  .topbar .search-button .search-label, .topbar .search-button kbd { display:none; }
}
