:root {
  --ink: #082b43;
  --ink-soft: #345368;
  --paper: #f7f5ef;
  --white: #ffffff;
  --line: #d8e0e4;
  --muted: #edf2f3;
  --aqua: #9ddbd5;
  --aqua-deep: #157a78;
  --red: #345368;
  --amber: #ffd66b;
  --code: #061f31;
  --shadow: 0 18px 50px rgba(5, 42, 65, 0.12);
  --radius: 18px;
}

* { box-sizing: border-box; }
html { max-width: 100%; overflow-x: hidden; scroll-behavior: smooth; scroll-padding-top: 100px; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
  max-width: 100%;
  overflow-x: hidden;
}
a { color: var(--aqua-deep); text-underline-offset: 3px; }
a:hover { color: var(--red); }
button, a { -webkit-tap-highlight-color: transparent; }
summary:focus-visible, button:focus-visible, a:focus-visible, [tabindex="0"]:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; }
code, pre { font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace; }
code { overflow-wrap: anywhere; }

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 8px;
  left: 8px;
  transform: translateY(-150%);
  padding: 10px 14px;
  border-radius: 8px;
  color: var(--white);
  background: var(--ink);
}
.skip-link:focus { transform: translateY(0); }

.release-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 34px;
  padding: 5px 20px;
  background: var(--amber);
  color: #3d310d;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--red); }

.site-header {
  position: sticky;
  z-index: 100;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 78px;
  padding: 12px clamp(20px, 5vw, 72px);
  border-bottom: 1px solid rgba(8, 43, 67, 0.12);
  background: rgba(247, 245, 239, 0.94);
  backdrop-filter: blur(14px);
}
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; }
.brand-mark { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 9px; color: white; background: var(--ink); font-weight: 900; }
.brand strong { display: block; font-size: 0.95rem; line-height: 1; letter-spacing: 0.16em; }
.brand small { display: block; margin-top: 5px; color: var(--ink-soft); font-size: 0.57rem; font-weight: 800; letter-spacing: 0.13em; }
.header-actions, .language-switch { display: flex; align-items: center; gap: 8px; }
.language-switch { padding: 3px; border: 1px solid var(--line); border-radius: 999px; background: var(--white); }
.language-switch button { min-width: 42px; padding: 7px 10px; border: 0; border-radius: 999px; color: var(--ink); background: transparent; cursor: pointer; font-weight: 800; }
.language-switch button[aria-pressed="true"] { color: var(--white); background: var(--ink); }

.button { display: inline-flex; align-items: center; justify-content: center; min-height: 42px; padding: 9px 17px; border: 1px solid transparent; border-radius: 999px; cursor: pointer; font: inherit; font-size: 0.88rem; font-weight: 800; text-decoration: none; transition: transform .18s ease, background-color .18s ease; }
.button:hover { transform: translateY(-1px); }
.button-primary { color: var(--white); background: var(--red); }
.button-primary:hover { color: var(--white); background: #223d50; }
.button-secondary { border-color: var(--ink); color: var(--ink); background: transparent; }
.button-secondary:hover { color: var(--white); background: var(--ink); }
.button-ghost { border-color: rgba(255,255,255,.45); color: var(--white); background: transparent; }
.button-ghost:hover { color: var(--ink); background: var(--white); }

.hero {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(280px, .65fr);
  gap: clamp(30px, 6vw, 90px);
  align-items: end;
  min-height: 560px;
  padding: clamp(70px, 10vw, 130px) clamp(24px, 8vw, 120px) 72px;
  color: var(--white);
  background: var(--ink);
}
.hero::before {
  content: "";
  position: absolute;
  inset: -30% -10% auto auto;
  width: min(680px, 60vw);
  aspect-ratio: 1;
  border: 1px solid rgba(157, 219, 213, .22);
  border-radius: 50%;
  box-shadow: 0 0 0 70px rgba(157,219,213,.04), 0 0 0 140px rgba(157,219,213,.025);
}
.hero::after { content: "DATA / ACCESS / CONTROL"; position: absolute; right: 4vw; top: 54%; color: rgba(255,255,255,.045); font-size: clamp(3rem, 9vw, 10rem); font-weight: 900; letter-spacing: -.06em; white-space: nowrap; transform: rotate(-90deg) translateX(50%); transform-origin: right center; }
.hero-copy, .hero-card { position: relative; z-index: 1; min-width: 0; }
.eyebrow, .section-number, .card-kicker { margin: 0 0 16px; color: var(--red); font-size: .72rem; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; }
.hero .eyebrow { color: var(--aqua); }
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 26px; max-width: 900px; font-size: clamp(2.7rem, 6vw, 6rem); line-height: .98; letter-spacing: -.055em; }
h1 em { color: var(--aqua); font-family: Georgia, "Times New Roman", serif; font-weight: 400; }
.hero-lead { max-width: 760px; color: #d3e1e7; font-size: clamp(1.05rem, 1.5vw, 1.28rem); line-height: 1.6; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-card { padding: 26px; border: 1px solid rgba(255,255,255,.16); border-radius: var(--radius); background: rgba(255,255,255,.075); box-shadow: var(--shadow); backdrop-filter: blur(10px); }
.hero-card .card-kicker { color: var(--aqua); }
.hero-card dl { margin: 0; }
.hero-card dl div { display: grid; grid-template-columns: 42% 58%; gap: 12px; padding: 13px 0; border-top: 1px solid rgba(255,255,255,.12); }
.hero-card dt { color: #a9c1cd; font-size: .8rem; }
.hero-card dd { min-width: 0; margin: 0; overflow-wrap: anywhere; font-size: .84rem; font-weight: 700; }
.hero-card code { font-size: .72rem; }
.pill, .tag { display: inline-block; padding: 3px 8px; border-radius: 999px; font-size: .68rem; font-weight: 850; letter-spacing: .02em; }
.pill-warn, .tag { color: #47370c; background: var(--amber); }

.notice { max-width: 1280px; margin: 28px auto; padding: 18px 22px; border-left: 5px solid; border-radius: 12px; }
.notice-warning { border-color: #d29d17; background: #fff5cf; color: #44370f; }
.notice-info { border-color: var(--aqua-deep); background: #e2f4f2; color: #144d4c; }

.page-shell { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: clamp(36px, 6vw, 90px); max-width: 1280px; margin: 0 auto; padding: 70px clamp(20px, 4vw, 48px) 100px; }
.toc { position: sticky; top: 110px; align-self: start; display: flex; flex-direction: column; padding-right: 28px; border-right: 1px solid var(--line); }
.toc-title { margin-bottom: 13px; color: var(--ink); font-size: .74rem; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.toc a { padding: 7px 0; color: var(--ink-soft); font-size: .84rem; text-decoration: none; }
.toc a:hover { color: var(--red); }
.content-column { min-width: 0; }
.content-section { min-width: 0; padding: 30px 0 84px; border-bottom: 1px solid var(--line); }
.content-section:last-child { border-bottom: 0; }
.content-section h2 { margin-bottom: 22px; max-width: 820px; font-family: Georgia, "Times New Roman", serif; font-size: clamp(2.05rem, 4.2vw, 4rem); font-weight: 400; line-height: 1.08; letter-spacing: -.035em; }
.content-section > p:not(.section-number):not(.fine-print):not(.legal-note) { max-width: 850px; font-size: 1.05rem; }
.content-section h3 { margin-bottom: 7px; font-size: 1.05rem; line-height: 1.35; }
.section-number { margin-bottom: 18px; }

.principles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 34px; }
.principles article { min-height: 220px; padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }
.principles article > span { color: var(--red); font-size: .72rem; font-weight: 900; }
.principles h3 { margin-top: 50px; font-size: 1.2rem; }
.principles p { margin: 0; color: var(--ink-soft); font-size: .9rem; }

.endpoint-card, .api-list article { padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }
.endpoint-card > div, .api-list article > div { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.endpoint-card p, .api-list p { margin: 13px 0 0; color: var(--ink-soft); }
.method { display: inline-grid; place-items: center; min-width: 48px; padding: 4px 8px; border-radius: 6px; color: var(--white); background: var(--aqua-deep); font-size: .68rem; font-weight: 900; }

.table-wrap { overflow-x: auto; margin: 30px 0 16px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }
table { width: 100%; min-width: 820px; border-collapse: collapse; }
th, td { padding: 16px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
th { color: var(--ink); background: #e9f1f2; font-size: .72rem; letter-spacing: .07em; text-transform: uppercase; }
td { color: var(--ink-soft); font-size: .88rem; }
tr:last-child td { border-bottom: 0; }
.fine-print { color: var(--ink-soft); font-size: .83rem; }

.facts-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-top: 30px; }
.facts-grid > div { display: flex; flex-direction: column; min-height: 150px; padding: 22px; border-radius: 14px; color: var(--white); background: var(--ink); }
.facts-grid span { color: var(--aqua); font-size: .66rem; font-weight: 900; letter-spacing: .1em; }
.facts-grid strong { margin-top: 18px; font-family: Georgia, "Times New Roman", serif; font-size: 1.55rem; font-weight: 400; }
.facts-grid small { margin-top: auto; color: #bcd0d9; }

.steps { margin: 30px 0; padding: 0; list-style: none; }
.steps li { display: grid; grid-template-columns: 54px minmax(0, 1fr); gap: 20px; padding: 24px 0; border-top: 1px solid var(--line); }
.steps li > span { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; color: white; background: var(--red); font-weight: 900; }
.steps p { margin: 0; color: var(--ink-soft); }
.config-line { margin-top: 8px !important; }

.flow { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr; gap: 10px; align-items: center; margin: 34px 0; }
.flow > div { display: flex; flex-direction: column; min-height: 145px; padding: 18px; border-radius: 14px; color: var(--white); background: var(--ink); }
.flow b { color: var(--aqua); font-size: .7rem; }
.flow span { margin-top: 24px; font-weight: 800; line-height: 1.25; }
.flow small { margin-top: auto; color: #bcd0d9; }
.flow i { color: var(--red); font-size: 1.4rem; font-style: normal; }
.url-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.url-grid > div { display: flex; flex-direction: column; padding: 18px; border: 1px solid var(--line); border-radius: 12px; background: var(--white); }
.url-grid span { font-size: .72rem; font-weight: 900; text-transform: uppercase; }
.url-grid code { margin: 12px 0; color: var(--red); }
.url-grid small { color: var(--ink-soft); }

.api-list { display: grid; gap: 12px; margin: 30px 0; }
.code-card { overflow: hidden; margin: 16px 0; border-radius: 14px; background: var(--code); box-shadow: var(--shadow); }
.code-head { display: flex; justify-content: space-between; align-items: center; padding: 10px 16px; border-bottom: 1px solid rgba(255,255,255,.12); color: #c8dce5; font-size: .78rem; }
.code-head button { padding: 5px 10px; border: 1px solid rgba(255,255,255,.28); border-radius: 999px; color: white; background: transparent; cursor: pointer; }
pre { overflow: auto; margin: 0; padding: 22px; color: #d9f3ef; font-size: .83rem; line-height: 1.65; }
.status-table { min-width: 660px; }
.status-table td:first-child code { color: var(--red); font-weight: 900; }
.text-link { font-weight: 850; }

.terms { margin-top: 20px; padding: clamp(30px, 5vw, 64px); border: 1px solid var(--line); border-radius: 24px; background: var(--white); box-shadow: var(--shadow); }
.terms-intro { padding-bottom: 26px; border-bottom: 1px solid var(--line); color: var(--ink-soft); }
.legal-list { margin: 0; padding: 0; list-style: none; counter-reset: terms; }
.legal-list li { position: relative; padding: 28px 0 20px 58px; border-bottom: 1px solid var(--line); counter-increment: terms; }
.legal-list li:last-child { border-bottom: 0; }
.legal-list li::before { content: counter(terms, decimal-leading-zero); position: absolute; left: 0; top: 27px; color: var(--red); font-size: .76rem; font-weight: 900; }
.legal-list p { margin: 0; color: var(--ink-soft); font-size: .95rem; }

.contact-card { display: grid; grid-template-columns: 1fr 1fr; overflow: hidden; margin: 30px 0; border-radius: var(--radius); color: white; background: var(--ink); }
.contact-card > div { padding: 30px; }
.contact-card > div + div { border-left: 1px solid rgba(255,255,255,.15); }
.contact-card .card-kicker { color: var(--aqua); }
.contact-card a { color: var(--white); }
.source-list { padding-left: 1.2rem; }
.source-list li { margin: 8px 0; }

.site-footer { display: flex; justify-content: space-between; gap: 30px; padding: 34px clamp(20px, 5vw, 72px); color: #c4d5dd; background: var(--ink); font-size: .76rem; }
.site-footer > div { display: flex; flex-direction: column; }
.site-footer strong { color: white; letter-spacing: .15em; }
.toast { position: fixed; z-index: 200; right: 22px; bottom: 22px; padding: 12px 16px; border-radius: 10px; color: white; background: var(--ink); box-shadow: var(--shadow); font-weight: 800; }

@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; min-height: auto; }
  .hero-card { max-width: 560px; }
  .page-shell { grid-template-columns: 1fr; }
  .toc { position: static; display: grid; grid-template-columns: repeat(2, 1fr); padding: 18px; border: 1px solid var(--line); border-radius: 14px; background: var(--white); }
  .toc-title { grid-column: 1 / -1; }
  .principles { grid-template-columns: 1fr; }
  .principles article { min-height: 160px; }
  .principles h3 { margin-top: 26px; }
  .flow { grid-template-columns: 1fr 1fr; }
  .flow i { display: none; }
}

@media (max-width: 680px) {
  body { font-size: 15px; }
  .site-header { flex-wrap: wrap; align-items: center; padding: 10px 16px; }
  .brand small { display: none; }
  .header-actions { width: 100%; flex-direction: row; justify-content: space-between; align-items: center; }
  .header-actions .button { min-height: 34px; padding: 5px 11px; font-size: .72rem; }
  .hero { padding: 64px 20px 48px; }
  h1 { font-size: clamp(2.45rem, 13vw, 4rem); }
  .hero-actions { display: grid; grid-template-columns: 1fr; }
  .hero-actions .button { width: 100%; max-width: 100%; }
  .hero-card dl div { grid-template-columns: 1fr; gap: 3px; }
  .notice { margin: 18px 14px; }
  .page-shell { padding: 34px 16px 70px; }
  .toc { grid-template-columns: 1fr; }
  .facts-grid, .url-grid, .contact-card { grid-template-columns: 1fr; }
  .flow { grid-template-columns: 1fr; }
  .terms { padding: 26px 18px; }
  .legal-list li { padding-left: 42px; }
  .contact-card > div + div { border-top: 1px solid rgba(255,255,255,.15); border-left: 0; }
  .site-footer { flex-direction: column; }
}

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

@media print {
  @page { size: A4; margin: 14mm 13mm 16mm; }
  body { color: #000; background: #fff; font-size: 10pt; }
  .release-banner, .site-header, .toc, .hero-actions, .code-head button, .toast, .skip-link { display: none !important; }
  .hero { display: block; min-height: auto; padding: 14mm 0 9mm; color: #000; background: #fff; border-bottom: 2px solid #000; }
  .hero::before, .hero::after { display: none; }
  .hero h1 { font-size: 29pt; }
  .hero h1 em, .hero .eyebrow { color: #000; }
  .hero-lead { color: #222; }
  .hero-card { margin-top: 8mm; color: #000; border-color: #777; background: #fff; box-shadow: none; }
  .hero-card .card-kicker, .hero-card dt { color: #333; }
  .notice { margin: 7mm 0; break-inside: avoid; }
  .page-shell { display: block; max-width: none; padding: 0; }
  .content-section { padding: 8mm 0; break-before: auto; }
  .content-section h2 { font-size: 22pt; }
  .principles, .facts-grid, .url-grid, .contact-card { break-inside: avoid; }
  .principles article, .endpoint-card, .api-list article, .table-wrap, .terms { box-shadow: none; }
  .table-wrap { overflow: visible; }
  table, .summary-table, .status-table { width: 100%; min-width: 0; table-layout: fixed; }
  th, td { padding: 7px; overflow-wrap: anywhere; font-size: 7.5pt; }
  tr { break-inside: avoid; }
  .summary-table th:first-child, .summary-table td:first-child { width: 5%; }
  .summary-table th:nth-child(2), .summary-table td:nth-child(2) { width: 25%; }
  .facts-grid > div, .flow > div, .contact-card { color: #000; background: #fff; border: 1px solid #555; }
  .facts-grid span, .facts-grid small, .flow b, .flow small, .contact-card .card-kicker, .contact-card a { color: #000; }
  .code-card { break-inside: avoid; box-shadow: none; }
  pre { white-space: pre-wrap; word-break: break-word; }
  .terms { margin-top: 0; border: 2px solid #555; }
  a { color: #000; text-decoration: underline; }
  .site-footer { display: flex; padding: 7mm 0 0; color: #000; background: #fff; border-top: 1px solid #000; }
  [hidden] { display: none !important; }
}

/* OEM: neutral identity, readable legal attribution and optional technical detail. */
.brand-mark { font-size: .85rem; letter-spacing: 0; }
.content-section .legal-note { font-size: .875rem; line-height: 1.65; color: var(--ink-soft); }
.technical-details { margin: 18px 0; border: 1px solid var(--line); border-radius: 12px; padding: 16px; min-width: 0; }
.technical-details > summary { cursor: pointer; font-weight: 700; }
.technical-details[open] > summary { margin-bottom: 18px; }
@media print {
  .content-section .legal-note { font-size: 9pt; color: #000; }
  .technical-details { border: 0; padding: 0; }
}
