:root {
  --ink: #e7edf5;
  --muted: #95a2b5;
  --faint: #68768b;
  --panel: rgba(16, 24, 38, 0.82);
  --panel-strong: #111b2b;
  --line: rgba(148, 163, 184, 0.18);
  --cyan: #54d6c5;
  --blue: #72a7ff;
  --amber: #f5bd61;
  --bg: #07101d;
  --code: #091321;
  --max: 1180px;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(900px 520px at 8% -8%, rgba(57, 189, 174, .13), transparent 64%),
    radial-gradient(760px 500px at 94% 3%, rgba(71, 118, 255, .12), transparent 62%),
    var(--bg);
  font: 15.5px/1.72 Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  min-height: 100vh;
}
a { color: #8ac9ff; text-decoration: none; }
a:hover { color: #b8deff; text-decoration: underline; text-underline-offset: 3px; }
.skip { position: fixed; left: 12px; top: -60px; background: white; color: black; padding: 8px 12px; z-index: 100; }
.skip:focus { top: 10px; }
header {
  height: 66px; position: sticky; top: 0; z-index: 20;
  border-bottom: 1px solid var(--line); background: rgba(7, 16, 29, .82);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
}
.header-inner { max-width: var(--max); height: 100%; margin: auto; padding: 0 24px; display: flex; align-items: center; gap: 24px; }
.brand { color: var(--ink); font-size: 17px; font-weight: 760; letter-spacing: -.02em; display: flex; gap: 10px; align-items: center; }
.brand:hover { text-decoration: none; color: white; }
.mark { width: 28px; height: 28px; border-radius: 9px; display: grid; place-items: center; color: #06131d; background: linear-gradient(135deg, var(--cyan), var(--blue)); font-weight: 900; box-shadow: 0 0 28px rgba(84,214,197,.2); }
.tag { font-size: 11px; color: var(--amber); border: 1px solid rgba(245,189,97,.3); border-radius: 999px; padding: 2px 8px; background: rgba(245,189,97,.07); text-transform: uppercase; letter-spacing: .08em; }
.header-links { margin-left: auto; display: flex; gap: 18px; align-items: center; font-size: 13px; }
.header-links a { color: var(--muted); }
.menu-button { display: none; margin-left: auto; border: 1px solid var(--line); background: var(--panel); color: var(--ink); border-radius: 8px; padding: 7px 10px; }
.layout { max-width: var(--max); margin: auto; padding: 34px 24px 70px; display: grid; grid-template-columns: 205px minmax(0, 760px) 1fr; gap: 42px; }
nav { position: sticky; top: 100px; align-self: start; max-height: calc(100vh - 120px); overflow-y: auto; }
.nav-label { color: var(--faint); font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .16em; margin: 0 0 9px 11px; }
.nav-link { display: block; padding: 6px 11px; margin: 1px 0; color: var(--muted); border-radius: 8px; font-size: 13px; border: 1px solid transparent; }
.nav-link:hover { color: var(--ink); background: rgba(255,255,255,.035); text-decoration: none; }
.nav-link.active { color: #d9fffa; border-color: rgba(84,214,197,.17); background: rgba(84,214,197,.08); }
main { min-width: 0; }
main h1, main h2, main h3 { line-height: 1.22; letter-spacing: -.025em; color: #f4f7fb; }
main h1 { font-size: clamp(34px, 5vw, 52px); margin: 4px 0 20px; max-width: 760px; }
main h2 { font-size: 25px; margin: 46px 0 14px; padding-top: 2px; }
main h3 { font-size: 18px; margin: 30px 0 9px; }
main p { color: #bdc7d5; margin: 11px 0; }
main > p:first-of-type { font-size: 17px; color: #d0d8e4; }
main strong { color: #eef4fb; }
main ul, main ol { color: #bac5d3; padding-left: 23px; }
main li { margin: 5px 0; }
main li::marker { color: var(--cyan); }
main blockquote { margin: 20px 0; padding: 13px 17px; border: 1px solid rgba(245,189,97,.22); border-left: 3px solid var(--amber); border-radius: 0 10px 10px 0; background: rgba(245,189,97,.055); color: #e5d4b6; }
main blockquote p { margin: 0; color: inherit; }
code { font: .89em/1.5 "SFMono-Regular", Consolas, "Liberation Mono", monospace; color: #9ee8df; background: rgba(84,214,197,.08); border: 1px solid rgba(84,214,197,.1); border-radius: 5px; padding: .1em .35em; }
pre { position: relative; margin: 18px 0; padding: 17px 18px; overflow-x: auto; background: var(--code); border: 1px solid var(--line); border-radius: 11px; box-shadow: inset 0 1px rgba(255,255,255,.025); }
pre code { color: #d5deea; padding: 0; background: none; border: 0; font-size: 12.5px; }
.copy { position: absolute; right: 8px; top: 8px; border: 1px solid var(--line); border-radius: 6px; background: #111c2c; color: var(--muted); font-size: 10px; padding: 4px 7px; cursor: pointer; opacity: 0; transition: opacity .15s; }
pre:hover .copy, .copy:focus { opacity: 1; }
table { width: 100%; border-collapse: separate; border-spacing: 0; margin: 20px 0; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; font-size: 13.5px; }
th { text-align: left; color: #ecf2f8; background: rgba(255,255,255,.035); font-weight: 650; }
th, td { padding: 9px 12px; border-bottom: 1px solid var(--line); }
tr:last-child td { border-bottom: 0; }
td { color: #b9c4d2; }
.page-meta { color: var(--cyan); font-size: 11px; letter-spacing: .13em; text-transform: uppercase; font-weight: 750; margin-bottom: 8px; }
.hero { padding: 30px 0 6px; }
.hero h1 { background: linear-gradient(115deg, #f5f8fc 15%, #9ee8df 62%, #8db8ff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-sub { color: var(--muted); max-width: 610px; font-size: 18px; }
.toc { position: sticky; top: 100px; align-self: start; padding-left: 16px; border-left: 1px solid var(--line); }
.toc a { display: block; color: var(--faint); font-size: 11.5px; padding: 3px 0; line-height: 1.35; }
.toc a:hover { color: var(--muted); text-decoration: none; }
.release-card { border: 1px solid var(--line); border-radius: 12px; padding: 16px; background: var(--panel); margin: 16px 0; }
.release-card h3 { margin-top: 0; }
.empty-release { color: var(--muted); border: 1px dashed rgba(148,163,184,.26); border-radius: 11px; padding: 18px; }
footer { border-top: 1px solid var(--line); color: var(--faint); font-size: 12px; }
.footer-inner { max-width: var(--max); margin: auto; padding: 24px; display: flex; justify-content: space-between; gap: 20px; }
@media (max-width: 980px) {
  .layout { grid-template-columns: 185px minmax(0, 1fr); gap: 30px; }
  .toc { display: none; }
}
@media (max-width: 700px) {
  .header-links { display: none; }
  .menu-button { display: block; }
  .layout { display: block; padding: 24px 19px 56px; }
  nav { display: none; position: fixed; left: 12px; right: 12px; top: 72px; padding: 14px; border: 1px solid var(--line); border-radius: 12px; background: #0b1625; z-index: 30; max-height: calc(100vh - 90px); }
  nav.open { display: block; }
  main h1 { font-size: 37px; }
  .tag { display: none; }
  .footer-inner { display: block; }
  table { display: block; overflow-x: auto; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
