/* NFL Fantasy Mate: shared, scoped team-logo presentation. */
.nfm-team-logo {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 43px;
    padding: 3px;
    box-sizing: border-box;
    border: 1px solid #dcd8d0;
    background: #fff;
    vertical-align: middle;
}
.nfm-team-logo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.nfm-team-logo__fallback {
    display: none;
    color: #222;
    font: 900 14px/1 "Roboto Condensed", Arial, sans-serif;
}
.nfm-team-logo--missing img { display: none; }
.nfm-team-logo--missing .nfm-team-logo__fallback { display: inline; }

/* Recap: swap the black abbreviation tile for a real logo without moving scores. */
.weekly-recap-page .recap-matchup-team > .nfm-team-logo--recap { width: 51px; height: 43px; }
.weekly-recap-page .recap-team-heading { align-items: center; }
.weekly-recap-page .recap-team-title-with-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}
.weekly-recap-page .recap-team-title-with-logo h3 { min-width: 0; }
.weekly-recap-page .nfm-team-logo--detail { width: 45px; height: 45px; }

/* Schedule: each row keeps the existing two-column name/score grid. */
.schedule-page .schedule-team-with-logo {
    display: flex;
    align-items: center;
    min-width: 0;
    gap: 10px;
}
.schedule-page .schedule-team-with-logo > span:last-child { min-width: 0; }
.schedule-page .nfm-team-logo--schedule { width: 36px; height: 36px; }

/* Team Stats: the heading logo occupies the existing 65px abbreviation tile. */
.teams-v3-page .teams-identity > .nfm-team-logo--heading { width: 65px; height: 65px; padding: 5px; }

@media (max-width: 640px) {
    .weekly-recap-page .recap-matchup-team > .nfm-team-logo--recap { width: 40px; height: 35px; padding: 2px; }
    .weekly-recap-page .recap-matchup-team { gap: 7px; }
    .weekly-recap-page .recap-team-title-with-logo { gap: 9px; }
    .weekly-recap-page .nfm-team-logo--detail { width: 36px; height: 36px; }
    .teams-v3-page .teams-identity > .nfm-team-logo--heading { width: 49px; height: 49px; padding: 3px; }
    .schedule-page .schedule-team-with-logo { gap: 8px; }
    .schedule-page .nfm-team-logo--schedule { width: 30px; height: 30px; padding: 2px; }
}
