/* Shared Code 1 masthead and compact score ticker. */
#tsp-departments a.tsp-toolbar-big3 {
    display: inline-flex;
    align-items: center;
    padding-inline: 7px !important;
}

#tsp-departments .tsp-toolbar-big3 img,
#tsp-mobile-masthead .tsp-code1-big3-mark {
    display: block;
    width: 54px;
    height: auto;
}

#tsp-mobile-masthead .tsp-code1-big3-mark {
    width: 64px;
}

@media (min-width: 761px) {
    body.tsp-code1-header > #tsp-desktop-toolbar {
        --tsp-toolbar-link-size: 14px;
        height: 48px;
        min-height: 48px;
        --tsp-toolbar-link-padding: clamp(5px, .55vw, 8px);
        position: sticky !important;
        top: 0;
        z-index: 70;
    }

    body.tsp-code1-header #tsp-desktop-toolbar .nav-editorial > [data-tsp-sports-nav="desks"] {
        display: flex;
        flex: 1 1 auto;
        min-width: 0;
    }

    body.tsp-code1-header #tsp-desktop-toolbar .nav-editorial .nav-business {
        flex: 1 1 auto !important;
        min-width: 0;
        justify-content: center;
    }

    body.tsp-code1-header #tsp-league-scores[data-tls-code1] {
        position: relative;
        top: auto;
    }

    body.tsp-code1-header #tsp-league-scores[data-tls-code1] .tls-inner {
        min-height: 70px;
        height: auto;
        grid-template-columns: clamp(96px, 8.25vw, 124px) minmax(0, 1fr) 84px !important;
        grid-template-rows: minmax(0, 1fr);
    }

    body.tsp-code1-header #tsp-league-scores[data-tls-code1] .tls-selector { padding-inline: 8px; }

    body.tsp-code1-header #tsp-league-scores[data-tls-code1] .tls-league {
        min-height: 32px;
        font-size: var(--tsp-preview-type-label, 14px);
    }

    body.tsp-code1-header #tsp-league-scores[data-tls-code1] .tls-league-separator {
        min-width: 40px;
        max-width: 76px;
        font-size: var(--tsp-preview-type-label, 14px);
    }

    body.tsp-code1-header #tsp-league-scores[data-tls-code1] article.tls-game {
        flex-basis: 136px;
        padding-inline: 8px;
    }

    body.tsp-code1-header #tsp-league-scores[data-tls-code1] article.tls-game:has(.tls-situation) { flex-basis: 192px; }

    body.tsp-code1-header #tsp-league-scores[data-tls-code1] .tls-game-status {
        min-height: 17px;
        font-size: var(--tsp-preview-type-label, 14px);
        flex-shrink: 1;
    }

    body.tsp-code1-header #tsp-league-scores[data-tls-code1] :is(.tls-team, .tls-team-link) {
        min-height: 20px;
        gap: 5px;
        font-size: var(--tsp-preview-type-body, 16px);
    }

    body.tsp-code1-header #tsp-league-scores[data-tls-code1] .tls-team :is(img, .tls-logo-space) {
        width: 16px;
        height: 16px;
    }

    body.tsp-code1-header #tsp-league-scores[data-tls-code1] .tls-desktop-tools {
        grid-column: 3;
        grid-row: 1;
    }

    body.tsp-code1-header #tsp-league-scores[data-tls-code1] .tls-note {
        grid-column: 3;
        grid-row: 1;
        justify-self: center;
        padding: 0 3px 3px;
    }

    body.tsp-code1-header #tsp-league-scores[data-tls-code1] .tls-scroll-buttons { gap: 3px; }

    body.tsp-code1-header #tsp-league-scores[data-tls-code1] .tls-scroll-buttons button {
        width: 35px;
        min-height: 36px;
    }
}

@media (min-width: 1000px) {
    body.tsp-code1-header #tsp-desktop-toolbar .nav-business .tsp-business-nav-mark {
        display: block;
        width: 22px;
        height: 22px;
    }
}

/* The approved section footer contains only the brand, legal links and publication information. */
body.tsp-code1-header:has(> #tsp-page-top > main[data-code1-front]) > .tsp-footer .tsp-social {
    display: none;
}

@media (max-width: 760px) {
    body.tsp-code1-header:has(> #tsp-page-top > main[data-code1-front]) > :is(.tsp-mobile-context, #tsp-league-scores) {
        display: none !important;
    }

    body.tsp-code1-header:has(> #tsp-page-top > main[data-code1-front]) .tsp-footer .tsp-brand {
        width: 100%;
        max-width: none;
        min-height: 0;
        margin-inline: 0;
        gap: 0;
    }

    body.tsp-code1-header:has(> #tsp-page-top > main[data-code1-front]) .tsp-footer .tsp-badge {
        display: none;
    }

    body.tsp-code1-header:has(> #tsp-page-top > main[data-code1-front]) .tsp-footer .tsp-wordmark {
        width: 175px;
        height: 31px;
    }

    body.tsp-code1-header > #tsp-mobile-masthead {
        position: sticky;
        top: 0;
    }

    body.tsp-code1-header #tsp-mobile-masthead :is(.tsp-mobile-business, .tsp-mobile-scores) { font-size: 13px; }

    body.tsp-code1-header #tsp-mobile-league-shortcuts {
        position: relative;
        top: auto;
    }

    body.tsp-code1-header #tsp-mobile-league-shortcuts .tsp-mobile-shortcut-label { font-size: 12px; }
}
