/**
 * Your401kCalculator.com — Option A Premium Financial Design System
 */

:root {
  /* Core Color Palette */
  --navy-darkest: #071a3d;
  --navy-dark: #0b1f44;
  --navy-main: #0f2756;
  --navy-muted: #334155;
  --text-main: #0f172a;
  --text-muted: #64748b;
  --text-light: #94a3b8;

  --green-primary: #079455;
  --green-dark: #057a44;
  --green-light: #10b981;
  --green-bg-subtle: #f0fdf4;
  --green-border: #bbf7d0;

  --blue-primary: #1769e0;
  --blue-dark: #1d4ed8;
  --blue-subtle: #eff6ff;
  --blue-border: #bfdbfe;

  --orange-accent: #f59e0b;
  --orange-subtle: #fffbeb;
  --orange-border: #fde68a;

  --bg-page: #f8fafc;
  --bg-card: #ffffff;
  --border-light: #e2e8f0;
  --border-card: #dde6f0;

  /* Typography & Layout */
  --font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -4px rgba(0, 0, 0, 0.05);
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 20px;
}

/* Base Styles */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-family);
  background-color: var(--bg-page);
  color: var(--text-main);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.tabular-nums {
  font-variant-numeric: tabular-nums;
}

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

/* ==========================================
   Header & Navigation
   ========================================== */
.site-header {
  background: #ffffff;
  border-bottom: 1px solid var(--border-light);
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(8px);
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  position: relative;
}

.brand-logo {
  text-decoration: none;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--navy-darkest);
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 2px;
  flex-shrink: 0;
}

.brand-logo .accent-401k {
  color: var(--green-primary);
  font-weight: 800;
}

/* Desktop Main Nav */
.main-nav {
  display: flex;
  align-items: center;
  gap: 1.15rem;
}

/* Support semantic ul / li structures seamlessly */
.main-nav .nav-list,
.nav-list {
  display: flex;
  align-items: center;
  gap: 1.15rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.main-nav .nav-item,
.nav-item {
  display: flex;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-link {
  text-decoration: none;
  color: var(--navy-muted);
  font-size: 0.88rem;
  font-weight: 500;
  padding: 0.5rem 0.2rem;
  position: relative;
  white-space: nowrap;
  transition: color 0.15s ease;
  display: inline-flex;
  align-items: center;
}

.nav-link:hover {
  color: var(--navy-darkest);
}

.nav-link.active {
  color: var(--navy-darkest);
  font-weight: 600;
}

.nav-link.active::after {
  content: "";
  position: absolute;
  bottom: -19px;
  left: 0;
  right: 0;
  height: 3px;
  background-color: var(--green-primary);
  border-radius: 3px 3px 0 0;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-shrink: 0;
}

.search-btn {
  background: none;
  border: 1px solid transparent;
  color: var(--navy-muted);
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
}

.search-btn:hover {
  background: var(--bg-page);
  color: var(--navy-darkest);
  border-color: var(--border-light);
}

/* Mobile Hamburger Button */
.mobile-menu-btn {
  display: none;
  background: none;
  border: 1px solid var(--border-light);
  border-radius: 8px;
  padding: 0.5rem;
  cursor: pointer;
  color: var(--navy-darkest);
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 4px;
  width: 38px;
  height: 38px;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.mobile-menu-btn:hover {
  background: var(--bg-page);
  border-color: #cbd5e1;
}

.mobile-menu-btn .hamburger-bar {
  display: block;
  width: 18px;
  height: 2px;
  background-color: var(--navy-darkest);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.mobile-menu-btn.is-active .hamburger-bar:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.mobile-menu-btn.is-active .hamburger-bar:nth-child(2) {
  opacity: 0;
}

.mobile-menu-btn.is-active .hamburger-bar:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* Mobile Drawer / Overlay */
.mobile-nav-drawer {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #ffffff;
  border-bottom: 2px solid var(--border-light);
  box-shadow: 0 16px 36px rgba(7, 26, 61, 0.14);
  max-height: calc(100vh - 70px);
  overflow-y: auto;
  z-index: 999;
}

.mobile-nav-drawer.open {
  display: block;
  animation: slideDownNav 0.22s ease-out forwards;
}

@keyframes slideDownNav {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.mobile-nav-inner {
  padding: 1.25rem 1.5rem 1.75rem;
  max-width: 1200px;
  margin: 0 auto;
}

.mobile-nav-section-title {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--navy-muted);
  margin-bottom: 0.75rem;
}

.mobile-nav-list {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.mobile-nav-link {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.75rem 1rem;
  border-radius: 10px;
  text-decoration: none;
  color: var(--navy-darkest);
  background: #ffffff;
  border: 1px solid var(--border-light);
  transition: all 0.15s ease;
}

.mobile-nav-link:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
  transform: translateX(2px);
}

.mobile-nav-link.active {
  background: #f0fdf4;
  border-color: var(--green-primary);
  box-shadow: 0 1px 3px rgba(7, 148, 85, 0.1);
}

.mobile-nav-icon {
  font-size: 1.3rem;
  line-height: 1;
  flex-shrink: 0;
}

.mobile-nav-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.mobile-nav-title {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--navy-darkest);
}

.mobile-nav-link.active .mobile-nav-title {
  color: var(--green-primary);
}

.mobile-nav-desc {
  font-size: 0.78rem;
  color: var(--navy-muted);
  line-height: 1.3;
}

/* Quick Search Palette Modal */
.search-palette-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(7, 26, 61, 0.45);
  backdrop-filter: blur(4px);
  z-index: 2000;
  align-items: flex-start;
  justify-content: center;
  padding: 10vh 1rem 2rem;
}

.search-palette-backdrop.open {
  display: flex;
}

.search-palette-modal {
  background: #ffffff;
  width: 100%;
  max-width: 560px;
  border-radius: 14px;
  box-shadow: 0 20px 45px rgba(7, 26, 61, 0.22);
  overflow: hidden;
  border: 1px solid var(--border-light);
  animation: modalScaleUp 0.18s ease-out;
}

@keyframes modalScaleUp {
  from {
    opacity: 0;
    transform: scale(0.96);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.search-palette-input-wrap {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border-light);
  background: #f8fafc;
}

.search-palette-input {
  border: none;
  outline: none;
  font-size: 1rem;
  width: 100%;
  font-family: inherit;
  color: var(--navy-darkest);
  background: transparent;
}

.search-palette-close {
  background: none;
  border: none;
  font-size: 1.25rem;
  color: var(--navy-muted);
  cursor: pointer;
  padding: 0.25rem;
  line-height: 1;
  border-radius: 6px;
}

.search-palette-close:hover {
  color: var(--navy-darkest);
}

.search-palette-results {
  padding: 0.75rem;
  max-height: 380px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.search-result-item {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  text-decoration: none;
  color: var(--navy-darkest);
  transition: background 0.15s ease;
}

.search-result-item:hover,
.search-result-item:focus {
  background: #f1f5f9;
}

.search-result-title {
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--navy-darkest);
}

.search-result-desc {
  font-size: 0.78rem;
  color: var(--navy-muted);
}

/* Nav Responsive Queries */
@media (max-width: 1240px) {
  .main-nav {
    gap: 0.65rem;
  }
  .nav-link {
    font-size: 0.82rem;
    padding: 0.5rem 0.1rem;
  }
}

@media (max-width: 1080px) {
  .main-nav {
    display: none !important;
  }
  .mobile-menu-btn {
    display: flex;
  }
}

/* ==========================================
   Hero Section (Calculator-First)
   ========================================== */
.hero-section {
  padding: 2.5rem 0 1.5rem;
}

.hero-layout {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 2rem;
  margin-bottom: 2rem;
}

.hero-overline {
  color: var(--green-primary);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.hero-title {
  font-size: 2.75rem;
  font-weight: 800;
  color: var(--navy-darkest);
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 0.75rem;
}

.hero-subtitle {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 680px;
  line-height: 1.5;
  margin-bottom: 1.25rem;
}

.trust-badges-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.trust-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  color: var(--navy-muted);
  font-weight: 500;
}

.trust-icon-green {
  color: var(--green-primary);
  font-weight: 700;
}

/* Floating Hero Graphic Badge */
.hero-floating-badge {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.5rem;
  box-shadow: 0 10px 25px -5px rgba(23, 105, 224, 0.08);
  position: relative;
  min-width: 250px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.float-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.25rem;
}

.float-amount {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--green-primary);
  line-height: 1.2;
  margin-bottom: 0.5rem;
  font-variant-numeric: tabular-nums;
}

.float-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  background: var(--green-bg-subtle);
  color: var(--green-primary);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.2rem 0.6rem;
  border-radius: 9999px;
  border: 1px solid var(--green-border);
}

.float-mini-bars {
  position: absolute;
  right: 1.25rem;
  bottom: 1.25rem;
  display: flex;
  align-items: flex-end;
  gap: 4px;
  height: 48px;
}

.bar {
  width: 7px;
  background: linear-gradient(180deg, #93c5fd 0%, #3b82f6 100%);
  border-radius: 3px 3px 0 0;
}

/* ==========================================
   Primary Calculator (40% Input / 60% Results)
   ========================================== */
.calculator-main-card {
  display: grid;
  grid-template-columns: 42% 58%;
  background: #ffffff;
  border: 1px solid var(--border-card);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  margin-bottom: 2.5rem;
}

/* Left: Inputs Panel */
.calc-inputs-panel {
  padding: 2.25rem;
  border-right: 1px solid var(--border-light);
  background: #ffffff;
}

.calc-section-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--navy-darkest);
  margin-bottom: 1.25rem;
  letter-spacing: -0.01em;
}

.calc-section-title.spaced {
  margin-top: 1.75rem;
}

.form-group {
  margin-bottom: 1rem;
}

.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--navy-muted);
  margin-bottom: 0.35rem;
}

.input-with-addon {
  display: flex;
  align-items: center;
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  transition: all 0.15s ease;
  overflow: hidden;
}

.input-with-addon:focus-within {
  border-color: var(--blue-primary);
  box-shadow: 0 0 0 3px rgba(23, 105, 224, 0.15);
}

.input-prefix, .input-suffix {
  padding: 0.65rem 0.85rem;
  font-size: 0.875rem;
  color: var(--text-muted);
  background: #f8fafc;
  font-weight: 500;
  white-space: nowrap;
}

.calc-input {
  flex: 1;
  width: 100%;
  border: none;
  padding: 0.65rem 0.85rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-main);
  outline: none;
  font-family: inherit;
  font-variant-numeric: tabular-nums;
  background: transparent;
}

/* Advanced Assumptions Accordion */
.advanced-toggle-btn {
  background: none;
  border: none;
  color: var(--blue-primary);
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.75rem 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.75rem;
  transition: color 0.15s;
}

.advanced-toggle-btn:hover {
  color: var(--blue-dark);
}

.toggle-chevron {
  font-size: 0.8rem;
  transition: transform 0.2s ease;
}

.advanced-panel {
  display: none;
  padding-top: 0.75rem;
  border-top: 1px dashed var(--border-light);
  margin-top: 0.5rem;
}

.advanced-panel.panel-open {
  display: block;
}

.calc-submit-btn {
  width: 100%;
  background: var(--green-primary);
  color: #ffffff;
  border: none;
  border-radius: var(--radius-sm);
  padding: 0.95rem 1.5rem;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1.5rem;
  transition: background 0.15s ease, transform 0.1s ease;
  box-shadow: 0 4px 6px -1px rgba(7, 148, 85, 0.2);
}

.calc-submit-btn:hover {
  background: var(--green-dark);
}

.calc-submit-btn:active {
  transform: translateY(1px);
}

/* Right: Results Panel */
.calc-results-panel {
  padding: 2.25rem;
  background: #ffffff;
  display: flex;
  flex-direction: column;
}

.results-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}

.results-eyebrow {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--navy-muted);
}

/* Nominal vs Today's Dollars Toggle */
.currency-toggle-group {
  display: inline-flex;
  background: #f1f5f9;
  padding: 3px;
  border-radius: 9999px;
  border: 1px solid var(--border-light);
}

.currency-toggle-btn {
  background: none;
  border: none;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  padding: 0.35rem 0.85rem;
  border-radius: 9999px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.currency-toggle-btn.active-toggle {
  background: var(--blue-primary);
  color: #ffffff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.headline-balance {
  font-size: 3.25rem;
  font-weight: 800;
  color: var(--green-primary);
  letter-spacing: -0.03em;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
  margin-bottom: 0.35rem;
}

.balance-subtext {
  font-size: 0.95rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin-bottom: 1.75rem;
}

.info-tooltip {
  cursor: help;
  color: var(--text-light);
  font-size: 0.85rem;
}

/* Breakdown Cards Row */
.breakdown-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.85rem;
  margin-bottom: 1.75rem;
}

.breakdown-card {
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 1rem;
  background: #ffffff;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.card-icon-badge {
  width: 34px;
  height: 34px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}

.card-icon-badge.blue {
  background: var(--blue-subtle);
  color: var(--blue-primary);
}

.card-icon-badge.green {
  background: var(--green-bg-subtle);
  color: var(--green-primary);
}

.card-icon-badge.orange {
  background: var(--orange-subtle);
  color: var(--orange-accent);
}

.breakdown-card-info {
  display: flex;
  flex-direction: column;
}

.breakdown-card-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 500;
  margin-bottom: 0.2rem;
}

.breakdown-card-val {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-main);
  font-variant-numeric: tabular-nums;
  line-height: 1.2;
}

.breakdown-card-sub {
  font-size: 0.75rem;
  color: var(--text-light);
  margin-top: 0.15rem;
}

/* Interactive Growth Chart Area */
.chart-section {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.chart-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}

.chart-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--navy-darkest);
}

.chart-legend-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 500;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.legend-color-box {
  width: 10px;
  height: 10px;
  border-radius: 2px;
}

.chart-wrapper {
  position: relative;
  width: 100%;
  height: 260px;
}

.interactive-svg-chart {
  width: 100%;
  height: 100%;
  display: block;
}

.chart-tooltip {
  position: absolute;
  pointer-events: none;
  background: rgba(15, 23, 42, 0.95);
  color: #ffffff;
  padding: 0.65rem 0.85rem;
  border-radius: 6px;
  font-size: 0.75rem;
  line-height: 1.4;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  z-index: 10;
  min-width: 140px;
}

.chart-tooltip .tooltip-header {
  font-weight: 700;
  font-size: 0.8rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  padding-bottom: 0.25rem;
  margin-bottom: 0.35rem;
}

.chart-tooltip .tooltip-total {
  font-weight: 700;
  color: #86efac;
  margin-bottom: 0.25rem;
}

.chart-tooltip .tooltip-row {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.75rem;
  color: #cbd5e1;
}

.dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  display: inline-block;
}

.dot-growth { background: #3b82f6; }
.dot-employer { background: #10b981; }
.dot-employee { background: #1e40af; }

/* ==========================================
   Signature Feature: "What could improve your result?"
   ========================================== */
.scenario-optimizer-section {
  background: var(--green-bg-subtle);
  border: 1px solid var(--green-border);
  border-radius: var(--radius-xl);
  padding: 2.25rem;
  margin-bottom: 3rem;
}

.optimizer-header {
  margin-bottom: 1.75rem;
}

.optimizer-title {
  font-size: 1.65rem;
  font-weight: 800;
  color: var(--navy-darkest);
  letter-spacing: -0.02em;
  margin-bottom: 0.35rem;
}

.optimizer-subtitle {
  font-size: 1rem;
  color: var(--text-muted);
}

.scenarios-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

.scenario-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.25rem;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.scenario-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.scenario-icon-row {
  display: flex;
  align-items: center;
  margin-bottom: 0.75rem;
}

.scenario-badge {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.scenario-badge.blue { background: #eff6ff; color: #2563eb; }
.scenario-badge.orange { background: #fff7ed; color: #ea580c; }
.scenario-badge.purple { background: #faf5ff; color: #9333ea; }
.scenario-badge.cyan { background: #f0fdfa; color: #0d9488; }

.scenario-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--navy-darkest);
  margin-bottom: 0.5rem;
}

.scenario-metric {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--green-primary);
  font-variant-numeric: tabular-nums;
  line-height: 1.15;
  margin-bottom: 0.25rem;
}

.scenario-subtext {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
  min-height: 36px;
}

.scenario-action-btn {
  margin-top: auto;
  background: var(--blue-subtle);
  color: var(--blue-primary);
  border: 1px solid var(--blue-border);
  padding: 0.55rem 0.85rem;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
  transition: all 0.15s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
}

.scenario-action-btn:hover:not(:disabled) {
  background: var(--blue-primary);
  color: #ffffff;
}

.scenario-action-btn:disabled {
  background: #f1f5f9;
  color: #94a3b8;
  border-color: #cbd5e1;
  cursor: not-allowed;
}

.scenario-action-btn.btn-scenario-active {
  background: var(--green-primary);
  color: #ffffff;
  border-color: var(--green-primary);
}

/* ==========================================
   Projection Table & Complementary Cards Grid
   ========================================== */
.table-insights-grid {
  display: grid;
  grid-template-columns: 60% 40%;
  gap: 2rem;
  margin-bottom: 3.5rem;
}

.projection-table-card {
  background: #ffffff;
  border: 1px solid var(--border-card);
  border-radius: var(--radius-xl);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
}

.table-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}

.table-card-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--navy-darkest);
  letter-spacing: -0.01em;
}

.table-responsive-wrapper {
  overflow-x: auto;
  margin-bottom: 1rem;
}

.projection-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}

.projection-table th {
  background: #f8fafc;
  color: var(--navy-muted);
  font-weight: 600;
  text-align: right;
  padding: 0.75rem 0.65rem;
  border-bottom: 1px solid var(--border-light);
  white-space: nowrap;
}

.projection-table th:first-child {
  text-align: left;
}

.projection-table td {
  padding: 0.75rem 0.65rem;
  text-align: right;
  border-bottom: 1px solid #f1f5f9;
  font-variant-numeric: tabular-nums;
  color: var(--text-main);
  white-space: nowrap;
}

.projection-table td:first-child {
  text-align: left;
}

.row-zebra {
  background: #fafcff;
}

.row-final-age {
  background: #f0fdf4;
  font-weight: 700;
}

.row-final-age td {
  border-top: 1px solid var(--green-border);
  border-bottom: 1px solid var(--green-border);
  color: var(--green-primary);
}

.col-balance {
  font-weight: 700;
  color: var(--navy-darkest);
}

.table-toggle-btn {
  background: none;
  border: none;
  color: var(--blue-primary);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  padding: 0.4rem 0;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.table-toggle-btn:hover {
  text-decoration: underline;
}

/* Complementary Right Column Cards */
.insights-column {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.insight-card {
  background: #ffffff;
  border: 1px solid var(--border-card);
  border-radius: var(--radius-xl);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
}

.insight-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}

.insight-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--navy-darkest);
}

.money-badge-green {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--green-bg-subtle);
  color: var(--green-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
}

.income-metric {
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--green-primary);
  font-variant-numeric: tabular-nums;
  margin-bottom: 0.25rem;
  display: flex;
  align-items: baseline;
  gap: 0.35rem;
}

.income-metric .unit {
  font-size: 1rem;
  color: var(--text-muted);
  font-weight: 500;
}

.income-subtext {
  font-size: 0.85rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

/* Donut Chart Card */
.donut-card-content {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-top: 1rem;
}

.donut-wrapper {
  position: relative;
  width: 140px;
  height: 140px;
  flex-shrink: 0;
}

.donut-svg {
  width: 100%;
  height: 100%;
}

.donut-center-label {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  display: flex;
  flex-direction: column;
}

.donut-val {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--navy-darkest);
  font-variant-numeric: tabular-nums;
}

.donut-sub {
  font-size: 0.65rem;
  color: var(--text-muted);
  font-weight: 600;
}

.donut-legend {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.legend-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
}

.legend-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.legend-label {
  color: var(--text-muted);
  flex: 1;
}

.legend-val {
  font-variant-numeric: tabular-nums;
  color: var(--navy-darkest);
}

/* ==========================================
   Educational Cards Row (4 Columns)
   ========================================== */
.educational-cards-section {
  margin-bottom: 3.5rem;
}

.educational-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

.edu-card {
  background: #ffffff;
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
}

.edu-card-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: var(--blue-subtle);
  color: var(--blue-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  margin-bottom: 1rem;
}

.edu-card-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--navy-darkest);
  margin-bottom: 0.65rem;
  line-height: 1.3;
}

.edu-card-text {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 1rem;
}

.edu-mini-table {
  width: 100%;
  font-size: 0.78rem;
  border-collapse: collapse;
  margin-bottom: 1rem;
}

.edu-mini-table td {
  padding: 0.25rem 0;
  color: var(--text-muted);
}

.edu-mini-table td:last-child {
  text-align: right;
  font-weight: 700;
  color: var(--navy-darkest);
  font-variant-numeric: tabular-nums;
}

.edu-card-link {
  margin-top: auto;
  color: var(--blue-primary);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  transition: color 0.15s;
}

.edu-card-link:hover {
  color: var(--blue-dark);
  text-decoration: underline;
}

/* ==========================================
   More 401(k) Calculators Grid
   ========================================== */
.related-calculators-section {
  margin-bottom: 4rem;
}

.section-headline-group {
  margin-bottom: 1.75rem;
}

.section-main-title {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--navy-darkest);
  letter-spacing: -0.02em;
  margin-bottom: 0.35rem;
}

.section-sub-title {
  font-size: 1rem;
  color: var(--text-muted);
}

.related-calc-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1rem;
}

.related-calc-card {
  background: #ffffff;
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: 1.25rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--navy-darkest);
  box-shadow: var(--shadow-sm);
  transition: all 0.15s ease;
}

.related-calc-card:hover {
  border-color: var(--blue-primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.calc-tool-icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.calc-tool-name {
  font-size: 0.85rem;
  font-weight: 600;
  line-height: 1.25;
  flex: 1;
}

.calc-chevron {
  color: var(--text-light);
  font-size: 0.85rem;
}

/* ==========================================
   Deep Educational Content Sections (SEO & Crawlability)
   ========================================== */
.educational-deep-dive {
  background: #ffffff;
  border: 1px solid var(--border-card);
  border-radius: var(--radius-xl);
  padding: 3rem 2.5rem;
  margin-bottom: 3.5rem;
}

.deep-dive-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}

.article-section h2 {
  font-size: 1.65rem;
  font-weight: 800;
  color: var(--navy-darkest);
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

.article-section p {
  color: #334155;
  font-size: 1rem;
  line-height: 1.65;
  margin-bottom: 1.25rem;
}

/* 2026 Limits Table Card */
.limits-table-card {
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin: 1.5rem 0;
}

.limits-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.limits-table th {
  background: var(--navy-darkest);
  color: #ffffff;
  padding: 0.85rem 1.25rem;
  text-align: left;
  font-weight: 600;
}

.limits-table th:last-child {
  text-align: right;
}

.limits-table td {
  padding: 0.85rem 1.25rem;
  border-bottom: 1px solid var(--border-light);
  color: var(--text-main);
}

.limits-table td:last-child {
  text-align: right;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--green-primary);
}

.citation-box {
  background: #f8fafc;
  border-left: 3px solid var(--blue-primary);
  padding: 0.85rem 1.25rem;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 0.85rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.citation-link {
  color: var(--blue-primary);
  font-weight: 600;
  text-decoration: none;
}

.citation-link:hover {
  text-decoration: underline;
}

/* Worked Examples Container */
.examples-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin: 1.5rem 0;
}

.example-box {
  background: #f8fafc;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
}

.example-box h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy-darkest);
  margin-bottom: 0.5rem;
}

.example-details {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
  line-height: 1.4;
}

.example-result {
  margin-top: auto;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border-light);
  font-size: 0.85rem;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.example-result strong {
  font-size: 1.15rem;
  color: var(--green-primary);
  font-variant-numeric: tabular-nums;
}

/* ==========================================
   FAQ Section (Accessible Accordion)
   ========================================== */
.faq-section {
  margin-bottom: 4rem;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.faq-item {
  background: #ffffff;
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color 0.15s;
}

.faq-item:hover {
  border-color: var(--blue-primary);
}

.faq-summary {
  padding: 1.15rem 1.5rem;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--navy-darkest);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  list-style: none;
  user-select: none;
}

.faq-summary::-webkit-details-marker {
  display: none;
}

.faq-chevron {
  font-size: 0.85rem;
  color: var(--text-muted);
  transition: transform 0.2s ease;
}

.faq-item[open] .faq-chevron {
  transform: rotate(180deg);
}

.faq-answer {
  padding: 0 1.5rem 1.25rem;
  font-size: 0.95rem;
  color: #334155;
  line-height: 1.6;
}

/* ==========================================
   Trust, Governance & Financial Disclaimer
   ========================================== */
.trust-governance-section {
  background: #ffffff;
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 2rem 2.25rem;
  margin-bottom: 4rem;
}

.trust-panel-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-light);
}

.trust-col h4 {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--navy-darkest);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.5rem;
}

.trust-col p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.legal-disclaimer-box {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.legal-disclaimer-box strong {
  color: var(--text-main);
}

/* ==========================================
   Footer (Option A Dark Navy)
   ========================================== */
.site-footer {
  background: var(--navy-darkest);
  color: #cbd5e1;
  padding: 4rem 0 2rem;
}

.footer-top-grid,
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 3.5rem;
}

.footer-brand .footer-logo {
  font-size: 1.4rem;
  font-weight: 800;
  color: #ffffff;
  text-decoration: none;
  display: inline-block;
  margin-bottom: 0.75rem;
}

.footer-brand .footer-logo .accent-401k {
  color: var(--green-light);
}

.footer-description {
  font-size: 0.9rem;
  color: #94a3b8;
  line-height: 1.5;
  max-width: 320px;
}

.footer-col h5 {
  color: #ffffff;
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.footer-col a {
  color: #94a3b8;
  text-decoration: none;
  font-size: 0.875rem;
  transition: color 0.15s;
}

.footer-col a:hover {
  color: #ffffff;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
  color: #64748b;
}

/* ==========================================
   Responsive Breakpoints & Mobile Optimization
   ========================================== */
@media (max-width: 1080px) {
  .calculator-main-card {
    grid-template-columns: 1fr;
  }
  .calc-inputs-panel {
    border-right: none;
    border-bottom: 1px solid var(--border-light);
  }
  .scenarios-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .table-insights-grid {
    grid-template-columns: 1fr;
  }
  .educational-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .related-calc-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .footer-top-grid,
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .hero-layout {
    grid-template-columns: 1fr;
  }
  .hero-floating-badge {
    display: none;
  }
  .hero-title {
    font-size: 2.25rem;
  }
  .main-nav {
    display: none;
  }
  .breakdown-cards-grid {
    grid-template-columns: 1fr;
  }
  .scenarios-grid {
    grid-template-columns: 1fr;
  }
  .educational-grid {
    grid-template-columns: 1fr;
  }
  .related-calc-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .examples-grid {
    grid-template-columns: 1fr;
  }
  .trust-panel-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
  .footer-top-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
  .headline-balance {
    font-size: 2.5rem;
  }
  .calc-inputs-panel, .calc-results-panel {
    padding: 1.5rem;
  }
}

@media (max-width: 480px) {
  .related-calc-grid {
    grid-template-columns: 1fr;
  }
  .currency-toggle-group {
    width: 100%;
    margin-top: 0.5rem;
  }
  .results-header-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
}

/* ==========================================
   401(k) Employer Match Calculator Custom Styles
   ========================================== */

/* Mode Switch Tabs (Simple | Advanced) */
.mode-switch-tabs {
  display: inline-flex;
  background: #f1f5f9;
  border-radius: var(--radius-sm);
  padding: 3px;
  gap: 2px;
  margin-bottom: 1.5rem;
  border: 1px solid var(--border-light);
}

.mode-tab-btn {
  border: none;
  background: transparent;
  color: var(--navy-muted);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.4rem 1rem;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.mode-tab-btn:hover {
  color: var(--navy-darkest);
}

.mode-tab-btn.active {
  background: #ffffff;
  color: var(--navy-darkest);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

/* Full Match Status Badges */
.match-success-badge {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  color: #166534;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  line-height: 1.4;
  margin-top: 0.75rem;
}

.match-opportunity-badge {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  color: #1e40af;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  line-height: 1.4;
  margin-top: 0.75rem;
}

.badge-icon {
  font-weight: 800;
  font-size: 1rem;
  flex-shrink: 0;
}

/* Match Capture Meter Card */
.match-capture-card {
  background: #ffffff;
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin-top: 1.25rem;
  box-shadow: var(--shadow-sm);
}

.meter-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}

.meter-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy-darkest);
}

.meter-percent-display {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--green-primary);
  font-variant-numeric: tabular-nums;
}

.meter-bar-track {
  width: 100%;
  height: 14px;
  background: #e2e8f0;
  border-radius: 9999px;
  overflow: hidden;
  position: relative;
  margin-bottom: 1rem;
}

.meter-bar-fill {
  height: 100%;
  border-radius: 9999px;
  transition: width 0.35s ease, background 0.35s ease;
}

.capture-metric-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border-light);
  margin-bottom: 1rem;
}

.capture-metric-item {
  display: flex;
  flex-direction: column;
}

.capture-metric-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-bottom: 0.2rem;
}

.capture-metric-val {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--navy-darkest);
  font-variant-numeric: tabular-nums;
}

.capture-metric-val.highlight-unused {
  color: #ea580c;
}

.capture-cta-group {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.btn-cta-match {
  background: var(--blue-primary);
  color: #ffffff;
  border: none;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.55rem 1.15rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background 0.15s ease, transform 0.1s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.btn-cta-match:hover {
  background: var(--blue-dark);
}

.btn-reset-match {
  background: #f1f5f9;
  color: var(--navy-muted);
  border: 1px solid var(--border-light);
  font-size: 0.85rem;
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background 0.15s ease;
}

.btn-reset-match:hover {
  background: #e2e8f0;
  color: var(--navy-darkest);
}

/* Tiered Builder */
.tier-builder-box {
  background: #f8fafc;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  margin-top: 1rem;
}

.tier-rows-wrapper {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.tier-row-item {
  display: grid;
  grid-template-columns: 70px 1fr 1fr 1fr 36px;
  align-items: end;
  gap: 0.6rem;
  background: #ffffff;
  padding: 0.75rem;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
}

.tier-badge {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--navy-darkest);
  padding-bottom: 0.45rem;
}

.tier-field {
  display: flex;
  flex-direction: column;
}

.tier-field label {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
}

.tier-input {
  width: 100%;
  padding: 0.4rem 0.5rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--navy-darkest);
  border: 1px solid var(--border-light);
  border-radius: 4px;
}

.btn-remove-tier {
  background: #fef2f2;
  border: 1px solid #fee2e2;
  color: #dc2626;
  width: 32px;
  height: 32px;
  border-radius: 4px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 700;
  transition: all 0.15s ease;
}

.btn-remove-tier:hover {
  background: #fee2e2;
}

.btn-add-tier {
  background: #ffffff;
  border: 1px dashed var(--blue-primary);
  color: var(--blue-primary);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: all 0.15s ease;
}

.btn-add-tier:hover {
  background: var(--blue-subtle);
}

/* Paycheck Breakdown Card */
.paycheck-breakdown-card {
  background: #ffffff;
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin-top: 1.5rem;
  box-shadow: var(--shadow-sm);
}

.paycheck-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-top: 1rem;
}

.paycheck-box {
  background: #f8fafc;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 1rem;
  display: flex;
  flex-direction: column;
}

.paycheck-box-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 0.25rem;
}

.paycheck-box-value {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--navy-darkest);
  font-variant-numeric: tabular-nums;
}

.paycheck-box-value.highlight-green {
  color: var(--green-primary);
}

/* True-Up Comparison */
.trueup-card {
  background: #ffffff;
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin-top: 1.5rem;
  box-shadow: var(--shadow-sm);
}

.trueup-comparison-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 1rem;
  margin-bottom: 1rem;
}

.trueup-stat-box {
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 1rem;
  background: #f8fafc;
}

.trueup-stat-box.highlight-difference {
  background: #ecfdf5;
  border-color: #a7f3d0;
}

.trueup-alert-box {
  border-radius: var(--radius-md);
  padding: 0.85rem 1rem;
  font-size: 0.85rem;
  line-height: 1.45;
}

.trueup-alert-box.warning {
  background: #fff7ed;
  border: 1px solid #fed7aa;
  color: #9a3412;
}

.trueup-alert-box.info {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  color: #166534;
}

/* Vesting Card */
.vesting-card {
  background: #ffffff;
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin-top: 1.5rem;
  box-shadow: var(--shadow-sm);
}

.vesting-split-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-top: 1rem;
}

.vesting-split-box {
  padding: 1rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
}

.vesting-split-box.vested {
  background: #f0fdf4;
  border-color: #bbf7d0;
}

.vesting-split-box.unvested {
  background: #fffbeb;
  border-color: #fde68a;
}

/* Retirement Growth Projection */
.growth-projection-card {
  background: #ffffff;
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin-top: 1.5rem;
  box-shadow: var(--shadow-sm);
}

.growth-summary-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 1.25rem;
}

.growth-metric-card {
  background: #f8fafc;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 1rem;
}

/* Warning & Notice Banners */
.warning-banner {
  background: #fff7ed;
  border: 1px solid #fdba74;
  color: #9a3412;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  line-height: 1.45;
  margin-top: 1rem;
}

/* Breadcrumbs */
.breadcrumb-nav {
  padding: 0.75rem 0 0.5rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.breadcrumb-list {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  list-style: none;
}

.breadcrumb-item a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.15s ease;
}

.breadcrumb-item a:hover {
  color: var(--blue-primary);
}

.breadcrumb-separator {
  color: var(--text-light);
}

.breadcrumb-item.active {
  color: var(--navy-darkest);
  font-weight: 600;
}

/* Responsive adjustments for Match components */
@media (max-width: 900px) {
  .paycheck-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .trueup-comparison-grid {
    grid-template-columns: 1fr;
  }
  .growth-summary-grid {
    grid-template-columns: 1fr;
  }
  .capture-metric-grid {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }
}

@media (max-width: 600px) {
  .tier-row-item {
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
  }
  .tier-badge {
    grid-column: 1 / -1;
  }
  .tier-actions {
    grid-column: 1 / -1;
    display: flex;
    justify-content: flex-end;
  }
  .vesting-split-grid {
    grid-template-columns: 1fr;
  }
  .paycheck-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================
   2026 401(k) Contribution Limits Page Custom Styles
   ========================================== */

/* 4-Card Hero Limit Grid */
.limits-hero-cards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.limit-stat-card {
  background: #ffffff;
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.limit-stat-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.limit-stat-card.featured-card {
  border-color: var(--blue-border);
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

.limit-stat-tag {
  display: inline-flex;
  align-items: center;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.2rem 0.6rem;
  border-radius: 9999px;
  width: fit-content;
  margin-bottom: 0.75rem;
}

.limit-stat-tag.blue {
  background: var(--blue-subtle);
  color: var(--blue-primary);
  border: 1px solid var(--blue-border);
}

.limit-stat-tag.green {
  background: var(--green-bg-subtle);
  color: var(--green-primary);
  border: 1px solid var(--green-border);
}

.limit-stat-tag.purple {
  background: #faf5ff;
  color: #9333ea;
  border: 1px solid #e9d5ff;
}

.limit-stat-tag.orange {
  background: #fff7ed;
  color: #c2410c;
  border: 1px solid #fed7aa;
}

.limit-stat-value {
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--navy-darkest);
  line-height: 1.15;
  font-variant-numeric: tabular-nums;
  margin-bottom: 0.25rem;
}

.limit-stat-label {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--navy-darkest);
  margin-bottom: 0.35rem;
}

.limit-stat-sub {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.45;
  margin-top: auto;
}

/* 2026 vs 2025 Comparison Table Card */
.table-comparison-card {
  background: #ffffff;
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  margin-bottom: 2.5rem;
  box-shadow: var(--shadow-sm);
  overflow-x: auto;
}

.delta-badge {
  display: inline-flex;
  align-items: center;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.15rem 0.55rem;
  border-radius: 4px;
}

.delta-badge.positive {
  background: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}

.delta-badge.neutral {
  background: #f1f5f9;
  color: #475569;
  border: 1px solid #cbd5e1;
}

/* Interactive Limits Checker Tool */
.checker-tool-card {
  display: grid;
  grid-template-columns: 42% 58%;
  background: #ffffff;
  border: 1px solid var(--border-card);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  margin-bottom: 2.5rem;
}

.age-preset-group {
  display: flex;
  gap: 0.4rem;
  margin-top: 0.5rem;
  margin-bottom: 1rem;
}

.btn-age-preset {
  background: #f1f5f9;
  border: 1px solid var(--border-light);
  color: var(--navy-muted);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-age-preset:hover {
  background: #e2e8f0;
  color: var(--navy-darkest);
}

.btn-age-preset.active {
  background: var(--blue-primary);
  color: #ffffff;
  border-color: var(--blue-primary);
}

.age-result-hero {
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin-bottom: 1.25rem;
}

.age-breakdown-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.breakdown-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.25rem 0.65rem;
  border-radius: 9999px;
  background: #f1f5f9;
  color: var(--navy-darkest);
}

/* Paycheck Schedule Grid */
.paycheck-schedule-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
  margin-top: 1rem;
}

.paycheck-schedule-box {
  background: #f8fafc;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 0.85rem;
  display: flex;
  flex-direction: column;
}

.paycheck-schedule-box.highlight {
  background: #eff6ff;
  border-color: var(--blue-border);
}

.paycheck-schedule-val {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--navy-darkest);
  font-variant-numeric: tabular-nums;
  margin-top: 0.2rem;
}

/* Contribution Progress Tracker */
.progress-tracker-box {
  background: #f8fafc;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  margin-top: 1.25rem;
}

.progress-bar-container {
  width: 100%;
  height: 12px;
  background: #e2e8f0;
  border-radius: 9999px;
  overflow: hidden;
  margin: 0.75rem 0;
}

.progress-bar-indicator {
  height: 100%;
  background: linear-gradient(90deg, #3b82f6 0%, #10b981 100%);
  border-radius: 9999px;
  transition: width 0.35s ease;
}

/* Age 60-63 Super Catch-Up Cards Grid */
.super-catchup-cards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin: 1.25rem 0;
}

.super-catchup-card {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 1rem;
  text-align: center;
}

.super-catchup-age {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
}

.super-catchup-amount {
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--green-primary);
  font-variant-numeric: tabular-nums;
  margin-top: 0.2rem;
}

/* Responsive adjustments for Limits page */
@media (max-width: 1024px) {
  .limits-hero-cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .checker-tool-card {
    grid-template-columns: 1fr;
  }
  .super-catchup-cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .limits-hero-cards-grid {
    grid-template-columns: 1fr;
  }
  .paycheck-schedule-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .super-catchup-cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .paycheck-schedule-grid {
    grid-template-columns: 1fr;
  }
  .super-catchup-cards-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================
   401(k) Max Contribution Calculator Styles
   ========================================== */

/* Mode Switcher (Simple / Advanced) */
.mode-switch-wrapper {
  display: flex;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.mode-switch-group {
  display: inline-flex;
  background: #e2e8f0;
  border-radius: 9999px;
  padding: 0.25rem;
  border: 1px solid var(--border-card);
}

.btn-mode-tab {
  background: transparent;
  border: none;
  border-radius: 9999px;
  padding: 0.45rem 1.25rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: #64748b;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-mode-tab.active {
  background: #ffffff;
  color: var(--navy-darkest);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* Toggle Buttons for Percent / Dollars */
.contrib-type-toggle {
  display: inline-flex;
  background: #f1f5f9;
  border-radius: 6px;
  padding: 2px;
  border: 1px solid #cbd5e1;
}

.btn-type-toggle {
  background: transparent;
  border: none;
  border-radius: 4px;
  padding: 0.25rem 0.6rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: #64748b;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-type-toggle.active {
  background: var(--blue-primary);
  color: #ffffff;
}

/* Result Badges */
.res-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.2rem 0.55rem;
  border-radius: 9999px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-top: 0.25rem;
}

.res-badge.blue {
  background: #eff6ff;
  color: #1e40af;
  border: 1px solid #bfdbfe;
}

.res-badge.green {
  background: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}

.res-badge.purple {
  background: #faf5ff;
  color: #6b21a8;
  border: 1px solid #e9d5ff;
}

/* Signature "Your Max-Out Plan" Card */
.max-out-plan-card {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: var(--radius-md);
  padding: 1.25rem;
  margin-top: 1.25rem;
}

.max-out-plan-card h3 {
  font-size: 1.05rem;
  font-weight: 800;
  color: #065f46;
  margin-bottom: 0.4rem;
}

.max-out-plan-card p {
  font-size: 0.9rem;
  color: #166534;
  line-height: 1.5;
  margin-bottom: 0.75rem;
}

/* Scenario Controls */
.plan-scenario-row {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(22, 101, 52, 0.15);
}

.btn-scenario {
  background: #ffffff;
  border: 1px solid #86efac;
  border-radius: 6px;
  padding: 0.35rem 0.75rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: #166534;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-scenario:hover {
  background: #dcfce7;
}

/* Pace Indicator Box */
.pace-indicator-box {
  border-radius: var(--radius-md);
  padding: 0.85rem 1rem;
  font-size: 0.85rem;
  line-height: 1.5;
  margin-top: 1rem;
}

.pace-indicator-box.shortfall {
  background: #fffbeb;
  border: 1px solid #fde68a;
  color: #92400e;
}

.pace-indicator-box.ahead {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  color: #1e40af;
}

.pace-indicator-box.on-pace {
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  color: #065f46;
}

/* Over-Limit Alert Banner */
.over-limit-alert-card {
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-left: 4px solid #ef4444;
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
  margin-bottom: 1.25rem;
}

.over-limit-alert-card h4 {
  font-size: 0.95rem;
  font-weight: 800;
  color: #991b1b;
  margin-bottom: 0.35rem;
}

.over-limit-alert-card p {
  font-size: 0.85rem;
  color: #7f1d1d;
  line-height: 1.5;
  margin-bottom: 0.5rem;
}

.over-limit-alert-card .alert-link {
  color: #b91c1c;
  font-weight: 700;
  text-decoration: underline;
}

/* Compensation Warning Box */
.comp-warning-box {
  background: #fff7ed;
  border: 1px solid #fed7aa;
  border-radius: var(--radius-md);
  padding: 0.75rem 1rem;
  font-size: 0.82rem;
  color: #9a3412;
  margin-top: 0.75rem;
  line-height: 1.45;
}

/* Advanced Inputs & 415c Sections */
.advanced-inputs-panel {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-md);
  padding: 1.25rem;
  margin-top: 1.25rem;
}

.advanced-inputs-panel h3 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--navy-darkest);
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid #e2e8f0;
}

/* ==========================================
   401(k) Growth Calculator Styles
   ========================================== */

/* Horizon & Mode Pill Toggles */
.pill-toggle-group {
  display: inline-flex;
  background: #f1f5f9;
  border-radius: var(--radius-md);
  padding: 3px;
  gap: 3px;
  margin-bottom: 0.85rem;
}

.pill-toggle-item {
  position: relative;
}

.pill-toggle-item input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.pill-toggle-label {
  display: inline-block;
  padding: 0.4rem 0.85rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
  border-radius: calc(var(--radius-md) - 3px);
  cursor: pointer;
  transition: all 0.15s ease;
  user-select: none;
}

.pill-toggle-item input[type="radio"]:checked + .pill-toggle-label {
  background: #ffffff;
  color: var(--navy-darkest);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

/* Quick Preset Chips */
.presets-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.5rem;
  flex-wrap: wrap;
}

.presets-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
}

.chip-preset {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 0.25rem 0.65rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-main);
  cursor: pointer;
  transition: all 0.15s ease;
}

.chip-preset:hover {
  border-color: var(--blue-primary);
  color: var(--blue-primary);
  background: var(--blue-subtle);
}

.chip-preset.active {
  background: var(--navy-darkest);
  border-color: var(--navy-darkest);
  color: #ffffff;
}

/* Milestones Timeline Grid */
.milestones-section {
  margin: 1.75rem 0;
}

.milestones-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}

.milestone-card {
  background: #ffffff;
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: 1.15rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.milestone-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.milestone-time {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--blue-primary);
  margin-bottom: 0.35rem;
}

.milestone-amount {
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--navy-darkest);
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  margin-bottom: 0.25rem;
}

.milestone-subtext {
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.4;
}

/* Interactive SVG Chart Custom Layers & Legends */
.legend-dot.dot-principal {
  background: #071a3d;
}

.legend-dot.dot-employee {
  background: #1769e0;
}

.legend-dot.dot-employer {
  background: #0284c7;
}

.legend-dot.dot-growth {
  background: #10b981;
}

/* 4 Growth Drivers Section */
.drivers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
  margin: 1.25rem 0;
}

.driver-card {
  background: #ffffff;
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.driver-top {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.65rem;
}

.driver-badge {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

.driver-card.driver-p .driver-badge { background: #071a3d; }
.driver-card.driver-c .driver-badge { background: #1769e0; }
.driver-card.driver-m .driver-badge { background: #0284c7; }
.driver-card.driver-g .driver-badge { background: #10b981; }

.driver-label {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.driver-val {
  font-size: 1.65rem;
  font-weight: 800;
  color: var(--navy-darkest);
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  margin-bottom: 0.5rem;
}

.driver-desc {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Return Scenario Comparison Cards */
.return-scenarios-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
  margin: 1.25rem 0;
}

.scenario-card {
  background: #ffffff;
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  box-shadow: var(--shadow-sm);
  position: relative;
}

.scenario-card.active-scenario {
  border-color: var(--blue-primary);
  background: #f0f7ff;
}

.scenario-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
}

.scenario-title {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--navy-darkest);
}

.scenario-rate-badge {
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-sm);
  background: #e2e8f0;
  color: var(--navy-darkest);
}

.scenario-card.active-scenario .scenario-rate-badge {
  background: var(--blue-primary);
  color: #ffffff;
}

.scenario-card-rate-input {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 0.65rem;
}

.scenario-card-rate-input input {
  width: 65px;
  padding: 0.25rem 0.4rem;
  font-size: 0.82rem;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  font-weight: 600;
  text-align: right;
}

.scenario-balance {
  font-size: 1.55rem;
  font-weight: 800;
  color: var(--navy-darkest);
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  margin-bottom: 0.35rem;
}

.scenario-footnote {
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.4;
}

/* Fee Impact Cards */
.fee-impact-container {
  background: #ffffff;
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  margin: 1.25rem 0;
}

.fee-impact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
  margin-bottom: 1.25rem;
}

.fee-stat-box {
  background: #f8fafc;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 1rem;
}

.fee-stat-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 0.35rem;
}

.fee-stat-val {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--navy-darkest);
  font-variant-numeric: tabular-nums;
}

.fee-stat-box.highlight-difference {
  background: #fef2f2;
  border-color: #fecaca;
}

.fee-stat-box.highlight-difference .fee-stat-label {
  color: #991b1b;
}

.fee-stat-box.highlight-difference .fee-stat-val {
  color: #b91c1c;
}

.fee-disclaimer-box {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: var(--radius-md);
  padding: 0.85rem 1.15rem;
  font-size: 0.82rem;
  line-height: 1.5;
  color: #1e40af;
}

/* Contribution & Time Scenario Grids */
.scenario-comparison-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
}

.scenario-comparison-table th {
  background: #f8fafc;
  padding: 0.75rem 1rem;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-muted);
  text-align: left;
  border-bottom: 1px solid var(--border-light);
}

.scenario-comparison-table td {
  padding: 0.85rem 1rem;
  font-size: 0.88rem;
  border-bottom: 1px solid var(--border-light);
}

.diff-positive {
  color: var(--green-primary);
  font-weight: 700;
}

.diff-negative {
  color: #b91c1c;
  font-weight: 700;
}

/* Projection Table Toolbar */
.projection-table-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.85rem;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn-table-action {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 0.4rem 0.85rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--navy-darkest);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: all 0.15s ease;
}

.btn-table-action:hover {
  background: #f8fafc;
  border-color: var(--navy-darkest);
}

.btn-table-action.primary {
  background: var(--blue-primary);
  border-color: var(--blue-primary);
  color: #ffffff;
}

.btn-table-action.primary:hover {
  background: var(--blue-dark);
}

/* Breadcrumb Navigation Styles */
.breadcrumb-nav {
  padding: 1rem 0 0.5rem;
}

.breadcrumb-list {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.breadcrumb-item {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.breadcrumb-item a {
  color: var(--navy-muted);
  text-decoration: none;
  font-weight: 500;
}

.breadcrumb-item a:hover {
  color: var(--blue-primary);
  text-decoration: underline;
}

.breadcrumb-item:not(:last-child)::after {
  content: "›";
  color: var(--text-light);
  font-size: 0.9rem;
}

.breadcrumb-item[aria-current="page"] {
  color: var(--navy-darkest);
  font-weight: 600;
}

/* Form Helper Text & Sublabels */
.input-helper-text {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 0.35rem;
  line-height: 1.45;
}

.two-col-inputs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

@media (max-width: 640px) {
  .two-col-inputs {
    grid-template-columns: 1fr;
  }
}

.form-sublabel {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 0.3rem;
}

.label-with-action {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 0.35rem;
}

.link-small-action {
  font-size: 0.78rem;
  color: var(--blue-primary);
  text-decoration: none;
  font-weight: 600;
}

.link-small-action:hover {
  text-decoration: underline;
}

/* Styled Lists & Notice Boxes */
.styled-list {
  padding-left: 1.25rem;
  margin: 0.75rem 0;
  color: var(--navy-muted);
  line-height: 1.7;
}

.notice-box {
  padding: 1.25rem;
  border-radius: var(--radius-md);
  margin: 1.25rem 0;
  font-size: 0.9rem;
  line-height: 1.55;
}

.notice-box.notice-info {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  color: #1e40af;
}

.notice-box.notice-warning {
  background: #fffbeb;
  border: 1px solid #fde68a;
  color: #92400e;
}

.guide-block {
  margin-bottom: 2.5rem;
}

.guide-block h2 {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--navy-darkest);
  margin-bottom: 0.85rem;
}

.guide-block p {
  color: var(--navy-muted);
  font-size: 1rem;
  line-height: 1.65;
  margin-bottom: 1rem;
}

.guide-card-bordered {
  background: #ffffff;
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
}

.guide-card-bordered h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--navy-darkest);
  margin-bottom: 0.75rem;
}

.guide-card-bordered p {
  color: var(--navy-muted);
  font-size: 0.9rem;
  line-height: 1.55;
  margin-bottom: 0.75rem;
}

.chart-helper-footer {
  margin-top: 0.75rem;
  text-align: right;
}

.todays-dollars-note {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  color: #166534;
  padding: 0.65rem 0.85rem;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  line-height: 1.45;
  margin-top: 0.65rem;
}

.result-growth-sentence {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 0.5rem;
  line-height: 1.45;
}

/* ==========================================
   Roth vs Traditional 401(k) Calculator Custom Styles
   ========================================== */

/* 2-Column Side-by-Side Comparison Grid */
.comparison-columns-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin-bottom: 1.5rem;
}

.comparison-col {
  background: #ffffff;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-card);
  padding: 1.25rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}

.comparison-col.traditional-col {
  border-top: 4px solid var(--blue-accent);
}

.comparison-col.roth-col {
  border-top: 4px solid var(--navy-darkest);
}

.col-header {
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid #f1f5f9;
}

.col-header h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--navy-darkest);
  margin-bottom: 0.25rem;
}

.col-header .col-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.2rem 0.55rem;
  border-radius: 4px;
}

.traditional-badge {
  background: #eff6ff;
  color: var(--blue-accent);
}

.roth-badge {
  background: #f8fafc;
  color: var(--navy-darkest);
  border: 1px solid #cbd5e1;
}

.metric-stack {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  flex-grow: 1;
}

.comp-metric-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.4rem 0;
  border-bottom: 1px dashed #f1f5f9;
}

.comp-metric-label {
  font-size: 0.85rem;
  color: var(--navy-muted);
}

.comp-metric-val {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--navy-darkest);
}

.comp-metric-val.negative {
  color: #dc2626;
}

.comp-final-row {
  margin-top: 1rem;
  padding-top: 0.75rem;
  border-top: 2px solid #e2e8f0;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.comp-final-label {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--navy-darkest);
}

.comp-final-val {
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--navy-darkest);
}

.comp-final-val.highlight-trad {
  color: var(--blue-accent);
}

.comp-final-val.highlight-roth {
  color: var(--navy-darkest);
}

/* Neutral Scenario Summary Card */
.scenario-summary-card {
  background: #f8fafc;
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-sm);
}

.scenario-summary-card h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy-darkest);
  margin-bottom: 0.75rem;
}

.summary-metrics-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 0.75rem;
}

.summary-metric-box {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 0.75rem 1rem;
}

.summary-metric-box .label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  font-weight: 600;
  display: block;
  margin-bottom: 0.25rem;
}

.summary-metric-box .value {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--navy-darkest);
}

.summary-statement-box {
  background: #ffffff;
  border-left: 3px solid var(--blue-accent);
  padding: 0.65rem 0.9rem;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 0.9rem;
  color: var(--navy-darkest);
  line-height: 1.45;
}

/* Break-Even Rate Card */
.break-even-card {
  background: linear-gradient(135deg, #f0f7ff 0%, #ffffff 100%);
  border: 1px solid #bfdbfe;
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.break-even-content h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--navy-darkest);
  margin-bottom: 0.35rem;
}

.break-even-content p {
  font-size: 0.85rem;
  color: var(--navy-muted);
  line-height: 1.45;
  margin: 0;
}

.break-even-badge-val {
  text-align: right;
  min-width: 140px;
}

.break-even-badge-val .rate-number {
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--blue-accent);
  line-height: 1;
}

.break-even-badge-val .rate-label {
  font-size: 0.75rem;
  color: var(--navy-muted);
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.04em;
  margin-top: 0.25rem;
}

/* Tax Sensitivity Grid */
.tax-sensitivity-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 1rem;
}

.tax-sens-card {
  background: #ffffff;
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: 1rem 1.15rem;
  box-shadow: var(--shadow-sm);
}

.tax-sens-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid #f1f5f9;
}

.tax-sens-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--navy-darkest);
}

.tax-sens-rate {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--blue-accent);
}

.tax-sens-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  margin-bottom: 0.4rem;
  color: var(--navy-muted);
}

.tax-sens-row strong {
  color: var(--navy-darkest);
}

.tax-sens-diff {
  margin-top: 0.65rem;
  padding-top: 0.5rem;
  border-top: 1px dashed #e2e8f0;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--navy-darkest);
  text-align: center;
}

/* Split Strategy Section */
.split-strategy-box {
  background: #ffffff;
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  margin-top: 1.25rem;
}

.split-slider-container {
  margin: 1.5rem 0;
}

.split-slider-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--navy-darkest);
  margin-bottom: 0.5rem;
}

.split-range-input {
  width: 100%;
  height: 8px;
  border-radius: 4px;
  background: #e2e8f0;
  outline: none;
  -webkit-appearance: none;
  cursor: pointer;
}

.split-range-input::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--blue-accent);
  cursor: pointer;
  border: 3px solid #ffffff;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.split-results-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
  margin-top: 1rem;
}

.split-metric-card {
  background: #f8fafc;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 0.75rem;
  text-align: center;
}

.split-metric-card .label {
  font-size: 0.75rem;
  color: var(--text-muted);
  display: block;
  margin-bottom: 0.25rem;
}

.split-metric-card .val {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--navy-darkest);
}

.split-combined-highlight {
  grid-column: span 4;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  padding: 0.9rem;
  border-radius: var(--radius-sm);
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 0.5rem;
}

.split-combined-highlight .highlight-label {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--navy-darkest);
}

.split-combined-highlight .highlight-val {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--blue-accent);
}

/* Callout Alerts */
.calc-alert-banner {
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  line-height: 1.45;
  margin-bottom: 1rem;
}

.calc-alert-banner.alert-warning {
  background: #fffbeb;
  border: 1px solid #fef3c7;
  color: #92400e;
}

.calc-alert-banner.alert-info {
  background: #eff6ff;
  border: 1px solid #dbeafe;
  color: #1e40af;
}

/* ==========================================
   401(k) Early Withdrawal Calculator Styles
   ========================================== */

/* Mode Switcher Tabs */
.withdrawal-mode-toggle {
  display: flex;
  background: #f1f5f9;
  border: 1px solid var(--border-light);
  border-radius: 10px;
  padding: 4px;
  gap: 4px;
  margin-bottom: 1.5rem;
}

.mode-tab-btn {
  flex: 1;
  padding: 0.65rem 1rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--navy-muted);
  background: transparent;
  border: none;
  border-radius: 7px;
  cursor: pointer;
  text-align: center;
  transition: all 0.15s ease;
}

.mode-tab-btn:hover {
  color: var(--navy-darkest);
}

.mode-tab-btn.active {
  background: #ffffff;
  color: var(--navy-darkest);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

/* Primary Result Box */
.early-withdrawal-primary-result {
  background: linear-gradient(135deg, #071a3d 0%, #0d2a5c 100%);
  color: #ffffff;
  border-radius: var(--radius-lg);
  padding: 2rem;
  margin-bottom: 1.75rem;
  box-shadow: 0 10px 25px rgba(7, 26, 61, 0.15);
}

.early-res-header {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #94a3b8;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.early-res-amount {
  font-size: 2.75rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #ffffff;
  line-height: 1.1;
  margin-bottom: 0.75rem;
}

.early-res-subtext {
  font-size: 0.9rem;
  color: #cbd5e1;
  line-height: 1.45;
}

/* Breakdown List Card */
.early-breakdown-card {
  background: #ffffff;
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.breakdown-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.65rem 0;
  border-bottom: 1px solid #f1f5f9;
  font-size: 0.92rem;
}

.breakdown-row:last-child {
  border-bottom: none;
}

.breakdown-label {
  color: var(--navy-muted);
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.breakdown-value {
  font-weight: 600;
  color: var(--navy-darkest);
}

.breakdown-value.deduction {
  color: #dc2626;
}

.breakdown-value.highlight-net {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--green-primary);
}

/* Withholding vs Liability Comparison Grid */
.withholding-comparison-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin-top: 1.25rem;
  margin-bottom: 1.5rem;
}

.withh-comp-card {
  background: #f8fafc;
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: 1.25rem;
}

.withh-card-badge {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #64748b;
  margin-bottom: 0.35rem;
}

.withh-card-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy-darkest);
  margin-bottom: 0.5rem;
}

.withh-card-amount {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--navy-darkest);
  margin-bottom: 0.5rem;
}

.withh-card-amount.cash {
  color: var(--blue-accent);
}

.withh-card-amount.tax-net {
  color: var(--green-primary);
}

.withh-card-desc {
  font-size: 0.84rem;
  color: var(--navy-muted);
  line-height: 1.45;
}

/* Rule of 55 Question Panel */
.rule55-interactive-panel {
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  border-radius: var(--radius-md);
  padding: 1.25rem;
  margin-top: 0.75rem;
}

.rule55-q-row {
  margin-bottom: 0.85rem;
}

.rule55-q-label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--navy-darkest);
  margin-bottom: 0.3rem;
}

.rule55-q-select {
  width: 100%;
  padding: 0.5rem 0.75rem;
  border-radius: 6px;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  font-size: 0.88rem;
  font-family: inherit;
  color: var(--navy-darkest);
}

.rule55-badge {
  display: inline-block;
  padding: 0.45rem 0.75rem;
  border-radius: 6px;
  font-size: 0.84rem;
  font-weight: 600;
  margin-top: 0.5rem;
  line-height: 1.4;
}

.rule55-badge.qualified {
  background: #dcfce7;
  color: #166534;
  border: 1px solid #bbf7d0;
}

.rule55-badge.not-qualified {
  background: #fee2e2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

.rule55-badge.pending {
  background: #f1f5f9;
  color: #475569;
  border: 1px solid #cbd5e1;
}

/* Worked Examples Grid */
.withdrawal-examples-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-top: 1.5rem;
  margin-bottom: 2rem;
}

.example-card {
  background: #ffffff;
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}

.example-card-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  background: #eff6ff;
  color: #1d4ed8;
  margin-bottom: 0.75rem;
  align-self: flex-start;
}

.example-card-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--navy-darkest);
  margin-bottom: 0.75rem;
}

.example-metrics-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1rem 0;
  font-size: 0.88rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.example-metrics-list li {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid #f8fafc;
  padding-bottom: 0.35rem;
}

.example-result-pill {
  margin-top: auto;
  padding: 0.75rem 1rem;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 8px;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.example-result-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: #166534;
}

.example-result-val {
  font-size: 1.25rem;
  font-weight: 800;
  color: #15803d;
}

/* Callout Warning / Distinction Boxes */
.rule-callout-box {
  background: #fffbeb;
  border-left: 4px solid #f59e0b;
  border-radius: 0 8px 8px 0;
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0;
}

.rule-callout-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #92400e;
  margin-bottom: 0.4rem;
}

.rule-callout-text {
  font-size: 0.88rem;
  color: #78350f;
  line-height: 1.5;
  margin: 0;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .withholding-comparison-grid {
    grid-template-columns: 1fr;
  }
  .withdrawal-examples-grid {
    grid-template-columns: 1fr;
  }
  .early-res-amount {
    font-size: 2.15rem;
  }
}

/* ==========================================
   401(k) Loan Calculator Custom Styles
   ========================================== */
.loan-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--blue-subtle);
  border: 1px solid var(--blue-border);
  color: var(--blue-primary);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.35rem 0.85rem;
  border-radius: 9999px;
  margin-bottom: 1rem;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.85rem;
  border-radius: 9999px;
  font-size: 0.82rem;
  font-weight: 700;
  margin-top: 0.5rem;
}

.status-pill.status-within {
  background: #f0fdf4;
  color: #166534;
  border: 1px solid #bbf7d0;
}

.status-pill.status-exceeded {
  background: #fee2e2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

.use-max-btn {
  background: var(--blue-subtle);
  border: 1px solid var(--blue-border);
  color: var(--blue-primary);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.15s ease;
  margin-left: 0.5rem;
}

.use-max-btn:hover {
  background: #dbeafe;
  color: var(--blue-dark);
}

.max-loan-summary-card {
  background: #ffffff;
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  margin-bottom: 1.5rem;
}

.max-loan-headline {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding-bottom: 1rem;
  border-bottom: 1px solid #f1f5f9;
  margin-bottom: 1rem;
}

.max-loan-headline-label {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--navy-darkest);
}

.max-loan-headline-val {
  font-size: 2rem;
  font-weight: 800;
  color: var(--green-primary);
}

.loan-breakdown-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.loan-breakdown-item {
  display: flex;
  justify-content: space-between;
  font-size: 0.88rem;
  color: var(--navy-muted);
  padding: 0.25rem 0;
}

.loan-breakdown-item.total-row {
  border-top: 2px solid var(--border-light);
  padding-top: 0.65rem;
  margin-top: 0.35rem;
  font-weight: 700;
  color: var(--navy-darkest);
}

/* Amortization Table Styles */
.amort-table-wrapper {
  overflow-x: auto;
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  margin-top: 1rem;
  background: #ffffff;
}

.amort-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
  text-align: right;
}

.amort-table th {
  background: #f8fafc;
  color: var(--navy-darkest);
  font-weight: 700;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border-card);
  white-space: nowrap;
}

.amort-table th:first-child,
.amort-table td:first-child {
  text-align: left;
}

.amort-table td {
  padding: 0.65rem 1rem;
  border-bottom: 1px solid #f1f5f9;
  color: var(--navy-muted);
}

.amort-table tr:hover {
  background: #f8fafc;
}

.text-blue {
  color: var(--blue-primary);
}

.text-green {
  color: var(--green-primary);
}

.text-orange {
  color: var(--orange-accent);
}

/* Retirement Impact Grid & Chart */
.retirement-impact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 1.25rem;
  margin-bottom: 1.5rem;
}

.ret-impact-stat-card {
  background: #ffffff;
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}

.ret-stat-label {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--navy-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.4rem;
}

.ret-stat-val {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--navy-darkest);
  margin-bottom: 0.35rem;
}

.ret-stat-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.retirement-chart-container {
  background: #ffffff;
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin-top: 1.5rem;
  box-shadow: var(--shadow-sm);
}

.retirement-impact-chart {
  width: 100%;
  height: auto;
  max-height: 320px;
  display: block;
}

/* Deemed vs Offset Distinction Cards */
.sep-distinction-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.sep-distinction-card {
  background: #ffffff;
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
}

.sep-distinction-card.deemed {
  border-left: 4px solid #ef4444;
}

.sep-distinction-card.offset {
  border-left: 4px solid var(--green-primary);
}

.sep-card-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--navy-darkest);
  margin-bottom: 0.5rem;
}

.sep-card-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  margin-bottom: 0.75rem;
}

.sep-card-badge.deemed-badge {
  background: #fee2e2;
  color: #991b1b;
}

.sep-card-badge.offset-badge {
  background: #dcfce7;
  color: #166534;
}

.sep-card-points {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 0.88rem;
  color: var(--navy-muted);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.sep-card-points li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}

/* Loan vs Early Withdrawal Comparison Table */
.comparison-table-wrapper {
  overflow-x: auto;
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  margin: 1.5rem 0;
  background: #ffffff;
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.comparison-table th {
  background: #f8fafc;
  color: var(--navy-darkest);
  font-weight: 700;
  padding: 1rem 1.25rem;
  text-align: left;
  border-bottom: 1px solid var(--border-card);
}

.comparison-table td {
  padding: 0.85rem 1.25rem;
  border-bottom: 1px solid #f1f5f9;
  color: var(--navy-muted);
  vertical-align: top;
}

.comparison-table tr:last-child td {
  border-bottom: none;
}

@media (max-width: 900px) {
  .retirement-impact-grid {
    grid-template-columns: 1fr;
  }
  .sep-distinction-grid {
    grid-template-columns: 1fr;
  }
}

/* =======================================================
   401(k) Retirement Longevity & Drawdown Calculator Styles
   ======================================================= */
.longevity-result-hero {
  background: linear-gradient(135deg, #071a3d 0%, #0b2559 100%);
  color: #ffffff;
  border-radius: var(--radius-lg);
  padding: 2.25rem 2rem;
  margin-bottom: 2rem;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}

.longevity-result-hero::after {
  content: "";
  position: absolute;
  top: -50%;
  right: -20%;
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(7, 148, 85, 0.25) 0%, transparent 70%);
  pointer-events: none;
}

.longevity-hero-header {
  margin-bottom: 1.5rem;
}

.longevity-hero-overline {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #93c5fd;
  margin-bottom: 0.4rem;
}

.longevity-hero-main {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.longevity-duration-val {
  font-size: 2.6rem;
  font-weight: 800;
  line-height: 1.15;
  color: #ffffff;
  letter-spacing: -0.02em;
}

.longevity-depletion-line {
  font-size: 1.25rem;
  font-weight: 600;
  color: #6ee7b7;
}

.longevity-support-text {
  font-size: 0.95rem;
  color: #cbd5e1;
  margin-top: 0.5rem;
  max-width: 650px;
  line-height: 1.5;
}

/* Target Age Verdict Card */
.target-verdict-card {
  background: #ffffff;
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 1.75rem 2rem;
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  box-shadow: var(--shadow-sm);
}

.target-verdict-left {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.target-verdict-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--navy-darkest);
}

.target-verdict-detail {
  font-size: 0.92rem;
  color: var(--navy-muted);
}

.status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: 800;
  padding: 0.6rem 1.6rem;
  border-radius: 9999px;
  letter-spacing: 0.04em;
  flex-shrink: 0;
}

.status-pill.status-yes {
  background: #dcfce7;
  color: #15803d;
  border: 1.5px solid #86efac;
}

.status-pill.status-no {
  background: #fee2e2;
  color: #b91c1c;
  border: 1.5px solid #fca5a5;
}

/* Preset Buttons & Quick Options */
.preset-buttons-row {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.4rem;
  flex-wrap: wrap;
}

.preset-pill-btn {
  background: #f1f5f9;
  border: 1px solid var(--border-light);
  border-radius: 9999px;
  padding: 0.3rem 0.85rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--navy-darkest);
  cursor: pointer;
  transition: all 0.15s ease;
}

.preset-pill-btn:hover {
  background: var(--blue-subtle);
  border-color: var(--blue-border);
  color: var(--blue-dark);
}

.target-age-group {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: 0.5rem;
}

.target-age-btn {
  background: #ffffff;
  border: 1px solid var(--border-card);
  border-radius: var(--radius-sm);
  padding: 0.4rem 0.85rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--navy-darkest);
  cursor: pointer;
  transition: all 0.15s ease;
}

.target-age-btn:hover,
.target-age-btn.active {
  background: var(--blue-primary);
  border-color: var(--blue-primary);
  color: #ffffff;
}

/* Milestone Cards */
.milestones-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 0.85rem;
  margin: 1.5rem 0;
}

.milestone-pill-card {
  background: #ffffff;
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: 1rem 0.85rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: transform 0.15s ease;
}

.milestone-pill-card:hover {
  transform: translateY(-2px);
  border-color: var(--blue-border);
}

.milestone-age-label {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.35rem;
}

.milestone-balance-val {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--navy-darkest);
}

/* Sensitivity Cards Grid */
.sensitivity-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin: 1.5rem 0;
}

.sensitivity-card {
  background: #ffffff;
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.15rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  box-shadow: var(--shadow-sm);
  position: relative;
}

.sensitivity-card.active-card {
  border: 2px solid var(--blue-primary);
  background: #f8fafc;
}

.sens-label {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.sens-amount {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--navy-darkest);
}

.sens-result {
  font-size: 0.88rem;
  color: var(--navy-muted);
  margin-top: 0.2rem;
}

.sens-subtext {
  font-size: 0.78rem;
  color: var(--text-light);
}

/* Withdrawal Rate Cards (3%, 4%, 5%, 6%) */
.withdrawal-rates-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin: 1.5rem 0;
}

.withdrawal-rate-card {
  background: #ffffff;
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  box-shadow: var(--shadow-sm);
}

.rate-badge {
  display: inline-block;
  align-self: flex-start;
  background: var(--blue-subtle);
  color: var(--blue-dark);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.2rem 0.55rem;
  border-radius: 4px;
}

.rate-annual {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--navy-darkest);
  margin-top: 0.2rem;
}

.rate-monthly {
  font-size: 0.85rem;
  color: var(--navy-muted);
  font-weight: 600;
}

.rate-duration {
  font-size: 0.85rem;
  color: var(--navy-muted);
  margin-top: 0.4rem;
}

.rate-balance {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Inflation Impact Grid */
.inflation-impact-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin: 1.5rem 0;
}

.inflation-impact-pill {
  background: #ffffff;
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: 1.1rem 1rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
}

.inf-year-lbl {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 0.35rem;
}

.inf-amount {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--navy-darkest);
}

/* Longevity Improvement Cards */
.longevity-improvements-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
  margin: 1.5rem 0;
}

.improvement-card {
  background: #ffffff;
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: 1.35rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  box-shadow: var(--shadow-sm);
  border-left: 4px solid var(--green-primary);
}

.imp-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--navy-darkest);
}

.imp-desc {
  font-size: 0.88rem;
  color: var(--navy-muted);
  line-height: 1.45;
}

.imp-stat {
  font-size: 0.95rem;
  color: var(--navy-darkest);
  margin-top: 0.3rem;
}

.imp-depletion {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.imp-subnote {
  font-size: 0.75rem;
  color: var(--text-light);
  font-style: italic;
}

/* Reverse Solver Container */
.reverse-solver-card {
  background: #ffffff;
  border: 1.5px solid var(--blue-border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  margin: 2rem 0;
  box-shadow: var(--shadow-sm);
}

.reverse-solver-card h3 {
  font-size: 1.3rem;
  color: var(--navy-darkest);
  margin-bottom: 0.5rem;
}

.reverse-solve-result-box {
  background: #f0fdf4;
  border: 1.5px solid #86efac;
  border-radius: var(--radius-md);
  padding: 1.5rem;
  margin-top: 1.5rem;
}

.solve-amount-hero {
  font-size: 2.2rem;
  font-weight: 800;
  color: #15803d;
  line-height: 1.2;
}

.solve-annual-sub {
  font-size: 1.05rem;
  font-weight: 600;
  color: #166534;
  margin-bottom: 0.5rem;
}

/* SVG Trajectory Chart */
.longevity-chart-container {
  background: #ffffff;
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  margin: 2rem 0;
  box-shadow: var(--shadow-sm);
}

.chart-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.chart-toggle-group {
  display: flex;
  background: #f1f5f9;
  border-radius: var(--radius-sm);
  padding: 2px;
}

.chart-toggle-btn {
  background: transparent;
  border: none;
  border-radius: 4px;
  padding: 0.35rem 0.85rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--navy-muted);
  cursor: pointer;
  transition: all 0.15s ease;
}

.chart-toggle-btn.active {
  background: #ffffff;
  color: var(--navy-darkest);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
}

.longevity-chart-svg {
  width: 100%;
  height: auto;
  display: block;
}

/* Mobile Responsiveness for Longevity Styles */
@media (max-width: 900px) {
  .sensitivity-grid {
    grid-template-columns: 1fr;
  }
  .inflation-impact-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .longevity-improvements-grid {
    grid-template-columns: 1fr;
  }
  .target-verdict-card {
    flex-direction: column;
    align-items: flex-start;
  }
  .longevity-duration-val {
    font-size: 2.1rem;
  }
}

/* ==========================================================================
   RMD Calculator Specific Styles (Option A Design System)
   ========================================================================== */

/* Hero Results Card */
.rmd-hero-card {
  background: linear-gradient(135deg, #071a3d 0%, #0f2b5c 100%);
  border-radius: var(--radius-lg);
  color: #ffffff;
  padding: 2rem;
  margin-bottom: 1.75rem;
  box-shadow: 0 10px 25px -5px rgba(7, 26, 61, 0.15), 0 8px 10px -6px rgba(7, 26, 61, 0.1);
  position: relative;
  overflow: hidden;
}

.rmd-hero-card::after {
  content: "";
  position: absolute;
  top: -50px;
  right: -50px;
  width: 180px;
  height: 180px;
  background: radial-gradient(circle, rgba(23, 105, 224, 0.25) 0%, rgba(23, 105, 224, 0) 70%);
  border-radius: 50%;
  pointer-events: none;
}

.rmd-hero-title {
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #93c5fd;
  margin-bottom: 0.5rem;
}

.rmd-hero-amount {
  font-size: 2.75rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
  margin-bottom: 0.5rem;
}

.rmd-hero-sub {
  font-size: 0.95rem;
  color: #cbd5e1;
  line-height: 1.5;
}

/* Status Callout Banner */
.status-callout-card {
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.5rem;
  border-left: 4px solid #94a3b8;
  background: #f8fafc;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.status-callout-card.status-due {
  background: #eff6ff;
  border-left-color: var(--blue-primary);
}

.status-callout-card.status-neutral {
  background: #f0fdf4;
  border-left-color: var(--green-primary);
}

.status-callout-card.status-warn {
  background: #fffbeb;
  border-left-color: #f59e0b;
}

.status-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.status-headline {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--navy-darkest);
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.25rem 0.65rem;
  border-radius: 9999px;
}

.badge-due {
  background: #dbeafe;
  color: #1e40af;
}

.badge-neutral {
  background: #dcfce7;
  color: #166534;
}

.badge-warn {
  background: #fef3c7;
  color: #92400e;
}

.status-detail-text {
  font-size: 0.9rem;
  color: #334155;
  line-height: 1.55;
}

/* Key Metrics Grid */
.rmd-metrics-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 1.75rem;
}

.rmd-metric-card {
  background: #ffffff;
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: 1.15rem;
  display: flex;
  flex-direction: column;
}

.rmd-metric-card .metric-label {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #64748b;
  margin-bottom: 0.35rem;
}

.rmd-metric-card .metric-value {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--navy-darkest);
  font-variant-numeric: tabular-nums;
  margin-bottom: 0.25rem;
}

.rmd-metric-card .metric-sub {
  font-size: 0.8rem;
  color: #64748b;
  line-height: 1.35;
}

/* Planning Equivalents Grid */
.planning-equivalents-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin: 1.5rem 0;
}

.equivalent-box {
  background: #f8fafc;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  text-align: center;
}

.equivalent-amount {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--blue-primary);
  margin-bottom: 0.25rem;
}

.equivalent-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--navy-darkest);
  margin-bottom: 0.25rem;
}

.equivalent-desc {
  font-size: 0.8rem;
  color: #64748b;
}

/* Progress and Shortfall Section */
.rmd-progress-card {
  background: #ffffff;
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin: 1.75rem 0;
}

.progress-header-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 0.75rem;
}

.progress-header-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy-darkest);
}

.progress-header-pct {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--blue-primary);
}

.progress-bar-container {
  width: 100%;
  height: 12px;
  background: #e2e8f0;
  border-radius: 9999px;
  overflow: hidden;
  margin-bottom: 1rem;
}

.progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--blue-primary), #079455);
  border-radius: 9999px;
  transition: width 0.4s ease;
}

.shortfall-box {
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
  margin-top: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.shortfall-text-col {
  flex: 1;
}

.shortfall-title {
  font-weight: 700;
  font-size: 0.95rem;
  color: #991b1b;
}

.shortfall-sub {
  font-size: 0.85rem;
  color: #7f1d1d;
}

.shortfall-amount-badge {
  font-size: 1.35rem;
  font-weight: 800;
  color: #b91c1c;
}

.surplus-box {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
  margin-top: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.surplus-text-col {
  flex: 1;
}

.surplus-title {
  font-weight: 700;
  font-size: 0.95rem;
  color: #166534;
}

.surplus-sub {
  font-size: 0.85rem;
  color: #14532d;
}

.surplus-amount-badge {
  font-size: 1.35rem;
  font-weight: 800;
  color: #15803d;
}

/* Informational Penalty / Excise Tax Cards */
.excise-scenarios-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin: 1.25rem 0;
}

.excise-card {
  background: #fff8f8;
  border: 1px solid #fecaca;
  border-radius: var(--radius-md);
  padding: 1.15rem;
}

.excise-rate-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: #991b1b;
  margin-bottom: 0.25rem;
}

.excise-amount {
  font-size: 1.4rem;
  font-weight: 800;
  color: #b91c1c;
  margin-bottom: 0.35rem;
}

.excise-desc {
  font-size: 0.8rem;
  color: #7f1d1d;
  line-height: 1.4;
}

/* Two-RMD Warning Card */
.two-rmd-warning-card {
  background: #fffbeb;
  border: 1.5px solid #fde68a;
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0;
  display: flex;
  gap: 1rem;
}

.two-rmd-icon {
  font-size: 1.5rem;
  color: #d97706;
  flex-shrink: 0;
}

.two-rmd-body h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: #92400e;
  margin-bottom: 0.35rem;
}

.two-rmd-body p {
  font-size: 0.85rem;
  color: #78350f;
  line-height: 1.5;
  margin: 0;
}

/* Tax Estimator Box */
.rmd-tax-box {
  background: #f8fafc;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  margin: 1.25rem 0;
}

.tax-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0;
  border-bottom: 1px dashed var(--border-light);
  font-size: 0.9rem;
}

.tax-row:last-child {
  border-bottom: none;
  font-weight: 700;
  color: var(--navy-darkest);
  font-size: 1rem;
  padding-top: 0.75rem;
}

.tax-row-label {
  color: #475569;
}

.tax-row-val {
  font-weight: 600;
  color: var(--navy-darkest);
  font-variant-numeric: tabular-nums;
}

/* Multi-Year SVG Chart Container */
.rmd-chart-container {
  background: #ffffff;
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  margin: 2rem 0;
  box-shadow: var(--shadow-sm);
}

.rmd-chart-svg {
  width: 100%;
  height: auto;
  display: block;
}

/* Responsive adjustments */
@media (max-width: 900px) {
  .rmd-metrics-grid {
    grid-template-columns: 1fr;
  }
  .planning-equivalents-grid {
    grid-template-columns: 1fr;
  }
  .excise-scenarios-grid {
    grid-template-columns: 1fr;
  }
  .rmd-hero-amount {
    font-size: 2.25rem;
  }
}

/* ==========================================================================
   401(k) Catch-Up Calculator Specific Styles (Option A Design System)
   ========================================================================== */

/* Catch-Up Hero Result Card */
.catchup-hero-card {
  background: linear-gradient(135deg, #071a3d 0%, #0f2b5c 100%);
  border-radius: var(--radius-lg);
  color: #ffffff;
  padding: 2rem;
  margin-bottom: 1.75rem;
  box-shadow: 0 10px 25px -5px rgba(7, 26, 61, 0.15), 0 8px 10px -6px rgba(7, 26, 61, 0.1);
  position: relative;
  overflow: hidden;
}

.catchup-hero-card::after {
  content: "";
  position: absolute;
  top: -50px;
  right: -50px;
  width: 180px;
  height: 180px;
  background: radial-gradient(circle, rgba(23, 105, 224, 0.25) 0%, rgba(23, 105, 224, 0) 70%);
  border-radius: 50%;
  pointer-events: none;
}

.catchup-hero-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.catchup-hero-title {
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #93c5fd;
}

.catchup-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.75rem;
  background: rgba(23, 105, 224, 0.25);
  border: 1px solid rgba(147, 197, 253, 0.4);
  border-radius: 9999px;
  font-size: 0.8rem;
  font-weight: 700;
  color: #dbeafe;
}

.catchup-hero-amount {
  font-size: 2.75rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
  margin-bottom: 0.5rem;
}

.catchup-hero-sub {
  font-size: 0.95rem;
  color: #cbd5e1;
  line-height: 1.5;
}

/* Catch-Up Metrics Grid */
.catchup-metrics-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 1.75rem;
}

.catchup-metric-card {
  background: #ffffff;
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: 1.15rem;
  display: flex;
  flex-direction: column;
}

.catchup-metric-card .metric-label {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #64748b;
  margin-bottom: 0.35rem;
}

.catchup-metric-card .metric-value {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--navy-darkest);
  font-variant-numeric: tabular-nums;
  margin-bottom: 0.25rem;
}

.catchup-metric-card .metric-sub {
  font-size: 0.8rem;
  color: #64748b;
  line-height: 1.35;
}

/* Catch-Up Progress Section */
.catchup-progress-card {
  background: #ffffff;
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin: 1.75rem 0;
}

.catchup-progress-bar-wrap {
  width: 100%;
  height: 14px;
  background: #e2e8f0;
  border-radius: 9999px;
  overflow: hidden;
  margin: 0.75rem 0 1rem;
}

.catchup-progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--blue-primary), #079455);
  border-radius: 9999px;
  transition: width 0.4s ease;
}

/* Alert Notification Cards */
.alert-card {
  border-radius: var(--radius-md);
  padding: 1.15rem 1.35rem;
  margin: 1.25rem 0;
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
}

.alert-card.alert-danger {
  background: #fef2f2;
  border: 1.5px solid #fecaca;
  color: #991b1b;
}

.alert-card.alert-warn {
  background: #fffbeb;
  border: 1.5px solid #fde68a;
  color: #92400e;
}

.alert-card.alert-info {
  background: #eff6ff;
  border: 1.5px solid #bfdbfe;
  color: #1e40af;
}

.alert-icon {
  font-size: 1.25rem;
  line-height: 1;
  flex-shrink: 0;
}

.alert-content h4 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.alert-content p {
  font-size: 0.85rem;
  line-height: 1.5;
  margin: 0;
}

/* Mobile responsiveness */
@media (max-width: 900px) {
  .catchup-metrics-grid {
    grid-template-columns: 1fr;
  }
  .catchup-hero-amount {
    font-size: 2.25rem;
  }
}

/* ==========================================================================
   401(k) Retirement Withdrawal Calculator Styles (Option A)
   ========================================================================== */
.withdrawal-hero-card {
  background: #ffffff;
  border: 1.5px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 1.75rem 2rem;
  box-shadow: 0 4px 16px rgba(7, 26, 61, 0.06);
  margin-bottom: 1.5rem;
  position: relative;
  overflow: hidden;
}

.withdrawal-hero-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #1769e0 0%, #079455 100%);
}

.withdrawal-hero-label {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--navy-muted);
  margin-bottom: 0.35rem;
}

.withdrawal-hero-amount {
  font-size: 2.75rem;
  font-weight: 800;
  color: var(--navy-darkest);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.withdrawal-hero-sub {
  font-size: 1rem;
  color: var(--navy-muted);
  margin-top: 0.35rem;
  font-weight: 500;
}

.withdrawal-metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1rem;
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border-light);
}

.withdrawal-metric-item {
  display: flex;
  flex-direction: column;
}

.withdrawal-metric-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.2rem;
}

.withdrawal-metric-value {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--navy-darkest);
}

.growth-steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 0.75rem;
  margin: 1.25rem 0;
}

.growth-step-card {
  background: #f8fafc;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 0.85rem 0.75rem;
  text-align: center;
}

.growth-step-year {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  color: #64748b;
  margin-bottom: 0.35rem;
}

.growth-step-val {
  display: block;
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--navy-darkest);
}

.growth-step-sub {
  display: block;
  font-size: 0.75rem;
  color: #64748b;
  margin-top: 0.2rem;
}

.rate-compare-card {
  background: #ffffff;
  border: 1.5px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.rate-compare-card.depleted-warning {
  border-color: #fca5a5;
  background: #fffafa;
}

.rate-compare-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.25rem;
}

.rate-percent-badge {
  font-size: 0.85rem;
  font-weight: 800;
  color: #1e40af;
  background: #eff6ff;
  padding: 0.2rem 0.6rem;
  border-radius: 9999px;
}

.depletion-status-tag {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
}

.depletion-status-tag.status-ok {
  background: #dcfce7;
  color: #15803d;
}

.depletion-status-tag.status-depleted {
  background: #fee2e2;
  color: #b91c1c;
}

.rate-withdrawal-amount {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--navy-darkest);
}

.rate-withdrawal-annual {
  font-size: 0.82rem;
  color: var(--navy-muted);
}

.rate-ending-bal {
  font-size: 0.8rem;
  color: #64748b;
  margin-top: 0.4rem;
  padding-top: 0.4rem;
  border-top: 1px dashed var(--border-light);
}

.income-gap-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--border-light);
  font-size: 0.92rem;
  color: var(--navy-darkest);
}

.income-gap-row.subtract {
  color: #475569;
}

.income-gap-row.highlight {
  background: #eff6ff;
  padding: 0.75rem;
  border-radius: var(--radius-sm);
  margin-top: 0.5rem;
  border-bottom: none;
  font-weight: 600;
}

.income-gap-row.gross-needed {
  background: #f0fdf4;
  padding: 0.75rem;
  border-radius: var(--radius-sm);
  margin-top: 0.5rem;
  border-bottom: none;
  font-weight: 700;
  color: #15803d;
}

.stress-comparison-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.stress-col {
  background: #ffffff;
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: 1.15rem;
}

.stress-col h5 {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--navy-darkest);
  margin-bottom: 0.5rem;
}

.stress-col.warning {
  border-color: #fca5a5;
  background: #fef2f2;
}

.stress-col.solved {
  border-color: #86efac;
  background: #f0fdf4;
}

.stress-val {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--navy-darkest);
  margin-bottom: 0.25rem;
}

.stress-sub {
  font-size: 0.82rem;
  color: #64748b;
}

.rmd-results-box {
  background: #f8fafc;
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  margin-top: 1rem;
}

.rmd-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0;
  font-size: 0.9rem;
}

.rmd-row.alert-rmd {
  color: #b91c1c;
  font-weight: 700;
  background: #fee2e2;
  padding: 0.65rem;
  border-radius: var(--radius-sm);
  margin: 0.5rem 0;
}

.rmd-row.ok-rmd {
  color: #15803d;
  font-weight: 600;
}

.rmd-helper-note {
  font-size: 0.8rem;
  color: #64748b;
  margin-top: 0.5rem;
  line-height: 1.45;
}

@media (max-width: 900px) {
  .withdrawal-hero-amount {
    font-size: 2.25rem;
  }
  .growth-steps-grid {

/* ==========================================================================
   How a 401(k) Works — Master Educational Pillar Styles (Option A)
   ========================================================================== */
.pillar-article-layout {
  max-width: 880px;
  margin: 0 auto;
  padding: 1.5rem 1rem 4rem;
}

.pillar-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: #eff6ff;
  color: #1769e0;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.35rem 0.75rem;
  border-radius: 9999px;
  border: 1px solid #bfdbfe;
  margin-bottom: 1rem;
}

.pillar-hero-title {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--navy-darkest);
  line-height: 1.2;
  margin-bottom: 1rem;
}

.pillar-lead-text {
  font-size: 1.15rem;
  line-height: 1.65;
  color: #334155;
  margin-bottom: 1.5rem;
}

/* Process Rail Diagram */
.process-rail-card {
  background: #ffffff;
  border: 1.5px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin: 2rem 0;
  box-shadow: 0 4px 16px rgba(7, 26, 61, 0.05);
}

.process-rail-title {
  font-size: 0.95rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #1769e0;
  margin-bottom: 1rem;
  text-align: center;
}

.process-steps-track {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  position: relative;
}

.process-step-node {
  flex: 1;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-md);
  padding: 0.85rem 0.65rem;
  text-align: center;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.process-step-node:hover {
  transform: translateY(-2px);
  border-color: #93c5fd;
  box-shadow: 0 4px 12px rgba(23, 105, 224, 0.08);
}

.process-step-node.active-stage {
  background: #eff6ff;
  border-color: #bfdbfe;
}

.step-icon-badge {
  font-size: 1.35rem;
  display: block;
  margin-bottom: 0.35rem;
}

.step-node-label {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--navy-darkest);
  line-height: 1.25;
}

.step-node-sub {
  font-size: 0.72rem;
  color: #64748b;
  margin-top: 0.2rem;
  line-height: 1.2;
}

.process-track-arrow {
  color: #94a3b8;
  font-weight: bold;
  font-size: 1.1rem;
  flex-shrink: 0;
}

/* Quick Navigation / Table of Contents */
.pillar-toc-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
  margin: 2rem 0;
}

.pillar-toc-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy-darkest);
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.pillar-toc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 0.45rem 1.25rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.pillar-toc-grid li a {
  color: #1769e0;
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  transition: color 0.15s;
}

.pillar-toc-grid li a:hover {
  color: #071a3d;
  text-decoration: underline;
}

/* Content Sections */
.pillar-content-section {
  margin-bottom: 3rem;
  padding-top: 1rem;
}

.pillar-content-section h2 {
  font-size: 1.85rem;
  font-weight: 800;
  color: var(--navy-darkest);
  line-height: 1.3;
  margin-bottom: 1rem;
  padding-bottom: 0.4rem;
  border-bottom: 2px solid #e2e8f0;
}

.pillar-content-section h3 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--navy-darkest);
  margin: 1.5rem 0 0.65rem;
  line-height: 1.35;
}

.pillar-content-section p {
  font-size: 1rem;
  line-height: 1.7;
  color: #334155;
  margin-bottom: 1rem;
}

.pillar-content-section ul,
.pillar-content-section ol {
  margin: 0.75rem 0 1.25rem 1.5rem;
  color: #334155;
  line-height: 1.7;
  font-size: 1rem;
}

.pillar-content-section li {
  margin-bottom: 0.4rem;
}

/* Callout Cards & Highlights */
.pillar-highlight-box {
  background: #ffffff;
  border-left: 4px solid #1769e0;
  border-top: 1px solid #e2e8f0;
  border-right: 1px solid #e2e8f0;
  border-bottom: 1px solid #e2e8f0;
  border-radius: var(--radius-sm);
  padding: 1.15rem 1.35rem;
  margin: 1.5rem 0;
  box-shadow: 0 2px 8px rgba(7, 26, 61, 0.04);
}

.pillar-highlight-box.success-highlight {
  border-left-color: #079455;
  background: #f0fdf4;
}

.pillar-highlight-box.warning-highlight {
  border-left-color: #f59e0b;
  background: #fffbeb;
}

.pillar-highlight-box p:last-child {
  margin-bottom: 0;
}

/* Example Calculation Box */
.worked-calc-box {
  background: #ffffff;
  border: 1.5px solid #cbd5e1;
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
  margin: 1.25rem 0;
}

.worked-calc-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.4rem 0;
  border-bottom: 1px dashed #e2e8f0;
  font-size: 0.95rem;
  color: #334155;
}

.worked-calc-row:last-child {
  border-bottom: none;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--navy-darkest);
  padding-top: 0.65rem;
}

.worked-calc-label {
  font-weight: 500;
}

.worked-calc-val {
  font-weight: 700;
}

/* Inline Calculator Referral Chips */
.calculator-referral-chip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: var(--radius-md);
  padding: 0.85rem 1.2rem;
  margin: 1.25rem 0;
  text-decoration: none;
  transition: all 0.2s ease;
}

.calculator-referral-chip:hover {
  background: #dbeafe;
  border-color: #93c5fd;
  transform: translateY(-1px);
}

.referral-chip-text {
  display: flex;
  flex-direction: column;
}

.referral-chip-title {
  font-weight: 700;
  font-size: 0.95rem;
  color: #1769e0;
}

.referral-chip-desc {
  font-size: 0.82rem;
  color: #475569;
  margin-top: 0.15rem;
}

.referral-chip-arrow {
  color: #1769e0;
  font-size: 1.25rem;
  font-weight: bold;
  padding-left: 0.75rem;
}

/* Comparison Tables */
.pillar-table-wrapper {
  overflow-x: auto;
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  margin: 1.5rem 0;
  background: #ffffff;
  box-shadow: 0 2px 8px rgba(7, 26, 61, 0.04);
}

.pillar-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.92rem;
}

.pillar-table th {
  background: #f8fafc;
  color: var(--navy-darkest);
  font-weight: 700;
  padding: 0.85rem 1rem;
  border-bottom: 2px solid #e2e8f0;
}

.pillar-table td {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid #e2e8f0;
  color: #334155;
  line-height: 1.5;
}

.pillar-table tr:last-child td {
  border-bottom: none;
}

.pillar-table tr:nth-child(even) td {
  background: #fafbfc;
}

/* 12-Card Calculator Hub Grid */
.calc-hub-section {
  background: #ffffff;
  border: 1.5px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 2rem;
  margin: 3rem 0;
  box-shadow: 0 4px 20px rgba(7, 26, 61, 0.06);
}

.calc-hub-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 2rem;
}

.calc-hub-header h2 {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--navy-darkest);
  margin-bottom: 0.5rem;
  border: none;
  padding: 0;
}

.calc-hub-header p {
  color: #64748b;
  font-size: 0.95rem;
}

.calc-hub-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.15rem;
}

.calc-hub-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-md);
  padding: 1.25rem;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.2s ease;
}

.calc-hub-card:hover {
  background: #ffffff;
  border-color: #1769e0;
  box-shadow: 0 6px 18px rgba(23, 105, 224, 0.1);
  transform: translateY(-2px);
}

.calc-hub-card-icon {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.calc-hub-card-title {
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--navy-darkest);
  margin-bottom: 0.35rem;
  line-height: 1.3;
}

.calc-hub-card-desc {
  font-size: 0.82rem;
  color: #64748b;
  line-height: 1.45;
  margin-bottom: 0.75rem;
  flex-grow: 1;
}

.calc-hub-card-cta {
  font-size: 0.82rem;
  font-weight: 700;
  color: #1769e0;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

/* Accessible FAQ Accordions (<details> & <summary>) */
.pillar-faq-accordion {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin: 1.5rem 0;
}

.faq-accordion-item {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.faq-accordion-item:hover {
  border-color: #cbd5e1;
}

.faq-accordion-item[open] {
  border-color: #93c5fd;
  box-shadow: 0 2px 10px rgba(23, 105, 224, 0.06);
}

.faq-summary {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--navy-darkest);
  padding: 1.15rem 1.35rem;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
  position: relative;
}

.faq-summary::-webkit-details-marker {
  display: none;
}

.faq-summary::after {
  content: "+";
  font-size: 1.35rem;
  font-weight: 400;
  color: #1769e0;
  transition: transform 0.2s;
  flex-shrink: 0;
  margin-left: 1rem;
}

.faq-accordion-item[open] .faq-summary::after {
  content: "−";
  transform: rotate(180deg);
}

.faq-answer {
  padding: 0 1.35rem 1.25rem;
  color: #334155;
  font-size: 0.95rem;
  line-height: 1.65;
  border-top: 1px solid #f1f5f9;
  padding-top: 0.85rem;
}

.faq-answer p:last-child {
  margin-bottom: 0;
}

/* Sources & Editorial Section */
.pillar-sources-box {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-md);
  padding: 1.5rem;
  margin: 2.5rem 0;
}

.pillar-sources-box h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--navy-darkest);
  margin-bottom: 0.75rem;
}

.sources-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sources-list li {
  padding: 0.45rem 0;
  border-bottom: 1px solid #f1f5f9;
  font-size: 0.9rem;
  color: #475569;
}

.sources-list li:last-child {
  border-bottom: none;
}

.sources-list strong {
  color: var(--navy-darkest);
}

.source-verify-badge {
  display: inline-block;
  background: #ecfdf5;
  color: #065f46;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius-sm);
  border: 1px solid #a7f3d0;
  margin-top: 1rem;
}

/* Mobile Responsiveness */
@media (max-width: 900px) {
  .calc-hub-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .pillar-hero-title {
    font-size: 2rem;
  }
}

@media (max-width: 640px) {
  .process-steps-track {
    flex-direction: column;
    gap: 0.75rem;
  }
  .process-step-node {
    width: 100%;
  }
  .process-track-arrow {
    transform: rotate(90deg);
  }
  .calc-hub-grid {
    grid-template-columns: 1fr;
  }
  .pillar-toc-grid {
    grid-template-columns: 1fr;
  }
  .pillar-hero-title {
    font-size: 1.75rem;
  }
  .pillar-lead-text {
    font-size: 1.05rem;
  }
}












/* ==========================================================================
   401(k) Calculator Methodology & Transparency Hub Styles
   ========================================================================== */

.methodology-container {
  max-width: 1040px;
  margin: 0 auto;
  padding: 2rem 1.5rem 4rem;
}

.methodology-hero {
  background: linear-gradient(135deg, #071a3d 0%, #0d285c 100%);
  color: #ffffff;
  padding: 3.5rem 2rem;
  border-radius: 1rem;
  margin-bottom: 2.5rem;
  box-shadow: 0 10px 25px -5px rgba(7, 26, 61, 0.2);
}

.methodology-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.12);
  color: #93c5fd;
  font-size: 0.875rem;
  font-weight: 600;
  padding: 0.35rem 0.85rem;
  border-radius: 9999px;
  margin-bottom: 1.25rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.methodology-hero h1 {
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 1rem;
  color: #ffffff;
}

.methodology-tagline {
  font-size: 1.35rem;
  font-weight: 600;
  color: #60a5fa;
  margin-bottom: 1rem;
}

.methodology-hero-desc {
  font-size: 1.1rem;
  line-height: 1.6;
  color: #e2e8f0;
  max-width: 820px;
  margin-bottom: 1.75rem;
}

.methodology-trust-markers {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.trust-marker-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 0.4rem 0.85rem;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: #f1f5f9;
}

.trust-marker-pill svg {
  color: #34d399;
}

/* Badge System */
.methodology-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8125rem;
  font-weight: 700;
  padding: 0.25rem 0.65rem;
  border-radius: 0.375rem;
  line-height: 1.3;
  letter-spacing: 0.02em;
}

.badge-official {
  background: #ecfdf3;
  color: #027a48;
  border: 1px solid #a6f4c5;
}

.badge-user {
  background: #eff8ff;
  color: #175cd3;
  border: 1px solid #b2ddff;
}

.badge-calculated {
  background: #f9f5ff;
  color: #6941c6;
  border: 1px solid #e9d7fe;
}

.badge-comparison-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
  margin: 1.5rem 0 2rem;
}

.badge-comparison-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 0.75rem;
  padding: 1.25rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.badge-comparison-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: #071a3d;
  margin: 0.75rem 0 0.5rem;
}

.badge-comparison-card p {
  font-size: 0.925rem;
  color: #475467;
  line-height: 1.5;
  margin-bottom: 0.75rem;
}

.badge-comparison-example {
  background: #f8fafc;
  padding: 0.6rem 0.85rem;
  border-radius: 0.375rem;
  font-size: 0.875rem;
  border-left: 3px solid #1769e0;
}

/* Source Hierarchy Component */
.source-hierarchy-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin: 1.75rem 0 2.5rem;
}

.tier-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 0.75rem;
  padding: 1.5rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
  position: relative;
  transition: transform 0.2s, box-shadow 0.2s;
}

.tier-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.08);
}

.tier-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tier-rank {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 800;
  font-size: 0.95rem;
  color: #071a3d;
}

.tier-rank-num {
  background: #071a3d;
  color: #ffffff;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
}

.tier-badge {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.25rem 0.6rem;
  border-radius: 0.25rem;
}

.tier-badge-primary {
  background: #ecfdf3;
  color: #027a48;
  border: 1px solid #a6f4c5;
}

.tier-badge-secondary {
  background: #eff8ff;
  color: #175cd3;
  border: 1px solid #b2ddff;
}

.tier-badge-tertiary {
  background: #fff6ed;
  color: #b54708;
  border: 1px solid #fedf89;
}

.tier-badge-local {
  background: #f8fafc;
  color: #475467;
  border: 1px solid #e2e8f0;
}

.tier-card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: #071a3d;
  margin-bottom: 0.5rem;
}

.tier-card p {
  font-size: 0.95rem;
  color: #475467;
  line-height: 1.55;
  margin-bottom: 0.75rem;
}

.tier-examples {
  background: #f8fafc;
  padding: 0.85rem 1rem;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  color: #334155;
  border-left: 3px solid #1769e0;
}

/* Math Formula Callout Boxes */
.formula-box {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-left: 4px solid #1769e0;
  border-radius: 0.5rem;
  padding: 1.25rem;
  margin: 1.5rem 0;
}

.formula-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
}

.formula-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #071a3d;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.formula-math {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 1.05rem;
  font-weight: 600;
  background: #ffffff;
  padding: 0.85rem 1.15rem;
  border-radius: 0.375rem;
  border: 1px solid #e2e8f0;
  color: #0f172a;
  overflow-x: auto;
  margin-bottom: 0.85rem;
}

.formula-desc {
  font-size: 0.9rem;
  color: #475467;
  line-height: 1.5;
}

.formula-desc ul {
  margin: 0.5rem 0 0 1.25rem;
  padding: 0;
}

.formula-desc li {
  margin-bottom: 0.25rem;
}

/* Constants Grid */
.constants-table-wrap {
  overflow-x: auto;
  margin: 1.5rem 0 2rem;
  border: 1px solid #e2e8f0;
  border-radius: 0.5rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.constants-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
  background: #ffffff;
}

.constants-table th {
  background: #071a3d;
  color: #ffffff;
  padding: 0.85rem 1rem;
  text-align: left;
  font-weight: 700;
  font-size: 0.875rem;
  letter-spacing: 0.03em;
}

.constants-table td {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid #e2e8f0;
  color: #334155;
  vertical-align: middle;
}

.constants-table tr:last-child td {
  border-bottom: none;
}

.constants-table tr:hover {
  background: #f8fafc;
}

/* Test Case Cards */
.test-case-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.25rem;
  margin: 1.5rem 0 2rem;
}

.test-case-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 0.75rem;
  padding: 1.25rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.test-case-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid #f1f5f9;
}

.test-case-title {
  font-weight: 700;
  color: #071a3d;
  font-size: 1rem;
}

.test-case-status {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.75rem;
  font-weight: 700;
  color: #027a48;
  background: #ecfdf3;
  padding: 0.2rem 0.5rem;
  border-radius: 0.25rem;
  border: 1px solid #a6f4c5;
}

.test-case-details {
  font-size: 0.875rem;
  color: #475467;
  line-height: 1.5;
}

.test-case-inputs {
  background: #f8fafc;
  padding: 0.6rem 0.75rem;
  border-radius: 0.375rem;
  margin: 0.5rem 0;
  font-family: ui-monospace, SFMono-Regular, monospace;
  font-size: 0.8125rem;
  color: #334155;
}

.test-case-result {
  font-weight: 600;
  color: #071a3d;
}

/* Table of Contents for Methodology */
.methodology-toc-box {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 0.75rem;
  padding: 1.5rem;
  margin-bottom: 2.5rem;
}

.methodology-toc-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: #071a3d;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.methodology-toc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 0.65rem 1.25rem;
}

.methodology-toc-link {
  color: #1769e0;
  text-decoration: none;
  font-size: 0.925rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0;
  transition: color 0.15s;
}

.methodology-toc-link:hover {
  color: #0c4a9e;
  text-decoration: underline;
}

/* Source Authority Grid */
.source-authority-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
  margin: 1.75rem 0 2.5rem;
}

.source-authority-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 0.75rem;
  padding: 1.5rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.source-authority-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: #071a3d;
  margin-bottom: 0.5rem;
}

.source-authority-card p {
  font-size: 0.9rem;
  color: #475467;
  line-height: 1.5;
  margin-bottom: 0.75rem;
}

.source-authority-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.source-authority-links li {
  margin-bottom: 0.4rem;
}

.source-authority-links a {
  color: #1769e0;
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: underline;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

/* Collapsible technical details */
.methodology-details {
  border: 1px solid #e2e8f0;
  border-radius: 0.5rem;
  background: #ffffff;
  margin: 1rem 0;
  overflow: hidden;
}

.methodology-details summary {
  padding: 1rem 1.25rem;
  font-weight: 700;
  color: #071a3d;
  cursor: pointer;
  background: #f8fafc;
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
}

.methodology-details summary:hover {
  background: #f1f5f9;
}

.methodology-details-content {
  padding: 1.25rem;
  border-top: 1px solid #e2e8f0;
  font-size: 0.95rem;
  color: #334155;
  line-height: 1.6;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .methodology-hero h1 {
    font-size: 2rem;
  }
  .methodology-tagline {
    font-size: 1.15rem;
  }
  .badge-comparison-grid,
  .test-case-grid,
  .source-authority-grid {
    grid-template-columns: 1fr;
  }
}


/* ==========================================================================
   Trust & Legal Pages (About, Privacy, Terms) Styles
   ========================================================================== */

.trust-page-container {
  max-width: 980px;
  margin: 0 auto;
  padding: 2rem 1.5rem 4rem;
}

.trust-hero {
  background: linear-gradient(135deg, #071a3d 0%, #0d285c 100%);
  color: #ffffff;
  padding: 3rem 2rem;
  border-radius: 1rem;
  margin-bottom: 2.5rem;
  box-shadow: 0 10px 25px -5px rgba(7, 26, 61, 0.2);
}

.trust-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.12);
  color: #93c5fd;
  font-size: 0.8125rem;
  font-weight: 700;
  padding: 0.3rem 0.8rem;
  border-radius: 9999px;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.trust-hero h1 {
  font-size: 2.35rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 0.75rem;
  color: #ffffff;
}

.trust-hero-tagline {
  font-size: 1.25rem;
  font-weight: 600;
  color: #60a5fa;
  margin-bottom: 1rem;
}

.trust-hero-desc {
  font-size: 1.05rem;
  line-height: 1.6;
  color: #e2e8f0;
  max-width: 780px;
  margin: 0;
}

.trust-meta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  font-size: 0.875rem;
  color: #94a3b8;
}

.trust-meta-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 0.25rem 0.65rem;
  border-radius: 0.375rem;
  color: #f1f5f9;
  font-weight: 600;
}

.trust-section {
  margin-bottom: 3rem;
}

.trust-section h2 {
  font-size: 1.65rem;
  color: #071a3d;
  font-weight: 800;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #e2e8f0;
}

.trust-section h3 {
  font-size: 1.2rem;
  color: #071a3d;
  font-weight: 700;
  margin: 1.5rem 0 0.75rem;
}

.trust-section p {
  font-size: 1rem;
  color: #334155;
  line-height: 1.65;
  margin-bottom: 1rem;
}

.trust-section ul, .trust-section ol {
  font-size: 0.975rem;
  color: #334155;
  line-height: 1.65;
  margin: 0 0 1.25rem 1.5rem;
  padding: 0;
}

.trust-section li {
  margin-bottom: 0.5rem;
}

.trust-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 0.75rem;
  padding: 1.5rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  margin-bottom: 1.25rem;
}

.trust-grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.25rem;
  margin: 1.5rem 0 2rem;
}

.trust-grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
  margin: 1.5rem 0 2rem;
}

.trust-callout-warning {
  background: #fffbeb;
  border: 1px solid #fed7aa;
  border-left: 4px solid #f59e0b;
  border-radius: 0.5rem;
  padding: 1.25rem;
  margin: 1.5rem 0;
  color: #92400e;
}

.trust-callout-warning h4 {
  font-size: 1.05rem;
  font-weight: 700;
  color: #78350f;
  margin: 0 0 0.5rem;
}

.trust-callout-warning p {
  font-size: 0.925rem;
  line-height: 1.55;
  color: #92400e;
  margin: 0;
}

.trust-callout-info {
  background: #eff8ff;
  border: 1px solid #b2ddff;
  border-left: 4px solid #1769e0;
  border-radius: 0.5rem;
  padding: 1.25rem;
  margin: 1.5rem 0;
  color: #1e40af;
}

.trust-callout-info h4 {
  font-size: 1.05rem;
  font-weight: 700;
  color: #1e3a8a;
  margin: 0 0 0.5rem;
}

.trust-callout-info p {
  font-size: 0.925rem;
  line-height: 1.55;
  color: #1e40af;
  margin: 0;
}

.trust-callout-success {
  background: #ecfdf3;
  border: 1px solid #a6f4c5;
  border-left: 4px solid #027a48;
  border-radius: 0.5rem;
  padding: 1.25rem;
  margin: 1.5rem 0;
  color: #065f46;
}

.trust-callout-success h4 {
  font-size: 1.05rem;
  font-weight: 700;
  color: #064e3b;
  margin: 0 0 0.5rem;
}

.trust-callout-success p {
  font-size: 0.925rem;
  line-height: 1.55;
  color: #065f46;
  margin: 0;
}

.trust-matrix-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  background: #ffffff;
  margin: 1.25rem 0 2rem;
  border: 1px solid #e2e8f0;
  border-radius: 0.5rem;
  overflow: hidden;
}

.trust-matrix-table th {
  background: #071a3d;
  color: #ffffff;
  padding: 0.75rem 1rem;
  text-align: left;
  font-weight: 700;
}

.trust-matrix-table td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid #e2e8f0;
  color: #334155;
  vertical-align: top;
}

.trust-matrix-table tr:last-child td {
  border-bottom: none;
}

.trust-matrix-table tr:nth-child(even) {
  background: #f8fafc;
}

@media (max-width: 768px) {
  .trust-hero h1 {
    font-size: 1.85rem;
  }
  .trust-hero-tagline {
    font-size: 1.1rem;
  }
  .trust-grid-2, .trust-grid-3 {
    grid-template-columns: 1fr;
  }
}
