/* Rent vs Buy — Figma 129:4 rent-vs-buy-card-v2 (1000 × 483) */

.rvb-page.elig-page #calculator > .container.elig-calc-wrap,
.rvb-page .elig-calc-wrap {
  max-width: 1000px !important;
  width: 100%;
  padding-inline: 0 !important;
}

.rvb-page .elig-widget.rvb-widget--v2,
.rvb-page .elig-widget.rvb-widget {
  width: 1000px;
  max-width: 100% !important;
  margin-inline: auto;
  border-radius: 16px !important;
  overflow: hidden;
  border: 1px solid #d8dfea;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  background: #fff;
}

/* Header 48px */
.rvb-page .rvb-widget .pa-card__header.elig-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 48px;
  min-height: 48px;
  max-height: 48px;
  padding: 4px 16px !important;
  background: #0b1f35;
}

.rvb-page .rvb-widget .elig-header-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.rvb-page .rvb-widget.rvb-widget--v2 .pa-card__tenant-logo,
.pa-card.elig-widget.elig-widget--v62.rvb-widget--v2 .pa-card__tenant-logo {
  width: 30px !important;
  height: 34px !important;
  max-width: 30px !important;
  object-fit: contain;
}

.rvb-page .rvb-widget .elig-form-title,
.rvb-page .rvb-widget h2.elig-form-title {
  font-family: Fraunces, Georgia, serif !important;
  font-weight: 600 !important;
  font-size: 16px !important;
  color: #fff !important;
  margin: 0 !important;
}

.rvb-page .rvb-rate-chip.elig-rate-badge {
  border: 1px solid rgba(232, 189, 87, 0.4) !important;
  background: rgba(232, 189, 87, 0.12) !important;
  color: #e8bd57 !important;
  font-size: 10px !important;
  font-weight: 600 !important;
  padding: 4px 10px !important;
  border-radius: 999px !important;
}

/* Body 250 | 440 | 308 */
.rvb-page .rvb-widget .pa-card__body.elig-pa-body {
  padding: 0 !important;
  background: #fff;
}

.rvb-page .elig-layout.rvb-layout {
  display: grid !important;
  grid-template-columns: 250px 440px minmax(0, 1fr) !important;
  min-height: 380px !important;
  height: 380px;
  gap: 0 !important;
  align-items: stretch;
}

.rvb-page .elig-form-col {
  width: 250px;
  background: #fcfcfd;
  border-right: 1px solid #e2e8f0;
  min-height: 380px;
  height: 100%;
  overflow: hidden;
}

.rvb-page .elig-form-body {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 12px 14px 10px !important;
  height: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

.rvb-page .elig-form-body > .elig-field,
.rvb-page .elig-form-body .elig-field {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}

.rvb-page .rvb-form-lead {
  margin: 0;
  font-family: Manrope, Inter, system-ui, sans-serif;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
  color: #071a3a;
}

.rvb-page .pa-field__label {
  font-family: Manrope, Inter, system-ui, sans-serif;
  font-size: 10px !important;
  font-weight: 600;
  color: #64748b !important;
  margin-bottom: 2px !important;
  line-height: 1.2;
}

.rvb-page .pa-combo__trigger,
.rvb-page .pa-input {
  min-height: 32px;
  height: 32px;
  border-radius: 6px;
  border-color: #e2e8f0;
  font-size: 12px;
}

.rvb-page .pa-field--money .pa-input,
.rvb-page .pa-field__control--money {
  min-height: 32px;
  height: 32px;
}

.rvb-page .pa-input--money {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-weight: 600;
  font-size: 12px;
  color: #071a3a;
}

.rvb-page .rvb-money-row {
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 6px !important;
  margin: 0;
}

.rvb-page .pa-money__suffix {
  display: inline-flex;
  align-items: center;
  background: #f1f5f9;
  border-radius: 4px;
  padding: 2px 6px;
  font-size: 9px;
}
.rvb-page .pa-money__symbol { display: none; }
.rvb-page .pa-money__code {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-weight: 600;
  color: #071a3a;
}

.rvb-field-hint {
  margin: 0;
  font-family: Manrope, Inter, system-ui, sans-serif;
  font-size: 8px;
  line-height: 11px;
  color: #64748b;
}

.rvb-assumptions {
  margin-top: auto;
  padding-top: 6px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.rvb-assumptions__title {
  margin: 0;
  font-family: Inter, Manrope, system-ui, sans-serif;
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 0.8px;
  color: #667387;
  text-transform: uppercase;
}
.rvb-assumptions__line {
  margin: 0;
  font-family: Inter, Manrope, system-ui, sans-serif;
  font-size: 9px;
  font-weight: 500;
  line-height: 1.25;
  color: #334054;
}

/* Combo icons — same chip as UI Kit / elig-widget--v62 (22×22, Lucide 14) */
.rvb-page .pa-combo__trigger-ico,
.rvb-page .pa-combo__opt-ico {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: 22px !important;
  height: 22px !important;
  border-radius: 6px;
  background: #f1f5f9;
  color: #0f2445 !important;
  opacity: 1 !important;
  visibility: visible !important;
}
.rvb-page .pa-combo__trigger-ico svg,
.rvb-page .pa-combo__opt-ico svg {
  display: block !important;
  width: 14px !important;
  height: 14px !important;
  stroke: currentColor !important;
  stroke-width: 2;
}

/* Middle results 440 */
.rvb-page .elig-aside {
  width: 440px;
  max-width: 440px;
  min-height: 380px;
  height: 100%;
  padding: 10px 14px 8px !important;
  background: #0b1f35;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  overflow: hidden;
  box-sizing: border-box;
}

.rvb-page .elig-aside-meta {
  margin: 0;
  width: 100%;
  display: flex;
  justify-content: flex-start;
  align-self: stretch;
}

.rvb-page .elig-aside .elig-rate-badge {
  border: 1px solid #e8bc56 !important;
  background: rgba(232, 188, 86, 0.12) !important;
  color: #e8bc56 !important;
  font-size: 9px !important;
  font-weight: 600 !important;
  padding: 3px 10px !important;
  border-radius: 999px !important;
}

.elig-aside .rvb-verdict {
  margin: 0;
  width: 100%;
  font-family: Manrope, Inter, system-ui, sans-serif;
  font-size: 11px;
  font-weight: 500;
  color: #bac6dc;
  text-align: left;
}
.elig-aside .rvb-verdict.is-rent { color: #93c5fd; }

/* Gold years box */
.rvb-years-box {
  width: 88px;
  height: 88px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 8px 10px;
  border-radius: 12px;
  border: 1px solid #e8bc56;
  background: rgba(232, 188, 86, 0.1);
  box-shadow: 0 0 9px rgba(232, 188, 86, 0.2), 0 10px 13px rgba(232, 188, 86, 0.1);
  color: #e8bc56;
  flex-shrink: 0;
}
.rvb-years-box__num {
  font-family: Fraunces, Georgia, serif;
  font-weight: 700;
  font-size: 36px;
  line-height: 1;
  color: #e8bc56;
}
.rvb-years-box__label {
  font-family: Manrope, Inter, system-ui, sans-serif;
  font-weight: 700;
  font-size: 10px;
  letter-spacing: 0.5px;
  color: #e8bc56;
  text-transform: uppercase;
}

.rvb-page .rvb-sub.elig-trust,
.rvb-page .elig-aside .elig-trust.rvb-sub {
  margin: 0 !important;
  width: 100%;
  font-size: 9px !important;
  line-height: 1.25;
  color: #94a3b8 !important;
  text-align: left;
  opacity: 1;
}

.rvb-parity {
  margin: 0;
  width: 100%;
  padding: 6px 8px;
  border-radius: 8px;
  border: 1px solid rgba(147, 197, 253, 0.45);
  background: rgba(59, 130, 246, 0.14);
  font-size: 10px;
  color: #e8f1ff;
}
.rvb-parity[hidden] { display: none !important; }

.rvb-rows {
  margin: 0;
  padding: 0;
  list-style: none;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.rvb-rows li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 2px 0;
  margin: 0;
  border: none;
}
.rvb-rows li span {
  font-family: Manrope, Inter, system-ui, sans-serif;
  font-size: 11px;
  font-weight: 500;
  color: #bac6dc;
}
.rvb-rows li strong {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.5px;
  white-space: nowrap;
}
.rvb-rows li.is-mortgage strong {
  color: #f5cc61;
}
.rvb-page .rvb-rows li.is-emphasis {
  border: 1px solid rgba(115, 128, 148, 0.5) !important;
  background: rgba(255, 255, 255, 0.06) !important;
  border-radius: 6px;
  padding: 3px 8px !important;
}
.rvb-page .rvb-rows li.is-emphasis strong {
  font-size: 12px;
  color: #fff !important;
}

.rvb-cash-split {
  margin: 0;
  width: 100%;
  font-size: 8px;
  line-height: 1.25;
  color: #94a3b8;
}

.rvb-rows--cashback {
  margin: 0;
  padding: 0;
  border: none;
  list-style: none;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.rvb-rows--cashback li {
  display: flex;
  justify-content: space-between;
  padding: 2px 0;
}
.rvb-rows--cashback .rvb-cashback-row strong {
  color: #7dd3fc;
  font-size: 12px;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
}
.rvb-rows--cashback .rvb-net-cash-row {
  background: transparent;
  border: none;
  padding: 0;
  border-radius: 0;
  box-shadow: 0 0 7px rgba(16, 185, 129, 0.15);
}
.rvb-rows--cashback .rvb-net-cash-row span {
  font-size: 10px;
  font-weight: 600;
  color: #bac7db !important;
}
.rvb-rows--cashback .rvb-net-cash-row strong {
  color: #fff !important;
  font-size: 13px;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-weight: 700;
}

.rvb-cashback-note {
  margin: 0;
  width: 100%;
  font-size: 8px;
  line-height: 1.3;
  color: #94a3b8;
  text-align: left;
  flex-shrink: 0;
}
.rvb-cashback-note[hidden] { display: none !important; }

/* Savings 308 */
.rvb-savings {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 14px 16px !important;
  background: #0a1c3a !important;
  min-height: 380px;
  height: 100%;
  color: #fff;
}
.rvb-savings__eyebrow {
  margin: 0;
  font-family: Manrope, Inter, system-ui, sans-serif;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: #e8bc56 !important;
}
.rvb-savings__label {
  margin: 0;
  font-size: 10px;
  color: #bac6dc;
}
.rvb-savings__value {
  font-family: Fraunces, Georgia, serif;
  font-weight: 600;
  font-size: 28px;
  color: #fff;
  line-height: 1.1;
}
.rvb-savings__note {
  margin: 0;
  font-size: 9px;
  line-height: 12px;
  color: #94a3b8;
}
.rvb-savings__note[hidden] { display: none !important; }

.rvb-chart {
  margin: 0;
  margin-top: auto;
  padding: 8px;
  border-radius: 8px;
  background: transparent;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-height: 0;
}
.rvb-chart__title {
  margin: 0;
  font-size: 8px;
  font-weight: 700;
  color: #bac6dc;
  text-transform: uppercase;
  letter-spacing: 0;
  text-align: left;
}
.rvb-savings__trust {
  margin: 0 !important;
  font-size: 8px !important;
  color: #94a3b8 !important;
  opacity: 1;
  line-height: 1.3;
}
.rvb-chart__bars {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 30px;
  height: 150px;
  margin-top: auto;
  background-image:
    linear-gradient(to top, rgba(255,255,255,0.18) 1px, transparent 1px),
    linear-gradient(to top, rgba(255,255,255,0.06) 1px, transparent 1px);
  background-size: 100% 150px, 100% 40px;
  background-position: bottom, bottom;
  background-repeat: no-repeat, repeat-y;
  border-bottom: 1px solid rgba(255, 255, 255, 0.35);
  padding-bottom: 0;
}
.rvb-chart__col {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  width: 50px;
  height: 100%;
}
.rvb-chart__val {
  font-family: Inter, Manrope, system-ui, sans-serif;
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  line-height: 1;
}
.rvb-chart__track {
  width: 50px;
  height: 130px;
  min-height: 130px;
  background: transparent;
  display: flex;
  align-items: flex-end;
  border-radius: 4px;
  overflow: hidden;
}
.rvb-chart__fill {
  width: 100%;
  border-radius: 4px;
  background: linear-gradient(180deg, #f5cc61 0%, #d9a640 100%);
  min-height: 0 !important;
}
.rvb-chart__col.is-neg .rvb-chart__fill {
  background: rgba(147, 197, 253, 0.55);
}
.rvb-chart__col.is-neg .rvb-chart__val { color: #93c5fd; }
.rvb-chart__year {
  font-size: 9px;
  font-weight: 500;
  color: #bac7db;
  text-transform: lowercase;
}

/* Footer */
.rvb-page .rvb-widget .pa-card__footer.elig-card-footer,
.rvb-page .rvb-card-footer {
  background: #f1f5f9 !important;
  border-top: none !important;
  padding: 12px 16px !important;
  min-height: 55px !important;
  height: 55px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.rvb-page .rvb-widget .elig-footer-cta {
  display: flex;
  gap: 8px;
  align-items: center;
}
.rvb-page .rvb-widget .elig-footer-cta .pa-btn--primary {
  background: #f4c951 !important;
  color: #0b1f35 !important;
  border: none !important;
  border-radius: 6px;
  padding: 7px 14px !important;
  font-size: 12px !important;
  font-weight: 600;
  height: 31px;
  min-height: 31px;
}
.rvb-page .rvb-widget .elig-footer-cta .pa-btn--ghost,
.rvb-page .rvb-widget .elig-footer-contact {
  background: transparent !important;
  border: 1px solid #0b1f35 !important;
  color: #071a3a !important;
  border-radius: 6px;
  padding: 6px 14px !important;
  font-size: 11px !important;
  font-weight: 600;
  height: 29px;
  min-height: 29px;
}
.rvb-page .rvb-widget .pa-card__powered {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  color: #64748b;
  background: transparent !important;
}
.rvb-page .rvb-widget .propatlas-lockup {
  display: inline-flex;
  gap: 0;
  font-size: 13px;
  font-weight: 700;
  background: transparent !important;
}
.rvb-page .rvb-widget .propatlas-lockup .prop { color: #111; margin: 0; padding: 0; }
.rvb-page .rvb-widget .propatlas-lockup .atlas { color: #1767e8; margin: 0; padding: 0; }

.rvb-page .rvb-aside-cta,
.rvb-disclaimer,
.rvb-hook-note,
.rvb-more-btn,
.rvb-more { display: none !important; }

.rvb-why {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
@media (max-width: 800px) {
  .rvb-why { grid-template-columns: 1fr; }
}
.rvb-why article {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
}
.rvb-why h3 {
  margin: 0 0 8px;
  font-family: var(--display);
  font-size: 1.05rem;
  color: var(--navy-900);
}
.rvb-why p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

@media (max-width: 1100px) {
  .rvb-page .elig-layout.rvb-layout {
    grid-template-columns: 1fr 1fr !important;
    height: auto;
    min-height: 0 !important;
  }
  .rvb-page .elig-form-col {
    grid-column: 1 / -1;
    width: auto;
    min-height: 0;
    height: auto;
    border-right: none;
    border-bottom: 1px solid #e2e8f0;
  }
  .rvb-page .elig-aside {
    width: auto;
    max-width: none;
    min-height: 0;
    height: auto;
  }
  .rvb-savings {
    min-height: 0;
    height: auto;
  }
}
@media (max-width: 800px) {
  .rvb-page .elig-layout.rvb-layout {
    grid-template-columns: 1fr !important;
  }
  .rvb-page .elig-aside { border-right: none; }
}

/* —— Data blocks (static HTML from rent-vs-buy.json) —— */
.rvb-page .lead-kicker {
  margin: 0 0 8px;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--gold, #c9a35a);
}
.rvb-kpi-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 0 0 28px;
  padding: 14px 16px;
  border: 1px solid var(--line, #e2e8f0);
  border-radius: 12px;
  background: #fff;
}
.rvb-kpi-strip__label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--muted, #64748b);
  margin-bottom: 4px;
}
.rvb-kpi-strip strong {
  font-size: 1.05rem;
  color: var(--navy-900, #0b1f35);
}
.rvb-metric-callout {
  margin: 0 0 1.25rem;
  padding: 0.85rem 1rem;
  border-left: 3px solid var(--gold, #c9a35a);
  background: rgba(201, 163, 90, 0.08);
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--text-primary, inherit);
}
.rvb-assume {
  margin: 0 0 10px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--muted, #64748b);
}
.rvb-metric-note {
  margin: 0 0 16px;
  padding: 12px 14px;
  border-left: 3px solid var(--gold, #c9a35a);
  background: rgba(201, 163, 90, 0.08);
  font-size: 0.92rem;
  color: var(--navy-900, #0b1f35);
}
.rvb-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line, #e2e8f0);
  border-radius: 12px;
  background: #fff;
}
.rvb-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}
.rvb-table th,
.rvb-table td {
  padding: 12px 14px;
  text-align: left;
  border-bottom: 1px solid #eef2f7;
  white-space: nowrap;
}
.rvb-table th {
  background: #0a1830;
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.rvb-table tbody tr:nth-child(even) { background: #f8fafc; }
.rvb-table tbody tr.rvb-data-row {
  cursor: pointer;
  transition: background .15s;
}
.rvb-table tbody tr.rvb-data-row:hover,
.rvb-table tbody tr.rvb-data-row:focus {
  background: rgba(201, 163, 90, 0.12);
  outline: none;
}
.rvb-n {
  color: var(--muted, #64748b);
  font-size: 0.8rem;
  font-weight: 500;
}
.rvb-muted { color: var(--muted, #64748b); }
.rvb-wait-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 8px;
}
.rvb-wait-card {
  padding: 18px;
  border-radius: 12px;
  border: 1px solid var(--line, #e2e8f0);
  background: #fff;
}
.rvb-wait-card h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
  color: var(--navy-900, #0b1f35);
}
.rvb-wait-card__lead {
  margin: 0 0 12px;
  font-size: 0.85rem;
  color: var(--muted, #475569);
  line-height: 1.4;
}
.rvb-wait-card p {
  margin: 0 0 8px;
  font-size: 0.9rem;
  color: var(--muted, #475569);
  line-height: 1.45;
}
.rvb-wait-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}
.rvb-wait-table th,
.rvb-wait-table td {
  padding: 0.45rem 0;
  border-bottom: 1px solid var(--line, #e2e8f0);
  text-align: left;
  vertical-align: baseline;
}
.rvb-wait-table th {
  font-weight: 500;
  color: var(--muted, #475569);
  padding-right: 12px;
}
.rvb-wait-table td {
  text-align: right;
  font-variant-numeric: tabular-nums;
  color: var(--navy-900, #0b1f35);
  white-space: nowrap;
}
.rvb-wait-table tr:last-child th,
.rvb-wait-table tr:last-child td {
  border-bottom: 0;
}
.rvb-wait-table__emph th,
.rvb-wait-table__emph td {
  color: var(--navy-900, #0b1f35);
  font-weight: 700;
}
.rvb-wait-table__emph.is-pos td { color: #0f766e; }
.rvb-wait-table__emph.is-neg td { color: #b45309; }
.rvb-disclaimer {
  margin: 18px 0 0;
  font-size: 0.8rem;
  color: var(--muted, #64748b);
}
@media (max-width: 900px) {
  .rvb-kpi-strip { grid-template-columns: 1fr 1fr; }
  .rvb-wait-grid { grid-template-columns: 1fr; }
}
