:root {
  --ink: #10273a;
  --ink-2: #294356;
  --muted: #5e7180;
  --paper: #f7f8f6;
  --surface: #ffffff;
  --surface-2: #edf2f1;
  --line: #d8e0df;
  --navy: #0c2f46;
  --navy-2: #164a61;
  --teal: #007f7a;
  --teal-2: #35a69e;
  --teal-pale: #dff1ee;
  --gold: #c59136;
  --red: #a9433e;
  --shadow: 0 24px 60px rgba(12, 47, 70, .12);
  --max: 1180px;
  color-scheme: light;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); line-height: 1.65; }
img { max-width: 100%; height: auto; }
a { color: var(--teal); text-decoration-thickness: .08em; text-underline-offset: .18em; }
a:hover { color: var(--navy); }
button, input { font: inherit; }
code, pre { font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; padding: 8px 14px; background: white; }
.skip:focus { left: 8px; }

.site-header {
  position: sticky; top: 0; z-index: 50;
  border-bottom: 1px solid rgba(216, 224, 223, .9);
  background: rgba(247, 248, 246, .92);
  backdrop-filter: blur(16px);
}
.nav-shell { max-width: var(--max); min-height: 76px; margin: auto; padding: 0 24px; display: flex; align-items: center; gap: 28px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; }
.brand img { width: 32px; height: 32px; }
.wordmark { font-size: 24px; font-weight: 720; line-height: 1; letter-spacing: -.055em; }
.site-nav { margin-left: auto; display: flex; align-items: center; gap: 25px; }
.site-nav a { color: var(--ink-2); font-size: 14px; font-weight: 630; text-decoration: none; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--teal); }
.nav-cta { padding: 9px 15px; border: 1px solid var(--navy); border-radius: 4px; color: var(--navy) !important; }
.nav-toggle { display: none; margin-left: auto; border: 0; background: transparent; color: var(--ink); padding: 9px; }

main { overflow: hidden; }
.shell { width: min(calc(100% - 48px), var(--max)); margin-inline: auto; }
.hero { position: relative; padding: 90px 0 74px; }
.hero::before { content: ""; position: absolute; inset: -160px -20% auto 48%; height: 550px; background: radial-gradient(circle, rgba(53,166,158,.16), transparent 68%); pointer-events: none; }
.hero-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1.04fr) minmax(400px, .96fr); gap: 70px; align-items: center; }
.kicker { margin: 0 0 18px; color: var(--teal); font-size: 13px; font-weight: 740; letter-spacing: .08em; text-transform: uppercase; }
h1, h2, h3 { font-weight: 690; line-height: 1.08; letter-spacing: -.035em; }
h1 { max-width: 850px; margin: 0 0 24px; font-size: clamp(48px, 6.2vw, 78px); }
h2 { margin: 0 0 18px; font-size: clamp(35px, 4vw, 52px); }
h3 { margin: 0 0 9px; font-size: 22px; letter-spacing: -.025em; }
.hero-copy { max-width: 720px; color: var(--ink-2); font-size: 20px; line-height: 1.65; }
.hero-actions { display: flex; gap: 13px; flex-wrap: wrap; margin-top: 34px; }
.button { display: inline-flex; align-items: center; gap: 10px; min-height: 46px; padding: 10px 18px; border: 1px solid var(--navy); border-radius: 4px; background: var(--navy); color: white; font-weight: 680; text-decoration: none; }
.button:hover { background: var(--navy-2); color: white; }
.button.secondary { background: transparent; color: var(--navy); }
.button.secondary:hover { border-color: var(--teal); color: var(--teal); }
.button .arrow { font-size: 19px; line-height: 1; }
.hero-note { margin-top: 24px; color: var(--muted); font-size: 13px; }

.system-map { position: relative; min-height: 450px; padding: 26px; border: 1px solid rgba(216,224,223,.95); border-radius: 8px; background: rgba(255,255,255,.86); box-shadow: var(--shadow); }
.system-map::after { content: ""; position: absolute; inset: 0; z-index: -1; transform: translate(16px,16px); border: 1px solid var(--teal-2); border-radius: 8px; opacity: .25; }
.map-label { margin-bottom: 22px; color: var(--muted); font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.map-sources, .map-targets { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.map-node { min-height: 66px; padding: 12px; border: 1px solid var(--line); border-radius: 5px; background: var(--surface); font-size: 12px; font-weight: 680; line-height: 1.35; }
.map-node span { display: block; margin-bottom: 5px; color: var(--teal); font-family: monospace; font-size: 11px; }
.map-flow { height: 37px; position: relative; }
.map-flow::before { content: ""; position: absolute; left: 50%; top: 7px; width: 1px; height: 23px; background: var(--teal-2); }
.map-flow::after { content: ""; position: absolute; left: calc(50% - 4px); bottom: 5px; width: 7px; height: 7px; transform: rotate(45deg); border-right: 1px solid var(--teal-2); border-bottom: 1px solid var(--teal-2); }
.map-core { padding: 20px; border: 1px solid var(--navy); border-radius: 5px; background: var(--navy); color: white; }
.map-core strong { display: block; margin-bottom: 10px; font-size: 20px; }
.map-core-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px; color: #dce9ec; font-size: 12px; }
.map-core-grid span { padding-top: 7px; border-top: 1px solid rgba(255,255,255,.16); }

.section { padding: 88px 0; }
.section.tight { padding: 62px 0; }
.section.dark { background: var(--navy); color: white; }
.section.tint { background: var(--surface-2); }
.section-head { display: grid; grid-template-columns: minmax(280px,.7fr) minmax(360px,1.3fr); gap: 70px; align-items: end; margin-bottom: 44px; }
.section-head p { margin: 0; color: var(--muted); font-size: 17px; }
.dark .section-head p, .dark .muted { color: #bdd0d7; }
.measure { max-width: 760px; }
.lede { color: var(--ink-2); font-size: 19px; }
.muted { color: var(--muted); }

.principles { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.principle { min-height: 230px; padding: 28px 26px 24px 0; }
.principle + .principle { padding-left: 26px; border-left: 1px solid var(--line); }
.principle-number { display: block; margin-bottom: 38px; color: var(--teal); font-family: monospace; font-size: 13px; }
.principle p { margin: 0; color: var(--muted); font-size: 15px; }

.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.card { min-height: 250px; padding: 28px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); }
.card p { color: var(--muted); }
.card .link { display: inline-flex; margin-top: 10px; font-weight: 680; text-decoration: none; }
.card-index { display: inline-grid; place-items: center; width: 32px; height: 32px; margin-bottom: 30px; border-radius: 50%; background: var(--teal-pale); color: var(--teal); font: 700 12px monospace; }
.dark .card { border-color: rgba(255,255,255,.16); background: rgba(255,255,255,.04); }
.dark .card p { color: #bfd0d5; }

.product-frame { padding: 10px; border: 1px solid var(--line); border-radius: 9px; background: #dae2e1; box-shadow: var(--shadow); }
.product-frame img { display: block; width: 100%; border-radius: 4px; }
.caption { display: flex; justify-content: space-between; gap: 24px; margin-top: 17px; color: var(--muted); font-size: 13px; }
.caption strong { color: var(--ink); }
.image-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }

.split { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 70px; align-items: center; }
.split.top { align-items: start; }
.rule { border-top: 1px solid var(--line); }
.feature-list { margin: 28px 0 0; padding: 0; list-style: none; }
.feature-list li { position: relative; padding: 17px 0 17px 28px; border-top: 1px solid var(--line); }
.feature-list li::before { content: ""; position: absolute; left: 1px; top: 26px; width: 8px; height: 8px; border-radius: 50%; background: var(--teal); }
.feature-list strong { display: block; color: var(--ink); }
.feature-list span { color: var(--muted); }

.page-hero { padding: 78px 0 62px; border-bottom: 1px solid var(--line); }
.page-hero h1 { max-width: 950px; font-size: clamp(44px, 5.5vw, 68px); }
.page-hero .hero-copy { max-width: 820px; }
.breadcrumbs { margin-bottom: 30px; color: var(--muted); font-size: 13px; }
.breadcrumbs a { color: inherit; text-decoration: none; }
.subnav { position: sticky; top: 77px; z-index: 30; overflow-x: auto; border-bottom: 1px solid var(--line); background: rgba(247,248,246,.94); backdrop-filter: blur(14px); white-space: nowrap; }
.subnav .shell { display: flex; gap: 27px; }
.subnav a { padding: 14px 0 12px; color: var(--ink-2); font-size: 13px; font-weight: 650; text-decoration: none; }
.subnav a:hover { color: var(--teal); }

.architecture-stack { display: grid; gap: 14px; }
.architecture-row { display: grid; grid-template-columns: 180px 1fr; gap: 18px; }
.architecture-label { padding: 18px; border-radius: 5px; background: var(--navy); color: white; font-size: 13px; font-weight: 700; }
.architecture-modules { display: grid; grid-template-columns: repeat(4,1fr); gap: 8px; }
.architecture-module { padding: 16px; border: 1px solid var(--line); border-radius: 5px; background: white; font-size: 13px; font-weight: 650; }
.architecture-module small { display: block; margin-top: 5px; color: var(--muted); font-weight: 500; line-height: 1.4; }
.architecture-row.highlight .architecture-label { background: var(--teal); }
.architecture-row.highlight .architecture-module { border-color: #8ac8c3; background: #f3fbf9; }

.data-flow { display: grid; grid-template-columns: 1fr 80px 1fr 80px 1fr; align-items: stretch; }
.flow-box { padding: 25px; border: 1px solid var(--line); border-radius: 6px; background: white; }
.flow-box b { display: block; margin-bottom: 9px; }
.flow-box p { margin: 0; color: var(--muted); font-size: 14px; }
.flow-arrow { align-self: center; height: 1px; background: var(--teal-2); position: relative; }
.flow-arrow::after { content: ""; position: absolute; right: 0; top: -4px; width: 8px; height: 8px; transform: rotate(-45deg); border-right: 1px solid var(--teal-2); border-bottom: 1px solid var(--teal-2); }

.matrix-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 6px; background: white; }
.matrix { width: 100%; border-collapse: collapse; min-width: 820px; }
.matrix th, .matrix td { padding: 17px 18px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.matrix th { background: #edf2f1; color: var(--ink); font-size: 12px; letter-spacing: .05em; text-transform: uppercase; }
.matrix td { color: var(--ink-2); font-size: 14px; }
.matrix tr:last-child td { border-bottom: 0; }
.status { display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; color: var(--ink); font-size: 12px; font-weight: 720; }
.status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--teal); }
.status.bounded::before { background: var(--gold); }
.status.deployment::before { background: var(--navy-2); }

.trust-story { display: grid; grid-template-columns: 1fr 58px 1.2fr 58px 1fr; align-items: stretch; margin-top: 34px; }
.trust-stage { min-height: 330px; padding: 25px; border: 1px solid var(--line); border-radius: 7px; background: white; }
.trust-stage-number { display: block; margin-bottom: 26px; color: var(--teal); font: 720 12px monospace; letter-spacing: .06em; }
.trust-stage h3 { font-size: 21px; }
.trust-stage > p { margin: 0 0 20px; color: var(--muted); font-size: 14px; }
.trust-connector { align-self: center; height: 1px; position: relative; background: var(--teal-2); }
.trust-connector::after { content: ""; position: absolute; right: 0; top: -4px; width: 8px; height: 8px; transform: rotate(-45deg); border-right: 1px solid var(--teal-2); border-bottom: 1px solid var(--teal-2); }
.evidence-chip { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 8px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 4px; color: var(--ink-2); font-size: 12px; font-weight: 650; }
.evidence-chip span { color: var(--teal); font: 700 11px monospace; }
.range-card { margin-top: 33px; }
.range-track { height: 10px; position: relative; margin: 48px 4px 14px; border-radius: 10px; background: linear-gradient(90deg,#dbe4e3 0 54%,#acd7d2 54% 76%,#d8ece9 76% 88%,#edf2f1 88%); }
.range-marker { position: absolute; top: -31px; transform: translateX(-50%); color: var(--muted); font: 700 11px monospace; }
.range-marker::after { content: ""; position: absolute; left: 50%; top: 22px; height: 22px; width: 1px; background: currentColor; }
.range-marker.low { left: 54%; }
.range-marker.effective { left: 76%; color: var(--teal); }
.range-marker.observed { left: 88%; }
.range-labels { display: flex; justify-content: space-between; color: var(--muted); font-size: 11px; }
.range-explanation { margin-top: 30px; padding: 13px; border-left: 3px solid var(--teal); background: var(--teal-pale); color: var(--ink-2); font-size: 12px; }
.score-visual { display: grid; place-items: center; width: 136px; height: 136px; margin: 17px auto 22px; border-radius: 50%; background: conic-gradient(var(--teal) 0 74%,#dfe7e6 74% 100%); }
.score-center { display: grid; place-items: center; width: 105px; height: 105px; border-radius: 50%; background: white; text-align: center; }
.score-center strong { display: block; font-size: 36px; line-height: 1; letter-spacing: -.05em; }
.score-center span { color: var(--muted); font-size: 10px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; }
.mini-bars { display: grid; gap: 8px; }
.mini-bar { display: grid; grid-template-columns: 76px 1fr 24px; gap: 8px; align-items: center; color: var(--muted); font-size: 10px; }
.mini-bar-track { height: 5px; overflow: hidden; border-radius: 6px; background: #e1e8e7; }
.mini-bar-track i { display: block; height: 100%; border-radius: inherit; background: var(--teal); }
.trust-policy-gates { display: grid; grid-template-columns: repeat(4,1fr); gap: 1px; margin-top: 14px; overflow: hidden; border: 1px solid var(--line); border-radius: 6px; background: var(--line); }
.trust-gate { min-height: 98px; padding: 17px; background: white; }
.trust-gate span { display: block; margin-bottom: 7px; color: var(--teal); font: 700 11px monospace; }
.trust-gate strong { display: block; font-size: 13px; }
.trust-gate small { color: var(--muted); }
.dimension-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1px; overflow: hidden; border: 1px solid var(--line); border-radius: 6px; background: var(--line); }
.dimension { min-height: 100px; padding: 18px; background: white; }
.dimension span { display: block; margin-bottom: 7px; color: var(--teal); font: 700 12px monospace; }
.dimension strong { font-size: 14px; }

.verdicts { display: grid; grid-template-columns: repeat(4,1fr); gap: 10px; }
.verdict { padding: 21px; border-top: 4px solid var(--teal); background: white; }
.verdict:nth-child(2) { border-color: var(--gold); }
.verdict:nth-child(3) { border-color: var(--red); }
.verdict:nth-child(4) { border-color: var(--muted); }
.verdict b { display: block; margin-bottom: 8px; font: 730 13px monospace; }
.verdict p { margin: 0; color: var(--muted); font-size: 13px; }

.steps { counter-reset: step; }
.step { display: grid; grid-template-columns: 64px 1fr; gap: 20px; padding: 29px 0; border-top: 1px solid var(--line); }
.step::before { counter-increment: step; content: counter(step, decimal-leading-zero); color: var(--teal); font: 720 14px monospace; }
.step h3 { font-size: 20px; }
.step p { max-width: 760px; margin: 6px 0 0; color: var(--muted); }

.docs-layout { display: grid; grid-template-columns: 250px minmax(0,1fr); gap: 76px; align-items: start; }
.docs-nav { position: sticky; top: 118px; padding: 20px; border: 1px solid var(--line); border-radius: 6px; background: rgba(255,255,255,.72); }
.docs-nav-title { display: block; margin-bottom: 12px; color: var(--ink); font-size: 12px; font-weight: 760; letter-spacing: .07em; text-transform: uppercase; }
.docs-nav a { display: block; padding: 7px 0; color: var(--muted); font-size: 13px; text-decoration: none; }
.docs-nav a:hover { color: var(--teal); }
.docs-content { counter-reset: guide-chapter; }
.docs-content h2 { counter-increment: guide-chapter; margin: 84px 0 24px; padding-top: 52px; border-top: 1px solid var(--line); font-size: 38px; }
.docs-content h2::before { content: "Chapter " counter(guide-chapter, decimal-leading-zero); display: block; margin-bottom: 10px; color: var(--teal); font: 720 12px monospace; letter-spacing: .08em; text-transform: uppercase; }
.docs-content h2:first-of-type { margin-top: 0; padding-top: 0; border-top: 0; }
.docs-content h3 { margin: 38px 0 12px; font-size: 21px; }
.docs-content p, .docs-content li { max-width: 800px; color: var(--ink-2); }
.docs-content ul, .docs-content ol { max-width: 810px; padding-left: 24px; }
.docs-content li { margin-bottom: 9px; padding-left: 5px; }
.docs-content pre { overflow-x: auto; margin-top: 0; padding: 24px; border-radius: 0 0 6px 6px; background: #0e293b; color: #dbedf0; font-size: 13px; line-height: 1.65; }
.guide-overview { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; margin: 0 0 46px; }
.guide-path { min-height: 150px; padding: 20px; border: 1px solid var(--line); border-radius: 5px; background: white; }
.guide-path span { display: block; margin-bottom: 24px; color: var(--teal); font: 700 11px monospace; }
.guide-path strong { display: block; margin-bottom: 6px; }
.guide-path p { margin: 0; color: var(--muted); font-size: 12px; }
.code-label { margin-top: 25px; padding: 9px 13px; border-radius: 6px 6px 0 0; background: #183b50; color: #bcd5dc; font: 700 11px monospace; letter-spacing: .04em; }
.guide-note { display: flex; gap: 16px; margin: 26px 0; padding: 20px 22px; border: 1px solid #b8d9d5; border-radius: 6px; background: #f1faf8; }
.guide-note-mark { flex: 0 0 auto; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--teal); color: white; font: 700 12px monospace; }
.guide-note p { margin: 0; color: var(--ink-2); font-size: 14px; }
.callout { margin: 27px 0; padding: 20px 23px; border-left: 4px solid var(--teal); background: var(--teal-pale); color: var(--ink-2); }
.callout.warning { border-color: var(--gold); background: #faf2e3; }

/* Migration walkthrough */
.walkthrough-page-hero { padding-block: 68px; }
.walkthrough-hero-grid { display: grid; grid-template-columns: minmax(0,1.25fr) minmax(340px,.75fr); gap: 72px; align-items: center; }
.walkthrough-hero-grid h1 { max-width: 900px; font-size: clamp(48px,5.4vw,70px); }
.walkthrough-facts { overflow: hidden; border: 1px solid #17485f; border-radius: 9px; background: var(--navy); color: white; box-shadow: var(--shadow); }
.walkthrough-facts-head { display: flex; justify-content: space-between; align-items: center; padding: 18px 21px; border-bottom: 1px solid rgba(255,255,255,.14); color: #b9d0d7; font-size: 11px; font-weight: 720; letter-spacing: .06em; text-transform: uppercase; }
.walkthrough-facts-head strong { color: #73d3ca; font: 740 12px monospace; }
.walkthrough-facts dl { display: grid; grid-template-columns: repeat(2,1fr); margin: 0; }
.walkthrough-facts dl div { padding: 22px; border-bottom: 1px solid rgba(255,255,255,.13); }
.walkthrough-facts dl div:nth-child(odd) { border-right: 1px solid rgba(255,255,255,.13); }
.walkthrough-facts dt { font-size: 29px; font-weight: 700; line-height: 1.1; letter-spacing: -.04em; }
.walkthrough-facts dd { margin: 5px 0 0; color: #a9c2ca; font-size: 11px; }
.walkthrough-facts > p { margin: 0; padding: 17px 21px; color: #9eb8c0; font-size: 11px; line-height: 1.55; }

.walkthrough-video-section { background: white; }
.walkthrough-video-frame { margin: 0; padding: 10px; border: 1px solid #b9c9c7; border-radius: 10px; background: #dbe3e2; box-shadow: 0 30px 70px rgba(12,47,70,.14); }
.walkthrough-video-frame video { display: block; width: 100%; aspect-ratio: 16 / 9; border-radius: 5px; background: #071f2e; }
.walkthrough-video-frame figcaption { display: flex; justify-content: space-between; gap: 24px; padding: 14px 7px 5px; color: var(--muted); font-size: 12px; }
.walkthrough-video-frame figcaption strong { color: var(--ink); }

.migration-method { display: grid; grid-template-columns: repeat(3,1fr); gap: 1px; overflow: hidden; border: 1px solid var(--line); border-radius: 8px; background: var(--line); }
.migration-method article { min-height: 265px; padding: 27px; background: white; }
.migration-method article > span { display: inline-grid; place-items: center; width: 31px; height: 31px; margin-bottom: 31px; border-radius: 50%; background: var(--teal-pale); color: var(--teal); font: 740 11px monospace; }
.migration-method h3 { font-size: 20px; }
.migration-method p { margin-bottom: 0; color: var(--muted); font-size: 13px; }

.walkthrough-chapters { display: grid; grid-template-columns: repeat(4,1fr); gap: 12px; }
.walkthrough-chapters article { min-height: 215px; padding: 23px; border: 1px solid var(--line); border-radius: 7px; background: white; }
.walkthrough-chapters article > span { display: block; margin-bottom: 28px; color: var(--teal); font: 740 11px monospace; }
.walkthrough-chapters h3 { font-size: 19px; }
.walkthrough-chapters p { margin: 0; color: var(--muted); font-size: 12.5px; }

.walkthrough-route-model { display: grid; grid-template-columns: 1fr 32px 1fr 32px 1fr; align-items: center; }
.walkthrough-route-model > div { min-height: 155px; padding: 22px; border: 1px solid rgba(255,255,255,.16); border-radius: 6px; background: rgba(255,255,255,.05); }
.walkthrough-route-model > div span, .walkthrough-route-model > div strong, .walkthrough-route-model > div small { display: block; }
.walkthrough-route-model > div span { margin-bottom: 22px; color: #75d2ca; font: 720 10px monospace; letter-spacing: .04em; text-transform: uppercase; }
.walkthrough-route-model > div strong { color: white; font-size: 14px; }
.walkthrough-route-model > div small { margin-top: 7px; color: #a9c2ca; line-height: 1.45; }
.walkthrough-route-model > i { color: #64c8c0; font-style: normal; text-align: center; }

.quote { padding-left: 26px; border-left: 3px solid var(--teal); color: var(--ink-2); font-size: 23px; line-height: 1.5; }
.metrics { display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; }
.metric { padding: 28px; border: 1px solid var(--line); background: white; }
.metric strong { display: block; margin-bottom: 8px; color: var(--navy); font-size: 26px; }
.metric span { color: var(--muted); font-size: 14px; }

.api-stats { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); max-width: 850px; margin-top: 36px; border: 1px solid var(--line); border-radius: 7px; background: white; }
.api-stats div { min-height: 108px; padding: 22px 24px; }
.api-stats div + div { border-left: 1px solid var(--line); }
.api-stats strong, .api-stats span { display: block; }
.api-stats strong { color: var(--navy); font-size: 30px; letter-spacing: -.04em; }
.api-stats span { margin-top: 5px; color: var(--muted); font-size: 12px; line-height: 1.45; }
.api-principles { display: grid; grid-template-columns: repeat(4,1fr); gap: 1px; margin-top: 24px; overflow: hidden; border: 1px solid var(--line); border-radius: 6px; background: var(--line); }
.api-principles div { min-height: 125px; padding: 20px; background: white; }
.api-principles strong, .api-principles span { display: block; }
.api-principles strong { margin-bottom: 8px; font-size: 14px; }
.api-principles span { color: var(--muted); font-size: 12px; line-height: 1.5; }
.api-example-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 22px; }
.api-example-grid article { min-width: 0; }
.api-example-grid pre { min-height: 245px; overflow-x: auto; margin: 0; padding: 22px; border-radius: 0 0 6px 6px; background: #0e293b; color: #dbedf0; font-size: 12px; line-height: 1.65; }
.api-service-table td:first-child small { display: block; margin-top: 4px; color: var(--muted); font: 11px monospace; }
.api-toolbar { display: grid; grid-template-columns: minmax(250px,2fr) minmax(150px,.7fr) minmax(220px,1fr) minmax(130px,.5fr); gap: 12px; align-items: end; padding: 20px; border: 1px solid var(--line); border-radius: 7px; background: var(--surface-2); }
.api-toolbar label span, .api-result-total span { display: block; margin-bottom: 7px; color: var(--muted); font-size: 11px; font-weight: 720; letter-spacing: .05em; text-transform: uppercase; }
.api-toolbar input, .api-toolbar select { width: 100%; height: 44px; padding: 0 12px; border: 1px solid #b9c7c8; border-radius: 4px; background: white; color: var(--ink); font: inherit; font-size: 14px; }
.api-toolbar input:focus, .api-toolbar select:focus { outline: 3px solid rgba(32,132,125,.18); border-color: var(--teal); }
.api-result-total { min-height: 44px; padding: 3px 0 0 10px; border-left: 1px solid var(--line); }
.api-result-total strong { display: block; color: var(--navy); font-size: 24px; line-height: 1; }
.api-result-total span { margin: 5px 0 0; }
.api-toolbar-actions { display: flex; align-items: center; gap: 10px; margin: 14px 0 22px; color: var(--muted); font-size: 11px; }
.api-toolbar-actions button { padding: 7px 11px; border: 1px solid var(--line); border-radius: 4px; background: white; color: var(--navy); font: inherit; font-weight: 680; cursor: pointer; }
.api-toolbar-actions button:hover { border-color: var(--teal); color: var(--teal); }
.api-toolbar-actions span { margin-left: auto; }
.api-route-group { margin: 10px 0; border: 1px solid var(--line); border-radius: 6px; background: white; }
.api-route-group[hidden], .api-route-row[hidden] { display: none; }
.api-route-group summary { display: flex; justify-content: space-between; gap: 30px; align-items: center; padding: 20px 22px; cursor: pointer; }
.api-route-group summary::marker { color: var(--teal); }
.api-route-group summary span { min-width: 0; }
.api-route-group summary strong, .api-route-group summary small { display: block; }
.api-route-group summary strong { color: var(--navy); font-size: 16px; }
.api-route-group summary small { margin-top: 4px; color: var(--muted); font-size: 12px; font-weight: 450; }
.api-route-group summary b { flex: 0 0 auto; color: var(--teal); font: 700 12px monospace; }
.api-table-wrap { overflow: auto; max-height: 650px; border-top: 1px solid var(--line); }
.api-table { width: 100%; min-width: 1050px; border-collapse: collapse; }
.api-table th, .api-table td { padding: 12px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.api-table th { position: sticky; top: 0; z-index: 1; background: #edf2f1; color: var(--ink); font-size: 10px; letter-spacing: .05em; text-transform: uppercase; }
.api-table td { color: var(--ink-2); font-size: 12px; }
.api-table td:nth-child(2) { width: 38%; }
.api-table code { white-space: normal; overflow-wrap: anywhere; font-size: 11px; }
.api-method { display: inline-flex; min-width: 54px; justify-content: center; padding: 4px 6px; border-radius: 3px; background: #e5edec; color: var(--navy); font: 740 10px monospace; }
.api-method.get { background: #e0f2ef; color: #0c6f67; }
.api-method.post { background: #e5edf5; color: #245b82; }
.api-method.put, .api-method.patch { background: #f6eddd; color: #865c16; }
.api-method.delete { background: #f6e6e3; color: #9b3d30; }

/* Source-authored API engineering guide */
.api-doc-page { background: #f4f6f5; }
.api-doc-page main { overflow: visible; }
.api-doc-shell { display: grid; grid-template-columns: 292px minmax(0,900px) 210px; gap: 44px; width: min(calc(100% - 40px),1540px); margin: 0 auto; align-items: start; }
.api-doc-sidebar { position: sticky; top: 92px; height: calc(100vh - 110px); overflow-y: auto; padding: 28px 22px 35px 4px; border-right: 1px solid var(--line); scrollbar-width: thin; }
.api-doc-nav-head { display: flex; justify-content: space-between; align-items: start; margin: 0 0 22px; }
.api-doc-nav-head > a { color: var(--ink); text-decoration: none; }
.api-doc-nav-head span, .api-doc-nav-head strong { display: block; }
.api-doc-nav-head span { color: var(--teal); font: 740 11px monospace; letter-spacing: .08em; text-transform: uppercase; }
.api-doc-nav-head strong { margin-top: 3px; font-size: 18px; }
.api-doc-nav-close { display: none; border: 0; background: transparent; color: var(--muted); font-size: 12px; }
.api-doc-search { display: block; margin-bottom: 22px; }
.api-doc-search span { display: block; margin-bottom: 6px; color: var(--muted); font-size: 10px; font-weight: 760; letter-spacing: .07em; text-transform: uppercase; }
.api-doc-search input { width: 100%; height: 40px; padding: 0 11px; border: 1px solid #bcc9c8; border-radius: 4px; background: white; color: var(--ink); font-size: 12px; }
.api-doc-search input:focus { outline: 3px solid rgba(0,127,122,.14); border-color: var(--teal); }
.api-doc-nav-group { border-top: 1px solid var(--line); }
.api-doc-nav-group:last-child { border-bottom: 1px solid var(--line); }
.api-doc-nav-group[hidden], .api-doc-nav-group a[hidden] { display: none; }
.api-doc-nav-group summary { display: flex; justify-content: space-between; gap: 12px; padding: 12px 2px; color: var(--ink); cursor: pointer; font-size: 12px; font-weight: 730; list-style: none; }
.api-doc-nav-group summary::-webkit-details-marker { display: none; }
.api-doc-nav-group summary::before { content: "+"; width: 14px; color: var(--teal); font: 700 13px monospace; }
.api-doc-nav-group[open] summary::before { content: "−"; }
.api-doc-nav-group summary span { margin-left: auto; color: var(--muted); font: 650 10px monospace; }
.api-doc-nav-group > div { padding: 0 0 13px 17px; }
.api-doc-nav-group a { display: block; padding: 5px 8px; border-left: 2px solid transparent; color: var(--muted); font-size: 11px; line-height: 1.35; text-decoration: none; }
.api-doc-nav-group a:hover { color: var(--teal); }
.api-doc-nav-group a[aria-current="page"] { border-left-color: var(--teal); background: #e8f3f1; color: var(--navy); font-weight: 720; }
.api-doc-nav-status { padding-top: 20px; }
.api-doc-nav-status .status { display: flex; }
.api-doc-nav-status small { display: block; margin-top: 6px; color: var(--muted); font-size: 10px; }
.api-doc-main { min-width: 0; padding: 66px 0 92px; }
.api-doc-article { min-height: 70vh; }
.api-doc-article > .breadcrumbs { margin-bottom: 24px; }
.api-doc-article > h1 { max-width: 820px; margin-bottom: 20px; font-size: clamp(40px,4.7vw,62px); }
.api-doc-meta { display: flex; flex-wrap: wrap; margin: 25px 0 50px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.api-doc-meta span { min-width: 140px; padding: 13px 25px 13px 0; color: var(--ink-2); font-size: 11px; }
.api-doc-meta b { display: block; margin-bottom: 2px; color: var(--muted); font-size: 9px; letter-spacing: .07em; text-transform: uppercase; }
.api-doc-body { color: var(--ink-2); font-size: 16px; }
.api-doc-body > .paragraph:first-child { color: var(--ink); font-size: 19px; line-height: 1.7; }
.api-doc-body .sect1 { margin-top: 64px; }
.api-doc-body .sect1:first-child { margin-top: 0; }
.api-doc-body .sect1 > h2 { margin: 0 0 25px; padding-top: 31px; border-top: 1px solid var(--line); font-size: 35px; }
.api-doc-body .sect2 { margin-top: 42px; }
.api-doc-body .sect2 > h3 { margin-bottom: 16px; font-size: 23px; }
.api-doc-body .sect3 > h4 { margin: 30px 0 10px; color: var(--navy); font-size: 17px; }
.api-doc-body p { max-width: 800px; }
.api-doc-body a { overflow-wrap: anywhere; }
.api-doc-body code { padding: 2px 5px; border-radius: 3px; background: #e8eeed; color: #0b5960; font-size: .88em; overflow-wrap: anywhere; }
.api-doc-body .listingblock, .api-doc-body .literalblock { margin: 27px 0; }
.api-doc-body .listingblock > .title, .api-doc-body .literalblock > .title, .api-doc-body table > caption { padding: 9px 13px; border-radius: 5px 5px 0 0; background: #173c51; color: #c9dce1; font: 700 10px monospace; letter-spacing: .04em; text-align: left; }
.api-doc-body pre { max-width: 100%; overflow: auto; margin: 0; padding: 22px 24px; border-radius: 5px; background: #0d293a; color: #dcedf0; font-size: 12px; line-height: 1.62; tab-size: 2; }
.api-doc-body .listingblock > .title + .content pre, .api-doc-body .literalblock > .title + .content pre { border-radius: 0 0 5px 5px; }
.api-doc-body pre code { padding: 0; background: transparent; color: inherit; font-size: inherit; overflow-wrap: normal; }
.api-copy-button { float: right; position: relative; z-index: 1; margin: 8px 8px -42px 0; padding: 5px 9px; border: 1px solid rgba(255,255,255,.25); border-radius: 3px; background: rgba(255,255,255,.08); color: #dcedf0; font-size: 10px; cursor: pointer; }
.api-copy-button:hover { background: rgba(255,255,255,.16); color: white; }
.api-doc-body table.tableblock { width: 100%; margin: 28px 0; border: 1px solid var(--line); border-collapse: collapse; background: white; font-size: 13px; }
.api-doc-body table.tableblock th, .api-doc-body table.tableblock td { padding: 13px 15px; border: 1px solid var(--line); text-align: left; vertical-align: top; }
.api-doc-body table.tableblock th { background: #e8eeed; color: var(--navy); font-size: 10px; letter-spacing: .05em; text-transform: uppercase; }
.api-doc-body table.tableblock p { margin: 0; }
.api-doc-body .tableblock .literalblock { margin: 10px 0; }
.api-doc-body .ulist, .api-doc-body .olist { max-width: 800px; }
.api-doc-body .ulist ul, .api-doc-body .olist ol { padding-left: 25px; }
.api-doc-body li { margin: 7px 0; }
.api-doc-body .dlist dt { margin-top: 19px; color: var(--navy); font-weight: 720; }
.api-doc-body .dlist dd { margin: 5px 0 0 20px; }
.api-doc-body .admonitionblock { margin: 28px 0; border-left: 4px solid var(--teal); background: #eaf5f3; }
.api-doc-body .admonitionblock > table { width: 100%; border-collapse: collapse; }
.api-doc-body .admonitionblock td { padding: 18px; vertical-align: top; }
.api-doc-body .admonitionblock td.icon { width: 90px; color: var(--teal); font-size: 11px; font-weight: 780; letter-spacing: .05em; text-transform: uppercase; }
.api-doc-body .admonitionblock td.content { color: var(--ink-2); }
.api-doc-body .admonitionblock td.content > :first-child { margin-top: 0; }
.api-doc-body .admonitionblock td.content > :last-child { margin-bottom: 0; }
.api-doc-body .exampleblock > .content, .api-doc-body .sidebarblock > .content { margin: 25px 0; padding: 20px 22px; border: 1px solid var(--line); border-radius: 5px; background: white; }
.api-doc-body .quoteblock { margin: 28px 0; padding: 8px 0 8px 25px; border-left: 3px solid var(--teal); color: var(--ink); font-size: 18px; }
.api-doc-body .paragraph > .title, .api-doc-body .ulist > .title, .api-doc-body .olist > .title { margin: 24px 0 7px; color: var(--navy); font-weight: 720; }
.api-doc-body .anchor { margin-left: -18px; padding-right: 4px; color: #91aaa8; text-decoration: none; opacity: 0; }
.api-doc-body h2:hover .anchor, .api-doc-body h3:hover .anchor { opacity: 1; }
.api-source-provenance { margin-top: 64px; padding: 15px 18px; border: 1px solid var(--line); border-radius: 5px; background: #eef2f1; }
.api-source-provenance summary { cursor: pointer; color: var(--navy); font-size: 12px; font-weight: 720; }
.api-source-provenance code { display: block; margin-top: 11px; color: var(--muted); font-size: 11px; overflow-wrap: anywhere; }
.api-doc-pager { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; margin-top: 50px; padding-top: 26px; border-top: 1px solid var(--line); }
.api-doc-pager a { min-height: 100px; padding: 18px; border: 1px solid var(--line); border-radius: 5px; background: white; text-decoration: none; }
.api-doc-pager a:last-child { text-align: right; }
.api-doc-pager span, .api-doc-pager strong { display: block; }
.api-doc-pager span { color: var(--muted); font-size: 10px; letter-spacing: .06em; text-transform: uppercase; }
.api-doc-pager strong { margin-top: 6px; color: var(--navy); font-size: 13px; line-height: 1.4; }
.api-page-toc { position: sticky; top: 105px; max-height: calc(100vh - 130px); overflow-y: auto; padding-top: 70px; }
.api-page-toc > strong { display: block; margin-bottom: 13px; color: var(--ink); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; }
.api-page-toc a { display: block; padding: 5px 0 5px 10px; border-left: 1px solid var(--line); color: var(--muted); font-size: 10px; line-height: 1.35; text-decoration: none; }
.api-page-toc a.level-3 { padding-left: 20px; }
.api-page-toc a:hover { border-left-color: var(--teal); color: var(--teal); }
.api-doc-mobilebar { display: none; }

.api-guide-intro { padding: 5px 0 70px; }
.api-guide-intro h1 { max-width: 850px; font-size: clamp(48px,6vw,76px); }
.api-guide-intro .hero-copy { max-width: 800px; }
.api-guide-metrics { display: grid; grid-template-columns: repeat(3,1fr); margin-top: 38px; border: 1px solid var(--line); border-radius: 6px; background: white; }
.api-guide-metrics div { padding: 22px; }
.api-guide-metrics div + div { border-left: 1px solid var(--line); }
.api-guide-metrics strong, .api-guide-metrics span { display: block; }
.api-guide-metrics strong { color: var(--navy); font-size: 29px; }
.api-guide-metrics span { color: var(--muted); font-size: 11px; }
.api-start-paths { display: grid; grid-template-columns: repeat(2,1fr); gap: 10px; margin-top: 25px; }
.api-start-paths a { display: grid; grid-template-columns: 38px 1fr; padding: 19px; border: 1px solid var(--line); border-radius: 5px; background: white; color: var(--navy); text-decoration: none; }
.api-start-paths a:hover { border-color: var(--teal); }
.api-start-paths span { grid-row: 1 / 3; color: var(--teal); font: 720 11px monospace; }
.api-start-paths strong, .api-start-paths small { display: block; }
.api-start-paths small { margin-top: 3px; color: var(--muted); }
.api-guide-directory { padding: 70px 0; border-top: 1px solid var(--line); }
.api-directory-heading { max-width: 720px; margin-bottom: 35px; }
.api-directory-heading h2 { font-size: 41px; }
.api-category-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 13px; }
.api-category-grid article { min-height: 340px; padding: 25px; border: 1px solid var(--line); border-radius: 6px; background: white; }
.api-category-grid article > span { color: var(--teal); font: 720 10px monospace; letter-spacing: .05em; text-transform: uppercase; }
.api-category-grid h3 { margin-top: 20px; }
.api-category-grid p { min-height: 66px; color: var(--muted); font-size: 13px; }
.api-category-grid ul { margin: 18px 0; padding: 15px 0 0; border-top: 1px solid var(--line); list-style: none; }
.api-category-grid li { margin: 5px 0; }
.api-category-grid li a { color: var(--ink-2); font-size: 11px; text-decoration: none; }
.api-category-grid li a:hover { color: var(--teal); }
.api-category-more { font-size: 12px; font-weight: 720; text-decoration: none; }
.api-overview-contract { padding: 70px 0 0; border-top: 1px solid var(--line); color: var(--ink-2); }
.api-overview-contract > .paragraph { font-size: 18px; }
.api-overview-contract table { width: 100%; border-collapse: collapse; background: white; }
.api-overview-contract th, .api-overview-contract td { padding: 14px; border: 1px solid var(--line); text-align: left; font-size: 12px; }
.api-overview-contract th { background: #e8eeed; }

/* Developer portal composition */
.api-doc-page { background: #f7f9f8; }
.api-doc-page .site-header { background: rgba(255,255,255,.94); }
.api-doc-shell { grid-template-columns: 286px minmax(0,920px) 190px; gap: 48px; width: min(calc(100% - 48px),1510px); }
.api-doc-shell-overview { grid-template-columns: 260px minmax(0,1120px); gap: 50px; width: min(calc(100% - 48px),1430px); }
.api-doc-sidebar { top: 88px; height: calc(100vh - 104px); padding: 32px 22px 34px 0; }
.api-doc-nav-head { margin-bottom: 25px; }
.api-doc-nav-head span { font-size: 10px; letter-spacing: .12em; }
.api-doc-nav-head strong { margin-top: 5px; font-size: 19px; letter-spacing: -.025em; }
.api-doc-search { margin-bottom: 25px; }
.api-doc-search input { height: 43px; border-color: #c9d3d1; border-radius: 6px; font-size: 13px; }
.api-doc-nav-group summary { padding: 14px 2px; font-size: 12.5px; }
.api-doc-nav-group a { padding: 6px 9px; font-size: 12px; line-height: 1.4; }
.api-doc-main { padding: 56px 0 104px; }
.api-doc-article > h1 { max-width: 850px; margin-bottom: 24px; font-size: clamp(42px,4vw,56px); }
.api-doc-meta { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); margin: 30px 0 54px; overflow: hidden; border: 1px solid var(--line); border-radius: 7px; background: white; }
.api-doc-meta span { min-width: 0; padding: 15px 17px; }
.api-doc-meta span + span { border-left: 1px solid var(--line); }
.api-doc-body { font-size: 16.5px; line-height: 1.72; }
.api-doc-body .sect1 { margin-top: 72px; }
.api-doc-body .sect1 > h2 { font-size: 34px; }
.api-page-toc { padding-top: 64px; }
.api-page-toc > strong { font-size: 11px; }
.api-page-toc a { padding-block: 6px; font-size: 11px; }

.api-guide-intro { overflow: hidden; padding: 0; border: 1px solid #173f54; border-radius: 12px; background: var(--navy); color: white; box-shadow: 0 28px 70px rgba(12,47,70,.17); }
.api-guide-hero { display: grid; grid-template-columns: minmax(0,1.04fr) minmax(390px,.96fr); gap: 54px; align-items: center; padding: 58px 58px 48px; }
.api-guide-hero-copy .kicker { color: #76d1ca; }
.api-guide-intro h1 { max-width: 580px; margin-bottom: 22px; color: white; font-size: clamp(54px,5.2vw,72px); }
.api-guide-intro .hero-copy { max-width: 610px; margin: 0; color: #c7d9de; font-size: 18px; line-height: 1.65; }
.api-guide-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 23px; margin-top: 31px; }
.api-guide-actions a { color: #d8e9ec; font-size: 13px; font-weight: 700; text-decoration: none; }
.api-guide-actions a:hover { color: white; }
.api-guide-actions .api-guide-primary { display: inline-flex; align-items: center; gap: 14px; min-height: 46px; padding: 10px 17px; border: 1px solid #70cfc8; border-radius: 5px; background: #ecfaf8; color: #075d5a; }
.api-guide-actions .api-guide-primary:hover { background: white; color: var(--navy); }
.api-guide-actions .api-guide-primary span { font-size: 18px; }
.api-guide-sample { overflow: hidden; border: 1px solid rgba(169,207,215,.24); border-radius: 8px; background: #071f2e; box-shadow: 0 20px 50px rgba(0,0,0,.2); }
.api-guide-sample-head { display: flex; justify-content: space-between; padding: 13px 17px; border-bottom: 1px solid rgba(169,207,215,.17); color: #a9c6cd; font: 700 10px/1.4 monospace; letter-spacing: .05em; text-transform: uppercase; }
.api-guide-sample-head strong { display: flex; align-items: center; gap: 7px; color: #8de0c7; }
.api-guide-sample-head i { width: 7px; height: 7px; border-radius: 50%; background: #59d4aa; box-shadow: 0 0 0 4px rgba(89,212,170,.1); }
.api-guide-sample pre { min-height: 330px; margin: 0; padding: 23px 20px; overflow: auto; color: #e4eff1; font-size: 11.5px; line-height: 1.72; tab-size: 2; }
.api-guide-sample code { font: inherit; }
.api-code-method { color: #75d8cf; font-weight: 800; }
.api-code-muted { color: #7697a1; }
.api-code-key { color: #a9d9e0; }
.api-code-value { color: #e8d29f; }
.api-guide-metrics { grid-template-columns: repeat(3,1fr); margin: 0; border: 0; border-top: 1px solid rgba(190,215,220,.18); border-radius: 0; background: rgba(255,255,255,.035); }
.api-guide-metrics div { min-height: 95px; padding: 20px 32px; }
.api-guide-metrics div + div { border-left-color: rgba(190,215,220,.18); }
.api-guide-metrics strong { color: white; font-size: 23px; letter-spacing: -.025em; }
.api-guide-metrics span { margin-top: 3px; color: #9eb9c1; font-size: 11px; }

.api-quickstart { padding: 76px 0; }
.api-section-heading { display: grid; grid-template-columns: 180px 1fr; gap: 22px; align-items: end; margin-bottom: 31px; }
.api-section-heading .kicker { margin-bottom: 8px; }
.api-section-heading h2 { margin: 0; font-size: 40px; }
.api-start-paths { grid-template-columns: repeat(4,1fr); gap: 12px; margin: 0; }
.api-start-paths a { grid-template-columns: 1fr; min-height: 178px; padding: 22px; border-radius: 7px; transition: border-color .15s ease, transform .15s ease, box-shadow .15s ease; }
.api-start-paths a:hover { transform: translateY(-2px); box-shadow: 0 13px 34px rgba(12,47,70,.08); }
.api-start-paths span { grid-row: auto; margin-bottom: 30px; }
.api-start-paths strong { font-size: 15px; }
.api-start-paths small { margin-top: 7px; font-size: 11px; line-height: 1.5; }

.api-guide-directory { padding: 76px 0; }
.api-directory-heading { display: grid; grid-template-columns: minmax(320px,.8fr) minmax(360px,1.2fr); gap: 70px; align-items: end; max-width: none; margin-bottom: 38px; }
.api-directory-heading .kicker { grid-column: 1; margin-bottom: 8px; }
.api-directory-heading h2 { grid-column: 1; font-size: 42px; }
.api-directory-heading > p:last-child { grid-column: 2; grid-row: 1 / 3; margin: 0; color: var(--muted); font-size: 16px; }
.api-category-grid { grid-template-columns: repeat(3,1fr); gap: 14px; }
.api-category-grid article { display: flex; flex-direction: column; min-height: 360px; padding: 25px 24px 22px; border-radius: 8px; transition: border-color .15s ease, box-shadow .15s ease; }
.api-category-grid article:hover { border-color: #a7c4c0; box-shadow: 0 15px 38px rgba(12,47,70,.07); }
.api-category-head { display: flex; justify-content: space-between; align-items: center; }
.api-category-head span { display: grid; place-items: center; width: 31px; height: 31px; border-radius: 50%; background: var(--teal-pale); color: var(--teal); font: 750 10px monospace; }
.api-category-head small { color: var(--muted); font: 700 10px monospace; letter-spacing: .04em; text-transform: uppercase; }
.api-category-grid h3 { margin-top: 25px; font-size: 21px; }
.api-category-grid p { min-height: 0; margin: 0 0 18px; color: var(--muted); font-size: 12.5px; line-height: 1.55; }
.api-category-grid ul { flex: 1; margin: 0 0 19px; padding-top: 15px; }
.api-category-grid li { margin: 7px 0; line-height: 1.35; }
.api-category-grid li a { font-size: 11.5px; }
.api-category-more { display: flex; justify-content: space-between; gap: 15px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 11.5px; }
.api-category-more span { font-size: 16px; }

.api-overview-contract { padding: 76px 0 8px; }
.api-overview-contract .api-directory-heading { display: block; max-width: 730px; margin-bottom: 27px; }
.api-overview-contract .api-directory-heading h2 { font-size: 42px; }
.api-overview-contract > .paragraph { max-width: 780px; font-size: 17px; }
.api-overview-contract table { overflow: hidden; border-radius: 7px; box-shadow: 0 0 0 1px var(--line); }
.api-overview-contract th, .api-overview-contract td { padding: 16px; font-size: 12.5px; }

.api-access-gate { min-height: 100vh; display: grid; place-items: center; padding: 30px; background: var(--paper); }
.api-access-card { width: min(100%,560px); padding: 42px; border: 1px solid var(--line); border-radius: 8px; background: white; box-shadow: var(--shadow); }
.api-access-card .brand { margin-bottom: 45px; }
.api-access-card h1 { margin-bottom: 15px; font-size: 40px; }
.api-access-card p { color: var(--muted); }
.api-access-progress { height: 3px; margin-top: 28px; overflow: hidden; background: #dfe7e6; }
.api-access-progress i { display: block; width: 38%; height: 100%; background: var(--teal); animation: api-access 1.1s ease-in-out infinite alternate; }
@keyframes api-access { to { transform: translateX(165%); } }

.site-footer { padding: 58px 0 25px; background: #092638; color: white; }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(3,1fr); gap: 44px; padding-bottom: 45px; }
.footer-brand { max-width: 330px; color: #bed0d6; font-size: 14px; }
.footer-title { margin-bottom: 15px; color: white; font-size: 12px; font-weight: 760; letter-spacing: .08em; text-transform: uppercase; }
.site-footer a { display: block; padding: 3px 0; color: #bed0d6; font-size: 13px; text-decoration: none; }
.site-footer a:hover { color: white; }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.13); color: #8eabb5; font-size: 12px; }

@media (max-width: 980px) {
  .nav-toggle { display: block; }
  .site-nav { display: none; position: absolute; left: 0; right: 0; top: 76px; padding: 20px 24px 28px; border-bottom: 1px solid var(--line); background: var(--paper); }
  .site-nav.open { display: grid; }
  .hero-grid, .section-head, .split { grid-template-columns: 1fr; gap: 42px; }
  .walkthrough-hero-grid { grid-template-columns: 1fr; gap: 42px; }
  .walkthrough-facts { max-width: 660px; }
  .migration-method { grid-template-columns: repeat(2,1fr); }
  .walkthrough-chapters { grid-template-columns: repeat(2,1fr); }
  .walkthrough-route-model { max-width: 760px; }
  .system-map { max-width: 660px; }
  .principles { grid-template-columns: repeat(2,1fr); }
  .principle:nth-child(3) { border-top: 1px solid var(--line); border-left: 0; }
  .principle:nth-child(4) { border-top: 1px solid var(--line); }
  .card-grid { grid-template-columns: repeat(2,1fr); }
  .architecture-row { grid-template-columns: 1fr; }
  .architecture-modules { grid-template-columns: repeat(2,1fr); }
  .data-flow { grid-template-columns: 1fr; gap: 9px; }
  .flow-arrow { width: 1px; height: 40px; justify-self: center; }
  .flow-arrow::after { right: -4px; top: auto; bottom: 0; transform: rotate(45deg); }
  .docs-layout { grid-template-columns: 1fr; }
  .docs-nav { position: static; display: flex; gap: 18px; overflow-x: auto; padding: 14px 17px; }
  .docs-nav-title { display: none; }
  .docs-nav a { white-space: nowrap; }
  .api-toolbar { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .api-principles { grid-template-columns: repeat(2,1fr); }
  .api-doc-shell { grid-template-columns: minmax(0,1fr); width: min(calc(100% - 40px),900px); }
  .api-doc-shell-overview { width: min(calc(100% - 40px),900px); }
  .api-page-toc { display: none; }
  .api-doc-main { padding-top: 42px; }
  .api-doc-sidebar { position: fixed; inset: 76px auto 0 0; z-index: 46; width: min(88vw,340px); height: auto; padding: 24px; transform: translateX(-105%); border-right: 1px solid var(--line); background: var(--paper); box-shadow: 20px 0 50px rgba(12,47,70,.18); transition: transform .2s ease; }
  .api-doc-sidebar.open { transform: translateX(0); }
  .api-doc-nav-close { display: block; }
  .api-doc-mobilebar { position: sticky; top: 76px; z-index: 40; display: flex; justify-content: space-between; gap: 20px; padding: 10px 20px; border-bottom: 1px solid var(--line); background: rgba(247,248,246,.96); }
  .api-doc-mobilebar button { border: 0; background: transparent; color: var(--teal); font-size: 12px; font-weight: 720; }
  .api-doc-mobilebar span { overflow: hidden; color: var(--muted); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
  .api-guide-hero { grid-template-columns: 1fr; gap: 40px; padding: 50px; }
  .api-guide-sample { max-width: 620px; }
  .api-guide-sample pre { min-height: 0; }
  .api-start-paths, .api-category-grid { grid-template-columns: repeat(2,1fr); }
  .api-directory-heading { grid-template-columns: 1fr; gap: 12px; }
  .api-directory-heading > p:last-child { grid-column: 1; grid-row: auto; max-width: 680px; }
  .footer-grid { grid-template-columns: 1.4fr repeat(2,1fr); }
}

@media (max-width: 680px) {
  .shell { width: min(calc(100% - 32px), var(--max)); }
  .hero, .page-hero { padding-top: 57px; }
  .walkthrough-page-hero { padding-block: 48px; }
  .walkthrough-hero-grid { gap: 34px; }
  .walkthrough-facts dl { grid-template-columns: 1fr; }
  .walkthrough-facts dl div:nth-child(odd) { border-right: 0; }
  .walkthrough-video-frame { padding: 5px; }
  .walkthrough-video-frame figcaption { display: block; padding: 11px 6px 5px; }
  .walkthrough-video-frame figcaption span { display: block; margin-top: 3px; }
  .migration-method, .walkthrough-chapters { grid-template-columns: 1fr; }
  .migration-method article, .walkthrough-chapters article { min-height: 0; }
  .walkthrough-route-model { grid-template-columns: 1fr; gap: 9px; }
  .walkthrough-route-model > div { min-height: 0; }
  .walkthrough-route-model > i { transform: rotate(90deg); }
  h1 { font-size: 44px; }
  .hero-copy { font-size: 17px; }
  .map-sources, .map-targets { grid-template-columns: 1fr; }
  .map-node { min-height: 0; }
  .map-core-grid { grid-template-columns: 1fr; }
  .principles, .card-grid, .image-grid, .dimension-grid, .verdicts, .metrics, .guide-overview, .trust-policy-gates, .api-stats, .api-principles, .api-example-grid, .api-toolbar { grid-template-columns: 1fr; }
  .api-stats div + div { border-top: 1px solid var(--line); border-left: 0; }
  .api-result-total { padding-left: 0; border-left: 0; }
  .api-toolbar-actions { flex-wrap: wrap; }
  .api-toolbar-actions span { width: 100%; margin-left: 0; }
  .api-route-group summary { align-items: flex-start; padding: 17px; }
  .api-doc-shell { width: min(calc(100% - 32px),900px); }
  .api-doc-main { padding: 35px 0 65px; }
  .api-doc-article > h1, .api-guide-intro h1 { font-size: 41px; }
  .api-doc-meta { display: grid; grid-template-columns: repeat(2,1fr); }
  .api-doc-meta span { padding: 13px; border-top: 1px solid var(--line); }
  .api-doc-meta span:nth-child(-n+2) { border-top: 0; }
  .api-doc-meta span:nth-child(odd) { border-left: 0; }
  .api-doc-body { font-size: 15px; }
  .api-doc-body .sect1 > h2 { font-size: 29px; }
  .api-doc-body table.tableblock { display: block; overflow-x: auto; }
  .api-doc-body .admonitionblock td { display: block; width: auto; }
  .api-guide-metrics, .api-start-paths, .api-category-grid, .api-doc-pager { grid-template-columns: 1fr; }
  .api-guide-hero { gap: 30px; padding: 36px 24px 30px; }
  .api-guide-intro .hero-copy { font-size: 16px; }
  .api-guide-actions { align-items: flex-start; gap: 17px; }
  .api-guide-actions > a:not(.api-guide-primary) { padding-left: 2px; }
  .api-guide-sample pre { padding: 19px 16px; font-size: 10.5px; }
  .api-guide-metrics div { min-height: 0; padding: 16px 20px; }
  .api-quickstart, .api-guide-directory { padding: 56px 0; }
  .api-section-heading { grid-template-columns: 1fr; gap: 5px; }
  .api-section-heading h2, .api-directory-heading h2, .api-overview-contract .api-directory-heading h2 { font-size: 34px; }
  .api-start-paths a { min-height: 0; }
  .api-start-paths span { margin-bottom: 19px; }
  .api-category-grid article { min-height: 0; }
  .api-guide-metrics div + div { border-top: 1px solid var(--line); border-left: 0; }
  .api-category-grid article { min-height: 0; }
  .api-category-grid p { min-height: 0; }
  .api-doc-pager a:last-child { text-align: left; }
  .api-access-card { padding: 30px 24px; }
  .principle, .principle + .principle { min-height: 0; padding: 24px 0; border-left: 0; border-top: 1px solid var(--line); }
  .principle:first-child { border-top: 0; }
  .principle-number { margin-bottom: 16px; }
  .architecture-modules { grid-template-columns: 1fr; }
  .section { padding: 67px 0; }
  .section-head { gap: 16px; }
  .caption, .footer-bottom { display: block; }
  .caption span { display: block; margin-top: 6px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > :first-child { grid-column: 1 / -1; }
  .subnav { top: 76px; }
  .trust-story { grid-template-columns: 1fr; gap: 10px; }
  .trust-stage { min-height: 0; }
  .trust-connector { width: 1px; height: 34px; justify-self: center; }
  .trust-connector::after { right: -4px; top: auto; bottom: 0; transform: rotate(45deg); }
  .docs-content h2 { font-size: 32px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .api-access-progress i { animation: none; }
}

@media print {
  .site-header, .site-footer, .docs-nav, .subnav, .hero-actions, .api-doc-sidebar, .api-page-toc, .api-doc-mobilebar, .api-copy-button { display: none !important; }
  body { background: white; color: black; font-size: 11pt; }
  main { overflow: visible; }
  .shell, .docs-layout { width: 100%; max-width: none; display: block; }
  .page-hero { padding: 0 0 28px; }
  .section { padding: 32px 0; }
  .docs-content h2 { break-after: avoid; margin-top: 44px; }
  .docs-content h3, .guide-note, .callout, pre { break-inside: avoid; }
  .api-doc-shell { display: block; width: 100%; }
  .api-doc-main { padding: 0; }
  a { color: inherit; text-decoration: none; }
}
