.rb-finder-hero,
.rb-find {
    --rb-green: #106049;
    --rb-ink: #162f32;
    color: var(--rb-ink);
    font-family: inherit;
}
.rb-finder-hero {
    padding: clamp(1.25rem, 3vw, 2.5rem) 1rem;
    text-align: center;
    background: #f4f8f6;
    border-block: 1px solid #dfebe5;
}
.rb-finder-hero h1,
.rb-find h1 {
    font-size: clamp(1.65rem, 3.5vw, 2.25rem);
    line-height: 1.15;
    letter-spacing: -0.025em;
    margin: 0 0 0.6rem;
    color: var(--rb-ink);
}
.rb-finder-hero p {
    margin: 0 auto 1rem;
    max-width: 65ch;
}
.rb-act,
.rb-select,
.rb-more {
    font: inherit;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    border: 1px solid var(--rb-green);
    border-radius: 0.45rem;
    text-decoration: none;
    font-weight: 650;
    line-height: 1.25;
    padding: 0.65rem 1.05rem;
}
.rb-act,
.rb-select {
    background: var(--rb-green);
    color: #fff;
}
.rb-act:hover,
.rb-select:hover {
    background: #084938;
    color: white;
}
.rb-more {
    color: var(--rb-green);
    background: white;
    margin: 1rem auto;
}
.rb-find :focus-visible,
.rb-finder-hero :focus-visible {
    outline: 3px solid #286eaf;
    outline-offset: 3px;
}
.rb-find {
    width: min(100% - 2rem, 42rem);
    margin: clamp(1.5rem, 5vw, 4rem) auto;
    line-height: 1.5;
}
.rb-step,
.rb-find small,
.rb-empty {
    color: #4e6261;
}
.rb-step {
    font-weight: 650;
    margin-bottom: 0.5rem;
}
.rb-find form {
    margin-top: 1.5rem;
}
.rb-find fieldset {
    border: 0;
    padding: 0;
    margin: 0 0 1.2rem;
}
.rb-find label,
.rb-find legend {
    display: block;
    font-size: 0.94rem;
    font-weight: 650;
    margin: 0.45rem 0 0.3rem;
}
.rb-find input:not([type='radio']):not([type='hidden']),
.rb-find select {
    width: 100%;
    min-height: 45px;
    font: inherit;
    padding: 0.55rem 0.7rem;
    border: 1px solid #82958f;
    color: var(--rb-ink);
    border-radius: 0.45rem;
    background: white;
}
.rb-find button.rb-act {
    margin-top: 1rem;
}
.rb-choice,
.rb-fields {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.7rem 1rem;
}
.rb-find .rb-choice label {
    padding: 0.6rem 0.7rem;
    border: 1px solid #a2b5ad;
    border-radius: 0.45rem;
    font-weight: 550;
    cursor: pointer;
    margin: 0;
}
.rb-choice input {
    accent-color: var(--rb-green);
}
.rb-choice label:has(:checked) {
    background: #eaf5ef;
    border-color: var(--rb-green);
}
.rb-actions {
    display: flex;
    gap: 1rem;
    align-items: baseline;
    flex-wrap: wrap;
}
.rb-error {
    background: #fff0ed;
    color: #822f1c;
    padding: 0.75rem 1rem;
    border-radius: 0.45rem;
}
.rb-error ul {
    margin: 0;
}
.rb-results {
    width: min(100% - 2rem, 64rem);
}
.rb-grid-head,
.rb-term {
    display: grid;
    grid-template-columns: minmax(6rem, 0.52fr) repeat(2, minmax(0, 1fr));
    gap: 1rem;
}
.rb-grid-head {
    background: #edf4f1;
    padding: 0.65rem 1rem;
    font-weight: 700;
}
.rb-term {
    border-bottom: 1px solid #cddbd5;
    padding: 1rem;
}
.rb-term h2,
.rb-note h2 {
    font-size: 1.1rem;
    line-height: 1.45;
}
.rb-offer {
    display: grid;
    gap: 0.22rem;
    justify-items: start;
    padding: 0 0 0.75rem;
}
.rb-offer + .rb-offer {
    border-top: 1px solid #dde7e2;
    padding-top: 0.7rem;
}
.rb-rate {
    font-size: 1.5rem;
    font-weight: 750;
}
.rb-group {
    position: absolute;
    clip-path: inset(50%);
    width: 1px;
    height: 1px;
    overflow: hidden;
}
.rb-select {
    margin-top: 0.25rem;
    font-size: 0.9rem;
}
.rb-logo {
    max-width: 55px;
    max-height: 20px;
    margin-right: 0.35rem;
    object-fit: contain;
}
.rb-note {
    padding: 1rem 0;
    margin: 1rem 0 0;
}
.rb-note summary {
    font-weight: 650;
    cursor: pointer;
}
@media (max-width: 620px) {
    .rb-grid-head {
        display: none;
    }
    .rb-term {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        padding: 0.8rem 0;
        gap: 0.65rem;
    }
    .rb-term h2 {
        grid-column: 1/-1;
        margin: 0;
    }
    .rb-group {
        position: static;
        clip-path: none;
        width: auto;
        height: auto;
        font-size: 0.85rem;
        color: #475f57;
    }
    .rb-offer {
        font-size: 0.9rem;
    }
    .rb-fields {
        grid-template-columns: 1fr;
    }
    .rb-cell {
        overflow-wrap: anywhere;
    }
    .rb-rate {
        font-size: 1.35rem;
    }
}

/* The comparison screens share the site's typography and primary action. */
.rf-shell, .rf-results {
    --rf-border: #d7e3dd;
    --rf-muted: #45605a;
    width: min(calc(100% - 2rem), 44rem);
    color: #17342d;
    font-variant-numeric: tabular-nums;
}
.rf-results { width: min(calc(100% - 2rem), 68rem); }
.rf-panel, .rf-filter-panel {
    border: 1px solid var(--rf-border);
    border-radius: 1rem;
    background: #fff;
    padding: clamp(1rem, 3vw, 2rem);
    box-shadow: 0 4px 18px rgba(23, 60, 45, .055);
}
.rf-shell h1, .rf-results h1 { letter-spacing: -.035em; line-height: 1.12; }
.rf-progress { margin: 0 0 1.4rem; }
.rf-step-label { font-size: .82rem; font-weight: 700; color: var(--rf-muted); }
.rf-progress ol { display: flex; gap: .45rem; list-style: none; padding: 0; margin: .45rem 0 0; }
.rf-progress li { flex: 1; min-width: 0; padding-top: .32rem; border-top: 4px solid #dbe3df; color: var(--rf-muted); font-size: .78rem; }
.rf-progress .rf-reached { border-color: #207459; }
.rf-progress [aria-current] { color: #134d3b; font-weight: 750; }
.rf-context { font-size: .9rem; font-weight: 650; color: var(--rf-muted); margin: 0 0 .45rem; }
.rf-field { margin: 0 0 1.05rem; min-width: 0; }
.rf-field fieldset, .rf-types { margin: 0; padding: 0; border: 0; min-width: 0; }
.rb-find .rf-field label, .rb-find .rf-field legend, .rb-find .rf-filter-panel legend, .rf-filter-panel > form > div > label {
    font-size: .95rem; line-height: 1.3; margin: 0 0 .45rem; font-weight: 650;
}
.rf-field legend, .rf-types legend { float: none; width: auto; }
.rf-choices, .rf-pills, .rf-deposit-presets { display: flex; flex-wrap: wrap; gap: .45rem; }
.rf-goals { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); }
.rb-find .rf-pick, .rb-find .rf-pills label { position: relative; cursor: pointer; margin: 0; }
.rf-pick input, .rf-pills input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.rf-pick span, .rf-pills label span {
    display: flex; align-items: center; gap: .55rem; height: 100%; min-height: 43px;
    padding: .55rem .85rem; border: 1px solid #9fb3a9; border-radius: .65rem; background: white;
}
.rf-goals span { min-height: 58px; }
.rf-goals i { color: #18604a; font-size: 1.2rem; }
.rf-pick:hover span, .rf-pills label:hover span { background: #f2f8f5; }
.rf-pick input:checked + span, .rf-pills input:checked + span {
    border-color: #13664c; box-shadow: inset 0 0 0 1px #13664c; background: #eaf6ef; color: #104c37;
}
.rf-pick input:checked + span::after { content: '✓'; margin-left: auto; font-weight: 800; }
.rf-pick input:focus-visible + span, .rf-pills input:focus-visible + span { outline: 3px solid #245fb4; outline-offset: 2px; }
.rf-input { position: relative; }
.rf-input > span { position: absolute; left: .8rem; top: 50%; transform: translateY(-50%); color: var(--rf-muted); }
.rf-field .rf-with-unit input:not([type='radio']) { padding-left: 1.85rem; }
.rf-field .rf-input input, .rb-find .rf-field select, .rb-find .rf-filter-panel select { min-height: 46px; font-size: 1rem; border-radius: .55rem; }
.rf-feedback { display: block; margin-top: .28rem; font-size: .82rem; line-height: 1.4; }
.rf-feedback:empty, .rf-equity:empty { display: none; }
.rb-find .rf-invalid { color: #a32d24; font-weight: 620; }
.rf-field:has([aria-invalid="true"]) input:not([type="radio"]), .rf-field:has([aria-invalid="true"]) select,
.rf-field fieldset[aria-invalid="true"] .rf-pick span { border-color: #b73e34; }
.rf-numbers { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 0 1rem; }
.rf-deposit-presets { display: none; }
form.rf-enhanced .rf-deposit-presets { display: flex; margin: -.25rem 0 .65rem; }
.rf-deposit-presets button { padding: .3rem .75rem; min-height: 35px; border-radius: 2rem; border: 1px solid var(--rf-border); background: #f2f8f5; color: #184d39; font: inherit; font-size: .85rem; cursor: pointer; }
.rf-deposit-presets button:disabled { opacity: .55; cursor: default; }
.rf-equity { display: block; color: var(--rf-muted); margin: -.15rem 0 1rem; font-size: .85rem; }
.rf-options, .rf-edit-scenario, .rf-notes { border-top: 1px solid var(--rf-border); }
.rf-options summary, .rf-edit-scenario summary, .rf-notes summary { padding: .75rem 0; font-weight: 650; cursor: pointer; }
.rf-options summary span { color: var(--rf-muted); font-weight: 500; margin-left: .25rem; }
.rf-actions { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; margin-top: 1.2rem; }
.rb-find .rf-actions button, .rf-offer .rb-select { margin: 0; gap: .65rem; }
.rf-actions a { color: #235d4d; }
.rf-filter-panel { margin: 1rem 0; padding: .9rem 1rem .1rem; background: #f7faf8; }
.rf-filter-panel > form { display: flex; flex-wrap: wrap; gap: .8rem 1.1rem; align-items: end; margin: 0 0 .8rem; }
.rf-filter-panel > form > div { flex: 1; min-width: 8rem; }
.rf-filter-panel .rf-pills { gap: .25rem; }
.rf-filter-panel .rf-pills label { margin: 0; font-size: .85rem; }
.rf-filter-panel .rf-pills label span { padding: .45rem .75rem; }
.rf-filter-panel .rf-apply { margin: 0; }
.rf-autofilter .rf-apply { display: none; }
.rf-edit-scenario > form { max-width: 41rem; padding-bottom: 1rem; margin-top: .4rem; }
.rf-count { font-size: .9rem; font-weight: 700; margin: 1rem 0 .5rem; }
.rf-notes { margin-top: 1.2rem; color: var(--rf-muted); }
.rf-more { display: flex; width: fit-content; }
.rf-shell [hidden], .rf-results [hidden] { display: none !important; }
@media (max-width: 640px) {
    .rf-shell,.rf-results { width: min(calc(100% - 1.25rem), 100%); margin-block: 1rem; }
    .rf-numbers { grid-template-columns: 1fr; }
    .rf-actions .rb-act { flex: 1; }
}
@media (max-width: 370px) { .rf-goals { grid-template-columns: 1fr; } }

.rf-live { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); }
[data-rf-offers][aria-busy="true"] { opacity: .65; }

.rf-shell, .rf-results { font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif; }
.rf-shell *, .rf-results * { box-sizing: border-box; }
.rf-percent-field { max-width: 17rem; margin-bottom: .75rem; }
.rf-percent-field small { display: block; }
.rf-take { margin: 1rem 0 .6rem; padding: .7rem .9rem; border-left: 3px solid #267357; background: #f4f8f5; }
.rf-cost-note { font-size: .85rem; color: var(--rf-muted); }

.rf-field:has(input[inputmode="numeric"]) .rf-input { display:flex; align-items:center; gap:.6rem; }
.rb-find .rf-field input[inputmode="numeric"] { width:4.6rem; min-width:0; text-align:center; }
.rf-input > .rf-unit-years { position:static; transform:none; }

/* Wizard financial inputs and rate comparison */
.rf-results.rb-find { box-sizing:border-box; width:100%; max-width:none; margin:1rem auto 2rem; padding-inline:clamp(.65rem,2.5vw,3rem); }
.rb-find .rf-context { display:inline-block; background:#d9f4e4; color:#174b35; border:0; border-radius:0; padding:.14rem .45rem; font-weight:650; }
.rf-stack { display:grid; grid-template-columns:minmax(0,22rem); }
.rf-search-overlay {position:fixed;inset:0;z-index:11000;display:grid;place-items:center;background:#15271c55;padding:1rem;}
.rf-search-overlay>div {display:grid;gap:1rem;max-width:27rem;background:white;padding:1.7rem;color:#153f31;box-shadow:0 6px 36px #153f3130;}
.rf-search-overlay progress {width:100%;accent-color:#176249;}
@media(prefers-reduced-motion:reduce){.rf-search-overlay progress{visibility:hidden;} .rb-find *{scroll-behavior:auto!important;transition:none!important;}}

dialog.rf-search-overlay {width:100%;height:100%;max-width:none;max-height:none;box-sizing:border-box;margin:0;border:0;}
dialog.rf-search-overlay::backdrop{background:transparent;}

/* Shared financial fields. Keep the label, control and feedback on separate tracks. */
.rf-down-pair {
    --rf-percent-width: 7.75rem;
    --rf-pair-gap: .75rem;
    display: grid;
    grid-template-columns: minmax(0, 13.5rem) minmax(0, var(--rf-percent-width));
    gap: 0 var(--rf-pair-gap);
    align-items: start;
}
.rf-down-pair > .rf-field { margin: 0 0 .6rem; }
.rb-find .rf-down-pair .rf-field > label,
.rf-results .rf-finances .rf-field > label {
    display: block;
    margin: 0;
    padding-bottom: .3rem;
    font-size: .875rem;
    line-height: 1.25;
}
.rb-find .rf-down-pair input:not([type="radio"]),
.rf-results .rf-finances input:not([type="radio"]),
.rf-results .rf-finances select {
    display: block;
    width: 100%;
    min-width: 0;
    height: 2.5rem;
    min-height: 2.5rem;
    margin: 0;
    padding: .4rem .65rem;
    border: 1px solid #91a89c;
    border-radius: .38rem;
    font-size: 1rem;
    background: #fff;
}
.rb-find .rf-with-unit input:not([type="radio"]):not([type="hidden"]) { padding-inline-start: 1.85rem; }
.rb-find .rf-with-help input:not([type="radio"]):not([type="hidden"]) { padding-inline-end: 2.3rem; }
.rb-find .rf-with-suffix input:not([type="radio"]):not([type="hidden"]) { padding-inline-end: 1.8rem; }
.rf-input > .rf-percent-unit { left: auto; right: .65rem; pointer-events: none; }
.rf-results.rb-find .rf-field input[inputmode="numeric"] { width: 3.7rem; text-align: center; }
.rf-input > .rf-unit-years { font-size: .85rem; }
.rf-shell form.rf-enhanced .rf-deposit-presets { margin: 0 0 .3rem; gap: .35rem; }
.rf-shell .rf-deposit-presets button { min-height: 2rem; padding: .2rem .65rem; }
.rf-shell [data-min-hint] { display: block; line-height: 1.4; font-size: .81rem; }
.rf-shell .rf-equity { margin: .12rem 0 .85rem; }
.rf-shell [data-min-hint]:empty { display: none; }
.rf-shell [data-min-hint]:not(:empty) { margin-block-end: .42rem; }
.rf-shell.rb-find { margin-block: clamp(1rem, 2.5vw, 2.25rem); }
.rf-shell .rf-panel { padding: clamp(1rem, 2.4vw, 1.55rem); }
.rf-shell .rf-progress { margin-bottom: .85rem; }

/* The disclosure icon is drawn with two centered strokes. The native open state
   removes the vertical stroke, including on new cards returned by live paging. */
.rb-find details > summary {
    list-style: none;
    display: flex;
    align-items: center;
    gap: .42rem;
    color: #195c45;
    font-weight: 600;
    cursor: pointer;
}
.rb-find details > summary::-webkit-details-marker { display: none; }
.rb-find details:not(.rf-min-help) > summary::before {
    content: "";
    flex: 0 0 1rem;
    height: 1rem;
    box-sizing: border-box;
    border: 1.4px solid currentColor;
    border-radius: 50%;
    background: linear-gradient(currentColor,currentColor) center / .48rem 1.5px no-repeat,
                linear-gradient(currentColor,currentColor) center / 1.5px .48rem no-repeat;
}
.rb-find details[open]:not(.rf-min-help) > summary::before {
    background: linear-gradient(currentColor,currentColor) center / .48rem 1.5px no-repeat;
}
.rf-shell .rf-options > summary, .rf-results .rf-edit-scenario > summary,
.rf-results .rf-notes > summary { padding: .46rem 0; min-height: 2.25rem; }
.rf-shell .rf-options summary [data-year-summary] { margin: 0; }

/* The help opens at the right edge of the dollar field, below it on narrow screens. */
.rf-with-help { position: relative; }
.rf-min-help > summary {
    position: absolute;
    inset-inline-end: .2rem;
    top: .15rem;
    width: 2.1rem;
    height: 2.2rem;
    justify-content: center;
    border-radius: .3rem;
}
.rf-min-help > summary span {
    display: grid;
    place-items: center;
    width: 1.12rem;
    height: 1.12rem;
    border: 1.5px solid currentColor;
    border-radius: 50%;
    font: 700 .78rem/1 system-ui, sans-serif;
}
.rf-min-help[open] > summary, .rf-min-help > summary:hover { background: #e3f2eb; }
.rf-help-panel {
    position: absolute;
    z-index: 5;
    inset-inline-start: calc(100% + var(--rf-pair-gap) + var(--rf-percent-width) + .45rem);
    top: 0;
    width: 17rem;
    padding: .75rem .85rem;
    color: #213e34;
    background: #fff;
    border: 1px solid #94b7a4;
    border-radius: .45rem;
    box-shadow: 0 5px 17px #183c2928;
    font-size: .85rem;
    line-height: 1.45;
}
.rf-help-panel p { display: grid; gap: .14rem; margin: .3rem 0 .4rem; }
.rf-help-panel p strong { padding-top: .3rem; margin-top: .12rem; border-top: 1px solid #dce7df; }
.rf-help-panel a { color: #16573f; text-underline-offset: .15em; }

/* A single set of column tracks aligns labels, controls and the update action. */
.rf-results { --rf-v-rule: 2px dotted #88b29d; --rf-h-rule: 2px dotted #ad96be; }
.rf-results .rf-filter-panel { margin: .7rem 0; padding: .65rem .85rem; border-radius: .55rem; box-shadow: none; }
.rf-results .rf-filter-panel > form { margin: 0; }
.rf-results .rf-filter-panel > form[data-rf-form="financial"] { display: block; }
.rf-results .rf-finances {
    display: grid;
    grid-template-columns: minmax(0,1.2fr) minmax(0,1.15fr) minmax(0,.8fr) minmax(0,.85fr) minmax(0,1fr) auto;
    gap: 0 .75rem;
    align-items: start;
}
.rf-finances > .rf-field, .rf-finances > .rf-update-field {
    min-width: 0;
    margin: 0;
    display: grid;
    grid-row: span 3;
    grid-template-rows: auto auto 1fr;
    align-items: start;
}
.rf-finances > .rf-update-field { align-self: stretch; }
.rf-finances .rf-update-field > button { grid-row: 2; }
@supports (grid-template-rows: subgrid) {
    .rf-finances > .rf-field, .rf-finances > .rf-update-field { grid-template-rows: subgrid; }
}
.rf-results .rf-update-field .rf-update {
    min-height: 2.5rem;
    margin: 0;
    padding: .3rem .85rem;
    font-size: .88rem;
    border-radius: .38rem;
}
.rf-results .rf-edit-scenario { margin: .45rem 0 .35rem; }
.rf-results .rf-edit-scenario > summary { font-size: .85rem; }
.rf-results [data-rf-filters] { align-items: center; gap: .45rem 1rem; }
.rf-results [data-rf-filters] fieldset { margin: 0; }
.rf-results [data-rf-filters] > label { display: flex; align-items: center; gap: .45rem; margin: 0; font-size: .86rem; }
.rf-results [data-rf-filters] select { min-height: 2.1rem; width: auto; padding: .2rem .4rem; font-size: .91rem; }
.rf-results .rf-pills label span { min-height: 2.1rem; border-radius: .32rem; padding: .25rem .68rem; }
.rf-count a { color: #22624d; text-underline-offset: .15em; }
.rf-results .rf-count { margin: .5rem 0 .35rem; font-size: .85rem; }

.rf-results.rb-find { margin-block: .5rem 1rem; }
.rf-results .rf-progress { display: flex; align-items: baseline; gap: .7rem; margin: 0 0 .4rem; }
.rf-results .rf-progress ol { flex: 1; margin: 0; }
.rf-results .rf-progress li { border-top-width: 2px; padding-top: .12rem; font-size: .7rem; }
.rf-results .rf-step-label { font-size: .72rem; }
.rf-results-intro { display: flex; align-items: baseline; flex-wrap: wrap; gap: .12rem .6rem; }
.rf-results-intro > .rf-context { margin: 0; padding: .1rem .32rem; font-size: .72rem; }
.rf-results .rf-results-intro h1 { margin: 0; font-size: clamp(1.26rem,2vw,1.8rem); font-weight: 710; line-height: 1.1; }
.rf-scenario-info { flex-basis: 100%; display: flex; flex-wrap: wrap; align-items: baseline; gap: .07rem .7rem; }
.rf-results-intro p[data-rf-scenario-summary] {
    display: flex; flex-wrap: wrap; align-items: center; gap: .22rem .35rem;
    margin: .15rem 0; font-size: .79rem; line-height: 1.35;
}
.rf-scenario-tag { background: #d9f4e4; color: #174b35; padding: .12rem .38rem; }
.rf-scenario-province { color: var(--rf-muted); }
.rf-results-intro .rf-market-note { margin: 0; font-size: .76rem; line-height: 1.22; }
.rf-results .rf-filter-panel { margin: .4rem 0; padding: .4rem .65rem; }
.rf-results .rf-finances .rf-field > label { padding-bottom: .16rem; font-size: .79rem; }
.rf-results .rf-finances input:not([type="radio"]), .rf-results .rf-finances select, .rf-results .rf-update-field .rf-update {
    height: 2rem; min-height: 2rem; padding-block: .15rem;
}
.rf-filter-tools { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: .15rem .7rem; border-top: 1px solid #dce4df; padding-top: .2rem; margin-top: .35rem; }
.rf-filter-tools [data-rf-filters] { display: flex; flex-wrap: wrap; margin: 0; }
.rf-results .rf-filter-tools .rf-edit-scenario { margin: 0; border: 0; }
.rf-results .rf-filter-tools .rf-edit-scenario[open] { flex-basis: 100%; }
.rf-results .rf-filter-tools .rf-edit-scenario > summary { min-height: 1.7rem; padding: .12rem 0; font-size: .78rem; }
.rf-results .rf-filter-tools .rf-clear, .rf-results .rf-filter-tools select, .rf-results .rf-filter-tools .rf-pills label span { min-height: 1.75rem; padding-block: .12rem; }
.rf-results [data-rf-filters] { gap: .18rem .6rem; }

/* Keep the four column labels aligned with the offer grid. */
.rf-board {
    --rf-offer-tracks: repeat(3, minmax(0,1fr));
    --rf-tracks: clamp(7.75rem,9vw,9rem) var(--rf-offer-tracks);
    --rf-row-rule: 1px solid #d9d8df;
    --rf-column-rule: 1px solid #d6d9db;
    color: #242332;
}
.rf-board .rf-head, .rf-board .rf-term {
    display: grid;
    grid-template-columns: var(--rf-tracks);
}
.rf-head {
    background: #482778;
    color: white;
    font-size: clamp(.91rem,1.12vw,1.08rem);
    font-weight: 710;
    line-height: 1.15;
    border-block-end: 1px solid white;
}
.rf-head > .rf-column-heading {
    display: flex;
    align-items: center;
    align-content: center;
    flex-wrap: wrap;
    gap: .2rem .4rem;
    min-width: 0;
    padding: .42rem .55rem;
}
.rf-head > .rf-column-heading:not(:last-child) { flex-wrap: nowrap; }
.rf-head > .rf-column-heading + .rf-column-heading { border-inline-start: 1px solid rgb(255 255 255 / .76); }
.rf-column-heading img { flex: 0 0 auto; display: block; width: var(--rf-header-icon,1.5rem); height: auto; max-width: 100%; }
.rf-column-heading .rf-bank-strip { width: calc(var(--rf-header-icon,1.5rem) * 5.0625); }
.rf-board .rf-term, .rf-comparison-line + .rf-comparison-line { border-block-start: var(--rf-row-rule); }
.rf-term > h2 { grid-column: 1; margin: 0; padding: .6rem .55rem; color: #39234f; font-size: .94rem; line-height: 1.25; }
.rf-term-label {
    display: inline-block; max-width: 100%; background: #d8f4e0; color: #124d32;
    border-radius: .24rem; padding: .12rem .32rem; font-weight: 680;
}
.rf-comparison-line { grid-column: 2 / -1; display: grid; grid-template-columns: var(--rf-offer-tracks); }
.rf-cell { min-width: 0; padding: 2px 3px; border-inline-start: var(--rf-column-rule); }
.rf-cell > h3 { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.rf-blank { color: #737080; }
.rf-low-card, .rf-offer {
    min-width: 0;
    margin: 0;
    padding: .1rem .48rem 0;
    border: 1px solid #dadfe0;
    border-radius: .4rem;
    background: white;
    overflow-wrap: anywhere;
    font-family: inherit;
}
.rf-low-card { background: #fcfbff; border-color: #d9d1e4; }
.rf-card-banner { display: flex; align-items: baseline; gap: .06rem .35rem; margin: .08rem 0 .12rem; }
.rf-promo {
    display: block;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    background: #fff0af;
    color: #4c390b;
    border-radius: .18rem;
    padding: .06rem .26rem;
    font-weight: 620;
    font-size: .72rem;
    line-height: 1.18;
}
.rf-card-banner .rf-rank, .rf-placement { margin: 0 0 0 auto; }
.rf-card-banner .rf-rank { color: #634180; font-size: .68rem; line-height: 1.3; font-weight: 670; }
.rf-full-promo { color: #57400b; font-weight: 600; }
.rf-card-banner .rf-rank, .rf-placement { flex-shrink: 0; }
.rf-placement { display: inline-flex; align-items: center; flex-wrap: wrap; gap: .25rem; }
.rf-disclosure, .rf-badge, .rf-regional { font-size: .69rem; line-height: 1.2; }
.rf-disclosure { color: #545161; }
.rf-badge { background: #f0e9fa; color: #543073; border-radius: .18rem; padding: .05rem .25rem; }
.rf-regional { color: #246249; }
.rf-quote { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; gap: .04rem .35rem; }
.rf-quote-identity, .rf-identity { display: flex; align-items: center; flex-wrap: wrap; gap: .12rem .33rem; min-width: 0; }
.rf-identity { flex: 1 1 4.25rem; }
.rf-provider { color: #353443; font-size: .78rem; font-weight: 620; line-height: 1.18; }
.rf-logo { display: block; max-width: 2.4rem; height: 1rem; object-fit: contain; object-position: left center; }
.rf-board .rf-rate {
    justify-self: start;
    background: #d8f4e0;
    color: #124d32;
    padding: .04rem .28rem .08rem;
    border-radius: .24rem;
    font-size: clamp(1.32rem,1.7vw,1.62rem);
    font-weight: 680;
    font-variant-numeric: tabular-nums;
    letter-spacing: -.035em;
    line-height: 1.04;
    white-space: nowrap;
}
.rf-card-action { justify-self: end; }
.rf-results .rf-card-action > .rb-select {
    display: inline-flex;
    align-items: center;
    min-height: 1.65rem;
    margin: 0;
    padding: .16rem .43rem;
    border-radius: .3rem;
    font-size: .75rem;
    font-weight: 650;
    line-height: 1.15;
    white-space: nowrap;
}
.rf-payment-preview { grid-column: 1 / -1; margin: 0; }
.rf-payment { display: flex; flex-wrap: wrap; align-items: baseline; gap: .36rem; line-height: 1.2; }
.rf-payment dt, .rf-metrics dt { font-size: .75rem; color: #575664; font-weight: 480; }
.rf-payment dd, .rf-metrics dd { margin: 0; font-size: .84rem; font-weight: 650; font-variant-numeric: tabular-nums; color: #164c38; }
.rf-card-details { display: grid; grid-template-columns: minmax(0,6.5rem) minmax(0,1fr); align-items: start; margin-top: .08rem; }
.rf-card-details details { min-width: 0; }
.rf-results .rf-card-details summary {
    width: fit-content;
    min-height: 1.5rem;
    padding: .05rem 0;
    gap: .25rem;
    font-size: .75rem;
    line-height: 1.15;
}
.rf-results .rf-card-details summary::before { flex-basis: .83rem; height: .83rem; }
.rf-card-details summary:focus-visible, .rf-card-action a:focus-visible { outline: 2px solid #53347d; outline-offset: 1px; }
/* Each native disclosure expands inline. In browsers with details-content support
   both summaries stay on the first line and their panels can use the full card. */
@supports selector(details::details-content) {
    .rf-card-details details { display: contents; }
    .rf-card-details summary { grid-row: 1; }
    .rf-card-details [data-rf-detail="rate"] summary { grid-column: 1; }
    .rf-card-details [data-rf-detail="payment"] summary { grid-column: 2; }
    .rf-card-details details::details-content { grid-column: 1 / -1; }
    .rf-card-details details:not([open])::details-content { display: none; }
}
.rf-card-details .rf-facts, .rf-card-details .rf-metrics, .rf-no-payment {
    margin: 0 0 .25rem;
    padding: .4rem .48rem;
    background: #f5f7f6;
    border-radius: .26rem;
}
.rf-facts { display: grid; gap: .18rem; font-size: .83rem; line-height: 1.35; }
.rf-facts small { font-size: .76rem; }
.rf-metrics { display: grid; gap: .2rem; }
.rf-metrics > div { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .2rem .5rem; }
.rf-no-payment { color: #555360; font-size: .79rem; }
.rf-empty { display: grid; justify-items: start; gap:.5rem; padding:.8rem 0; }
.rf-empty h2,.rf-empty p { margin:0; }
.rf-market-note,.rf-estimate-guide { color:#555164; font-size:.8rem; }
.rf-estimate-guide { margin:.28rem 0; }
@media (min-width:56.01rem) {
    /* Keep rate baselines aligned when only a neighbouring card has a promo or rank. */
    .rf-comparison-line:has(.rf-card-banner) .rf-offer:not(:has(.rf-card-banner))::before {
        content: ""; display: block; height: 1.18rem;
    }
}
@media (min-width:64.01rem) {
    .rf-results .rf-existing-fields { grid-template-columns: repeat(4,minmax(6.1rem,1fr)) minmax(6rem,.75fr) minmax(7.3rem,1fr) auto; }
}
.rf-group-more, .rf-all-more {
    align-items: center; gap: .4rem; margin: 0; min-height: 2.15rem; padding: .18rem .6rem;
    color: #155a43; font-size: .84rem; font-weight: 650; text-decoration: none;
}
.rf-group-more {
    grid-column: 2 / -1; min-height: 1.65rem; margin: .18rem .2rem;
    padding-inline: .65rem; background: #e1f4e8; border-radius: 0;
}
.rf-group-more:hover, .rf-all-more:hover { text-decoration: underline; text-underline-offset: .15em; }
.rf-all-more {
    box-sizing: border-box; width: min(18rem, 85%); min-height: 2.6rem;
    justify-content: center; margin: .65rem auto 0; padding-inline: 1rem;
    background: #dbf0e3; border-radius: 0;
}
.rf-group-more:hover, .rf-all-more:hover { background: #ceecd9; }
.rf-group-more:focus-visible, .rf-all-more:focus-visible { outline: 2px solid #226444; outline-offset: 2px; }
@media (max-width: 64rem) {
    .rf-results .rf-finances { grid-template-columns: repeat(3,minmax(0,1fr)); }
    .rf-finances > :nth-child(n+4) { margin-top: .25rem; }
}
@media (max-width: 56rem) {
    .rf-board .rf-head {
        --rf-header-icon: 1.32rem;
        grid-template-columns: minmax(4rem,.65fr) minmax(0,1fr) repeat(2,minmax(0,1.3fr));
        font-size: .9rem;
        border-bottom: 1px solid #80669e;
    }
    .rf-board .rf-term { grid-template-columns: minmax(0,1fr); }
    .rf-board .rf-term:first-of-type { border-top: 0; }
    .rf-term > h2 { background: #482778; color: white; padding: .45rem .65rem; }
    .rf-comparison-line { grid-column: 1; grid-template-columns: repeat(2,minmax(0,1fr)); }
    .rf-comparison-line > .rf-cell { padding: .16rem; border-inline-start: 0; }
    .rf-comparison-line > [data-offer-side="bank"]:not(.rf-blank) { border-inline-start: var(--rf-column-rule); }
    .rf-cell.rf-low { grid-column: 1 / -1; }

    .rf-cell > h3 { position: static; clip-path: none; width: auto; height: auto; font-size: .77rem; color: #405d50; margin: 0 0 .2rem; }

    .rf-comparison-line:has(> .rf-blank:not(:first-child)) > [data-offer-side]:not(.rf-blank) { grid-column: 1 / -1; }
    .rf-term .rf-blank { display: none; }
    .rf-group-more { grid-column: 1; margin-inline-start: .1rem; }
    .rf-help-panel { inset-inline-start: 0; top: calc(100% + .35rem); width: min(17rem,calc(100vw - 4.5rem)); }
}
@media (max-width: 38rem) {
    .rf-board .rf-head {
        --rf-header-icon: 1.25rem;
        grid-template-columns: repeat(2,minmax(0,1fr));
        gap: 0;
        padding: 0;
        font-size: .81rem;
    }
    .rf-head > .rf-column-heading { padding: .32rem .46rem; gap: .16rem .3rem; }
    .rf-head > .rf-column-heading:nth-child(3) { border-inline-start: 0; }
    .rf-head > .rf-column-heading:nth-child(n+3) { border-top: 1px solid rgb(255 255 255 / .76); }
    .rf-comparison-line > [data-offer-side="bank"]:not(.rf-blank) { border-inline-start: 0; }
    .rf-results .rf-results-intro h1 { flex-basis: 100%; }
    .rf-results .rf-filter-tools [data-rf-filters] { gap: .25rem .45rem; }
    .rf-results .rf-finances { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .rf-finances > :nth-child(n+3) { margin-top: .25rem; }
    .rf-comparison-line { grid-template-columns: minmax(0,1fr); }
    .rf-results .rf-filter-panel { padding-inline: .65rem; }
    .rf-results .rf-card-action > .rb-select { min-height: 1.85rem; }
}

.rf-results .rf-clear {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    color: #4d3675;
    text-underline-offset: .18em;
}
.rf-results .rf-update-error { color: #842a24; margin: .5rem 0; }
.rf-results .rf-estimate-disclosure {
    margin-block: 1rem;
    border-top: 1px solid #d6d4dc;
    padding-block: .75rem;
    color: #434753;
    font-size: .875rem;
    line-height: 1.5;
}
.rf-results .rf-estimate-disclosure p { max-width: 95ch; margin: .25rem 0 0; }


/* Paid rows use the same summary, disclosure panels and inquiry link as the grid. */
.rf-results .mw-featured { margin:.5rem 0 .7rem; }
.rf-results .mw-featured > h2 { display:table; margin:0 0 .22rem; padding:.08rem .36rem; background:#dbeeff; color:#113e62; font-size:1rem; }
.rf-strip + .rf-strip { margin-top:.18rem; }
.rf-term > .rf-strip, .rf-term-actions { grid-column:2 / -1; }
.rf-term-actions,[data-rf-term-nav] { display:flex; flex-wrap:wrap; align-items:center; gap:.35rem; }
[data-rf-term-nav] { justify-content:center; }
.rf-term-actions .rf-more::before,[data-rf-term-nav] .rf-more::before { content:'+'; display:inline-grid; place-items:center; border:1px solid; border-radius:50%; width:.95rem; height:.95rem; line-height:1; }
.rf-term-actions .rf-less::before,[data-rf-term-nav] .rf-less::before { content:'−'; }
/* Both paid placements use the same compact three-column card. */
.rf-results .rf-strip {
    container: rfPlacement / inline-size;
    min-width: 0;
    padding: 0;
    overflow: hidden;
    border: 1px solid #e5c98e;
    border-radius: .55rem;
    background: #fff8e8;
    color: #25342e;
}
.rf-placement-grid {
    display: grid;
    grid-template-columns: minmax(0,.85fr) minmax(0,1.2fr) minmax(0,1fr);
    align-items: start;
    min-width: 0;
    line-height: 1.15;
}
.rf-placement-grid > * { min-width: 0; }
.rf-strip .rf-paid-promo {
    grid-column: 1 / -1;
    display: flex;
    align-items: baseline;
    gap: .3rem;
    padding: .12rem .5rem;
    background: #fff0c3;
    border-bottom: 1px solid #ead6a2;
}
.rf-paid-promo mark { margin: 0; padding: 0; color: #59400b; background: transparent; }
.rf-paid-promo[expanded] mark { white-space: normal; overflow-wrap: anywhere; }
.rf-paid-promo button {
    flex: none; padding: 0 .1rem; border: 0; background: transparent;
    font: inherit; font-size: .7rem; color: #59400b; text-decoration: underline;
}
.rf-paid-promo button[hidden] { display: none; }
.rf-paid-rate, .rf-paid-middle, .rf-paid-provider {
    display: grid;
    align-content: start;
    gap: .12rem;
    padding: .22rem .5rem;
}
.rf-paid-rate { grid-column: 1; justify-items: start; padding-block: .1rem; gap: .04rem; }
.rf-paid-caption { color: #625942; font-size: .61rem; font-weight: 750; letter-spacing: .05em; text-transform: uppercase; }
.rf-paid-headline { display: flex; flex-wrap: wrap; align-items: center; gap: .08rem .35rem; min-width: 0; max-width: 100%; }
.rf-results .rf-strip .rf-rate {
    padding: 0; background: transparent; color: #106335; font-size: 1.3rem;
    font-weight: 850; line-height: 1; letter-spacing: -.035em; white-space: nowrap;
}
.rf-paid-term {
    min-width: 0; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
    padding: .03rem .28rem; border-radius: .7rem; background: #e4f2e4; color: #215835;
    font-size: .67rem; font-weight: 720;
}
.rf-paid-rate .rf-card-action { display: flex; justify-self: start; max-width: 100%; }
.rf-results .rf-paid-rate .rf-card-action > .rb-select {
    display: inline-flex; min-height: 1.34rem; max-width: 100%; margin: 0; padding: .15rem .4rem;
    align-items: center; justify-content: center; border: 1px solid #166b3b; border-radius: .32rem;
    background: #16753e; color: #fff; font-size: .7rem; font-weight: 720; line-height: 1.1;
    white-space: normal; text-align: center; text-transform: none; text-decoration: none; letter-spacing: normal;
}
.rf-results .rf-paid-rate a.rb-select:hover { background: #125b32; }
.rf-strip :focus-visible { outline: 2px solid #176c43; outline-offset: 1px; }
.rf-paid-middle { grid-column: 2; container: rfPayment / inline-size; }
.rf-paid-payment {
    display: flex; flex-wrap: wrap; align-items: baseline; gap: .05rem .35rem;
    margin: 0; padding: 0; line-height: 1.12;
}
.rf-paid-payment dt, .rf-paid-payment dd { margin: 0; }
.rf-paid-payment dt { color: #504c40; font-size: .72rem; font-weight: 600; }
.rf-paid-payment dd { color: #153b26; font-size: .88rem; font-weight: 750; }
.rf-paid-payment i { color: #27653f; }
.rf-strip .rf-card-details { grid-template-columns: max-content minmax(0,1fr); gap: .1rem .45rem; margin: 0; }
.rf-results .rf-strip .rf-card-details summary {
    display: inline-flex; align-items: center; gap: .18rem; min-height: 1.13rem;
    font-size: .7rem; line-height: 1.1; white-space: nowrap;
}
.rf-results .rf-strip .rf-card-details summary::before { flex: 0 0 .78rem; width: .78rem; height: .78rem; }
.rf-strip .rf-card-details :is(.rf-facts,.rf-metrics,.rf-no-payment) { overflow-wrap: anywhere; }
@supports not selector(details::details-content) {
    .rf-strip .rf-card-details:has(details[open]) { display: block; }
}
@container rfPayment (max-width: 12rem) {
    .rf-strip .rf-card-details, .rf-strip .rf-card-details details { display: block; }
}
.rf-paid-provider { grid-column: 3; justify-items: start; }
.rf-paid-identity { display: flex; align-items: center; gap: .32rem; min-width: 0; max-width: 100%; }
.rf-paid-identity .rf-logo { flex: none; width: auto; height: auto; max-width: 3rem; max-height: 1.25rem; object-fit: contain; }
.rf-paid-identity .rf-provider {
    min-width: 0; font-size: .76rem; font-weight: 730; line-height: 1.12; color: #3e4137;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.rf-paid-location, .rf-paid-reviews {
    max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #4f594a; font-size: .65rem;
}
.rf-paid-reviews span + span { margin-left: .3rem; }
.rf-paid-reviews b { color: #875900; }
.rf-paid-badges { display: flex; flex-wrap: wrap; align-items: center; gap: .1rem .24rem; color: #59491c; font-size: .68rem; }
.rf-paid-badge { border: 1px solid #d9bd7f; border-radius: .65rem; padding: .04rem .28rem; font-size: .6rem; font-weight: 750; text-transform: uppercase; }
.rf-variations {
    display: flex; align-items: baseline; gap: .2rem; grid-column: 1/-1;
    min-width: 0; width: 100%; overflow-x: auto; white-space: nowrap; scrollbar-width: none;
    line-height: 1.28;
}
.rf-variations span, .rf-variations button {
    flex: none; padding: .02rem .22rem; margin: 0; border: 0; border-radius: .16rem;
    font: inherit; font-size: .7rem; color: #163f62; background: #d8edff;
}
.rf-variations button { cursor: pointer; color: #324b70; text-decoration: underline; }
.rf-variations [hidden] { display: none !important; }
.rf-strip .rf-variations { grid-column: 1; margin: 0; }
.rf-scenario-rates { margin: 0; }
.rf-scenario-rates > div { display: flex; gap: .5rem; font-size: .76rem; }
.rf-scenario-rates dt, .rf-scenario-rates dd { margin:0; }
.rf-scenario-rates dd { background:#d8edff; color:#163f62; border-radius:.16rem; padding:0 .22rem; }
@media(max-width:56rem) { .rf-term > .rf-strip,.rf-term-actions { grid-column:1; } }
@container rfPlacement (max-width: 33rem) {
    .rf-placement-grid { grid-template-columns: minmax(0,1.06fr) minmax(0,1.16fr) minmax(0,.86fr); }
    .rf-paid-rate, .rf-paid-middle, .rf-paid-provider { padding: .15rem .24rem; }
    .rf-paid-caption { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
    .rf-paid-rate { padding-block: .08rem; }
    .rf-results .rf-paid-rate .rf-card-action > .rb-select { font-size: .65rem; padding-inline: .18rem; }
    .rf-paid-term { font-size: .64rem; }
    .rf-paid-identity { flex-wrap: wrap; gap: .07rem .2rem; }
    .rf-paid-identity .rf-logo { max-width: 2rem; max-height: 1rem; }
    .rf-paid-identity .rf-provider {
        display: -webkit-box; max-width: 100%; -webkit-box-orient: vertical; -webkit-line-clamp: 2; white-space: normal;
    }
    .rf-paid-reviews { display: none; }
    .rf-paid-payment dt { font-size: .67rem; }
    .rf-results .rf-strip .rf-card-details summary { font-size: .66rem; }
}
.rf-entry-path { display: flex; gap: .35rem; margin-top: .65rem; color: #495d54; font-size: .82rem; }
