/* Kisure Sports Frontend v854 — shared shell bundle A
 * FE854 cascade-preserving canonical consolidation.
 * Original source order is retained exactly; no selector/rule removal.
 */

/* ===== SOURCE: /css/kisure-v393-agentic-sports-desk.css ===== */
/* Kisure Sports v393
   Sports Desk topic tags, responsive full league tables, accessibility and
   low-risk agentic browsing refinements. */

/* Full league table on desktop: Pos, Team, P, W, D, L, GF, GA, GD, Pts, Form. */
.ks-desk .ks-desk-table-card--expanded .ks-desk-table-card__row {
    grid-template-columns:
        2.5rem
        minmax(10rem, 1.65fr)
        repeat(4, minmax(2.25rem, .34fr))
        repeat(3, minmax(2.55rem, .38fr))
        minmax(3rem, .42fr)
        minmax(9rem, 1fr) !important;
    gap: .45rem !important;
    padding-inline: .8rem !important;
}

.ks-desk .ks-desk-table-card--expanded .ks-desk-table-card__row > :not(strong) {
    text-align: center;
}

.ks-desk .ks-desk-table-card--expanded .ks-desk-table-card__row--head {
    min-height: 2.4rem;
    color: var(--text-soft, #53606d);
    font-size: .72rem;
    font-weight: 900;
    letter-spacing: .035em;
    text-transform: uppercase;
}

.ks-desk-table-form {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: .22rem;
    min-width: 0;
}

.ks-desk-table-form i {
    display: inline-flex;
    width: 1.32rem;
    height: 1.32rem;
    align-items: center;
    justify-content: center;
    border-radius: .36rem;
    color: #fff;
    font-size: .62rem;
    font-style: normal;
    font-weight: 900;
    line-height: 1;
}

.ks-desk-table-form i.is-w { background: #087f5b; }
.ks-desk-table-form i.is-d { background: #667085; }
.ks-desk-table-form i.is-l { background: #c92a2a; }
.ks-desk-table-form em {
    color: var(--text-soft, #667085);
    font-style: normal;
}

/* Topic tags sourced from the articles in the selected Sports Desk category. */
.ks-desk-tags a {
    display: grid;
    grid-template-columns: minmax(0, 1fr) max-content 1rem;
    align-items: center;
    min-width: 0;
    height: auto;
}

.ks-desk-tags a > span {
    min-width: 0;
    overflow: visible;
    text-overflow: clip;
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: normal;
    line-height: 1.3;
}

.ks-desk-tags a small {
    color: var(--text-soft, #5f6b76);
    font-size: .7rem;
    font-weight: 800;
    white-space: nowrap;
}

/* Tablet and mobile stay compact: Pos, Team, P, Pts. */
@media (max-width: 1024px) {
    .ks-desk .ks-desk-table-card--expanded .ks-desk-table-stat--desktop {
        display: none !important;
    }

    .ks-desk .ks-desk-table-card--expanded .ks-desk-table-card__row {
        grid-template-columns: 2.2rem minmax(0, 1fr) 2.25rem 2.65rem !important;
        gap: .5rem !important;
        padding-inline: .7rem !important;
    }
}

@media (max-width: 620px) {
    .ks-desk .ks-desk-table-card--expanded .ks-desk-table-card__row {
        grid-template-columns: 1.8rem minmax(0, 1fr) 1.75rem 2.1rem !important;
        gap: .36rem !important;
        padding-inline: .58rem !important;
    }

    .ks-desk-tags a {
        grid-template-columns: minmax(0, 1fr) max-content .8rem;
        column-gap: .5rem;
    }

    .ks-desk-tags a small {
        font-size: .65rem;
    }
}

/* Stronger contrast for labels called out by Lighthouse. */
.story-badge,
.sports-desk-page .story-badge,
.site-body.is-sports-desk-page .story-badge {
    background: #d8f3f1;
    color: #075d5d;
}

.ks-top-transfers-card__head span {
    color: #4b5563;
}

.gdpr-cookie-settings-link,
.gdpr-cookie-banner a,
a[aria-label="Learn more about our cookie policy"] {
    color: #075f63 !important;
}

html[data-theme="dark"] .story-badge,
html[data-theme="dark"] .sports-desk-page .story-badge,
html[data-theme="dark"] .site-body.is-sports-desk-page .story-badge {
    background: rgba(45, 212, 191, .18);
    color: #bff8ef;
}

html[data-theme="dark"] .ks-top-transfers-card__head span,
html[data-theme="dark"] .ks-desk-tags a small {
    color: #c6ced8;
}

/* Predictable dimensions and keyboard focus for people and browsing agents. */
img[loading="lazy"] {
    height: auto;
}

.ks-desk a:focus-visible,
.football-header-leagues a:focus-visible,
.football-header-leagues button:focus-visible,
.search-modal button:focus-visible,
.search-modal input:focus-visible,
.newsletter-form input:focus-visible,
.newsletter-form button:focus-visible {
    outline: 3px solid color-mix(in srgb, var(--primary, #0d8a85) 70%, #fff);
    outline-offset: 3px;
}

/* Keep the more-menu label descriptive without widening the whole header. */
.football-header-league--more .football-header-league__tab strong {
    max-width: 7rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ===== SOURCE: /css/kisure-v399-single-league-ticker-social-share.css ===== */
/* Kisure Frontend v399: universal single-competition ticker, social embeds and article share rail. */

.football-header-ticker__empty {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    width: 100%;
    min-height: 50px;
    padding: 0.55rem 0.85rem;
    border-radius: 13px;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    text-decoration: none;
}

.football-header-ticker__empty > i:first-child {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
}

.football-header-ticker__empty span {
    display: grid;
    gap: 0.08rem;
    min-width: 0;
    flex: 1 1 auto;
}

.football-header-ticker__empty strong,
.football-header-ticker__empty small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.football-header-ticker__empty strong {
    font-size: 0.88rem;
    font-weight: 900;
}

.football-header-ticker__empty small {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.72rem;
}

.article-share-panel--rail {
    align-items: flex-start;
    flex-direction: column;
    gap: 1rem;
    padding: 1.15rem;
}

.article-share-panel--rail .article-share-panel__links {
    justify-content: flex-start;
    width: 100%;
}

.article-share-panel--rail .article-share-action {
    flex: 1 1 calc(50% - 0.55rem);
    min-width: 0;
}

.article-social-embed--x {
    min-height: 180px;
}

.article-social-embed--x .twitter-tweet,
.article-social-embed--x .twitter-tweet-rendered {
    margin-inline: auto !important;
}

@media (max-width: 760px) {
    body.site-body.is-news-article-page {
        padding-bottom: calc(6.4rem + env(safe-area-inset-bottom, 0px));
    }

    .article-share-panel--mobile-sticky {
        position: fixed !important;
        z-index: 1085;
        left: max(0.65rem, env(safe-area-inset-left, 0px));
        right: max(0.65rem, env(safe-area-inset-right, 0px));
        bottom: calc(0.65rem + env(safe-area-inset-bottom, 0px));
        display: block;
        width: auto;
        margin: 0;
        padding: 0.55rem;
        border: 1px solid color-mix(in srgb, var(--line) 78%, transparent);
        border-radius: 1rem;
        background: color-mix(in srgb, var(--surface) 94%, transparent);
        box-shadow: 0 18px 50px rgba(15, 23, 42, 0.24);
        backdrop-filter: blur(18px);
        -webkit-backdrop-filter: blur(18px);
    }

    .article-share-panel--mobile-sticky .article-share-panel__heading {
        display: none;
    }

    .article-share-panel--mobile-sticky .article-share-panel__links {
        display: flex;
        flex-wrap: nowrap;
        align-items: stretch;
        justify-content: space-between;
        gap: 0.35rem;
        width: 100%;
    }

    .article-share-panel--mobile-sticky .article-share-action {
        flex: 1 1 0;
        min-width: 0;
        min-height: 3.65rem;
        padding: 0.42rem 0.2rem;
        flex-direction: column;
        gap: 0.22rem;
        border-radius: 0.75rem;
        font-size: 0.66rem;
        line-height: 1.05;
    }

    .article-share-panel--mobile-sticky .article-share-action i {
        font-size: 1rem;
    }
}

@media (max-width: 380px) {
    .article-share-panel--mobile-sticky .article-share-action span {
        font-size: 0.6rem;
    }
}
