:root {
  --bg0: #e8eef2;
  --bg1: #f4f7f9;
  --surface: rgba(255, 255, 255, 0.92);
  --ink: #0b1c24;
  --text: #15262e;
  --muted: #5c727c;
  --accent: #0f766e;
  --accent-dark: #0b5f59;
  --accent-soft: #d8f3ef;
  --border: rgba(15, 38, 46, 0.12);
  --font: "Figtree", sans-serif;
  --display: "Syne", sans-serif;
  --shadow: 0 10px 28px rgba(11, 28, 36, 0.08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100dvh;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg0);
  font-size: 15px;
  line-height: 1.55;
  display: flex;
  flex-direction: column;
}

.app-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(900px 480px at 8% -10%, rgba(20, 184, 166, 0.16), transparent 60%),
    radial-gradient(700px 420px at 92% 8%, rgba(15, 118, 110, 0.1), transparent 55%),
    linear-gradient(165deg, var(--bg1), var(--bg0));
}

.doc-layout {
  flex: 1;
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 1.25rem;
  max-width: 1100px;
  width: 100%;
  margin: 0 auto;
  padding: 1.25rem 1.1rem 2rem;
}

.doc-sidebar {
  position: sticky;
  top: 1rem;
  align-self: start;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1rem;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.side-title {
  margin: 0 0 0.5rem;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 700;
  color: var(--muted);
}
.doc-sidebar a {
  color: var(--text);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 600;
  padding: 0.4rem 0.5rem;
  border-radius: 8px;
}
.doc-sidebar a:hover {
  background: var(--accent-soft);
  color: var(--accent-dark);
}

.doc-main {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.5rem 1.6rem 2rem;
  box-shadow: var(--shadow);
}

.doc-hero .eyebrow {
  margin: 0 0 0.4rem;
  color: var(--accent-dark);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.doc-hero h1 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  letter-spacing: -0.03em;
}
.doc-hero .lead {
  margin: 0.75rem 0 0;
  color: var(--muted);
  max-width: 40rem;
}

.doc-section {
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
}
.doc-section h2 {
  margin: 0 0 0.75rem;
  font-family: var(--display);
  font-size: 1.2rem;
  letter-spacing: -0.02em;
}
.doc-section ul, .doc-section ol { margin: 0.4rem 0 0; padding-left: 1.2rem; }
.doc-section li { margin: 0.35rem 0; }
.doc-section p { margin: 0.65rem 0 0; color: var(--text); }
.doc-section a { color: var(--accent-dark); font-weight: 600; }
.doc-section code {
  background: #eef5f4;
  border: 1px solid var(--border);
  border-radius: 5px;
  padding: 0.08rem 0.35rem;
  font-size: 0.86em;
}

.doc-section table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 0.75rem;
  font-size: 0.92rem;
}
.doc-section th, .doc-section td {
  text-align: left;
  padding: 0.55rem 0.5rem;
  border-bottom: 1px solid var(--border);
}
.doc-section th {
  color: var(--muted);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.site-footer {
  text-align: center;
  padding: 1.25rem 1rem 1.75rem;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.45;
}
.site-footer p { margin: 0; }

@media (max-width: 800px) {
  .doc-layout { grid-template-columns: 1fr; }
  .doc-sidebar {
    position: static;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.35rem;
  }
  .side-title { width: 100%; }
}
