.rt-result-first.result-ux-v1 {
  --result-ux-navy: var(--rt-navy, #081636);
  --result-ux-blue: var(--rt-blue, #1e2f8a);
  --result-ux-hero-navy: var(--navy-900, var(--rt-blue, #1e2f8a));
  --result-ux-gold: var(--rt-gold, #b99134);
  --result-ux-muted: var(--rt-muted, #4b5870);
}

.result-ux-v1 .rt-result-hero {
  max-width: none;
  padding-block: clamp(24px, 4vw, 42px) 18px;
}

.result-ux-v1 .rt-result-hero .rt-eyebrow {
  margin: 0 0 10px;
  color: var(--result-ux-blue);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .09em;
}

.result-ux-v1 .rt-result-hero h1.result-ux-title {
  max-width: 760px;
  color: var(--result-ux-navy);
  font-family: var(--rt-serif, Georgia, "Times New Roman", serif);
  font-size: clamp(24px, 2.5vw, 32px);
  hyphens: none;
  letter-spacing: -.025em;
  line-height: 1.03;
  overflow-wrap: normal;
  word-break: normal;
}

.result-ux-summary {
  display: grid;
  justify-items: start;
  gap: 0;
  margin-top: clamp(18px, 3vw, 28px);
}

.result-ux-value {
  display: inline-flex;
  align-items: baseline;
  gap: clamp(10px, 1.5vw, 18px);
  color: var(--result-ux-hero-navy);
  font-family: var(--rt-serif, Georgia, "Times New Roman", serif);
  font-size: clamp(88px, 12vw, 138px);
  font-weight: 500;
  hyphens: none;
  letter-spacing: -.045em;
  line-height: .88;
  margin-bottom: clamp(24px, 3vw, 34px);
  overflow-wrap: normal;
  word-break: keep-all;
}

.result-ux-value-label {
  font-family: inherit;
  font-size: clamp(21px, 2.6vw, 32px);
  font-weight: 650;
  letter-spacing: 0;
  line-height: 1;
}

.result-ux-value-number {
  font-size: 1em;
  line-height: inherit;
}

.result-ux-line {
  max-width: 680px;
  margin: 0;
  color: var(--result-ux-blue);
  font-family: var(--rt-serif, Georgia, "Times New Roman", serif);
  font-size: clamp(18px, 2vw, 22px);
  font-weight: 400;
  line-height: 1.35;
}

.result-ux-tax-note {
  box-sizing: border-box;
  display: grid;
  gap: 4px;
  width: 100%;
  max-width: none;
  margin-top: 20px;
  padding: 13px 15px;
  border-left: 3px solid var(--result-ux-gold);
  background: #fffaf0;
  color: var(--result-ux-muted);
  text-wrap: pretty;
}

.result-ux-v1 .result-ux-ahv-note {
  box-sizing: border-box;
  width: 100%;
  max-width: none;
  margin: clamp(14px, 2vw, 20px) 0 0;
  padding: clamp(15px, 2vw, 19px) clamp(16px, 2.2vw, 22px);
  border: 1px solid rgba(30, 47, 138, .13);
  border-left: 4px solid rgba(30, 47, 138, .32);
  border-radius: 12px;
  background: rgba(30, 47, 138, .045);
  color: var(--rt-ink, #17233f);
  font-family: var(--rt-sans, sans-serif);
  font-size: 16px;
  line-height: 1.55;
}

.result-ux-v1 .result-ux-ahv-note strong {
  display: block;
  margin: 0 0 5px;
  color: var(--result-ux-blue);
  font-weight: 700;
}

.result-ux-v1 .result-ux-ahv-note p {
  margin: 0;
}

.result-ux-tax-note strong {
  color: var(--result-ux-navy);
  font-size: .92rem;
  text-wrap: balance;
}

.result-ux-tax-note p,
.result-ux-context {
  margin: 0;
  font-size: 1rem;
  line-height: 1.5;
}

.result-ux-source-card {
  display: none !important;
}

.result-ux-v1 .rt-result-cards {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.result-ux-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 12px;
  margin: 22px 0 0;
}

.result-ux-actions button {
  min-height: 48px;
  padding: 12px 18px;
}

.result-ux-actions button:focus-visible {
  outline: 3px solid rgba(30, 47, 138, .28);
  outline-offset: 3px;
}

.result-ux-v1 .rt-result-flow[data-active-step="1"] > .result-ux-actions,
.result-ux-v1 .rt-result-flow[data-active-step="2"] > .result-ux-actions,
.result-ux-v1 .rt-result-flow[data-active-step="3"] > .result-ux-actions {
  display: none;
}

.result-ux-v1 .rt-result-step-actions {
  justify-content: flex-end;
  align-items: center;
}

.result-ux-v1 .rt-result-step-actions .rt-flow-next {
  background: var(--result-ux-blue);
  color: #fff;
}

.result-ux-v1 .rt-result-step-actions .rt-flow-next:hover,
.result-ux-v1 .rt-result-step-actions .rt-flow-next:focus-visible {
  background: var(--result-ux-navy);
  outline: 2px solid var(--result-ux-gold);
}

.result-ux-deduplicated > .rt-journey-caption,
.result-ux-deduplicated > .rt-journey-phases {
  display: none !important;
}

.result-ux-chart-note {
  box-sizing: border-box;
  display: grid;
  gap: 4px;
  width: 100%;
  margin: 14px 0 6px;
  padding: 12px 14px;
  border-left: 3px solid var(--result-ux-gold);
  background: #fffaf0;
  color: var(--result-ux-muted);
}

.result-ux-chart-note strong {
  color: var(--result-ux-navy);
  font-size: 1rem;
}

.result-ux-chart-note p {
  margin: 0;
  font-size: .95rem;
  line-height: 1.5;
}

.result-ux-chart-unfunded-gap .rt-chart-reach-event circle {
  fill: #fff;
  stroke: var(--result-ux-gold);
  stroke-width: 4px;
}

.result-ux-gap-marker-label {
  fill: #8a681c;
  stroke: #fff;
  stroke-width: 5px;
  stroke-linejoin: round;
  paint-order: stroke fill;
  font-size: 14px;
  font-weight: 750;
}

.result-ux-gap-marker-legend {
  display: none;
  min-height: 44px;
  align-items: center;
  gap: 9px;
  margin-top: 8px;
  color: var(--result-ux-navy);
  font-size: .95rem;
  line-height: 1.4;
}

.result-ux-gap-marker-dot {
  box-sizing: border-box;
  width: 13px;
  height: 13px;
  flex: 0 0 13px;
  border: 3px solid var(--result-ux-gold);
  border-radius: 50%;
  background: #fff;
}

.result-ux-gap-explainer {
  box-sizing: border-box;
  width: 100%;
  margin-top: 16px;
  border: 1px solid rgba(8, 22, 54, .14);
  border-radius: 10px;
  background: #f8fafc;
  color: var(--result-ux-muted);
}

.result-ux-gap-explainer summary {
  display: flex;
  min-height: 48px;
  align-items: center;
  gap: 9px;
  padding: 10px 14px;
  color: var(--result-ux-navy);
  cursor: pointer;
  font-size: 1rem;
  font-weight: 650;
  line-height: 1.4;
  list-style: none;
}

.result-ux-gap-explainer summary::-webkit-details-marker {
  display: none;
}

.result-ux-gap-explainer summary::after {
  content: "+";
  margin-left: auto;
  color: var(--result-ux-blue);
  font-size: 1.25rem;
  font-weight: 500;
}

.result-ux-gap-explainer[open] summary::after {
  content: "−";
}

.result-ux-gap-explainer summary:focus-visible {
  outline: 3px solid rgba(30, 47, 138, .28);
  outline-offset: 3px;
}

.result-ux-gap-explainer-icon {
  flex: 0 0 auto;
  color: var(--result-ux-gold);
  font-size: 1.1rem;
  line-height: 1;
}

.result-ux-gap-explainer > p {
  margin: 0;
  padding: 0 14px 14px 40px;
  color: var(--result-ux-muted);
  font-size: 1rem;
  line-height: 1.55;
}

.result-ux-chart-unknown .rt-chart-svg,
.result-ux-chart-unknown .rt-chart-endpoints,
.result-ux-chart-unknown figcaption {
  display: none;
}

@media (max-width: 760px) {
  .result-ux-v1 .rt-result-cards {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .result-ux-v1 .rt-result-hero {
    padding-top: 24px;
  }

  .result-ux-v1 .rt-result-hero h1.result-ux-title {
    font-size: clamp(24px, 7.2vw, 29px);
  }

  .result-ux-value {
    font-size: clamp(80px, 25vw, 104px);
    margin-bottom: 24px;
  }

  .result-ux-value-label {
    font-size: clamp(20px, 6.5vw, 25px);
  }

  .result-ux-gap-explainer > p {
    padding-left: 14px;
  }

  .result-ux-gap-marker-label {
    display: none;
  }

  .result-ux-gap-marker-legend {
    display: flex;
  }

  .result-ux-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .result-ux-actions button,
  .result-ux-v1 .rt-result-step-actions button {
    width: 100%;
  }

  .result-ux-v1 .rt-result-step-actions {
    flex-direction: column;
  }
}

@media (max-width: 340px) {
  .result-ux-v1 .rt-result-hero .rt-eyebrow {
    font-size: .7rem;
    letter-spacing: .065em;
  }

  .result-ux-value {
    font-size: 78px;
  }
}
