:root {
  color-scheme: dark;
  --bg: #061521;
  --header: #071a28;
  --panel: #0b2232;
  --panel-alt: #102d40;
  --border: #1d4862;
  --text: #e8f0f5;
  --muted: #a9becd;
  --accent: #55cfdd;
  --accent-soft: rgba(85, 207, 221, 0.14);
  --warning: #f7c45a;
  --danger: #ff9b9b;
  --focus: #fff4a8;
  --shell-max: 1500px;
  --sidebar-width: 252px;
  --main-max: 1200px;
  --prose: 80ch;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.65 Arial, Helvetica, sans-serif; }
a { color: var(--accent); text-underline-offset: 0.16em; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.skip-link { position: fixed; z-index: 100; left: 1rem; top: -5rem; padding: .7rem 1rem; border-radius: .4rem; background: #fff; color: #061521; }
.skip-link:focus { top: 1rem; }
.site-header { position: sticky; z-index: 20; top: 0; border-bottom: 1px solid var(--border); background: rgba(7, 26, 40, .97); }
.header-inner { min-height: 68px; width: min(var(--shell-max), calc(100% - 32px)); margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: inline-flex; align-items: center; gap: 14px; color: var(--text); text-decoration: none; }
.brand img { width: 150px; height: auto; }
.brand-label { padding-left: 14px; border-left: 1px solid var(--border); color: var(--muted); font-size: .82rem; letter-spacing: .08em; text-transform: uppercase; }
.header-links { display: flex; align-items: center; gap: 18px; font-size: .92rem; }
.nav-toggle { display: none; min-width: 44px; min-height: 44px; border: 1px solid var(--border); border-radius: 8px; background: var(--panel); color: var(--text); font: inherit; }
.layout { width: min(var(--shell-max), calc(100% - 32px)); margin: 0 auto; display: grid; grid-template-columns: var(--sidebar-width) minmax(0, 1fr); gap: clamp(24px, 3vw, 48px); }
.sidebar { position: sticky; top: 69px; height: calc(100vh - 69px); overflow-y: auto; padding: 28px 18px 32px 0; border-right: 1px solid var(--border); scrollbar-gutter: stable; }
.nav-group { margin: 0 0 24px; }
.nav-group h2 { margin: 0 0 7px; color: var(--muted); font-size: .72rem; letter-spacing: .11em; text-transform: uppercase; }
.nav-group ul { margin: 0; padding: 0; list-style: none; }
.nav-group a { display: block; margin: 2px 0; padding: 7px 10px; border-left: 3px solid transparent; border-radius: 0 7px 7px 0; color: var(--muted); text-decoration: none; }
.nav-group a:hover { background: var(--panel); color: var(--text); }
.nav-group a[aria-current="page"] { border-left-color: var(--accent); background: var(--accent-soft); color: var(--text); font-weight: 700; }
.content { width: 100%; max-width: var(--main-max); min-width: 0; padding: 28px 0 64px; }
.breadcrumbs { margin: 0 0 28px; color: var(--muted); font-size: .88rem; }
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 7px; margin: 0; padding: 0; list-style: none; }
.breadcrumbs li:not(:last-child)::after { content: "/"; padding-left: 7px; color: #6f8797; }
.article { width: 100%; max-width: none; }
.article-header { max-width: var(--prose); margin-bottom: 26px; }
.eyebrow { margin: 0 0 6px; color: var(--accent); font-size: .78rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
h1 { margin: 0 0 12px; font-size: clamp(2rem, 4vw, 3rem); line-height: 1.12; letter-spacing: -.025em; }
.lede { margin: 0; color: var(--muted); font-size: 1.12rem; }
.applies { display: inline-block; margin-top: 15px; padding: 3px 10px; border: 1px solid var(--border); border-radius: 999px; color: var(--muted); font-size: .78rem; }
.public-intro { max-width: var(--prose); margin: 0 0 22px; padding: 16px 18px; border-left: 4px solid var(--accent); background: var(--accent-soft); }
.intro, .card, .notice, .doc-section, .metadata { border: 1px solid var(--border); border-radius: 9px; background: var(--panel); }
.intro, .doc-section { margin: 0 0 18px; padding: clamp(18px, 3vw, 26px); }
.intro h2, .doc-section h2 { margin-top: 0; line-height: 1.25; }
.doc-section h2[id], .doc-section h3[id] { scroll-margin-top: 90px; }
.intro p, .doc-section p, .doc-section li, .metadata dd, .notice p { color: var(--muted); }
.breadcrumbs,
.article > p,
.article > ul,
.article > ol,
.article > dl,
.intro > p,
.notice > p,
.doc-section > h2,
.doc-section > h3,
.doc-section > p,
.doc-section > ul,
.doc-section > ol,
.doc-section > dl,
.callout > p { max-width: var(--prose); }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); gap: 14px; }
.card { display: block; padding: 18px; color: var(--text); text-decoration: none; }
.card:hover { border-color: var(--accent); }
.card h2, .card h3 { margin: 0 0 6px; }
.card p { margin-bottom: 0; color: var(--muted); }
.metadata { display: grid; grid-template-columns: minmax(130px, 180px) 1fr; gap: 8px 18px; margin: 0 0 22px; padding: 18px; }
.metadata dt { color: var(--muted); }
.metadata dd { margin: 0; color: var(--text); }
.toc { columns: 2 250px; padding-left: 22px; }
.toc li, .steps > li { break-inside: avoid; margin-bottom: 9px; }
.callout { margin: 14px 0; padding: 12px 16px; border-left: 4px solid var(--accent); border-radius: 6px; background: var(--accent-soft); }
.callout.warning { border-left-color: var(--warning); background: rgba(247, 196, 90, .1); }
.callout.danger { border-left-color: var(--danger); background: rgba(255, 155, 155, .09); }
.callout p:first-child, .callout p:last-child { margin-top: 0; margin-bottom: 0; }
code, pre { font-family: Consolas, "Cascadia Mono", monospace; }
code { overflow-wrap: anywhere; color: #cef8fc; }
pre { max-width: 100%; overflow-x: auto; padding: 15px; border: 1px solid var(--border); border-radius: 7px; background: #04101a; }
.table-wrap { width: 100%; max-width: none; overflow-x: auto; }
table { width: 100%; min-width: 760px; border-collapse: collapse; font-size: .94rem; }
th, td { padding: 10px; border-bottom: 1px solid var(--border); text-align: left; vertical-align: top; }
th { color: var(--text); background: var(--panel-alt); }
.doc-figure { width: 100%; max-width: none; margin: 18px auto 4px; }
.doc-figure img { display: block; max-width: 100%; width: auto; height: auto; margin: 0 auto; border: 1px solid var(--border); border-radius: 8px; background: #fff; }
.doc-figure figcaption { margin-top: 8px; color: var(--muted); font-size: .84rem; text-align: center; }
.related { margin-top: 30px; padding-top: 22px; border-top: 1px solid var(--border); }
.related h2 { font-size: 1rem; }
.related ul { display: flex; flex-wrap: wrap; gap: 10px 18px; padding-left: 20px; }
.site-footer { border-top: 1px solid var(--border); background: var(--header); color: var(--muted); }
.footer-inner { width: min(var(--shell-max), calc(100% - 32px)); margin: 0 auto; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px 20px; padding: 20px 0; font-size: .82rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 16px; }
.footer-links a { color: var(--muted); }
.footer-links a:hover { color: var(--text); }

@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .header-links { display: none; }
  .layout { display: block; }
  .sidebar { display: none; position: fixed; z-index: 30; inset: 69px 0 0 0; height: auto; padding: 20px max(20px, calc((100vw - 720px) / 2)); border-right: 0; background: var(--header); }
  .sidebar[data-open="true"] { display: block; }
  body.nav-open { overflow: hidden; }
  body.no-js .nav-toggle { display: none; }
  body.no-js .sidebar { display: block; position: static; height: auto; padding: 18px 0; border-right: 0; border-bottom: 1px solid var(--border); }
}

@media (max-width: 600px) {
  .header-inner, .layout, .footer-inner { width: min(100% - 24px, var(--shell-max)); }
  .brand img { width: 128px; }
  .brand-label { display: none; }
  .content { padding-top: 20px; }
  .metadata { grid-template-columns: 1fr; }
  .footer-inner { align-items: flex-start; flex-direction: column; }
  .footer-links { gap: 8px 14px; }
  .doc-section, .intro { border-radius: 7px; }
}

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
@media print { .site-header, .sidebar, .breadcrumbs, .related { display: none !important; } .layout { display: block; width: 100%; } .article { max-width: none; } body { background: #fff; color: #111; } }
