@import url("tsp-code1-type-scale.css");
@import url("tsp-code1-lead-list.css?v=code1-home-layout-2");

[data-tsp-code1-section] #tsp-stories {
    --preview-feed-ink: #172027;
    --preview-feed-line: #e0e4e7;
    --preview-feed-paper: #fff;
    --preview-feed-radius: 12px;
}

[data-tsp-code1-section] #tsp-stories :is(.v3-lead,.v3-latest,.preview-espn-card,.home-lead-list) {
    border-radius: var(--preview-feed-radius);
}
[data-tsp-code1-section] #tsp-stories .preview-espn-opening .v3-lead > .v3-lead-photo {
    display: block;
    aspect-ratio: 16 / 9;
    height: auto !important;
    min-height: 0 !important;
}
[data-tsp-code1-section] #tsp-stories .preview-espn-opening .v3-lead-photo > img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
[data-tsp-code1-section] #tsp-stories .preview-espn-opening .v3-lead > .v3-lead-copy {
    padding: 15px 19px 18px !important;
}
[data-tsp-code1-section] #tsp-stories .home-lead-list > [data-tsp-code1-featured] {
    display: block !important;
}
[data-tsp-code1-section] #tsp-stories .home-lead-list__lead > a {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    height: auto !important;
    gap: 9px;
}
[data-tsp-code1-section] #tsp-stories .home-lead-list__lead .home-lead-list__visual {
    width: 100% !important;
    max-width: none !important;
    height: auto !important;
    aspect-ratio: 16 / 9 !important;
}
[data-tsp-code1-section] #tsp-stories #latest-headlines li a {
    display: flex;
    align-items: center;
    min-height: 44px;
    padding-block: 6px;
}
[data-tsp-code1-section] #tsp-stories :is(.soccer-review-department-link,.home-lead-list__headlines) a:focus-visible,
[data-tsp-code1-section] .soccer-review-panel :is(a,button,select):focus-visible {
    outline: 2px solid #183c58;
    outline-offset: 2px;
}

@layer tsp-preview-typography {
    [data-tsp-code1-section] #tsp-stories .v3-lead-copy :is(h1,h1 a),
    [data-tsp-code1-section] .soccer-review-panel h1 {
        font-size: var(--tsp-code1-hero) !important;
        line-height: 1.12 !important;
        font-weight: 750 !important;
    }
    [data-tsp-code1-section] #tsp-stories :is(.home-lead-list__lead,.v3-band-copy,.v3-lead-copy) :is(h3,h3 a) {
        font-size: var(--tsp-code1-lead) !important;
        line-height: 1.25 !important;
        font-weight: 750 !important;
    }
    [data-tsp-code1-section] #tsp-stories :is(h2,h2 a),
    [data-tsp-code1-section] .soccer-review-panel h2 {
        font-size: var(--tsp-code1-section) !important;
        line-height: 1.2 !important;
    }
    [data-tsp-code1-section] #tsp-stories :is(.v3-latest li > a,.v3-related h3,.v3-related h3 a,
        .v3-fantasy-story h3,.home-lead-list__headlines a,.nfl-fantasy-stories a,.soccer-review-coverage > ul > li a),
    [data-tsp-code1-section] .soccer-review-panel h3 {
        font-size: var(--tsp-code1-headline) !important;
        line-height: 1.4 !important;
        font-weight: 650 !important;
    }
    [data-tsp-code1-section] #tsp-stories .v3-lead-copy p {
        font-size: var(--tsp-code1-headline) !important;
        line-height: 1.45 !important;
    }
    [data-tsp-code1-section] :is(#tsp-desktop-toolbar,#tsp-mobile-review-dialog,.soccer-league-nav,.soccer-review-tabs) :is(a,button),
    [data-tsp-code1-section] #tsp-stories :is(.nfl-quick li a,.nfl-fantasy-links a,.nfl-collection-head > a,
        .soccer-review-department-link a,.v3-latest footer a,.tsp-compact-ratings-head > a),
    [data-tsp-code1-section] .soccer-review-panel :is(label,select,thead th,thead button,.soccer-player-panel header button) {
        font-size: var(--tsp-code1-control) !important;
        line-height: 1.35 !important;
    }
    [data-tsp-code1-section] :is(.soccer-review-panel,.soccer-review-coverage) :is(tbody th,tbody td,td a,th .soccer-player-trigger,
        .soccer-player-panel dd,.soccer-player-panel dt, .soccer-review-events li > a, .soccer-review-events li > span) {
        font-size: var(--tsp-code1-data) !important;
        line-height: 1.35 !important;
    }
    [data-tsp-code1-section] #tsp-stories .soccer-match-teams {
        font-size: var(--tsp-code1-team) !important;
    }
    [data-tsp-code1-section] #tsp-stories :is(.sf-credit,time,.soccer-match-time span,.soccer-match-time strong,.soccer-review-rating-note),
    [data-tsp-code1-section] .soccer-review-panel :is(.soccer-data-edition, .soccer-data-source, .soccer-player-panel > p) {
        font-size: var(--tsp-code1-detail) !important;
        line-height: 1.35 !important;
    }
}

@media (max-width: 1100px) {
    [data-tsp-code1-section] #tsp-stories .preview-espn-grid > .preview-espn-feed {
        display: contents;
    }
    [data-tsp-code1-section] #tsp-stories .preview-espn-grid {
        display: flex;
        flex-direction: column;
        align-items: stretch;
    }
    [data-tsp-code1-section] #tsp-stories .preview-espn-opening { order: 0; }
    [data-tsp-code1-section] #tsp-stories #latest-headlines { order: 1; }
    [data-tsp-code1-section] #tsp-stories #home-featured { order: 2; }
    [data-tsp-code1-section] #tsp-stories .preview-espn-left { order: 25; }
    [data-tsp-code1-section] #tsp-stories .preview-espn-grid > .preview-espn-right { display: contents !important; }
    [data-tsp-code1-section] #tsp-stories .preview-espn-right > :not(#latest-headlines) { order: 26; }
    [data-tsp-code1-section] #tsp-stories .preview-espn-feed > :not(.preview-espn-opening,#home-featured,#latest-headlines) { order: 3; }
}
