.hrt-true-budget {
  --tb-navy: #10243e; --tb-teal: #0b766e; --tb-teal-soft: #e7f5f2; --tb-muted: #536273;
  --tb-border: #cbd5df; --tb-warm: #fffaf1; --tb-danger: #9f1239;
  max-width: 760px; min-width: 0; margin: 0 auto; color: var(--tb-navy);
  font: 400 16px/1.55 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  overflow-wrap: anywhere;
}
.hrt-true-budget *, .hrt-true-budget *::before, .hrt-true-budget *::after { box-sizing: border-box; }
/* The theme owns the page title; this stylesheet is enqueued only with the calculator. */
body:has(.hrt-true-budget) .entry-hero.page-hero-section .entry-header { min-height: 0; padding: 26px 0 18px; text-align: center; }
body:has(.hrt-true-budget) .entry-hero.page-hero-section h1.entry-title { margin: 0; line-height: 1.2; }
body:has(.hrt-true-budget) .entry-hero.page-hero-section h1.entry-title .tb-page-name,
body:has(.hrt-true-budget) .entry-hero.page-hero-section h1.entry-title .tb-page-subtitle { display: block; }
body:has(.hrt-true-budget) .entry-hero.page-hero-section h1.entry-title .tb-page-name { color: #0b766e; font-size: clamp(1.9rem, 5vw, 2.6rem); font-weight: 750; }
body:has(.hrt-true-budget) .entry-hero.page-hero-section h1.entry-title .tb-page-subtitle { margin-top: 4px; color: #10243e; font-size: clamp(1rem, 2.5vw, 1.25rem); font-weight: 600; }
body:has(.hrt-true-budget) .content-area { margin-top: 1.5rem; }
.hrt-true-budget .tb-shell { padding: clamp(16px, 4vw, 34px); background: #fff; border: 1px solid #e2e8f0; border-radius: 22px; box-shadow: 0 12px 36px rgb(15 23 42 / .06); }
.hrt-true-budget h2 { margin: 28px 0 12px; font-size: clamp(1.7rem, 6vw, 2.35rem); line-height: 1.15; }
.hrt-true-budget h3 { margin: 28px 0 10px; font-size: 1.2rem; line-height: 1.35; }
.hrt-true-budget h4 { margin: 24px 0 8px; font-size: 1rem; }
.hrt-true-budget p { margin: 10px 0 18px; }
.hrt-true-budget .tb-brand, .hrt-true-budget .tb-eyebrow { font-size: .9375rem; font-weight: 650; letter-spacing: .015em; }
.hrt-true-budget .tb-brand { color: var(--tb-navy); }
.hrt-true-budget .tb-brand-accent, .hrt-true-budget .tb-eyebrow { color: var(--tb-teal); }
.hrt-true-budget .tb-brand { margin: 0 0 18px; }
.hrt-true-budget .tb-question { margin-bottom: 6px; font-size: 1.18rem; font-weight: 650; line-height: 1.4; }
.hrt-true-budget button {
  display: inline-block; max-width: 100%; min-height: 48px; padding: 12px 18px; margin: 8px 0;
  border: 2px solid var(--tb-navy); border-radius: 12px; background: var(--tb-navy); color: #fff;
  font: inherit; font-weight: 700; line-height: 1.35; text-align: center; cursor: pointer; white-space: normal;
}
.hrt-true-budget button.tb-secondary { background: #fff; color: var(--tb-navy); border-color: var(--tb-border); }
.hrt-true-budget button:disabled { cursor: not-allowed; background: #e2e8f0; color: #64748b; border-color: #cbd5e1; }
.hrt-true-budget :is(button, input, select, summary):focus-visible { outline: 3px solid #14b8a6; outline-offset: 3px; }
.hrt-true-budget h2:focus { outline: none; }
.hrt-true-budget label { display: block; margin: 20px 0 8px; font-weight: 650; }
.hrt-true-budget :is(input[type="text"], select) { display: block; width: 100%; min-width: 0; min-height: 50px; padding: 12px; border: 1px solid #91a0b1; border-radius: 10px; background: #fff; color: var(--tb-navy); font: inherit; }
.hrt-true-budget input[aria-invalid="true"] { border: 2px solid var(--tb-danger); }
.hrt-true-budget .tb-money { display: flex; align-items: center; gap: 10px; min-width: 0; }
.hrt-true-budget .tb-money span { flex: 0 0 auto; color: var(--tb-muted); font-weight: 650; }
.hrt-true-budget .tb-money input { flex: 1 1 0; }
.hrt-true-budget .tb-helper, .hrt-true-budget footer { color: var(--tb-muted); font-size: .875rem; }
.hrt-true-budget .tb-note { padding: 16px; border-left: 4px solid var(--tb-teal); border-radius: 10px; background: #f0fdfa; }
.hrt-true-budget .tb-notices .tb-note { background: #fffbeb; border-color: #d4a72c; }
.hrt-true-budget .tb-one-issue { margin: 22px 0; padding: 16px; border: 1px solid #fdba74; border-radius: 12px; background: #fff7ed; color: #7c2d12; }
.hrt-true-budget .tb-one-issue .tb-eyebrow { margin: 0 0 6px; color: #9a3412; }
.hrt-true-budget .tb-one-issue p:last-of-type { margin-bottom: 8px; }
.hrt-true-budget .tb-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 24px 0; }
.hrt-true-budget .tb-actions > button { flex: 1 1 190px; margin: 0; }
.hrt-true-budget .tb-back-row { margin-top: 24px; }
.hrt-true-budget .tb-small-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.hrt-true-budget .tb-small-actions button { min-height: 44px; margin: 0; padding: 9px 13px; font-size: .9rem; }

.hrt-true-budget .tb-progress { margin: 0 0 30px; }
.hrt-true-budget .tb-progress > p { margin: 0 0 10px; color: var(--tb-teal); font-size: .9rem; font-weight: 750; }
.hrt-true-budget .tb-progress ol { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 0; padding: 0; list-style: none; }
.hrt-true-budget .tb-progress li { position: relative; min-width: 0; color: #7b8794; text-align: center; }
.hrt-true-budget .tb-progress li::before { content: ""; position: absolute; z-index: 0; top: 15px; left: -55%; width: 110%; height: 3px; background: #dbe3ea; }
.hrt-true-budget .tb-progress li:first-child::before { display: none; }
.hrt-true-budget .tb-progress li.is-current::before, .hrt-true-budget .tb-progress li.is-complete::before { background: var(--tb-teal); }
.hrt-true-budget .tb-progress li span { position: relative; z-index: 1; display: grid; place-items: center; width: 32px; height: 32px; margin: 0 auto 7px; border: 2px solid #b9c5d0; border-radius: 50%; background: #fff; font-weight: 750; }
.hrt-true-budget .tb-progress li.is-current span, .hrt-true-budget .tb-progress li.is-complete span { border-color: var(--tb-teal); background: var(--tb-teal); color: #fff; }
.hrt-true-budget .tb-progress li.is-current small { color: var(--tb-navy); font-weight: 750; }
.hrt-true-budget .tb-progress small { display: block; line-height: 1.25; }

.hrt-true-budget .tb-prompt-grid { display: grid; grid-template-columns: 1fr; gap: 10px; margin: 22px 0; }
.hrt-true-budget button.tb-prompt { width: 100%; margin: 0; padding: 15px; border-color: var(--tb-border); background: #fff; color: var(--tb-navy); text-align: left; }
.hrt-true-budget button.tb-prompt strong, .hrt-true-budget button.tb-prompt small { display: block; }
.hrt-true-budget button.tb-prompt small { margin-top: 4px; color: var(--tb-muted); font-weight: 400; }
.hrt-true-budget button.tb-prompt.is-selected { border-color: var(--tb-teal); background: var(--tb-teal-soft); box-shadow: inset 0 0 0 1px var(--tb-teal); }
.hrt-true-budget .tb-add-cost { margin-top: 24px; padding: 18px; border: 1px solid var(--tb-border); border-radius: 14px; background: #f8fafc; }

.hrt-true-budget .tb-choice-group { min-width: 0; margin: 22px 0; padding: 0; border: 0; }
.hrt-true-budget .tb-choice-group legend { width: 100%; margin-bottom: 10px; padding: 0; font-weight: 700; }
.hrt-true-budget .tb-choice-grid { display: grid; gap: 10px; }
.hrt-true-budget .tb-choice { position: relative; margin: 0; cursor: pointer; }
.hrt-true-budget .tb-choice input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.hrt-true-budget .tb-choice span { display: flex; min-height: 52px; padding: 13px 15px; border: 2px solid var(--tb-border); border-radius: 12px; background: #fff; flex-direction: column; justify-content: center; }
.hrt-true-budget .tb-choice small { margin-top: 3px; color: var(--tb-muted); font-weight: 400; }
.hrt-true-budget .tb-choice input:checked + span { border-color: var(--tb-teal); background: var(--tb-teal-soft); box-shadow: inset 0 0 0 1px var(--tb-teal); }
.hrt-true-budget .tb-choice input:focus-visible + span { outline: 3px solid #14b8a6; outline-offset: 3px; }

.hrt-true-budget .tb-cost-list { margin: 18px 0; padding: 0; list-style: none; }
.hrt-true-budget .tb-card { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin: 10px 0; padding: 15px; border: 1px solid #dde5ec; border-radius: 12px; background: #f8fafc; }
.hrt-true-budget .tb-card > div:first-child { flex: 1 1 190px; min-width: 0; }
.hrt-true-budget .tb-card h3 { margin: 0 0 2px; font-size: 1.05rem; }
.hrt-true-budget .tb-card p { margin: 0; }
.hrt-true-budget details { margin: 20px 0; padding: 12px 16px; border: 1px solid var(--tb-border); border-radius: 12px; }
.hrt-true-budget summary { min-height: 44px; padding: 8px 0; cursor: pointer; font-weight: 700; }
.hrt-true-budget .tb-subcard, .hrt-true-budget .tb-advanced-group { margin: 16px 0; padding: 14px; border: 1px solid #dbe3ea; border-radius: 12px; background: #f8fafc; }
.hrt-true-budget .tb-advanced { margin: 22px 0; padding: 16px; border-radius: 14px; background: var(--tb-warm); }
.hrt-true-budget .tb-advanced-group legend { padding: 0 6px; font-weight: 750; }
.hrt-true-budget .tb-check { display: flex; align-items: flex-start; gap: 12px; padding: 12px 0; cursor: pointer; font-weight: 400; }
.hrt-true-budget input[type="checkbox"] { width: 24px; height: 24px; flex: 0 0 24px; margin-top: 2px; accent-color: var(--tb-teal); }

.hrt-true-budget .tb-review-summary > div { margin: 12px 0; padding: 16px; border-radius: 12px; background: #f8fafc; }
.hrt-true-budget .tb-review-summary > div > span { display: block; color: var(--tb-muted); font-size: .9rem; }
.hrt-true-budget .tb-review-summary > div > strong { display: block; margin: 4px 0 8px; font-size: 1.25rem; }
.hrt-true-budget .tb-result-heading { margin: 24px 0 6px; color: var(--tb-navy); font-size: clamp(1.25rem, 4vw, 1.55rem); font-weight: 700; line-height: 1.3; }
.hrt-true-budget .tb-result-amount { margin: 6px 0 10px; color: var(--tb-navy); font-size: clamp(2rem, 8vw, 3.35rem); font-weight: 800; line-height: 1.12; }
.hrt-true-budget .tb-result-amount span { font-size: .42em; font-weight: 600; white-space: nowrap; }
.hrt-true-budget .tb-result-support { margin-top: 0; color: var(--tb-muted); font-size: 1rem; font-weight: 400; }
.hrt-true-budget .tb-summary { display: grid; gap: 12px; margin: 26px 0; }
.hrt-true-budget .tb-summary > div { padding: 16px; border-radius: 12px; background: #f8fafc; }
.hrt-true-budget dt { color: var(--tb-muted); }
.hrt-true-budget dd { margin: 4px 0 0; font-weight: 700; }
.hrt-true-budget .tb-change-list { margin: 8px 0; padding: 0; list-style: none; }
.hrt-true-budget .tb-change-list li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 16px; padding: 11px 0; border-bottom: 1px solid #e2e8f0; }
.hrt-true-budget .tb-calculation-item { padding: 4px 0 14px; border-bottom: 1px solid #e2e8f0; }
.hrt-true-budget footer { margin-top: 32px; padding-top: 22px; border-top: 1px solid #e2e8f0; }

@media (min-width: 600px) {
  .hrt-true-budget .tb-prompt-grid, .hrt-true-budget .tb-summary { grid-template-columns: 1fr 1fr; }
  .hrt-true-budget .tb-choice-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 420px) {
  .hrt-true-budget .tb-shell { padding: 14px; border-radius: 14px; }
  .hrt-true-budget .tb-actions > button { width: 100%; flex-basis: 100%; }
  .hrt-true-budget .tb-progress small { font-size: .72rem; }
  .hrt-true-budget .tb-card { align-items: stretch; }
  .hrt-true-budget .tb-small-actions { width: 100%; }
  .hrt-true-budget .tb-small-actions button { flex: 1; }
}
