/* 60% base clara, 30% superfícies e navegação, 10% ações e foco em azul. */
:root {
  color-scheme: light;
  --bg-primary:#f6f8fb; --bg-primary-rgb:246,248,251; --bg-secondary:#edf1f6;
  --bg-subtle:#eef2f7; --bg-code:#edf1f6; --bg-surface:#fff; --bg-elevated:#e3eaf3;
  --bg-surface-hover:#eff4fa; --bg-surface-active:#dfebfa; --bg-glass:#fffffff2;
  --surface-primary:#fff; --surface-raised:#edf2f7; --text-primary:#18283b;
  --text-secondary:#405268; --text-muted:#53667b; --accent-primary:#174d99;
  --accent-primary-rgb:23,77,153; --accent-secondary:#204779; --accent-hover:#103e80;
  --accent-soft:#e6effc; --accent-border:#8eaed3; --border-color:#cad5e1;
  --border-subtle:#dce3eb; --status-info:#245489; --status-success:#186145;
  --status-warning:#835514; --status-error:#a12d31;
  --shadow-sm:0 2px 6px #2438530a; --shadow-md:0 5px 18px #24385313;
  --shadow-lg:0 15px 40px #24385322; --nexus-shadow-soft:var(--shadow-sm);
}
body {background:var(--bg-primary);color:var(--text-primary)}
.app-sidebar,.app-topbar,.app-footer {background:#eaf0f6;color:var(--text-primary)}
.home-hero,.stack-page-head,.resources-hero,.page-header {background:#e7eef7;color:var(--text-primary);border-color:var(--border-color)}
.home-hero-title span,.home-stat-item strong,.brand-title {color:var(--accent-primary)}
.surface-card,.home-overview-card,.home-stat-item,.stack-reference,.lesson-reader-panel,.course-syllabus-panel,.roadmap-stage-card,.resource-path-card,.resource-card,.modal-panel,.senior-tip-banner {background:#fff;border-color:var(--border-color);color:var(--text-primary)}
.btn-primary,.btn-primary:hover,.filter-pill.active {color:white;background:var(--accent-primary);border-color:var(--accent-primary)}
input,textarea,select {color:var(--text-primary);background:white}
pre,pre code,.code-block-pre,.architecture-diagram-pre {background:var(--bg-code);color:#203955}
.academy h2,.academy-map h2 {font-size:clamp(1.25rem,2.6vw,1.65rem)}
.academy h2 {margin-bottom:12px}
.academy-map {display:grid;gap:16px;margin:18px 0}
.academy-map article {border-left:4px solid var(--accent-primary)}
.academy-map summary,.stack-role summary {cursor:pointer;color:var(--accent-primary);font-weight:650;padding:8px 0}
.stack-role dd {margin:0 0 .8rem}
.route-map {display:grid;justify-items:start;margin:16px 0}
.route-map button {background:#fff;border:1px solid var(--accent-border);color:var(--accent-primary);padding:10px 15px;text-align:left;border-radius:8px;cursor:pointer}
.route-map span {margin-inline-start:18px;color:var(--accent-primary)}
.route-branch {padding:12px;background:var(--accent-soft);margin-bottom:16px}
.route-branch a,.academy a {color:var(--accent-primary);text-decoration:underline}
:focus-visible {outline:3px solid #2862a9;outline-offset:2px}
::selection {color:#fff;background:#23579e}
