:root {
  --paper: #f7f3ea;
  --cream: #fbf8ef;
  --ink: #111312;
  --deep: #111816;
  --muted: #59625d;
  --quiet: #858a84;
  --line: rgba(17, 19, 18, .14);
  --line-strong: rgba(17, 19, 18, .25);
  --gold: #bc8b43;
  --green: #2b765d;
  --max: 1440px;
  --nav-height: 84px;
  --context-height: 50px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 166px; }
body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(90deg, rgba(17,19,18,.035) 1px, transparent 1px) 0 0 / 96px 96px,
    linear-gradient(rgba(17,19,18,.025) 1px, transparent 1px) 0 0 / 96px 96px,
    var(--paper);
  font-family: "Manrope", "Avenir Next", system-ui, sans-serif;
  letter-spacing: 0;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, input, select { font: inherit; letter-spacing: 0; }
button, a, input, select { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.skip-link { position: fixed; top: -60px; left: 18px; z-index: 90; padding: 11px 16px; color: #fff; background: var(--ink); }
.skip-link:focus { top: 12px; }

.nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(247,243,234,.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}
.nav-inner,
.context-inner,
.docs-home-inner,
.docs-layout,
.docs-footer-inner {
  width: min(calc(100% - 48px), var(--max));
  margin: 0 auto;
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.brand { display: flex; align-items: center; gap: 13px; font-size: 18px; font-weight: 700; white-space: nowrap; }
.brand-logo { width: 36px; height: 36px; object-fit: contain; }
.brand-short { display: none; }
.nav-links { display: flex; align-items: center; gap: 24px; color: rgba(28,32,30,.72); font-size: 14px; }
.nav-text-link { position: relative; transition: color .2s ease; }
.nav-text-link:hover { color: var(--ink); }
.nav-text-link.is-active { color: var(--ink); font-weight: 750; }
.nav-text-link.is-active:after { content: ""; position: absolute; left: 0; right: 0; bottom: -12px; height: 2px; background: var(--gold); }
.lang-switch {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0 12px;
  border: 1px solid rgba(17,19,18,.18);
  background: rgba(251,248,239,.52);
  color: #18201d;
  font-weight: 760;
}
.lang-switch svg { width: 16px; height: 16px; color: var(--gold); stroke-width: 2.15; }
.lang-short { display: none; }
.nav-cta { min-height: 44px; display: inline-flex; align-items: center; padding: 0 18px; color: #fff; background: var(--ink); font-weight: 700; transition: transform .22s ease, background .22s ease; }
.nav-cta:hover { transform: translateY(-2px); background: #17201d; }

.context-nav {
  position: fixed;
  top: var(--nav-height);
  left: 0;
  right: 0;
  z-index: 49;
  min-height: var(--context-height);
  display: flex;
  align-items: center;
  color: rgba(247,243,234,.7);
  background: rgba(17,24,22,.96);
  border-bottom: 1px solid rgba(247,243,234,.12);
  backdrop-filter: blur(16px);
}
.context-inner { display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.context-path { min-height: 50px; display: flex; align-items: center; gap: 18px; font-size: 12px; font-weight: 700; }
.home-link { display: inline-flex; align-items: center; gap: 9px; }
.home-link:hover { color: #fff; }
.back-arrow { color: var(--gold); font-size: 17px; }
.context-divider { width: 1px; height: 18px; background: rgba(247,243,234,.22); }
.context-current { color: #fff; font-size: 11px; font-weight: 800; text-transform: uppercase; }
.docs-search { position: relative; width: min(420px, 38vw); }
.docs-search input { width: 100%; height: 34px; padding: 0 14px; border: 1px solid rgba(247,243,234,.18); border-radius: 0; color: #fff; background: rgba(247,243,234,.06); outline: none; }
.docs-search input::placeholder { color: rgba(247,243,234,.46); }
.docs-search input:focus { border-color: rgba(188,139,67,.72); }
.search-results {
  position: absolute;
  top: 43px;
  right: 0;
  width: min(560px, 82vw);
  max-height: min(610px, calc(100vh - 160px));
  overflow-y: auto;
  color: var(--ink);
  background: var(--cream);
  border: 1px solid var(--line-strong);
  box-shadow: 0 24px 60px rgba(17,19,18,.24);
}
.search-results[hidden] { display: none; }
.search-result { display: grid; grid-template-columns: 116px minmax(0, 1fr); gap: 18px; padding: 18px; border-bottom: 1px solid var(--line); }
.search-result:last-child { border-bottom: 0; }
.search-result:hover { background: rgba(43,118,93,.06); }
.search-result small { color: var(--green); font-size: 10px; font-weight: 800; text-transform: uppercase; }
.search-result strong { display: block; font-family: "Space Grotesk", sans-serif; font-size: 16px; line-height: 1.2; }
.search-result p { margin: 6px 0 0; color: var(--muted); font-size: 12px; line-height: 1.45; }
.search-empty { padding: 24px; color: var(--muted); font-size: 13px; }

.docs-home { padding-top: calc(var(--nav-height) + var(--context-height)); }
.docs-home-hero { padding: 86px 0 104px; border-bottom: 1px solid var(--line-strong); }
.docs-home-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(360px, .85fr); gap: clamp(54px, 7vw, 112px); align-items: end; }
.eyebrow { color: var(--green); font-size: 11px; font-weight: 800; text-transform: uppercase; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { font-family: "Space Grotesk", "Manrope", system-ui, sans-serif; text-wrap: balance; }
.docs-home h1 { max-width: 900px; margin: 24px 0 26px; font-size: clamp(60px, 8vw, 112px); line-height: .88; font-weight: 650; }
.docs-home-lede { max-width: 760px; color: var(--muted); font-size: clamp(17px, 1.45vw, 21px); line-height: 1.55; }
.home-search { position: relative; margin-top: 42px; display: flex; max-width: 760px; border: 1px solid var(--line-strong); background: rgba(251,248,239,.72); }
.home-search input { width: 100%; min-height: 58px; padding: 0 18px; border: 0; background: transparent; outline: none; }
.home-search button { min-width: 112px; border: 0; color: #fff; background: var(--ink); font-weight: 750; cursor: pointer; }
.home-search button:hover { background: #17201d; }
.home-search .search-results { top: 67px; left: 0; right: auto; width: 100%; }
.knowledge-panel { border-top: 1px solid var(--line-strong); border-bottom: 1px solid var(--line-strong); }
.knowledge-panel-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 0; color: var(--quiet); font-size: 10px; font-weight: 800; text-transform: uppercase; }
.knowledge-map { position: relative; min-height: 370px; overflow: hidden; background: var(--deep); }
.knowledge-map:before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(247,243,234,.055) 1px, transparent 1px) 0 0 / 48px 48px, linear-gradient(rgba(247,243,234,.04) 1px, transparent 1px) 0 0 / 48px 48px; }
.graph-line { position: absolute; z-index: 1; height: 1px; background: rgba(188,139,67,.52); transform-origin: left; }
.line-a { left: 21%; top: 36%; width: 34%; transform: rotate(14deg); }
.line-b { left: 46%; top: 52%; width: 31%; transform: rotate(-18deg); }
.line-c { left: 26%; top: 69%; width: 29%; transform: rotate(-21deg); }
.line-d { left: 55%; top: 56%; width: 24%; transform: rotate(26deg); }
.graph-node { position: absolute; z-index: 2; min-width: 116px; padding: 10px 12px; color: rgba(247,243,234,.82); background: rgba(17,24,22,.96); border: 1px solid rgba(247,243,234,.22); font-size: 11px; font-weight: 750; }
.graph-node strong { display: block; margin-bottom: 4px; color: var(--gold); font-size: 9px; text-transform: uppercase; }
.node-product { left: 8%; top: 27%; }
.node-workflow { left: 42%; top: 44%; }
.node-control { right: 8%; top: 24%; }
.node-obligation { right: 7%; bottom: 18%; }
.node-evidence { left: 15%; bottom: 16%; }
.node-jurisdiction { left: 49%; bottom: 8%; }
.map-caption { position: absolute; left: 18px; right: 18px; bottom: 16px; z-index: 3; display: flex; justify-content: space-between; color: rgba(247,243,234,.42); font-size: 9px; text-transform: uppercase; }

.docs-home-section { padding: 96px 0; border-bottom: 1px solid var(--line-strong); }
.section-heading { display: grid; grid-template-columns: 190px minmax(0, 1fr); gap: 42px; margin-bottom: 54px; }
.section-heading h2 { max-width: 870px; margin: 0; font-size: clamp(38px, 5vw, 68px); line-height: .98; }
.outcome-list { border-top: 1px solid var(--line-strong); }
.outcome-row { display: grid; grid-template-columns: 150px minmax(0, 1fr) minmax(250px, .52fr) 34px; gap: 30px; align-items: center; min-height: 138px; padding: 22px 0; border-bottom: 1px solid var(--line); transition: color .2s ease, background .2s ease; }
.outcome-row:hover { color: var(--green); }
.outcome-row small { color: var(--quiet); font-size: 10px; font-weight: 800; text-transform: uppercase; }
.outcome-row strong { font-family: "Space Grotesk", sans-serif; font-size: clamp(24px, 2.5vw, 36px); line-height: 1.04; }
.outcome-row p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.5; }
.outcome-row span { color: var(--gold); font-size: 20px; }

.product-index { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(330px, .75fr); border-top: 1px solid var(--line-strong); border-bottom: 1px solid var(--line-strong); }
.product-feature { min-height: 520px; display: grid; grid-template-rows: 1fr auto; border-right: 1px solid var(--line-strong); }
.product-visual { min-height: 320px; overflow: hidden; background: var(--deep); }
.product-visual img { width: 100%; height: 100%; object-fit: cover; }
.product-copy { padding: 32px; }
.product-copy strong,
.product-mini strong { display: block; font-family: "Space Grotesk", sans-serif; font-size: 31px; line-height: 1.05; }
.product-copy p,
.product-mini p { margin: 14px 0 20px; color: var(--muted); line-height: 1.5; }
.product-copy a,
.product-mini a { color: var(--green); font-size: 13px; font-weight: 800; }
.product-stack { display: grid; grid-template-rows: repeat(2, 1fr); }
.product-mini { padding: 34px; display: flex; flex-direction: column; justify-content: space-between; }
.product-mini:first-child { border-bottom: 1px solid var(--line-strong); }

.docs-layout { padding-top: calc(var(--nav-height) + var(--context-height)); display: grid; grid-template-columns: 238px minmax(0, 780px) minmax(180px, 230px); justify-content: center; gap: clamp(34px, 5vw, 76px); }
.docs-sidebar,
.docs-toc { position: sticky; top: 158px; align-self: start; height: calc(100svh - 182px); overflow-y: auto; padding: 42px 0; scrollbar-width: thin; }
.sidebar-group + .sidebar-group { margin-top: 27px; }
.sidebar-title { display: block; margin-bottom: 9px; color: var(--quiet); font-size: 10px; font-weight: 800; text-transform: uppercase; }
.sidebar-link { display: block; padding: 7px 11px; border-left: 2px solid transparent; color: var(--muted); font-size: 12.5px; line-height: 1.35; transition: color .18s ease, border-color .18s ease, background .18s ease; }
.sidebar-link:hover { color: var(--ink); }
.sidebar-link.is-active { color: var(--ink); border-left-color: var(--gold); background: rgba(188,139,67,.07); font-weight: 700; }
.docs-main { min-width: 0; padding: 62px 0 124px; }
.doc-header { padding-bottom: 62px; }
.doc-header-grid { display: grid; grid-template-columns: minmax(0, 1fr) 230px; gap: 44px; align-items: end; }
.doc-header-grid.no-image { grid-template-columns: 1fr; }
.doc-header h1 { margin: 20px 0 22px; font-size: clamp(48px, 5.5vw, 78px); line-height: .92; font-weight: 650; }
.doc-summary { max-width: 690px; color: var(--muted); font-size: 18px; line-height: 1.58; }
.doc-image { min-height: 210px; border: 1px solid var(--line-strong); overflow: hidden; background: var(--deep); }
.doc-image img { width: 100%; height: 100%; object-fit: cover; }
.doc-meta { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 34px; border-top: 1px solid var(--line-strong); border-bottom: 1px solid var(--line-strong); }
.doc-meta div { min-height: 80px; padding: 16px; border-right: 1px solid var(--line); }
.doc-meta div:last-child { border-right: 0; }
.doc-meta small { display: block; margin-bottom: 8px; color: var(--quiet); font-size: 9px; font-weight: 800; text-transform: uppercase; }
.doc-meta strong { display: block; font-size: 12px; line-height: 1.4; }
.status { color: var(--green); }
.doc-body { border-top: 1px solid var(--line-strong); padding-top: 4px; font-size: 16px; line-height: 1.74; }
.doc-body h2,
.doc-body h3 { scroll-margin-top: 166px; }
.doc-body h2 { margin: 66px 0 22px; font-size: clamp(32px, 3.5vw, 46px); line-height: 1.02; }
.doc-body h3 { margin: 44px 0 16px; font-size: 25px; line-height: 1.08; }
.doc-body p { max-width: 68ch; margin: 0 0 24px; color: var(--muted); }
.doc-body strong { color: var(--ink); }
.doc-body ul,
.doc-body ol { max-width: 68ch; margin: 0 0 28px; padding-left: 1.35em; color: var(--muted); }
.doc-body li { margin-bottom: 10px; padding-left: 7px; }
.doc-body a { color: var(--green); text-decoration: underline; text-underline-offset: 3px; }
.doc-body code { padding: 2px 5px; color: #234e40; background: rgba(43,118,93,.08); font-family: "SFMono-Regular", Consolas, monospace; font-size: .88em; }
.doc-body pre { max-width: 100%; overflow-x: auto; margin: 30px 0; padding: 22px; color: #e9efe9; background: var(--deep); border-left: 4px solid var(--gold); font-size: 13px; line-height: 1.62; white-space: pre; }
.doc-body pre code { padding: 0; color: inherit; background: transparent; font-size: inherit; }
.doc-body blockquote { margin: 34px 0; padding: 20px 24px; border-left: 3px solid var(--gold); background: rgba(188,139,67,.08); }
.doc-body blockquote p:last-child { margin-bottom: 0; }
.doc-body hr { width: 86px; height: 1px; margin: 48px 0; border: 0; background: var(--gold); }
.doc-table-wrap { max-width: 100%; overflow-x: auto; margin: 30px 0; border: 1px solid var(--line-strong); }
.doc-body table { width: 100%; min-width: 620px; border-collapse: collapse; font-size: 13px; line-height: 1.5; }
.doc-body th,
.doc-body td { padding: 13px 15px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.doc-body th { color: #fff; background: var(--deep); }
.callout { margin: 32px 0; padding: 20px 22px; border-left: 4px solid var(--gold); background: rgba(188,139,67,.08); }
.callout-title { display: block; margin-bottom: 7px; font-size: 12px; font-weight: 800; text-transform: uppercase; }
.callout p:last-child { margin-bottom: 0; }
.step-list { margin: 30px 0; border-top: 1px solid var(--line); }
.step-item { display: grid; grid-template-columns: 42px minmax(0, 1fr); gap: 18px; padding: 21px 0; border-bottom: 1px solid var(--line); }
.step-number { color: var(--gold); font-size: 11px; font-weight: 800; }
.step-item strong { display: block; margin-bottom: 7px; }
.step-item p { margin-bottom: 0; font-size: 14px; }
.endpoint { display: flex; align-items: center; gap: 14px; margin: 28px 0; min-height: 58px; padding: 0 18px; border: 1px solid var(--line-strong); background: rgba(251,248,239,.7); }
.method { padding: 5px 8px; color: #fff; background: var(--green); font-size: 10px; font-weight: 800; }
.endpoint code { padding: 0; color: var(--ink); background: transparent; font-size: 13px; font-weight: 700; overflow-wrap: anywhere; }
.endpoint span:last-child { margin-left: auto; color: var(--quiet); font-size: 10px; text-transform: uppercase; }
.copy-code { float: right; margin-top: -24px; border: 0; padding: 7px 10px; color: rgba(247,243,234,.68); background: transparent; font-size: 10px; cursor: pointer; }

.docs-toc { padding-left: 20px; border-left: 1px solid var(--line-strong); }
.toc-title { display: block; margin-bottom: 16px; color: var(--quiet); font-size: 10px; font-weight: 800; text-transform: uppercase; }
.toc-link { display: block; margin-bottom: 11px; color: var(--quiet); font-size: 11.5px; line-height: 1.4; transition: color .18s ease, transform .18s ease; }
.toc-link.level-3 { padding-left: 11px; }
.toc-link:hover,
.toc-link.is-active { color: var(--green); transform: translateX(3px); }
.toc-support { margin-top: 34px; padding-top: 22px; border-top: 1px solid var(--line); }
.toc-support strong { font-size: 12px; }
.toc-support p { margin: 8px 0 12px; color: var(--quiet); font-size: 11px; line-height: 1.45; }
.toc-support a { color: var(--green); font-size: 11px; font-weight: 800; }

.related-docs { margin-top: 72px; padding-top: 42px; border-top: 1px solid var(--line-strong); }
.related-docs h2 { margin: 0 0 24px; font-size: 30px; }
.related-list { border-top: 1px solid var(--line); }
.related-row { display: grid; grid-template-columns: 120px minmax(0, 1fr) 26px; gap: 18px; align-items: center; padding: 20px 0; border-bottom: 1px solid var(--line); }
.related-row small { color: var(--green); font-size: 9px; font-weight: 800; text-transform: uppercase; }
.related-row strong { font-family: "Space Grotesk", sans-serif; font-size: 18px; }
.related-row span { color: var(--gold); }
.mobile-section-nav { display: none; }

.docs-footer { padding: 30px 0; color: rgba(247,243,234,.58); background: var(--deep); font-size: 12px; }
.docs-footer-inner { display: flex; justify-content: space-between; gap: 24px; }

@media (max-width: 1120px) {
  .docs-layout { grid-template-columns: 220px minmax(0, 760px); }
  .docs-toc { display: none; }
  .doc-header-grid { grid-template-columns: 1fr; }
  .doc-image { min-height: 320px; }
  .outcome-row { grid-template-columns: 120px minmax(0, 1fr) 34px; }
  .outcome-row p { grid-column: 2; }
  .outcome-row span { grid-column: 3; grid-row: 1 / span 2; }
}

@media (max-width: 980px) {
  :root { --nav-height: 72px; }
  .nav-text-link { display: none; }
  .docs-search { width: min(360px, 48vw); }
  .docs-home-grid,
  .product-index { grid-template-columns: 1fr; }
  .knowledge-panel { margin-top: 54px; }
  .product-feature { border-right: 0; border-bottom: 1px solid var(--line-strong); }
  .docs-layout { grid-template-columns: minmax(0, 760px); }
  .docs-sidebar { display: none; }
  .mobile-section-nav { display: block; margin-bottom: 34px; }
  .mobile-section-nav select { width: 100%; min-height: 48px; padding: 0 14px; border: 1px solid var(--line-strong); border-radius: 0; color: var(--ink); background: var(--cream); }
  .section-heading { grid-template-columns: 1fr; gap: 18px; }
}

@media (max-width: 620px) {
  .nav-inner,
  .context-inner,
  .docs-home-inner,
  .docs-layout,
  .docs-footer-inner { width: calc(100% - 32px); }
  .nav-inner { gap: 12px; }
  .brand { gap: 10px; font-size: 17px; }
  .brand-logo { width: 32px; height: 32px; }
  .brand-full { display: none; }
  .brand-short { display: inline; }
  .nav-links { gap: 10px; }
  .lang-switch { min-width: 44px; padding: 0 11px; justify-content: center; }
  .lang-label { display: none; }
  .lang-short { display: inline; font-weight: 820; }
  .nav-cta { min-height: 44px; padding: 0 14px; font-size: 13px; }
  .context-path { width: 100%; justify-content: space-between; }
  .context-divider { margin-left: auto; }
  .docs-search { display: none; }
  .docs-home-hero { padding: 68px 0 78px; }
  .docs-home-grid { grid-template-columns: minmax(0, 1fr); }
  .docs-home-grid > * { min-width: 0; }
  .docs-home h1 { font-size: 48px; line-height: .92; }
  .eyebrow { line-height: 1.45; }
  .home-search { display: grid; min-width: 0; max-width: 100%; }
  .home-search input { min-height: 54px; }
  .home-search button { min-height: 48px; }
  .knowledge-panel { min-width: 0; max-width: 100%; }
  .knowledge-panel-head { align-items: flex-start; gap: 18px; line-height: 1.35; }
  .knowledge-panel-head span:last-child { flex: 0 0 auto; text-align: right; }
  .knowledge-map { min-height: 330px; }
  .graph-node { min-width: 100px; max-width: 130px; font-size: 10px; }
  .node-product { left: 5%; top: 20%; }
  .node-control { right: 4%; top: 18%; }
  .node-workflow { left: 35%; top: 44%; }
  .node-evidence { left: 4%; bottom: 16%; }
  .node-obligation { right: 4%; bottom: 20%; }
  .node-jurisdiction { left: 38%; bottom: 5%; }
  .docs-home-section { padding: 76px 0; }
  .outcome-row { grid-template-columns: minmax(0, 1fr) 34px; gap: 14px; padding: 25px 0; }
  .outcome-row small,
  .outcome-row strong,
  .outcome-row p { grid-column: 1; }
  .outcome-row span { grid-column: 2; grid-row: 1 / span 3; }
  .outcome-row strong { font-size: 27px; }
  .product-feature { min-height: 0; }
  .product-visual { min-height: 260px; }
  .product-copy,
  .product-mini { padding: 26px 22px; }
  .docs-main { padding-top: 42px; }
  .doc-header { padding-bottom: 48px; }
  .doc-header h1 { font-size: clamp(42px, 12vw, 56px); }
  .doc-image { min-height: 260px; }
  .doc-meta { grid-template-columns: repeat(2, 1fr); }
  .doc-meta div:nth-child(2) { border-right: 0; }
  .doc-meta div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .doc-body { font-size: 15.5px; }
  .doc-body h2 { margin-top: 54px; }
  .endpoint { align-items: flex-start; flex-wrap: wrap; padding: 14px; }
  .endpoint span:last-child { width: 100%; margin-left: 0; }
  .related-row { grid-template-columns: 1fr 26px; }
  .related-row small,
  .related-row strong { grid-column: 1; }
  .related-row span { grid-column: 2; grid-row: 1 / span 2; }
  .docs-footer-inner { display: grid; }
}

@media (prefers-reduced-motion: reduce) {
  *, *:before, *:after { scroll-behavior: auto !important; transition-duration: .001ms !important; }
}
