/* ── Design Tokens ─────────────────────────────────────────────── */
:root {
  --bg:        #f5f7ff;
  --surface:   #ffffff;
  --surface2:  #eceeff;
  --border:    #cdd1f0;
  --text:      #0f0f2e;
  --muted:     #515180;
  --accent:    #059669;
  --accent-h:  #047857;
  --accent-bg: #ecfdf5;
  --accent-fg: #065f46;
  --accent-light: #10b981;
  --icon-bg:   #a7f3d0;
  --c-principal: #4f46e5;
  --c-interest:  #dc2626;  /* danger red — interest is extra money you pay (loan + mortgage charts) */
  --c-taxins:    #f59e0b;
  --c-balance:   #059669;  /* emerald — distinct from principal (blue), interest (red) & taxes (amber) */
  --radius:    10px;
  --radius-lg: 14px;
  --shadow:    0 1px 2px rgba(0,0,0,.04), 0 2px 8px rgba(0,0,0,.08);
  --shadow-lg: 0 4px 16px rgba(0,0,0,.12);
  --mono:      'JetBrains Mono', 'Courier New', Courier, monospace;
}

/* ── Reset ─────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'Outfit', system-ui, sans-serif; background: var(--bg); color: var(--text); line-height: 1.6; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── Header ────────────────────────────────────────────────────── */
.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 24px;
  min-height: 56px;
  position: sticky;
  top: 0;
  z-index: 100;
  flex-wrap: wrap;
  gap: 8px 12px;
}
.site-logo { font-size: 1.15rem; font-weight: 700; color: var(--text); letter-spacing: -.5px; text-decoration: none; }
.site-nav { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.nav-link {
  display: none;
  align-items: center;
  justify-content: center;
  font-size: .82rem;
  font-weight: 600;
  padding: 7px 11px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  background: transparent;
  text-decoration: none;
  white-space: nowrap;
  transition: background .18s, border-color .18s, color .18s, transform .1s;
}
.nav-link:hover { background: var(--accent); border-color: var(--accent); color: #fff; text-decoration: none; transform: translateY(-1px); }
.nav-link:active { transform: scale(.97); }
.nav-link.active { background: var(--accent); border-color: var(--accent); color: #fff; }
@media (min-width: 680px) {
  .site-nav .nav-link { display: inline-flex; }
  .nav-hamburger { display: none; }
  .nav-mobile-menu { display: none !important; }
}
.nav-hamburger { display: flex; align-items: center; gap: 6px; background: none; border: 1px solid var(--border); cursor: pointer; padding: 6px 12px; border-radius: var(--radius); font-size: .85rem; font-weight: 600; letter-spacing: .06em; color: var(--text); min-height: 40px; transition: background .2s; }
.nav-hamburger:hover { background: rgba(0,0,0,.07); }
.nav-mobile-menu { display: none; flex-direction: column; background: var(--surface); border-bottom: 1px solid var(--border); padding: 10px 16px 14px; gap: 8px; width: 100%; }
.nav-mobile-menu.open { display: flex; }
.nav-mobile-link { display: block; text-align: center; text-decoration: none; font-size: 1rem; font-weight: 600; color: var(--text); background: var(--surface2); border: 1.5px solid var(--border); border-radius: var(--radius); padding: 13px 16px; min-height: 44px; transition: background .18s, border-color .18s, color .18s; }
.nav-mobile-link:hover { background: var(--accent); border-color: var(--accent); color: #fff; text-decoration: none; }
.nav-mobile-link.active { background: var(--accent); border-color: var(--accent); color: #fff; }

/* ── Footer ────────────────────────────────────────────────────── */
.site-footer { border-top: 1px solid var(--border); padding: 24px 20px; text-align: center; font-size: .8rem; color: var(--muted); }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--text); text-decoration: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}

/* ── LK Forge brand: Orbitron display headings (rollout 2026-06-25) ── */
.site-logo, .tool-hero h1, .page-hero h1, .dict-hero h1,
.hub-card h2, .section > h2 { font-family: 'Orbitron', sans-serif; }
.site-logo { font-weight: 900; }
.tool-hero h1, .page-hero h1, .dict-hero h1 { font-weight: 900 !important; font-size: clamp(1.4rem, 4.2vw, 2.05rem) !important; letter-spacing: -.4px; line-height: 1.2; }
.hub-card h2, .section > h2 { font-weight: 700 !important; }
