:root {
  color-scheme: light;
  --ink: #17231f;
  --muted: #63716c;
  --line: #dce3e0;
  --brand: #08765f;
  --dark: #0f211d;
  --surface: #f5f8f6;
  font-family: Inter, "Segoe UI", "Noto Sans SC", system-ui, sans-serif;
  color: var(--ink);
  background: #fff;
  font-synthesis: none;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 94px; }
body { min-width: 320px; margin: 0; }
a { color: inherit; text-decoration: none; }

.docs-header {
  position: sticky;
  z-index: 5;
  top: 0;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: 64px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, .94);
  padding: 0 max(24px, calc((100% - 1240px) / 2));
  backdrop-filter: blur(16px);
  font-size: 11px;
}
.docs-header a { justify-self: start; color: var(--brand); font-weight: 700; }
.docs-header strong { font-size: 12px; }
.docs-header > span { justify-self: end; border-radius: 999px; background: var(--surface); padding: 5px 9px; font: 9px "Cascadia Mono", Consolas, monospace; }

.docs-layout { display: grid; grid-template-columns: 210px minmax(0, 820px); gap: 70px; width: min(1100px, calc(100% - 44px)); margin: 0 auto; }
aside { position: sticky; top: 92px; align-self: start; max-height: calc(100vh - 116px); overflow-y: auto; border-right: 1px solid var(--line); padding: 28px 28px 28px 0; }
aside p { margin: 23px 0 7px; color: #9aa6a1; font-size: 9px; font-weight: 750; letter-spacing: .1em; text-transform: uppercase; }
aside p:first-child { margin-top: 0; }
aside a { display: block; border-radius: 5px; padding: 6px 8px; color: var(--muted); font-size: 11px; }
aside a:hover { background: var(--surface); color: var(--brand); }

main { min-width: 0; padding-bottom: 100px; }
.docs-hero { border: 0; padding: 94px 0 72px; }
.eyebrow { margin: 0 0 18px; color: var(--brand); font-size: 9px; font-weight: 760; letter-spacing: .14em; }
.docs-hero h1 { margin: 0; font-size: clamp(43px, 6vw, 66px); letter-spacing: -.06em; }
.docs-hero > p:not(.eyebrow) { max-width: 650px; margin: 20px 0 0; color: var(--muted); font-size: 16px; line-height: 1.75; }
.hero-links { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 28px; }
.hero-links a { border: 1px solid var(--line); border-radius: 7px; padding: 9px 12px; color: var(--brand); font-size: 10px; font-weight: 700; }
.hero-links a:first-child { border-color: var(--dark); background: var(--dark); color: #fff; }

main section:not(.docs-hero) { border-top: 1px solid var(--line); padding: 64px 0; }
h2 { margin: 0 0 22px; font-size: 30px; letter-spacing: -.045em; }
h3 { margin: 35px 0 12px; font-size: 17px; letter-spacing: -.02em; }
p { color: var(--muted); line-height: 1.75; }
section > p { max-width: 760px; }
code { font-family: "Cascadia Mono", "SFMono-Regular", Consolas, monospace; }
p code, td code { border-radius: 4px; background: #edf3f0; padding: 2px 5px; color: #185f4d; font-size: .88em; }
pre { margin: 20px 0; overflow-x: auto; border: 1px solid #1d3530; border-radius: 9px; background: var(--dark); padding: 19px 20px; color: #d6e8e2; font-size: 11px; line-height: 1.8; }
pre code { font-family: "Cascadia Mono", "SFMono-Regular", Consolas, monospace; }

.callout { display: grid; grid-template-columns: 190px 1fr; gap: 25px; border-top: 1px solid var(--line); padding: 18px 0; }
.callout:last-of-type { border-bottom: 1px solid var(--line); }
.callout b { font-size: 12px; }
.callout p { margin: 0; font-size: 12px; }
.note { margin: 24px 0; border-left: 3px solid #4db49b; border-radius: 0 7px 7px 0; background: #eef8f4; padding: 16px 18px; }
.note b { color: #175d4c; font-size: 12px; }
.note p { margin: 5px 0 0; font-size: 12px; }

table { width: 100%; border-collapse: collapse; margin: 20px 0; font-size: 12px; }
th, td { border-bottom: 1px solid var(--line); padding: 12px 10px; text-align: left; }
th { color: #87938f; font-size: 9px; text-transform: uppercase; letter-spacing: .08em; }
td:first-child { width: 120px; }

footer { display: flex; justify-content: space-between; border-top: 1px solid var(--line); padding: 26px max(22px, calc((100% - 1100px) / 2)) 40px; color: var(--muted); font-size: 10px; }
footer a { color: var(--brand); font-weight: 700; }

@media (max-width: 820px) {
  .docs-layout { grid-template-columns: 1fr; }
  aside { display: none; }
  .docs-header { grid-template-columns: 1fr auto; }
  .docs-header strong { display: none; }
}

@media (max-width: 560px) {
  .docs-layout { width: calc(100% - 28px); }
  .docs-header { padding: 0 14px; }
  .docs-hero { padding-top: 66px; }
  main section:not(.docs-hero) { padding: 52px 0; }
  .callout { grid-template-columns: 1fr; gap: 6px; }
  pre { margin-inline: -4px; padding: 16px; font-size: 10px; }
  footer { flex-direction: column; gap: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
