/* =========================================================
   ONE-INCOME STRESS TEST
   Visual System
   ========================================================= */


/* =========================================================
   SHARED — CALCULATOR
   ========================================================= */

.hrt-stress-test {
    max-width: 640px;
    margin: 0 auto;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: #0F172A;
}


/* =========================================================
   WORDPRESS / KADENCE PAGE CLEANUP
   ========================================================= */

body.page-id-14 article#post-14 {
    background: transparent;
    box-shadow: none;
}

body.page-id-14 .entry-content-wrap {
    padding: 0;
}


/* =========================================================
   SHARED — PRIMARY BUTTONS
   ========================================================= */

.hrt-button {
    width: 100%;
    min-height: 56px;
    padding: 0 20px;
    border: none;
    border-radius: 10px;
    background: #0F172A;
    color: #FFFFFF;
    font-family: inherit;
    font-size: 16px;
    font-weight: 600;
    line-height: 1;
    cursor: pointer;
    transition: background-color 160ms ease, transform 160ms ease;
}

.hrt-stress-test button.hrt-button {
    background: #0F172A !important;
    color: #FFFFFF !important;
    border-color: #0F172A !important;
}

.hrt-stress-test button.hrt-button:hover,
.hrt-stress-test button.hrt-button:focus {
    background: #1E293B !important;
    color: #FFFFFF !important;
    border-color: #1E293B !important;
}

.hrt-button:active {
    transform: translateY(1px);
}


/* =========================================================
   SHARED — FINANCIAL INPUTS
   ========================================================= */

.hrt-stress-test .hrt-field {
    margin-bottom: 48px;
}

.hrt-field label {
    display: block;
    margin-bottom: 10px;
    font-size: 16px;
    line-height: 1.4;
    font-weight: 600;
    color: #0F172A;
}

.hrt-helper {
    margin: 8px 0 0;
    font-size: 14px;
    line-height: 1.5;
    color: #64748B;
}

.hrt-stress-test .hrt-money-input {
    display: flex;
    align-items: stretch;
    width: 100%;
    min-height: 56px;
    border: 1px solid #E5E7EB;
    border-radius: 10px;
    background: #FFFFFF;
    overflow: hidden;
}

.hrt-stress-test .hrt-money-input > span {
    display: flex;
    align-items: center;
    padding: 0 16px;
    font-size: 14px;
    color: #64748B;
    white-space: nowrap;
}

.hrt-stress-test .hrt-money-input input {
    flex: 1;
    min-width: 0;
    height: 56px;
    padding: 0 16px;
    border: 0;
    border-left: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    font-family: inherit;
    font-size: 18px;
    font-weight: 500;
    color: #0F172A;
    outline: none;
}

.hrt-stress-test .hrt-money-input:focus-within {
    border-color: #0F172A;
    box-shadow: 0 0 0 3px rgba(15, 23, 42, 0.08);
}

.hrt-stress-test .hrt-money-input input:focus {
    box-shadow: none;
}

.hrt-stress-test .hrt-money-input > span:first-child {
    min-width: 48px;
    justify-content: center;
    padding: 0 12px;
    border-right: 1px solid #E5E7EB;
    background: #F8FAFC;
}

.hrt-stress-test .hrt-money-input > span:last-child {
    padding-left: 12px;
    padding-right: 16px;
    font-size: 13px;
    color: #94A3B8;
}


/* =========================================================
   SHARED — RESULT STATUS INDICATORS
   ========================================================= */

.hrt-result-status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.hrt-result-status::before {
    content: "";
    width: 13px;
    height: 13px;
    flex: 0 0 13px;
    border-radius: 50%;
}

/* Resilient */
.hrt-result-status--resilient {
    color: #2F855A !important;
}

.hrt-result-status--resilient::before {
    background: #68B44A;
}

/* Tight */
.hrt-result-status--tight {
    color: #A16207 !important;
}

.hrt-result-status--tight::before {
    background: #F4C34E;
}

/* Shortfall */
.hrt-result-status--shortfall {
    color: #B54747 !important;
}

.hrt-result-status--shortfall::before {
    background: #D95C5C;
}


/* =========================================================
   SCREEN 1 — INTRO
   ========================================================= */

.hrt-screen--intro {
    text-align: center;
    padding: 48px 20px;
}

.hrt-screen--intro h2 {
    margin: 0 0 24px;
    font-size: 48px;
    line-height: 1.08;
    font-weight: 650;
    letter-spacing: -0.02em;
    color: #0F172A;
}

.hrt-screen--intro p {
    color: #64748B;
}

.hrt-screen--intro .hrt-button {
    width: auto;
    min-width: 240px;
    padding-left: 28px;
    padding-right: 28px;
}


/* =========================================================
   SCREEN 2 — HOUSEHOLD INPUTS
   ========================================================= */

.hrt-screen--inputs {
    padding: 48px 20px 64px;
}

.hrt-screen--inputs h2 {
    margin: 0 0 8px;
    font-size: 32px;
    line-height: 1.15;
    font-weight: 650;
    letter-spacing: -0.02em;
    color: #0F172A;
}

.hrt-screen--inputs > p:first-of-type {
    margin: 0 0 40px;
    font-size: 16px;
    line-height: 1.5;
    color: #64748B;
}


/* =========================================================
   SCREEN 3 — RESULTS
   ========================================================= */

.hrt-screen--results {
    padding: 48px 20px 64px;
}


/* Status */

#hrt-result-status {
    margin: 0 0 24px;
    font-size: 14px;
    line-height: 1.4;
    font-weight: 600;
    color: #2F855A;
}


/* Main result headline */

#hrt-result-headline {
    margin: 0 0 28px;
    font-size: 32px;
    line-height: 1.18;
    font-weight: 650;
    letter-spacing: -0.02em;
    color: #0F172A;
}


/* Primary result */

#hrt-result-primary {
    margin-bottom: 36px;
    padding: 28px;
    border: 1px solid #E5E7EB;
    border-radius: 16px;
    background: #F8FAFC;
}

#hrt-result-primary-label {
    margin: 0 0 8px;
    font-size: 14px;
    line-height: 1.4;
    font-weight: 600;
    color: #64748B;
}

#hrt-result-primary-value {
    margin: 0;
    font-size: 44px;
    line-height: 1.05;
    font-weight: 700;
    letter-spacing: -0.03em;
    color: #0F172A;
}

#hrt-result-primary-detail {
    margin: 10px 0 0;
    font-size: 14px;
    line-height: 1.5;
    color: #64748B;
}


/* Lower result sections */

.hrt-screen--results h3 {
    margin: 0 0 10px;
    font-size: 20px;
    line-height: 1.3;
    font-weight: 650;
    color: #0F172A;
}

.hrt-screen--results h3 + p {
    margin: 0;
    font-size: 15px;
    line-height: 1.6;
    color: #334155;
}

.hrt-screen--results > div:not(#hrt-result-primary):not(#hrt-result-secondary) {
    margin-top: 32px;
}


/* Current buffer */

#hrt-result-buffer-label {
    margin: 0 0 6px;
    font-size: 13px;
    line-height: 1.4;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #64748B;
}

#hrt-result-buffer-value {
    margin: 0;
    font-size: 20px;
    line-height: 1.3;
    font-weight: 600;
    color: #334155;
}

#hrt-result-buffer-note {
    margin: 6px 0 0;
    font-size: 14px;
    line-height: 1.5;
    color: #64748B;
}


/* Shortfall secondary metric */

#hrt-result-secondary {
    margin-top: 8px;
    margin-bottom: 36px;
}

#hrt-result-secondary-label {
    margin: 0 0 6px;
    font-size: 14px;
    line-height: 1.4;
    font-weight: 600;
    color: #64748B;
}

#hrt-result-secondary-value {
    margin: 0;
    font-size: 26px;
    line-height: 1.2;
    font-weight: 650;
    letter-spacing: -0.02em;
    color: #0F172A;
}


/* Results CTA */

#hrt-what-if-button {
    width: 100%;
    min-height: 56px;
    margin-top: 36px;
    padding: 0 20px;
    border: none !important;
    border-radius: 10px;
    background: #0F172A !important;
    color: #FFFFFF !important;
    font-family: inherit;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 160ms ease, transform 160ms ease;
}

#hrt-what-if-button:hover,
#hrt-what-if-button:focus {
    background: #1E293B !important;
    color: #FFFFFF !important;
}

#hrt-what-if-button:active {
    transform: translateY(1px);
}


/* =========================================================
   SCREEN 4 — WHAT-IF SCENARIOS
   ========================================================= */

#hrt-screen-what-if {
    padding: 48px 20px 64px;
}


/* Screen heading */

#hrt-screen-what-if > h2 {
    margin: 0 0 8px;
    font-size: 32px;
    line-height: 1.15;
    font-weight: 650;
    letter-spacing: -0.02em;
    color: #0F172A;
}

#hrt-screen-what-if > h2 + p {
    margin: 0 0 36px;
    font-size: 16px;
    line-height: 1.5;
    color: #64748B;
}


/* Original result
   First direct DIV after the introduction */

#hrt-screen-what-if > div:first-of-type {
    margin-bottom: 40px;
    padding: 24px;
    border: 1px solid #E5E7EB;
    border-radius: 14px;
    background: #F8FAFC;
}

#hrt-screen-what-if > div:first-of-type > p:first-child {
    margin: 0 0 14px;
    font-size: 13px;
    line-height: 1.4;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #64748B;
}

#hrt-what-if-original-status {
    margin: 0 0 12px;
    font-size: 14px;
    line-height: 1.4;
    font-weight: 600;
}

#hrt-what-if-original-summary {
    margin: 0;
    font-size: 18px;
    line-height: 1.45;
    font-weight: 600;
    color: #334155;
}


/* Editable What-If fields
   These already inherit the shared money-input design */

#hrt-screen-what-if > div:nth-of-type(2),
#hrt-screen-what-if > div:nth-of-type(3),
#hrt-screen-what-if > div:nth-of-type(4) {
    margin-bottom: 36px;
}

#hrt-screen-what-if > div:nth-of-type(2) label,
#hrt-screen-what-if > div:nth-of-type(3) label,
#hrt-screen-what-if > div:nth-of-type(4) label {
    display: block;
    margin-bottom: 10px;
    font-size: 16px;
    line-height: 1.4;
    font-weight: 600;
    color: #0F172A;
}

#hrt-screen-what-if > div:nth-of-type(2) .hrt-money-input,
#hrt-screen-what-if > div:nth-of-type(3) .hrt-money-input,
#hrt-screen-what-if > div:nth-of-type(4) .hrt-money-input {
    margin-bottom: 8px;
}

#hrt-screen-what-if > div:nth-of-type(2) > p,
#hrt-screen-what-if > div:nth-of-type(3) > p,
#hrt-screen-what-if > div:nth-of-type(4) > p {
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
    color: #64748B;
}


/* Updated result
   Fifth direct DIV */

#hrt-screen-what-if > div:nth-of-type(5) {
    margin-top: 48px;
    margin-bottom: 32px;
    padding: 28px;
    border: 1px solid #E5E7EB;
    border-radius: 16px;
    background: #F8FAFC;
}

#hrt-screen-what-if > div:nth-of-type(5) h3 {
    margin: 0 0 20px;
    font-size: 22px;
    line-height: 1.3;
    font-weight: 650;
    color: #0F172A;
}

#hrt-what-if-status {
    margin: 0 0 20px;
    font-size: 14px;
    line-height: 1.4;
    font-weight: 600;
}

#hrt-what-if-primary {
    margin: 0 0 8px;
    font-size: 30px;
    line-height: 1.15;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #0F172A;
}

#hrt-what-if-secondary {
    margin: 0 0 20px;
    font-size: 20px;
    line-height: 1.3;
    font-weight: 600;
    color: #334155;
}

#hrt-what-if-explanation {
    margin: 0;
    font-size: 15px;
    line-height: 1.6;
    color: #334155;
}


/* Comparison with original
   Sixth direct DIV */

#hrt-screen-what-if > div:nth-of-type(6) {
    margin-bottom: 32px;
    padding-top: 4px;
}

#hrt-screen-what-if > div:nth-of-type(6) h3 {
    margin: 0 0 12px;
    font-size: 20px;
    line-height: 1.3;
    font-weight: 650;
    color: #0F172A;
}

#hrt-what-if-comparison-position,
#hrt-what-if-comparison-status {
    margin: 6px 0 0;
    font-size: 15px;
    line-height: 1.55;
    color: #334155;
}


/* Reset — intentionally secondary */

#hrt-what-if-reset-button {
    width: 100%;
    min-height: 52px;
    padding: 0 20px;
    border: 1px solid #CBD5E1 !important;
    border-radius: 10px;
    background: #FFFFFF !important;
    color: #334155 !important;
    font-family: inherit;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 160ms ease, border-color 160ms ease;
}

#hrt-what-if-reset-button:hover,
#hrt-what-if-reset-button:focus {
    border-color: #94A3B8 !important;
    background: #F8FAFC !important;
    color: #0F172A !important;
}


/* Guidance before next step */

#hrt-screen-what-if > p:last-of-type {
    margin: 28px 0 12px;
    font-size: 14px;
    line-height: 1.5;
    color: #64748B;
}


/* Main Screen 4 CTA */

#hrt-next-step-button {
    width: 100%;
    min-height: 56px;
    padding: 0 20px;
    border: none !important;
    border-radius: 10px;
    background: #0F172A !important;
    color: #FFFFFF !important;
    font-family: inherit;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 160ms ease, transform 160ms ease;
}

#hrt-next-step-button:hover,
#hrt-next-step-button:focus {
    background: #1E293B !important;
    color: #FFFFFF !important;
}

#hrt-next-step-button:active {
    transform: translateY(1px);
}

/* =========================================================
   SCREEN 5 — NEXT STEPS
   ========================================================= */

#hrt-next-step-screen {
    padding: 48px 20px 64px;
}


/* Screen heading */

#hrt-next-step-screen > h2 {
    margin: 0 0 8px;
    font-size: 32px;
    line-height: 1.15;
    font-weight: 650;
    letter-spacing: -0.02em;
    color: #0F172A;
}

#hrt-next-step-screen > h2 + p {
    margin: 0 0 24px;
    font-size: 16px;
    line-height: 1.5;
    color: #64748B;
}


/* Current scenario summary */

.hrt-next-step-summary {
    margin: 0 0 32px;
}

.hrt-next-step-summary #hrt-next-step-status {
    margin: 0 0 8px;
}

.hrt-next-step-summary #hrt-next-step-primary {
    margin: 0;
}


/* Current scenario status */

#hrt-next-step-status {
    margin: 0;
    font-size: 14px;
    line-height: 1.4;
    font-weight: 600;
}

#hrt-next-step-primary {
    margin: 0;
    font-size: 18px;
    line-height: 1.45;
    font-weight: 600;
    color: #334155;
}


/* Priority card */

#hrt-next-step-screen > .hrt-next-step-summary + div {
    margin-bottom: 28px;
    padding: 28px;
    border: 1px solid #E5E7EB;
    border-radius: 16px;
    background: #F8FAFC;
}

#hrt-next-step-screen > .hrt-next-step-summary + div h3 {
    margin: 0 0 12px;
    font-size: 14px;
    line-height: 1.4;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #64748B;
}

#hrt-next-step-priority {
    margin: 0 0 12px;
    font-size: 24px;
    line-height: 1.25;
    font-weight: 650;
    letter-spacing: -0.02em;
    color: #0F172A;
}

#hrt-next-step-explanation {
    margin: 0;
    font-size: 15px;
    line-height: 1.6;
    color: #334155;
}


/* Good next step */

#hrt-next-step-screen > div:nth-of-type(3) {
    margin-bottom: 32px;
}

#hrt-next-step-screen > div:nth-of-type(3) h3 {
    margin: 0 0 10px;
    font-size: 20px;
    line-height: 1.3;
    font-weight: 650;
    color: #0F172A;
}

#hrt-next-step-action {
    margin: 0;
    font-size: 15px;
    line-height: 1.6;
    color: #334155;
}

#hrt-next-step-supporting-metric {
    margin: 16px 0 0;
    font-size: 15px;
    line-height: 1.5;
    font-weight: 600;
    color: #334155;
}


/* Navigation actions */

#hrt-next-step-back-button,
#hrt-restart-test-button {
    width: 100%;
    min-height: 54px;
    padding: 0 20px;
    border-radius: 10px;
    font-family: inherit;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
}


/* Back = secondary */

#hrt-next-step-back-button {
    margin-bottom: 12px;
    border: 1px solid #CBD5E1 !important;
    background: #FFFFFF !important;
    color: #334155 !important;
    transition: background-color 160ms ease, border-color 160ms ease;
}

#hrt-next-step-back-button:hover,
#hrt-next-step-back-button:focus {
    border-color: #94A3B8 !important;
    background: #F8FAFC !important;
    color: #0F172A !important;
}


/* Restart = primary */

#hrt-restart-test-button {
    border: none !important;
    background: #0F172A !important;
    color: #FFFFFF !important;
    transition: background-color 160ms ease, transform 160ms ease;
}

#hrt-restart-test-button:hover,
#hrt-restart-test-button:focus {
    background: #1E293B !important;
    color: #FFFFFF !important;
}

#hrt-restart-test-button:active {
    transform: translateY(1px);
}

/* =========================================================
   MOBILE REFINEMENTS
   ========================================================= */

@media (max-width: 600px) {

    /* Compact the Kadence calculator page-title area */
    body.page-id-14 .entry-hero.page-hero-section .entry-header {
        min-height: 120px !important;
    }

    body.page-id-14 .entry-title {
        margin: 0 !important;
        font-size: 30px !important;
        line-height: 1.15 !important;
        letter-spacing: -0.02em;
    }


/* Calculator mobile spacing */

.hrt-screen--intro,
.hrt-screen--inputs,
.hrt-screen--results,
#hrt-screen-what-if,
#hrt-next-step-screen {
    padding-left: 16px;
    padding-right: 16px;
}


/* Keep intro spacious, but a little tighter than desktop */

.hrt-screen--intro {
    padding-top: 40px;
    padding-bottom: 48px;
}
}

/* Extra refinement for very narrow phones */
@media (max-width: 360px) {

    #hrt-what-if-primary {
        font-size: 28px;
        line-height: 1.15;
    }

}