:root {
  --bg0: #030712;
  --bg1: #0b1220;
  --bg2: #111827;
  --panel: rgba(15, 23, 42, 0.72);
  --panel-strong: rgba(2, 6, 23, 0.88);
  --panel-soft: rgba(15, 23, 42, 0.52);
  --text: #e5e7eb;
  --muted: #9ca3af;
  --dim: #6b7280;
  --line: rgba(148, 163, 184, 0.16);
  --line-strong: rgba(94, 234, 212, 0.26);
  --mint: #5eead4;
  --sky: #38bdf8;
  --amber: #fbbf24;
  --rose: #fb7185;
  --glow-mint: rgba(94, 234, 212, 0.12);
  --glow-sky: rgba(56, 189, 248, 0.1);
  --font-sans: "Outfit", system-ui, sans-serif;
  --font-serif: "Literata", Georgia, serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;
  --font-display: "Syne", var(--font-sans);
  --radius: 20px;
  color-scheme: dark;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-sans);
  color: var(--text);
  background:
    radial-gradient(1200px 800px at 10% -10%, var(--glow-mint), transparent 55%),
    radial-gradient(900px 600px at 95% 20%, var(--glow-sky), transparent 50%),
    linear-gradient(165deg, var(--bg0) 0%, var(--bg1) 45%, #0c1a2e 100%);
  line-height: 1.6;
}

a {
  color: var(--mint);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

img {
  max-width: 100%;
  display: block;
}

code,
pre {
  font-family: var(--font-mono);
}

.wrap {
  width: min(1220px, 94vw);
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
  background: rgba(3, 7, 18, 0.78);
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0;
  flex-wrap: wrap;
}


.release-notes-body h2 {
  scroll-margin-top: 5.5rem;
}

.release-notes-body > h2:first-child {
  margin-top: 0;
}

.release-notes-section + .release-notes-section {
  margin-top: 1.8rem;
}

.release-notes-section-header {
  margin: 0 0 1rem;
  padding-bottom: 0.7rem;
  border-bottom: 1px solid var(--line);
}

.release-notes-section-header h2 {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.release-notes-section-pending .release-notes-section-header h2 {
  color: var(--mint);
}

.release-notes-section-shipped .release-notes-section-header h2 {
  color: #f8fafc;
}

.release-notes-pending {
  margin: 0 0 1.4rem;
  padding: 1.05rem 1.1rem 1.1rem;
  border: 1px solid rgba(94, 234, 212, 0.22);
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(94, 234, 212, 0.08), rgba(56, 189, 248, 0.06)),
    rgba(8, 15, 28, 0.88);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.release-notes-pending-label {
  margin: 0 0 0.45rem;
  color: var(--mint);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.release-notes-pending-note {
  margin: 0;
  max-width: 46rem;
  color: #cbd5e1;
}

.release-notes-section > h2:first-of-type {
  margin-top: 0;
}


.hero {
  padding: 2.5rem 0 2.25rem;
}

.hero-grid {
  display: grid;
  gap: 1.2rem;
}

@media (min-width: 960px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1.3fr) minmax(320px, 0.7fr);
    align-items: end;
  }
}

.eyebrow {
  margin: 0 0 0.8rem;
  color: var(--sky);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 4.2rem);
  line-height: 0.98;
  letter-spacing: -0.04em;
  background: linear-gradient(125deg, #f8fafc 0%, #99f6e4 38%, #7dd3fc 72%, #e0f2fe 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero p.lede {
  margin: 0;
  max-width: 44rem;
  color: var(--muted);
  font-family: var(--font-serif);
  font-size: clamp(1.06rem, 1.35vw, 1.2rem);
}

.hero-panel,
.card,
.chapter-card,
.callout,
.shell-sidebar,
.toc,
.content-card {
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: var(--radius);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.hero-panel {
  padding: 1.1rem 1.15rem;
}

.hero-panel p {
  margin: 0 0 0.75rem;
  color: #cbd5e1;
  font-size: 0.95rem;
}

.hero-panel p:last-child {
  margin-bottom: 0;
}

.hero-panel strong {
  color: #ecfeff;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1.35rem;
}

.section {
  padding: 1rem 0 2rem;
}

.section h2 {
  margin: 0 0 0.85rem;
  font-size: clamp(1.6rem, 2.2vw, 2rem);
  letter-spacing: -0.03em;
}

.section-intro {
  margin: 0 0 1.35rem;
  max-width: 50rem;
  color: var(--muted);
}

.grid-2,
.grid-3,
.chapter-grid,
.reference-grid {
  display: grid;
  gap: 1rem;
}

@media (min-width: 760px) {
  .grid-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .grid-3,
  .reference-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.card,
.chapter-card,
.content-card {
  padding: 1.15rem 1.15rem 1.05rem;
}

.card h3,
.chapter-card h3,
.content-card h3 {
  margin: 0 0 0.55rem;
  font-size: 1.08rem;
  letter-spacing: -0.02em;
}

.card p,
.chapter-card p,
.content-card p {
  margin: 0;
  color: var(--muted);
}

.chapter-card .index {
  margin: 0 0 0.55rem;
  color: var(--amber);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.chapter-card .foot {
  margin-top: 0.9rem;
  color: var(--mint);
  font-size: 0.9rem;
  font-weight: 600;
}

.shell {
  display: grid;
  gap: 1rem;
  padding-bottom: 3rem;
}

@media (min-width: 1100px) {
  .shell {
    grid-template-columns: 280px minmax(0, 1fr) 220px;
    align-items: start;
  }
}

.shell-sidebar,
.toc {
  padding: 1rem;
}

@media (min-width: 1100px) {
  .shell-sidebar,
  .toc {
    position: sticky;
    top: 5.5rem;
  }
}

.sidebar-title,
.toc-title {
  margin: 0 0 0.75rem;
  color: #f8fafc;
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.sidebar-section {
  margin-bottom: 1rem;
}

.sidebar-section:last-child {
  margin-bottom: 0;
}

.sidebar-section h4 {
  margin: 0 0 0.45rem;
  color: var(--sky);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.sidebar-links,
.toc-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.35rem;
}

.sidebar-links a,
.toc-links a {
  display: block;
  padding: 0.4rem 0.5rem;
  border-radius: 12px;
  color: var(--muted);
  font-size: 0.92rem;
}

.sidebar-links a:hover,
.sidebar-links a[aria-current="page"],
.toc-links a:hover {
  text-decoration: none;
  color: var(--text);
  background: rgba(94, 234, 212, 0.08);
}

.doc-main {
  min-width: 0;
}

.article-header {
  padding: 1.15rem 1.2rem;
  margin-bottom: 1rem;
}

.article-header h1 {
  margin: 0 0 0.75rem;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.04;
  letter-spacing: -0.04em;
}

.article-header p {
  margin: 0;
  color: var(--muted);
  max-width: 48rem;
}

.article-body {
  padding: 1.4rem 1.35rem;
}

.article-body section + section {
  margin-top: 2rem;
  padding-top: 1.8rem;
  border-top: 1px solid var(--line);
}

.article-body h2 {
  margin: 0 0 0.8rem;
  font-size: 1.55rem;
  letter-spacing: -0.03em;
}

.article-body h3 {
  margin: 1.4rem 0 0.6rem;
  font-size: 1.08rem;
  letter-spacing: -0.02em;
}

.article-body p,
.article-body li {
  color: #cbd5e1;
}

.article-body ul,
.article-body ol {
  margin: 0.75rem 0 0;
  padding-left: 1.15rem;
}

.article-body li + li {
  margin-top: 0.4rem;
}

.article-body pre {
  margin: 0.95rem 0 0;
  padding: 1rem 1.05rem;
  overflow-x: auto;
  border-radius: 16px;
  border: 1px solid rgba(94, 234, 212, 0.16);
  background: var(--panel-strong);
  color: #dbeafe;
  font-size: 0.87rem;
}

.article-body code {
  color: #bfdbfe;
}

.article-body pre code {
  color: inherit;
}

.callout {
  margin-top: 1rem;
  padding: 1rem 1.05rem;
}

.callout h3,
.callout p {
  margin: 0;
}

.callout h3 {
  margin-bottom: 0.45rem;
  color: #ecfeff;
}

.callout.note {
  border-color: rgba(56, 189, 248, 0.24);
}

.callout.warn {
  border-color: rgba(251, 191, 36, 0.24);
}

.callout.strong {
  border-color: rgba(94, 234, 212, 0.34);
  background: linear-gradient(160deg, rgba(15, 23, 42, 0.88), rgba(15, 23, 42, 0.56));
}

.mini-grid {
  display: grid;
  gap: 0.8rem;
  margin-top: 1rem;
}

@media (min-width: 760px) {
  .mini-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.mini-card {
  padding: 0.95rem 1rem;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: var(--panel-soft);
}

.mini-card strong {
  display: block;
  margin-bottom: 0.35rem;
  color: #f8fafc;
}

.mini-card p {
  margin: 0;
  color: var(--muted);
}

.pager {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}

.pager a {
  display: block;
  flex: 1 1 260px;
  min-width: 0;
  padding: 1rem 1.05rem;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: var(--panel-soft);
  text-decoration: none;
}

.pager a:hover {
  border-color: var(--line-strong);
}

.pager span {
  display: block;
}

.pager .label {
  color: var(--dim);
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.pager .title {
  margin-top: 0.32rem;
  color: var(--text);
  font-weight: 700;
}

.reference-card {
  padding: 1rem 1.05rem;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: var(--panel-soft);
}

.reference-card h3 {
  margin: 0 0 0.45rem;
}

.reference-card p {
  margin: 0;
  color: var(--muted);
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 1.1rem 0 2rem;
  color: var(--muted);
}

.site-footer .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1rem;
}

@media (max-width: 1099px) {
  .toc {
    display: none;
  }
}
