/*
 * Contact email address: keep the long mailto label on one line on phones.
 *
 * At 320px the card inner width is 232px. The 60px icon plus its leftover
 * 20px float margin and 12px flex gap leave only 140px for the label, so
 * nowrap alone would overflow. Reclaim space on this row only so the
 * unbroken address fits. Hover sprite offset must match the scaled icon
 * size (the source sprite is two stacked frames).
 *
 * New object key (20260815-sprite): CloudFront caches prior CSS immutably.
 */

@media screen and (max-width: 550px) {
    #contact .contact-email-row {
        flex-wrap: nowrap;
        gap: 8px;
        min-width: 0;
    }

    #contact .contact-email-row .email {
        width: 48px;
        height: 48px;
        margin-right: 0;
    }

    #contact .contact-email-row .email:hover {
        background-position: 0 -48px;
    }

    #contact .social-text h3.contact-email {
        font-size: 12px;
        overflow-wrap: normal;
        word-break: normal;
        white-space: nowrap;
        flex: 1 1 auto;
        min-width: 0;
    }
}

@media screen and (max-width: 360px) {
    #contact .contact-email-row {
        gap: 6px;
    }

    #contact .contact-email-row .email {
        width: 36px;
        height: 36px;
    }

    #contact .contact-email-row .email:hover {
        background-position: 0 -36px;
    }

    #contact .social-text h3.contact-email {
        font-size: 11px;
        letter-spacing: -0.02em;
    }
}
