/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'Barlow', sans-serif; background: #F6F6F2; color: #1A1A1A; line-height: 1.7; font-size: 16px; overflow-x: hidden; }
a { color: #1A1A1A; text-decoration: underline; }
a:hover { color: #888; }

/* ── Design Tokens ── */
:root {
  --lime: #D4E90E;
  --dark: #1A1A1A;
  --muted: #666;
  --muted-light: #888;
  --border: #E0E0DA;
  --border-dark: #2E2E2E;
  --px: clamp(20px, 5vw, 40px);
}

/* ── Top Navigation ── */
.topnav {
  background: var(--dark); padding: 0 var(--px); height: 64px;
  display: flex; align-items: center; justify-content: space-between;
  position: sticky; top: 0; z-index: 50;
}
.topnav-logo {
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Helvetica Neue', sans-serif;
  font-size: 22px; font-weight: 800; letter-spacing: -.02em; color: #fff;
  text-decoration: none; display: flex; align-items: center; gap: 10px;
}
.topnav-logo-icon {
  width: 34px; height: 34px; border-radius: 8px;
  background: var(--lime); display: flex; align-items: center; justify-content: center;
}
.topnav-back {
  font-size: 14px; color: rgba(255,255,255,.55); text-decoration: none;
  display: flex; align-items: center; gap: 6px; transition: color .2s;
  align-self: stretch; padding: 0 4px;
}
.topnav-back:hover { color: var(--lime); }

/* ── Document Layout ── */
.doc-wrap { max-width: var(--max, 760px); margin: 0 auto; padding: 60px var(--px) 100px; }
.doc-meta { font-size: 13px; color: var(--muted); margin-bottom: 8px; }
.doc-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: clamp(34px, 6vw, 52px); font-weight: 800;
  line-height: 1.05; margin-bottom: 8px;
}
.doc-updated {
  font-size: 13px; color: var(--muted);
  padding-bottom: 32px; border-bottom: 1px solid var(--border); margin-bottom: 40px;
}
.doc-intro { font-size: 17px; color: #444; line-height: 1.7; margin-bottom: 48px; }

/* ── Table of Contents ── */
.toc {
  background: #fff; border: 1px solid var(--border); border-radius: 12px;
  padding: 24px 28px; margin-bottom: 48px;
}
.toc-title {
  font-weight: 700; font-size: 14px; text-transform: uppercase;
  letter-spacing: .08em; color: var(--muted); margin-bottom: 12px;
}
.toc ol { padding-left: 20px; display: flex; flex-direction: column; gap: 6px; }
.toc li a { font-size: 15px; color: var(--dark); text-decoration: underline; transition: color .2s; }
.toc li a:hover { color: #888; }

/* ── Document Sections ── */
.doc-section { margin-bottom: 48px; }
.doc-section h2 {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 26px; font-weight: 800; margin-bottom: 16px;
  padding-top: 24px; border-top: 1px solid var(--border);
  scroll-margin-top: 80px;
}
.doc-section h3 { font-size: 17px; font-weight: 700; margin: 20px 0 8px; }
.doc-section p { font-size: 16px; color: #333; margin-bottom: 14px; }
.doc-section ul, .doc-section ol { padding-left: 20px; margin-bottom: 14px; }
.doc-section li { font-size: 16px; color: #333; margin-bottom: 6px; }
.doc-section strong { font-weight: 600; color: var(--dark); }

/* ── Callout Boxes ── */
.highlight-box {
  background: rgba(212,233,14,.1); border: 1px solid rgba(212,233,14,.3);
  border-radius: 10px; padding: 16px 20px; margin: 20px 0; font-size: 15px; color: #444;
}
.warn-box {
  background: #FFF8E1; border: 1px solid #FFE082;
  border-radius: 10px; padding: 16px 20px; margin: 20px 0; font-size: 15px; color: #555;
}

/* ── Document Footer ── */
.doc-footer {
  border-top: 1px solid var(--border); margin-top: 60px; padding-top: 32px;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
}
.doc-footer a { color: var(--muted); font-size: 14px; }
.doc-footer-links { display: flex; gap: 20px; flex-wrap: wrap; }
