/* Mercer Funding Group – Feasibility Calculator
   Professional finance theme, responsive */

:root {
  /* Mercer Brand Colors */
  --mercer-blue: #1e3a5f;        /* Deep navy for primary elements */
  --mercer-blue-light: #2d4a6f;   /* Hover states */
  --mercer-blue-bg: rgba(30, 58, 95, 0.05); /* Subtle backgrounds */
  --accent-gold: #c9a961;         /* Muted gold accent for RLV */
  --accent-teal: #2d7d7d;        /* Alternative teal accent */
  
  /* Neutral Palette */
  --bg: #ffffff;
  --bg-card: #f1f5f9;
  --bg-input: #ffffff;
  --bg-soft: #F8F9FA;            /* Very soft grey for subtle backgrounds */
  --bg-hover: #e2e8f0;
  --border: #cbd5e1;
  --border-light: #e2e8f0;
  --border-dark: #94a3b8;
  --border-subtle: #e5e7eb;      /* Very light borders */
  --text: #0f172a;
  --text-muted: #6C757D;         /* Medium grey for labels */
  --text-subtle: #9ca3af;
  
  /* Legacy accent colors (for compatibility) */
  --accent: #1e3a5f;
  --accent-hover: #2d4a6f;
  --accent-light: rgba(30, 58, 95, 0.1);
  --accent-dark: #1e3a5f;
  --accent-bg: rgba(30, 58, 95, 0.08);
  
  /* Status Colors */
  --success: #059669;
  --success-light: rgba(5, 150, 105, 0.1);
  --warning: #d97706;
  --warning-amber: #f59e0b;       /* Amber for warnings */
  --warning-bg: rgba(245, 158, 11, 0.1);
  --error-crimson: #991b1b;      /* Deep crimson for shortfalls */
  --error-bg: rgba(153, 27, 27, 0.1);
  
  /* Typography */
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'SF Mono', 'Monaco', 'Inconsolata', monospace;
  
  /* Spacing & Effects */
  --radius: 8px;
  --radius-sm: 4px;
  --shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 4px 16px rgba(0, 0, 0, 0.12);
  --shadow-subtle: 0 1px 3px rgba(0, 0, 0, 0.05);
  --shadow-soft: 0 4px 12px rgba(0, 0, 0, 0.08);
  --shadow-accent: 0 4px 16px rgba(30, 58, 95, 0.2);
  /* Mercer high-contrast brand */
  --mercer-sky: #2297D0;
  --mercer-border: #E5E7EB;
}

/* Mercer brand: high-contrast cards */
.mercer-card {
  background: #fff;
  border: 1px solid var(--mercer-border);
  border-radius: 1rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  padding: 1.5rem;
}
.mercer-card-inner {
  border: 1px solid var(--mercer-border);
  border-radius: 1rem;
  padding: 1rem 1.25rem;
  background: #fff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

/* Panel columns – clear top line and separation (matches PDF boxed headers) */
.panel-column {
  padding-left: 1rem;
  padding-right: 1rem;
}
.panel-inputs {
  background: var(--bg-soft);
  border: 1px solid var(--border-light);
  border-radius: 1rem;
  padding-left: 1rem;
  padding-right: 1rem;
}
.panel-results {
  background: var(--bg-soft);
  border: 1px solid var(--border-light);
  border-radius: 1rem;
  padding-left: 1rem;
  padding-right: 1rem;
}
.panel-header-bar {
  width: 100%;
  background: #000;
  color: #fff;
  font-weight: 700;
  font-size: 0.9375rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.625rem 1rem;
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.panel-header-inputs .panel-title {
  color: #fff;
}
.panel-header-results .panel-title {
  color: #fff;
}
.panel-header-inputs .clear-all-btn {
  flex-shrink: 0;
}
.panel-header-results .export-in-header {
  flex-shrink: 0;
}
.results-project-label {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
}

.results-pre-tax-note {
  background-color: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: 0.5rem;
}

.results-pre-tax-note p {
  line-height: 1.5;
}

.section-heading {
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #000;
  margin: 0 0 1rem 0;
  background: none !important;
  padding: 0;
  border: none;
}
.input-group-title {
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #000;
  margin: 0 0 0.75rem 0;
}
.mercer-input {
  font-variant-numeric: tabular-nums;
  border: 1px solid var(--mercer-border);
  border-radius: 0.5rem;
  padding: 0.5rem 0.75rem;
  font-size: 0.95rem;
  background: #fff;
}
.mercer-input:focus {
  outline: none;
  border-color: var(--mercer-sky);
  box-shadow: 0 0 0 2px rgba(34, 151, 208, 0.25);
}
/* LVR stress bar colors (JS sets .lvr-green, .lvr-yellow, .lvr-red) */
.lvr-stress-bar-fill.lvr-green { background: #059669; }
.lvr-stress-bar-fill.lvr-yellow { background: #d97706; }
.lvr-stress-bar-fill.lvr-red { background: #dc2626; }
/* Sensitivity heatmap (JS sets --heat for 0–1) */
.sensitivity-rlv-cell {
  transition: background-color 0.2s ease;
}
/* RLV alert */
#rlvAlertBox.hidden { display: none !important; }
#rlvAlertBox:not(.hidden) { display: block; }
.result-value { font-variant-numeric: tabular-nums; }

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  background-image: none;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.app {
  max-width: 1400px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
}

.header {
  margin-bottom: 3rem;
  padding-bottom: 2rem;
  border-bottom: 2px solid var(--mercer-blue);
}

.header-content {
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.logo-container {
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

.logo-link {
  display: inline-block;
  cursor: pointer;
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.logo-link:hover {
  opacity: 0.9;
  transform: scale(1.03);
}
.logo-link:focus {
  outline: 2px solid var(--mercer-sky);
  outline-offset: 2px;
  border-radius: 4px;
}

.logo {
  max-width: 180px;
  height: auto;
  display: block;
}

.header-text {
  flex: 1;
  min-width: 300px;
}

.header-actions {
  margin-left: auto;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  padding-left: 1.5rem;
}

.help-control {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.help-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--mercer-blue);
  white-space: nowrap;
}

.header-title-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.header-title-row h1 {
  margin: 0;
}

.help-btn {
  background: var(--mercer-blue);
  color: white;
  border: none;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
  padding: 0;
}

.help-btn:hover {
  background: var(--mercer-blue-light);
  transform: scale(1.05);
}

.help-btn:focus {
  outline: 2px solid var(--mercer-blue);
  outline-offset: 2px;
}

.help-btn svg {
  width: 20px;
  height: 20px;
}

.header h1 {
  font-size: 2rem;
  font-weight: 700;
  margin: 0 0 0.5rem;
  color: var(--text);
  letter-spacing: -0.02em;
}

.tagline {
  color: var(--text-muted);
  margin: 0;
  font-size: 1.05rem;
  font-weight: 400;
}

.main {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
  background: var(--bg-soft);
  padding: 2rem;
  min-height: 60vh;
}

.main-left,
.main-right {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

@media (max-width: 1024px) {
  .main {
    grid-template-columns: 1fr;
  }

  .main-left,
  .main-right {
    gap: 2rem;
  }
}

.card {
  background: white;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  box-shadow: 0 1px 3px rgba(16, 24, 40, 0.06), 0 4px 12px rgba(16, 24, 40, 0.04);
  padding: 2rem;
  margin-bottom: 2rem;
}

/* Main section cards – clearly defined blocks */
.inputs-section.card,
.results-section.card {
  border-color: var(--border-light);
  box-shadow: 0 2px 8px rgba(16, 24, 40, 0.08), 0 8px 24px rgba(16, 24, 40, 0.06);
}

.card h2 {
  font-size: 14px;
  font-weight: 600;
  color: var(--mercer-blue);
  margin: 0 0 1.5rem 0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Section header bars – distinct colors, larger text */
.inputs-section.card > h2 {
  background: #002B5B; /* Mercer Navy */
  color: white;
  padding: 0.75rem 1.5rem;
  margin: -2rem -2rem 1.5rem -2rem;
  border-radius: var(--radius) var(--radius) 0 0;
  text-transform: uppercase;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.results-section.card > h2 {
  background: #1a5f5f; /* Dark teal – distinct from inputs */
  color: white;
  padding: 0.75rem 1.5rem;
  margin: -2rem -2rem 1.5rem -2rem;
  border-radius: var(--radius) var(--radius) 0 0;
  text-transform: uppercase;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.export-actions {
  margin-bottom: 1rem;
}

.export-actions .btn {
  font-size: 0.875rem;
  padding: 0.5rem 1rem;
}

.card h3 {
  font-size: 0.75rem;
  font-weight: 600;
  margin: 0 0 1rem;
  color: var(--mercer-blue);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* Results groups – Mercer premium dashboard (compact) */
.results-group {
  background: white;
  border: 1px solid #EAECF0;
  border-top: 2px solid var(--mercer-blue);
  padding: 0.75rem 1rem;
  margin-bottom: 0.75rem;
  box-shadow: 0 1px 3px rgba(16, 24, 40, 0.08);
}

.group-title {
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--mercer-blue);
  margin: 0 0 0.5rem 0;
}

.results-grid-compact {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.results-grid-compact .result-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0.85rem;
  border-bottom: 1px solid var(--border-subtle);
  gap: 0.75rem;
  min-width: 0;
  overflow: visible;
}

.results-grid-compact .result-item:last-child {
  border-bottom: none;
}

.results-grid-compact .result-label {
  min-width: 0;
  flex-shrink: 1;
}

.results-grid-compact .result-value {
  flex-shrink: 0;
  white-space: nowrap;
  min-width: 5.5em;
  text-align: right;
}

.result-item-hero {
  background: white;
  border-top: 3px solid var(--accent-gold);
  padding: 0.65rem 1rem;
}

.result-item-hero .result-value {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--mercer-blue);
}

.result-item-hero .result-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
}

.result-item-hero .result-value.warning {
  color: var(--warning-amber);
}

.result-item-hero .result-value.success {
  color: var(--success);
}

.project-name-block {
  margin-bottom: 1.5rem;
}

.project-name-block label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #000;
  margin: 0 0 0.75rem 0;
}

.project-name-block input {
  width: 100%;
  max-width: 100%;
  font-size: 18px;
  padding: 0.875rem 1rem;
  font-weight: 500;
}

.input-group {
  margin-bottom: 1.5rem;
}

.input-group:last-child {
  margin-bottom: 0;
}

/* Input cards – same visual treatment as results groups */
.inputs-section .input-group {
  background: white;
  border: 1px solid #EAECF0;
  border-top: 2px solid var(--mercer-blue);
  padding: 1rem 1.25rem;
  margin-bottom: 1rem;
  border-radius: var(--radius-sm);
  box-shadow: 0 1px 3px rgba(16, 24, 40, 0.08);
}

.inputs-section .input-group:last-child {
  margin-bottom: 0;
}

.inputs-section .input-group > h2 {
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--mercer-blue);
  margin: 0 0 0.75rem 0;
}

.input-group .input-row:last-of-type {
  margin-bottom: 0.75rem;
}

.input-subblock {
  margin-bottom: 1.25rem;
}

.input-subblock:last-child {
  margin-bottom: 0;
}

.input-subblock-title {
  font-size: 0.95rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin: 0 0 0.5rem 0;
  padding-bottom: 0.35rem;
  border-bottom: 1px solid var(--border-subtle);
}

.row {
  margin-bottom: 0.75rem;
}

.row label {
  display: block;
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
  font-weight: 500;
}

.row .hint {
  display: block;
  font-size: 0.75rem;
  color: var(--text-subtle);
  opacity: 0.9;
  margin-bottom: 0.35rem;
  line-height: 1.5;
}

/* Compact input row layout */
.input-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.4rem;
  padding: 0.5rem 0;
  transition: background-color 0.2s ease;
  border-bottom: 1px solid transparent;
}

.input-row:nth-child(even) {
  background-color: transparent;
}

.input-row:hover {
  background-color: transparent;
}

.input-row label {
  flex: 1 1 42%;
  min-width: 0;
  margin-bottom: 0.5rem;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  line-height: 1.4;
}

.input-row .hint {
  display: none;
}

.input-row input:not(.input-narrow):not(.input-medium):not(.input-wide) {
  flex: 0 1 160px;
  max-width: 160px;
  min-width: 0;
}

/* Input width utility classes */
.input-narrow {
  width: 90px !important;
  min-width: 90px !important;
  max-width: 90px !important;
}

.input-medium {
  width: 180px !important;
  min-width: 180px !important;
  max-width: 180px !important;
}

.input-wide {
  width: 240px !important;
  min-width: 240px !important;
  max-width: 240px !important;
}

/* Value inputs (currency/count): same fixed-width pattern as input-narrow so they stay small on tablet/mobile */
.input-value {
  flex: 0 0 200px !important;
  width: 200px !important;
  min-width: 0 !important;
  max-width: 200px !important;
}

.input-full {
  width: 100% !important;
}

.input-with-derived {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.input-with-derived input {
  flex: 0 0 auto;
}


.derived-value {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--accent);
  white-space: nowrap;
  font-family: var(--font-mono);
  letter-spacing: 0.02em;
}

.row-inline {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}

.row-inline--four {
  grid-template-columns: repeat(4, 1fr);
}

.finance-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: auto auto;
  gap: 0.25rem 0.75rem;
  margin-bottom: 0.5rem;
}

.finance-grid .finance-label {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  font-weight: 500;
  line-height: 1.3;
}

.finance-grid .finance-label .tooltip-wrapper {
  margin-left: 0.25rem;
  flex-shrink: 0;
}

.finance-grid .finance-input {
  width: 100%;
  min-width: 0;
  background-color: #F9FAFB;
  border: 1px solid #D1D5DB;
  border-radius: 6px;
  padding: 0.5rem 0.75rem;
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  box-sizing: border-box;
  font-family: var(--font);
}

.finance-grid .finance-input:hover {
  border-color: #9CA3AF;
}

.finance-grid .finance-input:focus {
  outline: none;
  border-color: #002B5B;
  box-shadow: 0 0 0 2px rgba(0, 43, 91, 0.2);
}

.row.finance-inputs > label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--text);
  font-size: 0.9rem;
}

.row.finance-inputs > .hint {
  display: block;
  font-size: 0.75rem;
  color: var(--text-subtle);
  margin-bottom: 0.75rem;
  line-height: 1.5;
}

.row.finance-inputs .row.computed {
  margin-bottom: 0;
}

.finance-mode {
  margin-top: 0.75rem;
}

.row.finance-inputs input[type="checkbox"] {
  width: auto;
  margin-right: 0.5rem;
  cursor: pointer;
}

.row.finance-inputs label input[type="checkbox"] {
  display: inline-block;
  vertical-align: middle;
}

/* Funding section layout */
.funding-description {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0 0 1rem 0;
}

.funding-inputs-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-bottom: 1rem;
  align-items: end;
}

.funding-input-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
  justify-content: flex-end;
}

.funding-input-item label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
  line-height: 1.4;
  display: block;
  width: 100%;
  word-wrap: break-word;
  overflow-wrap: break-word;
  white-space: normal;
  position: relative;
}

.funding-input-item label .tooltip-wrapper {
  display: inline-block;
  vertical-align: baseline;
  margin-left: 0.25rem;
  white-space: nowrap;
  position: relative;
}

.funding-input-item input {
  width: 100%;
  padding: 0.5rem 0.75rem;
  font-size: 0.95rem;
  color: var(--text);
  background-color: #F9FAFB;
  border: 1px solid #D1D5DB;
  border-radius: 6px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  font-family: var(--font);
  height: 40px;
  box-sizing: border-box;
  flex-shrink: 0;
  margin-top: auto;
}

.funding-input-item input:hover {
  border-color: #9CA3AF;
}

.funding-input-item input:focus {
  outline: none;
  border-color: var(--mercer-sky);
  box-shadow: 0 0 0 2px rgba(34, 151, 208, 0.25);
  background-color: #F9FAFB;
  box-shadow: 0 0 0 2px rgba(0, 43, 91, 0.2);
}

.funding-results {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-light);
}

.funding-results .row.computed {
  margin-bottom: 0.5rem;
}

.funding-results .row.computed:last-child {
  margin-bottom: 0;
}

@media (max-width: 1024px) {
  .funding-inputs-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .funding-inputs-grid {
    grid-template-columns: 1fr;
  }
}

.row input {
  width: 100%;
  padding: 0.5rem 0.75rem;
  font-size: 0.95rem;
  color: var(--text);
  background-color: #F9FAFB;
  border: 1px solid #D1D5DB;
  border-radius: 6px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  font-family: var(--font);
}

.input-row input {
  padding: 0.5rem 0.75rem;
  font-size: 0.95rem;
  background-color: #F9FAFB;
  border: 1px solid #D1D5DB;
  border-radius: 6px;
}

.input-row input:hover {
  border-color: #9CA3AF;
}

.input-row input:focus {
  outline: none;
  border-color: var(--mercer-sky);
  box-shadow: 0 0 0 2px rgba(34, 151, 208, 0.25);
  background-color: #F9FAFB;
  box-shadow: 0 0 0 2px rgba(0, 43, 91, 0.2);
}

.row input:hover {
  border-color: #9CA3AF;
}

.row input:focus {
  outline: none;
  border-color: #002B5B;
  background-color: #F9FAFB;
  box-shadow: 0 0 0 2px rgba(0, 43, 91, 0.2);
}

/* Remove number input spinners – tab/click and type only */
input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

input[type="number"] {
  -moz-appearance: textfield;
  appearance: textfield;
}

.row.computed {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border);
}

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

.row.computed .label {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 700;
}

.row.computed .value {
  font-weight: 700;
  color: var(--accent);
  font-size: 1.05rem;
  font-family: var(--font-mono);
  letter-spacing: 0.02em;
}

.project-summary {
  margin-bottom: 1.5rem;
  padding: 1.5rem;
  border: 1px solid #EAECF0;
  border-radius: 6px;
  box-shadow: 0 1px 3px rgba(16, 24, 40, 0.1);
}

.project-summary h2 {
  font-size: 14px;
  font-weight: 600;
  margin: 0 0 1rem;
  color: var(--mercer-blue);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.project-summary h3 {
  font-size: 14px;
  font-weight: 600;
  margin: 0 0 1rem;
  color: var(--mercer-blue);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.summary-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.summary-item {
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.summary-item.highlight {
  background: var(--accent-bg);
  border-color: var(--accent);
}

.summary-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.summary-value {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  font-family: var(--font-mono);
}

.summary-item.highlight .summary-value {
  color: var(--accent);
  font-size: 1.2rem;
}

.results-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.result-item {
  background: var(--bg-input);
  border-radius: var(--radius-sm);
  padding: 0.6rem 1rem;
  border: 1px solid var(--border);
  transition: all 0.2s ease;
  box-shadow: var(--shadow-subtle);
}

.result-item:hover {
  border-color: var(--accent);
  background: var(--bg-hover);
}

.result-item.primary {
  grid-column: 1 / -1;
  border: 2px solid var(--accent);
  background: linear-gradient(135deg, var(--accent-bg) 0%, rgba(37, 99, 235, 0.05) 100%);
  padding: 0.75rem 1rem;
}

.result-item.primary:hover {
  border-color: var(--accent-hover);
  box-shadow: var(--shadow-accent);
}

.result-label {
  display: block;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-subtle);
  margin-bottom: 0.25rem;
  font-weight: 600;
}

.result-value {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text);
  font-family: var(--font-mono);
  letter-spacing: -0.02em;
}

.result-item.primary .result-value {
  font-size: 1.5rem;
  color: var(--mercer-blue);
  font-weight: 800;
}

.result-hint {
  display: block;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.5rem;
  font-weight: 400;
}

.result-hint.warning {
  display: inline-block;
  padding: 0.375rem 0.75rem;
  background: var(--warning-bg);
  color: var(--warning-amber);
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  margin-top: 0.5rem;
}

/* Expandable Breakdown & details section – matches panel header (black bar, white text) */
.results-details-section {
  margin-top: 1rem;
  padding-top: 0;
}

.results-details-toggle.panel-header-bar {
  width: 100%;
  text-align: left;
  border: none;
  cursor: pointer;
  color: #fff;
  background: #000;
  padding: 0.625rem 1rem;
}

.results-details-toggle .results-details-title-text {
  color: #fff;
  font-weight: 700;
  font-size: 0.9375rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.results-details-toggle .toggle-icon {
  color: #fff;
}

.results-details-content {
  margin-top: 0.5rem;
}

.results-section .breakdown h3,
.results-section .settlement-position h3,
.results-section .sensitivity h3 {
  font-size: 0.8125rem;
  font-weight: 600;
  margin: 0 0 0.5rem 0;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.card-inner {
  margin-top: 0.5rem;
  padding-top: 0.5rem;
  border-top: 1px solid var(--border);
}

.card-inner h3 {
  font-size: 0.9rem;
  margin: 0 0 0.4rem 0;
}

.breakdown-table,
.sensitivity-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 0.8rem;
}

.breakdown-table tbody tr {
  position: relative;
}

.breakdown-table tbody tr::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--border-subtle);
}

.breakdown-table tbody tr:first-child::before {
  background: var(--mercer-blue);
}

.breakdown-table tbody tr.total::before {
  background: var(--accent-gold);
  width: 4px;
}

.breakdown-table td,
.sensitivity-table th,
.sensitivity-table td {
  padding: 0.35rem 0.5rem;
  text-align: left;
  border-bottom: 1px solid var(--border-subtle);
}

.breakdown-table td:first-child {
  padding-left: 1rem;
}

.breakdown-table td:first-child,
.sensitivity-table td:first-child {
  color: var(--text-muted);
  font-weight: 500;
  min-width: 0;
  max-width: 55%;
}

.breakdown-table td:last-child,
.breakdown-table th:last-child,
.sensitivity-table td:nth-child(2),
.sensitivity-table td:last-child,
.sensitivity-table th:nth-child(2),
.sensitivity-table th:last-child {
  text-align: right;
  font-family: var(--font-mono);
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  min-width: 7rem;
  padding-left: 0.75rem;
}

.breakdown-table tr.total,
.sensitivity-table tr.base {
  font-weight: 700;
  background: var(--accent-bg);
  border-top: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
}

.breakdown-table tr.total td,
.sensitivity-table tr.base td {
  padding: 0.5rem 0.6rem;
  font-size: 0.9rem;
}

.breakdown-table tr.total td:last-child {
  color: var(--mercer-blue);
  font-size: 0.95rem;
}

.sensitivity-table thead th {
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.35rem 0.5rem;
}

.sensitivity-desc {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin: 0 0 0.4rem;
}

.cta-section {
  text-align: center;
  background: #f2f6fa;
  border: 1px solid #d0d7de;
  border-radius: 6px;
  padding: 50px 80px;
  margin: 2rem auto 3rem;
  max-width: 900px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  box-sizing: border-box;
}

.cta-section h2 {
  border: none;
  padding: 0;
  color: #1f2328;
  font-size: 24px;
  font-weight: 700;
  text-transform: uppercase;
  margin: 0 0 16px 0;
  letter-spacing: 0.02em;
}

.cta-section > p {
  color: #656d76;
  margin: 0 0 32px;
  font-size: 16px;
  line-height: 1.5;
  font-weight: 400;
}

.cta-separator {
  color: #656d76;
  margin: 32px 0 24px;
  font-size: 16px;
  font-weight: 400;
}

.cta-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.btn {
  display: inline-block;
  padding: 0.875rem 2rem;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  border: none;
  transition: all 0.2s ease;
  letter-spacing: 0.01em;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.btn,
.btn-primary {
  background: var(--mercer-blue);
  color: white;
  border: none;
  padding: 1rem 2.5rem;
  font-size: 16px;
  font-weight: 600;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background 0.2s ease, transform 0.1s ease;
}

.btn-call:hover {
  background: #1e3d5c;
  transform: translateY(-1px);
}

.btn:hover,
.btn-primary:hover {
  background: var(--mercer-blue-light);
  color: #fff;
  transform: translateY(-1px);
}

.btn:active,
.btn-primary:active {
  transform: translateY(0);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-call {
  margin-bottom: 32px;
  background: #2c5378;
  color: white;
  border: none;
  padding: 14px 32px;
  font-size: 18px;
  font-weight: 600;
  border-radius: 4px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.btn-secondary {
  background: white;
  color: var(--text);
  border: 1px solid #D1D5DB;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.btn-submit {
  background: white;
  color: #2c5378;
  border: 1px solid #2c5378;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.btn-secondary:hover {
  background: #F9FAFB;
  color: var(--text);
  border-color: #9CA3AF;
  transform: translateY(-1px);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.btn-submit:hover {
  background: #f8f9fa;
  color: #2c5378;
  border-color: #2c5378;
  transform: translateY(-1px);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.cta-or {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin: 0;
}

.contact-form {
  width: 100%;
  max-width: 400px;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  text-align: left;
}

.cta-form {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
}

.cta-form .btn-submit {
  width: 100%;
  max-width: 600px;
  margin-top: 8px;
  padding: 14px 32px;
  background: white;
  color: #2c5378;
  border: 1px solid #2c5378;
  border-radius: 4px;
  font-size: 18px;
  font-weight: 600;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  height: auto;
}

.form-row {
  display: flex;
  gap: 12px;
  margin-bottom: 12px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.form-row-single {
  margin-bottom: 8px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.form-row input,
.form-row-single input {
  flex: 1;
  padding: 12px 16px;
  font-size: 16px;
  color: #1f2328;
  background: white;
  border: 1px solid #ced4da;
  border-radius: 4px;
  transition: all 0.2s ease;
  width: 100%;
  box-sizing: border-box;
  height: 44px;
}

.form-row-single input {
  width: 100%;
}

.form-row input:hover {
  border-color: var(--accent);
  background: var(--bg-hover);
}

.form-row input:focus {
  outline: none;
  border-color: var(--accent);
  background: var(--bg-input);
  box-shadow: 0 0 0 3px var(--accent-light);
  border-color: var(--accent);
}

.form-row input::placeholder {
  color: var(--text-subtle);
}

.disclaimer {
  padding: 0;
  font-size: 14px;
  color: #1f2328;
  line-height: 1.6;
  text-align: left;
  margin: 48px auto 0;
  max-width: 800px;
}

.disclaimer p {
  margin: 0;
  max-width: none;
}

.disclaimer strong {
  color: var(--text);
  font-weight: 600;
}

/* Tooltip System */
.tooltip-wrapper {
  position: relative;
  display: inline-block;
  margin-left: 0.25rem;
  vertical-align: middle;
}

.tooltip-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  background-color: #0056B3;
  color: white;
  border-radius: 50%;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.1s ease;
}

.tooltip-icon:hover {
  background-color: #004494;
}

.tooltip-icon:focus {
  outline: 2px solid #002B5B;
  outline-offset: 2px;
}

.tooltip-icon svg {
  width: 10px;
  height: 10px;
  color: white;
}

.tooltip-content {
  visibility: hidden;
  opacity: 0;
  position: absolute;
  bottom: 125%;
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--text);
  color: var(--bg);
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  width: 280px;
  max-width: calc(100vw - 2rem);
  font-size: 0.8rem;
  line-height: 1.5;
  z-index: 1000;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  transition: opacity 0.2s ease, visibility 0.2s ease;
  pointer-events: none;
  text-align: left;
}

.finance-grid .tooltip-content {
  width: 260px;
  bottom: 110%;
}

.tooltip-content::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-top-color: var(--text);
}

/* Click-only tooltip activation */
.tooltip-wrapper.tooltip-active .tooltip-content {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
}

.tooltip-content strong {
  display: block;
  margin-bottom: 0.25rem;
  font-weight: 600;
  color: var(--bg);
}

.tooltip-content p {
  margin: 0.25rem 0;
  color: var(--bg);
}

.tooltip-content ul {
  margin: 0.25rem 0;
  padding-left: 1.25rem;
  color: var(--bg);
}

.tooltip-content li {
  margin: 0.15rem 0;
}

.input-row label .tooltip-wrapper {
  margin-left: 0.35rem;
}

.row.computed .label .tooltip-wrapper {
  margin-left: 0.35rem;
}

/* Tablet and below: constrain input size so they don't dominate (applies from 1024px down) */
@media (max-width: 1024px) {
  .input-row input:not(.input-narrow):not(.input-medium):not(.input-wide),
  .input-row input,
  .input-row .input-with-derived input {
    max-width: 200px !important;
    min-height: 38px;
    padding: 0.4rem 0.6rem;
    box-sizing: border-box;
  }
  .input-narrow,
  .input-medium,
  .input-wide {
    max-width: 200px !important;
    min-width: 0 !important;
  }
  /* Value inputs: fixed width so they don't expand (flex stops stretch) */
  .input-value {
    flex: 0 0 200px !important;
    width: 200px !important;
    max-width: 200px !important;
    min-width: 0 !important;
    min-height: 38px !important;
    padding: 0.4rem 0.6rem !important;
    box-sizing: border-box !important;
  }
}

@media (max-width: 768px) {
  .app {
    padding: 1.5rem 1rem;
  }

  .header {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
  }

  .header-content {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1.5rem;
  }

  .header-text {
    min-width: auto;
    width: 100%;
  }

  .header h1 {
    font-size: 1.6rem;
  }

  .logo {
    max-width: 160px;
  }

  .card {
    padding: 1.5rem;
  }

  .inputs-section.card > h2,
  .results-section.card > h2 {
    margin: -1.5rem -1.5rem 1.5rem -1.5rem;
    border-radius: var(--radius) var(--radius) 0 0;
  }

  .card h2 {
    font-size: 1.3rem;
  }

  .summary-grid {
    grid-template-columns: 1fr;
  }

  .results-grid {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }

  .result-item.primary {
    padding: 0.75rem 1rem;
  }

  .result-item.primary .result-value {
    font-size: 1.35rem;
  }

  .form-row {
    flex-direction: column;
  }

  .row-inline,
  .row-inline--four {
    grid-template-columns: 1fr;
  }

  .finance-grid {
    grid-template-columns: 1fr;
    grid-template-rows: repeat(8, auto);
  }

  .finance-grid .finance-label:nth-child(1),
  .finance-grid .finance-input:nth-child(5),
  .finance-grid .finance-label:nth-child(2),
  .finance-grid .finance-input:nth-child(6),
  .finance-grid .finance-label:nth-child(3),
  .finance-grid .finance-input:nth-child(7),
  .finance-grid .finance-label:nth-child(4),
  .finance-grid .finance-input:nth-child(8) {
    grid-column: 1;
  }

  .finance-grid .finance-label:nth-child(1) { grid-row: 1; }
  .finance-grid .finance-input:nth-child(5) { grid-row: 2; }
  .finance-grid .finance-label:nth-child(2) { grid-row: 3; }
  .finance-grid .finance-input:nth-child(6) { grid-row: 4; }
  .finance-grid .finance-label:nth-child(3) { grid-row: 5; }
  .finance-grid .finance-input:nth-child(7) { grid-row: 6; }
  .finance-grid .finance-label:nth-child(4) { grid-row: 7; }
  .finance-grid .finance-input:nth-child(8) { grid-row: 8; }

  .input-with-derived input {
    width: 100%;
  }

  .btn {
    width: 100%;
    padding: 1rem 2rem;
  }

  /* Mobile: stack input rows vertically */
  .input-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .input-row label {
    flex: 1 1 100%;
    width: 100%;
  }

  .input-row input:not(.input-value),
  .input-row .input-with-derived {
    width: 100%;
    max-width: 200px;
    flex: 1 1 100%;
    box-sizing: border-box;
  }

  .input-narrow,
  .input-medium,
  .input-wide {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 200px !important;
  }

  .tooltip-content {
    width: calc(100vw - 3rem);
    max-width: 320px;
    left: auto;
    right: 0;
    transform: none;
  }

  .tooltip-content::after {
    left: auto;
    right: 1rem;
    transform: none;
  }

  .header-actions {
    align-self: flex-end;
  }

  .help-label {
    display: none;
  }

  /* Results panel: full-height flow on mobile (no fixed scroll box) */
  .main-right {
    max-height: none !important;
    overflow: visible !important;
  }

  /* Tables: horizontal scroll if needed, ensure value columns not cut off */
  .breakdown.card-inner,
  .sensitivity.card-inner {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .breakdown-table,
  .sensitivity-table {
    font-size: 0.875rem;
    min-width: 280px;
    table-layout: auto;
  }
  .breakdown-table td:last-child,
  .sensitivity-table td:nth-child(2),
  .sensitivity-table td:last-child {
    min-width: 7.5rem;
  }
  .breakdown-table td,
  .sensitivity-table th,
  .sensitivity-table td {
    padding: 0.5rem 0.6rem;
  }
  .sensitivity-table thead th {
    font-size: 0.7rem;
  }

  /* Settlement: better wrapping and touch-friendly spacing */
  .settlement-item {
    flex-wrap: wrap;
    padding: 0.6rem 0.75rem;
    font-size: 0.9rem;
    min-height: 44px;
    align-items: center;
  }
  .settlement-label {
    flex: 1 1 60%;
    min-width: 0;
    word-wrap: break-word;
    padding-right: 0.5rem;
  }
  .settlement-value {
    flex: 0 0 auto;
    font-weight: 600;
  }

  /* Touch-friendly but proportioned: cap input width, slightly reduce height */
  .input-row input,
  .input-row .input-with-derived input {
    max-width: 200px !important;
    min-height: 40px;
    padding: 0.4rem 0.6rem;
  }
  .panel-header-results .mercer-cta-btn,
  .export-in-header {
    min-height: 44px;
  }
  .panel-header-bar {
    flex-wrap: wrap;
    gap: 0.5rem;
  }
  .panel-header-results .panel-title {
    font-size: 0.8rem;
    line-height: 1.3;
  }
  /* Value inputs: fixed width; align-self stops cross-axis stretch in column layout */
  .input-value {
    align-self: flex-start !important;
    flex: 0 0 auto !important;
    width: 200px !important;
    max-width: 200px !important;
    min-width: 0 !important;
    min-height: 40px !important;
    padding: 0.4rem 0.6rem !important;
    box-sizing: border-box !important;
    margin-top: 5px;
  }
}

/* Help Panel Styles */
.help-panel {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  overflow-y: auto;
}

.help-panel-content {
  background: var(--bg);
  border-radius: var(--radius);
  max-width: 800px;
  width: 100%;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-lg);
  position: relative;
}

.help-panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.5rem 1rem 2rem;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  background: var(--bg);
  z-index: 10;
  flex-shrink: 0;
}

.help-panel-header h2 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
}

.help-close {
  background: none;
  border: none;
  font-size: 1.75rem;
  color: var(--text-muted);
  cursor: pointer;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
  padding: 0;
  line-height: 1;
  flex-shrink: 0;
}

.help-close:hover {
  background: var(--bg-hover);
  color: var(--text);
}

.help-content {
  padding: 1.5rem 2rem 2rem;
  overflow-y: auto;
}

.help-section {
  margin-bottom: 2rem;
}

.help-section:last-child {
  margin-bottom: 0;
}

.help-section-header {
  background: #000;
  color: #fff;
  font-weight: 700;
  font-size: 0.9375rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.625rem 1rem;
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 1rem 0;
}

.help-section-header .help-section-icon {
  display: flex;
  align-items: center;
  color: #fff;
}

.help-section-header .help-section-icon svg {
  flex-shrink: 0;
}

.help-metric-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 0.5rem;
  padding: 1rem 1.25rem;
  margin-bottom: 0.75rem;
}

.help-metric-card:last-child {
  margin-bottom: 0;
}

.help-metric-term {
  font-weight: 700;
  color: #000;
  font-size: 1rem;
  margin-bottom: 0.25rem;
}

.help-metric-tip {
  font-size: 0.8125rem;
  font-style: italic;
  color: #6b7280;
  margin: 0 0 0.5rem 0;
}

.help-metric-desc {
  margin: 0;
  line-height: 1.6;
  color: #374151;
  font-size: 0.9375rem;
}

@media (max-width: 768px) {
  .help-panel {
    padding: 1rem;
  }
  
  .help-panel-content {
    max-height: 95vh;
  }
  
  .help-panel-header {
    padding: 0.75rem 1rem 0.75rem 1.25rem;
  }
  
  .help-panel-header h2 {
    font-size: 1.1rem;
  }
  
  .help-content {
    padding: 1rem 1.25rem 1.5rem;
  }
  
  .help-section {
    margin-bottom: 1.5rem;
  }
  
  .help-section-header {
    font-size: 0.875rem;
    padding: 0.5rem 0.75rem;
  }
  
  .help-metric-card {
    padding: 0.875rem 1rem;
  }
}

/* Settlement Position Styles (compact) */
.settlement-position {
  margin-top: 0.6rem;
}

.settlement-grid {
  display: grid;
  gap: 0.35rem;
  margin-top: 0.4rem;
}

.settlement-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.4rem 0.6rem;
  background: var(--bg-input);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-light);
  font-size: 0.85rem;
}

.settlement-item.total {
  font-weight: 600;
  border: 2px solid var(--border-dark);
  background: var(--bg-card);
}

.settlement-item.positive {
  border-color: var(--success);
  background: var(--success-light);
}

.settlement-item.total.negative {
  border-color: var(--error-crimson);
  background: var(--error-bg);
}

.settlement-item.total.negative .settlement-value {
  color: var(--error-crimson);
  font-weight: 700;
}

.settlement-item.total.positive {
  border-color: var(--success);
  background: var(--success-light);
}

.settlement-item.total.positive .settlement-value {
  color: var(--success);
  font-weight: 700;
}

.settlement-item.negative:not(.total) {
  border-color: var(--border-subtle);
}

.settlement-label {
  color: var(--text);
  font-size: 0.8rem;
}

.settlement-value {
  font-weight: 600;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text);
}

.settlement-item.positive .settlement-value,
.settlement-item.total.positive .settlement-value {
  color: var(--success);
}

.settlement-item.total.negative .settlement-value {
  color: var(--error-crimson);
}

/* RLV Warning/Success Styles */
.result-value.warning {
  color: var(--warning-amber);
}

.result-value.success {
  color: var(--success);
}

/* Advanced Costs – single expandable section */
.toggle-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: none;
  border: none;
  color: var(--mercer-blue);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  cursor: pointer;
  padding: 0.5rem 0;
}

.toggle-icon {
  transition: transform 0.2s ease;
}

.toggle-btn[aria-expanded="true"] .toggle-icon {
  transform: rotate(180deg);
}
