
/* One shared stylesheet for the league's public inner pages. */
body.page {
    --sorpl-inner-green: #143f32;
    --sorpl-inner-border: #dbe5df;
    --sorpl-inner-soft: #f5f8f6;
    background: #f3f6f4;
    color: #23382f;
}
body.page .wp-site-blocks > header {
    background: transparent;
    border-bottom: 0;
}
body.page .wp-site-blocks > header > .wp-block-group {
    padding-top: 14px !important;
    padding-bottom: 14px !important;
}
body.page .wp-site-blocks > header .wp-block-site-title {
    font-size: clamp(15px, 2vw, 20px);
    font-weight: 600;
    letter-spacing: .01em;
    line-height: 1.35;
}
body.page .wp-site-blocks > header a { color: var(--sorpl-inner-green); }
body.page .wp-site-blocks > header .wp-block-site-logo img {
    content: url("https://pool.fentonlife.com/wp-content/uploads/2026/10/Selby_8_Ball_Transparent_Logo.png");
    width: 48px;
    height: 48px;
    object-fit: contain;
    border-radius: 7px;
}
body.page main .entry-content {
    padding: 24px clamp(12px, 2.5vw, 32px) 40px !important;
    margin-top: 0 !important;
    min-width: 0;
}
body.page .entry-content :is(
    .pool-fixtures-results, .sorpl-standings, .sorpl-player-stats,
    .pool-team-profile, .sorpl-player-profile, .pool-match-details,
    .sorpl-teams-directory, .sorpl-ko-menu-wrap, .sorpl-live-centre
) {
    width: 100% !important;
    max-width: 1280px !important;
    margin: 0 auto !important;
    padding: 0 !important;
    box-sizing: border-box;
    font-family: inherit;
    font-size: 16px;
    color: #23382f;
}
body.page .entry-content .sorpl-league-chat {
    width: 100% !important;
    max-width: 980px !important;
    margin: 0 auto !important;
    padding: 0 !important;
    box-sizing: border-box;
    font-family: inherit;
}
body.page .entry-content :is(
    .sorpl-standings-heading, .sorpl-ps-heading,
    .pool-team-profile__header, .pool-profile-heading,
    .pool-match-details__header, .sorpl-directory-heading,
    .sorpl-ko-menu-head, h2.sorpl-live-title,
    .pool-fixtures-results > h1, .sorpl-chat-head
) {
    background: transparent !important;
    color: var(--sorpl-inner-green) !important;
    padding: 4px 0 !important;
    margin: 0 0 20px !important;
    border-radius: 12px !important;
    text-align: left;
    box-shadow: none;
}
body.page .entry-content :is(
    .sorpl-standings-heading h2, .sorpl-ps-heading h2,
    .pool-team-profile__header h2, .pool-profile-heading h2,
    .pool-match-details__header h2, .sorpl-directory-heading,
    .sorpl-ko-menu-head h2, h2.sorpl-live-title,
    .pool-fixtures-results > h1, .sorpl-chat-head h2
) {
    color: var(--sorpl-inner-green) !important;
    font-size: clamp(24px, 2.8vw, 32px) !important;
    font-weight: 600 !important;
    line-height: 1.25 !important;
    letter-spacing: -.025em;
}
body.page .entry-content :is(
    .sorpl-ko-menu-head h2, .sorpl-chat-head h2
) { margin: 0 0 7px !important; }
body.page .entry-content :is(
    .sorpl-ko-menu-head p, .sorpl-chat-head p
) { color: #4e6257 !important; font-size: 15px; margin: 0; }
body.page .entry-content :is(
    .pool-fixtures-results h2, .pool-team-profile__section-title,
    .pool-section-title, .pool-match-details__section-title,
    .sorpl-section-heading, .sorpl-teams-heading, .sorpl-team-name
) {
    font-size: clamp(20px, 2vw, 25px) !important;
    font-weight: 600 !important;
    line-height: 1.3;
    color: var(--sorpl-inner-green);
    margin-top: 22px;
    margin-bottom: 13px;
}
body.page .entry-content :is(
    .pool-fixtures-results, .sorpl-standings, .sorpl-player-stats,
    .pool-team-profile, .sorpl-player-profile, .pool-match-details,
    .sorpl-teams-directory
) table {
    width: max-content !important;
    font-size: 15.5px;
    line-height: 1.45;
    font-variant-numeric: tabular-nums;
    border-collapse: collapse;
    background: #fff;
}
body.page .entry-content :is(
    .pool-fixtures-results, .sorpl-standings, .sorpl-player-stats,
    .pool-team-profile, .sorpl-player-profile, .pool-match-details,
    .sorpl-teams-directory
) th {
    background: var(--sorpl-inner-green) !important;
    color: #fff !important;
    font-weight: 600 !important;
    padding: 12px 13px !important;
    border-color: #355c4d !important;
}
body.page .entry-content :is(
    .pool-fixtures-results, .sorpl-standings, .sorpl-player-stats,
    .pool-team-profile, .sorpl-player-profile, .pool-match-details,
    .sorpl-teams-directory
) td {
    padding: 11px 13px !important;
    border-color: #e2e9e4 !important;
}
body.page .entry-content :is(
    .pool-fixtures-results, .sorpl-standings, .sorpl-player-stats,
    .pool-team-profile, .sorpl-player-profile, .pool-match-details,
    .sorpl-teams-directory
) tbody tr:nth-child(even) { background: var(--sorpl-inner-soft); }
body.page .entry-content :is(
    .pool-fixtures-results, .sorpl-standings, .sorpl-player-stats,
    .pool-team-profile, .sorpl-player-profile, .pool-match-details,
    .sorpl-teams-directory
) td a {
    font-weight: 500 !important;
    color: #19573d;
    text-underline-offset: 3px;
    text-decoration-thickness: 1px;
}
body.page .entry-content :is(
    .pool-score, .sorpl-standings-points, .pool-total-row,
    .pool-match-details__winner, .pool-eligibility,
    .sorpl-role, .pool-team-profile__role
) { font-weight: 600 !important; }
body.page .entry-content :is(
    .pool-table-wrap, .sorpl-standings-scroll, .sorpl-ps-scroll,
    .pool-team-profile__table-wrap, .pool-table-scroll,
    .pool-match-details__table-wrap, .sorpl-roster-scroll
) {
    max-width: 100%;
    min-width: 0;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    border-radius: 10px;
    border-color: var(--sorpl-inner-border);
    scrollbar-color: #89a695 #edf3ef;
    width: fit-content !important;
    margin-left: 0;
    margin-right: 0;
}
body.page .sorpl-player-stats table { min-width: 1000px; }
body.page .pool-team-profile__table { min-width: 350px; }
body.page .pool-fixtures-results :is(.pool-home,.pool-date) { text-align: left; }
body.page .entry-content :is(
    .pool-competition, .sorpl-ps-info, .pool-profile-info,
    .pool-participation-card, .pool-match-details__summary,
    .sorpl-live-card, .sorpl-venue-card
) {
    background: #fff;
    border: 1px solid var(--sorpl-inner-border);
    border-radius: 12px;
    padding: 18px 22px;
    margin-bottom: 20px;
    box-shadow: 0 3px 12px rgba(20,63,50,.025);
}
body.page .pool-match-details__date { margin-bottom: 14px; }
body.page .pool-match-details__team { font-weight: 600; }
body.page .pool-match-details__score { font-weight: 600; padding: 10px 20px; }
body.page .sorpl-teams-directory .sorpl-venue-heading {
    background: #edf3ef;
    color: var(--sorpl-inner-green);
    font-size: clamp(21px, 2.2vw, 27px);
    font-weight: 600;
    padding: 13px 16px;
    margin-bottom: 18px;
}
body.page .sorpl-teams-directory .sorpl-team-card { padding: 16px; background: #fbfdfb; }
body.page .sorpl-teams-directory .sorpl-team-name { margin-top: 0; }
body.page .sorpl-ko-grid { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 16px; }
body.page .sorpl-ko-card,
body.page .sorpl-ko-card:nth-child(odd) {
    display: flex;
    flex-direction: column;
    min-height: 0;
    padding: 22px;
    border: 1px solid var(--sorpl-inner-border);
    border-top: 4px solid #346b50;
    background: #fff !important;
    color: var(--sorpl-inner-green) !important;
    border-radius: 12px;
    box-shadow: 0 3px 12px rgba(20,63,50,.04);
}
body.page .sorpl-ko-card:nth-child(odd) { border-top-color: #b49c58; }
body.page .sorpl-ko-card h3 { font-size: 23px; font-weight: 600; margin: 0 0 12px; }
body.page .sorpl-ko-card p { font-size: 15.5px; margin-bottom: 18px; color: #4e6257; }
body.page .sorpl-ko-rule { font-size: 14px; font-weight: 600; }
body.page .sorpl-ko-card:hover { border-color: #759d85; box-shadow: 0 5px 18px rgba(20,63,50,.09); }
body.page .sorpl-ps-tools { padding: 16px; background: #fff; gap: 10px; }
body.page .sorpl-ps-tools label { font-size: 14px; font-weight: 500; min-width: 140px; }
body.page .sorpl-ps-tools :is(input:not([type=checkbox]),select,button,.ps-reset) {
    min-height: 44px;
    box-sizing: border-box;
    font-size: 16px;
    border-radius: 8px;
}
body.page .sorpl-ps-tools :is(button,.ps-reset) { padding: 11px 14px; font-weight: 500; }
body.page .sorpl-player-stats .ps-pager :is(a,strong) { min-width: 44px; padding: 11px 14px; border-radius: 8px; }
body.page .sorpl-league-chat .sorpl-chat-head { margin-bottom: 0 !important; border-radius: 12px 12px 0 0 !important; }
body.page .sorpl-league-chat .sorpl-chat-box { border-radius: 0 0 12px 12px; }
body.page .sorpl-league-chat .sorpl-chat-messages { height: min(55svh,480px); min-height: 260px; }
body.page .sorpl-league-chat .sorpl-send { font-weight: 600; }
body.page .sorpl-live-centre .sorpl-live-score { font-weight: 600; }
body.page .sorpl-live-centre .sorpl-live-card { margin: 16px 0; }
body.page .sorpl-live-centre p.sorpl-live-title { text-align: left; font-size: 15px; margin-bottom: 20px; }
body.page .entry-content :is(.pool-fixtures-results,.sorpl-standings,.sorpl-player-stats,.pool-team-profile,.sorpl-player-profile,.pool-match-details,.sorpl-teams-directory,.sorpl-ko-menu-wrap,.sorpl-live-centre,.sorpl-league-chat) :is(a,button,input,select,textarea):focus-visible {
    outline: 3px solid #b49c58;
    outline-offset: 3px;
}
@media (max-width: 1050px) {
    body.page .sorpl-ko-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 700px) {
    body.page .wp-site-blocks > header > .wp-block-group { padding: 12px !important; }
    body.page main .entry-content { padding: 16px 10px 28px !important; }
    body.page .entry-content :is(
        .sorpl-standings-heading,.sorpl-ps-heading,.pool-team-profile__header,
        .pool-profile-heading,.pool-match-details__header,.sorpl-directory-heading,
        .sorpl-ko-menu-head,h2.sorpl-live-title,.pool-fixtures-results > h1,.sorpl-chat-head
    ) { padding: 4px 0 !important; margin-bottom: 16px !important; }
    body.page .entry-content :is(
        .pool-fixtures-results,.sorpl-standings,.sorpl-player-stats,
        .pool-team-profile,.sorpl-player-profile,.pool-match-details,.sorpl-teams-directory
    ) :is(th,td) { padding: 10px 9px !important; font-size: 14px; }
    body.page .pool-fixtures-results table { min-width: 0; }
    body.page .pool-fixtures-results :is(th,td) { white-space: nowrap; }
    body.page .pool-team-profile__table { min-width: 0; }
    body.page .wp-site-blocks > header .wp-block-site-logo img { width: 40px; height: 40px; }
    body.page .entry-content :is(
        .pool-competition,.sorpl-ps-info,.pool-profile-info,.pool-participation-card,
        .pool-match-details__summary,.sorpl-live-card,.sorpl-venue-card
    ) { padding: 15px; }
    body.page .sorpl-teams-directory .sorpl-team-card { padding: 12px; }
    body.page .sorpl-teams-directory .sorpl-venue-grid { gap: 16px; }
    body.page .sorpl-ps-tools { padding: 12px; gap: 10px; }
    body.page .sorpl-ps-tools label { flex: 1 1 calc(50% - 10px); min-width: 0; }
    body.page .sorpl-ps-tools :is(button,.ps-reset) { flex: 1; text-align: center; }
    body.page .sorpl-player-stats .sorpl-ps-scroll::before {
        content: "Swipe sideways for all columns \2192";
        padding: 9px 12px;
        font-size: 13px;
    }
    body.page :is(.sorpl-player-stats,.sorpl-standings) :is(th,td):first-child {
        position: sticky;
        left: 0;
        z-index: 1;
    }
    body.page :is(.sorpl-player-stats,.sorpl-standings) td:first-child { background: #fff; }
    body.page :is(.sorpl-player-stats,.sorpl-standings) tbody tr:nth-child(even) td:first-child { background: var(--sorpl-inner-soft); }
    body.page .sorpl-ko-grid { grid-template-columns: 1fr; gap: 12px; }
    body.page .sorpl-ko-card { padding: 18px; }
    body.page .sorpl-ko-card h3 { font-size: 22px; }
    body.page .sorpl-league-chat .sorpl-chat-head { margin-bottom: 0 !important; }
    body.page .sorpl-league-chat .sorpl-chat-messages { height: 52svh; min-height: 240px; }
}
@media (prefers-reduced-motion: reduce) {
    body.page .sorpl-ko-card { transition: none; }
    body.page .sorpl-ko-card:hover { transform: none; }
}
