/* RSA Property Calculators */
body.rsa-calculators-active .page-wrap {
    background: #F7F8FA;
    padding: 0 0 56px;
}

body.rsa-calculators-active .page-title-wrap {
    display: none;
}

body.rsa-calculators-active .page-wrap > .container {
    max-width: 1240px;
    padding-top: 34px;
}

body.rsa-calculators-active .article-wrap,
body.rsa-calculators-active .article-wrap .entry-content-wrap,
body.rsa-calculators-active .article-wrap .entry-content {
    background: transparent;
    border: 0;
    box-shadow: none;
    padding: 0;
    margin: 0;
}

.rsa-calculators-shell {
    --rsa-bg: #FFFFFF;
    --rsa-soft: #F7F8FA;
    --rsa-ink: #1D2736;
    --rsa-navy: #13233F;
    --rsa-navy-2: #1C2F50;
    --rsa-cobalt: #304ACB;
    --rsa-red: #E30613;
    --rsa-red-hover: #C9000D;
    --rsa-muted: #6F7884;
    --rsa-border: #E4E7EB;
    --rsa-border-dark: #D6DBE1;
    --rsa-radius-sm: 5px;
    --rsa-radius-md: 7px;
    --rsa-radius-lg: 14px;
    color: var(--rsa-ink);
    font-family: Inter, Arial, sans-serif;
    font-size: 15px;
    line-height: 1.55;
}

.rsa-calculators-shell *,
.rsa-calculators-shell *::before,
.rsa-calculators-shell *::after {
    box-sizing: border-box;
}

.rsa-calculators-shell :where(h1, h2, h3, p, small, strong, span, a, button, label, table) {
    font-family: Inter, Arial, sans-serif;
}

.rsa-calculators-shell h1,
.rsa-calculators-shell h2,
.rsa-calculators-shell h3,
.rsa-calculators-shell p {
    margin-top: 0;
}

.rsa-calculators-shell h1,
.rsa-calculators-shell h2,
.rsa-calculators-shell h3 {
    color: var(--rsa-navy);
    font-weight: 800;
    letter-spacing: -0.025em;
}

.rsa-kicker {
    display: inline-block;
    margin-bottom: 10px;
    color: var(--rsa-red);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.08em;
    line-height: 1.2;
    text-transform: uppercase;
}

/* Hub */
.rsa-hub-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 310px;
    gap: 28px;
    align-items: stretch;
    margin-bottom: 34px;
    padding: 38px;
    border-radius: var(--rsa-radius-lg);
    background: var(--rsa-navy);
    box-shadow: 0 12px 30px rgba(19, 35, 63, 0.08);
}

.rsa-hub-hero__copy {
    align-self: center;
    max-width: 760px;
}

.rsa-hub-hero__copy h1 {
    max-width: 760px;
    margin-bottom: 14px;
    color: #FFFFFF;
    font-size: clamp(32px, 4vw, 50px);
    line-height: 1.07;
}

.rsa-hub-hero__copy p {
    max-width: 680px;
    margin-bottom: 0;
    color: #E4E7EB;
    font-size: 17px;
    line-height: 1.65;
}

.rsa-hub-hero__summary {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-height: 190px;
    padding: 24px;
    border: 1px solid #D6DBE1;
    border-radius: var(--rsa-radius-md);
    background: var(--rsa-navy-2);
    color: #FFFFFF;
}

.rsa-hub-hero__summary strong {
    margin-bottom: 5px;
    color: #FFFFFF;
    font-size: 28px;
    line-height: 1.15;
}

.rsa-hub-hero__summary span {
    color: #FFFFFF;
    font-size: 14px;
    font-weight: 700;
}

.rsa-hub-hero__summary small {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #6F7884;
    color: #E4E7EB;
    font-size: 12px;
}

.rsa-hub-section {
    margin-top: 30px;
}

.rsa-section-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 16px;
}

.rsa-section-heading h2 {
    margin-bottom: 0;
    font-size: 24px;
    line-height: 1.15;
}

.rsa-section-heading p {
    max-width: 520px;
    margin-bottom: 0;
    color: var(--rsa-muted);
    text-align: right;
}

.rsa-calculator-card-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.rsa-tool-card {
    position: relative;
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr);
    grid-template-rows: 1fr auto;
    gap: 18px 18px;
    min-height: 220px;
    padding: 24px;
    overflow: hidden;
    border: 1px solid var(--rsa-border);
    border-radius: var(--rsa-radius-lg);
    background: var(--rsa-bg);
    color: var(--rsa-ink);
    box-shadow: 0 8px 22px rgba(19, 35, 63, 0.04);
    text-decoration: none !important;
    transition: transform 140ms ease, border-color 140ms ease, box-shadow 140ms ease;
}

.rsa-tool-card:hover,
.rsa-tool-card:focus-visible {
    color: var(--rsa-ink);
    border-color: var(--rsa-border-dark);
    box-shadow: 0 12px 28px rgba(19, 35, 63, 0.07);
    text-decoration: none;
    transform: translateY(-1px);
}

.rsa-tool-card:focus-visible {
    outline: 3px solid var(--rsa-cobalt);
    outline-offset: 3px;
}

.rsa-tool-card--amortisation {
    grid-column: 1 / -1;
    min-height: 180px;
}

.rsa-tool-card__icon {
    display: inline-grid;
    width: 52px;
    height: 52px;
    place-items: center;
    border-radius: var(--rsa-radius-md);
    background: var(--rsa-soft);
    color: var(--rsa-navy);
}

.rsa-tool-card__icon svg {
    width: 28px;
    height: 28px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.7;
}

.rsa-tool-card__body {
    display: flex;
    flex-direction: column;
}

.rsa-tool-card__body small {
    margin-bottom: 7px;
    color: var(--rsa-red);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.055em;
    text-transform: uppercase;
}

.rsa-tool-card__body strong {
    margin-bottom: 8px;
    color: var(--rsa-navy);
    font-size: 21px;
    font-weight: 800;
    line-height: 1.2;
}

.rsa-tool-card__body > span {
    max-width: 580px;
    color: var(--rsa-muted);
    font-size: 14px;
    line-height: 1.6;
}

.rsa-tool-card__action {
    grid-column: 2;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    align-self: end;
    color: var(--rsa-cobalt);
    font-size: 13px;
    font-weight: 800;
}

.rsa-tool-card__action svg,
.rsa-back-link svg {
    width: 17px;
    height: 17px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2;
}

.rsa-calculator-source-note {
    display: grid;
    grid-template-columns: 190px minmax(0, 1fr);
    gap: 16px;
    margin-top: 24px;
    padding: 16px 18px;
    border: 1px solid var(--rsa-border);
    border-radius: var(--rsa-radius-md);
    background: #FFFFFF;
}

.rsa-calculator-source-note strong {
    color: var(--rsa-navy);
    font-size: 13px;
}

.rsa-calculator-source-note span {
    color: var(--rsa-muted);
    font-size: 12px;
}

/* Calculator pages */
.rsa-back-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin: 2px 0 18px;
    color: var(--rsa-cobalt) !important;
    font-size: 13px;
    font-weight: 800;
    text-decoration: none !important;
}

.rsa-back-link:hover {
    color: var(--rsa-navy) !important;
}

.rsa-calculator-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 28px;
    margin-bottom: 22px;
}

.rsa-calculator-header > div:first-child {
    max-width: 780px;
}

.rsa-calculator-header h1 {
    margin-bottom: 10px;
    font-size: clamp(32px, 4vw, 46px);
    line-height: 1.06;
}

.rsa-calculator-header p {
    max-width: 720px;
    margin-bottom: 0;
    color: var(--rsa-muted);
    font-size: 16px;
    line-height: 1.65;
}

.rsa-rate-badge {
    flex: 0 0 auto;
    min-width: 170px;
    padding: 12px 14px;
    border: 1px solid var(--rsa-border);
    border-radius: var(--rsa-radius-md);
    background: #FFFFFF;
    text-align: right;
}

.rsa-rate-badge span,
.rsa-rate-badge strong {
    display: block;
}

.rsa-rate-badge span {
    margin-bottom: 3px;
    color: var(--rsa-muted);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.rsa-rate-badge strong {
    color: var(--rsa-navy);
    font-size: 13px;
}

.rsa-calculator {
    display: grid;
    grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
    overflow: hidden;
    border: 1px solid var(--rsa-border-dark);
    border-radius: var(--rsa-radius-lg);
    background: #FFFFFF;
    box-shadow: 0 12px 30px rgba(19, 35, 63, 0.05);
}

.rsa-calculator__inputs,
.rsa-calculator__results {
    padding: 28px;
}

.rsa-calculator__inputs {
    background: #FFFFFF;
}

.rsa-calculator__results {
    position: relative;
    background: var(--rsa-navy);
    color: #FFFFFF;
}

.rsa-calculator__results::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 4px;
    background: var(--rsa-red);
}

.rsa-panel-heading {
    margin-bottom: 22px;
}

.rsa-panel-heading h2 {
    margin-bottom: 4px;
    font-size: 20px;
    line-height: 1.2;
}

.rsa-panel-heading p {
    margin-bottom: 0;
    color: var(--rsa-muted);
    font-size: 12px;
}

.rsa-panel-heading--results h2 {
    color: #FFFFFF;
}

.rsa-panel-heading--results p {
    color: #D6DBE1;
}

.rsa-calculators-shell label.rsa-field {
    position: static !important;
    display: block !important;
    float: none !important;
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    margin: 0 0 18px !important;
    padding: 0 !important;
    overflow: visible !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    line-height: normal !important;
}

.rsa-field__label {
    display: block;
    margin-bottom: 7px;
    color: var(--rsa-navy);
    font-size: 12px;
    font-weight: 800;
}

.rsa-field small {
    display: block;
    margin-top: 6px;
    color: var(--rsa-muted);
    font-size: 11px;
}

.rsa-field input,
.rsa-field select,
.rsa-money-input,
.rsa-rate-input {
    width: 100%;
}

.rsa-field input,
.rsa-field select {
    height: 46px;
    margin: 0;
    border: 1px solid var(--rsa-border-dark);
    border-radius: var(--rsa-radius-md);
    background: #FFFFFF;
    color: var(--rsa-ink);
    font-size: 14px;
    font-weight: 700;
    outline: none;
    box-shadow: none;
}

.rsa-field select {
    padding: 0 12px;
}

.rsa-field input:focus,
.rsa-field select:focus {
    border-color: var(--rsa-cobalt);
    box-shadow: 0 0 0 3px rgba(48, 74, 203, 0.10);
}

.rsa-money-input,
.rsa-rate-input {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    height: 46px;
    overflow: hidden;
    border: 1px solid var(--rsa-border-dark);
    border-radius: var(--rsa-radius-md);
    background: #FFFFFF;
}

.rsa-rate-input {
    grid-template-columns: minmax(0, 1fr) auto;
}

.rsa-money-input:focus-within,
.rsa-rate-input:focus-within {
    border-color: var(--rsa-cobalt);
    box-shadow: 0 0 0 3px rgba(48, 74, 203, 0.10);
}

.rsa-money-input > span,
.rsa-rate-input > span {
    display: inline-grid;
    min-width: 44px;
    height: 100%;
    place-items: center;
    background: var(--rsa-soft);
    color: var(--rsa-navy);
    font-size: 13px;
    font-weight: 800;
}

.rsa-money-input input,
.rsa-rate-input input {
    height: 44px;
    padding: 0 13px;
    border: 0 !important;
    border-radius: 0;
    background: transparent;
    box-shadow: none !important;
}

.rsa-check-field {
    display: flex;
    gap: 11px;
    align-items: flex-start;
    margin-top: 6px;
    padding: 14px;
    border: 1px solid var(--rsa-border);
    border-radius: var(--rsa-radius-md);
    background: var(--rsa-soft);
    cursor: pointer;
}

.rsa-check-field input {
    width: 18px;
    height: 18px;
    margin: 2px 0 0;
    accent-color: var(--rsa-red);
}

.rsa-check-field span,
.rsa-check-field strong,
.rsa-check-field small {
    display: block;
}

.rsa-check-field strong {
    margin-bottom: 3px;
    color: var(--rsa-navy);
    font-size: 12px;
}

.rsa-check-field small {
    color: var(--rsa-muted);
    font-size: 11px;
    line-height: 1.45;
}

.rsa-primary-result {
    margin: 2px 0 22px;
    padding: 21px 0 19px;
    border-top: 1px solid #1C2F50;
    border-bottom: 1px solid #1C2F50;
}

.rsa-primary-result span,
.rsa-primary-result strong,
.rsa-primary-result small {
    display: block;
}

.rsa-primary-result span {
    margin-bottom: 7px;
    color: #D6DBE1;
    font-size: 12px;
    font-weight: 700;
}

.rsa-primary-result strong {
    color: #FFFFFF;
    font-size: clamp(32px, 4vw, 44px);
    font-weight: 800;
    letter-spacing: -0.035em;
    line-height: 1.05;
}

.rsa-primary-result small {
    margin-top: 5px;
    color: #D6DBE1;
    font-size: 11px;
}

.rsa-result-list {
    margin-top: 4px;
}

.rsa-result-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 12px 0;
    border-bottom: 1px solid #1C2F50;
}

.rsa-result-row span {
    color: #D6DBE1;
    font-size: 12px;
}

.rsa-result-row strong {
    color: #FFFFFF;
    font-size: 14px;
    font-weight: 800;
    text-align: right;
}

.rsa-result-disclaimer {
    margin: 16px 0 0;
    padding: 13px 14px;
    border: 1px solid #1C2F50;
    border-radius: var(--rsa-radius-md);
    background: var(--rsa-navy-2);
    color: #E4E7EB;
    font-size: 11px;
    line-height: 1.55;
}

/* Amortisation schedule */
.rsa-amortisation-schedule {
    margin-top: 22px;
    overflow: hidden;
    border: 1px solid var(--rsa-border);
    border-radius: var(--rsa-radius-lg);
    background: #FFFFFF;
}

.rsa-schedule-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 22px 24px;
    border-bottom: 1px solid var(--rsa-border);
}

.rsa-schedule-heading h2 {
    margin-bottom: 4px;
    font-size: 20px;
}

.rsa-schedule-heading p {
    margin-bottom: 0;
    color: var(--rsa-muted);
    font-size: 12px;
}

.rsa-secondary-button {
    min-height: 40px;
    padding: 0 15px;
    border: 1px solid var(--rsa-border-dark);
    border-radius: var(--rsa-radius-md);
    background: #FFFFFF;
    color: var(--rsa-navy);
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
}

.rsa-secondary-button:hover,
.rsa-secondary-button:focus-visible {
    border-color: var(--rsa-cobalt);
    color: var(--rsa-cobalt);
}

.rsa-table-wrap {
    width: 100%;
    overflow-x: auto;
}

.rsa-table-wrap table {
    width: 100%;
    margin: 0;
    border-collapse: collapse;
    background: #FFFFFF;
}

.rsa-table-wrap th,
.rsa-table-wrap td {
    padding: 11px 16px;
    border: 0;
    border-bottom: 1px solid var(--rsa-border);
    color: var(--rsa-ink);
    font-size: 12px;
    text-align: right;
    white-space: nowrap;
}

.rsa-table-wrap th {
    background: var(--rsa-soft);
    color: var(--rsa-navy);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.rsa-table-wrap th:first-child,
.rsa-table-wrap td:first-child {
    text-align: left;
}

.rsa-table-wrap tr.rsa-extra-row {
    display: none;
}

.rsa-amortisation-schedule.is-expanded tr.rsa-extra-row {
    display: table-row;
}

.rsa-calculator-source-note--page {
    margin-top: 18px;
}

@media (max-width: 991px) {
    body.rsa-calculators-active .page-wrap > .container {
        padding-top: 24px;
    }

    .rsa-hub-hero {
        grid-template-columns: 1fr;
        padding: 30px;
    }

    .rsa-hub-hero__summary {
        min-height: auto;
    }

    .rsa-calculator {
        grid-template-columns: 1fr;
    }

    .rsa-calculator__results::before {
        inset: 0 0 auto 0;
        width: auto;
        height: 4px;
    }
}

@media (max-width: 767px) {
    body.rsa-calculators-active .page-wrap {
        padding-bottom: 34px;
    }

    body.rsa-calculators-active .page-wrap > .container {
        padding-left: 15px;
        padding-right: 15px;
    }

    .rsa-hub-hero {
        gap: 20px;
        margin-bottom: 26px;
        padding: 24px 20px;
    }

    .rsa-hub-hero__copy h1 {
        font-size: 34px;
    }

    .rsa-hub-hero__copy p {
        font-size: 15px;
    }

    .rsa-section-heading,
    .rsa-calculator-header,
    .rsa-schedule-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .rsa-section-heading p {
        text-align: left;
    }

    .rsa-calculator-card-grid {
        grid-template-columns: 1fr;
    }

    .rsa-tool-card--amortisation {
        grid-column: auto;
    }

    .rsa-tool-card {
        min-height: 0;
        padding: 20px;
    }

    .rsa-rate-badge {
        min-width: 0;
        text-align: left;
    }

    .rsa-calculator-header h1 {
        font-size: 34px;
    }

    .rsa-calculator__inputs,
    .rsa-calculator__results {
        padding: 22px 20px;
    }

    .rsa-primary-result strong {
        font-size: 34px;
    }

    .rsa-calculator-source-note {
        grid-template-columns: 1fr;
        gap: 5px;
    }

    .rsa-secondary-button {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .rsa-tool-card {
        grid-template-columns: 44px minmax(0, 1fr);
        gap: 14px;
    }

    .rsa-tool-card__icon {
        width: 44px;
        height: 44px;
    }

    .rsa-tool-card__icon svg {
        width: 24px;
        height: 24px;
    }

    .rsa-tool-card__action {
        grid-column: 1 / -1;
    }

    .rsa-result-row {
        align-items: flex-start;
        flex-direction: column;
        gap: 4px;
    }

    .rsa-result-row strong {
        text-align: left;
    }
}

@media (prefers-reduced-motion: reduce) {
    .rsa-tool-card {
        transition: none;
    }

    .rsa-tool-card:hover,
    .rsa-tool-card:focus-visible {
        transform: none;
    }
}

/* 2026-08-21 approved RSA Property typography/layout normalization */
.rsa-calculators-shell{font-family:Inter,Arial,sans-serif;font-size:16px;line-height:1.55}
.rsa-calculators-shell :where(h1,h2,h3,p,small,strong,span,a,button,label,table,input,select){font-family:Inter,Arial,sans-serif}
.rsa-kicker{font-size:13px}
.rsa-hub-hero__summary small,.rsa-calculator-source-note span,.rsa-panel-heading p,.rsa-field small,.rsa-check-field small,.rsa-primary-result small,.rsa-schedule-heading p{font-size:13px;line-height:1.45}
.rsa-tool-card__body small,.rsa-rate-badge span{font-size:13px}
.rsa-field__label,.rsa-check-field strong,.rsa-primary-result span,.rsa-result-row span{font-size:14px}
.rsa-result-disclaimer{font-size:13px;line-height:1.55}
.rsa-secondary-button{min-height:44px;font-size:14px;padding:0 16px}
.rsa-table-wrap th{font-size:13px}.rsa-table-wrap td{font-size:14px}
.rsa-calculators-shell input,.rsa-calculators-shell select{min-height:48px;font-size:15px}
.rsa-tool-card{padding:24px}.rsa-tool-card__body strong{font-size:20px;line-height:1.25}.rsa-tool-card__body>span{font-size:15px;line-height:1.5}
.rsa-calculator__inputs,.rsa-calculator__results{padding:28px}.rsa-panel-heading h2{font-size:24px}
@media(max-width:767px){.rsa-calculators-shell{font-size:16px}.rsa-tool-card{padding:20px}.rsa-calculator__inputs,.rsa-calculator__results{padding:22px 20px}.rsa-calculator-header h1{font-size:32px}.rsa-table-wrap th{font-size:12px}.rsa-table-wrap td{font-size:13px}}
