
:root {
  --color-bg: #ffffff;
  --color-surface: #f7f8fb;
  --color-surface-2: #eef1f6;
  --color-border: #e1e5ec;
  --color-text: #1a1f2b;
  --color-text-muted: #5b6371;
  --color-primary: #0A513F;
  --color-primary-2: #126851;
  --color-accent: #0A513F;
  --color-accent-hover: #073829;
  --color-accent-2: #2563eb;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 4px 12px rgba(15, 23, 42, 0.08);
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Monaco, Consolas, monospace;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
}

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

.site-header {
  background: var(--color-primary);
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: var(--shadow-sm);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; color: #fff; }
.brand-logo { height: 34px; width: auto; display: block; }
.brand-divider { width: 1px; height: 22px; background: rgba(255,255,255,0.28); }
.brand-tag {
  font-weight: 500; font-size: 13px; color: rgba(255,255,255,0.85);
  letter-spacing: 0.3px; line-height: 1.2;
}
.primary-nav { display: flex; gap: 4px; }
.primary-nav a {
  color: rgba(255, 255, 255, 0.78); text-decoration: none;
  padding: 8px 14px; border-radius: 8px; font-weight: 500; font-size: 14px;
  transition: background 0.15s, color 0.15s;
}
.primary-nav a:hover { background: rgba(255,255,255,0.08); color: #fff; }
.primary-nav a.active { background: rgba(255,255,255,0.16); color: #fff; }

.page {
  display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 32px;
  padding-top: 32px; padding-bottom: 64px; align-items: start;
}

.sidebar {
  position: sticky; top: 96px;
  background: var(--color-surface); border: 1px solid var(--color-border);
  border-radius: var(--radius-md); padding: 18px; font-size: 14px;
}
.sidebar-title {
  margin: 0 0 12px 0; font-size: 11px; font-weight: 700;
  letter-spacing: 1px; text-transform: uppercase; color: var(--color-text-muted);
}
.sidebar-nav { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 2px; }
.sidebar-nav li a {
  display: block; padding: 8px 10px; border-radius: 6px;
  text-decoration: none; color: var(--color-text); line-height: 1.35;
  transition: background 0.12s, color 0.12s;
}
.sidebar-nav li a:hover { background: var(--color-surface-2); color: var(--color-primary); }
.sidebar-nav li.active > a {
  background: #e8eef9; color: var(--color-primary); font-weight: 600;
  box-shadow: inset 3px 0 0 var(--color-primary);
}

.content { min-width: 0; }

.breadcrumb {
  font-size: 13px; color: var(--color-text-muted);
  display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-bottom: 20px;
}
.breadcrumb a { color: var(--color-text-muted); text-decoration: none; transition: color 0.12s; }
.breadcrumb a:hover { color: var(--color-accent); }
.breadcrumb .current { color: var(--color-text); font-weight: 500; }
.breadcrumb span { user-select: none; }

.document {
  background: #fff; border: 1px solid var(--color-border);
  border-radius: var(--radius-lg); padding: 40px 48px;
  box-shadow: var(--shadow-sm); max-width: 820px;
}

.document h1 {
  font-size: 30px; line-height: 1.2; font-weight: 700;
  margin: 0 0 8px 0; color: var(--color-primary); letter-spacing: -0.5px;
}
.document h2 {
  font-size: 20px; line-height: 1.3; font-weight: 700;
  color: var(--color-primary); margin: 32px 0 12px 0;
  padding-bottom: 8px; border-bottom: 1px solid var(--color-border);
}
.document h3 { font-size: 16px; font-weight: 700; color: var(--color-text); margin: 24px 0 8px 0; }
.document h4 {
  font-size: 14px; font-weight: 700; color: var(--color-text);
  margin: 18px 0 6px 0; text-transform: uppercase; letter-spacing: 0.4px;
}
.document p { margin: 10px 0; }
.document ul, .document ol { margin: 10px 0; padding-left: 24px; }
.document li { margin: 4px 0; }
.document strong { color: var(--color-text); font-weight: 650; }
.document a {
  color: var(--color-accent); text-decoration: none;
  border-bottom: 1px solid rgba(37, 99, 235, 0.25);
  transition: border-color 0.12s, color 0.12s;
}
.document a:hover { color: var(--color-accent-hover); border-bottom-color: var(--color-accent-hover); }
.document code {
  font-family: var(--font-mono); font-size: 0.88em;
  background: var(--color-surface); border: 1px solid var(--color-border);
  border-radius: 4px; padding: 1px 6px; color: var(--color-primary-2);
}
.document pre {
  background: var(--color-surface); border: 1px solid var(--color-border);
  border-radius: var(--radius-sm); padding: 12px 16px; overflow-x: auto;
  font-size: 13px; line-height: 1.5;
}
.document pre code { background: transparent; border: none; padding: 0; color: var(--color-text); }
.document hr { border: none; border-top: 1px solid var(--color-border); margin: 28px 0; }
.document blockquote {
  border-left: 3px solid var(--color-primary); padding: 4px 16px;
  color: var(--color-text-muted); margin: 14px 0;
  background: var(--color-surface); border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.document table {
  width: 100%; border-collapse: collapse; margin: 18px 0;
  font-size: 14px; border: 1px solid var(--color-border);
  border-radius: var(--radius-sm); overflow: hidden;
}
.document thead { background: var(--color-surface-2); }
.document th, .document td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--color-border); }
.document th { font-weight: 650; color: var(--color-primary); font-size: 13px; letter-spacing: 0.2px; }
.document tr:last-child td { border-bottom: none; }
.document tr:nth-child(even) td { background: rgba(247, 248, 251, 0.5); }

.pager {
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px;
  margin-top: 36px; max-width: 820px;
}
.pager a {
  display: flex; flex-direction: column; text-decoration: none;
  padding: 14px 18px; border: 1px solid var(--color-border);
  border-radius: var(--radius-md); background: #fff; color: var(--color-text);
  transition: border-color 0.15s, transform 0.12s, box-shadow 0.15s; min-height: 64px;
}
.pager a:hover { border-color: var(--color-primary); box-shadow: var(--shadow-sm); transform: translateY(-1px); }
.pager .label { font-size: 11px; text-transform: uppercase; letter-spacing: 0.6px; color: var(--color-text-muted); font-weight: 600; }
.pager .title { font-weight: 600; color: var(--color-primary); margin-top: 4px; line-height: 1.3; }
.pager .prev { text-align: left; }
.pager .next { text-align: right; align-items: flex-end; }

.site-footer {
  border-top: 1px solid var(--color-border); background: var(--color-surface);
  padding: 24px 0; color: var(--color-text-muted); font-size: 13px; text-align: center;
}

.hero { padding: 56px 0 32px 0; text-align: center; }
.hero-eyebrow {
  font-size: 12px; text-transform: uppercase; letter-spacing: 1.5px;
  color: var(--color-text-muted); font-weight: 600; margin-bottom: 14px;
}
.hero h1 {
  font-size: 40px; line-height: 1.15; font-weight: 700;
  margin: 0 0 14px 0; color: var(--color-primary); letter-spacing: -1px;
}
.hero p.lede {
  font-size: 17px; color: var(--color-text-muted);
  max-width: 720px; margin: 0 auto; line-height: 1.55;
}
.meta-strip {
  display: flex; justify-content: center; gap: 36px; flex-wrap: wrap;
  padding: 20px 0 36px 0; font-size: 13px; color: var(--color-text-muted);
}
.meta-strip .meta { display: flex; flex-direction: column; align-items: center; }
.meta-strip .meta-label { font-size: 11px; text-transform: uppercase; letter-spacing: 1px; }
.meta-strip .meta-value { color: var(--color-text); font-weight: 600; font-size: 14px; margin-top: 2px; }

.section-cards {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; padding-bottom: 48px;
}
.section-card {
  background: #fff; border: 1px solid var(--color-border);
  border-radius: var(--radius-lg); padding: 28px;
  box-shadow: var(--shadow-sm); display: flex; flex-direction: column;
}
.section-card h2 { margin: 0 0 6px 0; font-size: 20px; color: var(--color-primary); font-weight: 700; }
.section-card .section-subtitle { color: var(--color-text-muted); font-size: 14px; margin: 0 0 18px 0; }
.section-card .section-list { list-style: none; padding: 0; margin: 0; }
.section-card .section-list li { border-top: 1px solid var(--color-border); }
.section-card .section-list li:first-child { border-top: none; }
.section-card .section-list a {
  display: flex; align-items: center; gap: 12px; padding: 12px 4px;
  color: var(--color-text); text-decoration: none; transition: color 0.12s;
}
.section-card .section-list a:hover { color: var(--color-accent); }
.section-card .section-list .num {
  flex: 0 0 auto; width: 28px; height: 28px;
  background: var(--color-surface); border: 1px solid var(--color-border);
  color: var(--color-primary); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700;
}
.section-card .section-list .num.meta {
  background: var(--color-primary); color: #fff;
  border-color: var(--color-primary); font-size: 10px;
}
.section-card .section-list .label-wrap { display: flex; flex-direction: column; min-width: 0; }
.section-card .section-list .label-title { font-weight: 600; line-height: 1.3; }
.section-card .section-list .label-sub { color: var(--color-text-muted); font-size: 12px; }

.overview-callout {
  background: linear-gradient(135deg, #0A513F 0%, #126851 100%);
  color: #fff; border-radius: var(--radius-lg);
  padding: 28px 32px; margin: 0 0 32px 0;
  box-shadow: var(--shadow-md);
  display: flex; flex-direction: column; gap: 12px;
}
.overview-callout h3 { margin: 0; font-size: 18px; font-weight: 700; }
.overview-callout p { margin: 0; line-height: 1.55; opacity: 0.92; font-size: 14.5px; }
.overview-callout a.btn {
  align-self: flex-start; background: #fff; color: var(--color-primary);
  text-decoration: none; padding: 8px 16px; border-radius: 8px;
  font-weight: 600; font-size: 14px; transition: background 0.12s; border: none;
}
.overview-callout a.btn:hover { background: #e7f1ec; }

@media (max-width: 900px) {
  .page { grid-template-columns: 1fr; gap: 16px; }
  .sidebar { position: static; }
  .document { padding: 28px 24px; }
  .hero h1 { font-size: 30px; }
  .section-cards { grid-template-columns: 1fr; }
}
