:root {
  color-scheme: light;
  --bg: #f7f8fb;
  --surface: #ffffff;
  --surface-strong: #f0f4f8;
  --ink: #17202a;
  --muted: #5c6b78;
  --line: #d9e1e8;
  --accent: #097a74;
  --accent-strong: #065f5b;
  --signal: #cc4b37;
  --code: #152434;
  --shadow: 0 18px 48px rgba(23, 32, 42, 0.12);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
}

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

a:hover {
  text-decoration: underline;
}

.shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 28px 24px;
  background: var(--surface);
  border-right: 1px solid var(--line);
  overflow: auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 28px;
}

.brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--accent), #263f8f 58%, var(--signal));
}

.brand-title {
  margin: 0;
  font-size: 16px;
  line-height: 1.2;
}

.brand-subtitle {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.search {
  width: 100%;
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: var(--surface-strong);
  font: inherit;
}

.nav {
  margin-top: 24px;
}

.nav-title {
  margin: 22px 0 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.nav a {
  display: block;
  padding: 7px 0;
  color: var(--ink);
  font-size: 15px;
}

.nav a[aria-current="page"] {
  color: var(--accent-strong);
  font-weight: 700;
}

.content {
  min-width: 0;
}

.topbar {
  display: flex;
  justify-content: flex-end;
  gap: 18px;
  padding: 18px 36px;
  border-bottom: 1px solid var(--line);
  background: rgba(247, 248, 251, 0.9);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 2;
}

.topbar a {
  color: var(--muted);
  font-size: 14px;
  font-weight: 650;
}

.hero {
  min-height: 360px;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(300px, 0.9fr);
  align-items: center;
  gap: 40px;
  padding: 56px 56px 36px;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent-strong);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  max-width: 760px;
  font-size: clamp(38px, 6vw, 68px);
  line-height: 1;
  letter-spacing: 0;
}

.lead {
  margin: 22px 0 0;
  max-width: 720px;
  color: var(--muted);
  font-size: 19px;
}

.hero-visual {
  min-height: 260px;
  border-radius: 8px;
  background-image: linear-gradient(180deg, rgba(9, 122, 116, 0.04), rgba(23, 32, 42, 0.18)), url("./docs-hero.webp");
  background-position: center;
  background-size: cover;
  box-shadow: var(--shadow);
}

.main {
  max-width: 1160px;
  padding: 42px 56px 72px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin: 28px 0 38px;
}

.card {
  min-height: 170px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.card h2 {
  margin: 0 0 10px;
  font-size: 20px;
}

.card-kicker {
  margin: 0 0 8px;
  color: var(--accent-strong);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

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

.doc-layout {
  display: grid;
  grid-template-columns: minmax(0, 760px) minmax(220px, 1fr);
  gap: 48px;
}

.article {
  padding: 12px 0;
}

.article h2 {
  margin-top: 34px;
  font-size: 26px;
}

.meta-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 22px 0 26px;
}

.meta-strip span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted);
  font-size: 13px;
  font-weight: 650;
}

.article p,
.article li {
  color: var(--muted);
}

.toc {
  position: sticky;
  top: 82px;
  align-self: start;
  padding: 18px;
  border-left: 3px solid var(--accent);
  background: var(--surface);
  border-radius: 8px;
}

.toc strong {
  display: block;
  margin-bottom: 10px;
}

.toc a {
  display: block;
  margin: 8px 0;
  color: var(--muted);
  font-size: 14px;
}

.callout {
  margin: 28px 0;
  padding: 18px 20px;
  border: 1px solid #b9ddd9;
  border-left: 4px solid var(--accent);
  border-radius: 8px;
  background: #eef8f7;
}

code {
  padding: 2px 6px;
  border-radius: 6px;
  background: var(--code);
  color: #ffffff;
}

.footer {
  padding: 28px 56px;
  color: var(--muted);
  border-top: 1px solid var(--line);
}

@media (max-width: 920px) {
  .shell {
    display: block;
  }

  .sidebar {
    position: static;
    height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .hero,
  .doc-layout {
    grid-template-columns: 1fr;
  }

  .hero,
  .main,
  .footer {
    padding-left: 24px;
    padding-right: 24px;
  }

  .grid {
    grid-template-columns: 1fr;
  }

  .toc {
    position: static;
  }
}
