/* Final page-scoped layout rules. Keep purchase typography isolated from catalog changes. */
.purchase-page .purchase-mortgage__content {
    container-name: mortgage-content;
    container-type: inline-size;
    min-width: 0;
}

.purchase-page .purchase-mortgage__content > h2 {
    max-width: none;
    margin-right: 0;
    font-size: clamp(42px, 6.4cqw, 64px);
    line-height: .98;
    letter-spacing: 0;
    white-space: nowrap;
}

.purchase-page .purchase-mortgage__stats {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    align-items: stretch;
    gap: 14px !important;
    width: 100%;
    min-width: 0;
    overflow: visible !important;
}

.purchase-page .purchase-mortgage__stat {
    display: flex !important;
    flex-direction: column;
    justify-content: flex-start;
    min-width: 0;
    min-height: 154px;
    padding: 20px !important;
    overflow: visible !important;
}

.purchase-page .purchase-mortgage__stats strong {
    display: flex;
    width: 100%;
    max-width: 100%;
    min-height: 3em;
    align-items: flex-end;
    margin: 0 0 7px;
    overflow: visible;
    color: #022441;
    font-family: "Roboto Flex Extended", "Roboto Flex", Arial, sans-serif;
    font-stretch: 145%;
    font-variation-settings: "GRAD" 80;
    font-size: 30px !important;
    font-weight: 400 !important;
    line-height: 1 !important;
    letter-spacing: 0 !important;
    text-overflow: clip;
}

@media (min-width: 761px) {
    .purchase-page .purchase-method-card h2 {
        min-height: clamp(60px, 4.2vw, 72px);
    }
}

.purchase-page .purchase-mortgage__stat--rate strong,
.purchase-page .purchase-mortgage__stat--term strong {
    white-space: nowrap !important;
}

.purchase-page .purchase-mortgage__stat--limit strong {
    white-space: normal !important;
    overflow-wrap: normal;
    text-wrap: balance;
}

.purchase-page .purchase-mortgage__stats span {
    display: block;
    min-width: 0;
    font-size: 13px !important;
    line-height: 1.35 !important;
    letter-spacing: 0 !important;
    white-space: normal !important;
}

@container mortgage-content (max-width: 650px) {
    .purchase-page .purchase-mortgage__stats {
        gap: 10px !important;
    }

    .purchase-page .purchase-mortgage__stat {
        min-height: 108px;
        padding: 17px 15px !important;
    }

    .purchase-page .purchase-mortgage__stats strong {
        font-size: 26px !important;
    }
}

@container mortgage-content (max-width: 500px) {
    .purchase-page .purchase-mortgage__content > h2 {
        font-size: clamp(36px, 11cqw, 48px);
        white-space: normal;
        text-wrap: balance;
    }

    .purchase-page .purchase-mortgage__stats {
        grid-template-columns: 1fr !important;
    }

    .purchase-page .purchase-mortgage__stat {
        min-height: 96px;
        justify-content: center;
    }

    .purchase-page .purchase-mortgage__stats strong {
        display: block;
        min-height: 0;
    }

    .purchase-page .purchase-mortgage__stat--limit strong {
        white-space: nowrap !important;
    }
}
