/* =========================================================
   H2H HEADER GLOBAL CSS
   Same header CSS everywhere.
   This does NOT redesign the header; it only makes all pages
   read the same header sizing/rules that Home already uses.
========================================================= */

/* keep header/dropdowns/search above page content */
.h2h-header,
.h2h-nav,
.h2h-nav-dropdown,
.h2h-nav-dropdown-menu,
.h2h-header-actions,
.h2h-live-search {
    overflow: visible !important;
}

.h2h-header {
    position: relative;
    z-index: 99999;
}

.h2h-live-search-panel {
    z-index: 999999 !important;
}

/* =========================================================
   SAME COMPACT HEADER RULES AS HOME / h2h-pages.css
========================================================= */
@media (max-width: 1500px) {
    .h2h-header {
        min-height: 64px !important;
        padding: 0 18px !important;
    }

    .h2h-logo img,
    .h2h-brand-logo img {
        max-height: 42px !important;
    }

    .h2h-brand-title,
    .h2h-logo-title {
        font-size: 22px !important;
        line-height: 1 !important;
    }

    .h2h-brand-subtitle,
    .h2h-logo-subtitle {
        font-size: 9px !important;
        letter-spacing: 2px !important;
    }

    .h2h-nav {
        gap: 16px !important;
    }

    .h2h-nav a,
    .h2h-nav-link,
    .h2h-nav-dropbtn {
        font-size: 12px !important;
        line-height: 1.1 !important;
        padding: 20px 0 !important;
        white-space: nowrap !important;
    }

    .h2h-nav-dropdown-menu a {
        font-size: 12px !important;
        padding: 10px 12px !important;
    }

    .h2h-header-actions {
        gap: 8px !important;
    }

    .h2h-search,
    .h2h-header-search input {
        width: 210px !important;
        height: 42px !important;
        font-size: 13px !important;
    }

    .h2h-telegram-btn,
    .h2h-header-btn,
    .h2h-icon-btn {
        height: 42px !important;
        min-width: 42px !important;
        font-size: 13px !important;
        padding: 0 13px !important;
    }
}

@media (max-width: 1350px) {
    .h2h-nav {
        gap: 12px !important;
    }

    .h2h-nav a,
    .h2h-nav-link,
    .h2h-nav-dropbtn {
        font-size: 11px !important;
    }

    .h2h-header-search,
    .h2h-search {
        width: 170px !important;
    }
}

/* =========================================================
   H2H HEADER GLOBAL CSS
   Same header CSS everywhere.
   This does NOT redesign the header; it only makes all pages
   read the same header sizing/rules that Home already uses.
========================================================= */

/* keep header/dropdowns/search above page content */
.h2h-header,
.h2h-nav,
.h2h-nav-dropdown,
.h2h-nav-dropdown-menu,
.h2h-header-actions,
.h2h-live-search {
    overflow: visible !important;
}

.h2h-header {
    position: relative;
    z-index: 99999;
}

.h2h-live-search-panel {
    z-index: 999999 !important;
}

/* =========================================================
   SAME COMPACT HEADER RULES AS HOME / h2h-pages.css
========================================================= */
@media (max-width: 1500px) {
    .h2h-header {
        min-height: 64px !important;
        padding: 0 18px !important;
    }

    .h2h-logo img,
    .h2h-brand-logo img {
        max-height: 42px !important;
    }

    .h2h-brand-title,
    .h2h-logo-title {
        font-size: 22px !important;
        line-height: 1 !important;
    }

    .h2h-brand-subtitle,
    .h2h-logo-subtitle {
        font-size: 9px !important;
        letter-spacing: 2px !important;
    }

    .h2h-nav {
        gap: 16px !important;
    }

    .h2h-nav a,
    .h2h-nav-link,
    .h2h-nav-dropbtn {
        font-size: 12px !important;
        line-height: 1.1 !important;
        padding: 20px 0 !important;
        white-space: nowrap !important;
    }

    .h2h-nav-dropdown-menu a {
        font-size: 12px !important;
        padding: 10px 12px !important;
    }

    .h2h-header-actions {
        gap: 8px !important;
    }

    .h2h-search,
    .h2h-header-search input {
        width: 210px !important;
        height: 42px !important;
        font-size: 13px !important;
    }

    .h2h-telegram-btn,
    .h2h-header-btn,
    .h2h-icon-btn {
        height: 42px !important;
        min-width: 42px !important;
        font-size: 13px !important;
        padding: 0 13px !important;
    }
}

@media (max-width: 1350px) {
    .h2h-nav {
        gap: 12px !important;
    }

    .h2h-nav a,
    .h2h-nav-link,
    .h2h-nav-dropbtn {
        font-size: 11px !important;
    }

    .h2h-header-search,
    .h2h-search {
        width: 170px !important;
    }
}

/* =========================================================
   MOBILE HEADER - HIDE BONUS + SETTINGS ICONS
   Keep: menu, logo, Telegram, profile/login
========================================================= */
@media (max-width: 768px) {
    .h2h-mobile-hide-action {
        display: none !important;
    }

    .h2h-header-actions {
        gap: 6px !important;
    }

    .h2h-telegram-btn {
        display: inline-flex !important;
        width: 38px !important;
        min-width: 38px !important;
        height: 38px !important;
        padding: 0 !important;
        align-items: center !important;
        justify-content: center !important;
        border-radius: 10px !important;
        font-size: 0 !important;
    }

    .h2h-telegram-btn i {
        font-size: 15px !important;
        margin: 0 !important;
    }

    .h2h-icon-btn {
        width: 38px !important;
        min-width: 38px !important;
        height: 38px !important;
        padding: 0 !important;
    }
}

/* BPW READABLE FONTS V1 */

/* Home: teams, leagues, predictions */
body.h2h-body .bpw-pick-team span {
    font-size:13px!important;
    line-height:1.35!important;
    white-space:normal!important;
}
body.h2h-body .bpw-pick-league span {
    font-size:12px!important;
}
body.h2h-body .bpw-pick-league small,
body.h2h-body .bpw-pick-confidence small {
    font-size:10px!important;
}
body.h2h-body .bpw-pick-row time,
body.h2h-body .bpw-pick-row em {
    font-size:11px!important;
}
body.h2h-body .bpw-pick-row mark {
    font-size:16px!important;
}
body.h2h-body .bpw-landing-title nav a,
body.h2h-body .bpw-view-predictions {
    font-size:11px!important;
}

/* Shared right sidebar on all pages */
body.h2h-body .bpw-side-versus strong,
body.h2h-body .bpw-side-live a div span,
body.h2h-body .bpw-side-trends strong,
body.h2h-body .bpw-dynamic-rightbar h3 {
    font-size:12px!important;
    line-height:1.4!important;
}
body.h2h-body .bpw-side-league,
body.h2h-body .bpw-side-league span,
body.h2h-body .bpw-side-league time,
body.h2h-body .bpw-side-confidence,
body.h2h-body .bpw-side-confidence span,
body.h2h-body .bpw-side-confidence strong,
body.h2h-body .bpw-dynamic-rightbar small,
body.h2h-body .bpw-side-featured > a {
    font-size:11px!important;
    line-height:1.4!important;
}
body.h2h-body .bpw-side-pick strong {
    font-size:14px!important;
}

/* Article previews and resources */
body.h2h-body .bpw-guide-grid p,
body.h2h-body .bpw-resource-row-copy p {
    font-size:13px!important;
    line-height:1.55!important;
}
body.h2h-body .bpw-guide-grid small,
body.h2h-body .bpw-guide-grid span,
body.h2h-body .bpw-story-meta,
body.h2h-body .bpw-story-meta span,
body.h2h-body .bpw-resource-row-action {
    font-size:11px!important;
}

/* Match tabs and statistics labels */
body.h2h-body .modern-match-tabs a,
body.h2h-body .match-subtab,
body.h2h-body .bstat-market-nav a {
    font-size:13px!important;
}
