/* V32 · tipografía editorial y acabado profesional */
:root {
  --navy: #16324f;
  --blue: #315f84;
  --soft: #f7f7f4;
  --line: #dce2e4;
  --ink: #172534;
  --muted: #687684;
  --canvas: #f3f2ee;
  --surface: #fff;
  --gold: #ad8549;
  --shadow: 0 10px 28px rgba(11, 34, 57, .055);
  --radius: 13px;
  --font-display: Charter, "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --font-ui: "Avenir Next", Avenir, "Segoe UI Variable Text", "Segoe UI", ui-sans-serif, system-ui, sans-serif;
}

html { background: var(--canvas); }
body {
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--font-ui);
  font-size: 16px;
  line-height: 1.6;
  letter-spacing: 0;
  text-rendering: optimizeLegibility;
  font-feature-settings: normal;
}
button, input, select, textarea { font-family: inherit; }

#app, .main { background: var(--canvas); }
.sidebar {
  width: 286px;
  padding: 24px 16px 30px;
  background: linear-gradient(180deg, #122f49 0%, #0a2135 100%);
  border-right: 1px solid rgba(255,255,255,.08);
}
.brand { margin-bottom: 22px; padding: 0 4px 20px; }
.brand .logo { width: 50px; height: 50px; border-radius: 10px; border-color: rgba(214,183,126,.75); box-shadow: none; }
.brand .logo img { border-radius: 7px; }
.brand strong { font-family: var(--font-display); font-size: 18px; font-weight: 600; letter-spacing: -.015em; }
.brand span { color: #bfd0dc; font-size:12px; letter-spacing: .02em; }
.nav-group { color: #9fb5c4; font-size:12px; font-weight: 700; letter-spacing: .19em; }
.primary-nav { gap: 5px; }
.primary-tab, .nav-btn {
  border-radius: 8px;
  font-size: 12px;
  font-weight: 650;
}
.primary-tab { min-height: 48px; border-color: rgba(255,255,255,.08); background: transparent; }
.primary-tab.active, .nav-btn.active { color: #122f49; box-shadow: 0 8px 18px rgba(0,0,0,.15); }
.primary-tab .tab-icon, .nav-index { border-radius: 6px; }
.menu-child { border-radius: 6px; font-size:12px; font-weight: 600; }
.sidebar-note { border-radius: 9px; background: rgba(255,255,255,.055); font-size:12px; }

.topbar {
  min-height: 102px;
  padding: 18px clamp(20px,3vw,38px);
  background: rgba(253,252,249,.96);
  border-bottom: 1px solid #d9dfe2;
  box-shadow: none;
}
.topbar h1 {
  color: #0b2239;
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 600;
  letter-spacing: -.025em;
}
.topbar p { margin-top: 5px; color: #647382; font-size: 13px; }
.topbar-badge { border-radius: 5px; background: #f4f7f5; font-size:12px; font-weight: 700; letter-spacing: .03em; }
#view { max-width: 1460px; padding: 34px clamp(20px,3.2vw,46px) 80px; }

.btn {
  min-height: 42px;
  border-radius: 6px;
  background: #16324f;
  box-shadow: none;
  font-size:12px;
  font-weight: 700;
  letter-spacing: .025em;
}
.btn:hover { filter: none; box-shadow: 0 7px 16px rgba(11,34,57,.12); }
.btn.ghost { color: #244e70; border-color: #cad3d9; }
.btn.soft { background: #e9eef1; color: #16324f; }
.work-mode-controls { border-radius: 7px; background: #f2f3f2; }
.mode-chip { border-radius: 5px; font-weight: 650; }
.mode-chip.active { background: #16324f; }

.hero,
.dashboard-hero,
.route-summary,
.module-hero,
.resource-hero,
.performance-hero,
.privacy-hero {
  border-radius: 14px;
}
.hero {
  border-color: #d8dfe2;
  background:
    linear-gradient(90deg, rgba(173,133,73,.055) 1px, transparent 1px),
    linear-gradient(rgba(173,133,73,.055) 1px, transparent 1px),
    linear-gradient(135deg, #fdfcf9, #f1f3f1);
  background-size: 48px 48px, 48px 48px, auto;
  box-shadow: var(--shadow);
}
.hero h2,
.dashboard-hero h2,
.route-summary h2,
.module-hero h2,
.resource-hero h2,
.performance-hero h2,
.privacy-hero h2 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -.03em;
  line-height: 1.08;
}
.dashboard-hero, .module-one { background: linear-gradient(135deg, #102c46, #244f6f); }
.dashboard-hero { box-shadow: 0 18px 45px rgba(11,34,57,.14); }
.module-two { background: linear-gradient(135deg, #1e5e5a, #367c75); }
.module-three { background: linear-gradient(135deg, #51476d, #756a91); }
.module-audit { background: linear-gradient(135deg, #765a31, #a17d45); }
.module-delivery { background: linear-gradient(135deg, #285d48, #427d63); }

.card,
.status-card,
.mentor-card,
.task-overview,
.route-step,
.audit-group,
.resource-card,
.evidence-bank,
.final-preview,
.session-card,
.planning-support,
.module-form {
  border-radius: var(--radius);
  border-color: var(--line);
  box-shadow: var(--shadow);
}
.card h3,
.mentor-card h3,
.status-card > strong,
.task-overview h3,
.route-step h3,
.resource-card b,
.planning-support h3,
.module-form h3,
.next-action-card h3,
.configuration-card h3,
.recording-rail h3 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -.015em;
}
.card p, .mentor-card p, .status-card p, .task-overview p { color: #5f7080; }
.mini, .mentor-kicker, .resource-grid span, .evidence-type, .route-step small { letter-spacing: .1em; font-weight: 700; }

.input, select, textarea {
  border-radius: 7px;
  border-color: #cfd7dc;
  background: #fff;
  font-size: 15px;
  line-height: 1.65;
}
.input:focus, select:focus, textarea:focus { border-color: #6f91aa; box-shadow: 0 0 0 3px rgba(49,95,132,.11); }
.pill, .tab, .section-tab, .source-state { border-radius: 5px; font-weight: 700; }
.section-tabs { border-radius: 9px; }
.path-step, .signal-card, .component-card, .example-level, .official-link, .audit-status, .traffic-state { border-radius: 9px; }
.path-step span, .feature-number { color: var(--gold); }
.progress, .progress-track { border-radius: 2px; }
.bar { background: linear-gradient(90deg, #315f84, #8ba7b8); }
.permanent-disclaimer { background: #f7f1e5; border-bottom-color: #dfd0b2; color: #665432; }
.permanent-disclaimer > span { background: #8a6838; }
.copyright-footer { background: #eeede8; }

@media (max-width: 980px) {
  .sidebar { width: min(88vw, 286px); }
  .topbar { min-height: auto; }
}

@media (max-width: 620px) {
  body { font-size: 15px; }
  #view { padding: 22px 14px 56px; }
  .topbar h1 { font-size: 25px; }
  .dashboard-hero h2 { font-size: 36px; }
}

@media print {
  body, #app, .main { background: #fff; }
  .card, .status-card, .task-overview, .module-form { box-shadow: none; }
}
