#tsp-mobile-masthead,
.tsp-mobile-context {
    display: none;
}

@media (min-width: 761px) {
    body.tsp-editorial-navigation:has(> #tsp-mobile-masthead) .tsp-nav > .tsp-nav-inner {
        flex-wrap: wrap !important;
        row-gap: 0 !important;
    }

    body.tsp-editorial-navigation:has(> #tsp-mobile-masthead) .tsp-nav .tsp-links {
        max-width: 100%;
        flex-wrap: wrap !important;
    }
}

@media (max-width: 760px) {
    :is(#tsp-home-scores-v3, #college-football, #tsp-nhl-tonight, #tsp-scores-title-ncaam, #tsp-scores-title-ncaaw, #nba-lead, #tsp-nfl-sunday-nfl, #nbs-content, #nhs-content, #nfs-content) {
        scroll-margin-top: 52px;
    }

    .admin-bar :is(#tsp-home-scores-v3, #college-football, #tsp-nhl-tonight, #tsp-scores-title-ncaam, #tsp-scores-title-ncaaw, #nba-lead, #tsp-nfl-sunday-nfl, #nbs-content, #nhs-content, #nfs-content) {
        scroll-margin-top: 98px;
    }

    body:has(> #tsp-mobile-masthead) :is(.tsp-masthead, .tsp-nav, .tsp-home-rail, .v3-sport-rail, header.masthead, .tsp-business-masthead, nav.departments, nav.tsp-preview-nav) {
        display: none !important;
    }

    body:has(> .tsp-mobile-context[data-tsp-all-stories]) .tsp-department-heading > .tsp-section-all[href="#section-archive"],
    body:has(> .tsp-mobile-context[data-tsp-context="nfl"]) :is(.tsp-nfl-entry, .tsvx-section-tools.tsvx-fantasy-links) {
        display: none !important;
    }

    html:has(#tsp-mobile-masthead .tsp-mobile-menu[open]) {
        overflow: hidden;
    }

    #tsp-mobile-masthead {
        --tsp-mobile-yellow: #ffe600;
        --tsp-mobile-admin-offset: 0px;
        --tsp-mobile-wordmark: 128px;
        --tsp-mobile-business: 96px;
        --tsp-mobile-scores: 72px;
        position: sticky;
        top: var(--tsp-mobile-admin-offset);
        z-index: 250;
        display: grid;
        grid-template-columns: 44px minmax(0, 1fr) var(--tsp-mobile-business) var(--tsp-mobile-scores);
        align-items: center;
        height: 44px;
        margin: 0;
        padding: 0;
        background: #000;
        color: #fff;
        box-shadow: inset 0 -2px var(--tsp-mobile-yellow);
        font: 14px/1.4 system-ui, sans-serif;
    }

    .admin-bar #tsp-mobile-masthead {
        --tsp-mobile-admin-offset: 46px;
    }

    #tsp-mobile-masthead *, .tsp-mobile-context * {
        box-sizing: border-box;
    }

    #tsp-mobile-masthead [hidden] {
        display: none !important;
    }

    #tsp-mobile-masthead :is(a, button, summary), .tsp-mobile-context :is(a, summary) {
        color: inherit;
        text-decoration: none;
    }

    #tsp-mobile-masthead :is(button, summary), .tsp-mobile-context summary {
        margin: 0;
        border: 0;
        background: none;
        box-shadow: none;
        padding: 0;
        cursor: pointer;
        list-style: none;
    }

    #tsp-mobile-masthead summary::-webkit-details-marker,
    .tsp-mobile-context summary::-webkit-details-marker {
        display: none;
    }

    #tsp-mobile-masthead > :is(a, button), #tsp-mobile-masthead .tsp-mobile-menu > summary {
        height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
        font: 750 12px/1 system-ui, sans-serif;
    }

    #tsp-mobile-masthead .tsp-mobile-wordmark {
        min-width: 0;
        justify-content: flex-start;
        overflow: hidden;
    }

    .tsp-mobile-wordmark img {
        display: block;
        width: min(var(--tsp-mobile-wordmark), 100%);
        height: auto;
    }

    #tsp-mobile-masthead .tsp-mobile-business {
        gap: 5px;
        background: #241a17;
        color: #fff7e8;
        box-shadow: inset 1px 0 #ac261b, inset 0 -2px #ac261b;
    }

    #tsp-mobile-masthead .tsp-mobile-business[aria-current="page"] {
        background: #40201b;
    }

    #tsp-mobile-masthead .tsp-mobile-business .tsp-business-nav-mark {
        display: block;
        flex: none;
        width: 18px;
        height: 18px;
        object-fit: contain;
    }

    #tsp-mobile-masthead .tsp-mobile-scores[aria-expanded="true"] {
        color: var(--tsp-mobile-yellow);
    }

    #tsp-mobile-masthead .tsp-mobile-menu > summary > span {
        position: relative;
        display: block;
        width: 19px;
        height: 2px;
        background: #fff;
        border-radius: 2px;
    }

    .tsp-mobile-menu > summary > span::before,
    .tsp-mobile-menu > summary > span::after {
        content: "";
        position: absolute;
        left: 0;
        width: 100%;
        height: 2px;
        background: #fff;
        border-radius: 2px;
    }

    .tsp-mobile-menu > summary > span::before { top: -6px; }
    .tsp-mobile-menu > summary > span::after { top: 6px; }
    #tsp-mobile-masthead .tsp-mobile-menu[open] > summary > span { background: transparent; }
    .tsp-mobile-menu[open] > summary > span::before { top: 0; transform: rotate(45deg); }
    .tsp-mobile-menu[open] > summary > span::after { top: 0; transform: rotate(-45deg); }

    #tsp-mobile-masthead .tsp-mobile-drawer {
        position: fixed;
        inset: calc(var(--tsp-mobile-admin-offset) + 44px) 0 0;
        display: none;
        align-items: start;
        grid-template-columns: 83px minmax(0, 1fr);
        overflow: auto;
        overscroll-behavior: contain;
        background: #fff;
        color: #14191c;
    }

    #tsp-mobile-masthead .tsp-mobile-menu[open] > .tsp-mobile-drawer { display: grid; }

    .tsp-mobile-drawer-rail {
        position: sticky;
        top: 0;
        align-self: start;
        background: #151718;
        color: #fff;
    }

    #tsp-mobile-masthead .tsp-mobile-drawer-rail :is(a, button) {
        display: flex;
        align-items: center;
        width: 100%;
        min-height: 54px;
        padding: 0 8px 0 11px;
        border-bottom: 1px solid #fff4;
        text-align: left;
        font: 730 12px/1.2 system-ui, sans-serif;
    }

    #tsp-mobile-masthead .tsp-mobile-drawer-rail :is([aria-pressed="true"], [aria-current="page"]) {
        box-shadow: inset 3px 0 var(--tsp-mobile-yellow);
        color: var(--tsp-mobile-yellow);
    }

    .tsp-mobile-drawer-content {
        min-width: 0;
        padding: 5px 12px 8px;
    }

    #tsp-mobile-masthead .tsp-mobile-drawer h2 {
        margin: 0;
        padding: 9px 0 4px;
        color: #535b60;
        font: 700 11px/1.4 system-ui, sans-serif;
        letter-spacing: .1em;
        text-transform: uppercase;
    }

    #tsp-mobile-masthead .tsp-mobile-drawer ul,
    .tsp-mobile-section-menu ul {
        margin: 0;
        padding: 0;
        list-style: none;
    }

    #tsp-mobile-masthead .tsp-mobile-drawer-content a {
        display: flex;
        align-items: center;
        gap: 9px;
        min-height: 46px;
        font: 735 15px/1.2 system-ui, sans-serif;
    }

    .tsp-mobile-league-row {
        display: grid;
        grid-template-columns: minmax(0, 1fr) 44px;
    }

    .tsp-mobile-league-row > a {
        grid-area: 1 / 1;
        align-self: start;
        overflow-wrap: anywhere;
        z-index: 1;
    }

    .tsp-mobile-league-menu {
        grid-area: 1 / 1 / 2 / -1;
        min-width: 0;
    }

    #tsp-mobile-masthead .tsp-mobile-league-menu > summary {
        display: grid;
        place-items: center;
        width: 44px;
        min-height: 46px;
        margin-inline-start: auto;
        color: #344955;
    }

    .tsp-mobile-league-menu > summary::after {
        content: "";
        width: 8px;
        height: 8px;
        border-right: 2px solid currentColor;
        border-bottom: 2px solid currentColor;
        transform: translateY(-2px) rotate(45deg);
    }

    #tsp-mobile-masthead .tsp-mobile-league-menu[open] > summary { background: #edf1f3; }
    .tsp-mobile-league-menu[open] > summary::after { transform: translateY(2px) rotate(225deg); }

    #tsp-mobile-masthead .tsp-mobile-league-menu > ul {
        margin: 0 0 6px;
        padding: 0 9px 0 12px;
        border-inline-start: 2px solid #d7e0e4;
        background: #f5f7f8;
    }

    #tsp-mobile-masthead .tsp-mobile-league-menu:not([open]) > ul { display: none; }

    #tsp-mobile-masthead .tsp-mobile-league-menu li > a {
        min-height: 44px;
        font-size: 14px;
        font-weight: 650;
        overflow-wrap: anywhere;
    }

    .tsp-mobile-drawer-content li + li, .tsp-mobile-section-menu li + li {
        border-top: 1px solid #e0e3e5;
    }

    #tsp-mobile-masthead .tsp-mobile-drawer-content a[aria-current="page"] {
        text-decoration: underline 3px #c4ad00;
        text-underline-offset: 5px;
    }

    :is(#tsp-mobile-masthead, .tsp-mobile-context) :is(a, button, summary):focus-visible {
        outline: 2px solid #7b6700;
        outline-offset: -3px;
    }

    #tsp-mobile-masthead > :is(a, button):focus-visible,
    #tsp-mobile-masthead .tsp-mobile-menu > summary:focus-visible,
    #tsp-mobile-masthead .tsp-mobile-drawer-rail :focus-visible { outline-color: var(--tsp-mobile-yellow); }

    .tsp-mobile-league-mark {
        width: 24px;
        height: 24px;
        flex: none;
        object-fit: contain;
    }

    .tsp-mobile-mark {
        display: inline-grid;
        flex: none;
        place-items: center;
        width: 26px;
        height: 26px;
        border-radius: 4px;
        background: #000;
        color: #ffe600;
    }

    .tsp-mobile-mark-fantasy i,
    .tsp-mobile-mark-history i {
        position: relative;
        width: 15px;
        height: 15px;
        border: 1.5px solid currentColor;
        border-radius: 50%;
    }

    .tsp-mobile-mark-fantasy i::before, .tsp-mobile-mark-fantasy i::after {
        content: "";
        position: absolute;
        top: 50%;
        left: 50%;
        width: 9px;
        height: 1.5px;
        background: currentColor;
        transform: translate(-50%, -50%);
    }

    .tsp-mobile-mark-fantasy i::after { transform: translate(-50%, -50%) rotate(90deg); }

    .tsp-mobile-mark-ratings i {
        width: 14px;
        height: 14px;
        background: currentColor;
        clip-path: polygon(0 60%, 23% 60%, 23% 100%, 38% 100%, 38% 35%, 61% 35%, 61% 100%, 77% 100%, 77% 0, 100% 0, 100% 100%, 0 100%);
    }

    .tsp-mobile-mark-history i::after {
        content: "";
        position: absolute;
        top: 2px;
        left: 5px;
        width: 4px;
        height: 4px;
        border-left: 1.5px solid currentColor;
        border-bottom: 1.5px solid currentColor;
    }

    .tsp-mobile-mark-business i {
        position: relative;
        width: 15px;
        height: 11px;
        margin-top: 3px;
        border: 1.5px solid currentColor;
        border-radius: 2px;
    }

    .tsp-mobile-mark-business i::before, .tsp-mobile-mark-business i::after {
        content: "";
        position: absolute;
    }

    .tsp-mobile-mark-business i::before {
        inset: -5px 3px auto;
        height: 4px;
        border: 1.5px solid currentColor;
        border-bottom: 0;
        border-radius: 2px 2px 0 0;
    }

    .tsp-mobile-mark-business i::after {
        inset: 3px 0 auto;
        border-top: 1.5px solid currentColor;
    }

    body > .tsp-mobile-context {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 7px;
        min-height: 44px;
        padding: 0 14px;
        border-bottom: 1px solid #e0e3e5;
        background: #fff;
        color: #14191c;
        font: 14px/1.4 system-ui, sans-serif;
    }

    .tsp-mobile-context b {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        font-size: 15px;
    }

    .tsp-mobile-context summary, .tsp-mobile-context > a {
        display: flex;
        align-items: center;
        min-height: 44px;
        font: 740 12px/1.2 system-ui, sans-serif;
        white-space: nowrap;
    }

    .tsp-mobile-section-menu { position: relative; flex: none; }

    .tsp-mobile-section-menu ul {
        position: absolute;
        z-index: 95;
        inset: 44px 0 auto auto;
        width: min(200px, calc(100vw - 28px));
        padding: 0 10px;
        border: 1px solid #e0e3e5;
        border-radius: 0 0 5px 5px;
        background: #fff;
        box-shadow: 0 6px 15px #0002;
    }

    .tsp-mobile-section-menu li a {
        display: flex;
        align-items: center;
        min-height: 44px;
        font-weight: 680;
    }
}

@media (max-width: 350px) {
    #tsp-mobile-masthead {
        --tsp-mobile-wordmark: 112px;
        --tsp-mobile-business: 84px;
        --tsp-mobile-scores: 64px;
    }

    body > .tsp-mobile-context { padding-inline: 9px; }
}
