/* Agentic Skills Framework — Documentation Styles */
/* Clean documentation aesthetic */

:root {
  --bg: #ffffff;
  --bg-alt: #f8fafc;
  --bg-card: #ffffff;
  --bg-code: #f1f5f9;
  --text: #0f172a;
  --text-secondary: #475569;
  --text-muted: #94a3b8;
  --border: #e2e8f0;
  --accent: #7C3AED;
  --accent-light: #a78bfa;
  --accent-bg: #f5f3ff;
  --green: #16a34a;
  --yellow: #ca8a04;
  --red: #dc2626;
  --blue: #2563eb;
  --radius: 8px;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --mono: 'JetBrains Mono', 'SF Mono', 'Fira Code', monospace;
}

/* Dark mode — applied via data-theme or system preference */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0c0a1d;
    --bg-alt: #110f26;
    --bg-card: #16142d;
    --bg-code: #1a1836;
    --text: #e2e8f0;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --border: #2d2b4a;
    --accent-bg: #1e1a3a;
  }
}
:root[data-theme="dark"] {
  --bg: #0c0a1d;
  --bg-alt: #110f26;
  --bg-card: #16142d;
  --bg-code: #1a1836;
  --text: #e2e8f0;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --border: #2d2b4a;
  --accent-bg: #1e1a3a;
}

/* Theme toggle button */
.theme-toggle { background: var(--bg-card); border: 1px solid var(--border); border-radius: 6px; width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; cursor: pointer; color: var(--text-secondary); transition: all 0.2s; padding: 0; margin-left: 8px; }
.theme-toggle:hover { border-color: var(--accent); color: var(--accent); }
.theme-toggle svg { width: 18px; height: 18px; }
.theme-toggle .icon-sun { display: none; }
.theme-toggle .icon-moon { display: block; }
:root[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
:root[data-theme="dark"] .theme-toggle .icon-moon { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .icon-sun { display: block; }
  :root:not([data-theme="light"]) .theme-toggle .icon-moon { display: none; }
}

* { margin: 0; padding: 0; box-sizing: border-box; }
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; }
.container { max-width: 960px; margin: 0 auto; padding: 0 24px; }
.muted { color: var(--text-muted); }

/* ─── Nav ─── */
.nav { position: sticky; top: 0; z-index: 100; background: var(--bg); border-bottom: 1px solid var(--border); backdrop-filter: blur(12px); }
.nav-inner { max-width: 960px; margin: 0 auto; padding: 0 24px; height: 56px; display: flex; align-items: center; justify-content: space-between; }
.nav-brand { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 0.95rem; color: var(--text); text-decoration: none; }
.nav-brand:hover { text-decoration: none; }
.nav-links { display: flex; align-items: center; gap: 24px; }
.nav-links a { color: var(--text-secondary); font-size: 0.9rem; font-weight: 500; text-decoration: none; }
.nav-links a:hover { color: var(--text); text-decoration: none; }
.nav-github { display: flex; }

/* ─── Hero ─── */
.hero { padding: 80px 0 64px; text-align: center; }
.hero-badge { display: inline-block; padding: 4px 14px; background: var(--accent-bg); color: var(--accent); border: 1px solid var(--border); border-radius: 999px; font-size: 0.8rem; font-weight: 500; margin-bottom: 24px; }
.hero-badge a { color: inherit; }
.hero h1 { font-size: 3rem; font-weight: 700; line-height: 1.15; letter-spacing: -0.025em; margin-bottom: 20px; }
@media (max-width: 640px) { .hero h1 { font-size: 2rem; } }
.hero-sub { font-size: 1.15rem; color: var(--text-secondary); max-width: 580px; margin: 0 auto 32px; line-height: 1.6; }
.hero-actions { display: flex; gap: 12px; justify-content: center; margin-bottom: 32px; flex-wrap: wrap; }
.hero-badges { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.hero-badges img { height: 22px; }

/* ─── Buttons ─── */
.btn { display: inline-flex; align-items: center; padding: 10px 24px; border-radius: 8px; font-size: 0.9rem; font-weight: 500; font-family: var(--font); cursor: pointer; border: none; text-decoration: none; transition: all 0.15s; }
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { opacity: 0.9; }
.btn-secondary { background: transparent; color: var(--text); border: 1px solid var(--border); }
.btn-secondary:hover { border-color: var(--text-muted); }
.btn-sm { padding: 6px 16px; font-size: 0.85rem; }

/* ─── Sections ─── */
.section { padding: 64px 0; }
.section-alt { background: var(--bg-alt); }
.section-title { font-size: 1.75rem; font-weight: 700; margin-bottom: 12px; letter-spacing: -0.015em; }
.section-desc { color: var(--text-secondary); font-size: 1.05rem; margin-bottom: 32px; max-width: 640px; }
.subsection-title { font-size: 1.15rem; font-weight: 600; margin: 32px 0 12px; }

/* ─── Cards ─── */
.card-grid { display: grid; gap: 16px; }
.cols-2 { grid-template-columns: repeat(2, 1fr); }
.cols-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 768px) { .cols-2, .cols-3 { grid-template-columns: 1fr; } }
.card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; position: relative; }
.card h3 { font-size: 1rem; font-weight: 600; margin-bottom: 8px; }
.card p { color: var(--text-secondary); font-size: 0.9rem; line-height: 1.5; }
.card-icon { margin-bottom: 12px; }
.card-link { text-decoration: none; color: var(--text); transition: border-color 0.15s; }
.card-link:hover { border-color: var(--accent); text-decoration: none; }
.card-arrow { position: absolute; top: 24px; right: 24px; color: var(--text-muted); font-size: 1.1rem; }
.card-link:hover .card-arrow { color: var(--accent); }
.card-code { padding: 20px; }
.card-code h3 { margin-bottom: 12px; }

/* ─── Code ─── */
pre, .code-block { background: var(--bg-code); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px 20px; overflow-x: auto; font-family: var(--mono); font-size: 0.85rem; line-height: 1.6; margin: 16px 0; }
code { font-family: var(--mono); font-size: 0.88em; background: var(--bg-code); padding: 2px 6px; border-radius: 4px; }
pre code { background: none; padding: 0; font-size: inherit; }
.c-comment { color: var(--text-muted); }
.c-kw { color: var(--accent); }
.c-str { color: var(--green); }

/* ─── Tables ─── */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
th { background: var(--bg-alt); text-align: left; padding: 10px 14px; border: 1px solid var(--border); font-weight: 600; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.03em; color: var(--text-secondary); }
td { padding: 10px 14px; border: 1px solid var(--border); }
td code { font-size: 0.82rem; }

/* Badges in tables */
.badge { display: inline-block; padding: 2px 8px; border-radius: 4px; font-size: 0.75rem; font-weight: 600; }
.badge-error { background: #fef2f2; color: var(--red); }
.badge-warn { background: #fffbeb; color: var(--yellow); }
.badge-info { background: #eff6ff; color: var(--blue); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .badge-error { background: #2d1515; }
  :root:not([data-theme="light"]) .badge-warn { background: #2d2515; }
  :root:not([data-theme="light"]) .badge-info { background: #151e2d; }
}
:root[data-theme="dark"] .badge-error { background: #2d1515; }
:root[data-theme="dark"] .badge-warn { background: #2d2515; }
:root[data-theme="dark"] .badge-info { background: #151e2d; }

/* ─── Demo ─── */
.demo-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 768px) { .demo-grid { grid-template-columns: 1fr; } }
.demo-input label, .demo-output-wrap label { display: block; font-size: 0.85rem; font-weight: 500; color: var(--text-secondary); margin-bottom: 8px; }
.demo-input textarea { width: 100%; min-height: 280px; background: var(--bg-code); color: var(--text); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px; font-family: var(--mono); font-size: 0.82rem; line-height: 1.5; resize: vertical; }
.demo-input textarea:focus { outline: 2px solid var(--accent); outline-offset: -1px; }
.demo-buttons { display: flex; gap: 8px; margin-top: 10px; }
.demo-output { background: var(--bg-code); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px; font-family: var(--mono); font-size: 0.82rem; line-height: 1.6; min-height: 280px; overflow-y: auto; }
.r-ok { color: var(--green); padding: 4px 0; }
.r-ok::before { content: "✓ "; }
.r-error { color: var(--red); padding: 4px 0; }
.r-error::before { content: "✗ "; }
.r-warn { color: var(--yellow); padding: 4px 0; }
.r-warn::before { content: "⚠ "; }
.r-info { color: var(--blue); padding: 4px 0; }
.r-info::before { content: "ℹ "; }
.r-err { color: var(--red); padding: 4px 0; }

/* ─── TOC (concepts page) ─── */
.toc { background: var(--bg-alt); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px 32px; margin: 0 0 48px; }
.toc h2 { font-size: 0.8rem; color: var(--text-muted); margin-bottom: 12px; text-transform: uppercase; letter-spacing: 0.06em; font-weight: 600; }
.toc ol { padding-left: 20px; }
.toc li { margin: 5px 0; }
.toc a { color: var(--text); font-size: 0.95rem; }
.toc a:hover { color: var(--accent); }

/* ─── Concepts page sections ─── */
.doc-section { margin: 48px 0; }
.doc-section h2 { font-size: 1.5rem; font-weight: 700; margin-bottom: 16px; padding-top: 24px; border-top: 1px solid var(--border); }
.doc-section h3 { font-size: 1.1rem; font-weight: 600; margin: 24px 0 10px; color: var(--accent); }
.doc-section h4 { font-size: 0.95rem; font-weight: 600; margin: 16px 0 8px; }
.doc-section p { margin: 10px 0; color: var(--text-secondary); }
.doc-section ul, .doc-section ol { margin: 10px 0; padding-left: 24px; color: var(--text-secondary); }
.doc-section li { margin: 4px 0; }
.doc-section table { margin: 16px 0; }
.doc-section strong { color: var(--text); }

/* Callouts */
.callout { border-left: 3px solid var(--accent); background: var(--accent-bg); padding: 14px 18px; margin: 16px 0; border-radius: 0 var(--radius) var(--radius) 0; font-size: 0.9rem; }
.callout.warn { border-left-color: var(--yellow); background: #fffbeb; }
.callout.tip { border-left-color: var(--green); background: #f0fdf4; }
.callout.info { border-left-color: var(--blue); background: #eff6ff; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .callout { background: var(--accent-bg); }
  :root:not([data-theme="light"]) .callout.warn { background: #1a1700; }
  :root:not([data-theme="light"]) .callout.tip { background: #001a0a; }
  :root:not([data-theme="light"]) .callout.info { background: #000f1a; }
}
:root[data-theme="dark"] .callout { background: var(--accent-bg); }
:root[data-theme="dark"] .callout.warn { background: #1a1700; }
:root[data-theme="dark"] .callout.tip { background: #001a0a; }
:root[data-theme="dark"] .callout.info { background: #000f1a; }
.callout strong { display: block; margin-bottom: 4px; color: var(--text); }

/* Diagram */
.diagram { background: var(--bg-alt); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; margin: 16px 0; text-align: center; font-family: var(--mono); font-size: 0.9rem; }
.tier { display: inline-block; padding: 8px 18px; border-radius: 6px; margin: 4px; font-weight: 500; }
.tier-1 { background: #f5f3ff; border: 1px solid var(--accent); color: var(--accent); }
.tier-2 { background: #eff6ff; border: 1px solid var(--blue); color: var(--blue); }
.tier-3 { background: #f0fdf4; border: 1px solid var(--green); color: var(--green); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .tier-1 { background: #1e1a3a; }
  :root:not([data-theme="light"]) .tier-2 { background: #0f1a2e; }
  :root:not([data-theme="light"]) .tier-3 { background: #0a1a10; }
}
:root[data-theme="dark"] .tier-1 { background: #1e1a3a; }
:root[data-theme="dark"] .tier-2 { background: #0f1a2e; }
:root[data-theme="dark"] .tier-3 { background: #0a1a10; }
.arrow { color: var(--text-muted); margin: 0 4px; }

/* ─── Gallery ─── */
.gallery-controls { margin-bottom: 16px; }
.gallery-filters { display: flex; gap: 16px; align-items: center; margin-bottom: 12px; flex-wrap: wrap; }
.search-wrap { position: relative; flex: 1; min-width: 200px; }
.search-icon { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--text-muted); pointer-events: none; }
.search-input { width: 100%; padding: 10px 36px 10px 36px; background: var(--bg-card); color: var(--text); border: 1px solid var(--border); border-radius: var(--radius); font-family: var(--font); font-size: 0.9rem; outline: none; transition: border-color 0.15s, box-shadow 0.15s; }
.search-input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-bg); }
.search-input::placeholder { color: var(--text-muted); }
.search-clear { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); width: 24px; height: 24px; background: var(--bg-alt); border: 1px solid var(--border); border-radius: 50%; color: var(--text-muted); font-size: 1rem; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: all 0.15s; }
.search-clear:hover { background: var(--red); color: #fff; border-color: var(--red); }
.filter-buttons { display: flex; gap: 6px; flex-wrap: wrap; }
.filter-btn { padding: 6px 14px; background: var(--bg-card); color: var(--text-secondary); border: 1px solid var(--border); border-radius: 999px; font-family: var(--font); font-size: 0.82rem; font-weight: 500; cursor: pointer; transition: all 0.2s ease; }
.filter-btn:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-bg); }
.filter-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.filter-btn.active { background: var(--accent); color: #fff; border-color: var(--accent); box-shadow: 0 2px 8px rgba(124,58,237,0.25); }
.filter-count { font-weight: 400; opacity: 0.7; font-size: 0.75rem; }

.gallery-sort { display: flex; align-items: center; gap: 8px; }
.sort-select { padding: 6px 12px; background: var(--bg-card); color: var(--text); border: 1px solid var(--border); border-radius: var(--radius); font-family: var(--font); font-size: 0.82rem; cursor: pointer; outline: none; }
.sort-select:focus-visible { border-color: var(--accent); outline: 2px solid var(--accent); outline-offset: 2px; }

.gallery-stat { color: var(--text-muted); font-size: 0.9rem; margin-top: 8px; }

/* ─── Facet filters ─── */
.facet-filters { display: flex; gap: 6px; margin-bottom: 24px; flex-wrap: wrap; }
.facet-btn { display: inline-flex; align-items: center; gap: 4px; padding: 5px 12px; background: var(--bg-card); color: var(--text-muted); border: 1px solid var(--border); border-radius: 6px; font-family: var(--font); font-size: 0.78rem; font-weight: 500; cursor: pointer; transition: all 0.2s ease; }
.facet-btn:hover { border-color: var(--accent-light); color: var(--accent); }
.facet-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.facet-btn.active { background: var(--accent-bg); color: var(--accent); border-color: var(--accent); }

/* ─── Active filters bar ─── */
.active-filters { display: flex; align-items: center; gap: 8px; margin-bottom: 16px; flex-wrap: wrap; padding: 8px 12px; background: var(--accent-bg); border: 1px solid var(--border); border-radius: var(--radius); }
.active-filters-label { font-size: 0.78rem; color: var(--text-muted); font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; }
.active-tag { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; background: var(--bg-card); border: 1px solid var(--border); border-radius: 4px; font-size: 0.78rem; color: var(--text); }
.active-tag button { background: none; border: none; color: var(--text-muted); cursor: pointer; font-size: 0.9rem; padding: 0 2px; line-height: 1; }
.active-tag button:hover { color: var(--red); }
.clear-all-btn { margin-left: auto; padding: 2px 10px; background: none; border: 1px solid var(--border); border-radius: 4px; color: var(--text-muted); font-family: var(--font); font-size: 0.75rem; cursor: pointer; transition: all 0.15s; }
.clear-all-btn:hover { border-color: var(--red); color: var(--red); }

/* ─── Skill cards ─── */
.card-skill { display: flex; flex-direction: column; animation: fadeSlideIn 0.3s ease both; }
.card-skill .card-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.card-skill h3 { margin-bottom: 0; }
.card-skill:hover { border-color: var(--accent); box-shadow: 0 4px 20px rgba(124,58,237,0.12); transform: translateY(-2px); }
.card-skill:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.skill-compat { display: block; margin-top: 6px; }
.card-badges { display: flex; gap: 6px; align-items: center; flex-shrink: 0; }
.official-badge { font-size: 0.65rem; font-weight: 700; padding: 2px 8px; border-radius: 999px; text-transform: uppercase; letter-spacing: 0.04em; background: linear-gradient(135deg, var(--accent), #a78bfa); color: #fff; }
.complexity-badge { font-size: 0.68rem; font-weight: 600; padding: 2px 8px; border-radius: 999px; text-transform: uppercase; letter-spacing: 0.04em; }
mark { background: var(--accent-bg); color: var(--accent); padding: 0 2px; border-radius: 2px; }

@keyframes fadeSlideIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

/* ─── Skill tags ─── */
.skill-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 6px; }
.tag { display: inline-block; padding: 3px 10px; border-radius: 4px; font-size: 0.72rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.03em; transition: transform 0.1s; }
.tag:hover { transform: scale(1.05); }
.tag-python { background: #fef9c3; color: #854d0e; }
.tag-java { background: #fef2f2; color: #b91c1c; }
.tag-typescript { background: #eff6ff; color: #1d4ed8; }
.tag-javascript { background: #fffbeb; color: #b45309; }
.tag-bash { background: #f0fdf4; color: #15803d; }
.tag-dir { background: var(--bg-alt); color: var(--text-muted); border: 1px solid var(--border); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .tag-python { background: #2d2815; color: #fde047; }
  :root:not([data-theme="light"]) .tag-java { background: #2d1515; color: #fca5a5; }
  :root:not([data-theme="light"]) .tag-typescript { background: #151e2d; color: #93c5fd; }
  :root:not([data-theme="light"]) .tag-javascript { background: #2d2515; color: #fcd34d; }
  :root:not([data-theme="light"]) .tag-bash { background: #0a1a10; color: #86efac; }
  :root:not([data-theme="light"]) .active-filters { background: #1e1a3a; }
  :root:not([data-theme="light"]) .active-tag { background: var(--bg-code); }
  :root:not([data-theme="light"]) .complexity-badge { opacity: 0.9; }
}
:root[data-theme="dark"] .tag-python { background: #2d2815; color: #fde047; }
:root[data-theme="dark"] .tag-java { background: #2d1515; color: #fca5a5; }
:root[data-theme="dark"] .tag-typescript { background: #151e2d; color: #93c5fd; }
:root[data-theme="dark"] .tag-javascript { background: #2d2515; color: #fcd34d; }
:root[data-theme="dark"] .tag-bash { background: #0a1a10; color: #86efac; }
:root[data-theme="dark"] .active-filters { background: #1e1a3a; }
:root[data-theme="dark"] .active-tag { background: var(--bg-code); }
:root[data-theme="dark"] .complexity-badge { opacity: 0.9; }

/* ─── Skill meta row (LobeHub-inspired) ─── */
.skill-meta { display: flex; flex-wrap: wrap; gap: 12px; margin: 10px 0 6px; }
.meta-item { display: inline-flex; align-items: center; gap: 4px; font-size: 0.72rem; color: var(--text-muted); font-weight: 500; }
.meta-item svg { opacity: 0.6; flex-shrink: 0; }

/* ─── Card footer with install hint ─── */
.card-footer { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: 12px; border-top: 1px solid var(--border); }
.install-hint { font-family: var(--mono); font-size: 0.7rem; color: var(--text-muted); opacity: 0; transition: opacity 0.2s; }
.card-skill:hover .install-hint { opacity: 1; }
.card-skill:hover .card-footer .card-arrow { color: var(--accent); }
.card-footer .card-arrow { position: static; font-size: 1.1rem; color: var(--text-muted); transition: color 0.2s; }

/* ─── Feature badges ─── */
.skill-features { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 8px; }
.feature-badge { display: inline-block; padding: 2px 8px; background: var(--accent-bg); color: var(--accent); border-radius: 3px; font-size: 0.72rem; font-weight: 500; }

/* ─── Empty state ─── */
.empty-state { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 64px 24px; text-align: center; }
.empty-state h3 { font-size: 1.1rem; color: var(--text); }
.empty-state p { color: var(--text-muted); font-size: 0.9rem; }

/* ─── Skip link ─── */
.skip-link { position: absolute; top: -40px; left: 0; padding: 8px 16px; background: var(--accent); color: #fff; z-index: 200; transition: top 0.2s; }
.skip-link:focus { top: 0; }

/* ─── Screen reader only ─── */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* ─── Responsive: tablet (2 cols) ─── */
@media (min-width: 481px) and (max-width: 768px) { .cols-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) {
  .gallery-filters { flex-direction: column; gap: 10px; }
  .search-wrap { min-width: 100%; }
  .filter-buttons { justify-content: center; }
  .facet-filters { justify-content: center; }
  .gallery-controls { flex-direction: column; }
}

/* ─── Spec page doc layout ─── */
.hero-sm { padding: 48px 0 32px; }
.doc-layout { display: grid; grid-template-columns: 200px 1fr; gap: 40px; }
@media (max-width: 768px) { .doc-layout { grid-template-columns: 1fr; } }
.doc-layout .toc { position: sticky; top: 72px; align-self: start; margin: 0; padding: 16px 20px; }
.doc-layout .toc h4 { font-size: 0.8rem; color: var(--text-muted); margin-bottom: 10px; text-transform: uppercase; letter-spacing: 0.06em; font-weight: 600; }
.doc-layout .toc ul { list-style: none; padding: 0; }
.doc-layout .toc li { margin: 6px 0; }
.doc-layout .toc a { color: var(--text-secondary); font-size: 0.85rem; text-decoration: none; }
.doc-layout .toc a:hover { color: var(--accent); }
.doc-content section { margin-bottom: 48px; }
.doc-content h2 { font-size: 1.5rem; font-weight: 700; margin-bottom: 16px; padding-top: 24px; border-top: 1px solid var(--border); }
.doc-content h3 { font-size: 1.1rem; font-weight: 600; margin: 24px 0 10px; color: var(--accent); }
.doc-content h4 { font-size: 0.95rem; font-weight: 600; margin: 16px 0 8px; }
.doc-content p { margin: 10px 0; color: var(--text-secondary); }
.doc-content ul { margin: 10px 0; padding-left: 24px; color: var(--text-secondary); }
.doc-content li { margin: 4px 0; }
.nav-links a.active { color: var(--accent); }

/* ─── Footer ─── */
footer { text-align: center; padding: 32px 0; color: var(--text-muted); font-size: 0.85rem; border-top: 1px solid var(--border); margin-top: 24px; }
footer a { color: var(--text-secondary); }
