/* Finance quiz responsive hardening */
.fq-hero,
.fq-hub-hero,
.fq-section,
.fq-hub-section {
    overflow-x: clip;
}

.fq-hero *,
.fq-hub-hero *,
.fq-section *,
.fq-hub-section * {
    box-sizing: border-box;
    overflow-wrap: anywhere;
}

.fq-app,
.fq-panel,
.fq-side,
.fq-grid article,
.fq-faq details,
.fq-card {
    max-width: 100%;
}

.fq-option span:last-child,
.fq-btn,
.fq-card h3,
.fq-lead,
.fq-source-note {
    word-break: normal;
    overflow-wrap: anywhere;
}

.fq-option {
    align-items: flex-start;
}

.fq-letter {
    margin-top: 1px;
}

@media (max-width: 1024px) {
    .fq-hero,
    .fq-hub-hero {
        padding-top: 118px;
    }

    .fq-card-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .fq-category-list {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .nav-links a,
    .nav-links .dropbtn {
        min-height: 44px !important;
        display: flex !important;
        align-items: center !important;
    }
}

@media (max-width: 860px) {
    .fq-hero-grid,
    .fq-grid,
    .fq-recommendations {
        grid-template-columns: 1fr !important;
    }

    .fq-side {
        align-self: stretch;
    }

    .fq-top {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 640px) {
    .fq-hero,
    .fq-hub-hero {
        padding: 102px 0 32px;
    }

    .fq-section,
    .fq-hub-section {
        padding: 32px 0;
    }

    .fq-panel {
        padding: 18px !important;
    }

    .fq-proof {
        display: grid;
        grid-template-columns: 1fr;
    }

    .fq-proof span {
        width: 100%;
    }

    .fq-top {
        grid-template-columns: 1fr !important;
    }

    .fq-option {
        gap: 10px;
        padding: 13px 12px;
        min-height: 58px;
        line-height: 1.45;
    }

    .fq-btn,
    .fq-actions .fq-btn,
    .fq-hub-actions .fq-btn {
        width: 100%;
        min-width: 0;
        white-space: normal;
        text-align: center;
        line-height: 1.35;
    }

    .fq-actions,
    .fq-hub-actions {
        align-items: stretch;
        width: 100%;
    }

    .fq-score-ring {
        width: 128px;
        height: 128px;
    }

    .fq-score-ring span {
        width: 96px;
        height: 96px;
        font-size: 1.7rem;
    }

    .fq-card-grid,
    .fq-category-list {
        grid-template-columns: 1fr !important;
    }
}

@media (max-width: 390px) {
    .fq-hero h1,
    .fq-hub-hero h1 {
        font-size: 1.85rem;
    }

    .fq-panel h2,
    .fq-learn h2,
    .fq-faq h2,
    .fq-hub-section h2 {
        font-size: 1.28rem;
    }

    .fq-option {
        font-size: .94rem;
    }

    .fq-letter {
        width: 28px;
        height: 28px;
        font-size: .82rem;
    }
}
