:root {
  --bg:          #07090f;
  --bg-card:     #0d1117;
  --bg-hover:    #111827;
  --border:      #1e293b;
  --border-mid:  #2d3748;
  --text:        #e2e8f0;
  --text-dim:    #94a3b8;
  --text-muted:  #64748b;
  --accent:      #22d3ee;
  --accent-glow: rgba(34,211,238,.12);
  --green:       #4ade80;
  --green-bg:    rgba(74,222,128,.1);
  --font:        'Inter', system-ui, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ── NAV ── */
.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
  padding: 0 24px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.nav-logo {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -.3px;
}
.nav-logo span { color: var(--accent); }

.nav-back {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--text-muted);
  text-decoration: none;
  transition: color .15s;
}
.nav-back:hover { color: var(--text); text-decoration: none; }
.nav-back svg { flex-shrink: 0; }

/* ── LAYOUT ── */
.wrap {
  max-width: 760px;
  margin: 0 auto;
  padding: 48px 24px 80px;
}

/* ── DOC HEADER ── */
.doc-header { margin-bottom: 36px; }

.doc-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-glow);
  border: 1px solid rgba(34,211,238,.25);
  border-radius: 20px;
  padding: 4px 12px;
  margin-bottom: 16px;
}

.doc-header h1 {
  font-size: 32px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -.5px;
  margin-bottom: 10px;
}

.doc-meta {
  font-size: 13px;
  color: var(--text-muted);
}

/* ── CALLOUT ── */
.callout {
  display: flex;
  gap: 14px;
  background: var(--green-bg);
  border: 1px solid rgba(74,222,128,.25);
  border-radius: 10px;
  padding: 18px 20px;
  margin-bottom: 40px;
}
.callout-icon { font-size: 18px; flex-shrink: 0; margin-top: 1px; }
.callout p { font-size: 14px; color: var(--text-dim); }
.callout strong { color: var(--text); }

/* ── SECTIONS ── */
.section {
  margin-bottom: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--border);
}
.section:last-of-type { border-bottom: none; }

.section h2 {
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.section-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  background: var(--accent-glow);
  border: 1px solid rgba(34,211,238,.25);
  border-radius: 50%;
  font-size: 11px;
  font-weight: 700;
  color: var(--accent);
  flex-shrink: 0;
}

.section p {
  font-size: 14px;
  color: var(--text-dim);
  margin-bottom: 12px;
}
.section p:last-child { margin-bottom: 0; }

.section ul, .section ol {
  padding-left: 20px;
  margin-bottom: 12px;
}
.section li {
  font-size: 14px;
  color: var(--text-dim);
  margin-bottom: 6px;
}
.section strong { color: var(--text); }

/* ── HIGHLIGHT BOX ── */
.highlight-box {
  background: var(--bg-hover);
  border: 1px solid var(--border-mid);
  border-left: 3px solid var(--accent);
  border-radius: 8px;
  padding: 14px 16px;
  margin: 14px 0;
}
.highlight-box p {
  font-size: 13px;
  color: var(--text-dim);
  margin: 0;
}

/* ── TABLE ── */
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  margin: 16px 0;
  border-radius: 8px;
  overflow: hidden;
}
.data-table th {
  background: var(--bg-hover);
  color: var(--text-muted);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: .05em;
  text-transform: uppercase;
  padding: 10px 14px;
  text-align: left;
  border-bottom: 1px solid var(--border-mid);
}
.data-table td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  color: var(--text-dim);
  vertical-align: top;
}
.data-table tr:last-child td { border-bottom: none; }
.data-table code {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  background: var(--bg-hover);
  padding: 2px 6px;
  border-radius: 4px;
  color: var(--accent);
}
.tag-no {
  color: var(--green);
  font-weight: 600;
  font-size: 12px;
}
.tag-yes {
  color: var(--text-muted);
  font-size: 12px;
}

/* ── DIVIDER ── */
.divider { border: none; border-top: 1px solid var(--border); margin: 40px 0; }

/* ── FOOTER NOTE ── */
.footer-note {
  font-size: 13px;
  color: var(--text-muted);
  text-align: center;
}
.footer-note a { color: var(--text-muted); text-decoration: underline; text-underline-offset: 3px; }
.footer-note a:hover { color: var(--accent); }

/* ── RESPONSIVE ── */
@media (max-width: 600px) {
  .wrap { padding: 32px 16px 60px; }
  .doc-header h1 { font-size: 24px; }
  .data-table { font-size: 12px; }
  .data-table th, .data-table td { padding: 8px 10px; }
}
