/* STR Tax Strategy Analyzer — Stylesheet
 * Donovan Legal PLLC
 * Last updated: May 2026
 */

    .box > .border-grey > .container:first-of-type { position: relative !important; z-index: 9999 !important; }
    nav.navbar.menubar { position: relative !important; z-index: 9999 !important; }
    nav.navbar .nav-item.dropdown { position: relative !important; }
    .navbar .dropdown-menu, .navbar.menubar .dropdown-menu, nav.navbar .dropdown-menu { z-index: 99999 !important; position: absolute !important; }

    .tool-intro { background: #FFFFFF; border-left: 3px solid #169B62; padding: 1.5rem 1.75rem; margin: 2rem 0 2.5rem 0; font-size: 1rem; line-height: 1.65; }
    .step-card { background: #FFFFFF; border: 1px solid #d4d4d0; padding: 1.75rem 2rem; margin-bottom: 1.5rem; }
    .step-card h4 { font-family: "Gotham Bold", "Open Sans", sans-serif; color: #1a1a1a; font-size: 1.15rem; margin: 0 0 0.4rem 0; letter-spacing: 0.5px; }
    .step-number { display: inline-block; background: #169B62; color: #FFFFFF; width: 28px; height: 28px; border-radius: 50%; text-align: center; line-height: 28px; font-family: "Gotham Bold", sans-serif; font-size: 0.85rem; margin-right: 0.6rem; }
    .step-subtitle { font-size: 0.9rem; color: #6b6b6b; margin: 0 0 1.5rem 0; line-height: 1.55; }
    .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
    @media (max-width: 768px) { .form-row { grid-template-columns: 1fr; } }
    .form-row.three-col { grid-template-columns: 1fr 1fr 1fr; }
    @media (max-width: 768px) { .form-row.three-col { grid-template-columns: 1fr; } }
    .form-group { margin-bottom: 1.25rem; }
    .form-group label { display: block; font-family: "Open Sans", sans-serif; font-weight: 600; font-size: 0.85rem; color: #1a1a1a; margin-bottom: 0.4rem; letter-spacing: 0.3px; }
    .field-help { font-weight: 400; font-size: 0.78rem; color: #6b6b6b; margin-top: 0.3rem; line-height: 1.5; }
    .form-group input[type="number"], .form-group input[type="text"], .form-group select { width: 100%; padding: 0.55rem 0.8rem; border: 1px solid #d4d4d0; background: #FFFFFF; font-family: "Open Sans", sans-serif; font-size: 0.95rem; color: #1a1a1a; border-radius: 0; box-sizing: border-box; }
    .form-group input:focus, .form-group select:focus { outline: none; border-color: #169B62; }
    .input-prefix { position: relative; }
    .input-prefix::before { content: "$"; position: absolute; left: 0.85rem; top: 50%; transform: translateY(-50%); color: #6b6b6b; pointer-events: none; z-index: 2; font-weight: 700; font-size: 0.95rem; }
    .form-group .input-prefix input[type="text"],
    .form-group .input-prefix input[type="number"] { padding-left: 2.5rem; }
    .input-suffix { position: relative; }
    .input-suffix::after { content: "%"; position: absolute; right: 0.85rem; top: 50%; transform: translateY(-50%); color: #6b6b6b; pointer-events: none; z-index: 2; font-weight: 700; font-size: 0.95rem; }
    .form-group .input-suffix input[type="text"],
    .form-group .input-suffix input[type="number"] { padding-right: 2.5rem; }
    .toggle-group { display: inline-flex; border: 1px solid #d4d4d0; border-radius: 0; overflow: hidden; margin-bottom: 0.4rem; }
    .toggle-btn { background: #FFFFFF; border: none; padding: 0.4rem 0.85rem; font-family: "Open Sans", sans-serif; font-size: 0.78rem; color: #4a4a4a; cursor: pointer; font-weight: 600; letter-spacing: 0.5px; }
    .toggle-btn.active { background: #169B62; color: #FFFFFF; }
    .toggle-btn:not(:last-child) { border-right: 1px solid #d4d4d0; }

    .strategy-toggle-wrapper { background: #FFFFFF; border: 1px solid #d4d4d0; padding: 1rem 1.25rem; margin: 1.5rem 0 1rem 0; }
    .strategy-toggle-label { font-family: "Open Sans", sans-serif; font-size: 0.78rem; letter-spacing: 1.5px; text-transform: uppercase; color: #6b6b6b; font-weight: 600; margin-bottom: 0.6rem; }
    .strategy-toggle { display: inline-flex; flex-wrap: wrap; border: 1px solid #169B62; border-radius: 0; overflow: hidden; }
    .strategy-toggle-btn { background: #FFFFFF; border: none; padding: 0.55rem 1.15rem; font-family: "Open Sans", sans-serif; font-size: 0.82rem; color: #169B62; cursor: pointer; font-weight: 600; letter-spacing: 0.5px; }
    .strategy-toggle-btn.active { background: #169B62; color: #FFFFFF; }
    .strategy-toggle-btn:not(:last-child) { border-right: 1px solid #169B62; }

    .strategy-savings-callout { background: #e8f5ee; border: 2px solid #169B62; padding: 1.5rem 1.75rem; margin: 1.5rem 0; display: none; }
    .strategy-savings-callout.show { display: block; }
    .strategy-savings-callout .savings-header { font-family: "Gotham Bold", sans-serif; font-size: 1rem; letter-spacing: 1.5px; text-transform: uppercase; color: #169B62; font-weight: 700; margin-bottom: 1rem; padding-bottom: 0.65rem; border-bottom: 1px solid #169B62; }
    .strategy-savings-callout .savings-headline { font-family: "Gotham Bold", sans-serif; font-size: 2.1rem; color: #169B62; line-height: 1.1; margin-bottom: 0.25rem; }
    .strategy-savings-callout .savings-headline-label { font-size: 0.85rem; color: #6b6b6b; font-weight: 600; letter-spacing: 0.5px; text-transform: uppercase; margin-bottom: 1.25rem; }
    .savings-comparison-table { width: 100%; border-collapse: collapse; font-family: "Open Sans", sans-serif; font-size: 0.9rem; margin: 1rem 0 1.25rem 0; background: #FFFFFF; }
    .savings-comparison-table th { background: #1a1a1a; color: #FFFFFF; padding: 0.55rem 0.7rem; font-size: 0.72rem; letter-spacing: 1px; text-transform: uppercase; font-weight: 600; text-align: right; }
    .savings-comparison-table th:first-child { text-align: left; }
    .savings-comparison-table td { padding: 0.55rem 0.7rem; border-bottom: 1px solid #e0e0d8; text-align: right; }
    .savings-comparison-table td:first-child { text-align: left; font-weight: 600; }
    .savings-comparison-table .delta-positive { color: #169B62; font-weight: 700; }
    .savings-comparison-table .delta-negative { color: #c0392b; font-weight: 700; }
    .savings-comparison-table .delta-improvement { color: #169B62; font-weight: 700; }
    .strategy-savings-callout .savings-explainer { font-size: 0.92rem; line-height: 1.55; color: #1a1a1a; padding-top: 0.5rem; border-top: 1px dashed #169B62; }
    .strategy-savings-callout .savings-explainer a { color: #169B62; font-weight: 700; }
    .strategy-savings-callout .savings-cta { display: inline-block; background: #169B62; color: #FFFFFF !important; padding: 0.7rem 1.75rem; font-family: "Gotham Bold", sans-serif; font-size: 0.82rem; letter-spacing: 1.5px; text-transform: uppercase; text-decoration: none; border-radius: 30px; margin-top: 0.85rem; }


    .expandable-help { margin-top: 0.5rem; }
    .expandable-help-btn { background: none; border: none; color: #169B62; font-family: "Open Sans", sans-serif; font-size: 0.82rem; font-weight: 600; cursor: pointer; padding: 0; text-decoration: underline; }
    .expandable-help-content { display: none; margin-top: 0.6rem; padding: 0.75rem 1rem; background: #f5f5f0; border-left: 2px solid #169B62; font-size: 0.85rem; line-height: 1.55; color: #4a4a4a; }
    .expandable-help-content.show { display: block; }

    .rate-estimator-box { margin-top: 0.75rem; padding: 1rem 1.25rem; background: #f5f5f0; border-left: 3px solid #169B62; }
    .rate-estimator-box .form-row { gap: 0.85rem; }
    .rate-estimator-box label { font-size: 0.78rem; }
    .rate-estimator-box select { font-size: 0.88rem; padding: 0.45rem 0.7rem; }
    .estimated-rate-display { margin-top: 0.75rem; font-family: "Gotham Bold", sans-serif; font-size: 1rem; color: #169B62; }

    .calc-btn { display: inline-block; background: #169B62; color: #FFFFFF !important; padding: 1rem 3rem; border: none; border-radius: 30px; font-family: "Gotham Bold", "Open Sans", sans-serif; font-size: 0.95rem; letter-spacing: 2px; text-transform: uppercase; cursor: pointer; transition: background 200ms ease; margin-top: 0.5rem; }
    .calc-btn:hover { background: #107a4d; }
    .calc-btn-secondary { display: inline-block; background: #FFFFFF; color: #169B62 !important; border: 1px solid #169B62; padding: 1rem 2.25rem; border-radius: 30px; font-family: "Gotham Bold", "Open Sans", sans-serif; font-size: 0.95rem; letter-spacing: 2px; text-transform: uppercase; cursor: pointer; margin-top: 0.5rem; margin-left: 0.5rem; }
    .calc-row { text-align: center; margin: 2rem 0; }

    .results-section { background: #f5f5f0; border: 2px solid #169B62; padding: 2rem 2.25rem; margin: 2.5rem 0; display: none; }
    .results-section.show { display: block; }
    .results-section h3 { font-family: "Gotham Bold", "Open Sans", sans-serif; color: #169B62; font-size: 1.3rem; margin: 0 0 1.5rem 0; letter-spacing: 0.5px; text-transform: uppercase; }
    .results-section h4 { font-family: "Gotham Bold", "Open Sans", sans-serif; color: #1a1a1a; font-size: 1.05rem; margin: 1.75rem 0 0.85rem 0; letter-spacing: 0.5px; }

    .eligibility-result { padding: 1.25rem 1.5rem; margin-bottom: 1.5rem; border-left: 4px solid #169B62; background: #FFFFFF; }
    .eligibility-result.likely-eligible { border-left-color: #169B62; }
    .eligibility-result.marginal { border-left-color: #d4a017; background: #fff8e1; }
    .eligibility-result.likely-ineligible { border-left-color: #c0392b; background: #fcebea; }
    .eligibility-badge { display: inline-block; font-family: "Open Sans", sans-serif; font-size: 0.72rem; letter-spacing: 1.5px; text-transform: uppercase; font-weight: 700; padding: 0.25rem 0.7rem; border-radius: 3px; margin-bottom: 0.6rem; }
    .eligibility-result.likely-eligible .eligibility-badge { background: #e8f5ee; color: #169B62; }
    .eligibility-result.marginal .eligibility-badge { background: #fdf0e3; color: #d35400; }
    .eligibility-result.likely-ineligible .eligibility-badge { background: #fcebea; color: #c0392b; }

    .multi-year-table { width: 100%; border-collapse: collapse; font-family: "Open Sans", sans-serif; font-size: 0.85rem; margin: 1rem 0; background: #FFFFFF; }
    .multi-year-table th, .multi-year-table td { padding: 0.5rem 0.6rem; text-align: right; border-bottom: 1px solid #e0e0d8; white-space: nowrap; }
    .multi-year-table th { background: #1a1a1a; color: #FFFFFF; font-weight: 600; font-size: 0.78rem; letter-spacing: 0.5px; text-transform: uppercase; }
    .multi-year-table th:first-child, .multi-year-table td:first-child { text-align: left; font-weight: 600; }
    .multi-year-table tr.section-header td { background: #f5f5f0; font-weight: 700; color: #169B62; font-size: 0.78rem; letter-spacing: 1px; text-transform: uppercase; padding: 0.6rem; }
    .multi-year-table tr.subtotal td { font-weight: 700; border-top: 2px solid #169B62; }
    .multi-year-table tr.subtotal td:first-child { color: #169B62; }
    .multi-year-table-wrapper { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 1rem 0; }

    .summary-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin: 1.25rem 0; }
    @media (max-width: 768px) { .summary-grid { grid-template-columns: 1fr; } }
    .summary-card { background: #FFFFFF; border: 1px solid #d4d4d0; padding: 1rem 1.25rem; }
    .summary-card .label { font-family: "Open Sans", sans-serif; font-size: 0.72rem; letter-spacing: 1.5px; text-transform: uppercase; color: #6b6b6b; margin-bottom: 0.3rem; font-weight: 600; }
    .summary-card .value { font-family: "Gotham Bold", "Open Sans", sans-serif; font-size: 1.5rem; color: #169B62; }
    .summary-card .sublabel { font-size: 0.78rem; color: #6b6b6b; margin-top: 0.3rem; }

    .state-status { padding: 1rem 1.25rem; background: #FFFFFF; border-left: 3px solid #169B62; margin: 1rem 0; font-size: 0.92rem; line-height: 1.55; }
    .state-status.no-tax { border-left-color: #169B62; background: #e8f5ee; }
    .state-status.conforms { border-left-color: #169B62; background: #e8f5ee; }
    .state-status.decoupled { border-left-color: #d4a017; background: #fff8e1; }

    .tool-disclaimer { background: #fff8e1; border-left: 4px solid #d4a017; padding: 1.5rem 1.75rem; margin: 2rem 0; font-size: 0.9rem; line-height: 1.6; }
    .tool-disclaimer strong { color: #1a1a1a; }
    .tool-cta { margin-top: 2.5rem; padding: 2rem 2.25rem; background: #1a1a1a; color: #F5F5F0; text-align: center; }
    .tool-cta h4 { color: #F5F5F0; font-family: "Gotham Bold", "Open Sans", sans-serif; margin-bottom: 0.75rem; }
    .tool-cta p { color: #F5F5F0; font-size: 1rem; max-width: 600px; margin: 0 auto 1.5rem auto; }
    .tool-cta a.cta-link { color: #FFFFFF !important; background: #169B62; display: inline-block; padding: 0.85rem 2.5rem; font-family: "Gotham Bold", "Open Sans", sans-serif; font-size: 0.9rem; letter-spacing: 2px; text-transform: uppercase; text-decoration: none; border-radius: 30px; }
    .tool-back { margin-top: 1.5rem; font-family: "Gotham Bold", "Open Sans", sans-serif; font-size: 0.85rem; letter-spacing: 2px; text-transform: uppercase; }
    .tool-back a { color: #169B62 !important; text-decoration: none; }

/* ============================================================================
   PRESETS BAR (Batch B.1)
   ============================================================================ */
.presets-bar {
  background: linear-gradient(135deg, #FFFFFF 0%, #f5f5f0 100%);
  border: 1px solid #d4d4d0;
  border-left: 4px solid #169B62;
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.5rem;
}
.presets-label {
  font-family: 'Open Sans', sans-serif;
  font-size: 0.72rem;
  letter-spacing: 1.5px;
  color: #169B62;
  font-weight: 700;
  margin-bottom: 0.25rem;
}
.presets-subtitle {
  font-size: 0.85rem;
  color: #6b6b6b;
  margin-bottom: 1rem;
  line-height: 1.5;
}
.presets-buttons {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.85rem;
}
.preset-btn {
  background: #FFFFFF;
  border: 2px solid #d4d4d0;
  padding: 0.9rem 1rem;
  cursor: pointer;
  text-align: left;
  font-family: 'Open Sans', sans-serif;
  transition: all 0.15s ease;
  border-radius: 0;
}
.preset-btn:hover {
  border-color: #169B62;
  background: #f5f5f0;
  transform: translateY(-1px);
}
.preset-icon {
  font-size: 1.4rem;
  margin-bottom: 0.4rem;
}
.preset-name {
  font-family: 'Gotham Bold', 'Open Sans', sans-serif;
  font-size: 0.9rem;
  color: #1a1a1a;
  margin-bottom: 0.25rem;
}
.preset-desc {
  font-size: 0.75rem;
  color: #6b6b6b;
  line-height: 1.4;
}
.presets-clear {
  margin-top: 0.85rem;
  text-align: right;
}
.preset-clear-btn {
  background: transparent;
  border: 1px solid #c0c0c0;
  color: #6b6b6b;
  font-family: 'Open Sans', sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  padding: 0.4rem 0.85rem;
  cursor: pointer;
  border-radius: 0;
  font-weight: 600;
}
.preset-clear-btn:hover {
  border-color: #c0392b;
  color: #c0392b;
}
@media (max-width: 768px) {
  .presets-buttons { grid-template-columns: 1fr; }
}

/* ============================================================================
   BATCH B.2 — WIZARD PROGRESS, PRIORITY STEP, MOBILE TABLE, GATED BANNER
   ============================================================================ */

/* Wizard progress indicator */
.wizard-progress {
  background: #FFFFFF;
  border: 1px solid #d4d4d0;
  padding: 1rem 1.25rem;
  margin-bottom: 1.5rem;
}
.wizard-progress-label {
  font-family: 'Open Sans', sans-serif;
  font-size: 0.78rem;
  color: #6b6b6b;
  margin-bottom: 0.85rem;
  text-align: center;
  line-height: 1.4;
}
.wizard-progress-steps {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0.4rem;
}
.wp-step {
  display: block;
  text-decoration: none;
  text-align: center;
  padding: 0.65rem 0.4rem;
  background: #f5f5f0;
  border: 1px solid #e0e0d8;
  color: #6b6b6b;
  transition: all 0.15s ease;
  cursor: pointer;
  position: relative;
}
.wp-step:hover {
  background: #FFFFFF;
  border-color: #169B62;
  color: #169B62;
}
.wp-step-num {
  font-family: 'Gotham Bold', 'Open Sans', sans-serif;
  font-size: 1.05rem;
  line-height: 1;
  margin-bottom: 0.25rem;
}
.wp-step-name {
  font-family: 'Open Sans', sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.3px;
  margin-bottom: 0.2rem;
}
.wp-step-status {
  font-size: 0.7rem;
  color: #169B62;
  font-weight: 700;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  min-height: 0.85rem;
}
.wp-priority {
  background: #169B62 !important;
  border-color: #107a4d !important;
  color: #FFFFFF !important;
}
.wp-priority .wp-step-status {
  color: #FFFFFF !important;
}
.wp-priority:hover {
  background: #107a4d !important;
}
.wp-complete {
  background: #FFFFFF;
  border-color: #169B62;
}
.wp-complete .wp-step-num {
  color: #169B62;
}
.wp-complete .wp-step-name {
  color: #169B62;
}
.wp-complete .wp-step-status {
  color: #169B62;
}
.wp-complete::after {
  content: "✓";
  position: absolute;
  top: 3px;
  right: 5px;
  color: #169B62;
  font-weight: 700;
  font-size: 0.85rem;
}

/* Priority step (Step 1 when not complete) — subtle left border accent */
.step-card.priority {
  border-left: 4px solid #169B62;
  background: linear-gradient(90deg, rgba(22,155,98,0.04) 0%, #FFFFFF 60%);
}

/* Mobile responsive — wizard progress collapses to 3 columns */
@media (max-width: 768px) {
  .wizard-progress-steps {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.35rem;
  }
  .wp-step {
    padding: 0.55rem 0.3rem;
  }
  .wp-step-name {
    font-size: 0.72rem;
  }
  .wp-step-status {
    font-size: 0.62rem;
  }
}

/* ============================================================================
   MOBILE-FRIENDLY MULTI-YEAR PROJECTION TABLE
   On narrow screens, transform the wide table into stacked per-year cards.
   ============================================================================ */
@media (max-width: 900px) {
  .multi-year-table {
    border: none;
    background: transparent;
  }
  .multi-year-table thead {
    display: none;
  }
  .multi-year-table tbody {
    display: block;
  }
  .multi-year-table tr {
    display: block;
    margin-bottom: 0.85rem;
  }
  .multi-year-table tr.section-header {
    background: #1a1a1a;
    color: #FFFFFF;
    padding: 0.55rem 0.85rem;
    font-family: 'Open Sans', sans-serif;
    font-size: 0.72rem;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    font-weight: 700;
    margin: 1rem 0 0.5rem 0;
  }
  .multi-year-table tr.section-header td {
    display: block;
    border: none;
    padding: 0;
    background: transparent;
    color: inherit;
  }
  .multi-year-table tr:not(.section-header) {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
    background: #FFFFFF;
    border: 1px solid #d4d4d0;
    overflow: hidden;
  }
  .multi-year-table tr:not(.section-header) td:first-child {
    background: #f5f5f0;
    border-bottom: 1px solid #d4d4d0;
    padding: 0.5rem 0.85rem;
    font-weight: 700;
    color: #1a1a1a;
    font-size: 0.78rem;
    letter-spacing: 0.4px;
    text-transform: uppercase;
  }
  .multi-year-table tr:not(.section-header) td:not(:first-child) {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.45rem 0.85rem;
    border-bottom: 1px solid #f0f0e8;
    font-size: 0.88rem;
  }
  .multi-year-table tr:not(.section-header) td:not(:first-child):last-child {
    border-bottom: none;
  }
  /* Use data-year attribute injected by JS to display "Yr N:" label */
  .multi-year-table tr:not(.section-header) td:not(:first-child)::before {
    content: attr(data-year-label);
    font-weight: 600;
    color: #6b6b6b;
    font-size: 0.78rem;
    margin-right: 0.85rem;
  }
}

/* ============================================================================
   ELIGIBILITY-GATED BANNER (red, prominent)
   ============================================================================ */
.eligibility-banner-ineligible {
  background: #fcebea;
  border-left: 4px solid #c0392b;
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.75rem;
}
.eligibility-banner-ineligible-label {
  font-family: 'Open Sans', sans-serif;
  font-size: 0.72rem;
  letter-spacing: 1.5px;
  color: #c0392b;
  font-weight: 700;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
}
.eligibility-banner-ineligible-title {
  font-family: 'Gotham Bold', 'Open Sans', sans-serif;
  font-size: 1.2rem;
  color: #1a1a1a;
  margin-bottom: 0.65rem;
  line-height: 1.3;
}
.eligibility-banner-ineligible-body {
  font-size: 0.92rem;
  color: #1a1a1a;
  line-height: 1.55;
}
.eligibility-banner-marginal {
  background: #fff8e1;
  border-left: 4px solid #d4a017;
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.75rem;
}
.eligibility-banner-marginal-label {
  font-family: 'Open Sans', sans-serif;
  font-size: 0.72rem;
  letter-spacing: 1.5px;
  color: #d35400;
  font-weight: 700;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
}
.eligibility-banner-marginal-title {
  font-family: 'Gotham Bold', 'Open Sans', sans-serif;
  font-size: 1.2rem;
  color: #1a1a1a;
  margin-bottom: 0.65rem;
  line-height: 1.3;
}
.eligibility-banner-marginal-body {
  font-size: 0.92rem;
  color: #1a1a1a;
  line-height: 1.55;
}

/* ============================================================================
   BATCH C.1 — HEADLINE PANEL (top of results)
   ============================================================================ */
.headline-panel {
  background: #FFFFFF;
  border: 1px solid #d4d4d0;
  margin-bottom: 1.75rem;
}
.headline-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-bottom: 1px solid #d4d4d0;
}
.headline-card {
  padding: 1.25rem 1.5rem;
  border-right: 1px solid #e0e0d8;
}
.headline-card:last-child {
  border-right: none;
}
.headline-label {
  font-family: 'Open Sans', sans-serif;
  font-size: 0.72rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #6b6b6b;
  font-weight: 700;
  margin-bottom: 0.5rem;
}
.headline-value {
  font-family: 'Gotham Bold', 'Open Sans', sans-serif;
  font-size: 1.75rem;
  color: #169B62;
  line-height: 1.1;
  margin-bottom: 0.4rem;
}
.headline-sub {
  font-size: 0.78rem;
  color: #6b6b6b;
  line-height: 1.5;
}
.headline-cta {
  padding: 1.25rem 1.5rem;
}
.headline-cta.cta-green { border-left: 4px solid #169B62; background: rgba(22,155,98,0.06); }
.headline-cta.cta-amber { border-left: 4px solid #d4a017; background: rgba(212,160,23,0.07); }
.headline-cta.cta-red { border-left: 4px solid #c0392b; background: rgba(192,57,43,0.06); }
.headline-cta-title {
  font-family: 'Gotham Bold', 'Open Sans', sans-serif;
  font-size: 1.1rem;
  color: #1a1a1a;
  line-height: 1.3;
  margin-bottom: 0.5rem;
}
.headline-cta-body {
  font-size: 0.9rem;
  color: #1a1a1a;
  line-height: 1.55;
  margin-bottom: 0.85rem;
}
.headline-cta-action {
  text-align: left;
}
.headline-cta-btn {
  display: inline-block;
  background: #169B62;
  color: #FFFFFF;
  font-family: 'Open Sans', sans-serif;
  font-size: 0.78rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  font-weight: 700;
  padding: 0.6rem 1.25rem;
  text-decoration: none;
  border: 1px solid #169B62;
  transition: all 0.15s ease;
}
.headline-cta-btn:hover {
  background: #107a4d;
  border-color: #107a4d;
  color: #FFFFFF;
  text-decoration: none;
}
@media (max-width: 768px) {
  .headline-grid {
    grid-template-columns: 1fr;
  }
  .headline-card {
    border-right: none;
    border-bottom: 1px solid #e0e0d8;
  }
  .headline-card:last-child {
    border-bottom: none;
  }
}

/* ============================================================================
   METHODOLOGY SECTION (Batch C.1 — #21)
   ============================================================================ */
.methodology-section {
  background: #f5f5f0;
  border: 1px solid #d4d4d0;
  margin: 1.75rem 0;
}
.methodology-section summary {
  list-style: none;
  cursor: pointer;
  padding: 1rem 1.25rem;
  user-select: none;
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: background 0.15s ease;
}
.methodology-section summary:hover {
  background: #FFFFFF;
}
.methodology-section summary::-webkit-details-marker { display: none; }
.methodology-summary-label {
  font-family: 'Open Sans', sans-serif;
  font-size: 0.72rem;
  letter-spacing: 1.5px;
  color: #169B62;
  font-weight: 700;
}
.methodology-summary-title {
  font-family: 'Open Sans', sans-serif;
  font-size: 0.92rem;
  color: #1a1a1a;
  font-weight: 600;
}
.methodology-section[open] summary {
  background: #FFFFFF;
  border-bottom: 1px solid #d4d4d0;
}
.methodology-section[open] summary::after {
  content: "";
}
.methodology-section summary::after {
  content: " ▼";
  margin-left: auto;
  color: #169B62;
  font-size: 0.72rem;
  font-weight: 700;
}
.methodology-section[open] summary::after {
  content: " ▲";
}
.methodology-body {
  padding: 1.25rem 1.5rem;
  background: #FFFFFF;
  font-size: 0.88rem;
  line-height: 1.65;
  color: #1a1a1a;
}
.methodology-body h5 {
  font-family: 'Gotham Bold', 'Open Sans', sans-serif;
  font-size: 0.95rem;
  color: #1a1a1a;
  margin: 1.25rem 0 0.5rem 0;
  padding-bottom: 0.25rem;
  border-bottom: 1px solid #e0e0d8;
}
.methodology-body h5:first-of-type { margin-top: 0; }
.methodology-body p {
  margin-bottom: 0.85rem;
}
.methodology-body ul {
  margin: 0.5rem 0 0.85rem 1.25rem;
  padding: 0;
}
.methodology-body ul li {
  margin-bottom: 0.4rem;
}

/* ============================================================================
   BATCH C.2 — STRATEGY COMPARISON PANEL (#17)
   ============================================================================ */
.strategy-comparison-panel {
  background: #FFFFFF;
  padding: 1.5rem;
  margin: 0 0 1.75rem 0;
  border: 1px solid #d4d4d0;
}
.sc-label-row {
  font-family: 'Open Sans', sans-serif;
  font-size: 0.75rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #169B62;
  font-weight: 700;
  margin-bottom: 0.5rem;
}
.sc-title {
  font-family: 'Gotham Bold', 'Open Sans', sans-serif;
  font-size: 1.25rem;
  color: #1a1a1a;
  line-height: 1.2;
  margin-bottom: 0.5rem;
}
.sc-intro {
  font-size: 0.9rem;
  color: #6b6b6b;
  line-height: 1.55;
  margin-bottom: 1.25rem;
}
.strategy-comparison-table {
  width: 100%;
  border-collapse: collapse;
  font-family: 'Open Sans', sans-serif;
  margin-bottom: 1rem;
}
.strategy-comparison-table thead th {
  background: #1a1a1a;
  color: #FFFFFF;
  padding: 0.65rem 0.85rem;
  text-align: center;
  font-family: 'Open Sans', sans-serif;
  font-size: 0.78rem;
  letter-spacing: 1.2px;
  font-weight: 700;
  text-transform: uppercase;
}
.strategy-comparison-table thead th:first-child {
  background: #1a1a1a;
}
.strategy-comparison-table tbody tr:nth-child(even) {
  background: #f5f5f0;
}
.strategy-comparison-table tbody tr:hover {
  background: rgba(22,155,98,0.06);
}
.strategy-comparison-table .sc-label {
  padding: 0.55rem 0.85rem;
  font-weight: 600;
  color: #1a1a1a;
  font-size: 0.88rem;
  border-bottom: 1px solid #e0e0d8;
}
.strategy-comparison-table .sc-value {
  padding: 0.55rem 0.85rem;
  text-align: right;
  font-family: 'Open Sans', sans-serif;
  font-size: 0.88rem;
  color: #1a1a1a;
  border-bottom: 1px solid #e0e0d8;
  font-variant-numeric: tabular-nums;
}
.sc-note {
  font-size: 0.78rem;
  color: #6b6b6b;
  line-height: 1.55;
  padding-top: 0.85rem;
  border-top: 1px dashed #d4d4d0;
}
@media (max-width: 768px) {
  .strategy-comparison-table .sc-label,
  .strategy-comparison-table .sc-value {
    padding: 0.45rem 0.5rem;
    font-size: 0.78rem;
  }
}

/* ============================================================================
   PRINT STYLESHEET (Batch C.2 — #9) — clean PDF export via browser print
   ============================================================================ */
@media print {
  /* Page setup */
  @page {
    size: letter;
    margin: 0.5in 0.5in 0.75in 0.5in;
  }
  body {
    background: #FFFFFF !important;
    color: #1a1a1a !important;
    font-family: 'Open Sans', Arial, sans-serif !important;
    font-size: 10pt !important;
  }
  /* Hide page chrome */
  header, nav, footer, .navbar, .mobile-menu, .footer, .copy-inside,
  .nav-block-wrapper, #header, #footer-section,
  .tool-back, .tool-cta {
    display: none !important;
  }
  /* Hide the entire input section — print only shows results */
  .step-card, .presets-bar, .wizard-progress, .calc-row, .rate-estimator-box,
  .tool-intro {
    display: none !important;
  }
  /* Hide interactive controls and buttons throughout results */
  .no-print, button, .calc-btn, .calc-btn-secondary,
  .strategy-toggle-wrapper, .heat-map-controls,
  #hm_x_axis, #hm_y_axis, #hm_metric,
  select, input[type="number"], input[type="text"] {
    display: none !important;
  }
  /* But keep the heat map grid itself visible if user wants to print sensitivity */
  #heat_map_grid table { display: table !important; }
  #heat_map_grid table * { display: revert !important; }
  /* Show results section in full */
  .results-section, #results {
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
    background: #FFFFFF !important;
    border: none !important;
  }
  /* Add a print-only header at the top */
  .results-section::before {
    content: "Donovan Legal PLLC — STR Tax Strategy Analyzer Report";
    display: block;
    font-family: 'Gotham Bold', 'Open Sans', sans-serif !important;
    font-size: 14pt !important;
    color: #1a1a1a !important;
    border-bottom: 2px solid #169B62 !important;
    padding-bottom: 0.5rem !important;
    margin-bottom: 1rem !important;
  }
  .results-section::after {
    content: "© Donovan Legal PLLC · 301 W. Atlantic Ave., Suite 5, Delray Beach, FL 33444 · 561-666-6022 · info@donovan.law · donovan.law";
    display: block;
    font-size: 8pt !important;
    color: #6b6b6b !important;
    margin-top: 1rem !important;
    padding-top: 0.5rem !important;
    border-top: 1px solid #d4d4d0 !important;
    text-align: center !important;
  }
  /* Headline panel: keep but flatten */
  .headline-panel { border: 1px solid #1a1a1a !important; background: #FFFFFF !important; }
  .headline-grid { display: grid !important; grid-template-columns: 1fr 1fr 1fr !important; }
  .headline-value { color: #169B62 !important; font-size: 14pt !important; }
  .headline-cta-btn { display: none !important; }
  /* Verdict and financing panels */
  .verdict-panel, #verdict_panel > div, #financing_health_panel > div { page-break-inside: avoid; }
  /* Tables — preserve readability */
  .multi-year-table, .strategy-comparison-table {
    page-break-inside: auto;
    width: 100% !important;
    border-collapse: collapse !important;
    font-size: 9pt !important;
  }
  .multi-year-table thead, .strategy-comparison-table thead {
    display: table-header-group !important;
  }
  .multi-year-table tr, .strategy-comparison-table tr {
    page-break-inside: avoid;
  }
  .multi-year-table th, .multi-year-table td,
  .strategy-comparison-table th, .strategy-comparison-table td {
    border: 1px solid #d4d4d0 !important;
    padding: 4pt 6pt !important;
    color: #1a1a1a !important;
  }
  .multi-year-table thead th, .strategy-comparison-table thead th {
    background: #f5f5f0 !important;
    color: #1a1a1a !important;
  }
  /* Section headers */
  .multi-year-table tr.section-header td {
    background: #f5f5f0 !important;
    color: #1a1a1a !important;
    font-weight: 700;
  }
  /* Sensitivity heat map */
  #heat_map_panel { page-break-before: auto; page-break-inside: avoid; }
  /* Methodology — open by default for print */
  details.methodology-section { page-break-before: always; }
  details.methodology-section[open] summary { display: block; }
  details.methodology-section summary::after { display: none; }
  details.methodology-section > div { display: block !important; }
  /* Force open all details in print */
  details:not([open]) > *:not(summary) { display: block !important; }
  /* Disclaimer */
  .tool-disclaimer { page-break-before: always; font-size: 8pt !important; }
  /* Eligibility banners */
  .eligibility-banner-ineligible, .eligibility-banner-marginal {
    border-left: 4pt solid #1a1a1a !important;
    background: #f5f5f0 !important;
  }
  /* General color flattening for print clarity */
  a, a:link, a:visited { color: #1a1a1a !important; text-decoration: none !important; }
  /* Page breaks: avoid breaking inside major panels */
  .headline-panel, .verdict-panel, #verdict_panel,
  #financing_health_panel, #strategy_comparison_panel {
    page-break-inside: avoid;
  }
}

/* ============================================================================
   STEP 1 + STEP 2 ELIGIBILITY RESULT DISPLAY (rebuild)
   ============================================================================ */
.mp-step-block {
  margin-top: 1.25rem;
  background: #FFFFFF;
  border: 1px solid #d4d4d0;
}
.mp-step-header {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  padding: 0.75rem 1rem;
  background: #1a1a1a;
  color: #FFFFFF;
}
.mp-step-num {
  font-family: 'Gotham Bold', 'Open Sans', sans-serif;
  font-size: 0.78rem;
  letter-spacing: 1.5px;
  color: #169B62;
  font-weight: 700;
  white-space: nowrap;
}
.mp-step-title {
  font-family: 'Gotham Bold', 'Open Sans', sans-serif;
  font-size: 0.95rem;
  color: #FFFFFF;
  line-height: 1.3;
}
.mp-step-outcome {
  padding: 0.7rem 1rem;
  font-family: 'Open Sans', sans-serif;
  font-size: 0.88rem;
  line-height: 1.5;
  border-bottom: 1px solid #d4d4d0;
}
.mp-step-outcome.mp-pass {
  background: rgba(22,155,98,0.08);
  color: #107a4d;
  border-left: 3px solid #169B62;
}
.mp-step-outcome.mp-fail {
  background: rgba(192,57,43,0.06);
  color: #922a1f;
  border-left: 3px solid #c0392b;
}
.mp-rows {
  padding: 0.25rem 0;
}
.mp-row {
  display: flex;
  gap: 0.85rem;
  padding: 0.55rem 1rem;
  border-bottom: 1px solid #f0f0e8;
}
.mp-row:last-child { border-bottom: none; }
.mp-icon {
  flex: 0 0 auto;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Open Sans', sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  line-height: 1;
}
.mp-row.mp-pass .mp-icon { background: #169B62; color: #FFFFFF; }
.mp-row.mp-fail .mp-icon { background: #c0392b; color: #FFFFFF; }
.mp-row.mp-needs .mp-icon { background: #d4a017; color: #FFFFFF; }
.mp-row.mp-na .mp-icon { background: #C0C0C0; color: #FFFFFF; }
.mp-content { flex: 1 1 auto; min-width: 0; }
.mp-label {
  font-family: 'Open Sans', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 0.15rem;
}
.mp-cite {
  font-size: 0.75rem;
  color: #6b6b6b;
  font-style: italic;
  margin-bottom: 0.25rem;
}
.mp-note {
  font-size: 0.85rem;
  color: #1a1a1a;
  line-height: 1.5;
}
.mp-row.mp-na .mp-label,
.mp-row.mp-na .mp-note {
  color: #6b6b6b;
}

/* Mobile-responsive wizard with 7 cols becomes 4 then 3 */
@media (max-width: 900px) {
  .wizard-progress-steps {
    grid-template-columns: repeat(4, 1fr);
  }
}
@media (max-width: 600px) {
  .wizard-progress-steps {
    grid-template-columns: repeat(3, 1fr);
  }
}
