/* Homepage only. The media guard also keeps desktop unchanged after resizing. */
@media (max-width: 767.98px) {
    .home-section-layout {
        --home-section-title-size: 18px;
    }

    .home-section-content :is(
        .card-metal-name,
        .gold-gauge__copy h2,
        .mhc-title,
        .browser-extension-promo h2,
        .country-seo-summary h2,
        .country-seo-faq h2,
        .weekly-recap-strip__head h2,
        .article-promo__head h2
    ) {
        /* The ratio heading has an existing inline size. */
        font-size: var(--home-section-title-size) !important;
        font-weight: 800;
        line-height: 1.5;
    }

    .home-section-content #weekly-recap .weekly-recap-strip,
    .home-section-content #gold-articles .article-promo {
        margin: 24px 0;
    }

    .home-section-content :is(.weekly-recap-strip__head, .article-promo__head) {
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        margin-bottom: 12px;
    }

    .home-section-content :is(.weekly-recap-strip__head, .article-promo__head) > div {
        min-width: 0;
    }

    .home-section-content :is(.weekly-recap-strip__head, .article-promo__head) h2 {
        margin: 0;
    }

    .home-section-content :is(.weekly-recap-strip__head, .article-promo__head) > a {
        display: inline-flex;
        align-items: center;
        flex-shrink: 0;
        min-height: 44px;
        font-size: 12px;
    }

    .home-section-content .weekly-recap-strip__kicker,
    .home-section-content #gold-articles .article-promo__head p {
        display: none;
    }

    .home-section-content #weekly-recap .weekly-recap-strip__grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 0;
    }

    .home-section-content #weekly-recap .weekly-recap-card {
        display: grid;
        grid-template-columns: 80px minmax(0, 1fr);
        direction: rtl;
        align-items: start;
        gap: 12px;
        padding: 12px;
        border: 1px solid var(--border);
        border-radius: 14px;
        background: var(--bg2);
        box-shadow: none;
    }

    .home-section-content #weekly-recap .weekly-recap-card ~ .weekly-recap-card {
        display: none;
    }

    .home-section-content #weekly-recap .weekly-recap-card__media {
        width: 80px;
        height: 80px;
        aspect-ratio: 1;
        border-radius: 10px;
        overflow: hidden;
    }

    .home-section-content #weekly-recap .weekly-recap-card__body {
        display: flex;
        flex-direction: column;
        min-width: 0;
        gap: 4px;
        padding: 0;
    }

    .home-section-content #weekly-recap .weekly-recap-card__meta {
        font-size: 11px;
        line-height: 1.5;
        color: var(--text-muted);
    }

    .home-section-content #weekly-recap .weekly-recap-card__meta span:first-child,
    .home-section-content #weekly-recap .weekly-recap-card__window,
    .home-section-content #weekly-recap .weekly-recap-card__link {
        display: none;
    }

    .home-section-content #weekly-recap .weekly-recap-card__title {
        margin: 0;
        font-size: 14px;
        font-weight: 800;
        line-height: 1.6;
    }

    .home-section-content #weekly-recap .weekly-recap-card__title a {
        display: -webkit-box;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
        min-height: 44px;
        overflow: hidden;
        color: var(--text);
    }

    .home-section-content #weekly-recap .weekly-recap-card__summary {
        display: -webkit-box;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
        overflow: hidden;
        margin: 0;
        font-size: 12px;
        line-height: 1.65;
        color: var(--text-muted);
    }

    .home-section-content #gold-articles .article-promo__grid {
        display: block;
        border-block: 1px solid var(--border);
    }

    .home-section-content #gold-articles .article-promo-card {
        display: block;
        min-height: 0;
        padding: 0;
        border: 0;
        border-radius: 0;
        background: transparent;
        box-shadow: none;
        transform: none;
        overflow: visible;
    }

    .home-section-content #gold-articles .article-promo-card + .article-promo-card {
        border-top: 1px solid var(--border);
    }

    .home-section-content #gold-articles :is(
        .article-promo-card__media,
        .article-promo-card__category,
        .article-promo-card__excerpt,
        .article-promo-card__meta
    ) {
        display: none;
    }

    .home-section-content #gold-articles .article-promo-card__title {
        margin: 0;
        font-size: 14px;
        line-height: 1.7;
    }

    .home-section-content #gold-articles .article-promo-card__title a {
        display: flex;
        align-items: center;
        gap: 12px;
        min-height: 48px;
        padding: 10px 4px;
        font-weight: 700;
    }

    .home-section-content #gold-articles .article-promo-card__title a::after {
        content: "←";
        position: static;
        flex-shrink: 0;
        margin-inline-start: auto;
        color: var(--gold-dark);
    }

    .home-section-content #gold-articles .article-promo-card:focus-within {
        outline: none;
    }

    .home-section-content #gold-articles .article-promo-card__title a:focus-visible,
    .home-section-content #weekly-recap a:focus-visible {
        border-radius: 4px;
        outline: 2px solid var(--gold-dark);
        outline-offset: 2px;
    }
}

/* Match the existing toolbar breakpoint so calculator access is never lost. */
@media (max-width: 700px) {
    .home-section-content .home-calc-card,
    .home-section-nav a[href="#gold-calculator"] {
        display: none;
    }
}
