:root {
  --bg: #f7f8fb; --bg-alt: #fff; --text: #0d1030; --muted: #565c78; --border: #e2e5ef;
  --accent: #2a3bb8; --cyan: #19d3d6; --navy: #151a5c;
  --grad: linear-gradient(90deg, #151a5c 0%, #2350c8 50%, #19d3d6 100%);
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #090b1a; --bg-alt: #10132a; --text: #eceef8; --muted: #9ba1bd; --border: #232848; --accent: #5fd9e6; }
  .brand img { background: #fff; border-radius: 7px; padding: 3px; }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: "Montserrat", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; background: var(--bg); color: var(--text); line-height: 1.7; -webkit-font-smoothing: antialiased; }
a { color: var(--accent); }
.wrap { max-width: 860px; margin: 0 auto; padding: 0 20px; }
.nav { border-bottom: 1px solid var(--border); background: var(--bg-alt); position: sticky; top: 0; z-index: 5; }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 9px; color: var(--text); text-decoration: none; }
.brand img { width: 34px; height: 30px; object-fit: contain; }
.wordmark { display: flex; flex-direction: column; line-height: 1; }
.wordmark b { font-weight: 600; letter-spacing: .16em; font-size: .9rem; }
.wordmark b span { color: var(--cyan); font-weight: 700; }
.wordmark small { align-self: flex-end; font-size: .5rem; letter-spacing: .32em; color: var(--muted); margin-top: 3px; }
.nav nav { display: flex; gap: 18px; font-size: .88rem; font-weight: 500; }
.nav nav a { color: var(--muted); text-decoration: none; }
.nav nav a:hover, .nav nav a[aria-current] { color: var(--text); }
.doc { padding-top: 48px; padding-bottom: 40px; }
.eyebrow { margin: 0; font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
h1 { font-size: clamp(2rem, 5vw, 2.8rem); letter-spacing: -.02em; line-height: 1.1; margin: 8px 0 8px; }
h1::after { content: ""; display: block; width: 90px; height: 4px; border-radius: 4px; background: var(--grad); margin-top: 18px; }
.meta { color: var(--muted); font-size: .9rem; margin: 0 0 28px; }
h2 { font-size: 1.3rem; margin: 40px 0 10px; scroll-margin-top: 80px; }
h3 { font-size: 1rem; margin: 22px 0 6px; }
p, li { color: var(--text); }
ul, ol { padding-left: 22px; }
li { margin: 4px 0; }
code { font-size: .88em; background: var(--bg-alt); border: 1px solid var(--border); border-radius: 5px; padding: 1px 5px; overflow-wrap: anywhere; }
.toc { background: var(--bg-alt); border: 1px solid var(--border); border-radius: 12px; padding: 18px 22px; font-size: .92rem; }
.toc ol { margin: 8px 0 0; columns: 2; column-gap: 28px; }
.toc a { text-decoration: none; }
table { width: 100%; border-collapse: collapse; margin: 12px 0; font-size: .93rem; background: var(--bg-alt); border: 1px solid var(--border); border-radius: 10px; overflow: hidden; }
th, td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--border); vertical-align: top; }
th { font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
tr:last-child td { border-bottom: 0; }
address { font-style: normal; background: var(--bg-alt); border: 1px solid var(--border); border-left: 4px solid var(--accent); border-radius: 8px; padding: 14px 18px; }
.callout { background: var(--bg-alt); border: 1px solid var(--border); border-radius: 12px; padding: 20px 22px; margin: 18px 0; }
.callout h3 { margin-top: 0; }
.btn { display: inline-block; background: var(--navy); color: #fff; text-decoration: none; font-weight: 600; padding: 11px 20px; border-radius: 999px; margin-top: 6px; }
@media (prefers-color-scheme: dark) { .btn { background: #fff; color: var(--navy); } }
.foot { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; padding-top: 24px; padding-bottom: 40px; border-top: 1px solid var(--border); color: var(--muted); font-size: .85rem; }
.foot a { color: var(--muted); }
@media (max-width: 640px) {
  .nav nav { gap: 12px; font-size: .8rem; }
  .wordmark { display: none; }
  .toc ol { columns: 1; }
  th, td { padding: 9px 10px; }
}
