/* =========================================================
   BILL HILL WICKLOW – CLEAN CONSOLIDATED CSS (SPORTSPRESS)
   CHOSEN HERO SYSTEM: pp-*  (cleanest + most predictable)
   Goals:
   - Keep dark theme + table styling
   - Fix desktop/tablet layout
   - Remove double crest on player pages
   - Prevent ads from breaking layout
   - Remove duplicates/conflicts (single source of truth)
========================================================= */

/* =========================
   THEME TOKENS
   ========================= */
:root{
  --bh-bg:#0b1020;
  --bh-surface:#0f1630;
  --bh-surface-2:#0c132a;
  --bh-head:#151f3f;
  --bh-head-2:#101939;
  --bh-line:rgba(255,255,255,.10);
  --bh-line-2:rgba(255,255,255,.07);
  --bh-text:rgba(255,255,255,.92);
  --bh-muted:rgba(255,255,255,.70);
  --bh-accent:#3dd6b3;
  --bh-gold:#f5c84c;
  --bh-radius:16px;
  --bh-shadow:0 12px 30px rgba(0,0,0,.28);
}

body{
  background:
    radial-gradient(1200px 600px at 50% -10%, rgba(61,214,179,.10), transparent 60%),
    radial-gradient(900px 500px at 15% 10%, rgba(47,107,255,.10), transparent 65%),
    var(--bh-bg);
  color:var(--bh-text);
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
}

.entry-content p{ visibility:visible; }

/* Safer box sizing without nuking the whole site */
.sp-template *,
.sportspress *{
  box-sizing:border-box;
}

table.sp-data-table,
table.sp-player-list,
table.sp-league-table,
table.sp-event-list{
  font-variant-numeric:tabular-nums;
}

/* =========================
   WRAPPERS / SCROLL BEHAVIOUR
   Default: no sideways page swipe.
   We only allow horizontal scroll on “wide tables”.
   ========================= */
.sp-table-wrapper{
  overflow-x:hidden;
  overflow-y:visible;
  -webkit-overflow-scrolling:touch;
}

/* Allow horizontal scrolling only where needed */
.sp-template-player-list .sp-table-wrapper,
.sp-template-league-table .sp-table-wrapper,
.sp-template-event-performance .sp-table-wrapper,
.sp-template-event-statistics .sp-table-wrapper,
.sp-template-event-results .sp-table-wrapper,
.sp-template-event-details .sp-table-wrapper,
.sp-template-event-standings .sp-table-wrapper{
  overflow-x:auto;
  overscroll-behavior-x:contain;
  -webkit-overflow-scrolling:touch;
}

/* Never allow Past Meetings / Event List to become sideways swipe */
.sp-template-event-list .sp-table-wrapper{
  overflow-x:hidden !important;
}

/* =========================
   BASE TABLE LOOK (Sportspress)
   ========================= */
.sp-table-wrapper :is(table.sp-data-table, table.sp-player-list, table.sp-league-table){
  width:100%;
  border-collapse:separate !important;
  border-spacing:0 !important;
  border:1px solid var(--bh-line);
  border-radius:var(--bh-radius);
  overflow:hidden;
  background:var(--bh-surface);
  box-shadow:var(--bh-shadow);
  color:var(--bh-text);
}

.sp-table-wrapper :is(table.sp-data-table, table.sp-player-list, table.sp-league-table) thead th{
  background:linear-gradient(180deg,var(--bh-head) 0%,var(--bh-head-2) 100%);
  color:#fff;
  font-weight:800;
  letter-spacing:.02em;
  font-size:12px;
  padding:10px 10px;
  border-bottom:1px solid var(--bh-line);
  border-right:1px solid var(--bh-line);
  white-space:nowrap;
  text-align:center;
  position:relative;
}

.sp-table-wrapper :is(table.sp-data-table, table.sp-player-list, table.sp-league-table) thead th:last-child{
  border-right:0;
}

/* Kill theme pseudo sort arrows etc */
.sp-table-wrapper :is(table.sp-data-table, table.sp-player-list, table.sp-league-table) thead th::before,
.sp-table-wrapper :is(table.sp-data-table, table.sp-player-list, table.sp-league-table) thead th::after{
  content:none !important;
  display:none !important;
}

.sp-table-wrapper :is(table.sp-data-table, table.sp-player-list, table.sp-league-table) tbody td{
  padding:10px 10px;
  border-bottom:1px solid var(--bh-line-2);
  border-right:1px solid var(--bh-line-2);
  background:var(--bh-surface);
  white-space:nowrap;
  vertical-align:middle;
  font-size:15px;
  color:var(--bh-text);
  text-align:center;
}

.sp-table-wrapper :is(table.sp-data-table, table.sp-player-list, table.sp-league-table) tbody tr:nth-child(even) td{
  background:var(--bh-surface-2);
}

.sp-table-wrapper :is(table.sp-data-table, table.sp-player-list, table.sp-league-table) tbody tr td:last-child{
  border-right:0;
}

.sp-table-wrapper :is(table.sp-data-table, table.sp-player-list, table.sp-league-table) tbody tr:last-child td{
  border-bottom:0;
}

.sp-table-wrapper :is(table.sp-data-table, table.sp-player-list, table.sp-league-table) img{
  max-height:30px;
  width:auto;
  height:auto;
  vertical-align:middle;
}

@media (hover:hover){
  .sp-table-wrapper :is(table.sp-data-table, table.sp-player-list, table.sp-league-table) tbody tr:hover td{
    background:rgba(61,214,179,.10) !important;
  }
}

/* Player list highlights */
.sp-template-player-list .sp-table-wrapper :is(table.sp-data-table, table.sp-player-list) tbody td:nth-child(2){
  text-align:left;
  font-weight:800;
  color:var(--bh-gold);
}
.sp-template-player-list .sp-table-wrapper :is(table.sp-data-table, table.sp-player-list) tbody td:nth-child(1){
  font-weight:800;
  color:#fff;
}
.sp-template-player-list .sp-table-wrapper :is(table.sp-data-table, table.sp-player-list) tbody td:nth-child(6){
  background:rgba(47,107,255,.14) !important;
  font-weight:850;
  color:#fff;
}

/* Player list responsive tweaks */
@media (max-width:820px){
  .sp-template-player-list .sp-table-wrapper :is(table.sp-data-table, table.sp-player-list){ min-width:520px; }
  .sp-template-player-list .sp-table-wrapper :is(table.sp-data-table, table.sp-player-list) thead th{ padding:9px 8px; font-size:11px; }
  .sp-template-player-list .sp-table-wrapper :is(table.sp-data-table, table.sp-player-list) tbody td{ padding:9px 8px; font-size:14px; }
}

/* Sticky first columns on very small screens */
@media (max-width:430px){
  .sp-template-player-list .sp-table-wrapper :is(table.sp-data-table, table.sp-player-list){
    min-width:412px !important;
    table-layout:fixed !important;
  }

  .sp-template-player-list .sp-table-wrapper :is(table.sp-data-table, table.sp-player-list) thead th{
    position:sticky;
    top:0;
    z-index:30;
    background:linear-gradient(180deg,var(--bh-head) 0%,var(--bh-head-2) 100%) !important;
  }

  .sp-template-player-list .sp-table-wrapper :is(table.sp-data-table, table.sp-player-list) thead th:nth-child(1),
  .sp-template-player-list .sp-table-wrapper :is(table.sp-data-table, table.sp-player-list) tbody td:nth-child(1){
    width:30px !important; min-width:30px !important; max-width:30px !important;
    padding-left:4px !important; padding-right:4px !important;
  }

  .sp-template-player-list .sp-table-wrapper :is(table.sp-data-table, table.sp-player-list) thead th:nth-child(2),
  .sp-template-player-list .sp-table-wrapper :is(table.sp-data-table, table.sp-player-list) tbody td:nth-child(2){
    width:150px !important; min-width:150px !important; max-width:150px !important;
    overflow:hidden !important; text-overflow:ellipsis !important;
    text-align:left !important;
  }

  .sp-template-player-list .sp-table-wrapper :is(table.sp-data-table, table.sp-player-list) thead th:nth-child(3),
  .sp-template-player-list .sp-table-wrapper :is(table.sp-data-table, table.sp-player-list) tbody td:nth-child(3){
    width:38px !important; min-width:38px !important; max-width:38px !important;
    padding-left:3px !important; padding-right:3px !important;
  }

  .sp-template-player-list .sp-table-wrapper :is(table.sp-data-table, table.sp-player-list) thead th:nth-child(4),
  .sp-template-player-list .sp-table-wrapper :is(table.sp-data-table, table.sp-player-list) tbody td:nth-child(4),
  .sp-template-player-list .sp-table-wrapper :is(table.sp-data-table, table.sp-player-list) thead th:nth-child(5),
  .sp-template-player-list .sp-table-wrapper :is(table.sp-data-table, table.sp-player-list) tbody td:nth-child(5),
  .sp-template-player-list .sp-table-wrapper :is(table.sp-data-table, table.sp-player-list) thead th:nth-child(6),
  .sp-template-player-list .sp-table-wrapper :is(table.sp-data-table, table.sp-player-list) tbody td:nth-child(6){
    width:44px !important; min-width:44px !important; max-width:44px !important;
    padding-left:3px !important; padding-right:3px !important;
  }

  .sp-template-player-list .sp-table-wrapper :is(table.sp-data-table, table.sp-player-list) thead th:nth-child(1){
    position:sticky !important;
    left:0 !important;
    z-index:51 !important;
    border-right:1px solid var(--bh-line) !important;
  }
  .sp-template-player-list .sp-table-wrapper :is(table.sp-data-table, table.sp-player-list) tbody td:nth-child(1){
    position:sticky !important;
    left:0 !important;
    z-index:41 !important;
    background:var(--bh-surface) !important;
    border-right:1px solid var(--bh-line) !important;
  }
  .sp-template-player-list .sp-table-wrapper :is(table.sp-data-table, table.sp-player-list) thead th:nth-child(2){
    position:sticky !important;
    left:30px !important;
    z-index:50 !important;
    text-align:left !important;
    border-right:1px solid var(--bh-line) !important;
  }
  .sp-template-player-list .sp-table-wrapper :is(table.sp-data-table, table.sp-player-list) tbody td:nth-child(2){
    position:sticky !important;
    left:30px !important;
    z-index:40 !important;
    background:var(--bh-surface) !important;
    border-right:1px solid var(--bh-line) !important;
  }

  .sp-template-player-list .sp-table-wrapper :is(table.sp-data-table, table.sp-player-list) tbody tr:nth-child(even) td:nth-child(1),
  .sp-template-player-list .sp-table-wrapper :is(table.sp-data-table, table.sp-player-list) tbody tr:nth-child(even) td:nth-child(2){
    background:var(--bh-surface-2) !important;
  }

  .sp-template-player-list .sp-table-wrapper :is(table.sp-data-table, table.sp-player-list) td img{
    max-height:22px !important;
  }
}

/* =========================
   EVENT PAGE: iOS scroll sanity (no scroll lock)
   ========================= */
@media (max-width:480px){
  body.single-sp_event{ overflow-x:hidden !important; }

  body.single-sp_event .sp-template,
  body.single-sp_event .sp-section-content,
  body.single-sp_event .sp-scrollable-table-wrapper,
  body.single-sp_event .sp-tab-content{
    overflow:visible !important;
    -webkit-overflow-scrolling:auto !important;
    touch-action:pan-y !important;
  }

  body.single-sp_event .sp-table-wrapper{
    overflow-y:visible !important;
    touch-action:pan-x pan-y !important;
  }

  body.single-sp_event .sp-section,
  body.single-sp_event .sp-section-content,
  body.single-sp_event .entry-content{
    overflow:visible !important;
  }
}

/* =========================
   EVENT TOP CARD (single-sp_event): stable grid card
   Works with anchors or spans
   ========================= */
body.single-sp_event table.sp-event-list tr.sp-row > td{
  display:grid !important;
  grid-template-columns:1fr auto 1fr;
  grid-template-areas:
    "home score away"
    "date date date"
    "status status status";
  gap:10px 12px;
  align-items:center;
  justify-items:center;

  padding:18px 16px !important;
  background:linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.02));
  border:1px solid var(--bh-line);
  border-radius:var(--bh-radius);
  box-shadow:var(--bh-shadow);
}

body.single-sp_event table.sp-event-list tr.sp-row > td > :is(a.team-logo.logo-odd, a.logo-odd, span.team-logo.logo-odd, span.logo-odd){
  grid-area:home;
  justify-self:start;
}
body.single-sp_event table.sp-event-list tr.sp-row > td > :is(a.team-logo.logo-even, a.logo-even, span.team-logo.logo-even, span.logo-even){
  grid-area:away;
  justify-self:end;
}

body.single-sp_event table.sp-event-list tr.sp-row > td > time.sp-event-date{ grid-area:date; }
body.single-sp_event table.sp-event-list tr.sp-row > td > h5.sp-event-results{ grid-area:score; margin:0 !important; }
body.single-sp_event table.sp-event-list tr.sp-row > td > span.sp-event-status{ grid-area:status; }

/* Team blocks in top card: crest above name, consistent */
body.single-sp_event table.sp-event-list tr.sp-row > td > :is(a.team-logo, a.logo-odd, a.logo-even){
  display:flex !important;
  flex-direction:column !important;
  align-items:center !important;
  justify-content:center !important;
  gap:8px !important;
  text-decoration:none !important;
  color:var(--bh-text) !important;
  max-width:42vw;
}

/* Force crest first even if HTML is reversed */
body.single-sp_event table.sp-event-list tr.sp-row > td > :is(a.team-logo, a.logo-odd, a.logo-even) img{ order:1 !important; }
body.single-sp_event table.sp-event-list tr.sp-row > td > :is(a.team-logo, a.logo-odd, a.logo-even) .sp-team-name{ order:2 !important; }

body.single-sp_event table.sp-event-list tr.sp-row > td > :is(a.team-logo, a.logo-odd, a.logo-even) img{
  width:72px !important;
  height:72px !important;
  object-fit:contain !important;
  display:block !important;
  filter: drop-shadow(0 10px 18px rgba(0,0,0,.35)) !important;
  border-radius:999px !important;
  box-shadow:
    0 0 0 2px rgba(255,255,255,.14),
    0 0 0 8px rgba(255,255,255,.04) !important;
}

body.single-sp_event table.sp-event-list tr.sp-row > td .sp-team-name{
  font-weight:900 !important;
  text-align:center !important;
  white-space:nowrap !important;
  overflow:hidden !important;
  text-overflow:ellipsis !important;
  max-width:42vw !important;
  color:rgba(255,255,255,.95) !important;
  font-size:15px !important;
}

body.single-sp_event table.sp-event-list time.sp-event-date{
  font-size:13px !important;
  color:var(--bh-muted) !important;
}

body.single-sp_event table.sp-event-list h5.sp-event-results{
  font-size:26px !important;
  font-weight:950 !important;
  letter-spacing:.02em;
}

body.single-sp_event table.sp-event-list .sp-event-status{
  display:inline-flex !important;
  align-items:center;
  justify-content:center;
  padding:10px 14px;
  border-radius:999px;
  background:rgba(245,200,76,.18);
  border:1px solid rgba(245,200,76,.30);
  color:#fff;
  font-weight:850;
  width:fit-content;
}

/* Card spacing on mobile */
@media (max-width:480px){
  body.single-sp_event table.sp-event-list tr.sp-row > td{
    margin:0 14px 16px !important;
    width:calc(100% - 28px) !important;
  }
}

/* Make the table behave like card list (spacing between rows) */
body.single-sp_event .sp-template-event-list,
body.single-sp_event .sp-template-event-list .sp-table-wrapper{
  overflow:visible !important;
}
body.single-sp_event table.sp-event-list{
  width:100% !important;
  border-collapse:separate !important;
  border-spacing:0 14px !important;
}

/* =========================
   PAST MEETINGS: no sideways swipe + wrapping
   ========================= */
.sp-template-event-list table.sp-event-list{
  width:100% !important;
  max-width:100% !important;
  table-layout:fixed !important;
}

.sp-template-event-list table.sp-event-list td{
  white-space:normal !important;
  overflow-wrap:anywhere !important;
  word-break:break-word !important;
}

.sp-template-event-list table.sp-event-list .sp-event-title a,
.sp-template-event-list table.sp-event-list .sp-event-league,
.sp-template-event-list table.sp-event-list .sp-event-season,
.sp-template-event-list table.sp-event-list .sp-event-venue{
  white-space:normal !important;
  overflow-wrap:anywhere !important;
  word-break:break-word !important;
}

.sp-template-event-list table.sp-event-list .sp-event-results a{
  white-space:nowrap !important;
}

/* =========================
   EVENT: statistic bars
   ========================= */
body.single-sp_event :is(.sp-template-event-statistics, .sp-template-event-performance)
:is(.sp-statistic-bar, .sp-statistic-ratio .sp-statistic-bar){
  background:#0a0f1f !important;
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.08) !important;
  border-radius:6px !important;
}

body.single-sp_event :is(.sp-template-event-statistics, .sp-template-event-performance)
:is(.sp-statistic-bar-fill, .sp-statistic-ratio .sp-statistic-bar-fill){
  background:var(--bh-gold) !important;
  border-radius:6px !important;
}

/* =========================
   SEARCH + PAGINATION
   ========================= */
.wp-block-search{
  max-width:min(980px, 100%);
  margin-left:auto;
  margin-right:auto;
}

.wp-block-search__inside-wrapper{
  border-radius:999px;
  border:1px solid rgba(255,255,255,.16);
  background:rgba(255,255,255,.06);
  padding:6px;
  gap:8px;
  box-shadow:0 10px 25px rgba(0,0,0,.22);
  backdrop-filter:blur(6px);
}

.wp-block-search__input{
  border:0 !important;
  background:transparent !important;
  color:var(--bh-text) !important;
  padding:14px 16px;
  outline:none;
}

.wp-block-search__button{
  border-radius:999px;
  border:0;
  padding:12px 18px;
  font-weight:800;
  cursor:pointer;
  background:var(--bh-accent);
  color:#001a1f;
  transition:transform .15s ease, box-shadow .15s ease;
}

.wp-block-search__button:hover{
  transform:translateY(-1px);
  box-shadow:0 10px 22px rgba(0,0,0,.25);
}

@media (max-width:600px){
  .wp-block-search__inside-wrapper{ border-radius:16px; }
  .wp-block-search__button{ width:100%; }
}

.wp-block-query-pagination{
  display:flex;
  justify-content:center;
  gap:6px;
  flex-wrap:wrap;
}

.wp-block-query-pagination a,
.wp-block-query-pagination span{
  padding:10px 14px;
  border-radius:10px;
  background:rgba(255,255,255,0.08);
  color:#ffffff;
  font-weight:700;
  transition:background .2s ease, transform .15s ease;
}

.wp-block-query-pagination a:hover{
  background:rgba(255,255,255,0.15);
  transform:translateY(-1px);
}

.wp-block-query-pagination .current{
  background:var(--bh-accent);
  color:#001a1f;
}

@media (max-width:600px){
  .wp-block-query-pagination a,
  .wp-block-query-pagination span{
    padding:14px 16px;
    font-size:15px;
  }
}

/* =========================
   SINGLE POSTS (optional, kept)
   ========================= */
body.single-post{
  background:#050914;
  color:var(--bh-text);
}

.single-post .entry-content{
  max-width:1100px;
  margin:24px auto 56px;
  padding:clamp(18px, 3vw, 44px);
  background:linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.03));
  border:1px solid var(--bh-line);
  border-radius:18px;
  box-shadow:0 30px 70px rgba(0,0,0,.45);
  backdrop-filter:blur(10px);
}

.single-post .entry-content p,
.single-post .entry-content li{
  color:var(--bh-text);
  font-size:18px;
  line-height:1.75;
  letter-spacing:.15px;
}

@media (max-width:480px){
  .single-post .entry-content p,
  .single-post .entry-content li{ font-size:16.5px; }
}

.single-post .entry-content h1,
.single-post .entry-content h2,
.single-post .entry-content h3,
.single-post .entry-content h4{ color:#fff; }

.single-post .entry-content a{
  color:#7dd3fc;
  text-decoration:none;
  border-bottom:1px solid rgba(125,211,252,.35);
}

.single-post .entry-content a:hover{
  color:#a5f3fc;
  border-bottom-color:rgba(165,243,252,.7);
}

/* =========================================================
   PLAYER PAGES (single-sp_player) – CONSOLIDATED
   Uses pp-* hero + stats section
========================================================= */

/* 0) Prevent page-wide sideways scroll without breaking tables */
body.single-sp_player{
  overflow-x:hidden;
}

/* 1) Remove theme “constrained width” and keep a centered inner max-width */
body.single-sp_player .wp-site-blocks,
body.single-sp_player main,
body.single-sp_player article,
body.single-sp_player .entry-content,
body.single-sp_player .wp-block-post-content{
  max-width:none !important;
  width:100% !important;
}

/* 2) Kill ads/affiliate widgets that break layout (targeted + safe-ish) */
body.single-sp_player ins.adsbygoogle,
body.single-sp_player .adsbygoogle,
body.single-sp_player .google-auto-placed,
body.single-sp_player .advanced-ads,
body.single-sp_player .advanced-ads-wrapper,
body.single-sp_player .jetpack-ad,
body.single-sp_player iframe[src*="doubleclick"],
body.single-sp_player iframe[src*="googlesyndication"],
body.single-sp_player iframe[src*="adservice"],
body.single-sp_player [class*="organicstax"],
body.single-sp_player [id*="organicstax"],
body.single-sp_player [class*="getyourguide"],
body.single-sp_player iframe[src*="getyourguide"]{
  display:none !important;
}

/* Also stop any remaining auto-placed iframes from forcing width */
body.single-sp_player iframe{
  max-width:100% !important;
}

/* 3) Remove duplicate Sportspress player photo/crest (double crest fix) */
body.single-sp_player .sportspress .sp-template-player-photo,
body.single-sp_player .sportspress .sp-player-photo,
body.single-sp_player .sportspress .sp-template-photo,
body.single-sp_player .sportspress .sp-player-logo,
body.single-sp_player .sportspress .sp-template-player-logo{
  display:none !important;
}

/* 4) pp-* container */
body.single-sp_player .pp-wrap{
  max-width:1200px;
  margin:0 auto;
  padding:0 18px;
}

/* 5) HERO */
body.single-sp_player .pp-hero{
  background:
    radial-gradient(1200px 600px at 20% 20%, rgba(245,200,76,.18), transparent 60%),
    linear-gradient(180deg, #071a2b, #061424);
  color:#fff;
  padding:28px 0;
}

body.single-sp_player .pp-hero-grid{
  display:grid;
  grid-template-columns:320px 1fr;
  gap:22px;
  align-items:center;
}

body.single-sp_player .pp-photo{
  width:100%;
  height:320px;
  object-fit:cover;
  border-radius:18px;
  display:block;
  background:#0c2238;
  box-shadow:0 12px 30px rgba(0,0,0,.35);
}

/* If no image, allow placeholder */
body.single-sp_player .pp-photo--placeholder{
  height:320px;
  border-radius:18px;
  background:linear-gradient(135deg, #0b2742, #071a2b);
  box-shadow:0 12px 30px rgba(0,0,0,.35);
}

body.single-sp_player .pp-card{
  background:rgba(10, 32, 54, .72);
  border:1px solid rgba(255,255,255,.08);
  border-radius:18px;
  padding:18px 18px 14px;
  backdrop-filter:blur(6px);
}

body.single-sp_player .pp-name{
  margin:0 0 12px;
  font-size:clamp(1.8rem, 2.6vw, 2.6rem);
  line-height:1.1;
}

body.single-sp_player .pp-meta{
  list-style:none;
  padding:0;
  margin:0;
  display:grid;
  grid-template-columns:repeat(3, minmax(0, 1fr));
  gap:12px;
}

body.single-sp_player .pp-meta li{
  background:rgba(255,255,255,.06);
  border:1px solid rgba(255,255,255,.08);
  border-radius:14px;
  padding:10px 12px;
}

body.single-sp_player .pp-meta li span{
  display:block;
  font-size:12px;
  opacity:.8;
  margin-bottom:4px;
}

body.single-sp_player .pp-meta li strong{
  display:block;
  font-size:15px;
}

/* Tablet */
@media (max-width:980px){
  body.single-sp_player .pp-hero-grid{ grid-template-columns:260px 1fr; }
  body.single-sp_player .pp-photo,
  body.single-sp_player .pp-photo--placeholder{ height:260px; }
  body.single-sp_player .pp-meta{ grid-template-columns:repeat(2, minmax(0, 1fr)); }
}

/* Mobile */
@media (max-width:680px){
  body.single-sp_player .pp-hero-grid{ grid-template-columns:1fr; }
  body.single-sp_player .pp-photo,
  body.single-sp_player .pp-photo--placeholder{ height:260px; }
  body.single-sp_player .pp-meta{ grid-template-columns:1fr; }
}

/* 6) STATS SECTION */
body.single-sp_player .pp-stats{
  padding:22px 0 40px;
  background:#050f1c;
}

/* Force Sportspress wrappers to full width (fix “tiny left table” on desktop) */
body.single-sp_player .sportspress,
body.single-sp_player .sp-template,
body.single-sp_player .sp-section,
body.single-sp_player .sp-template-player-statistics,
body.single-sp_player .sp-table-wrapper,
body.single-sp_player .sp-scrollable-table-wrapper{
  width:100% !important;
  max-width:100% !important;
  float:none !important;
  display:block !important;
}

/* Desktop/tablet: keep real table layout */
@media (min-width:681px){
  body.single-sp_player .sportspress table{
    display:table !important;
    width:100% !important;
    max-width:100% !important;
    table-layout:auto !important;
  }
}

/* Mobile: allow horizontal scroll INSIDE table wrapper (not on page) */
@media (max-width:680px){
  body.single-sp_player .sportspress .sp-table-wrapper,
  body.single-sp_player .sportspress .sp-scrollable-table-wrapper{
    overflow-x:auto !important;
    -webkit-overflow-scrolling:touch;
  }
  body.single-sp_player .sportspress table{
    display:table !important; /* keep table semantics */
    min-width:620px;         /* gives breathing room; wrapper scrolls */
  }
}

/* Optional: spacing between hero and injected Sportspress content */
body.single-sp_player .sp-player-data{
  margin-top:48px;
  padding-top:32px;
  border-top:1px solid rgba(255,255,255,.12);
}

/* Hide Sportspress duplicate name/number pills (keep your H1 name) */
body.single-sp_player .sp-player-number,
body.single-sp_player .sp-player-name,
body.single-sp_player .sp-player-header,
body.single-sp_player .sp-data-number,
body.single-sp_player .sp-data-name,
body.single-sp_player .sp-player-meta{
  display:none !important;
}

/* Season breakdown: show only totals row if you wrap it with .season-breakdown-only-totals */
body.single-sp_player .season-breakdown-only-totals table tbody{
  display:none !important;
}
body.single-sp_player .season-breakdown-only-totals table{
  border-collapse:separate !important;
  border-spacing:0 12px !important;
}
body.single-sp_player .season-breakdown-only-totals table tfoot tr{
  background:rgba(10, 25, 60, 0.55);
  border:1px solid rgba(255,255,255,0.10);
}
body.single-sp_player .season-breakdown-only-totals table tfoot td,
body.single-sp_player .season-breakdown-only-totals table tfoot th{
  padding:12px 10px !important;
}

/* =========================
   GLOBAL: hide ad placeholders inside paragraphs (sitewide)
   ========================= */
.entry-content p > .advanced-ads,
.entry-content p > ins,
.entry-content p > iframe{
  display:none !important;
}
/* =========================================================
   MOBILE: tighter Sportspress tables (fit screen)
   - smaller padding + font
   - fixed widths for Season + numeric cols
   - Team column truncates (no wrap, no blowout)
========================================================= */
@media (max-width: 480px){

  /* General tightening for SP tables */
  .sp-table-wrapper :is(table.sp-data-table, table.sp-player-list, table.sp-league-table) thead th{
    padding: 8px 6px !important;
    font-size: 11px !important;
    letter-spacing: .01em !important;
  }

  .sp-table-wrapper :is(table.sp-data-table, table.sp-player-list, table.sp-league-table) tbody td{
    padding: 8px 6px !important;
    font-size: 13px !important;
  }

  /* Make columns distribute predictably */
  .sp-table-wrapper :is(table.sp-data-table, table.sp-player-list, table.sp-league-table){
    table-layout: fixed !important;
  }

  /* Column widths (works with your common layout: Season | Team | Goals | Points ...) */
  .sp-table-wrapper :is(table.sp-data-table, table.sp-player-list, table.sp-league-table) :is(th,td):first-child{
    width: 72px !important;          /* Season */
  }

  /* Team column (2nd) gets the flexible space but truncates */
  .sp-table-wrapper :is(table.sp-data-table, table.sp-player-list, table.sp-league-table) :is(th,td):nth-child(2){
    width: auto !important;
    text-align: left !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
  }

  /* Numeric columns tighter */
  .sp-table-wrapper :is(table.sp-data-table, table.sp-player-list, table.sp-league-table) :is(th,td):nth-child(n+3){
    width: 62px !important;
  }

  /* Even tighter on very small phones */
  @media (max-width: 380px){
    .sp-table-wrapper :is(table.sp-data-table, table.sp-player-list, table.sp-league-table) :is(th,td):first-child{
      width: 64px !important;
    }
    .sp-table-wrapper :is(table.sp-data-table, table.sp-player-list, table.sp-league-table) :is(th,td):nth-child(n+3){
      width: 56px !important;
    }
    .sp-table-wrapper :is(table.sp-data-table, table.sp-player-list, table.sp-league-table) tbody td{
      font-size: 12.5px !important;
      padding: 7px 5px !important;
    }
  }
}
/* =========================================================
   PLAYER PAGE – MOBILE TABLE FIT
   Columns: Season | Team | Goals | Points | Total Points
========================================================= */
@media (max-width: 480px){

  /* Force predictable column sizing */
  body.single-sp_player table.sp-data-table{
    table-layout: fixed !important;
  }

  /* --- Season --- */
  body.single-sp_player table.sp-data-table th:nth-child(1),
  body.single-sp_player table.sp-data-table td:nth-child(1){
    width: 64px !important;
    text-align: left !important;
  }

  /* --- Team (tight but readable) --- */
  body.single-sp_player table.sp-data-table th:nth-child(2),
  body.single-sp_player table.sp-data-table td:nth-child(2){
    width: auto !important;
    min-width: 0 !important;
    text-align: left !important;

    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }

  /* --- Goals / Points / Total Points --- */
  body.single-sp_player table.sp-data-table th:nth-child(3),
  body.single-sp_player table.sp-data-table td:nth-child(3),
  body.single-sp_player table.sp-data-table th:nth-child(4),
  body.single-sp_player table.sp-data-table td:nth-child(4),
  body.single-sp_player table.sp-data-table th:nth-child(5),
  body.single-sp_player table.sp-data-table td:nth-child(5){
    width: 58px !important;
    text-align: center !important;
  }

  /* Smaller padding + font = more room */
  body.single-sp_player table.sp-data-table th{
    padding: 7px 6px !important;
    font-size: 11px !important;
  }

  body.single-sp_player table.sp-data-table td{
    padding: 7px 6px !important;
    font-size: 13px !important;
  }
}

/* Extra-tight phones */
@media (max-width: 380px){
  body.single-sp_player table.sp-data-table td{
    font-size: 12.5px !important;
    padding: 6px 5px !important;
  }

  body.single-sp_player table.sp-data-table th:nth-child(3),
  body.single-sp_player table.sp-data-table td:nth-child(3),
  body.single-sp_player table.sp-data-table th:nth-child(4),
  body.single-sp_player table.sp-data-table td:nth-child(4),
  body.single-sp_player table.sp-data-table th:nth-child(5),
  body.single-sp_player table.sp-data-table td:nth-child(5){
    width: 54px !important;
  }
}
/* =========================================================
   PLAYER STATS TABLES (MOBILE): fit ALL columns on screen
   Columns: Season | Team | Goals | Points | Total Pts
   ========================================================= */

@media (max-width: 520px){

  /* Target Sportspress player stats tables on player pages */
  body.single-sp_player .sportspress table.sp-data-table,
  body.single-sp_player table.sp-player-statistics,
  body.single-sp_player .sp-template-player-statistics table,
  body.single-sp_player .sp-player-statistics table{
    width: 100% !important;
    max-width: 100% !important;
    table-layout: fixed !important;     /* KEY: forces columns to obey widths */
  }

  /* Tighten cell padding + font so 5 cols can fit */
  body.single-sp_player .sportspress table.sp-data-table th,
  body.single-sp_player .sportspress table.sp-data-table td,
  body.single-sp_player table.sp-player-statistics th,
  body.single-sp_player table.sp-player-statistics td{
    padding: 8px 6px !important;
    font-size: 13px !important;
    line-height: 1.15 !important;
    white-space: nowrap !important;
  }

  /* --- Column widths (nth-child assumes order: Season, Team, Goals, Points, Total Pts) --- */
  /* Season */
  body.single-sp_player .sportspress table.sp-data-table th:nth-child(1),
  body.single-sp_player .sportspress table.sp-data-table td:nth-child(1),
  body.single-sp_player table.sp-player-statistics th:nth-child(1),
  body.single-sp_player table.sp-player-statistics td:nth-child(1){
    width: 64px !important;
    text-align: left !important;
  }

  /* Team (takes remaining space) */
  body.single-sp_player .sportspress table.sp-data-table th:nth-child(2),
  body.single-sp_player .sportspress table.sp-data-table td:nth-child(2),
  body.single-sp_player table.sp-player-statistics th:nth-child(2),
  body.single-sp_player table.sp-player-statistics td:nth-child(2){
    width: auto !important;
    text-align: left !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important; /* keeps it on one line */
  }

  /* Goals */
  body.single-sp_player .sportspress table.sp-data-table th:nth-child(3),
  body.single-sp_player .sportspress table.sp-data-table td:nth-child(3),
  body.single-sp_player table.sp-player-statistics th:nth-child(3),
  body.single-sp_player table.sp-player-statistics td:nth-child(3){
    width: 52px !important;
    text-align: center !important;
  }

  /* Points */
  body.single-sp_player .sportspress table.sp-data-table th:nth-child(4),
  body.single-sp_player .sportspress table.sp-data-table td:nth-child(4),
  body.single-sp_player table.sp-player-statistics th:nth-child(4),
  body.single-sp_player table.sp-player-statistics td:nth-child(4){
    width: 58px !important;
    text-align: center !important;
  }

  /* Total Pts */
  body.single-sp_player .sportspress table.sp-data-table th:nth-child(5),
  body.single-sp_player .sportspress table.sp-data-table td:nth-child(5),
  body.single-sp_player table.sp-player-statistics th:nth-child(5),
  body.single-sp_player table.sp-player-statistics td:nth-child(5){
    width: 72px !important;
    text-align: center !important;
  }

  /* Make headers a touch tighter too */
  body.single-sp_player .sportspress table.sp-data-table thead th,
  body.single-sp_player table.sp-player-statistics thead th{
    font-size: 12px !important;
    padding: 8px 6px !important;
    letter-spacing: .01em !important;
  }
}

/* Extra-small phones: shave a bit more */
@media (max-width: 380px){
  body.single-sp_player .sportspress table.sp-data-table th,
  body.single-sp_player .sportspress table.sp-data-table td,
  body.single-sp_player table.sp-player-statistics th,
  body.single-sp_player table.sp-player-statistics td{
    padding: 7px 5px !important;
    font-size: 12.5px !important;
  }

  body.single-sp_player .sportspress table.sp-data-table th:nth-child(1),
  body.single-sp_player .sportspress table.sp-data-table td:nth-child(1),
  body.single-sp_player table.sp-player-statistics th:nth-child(1),
  body.single-sp_player table.sp-player-statistics td:nth-child(1){
    width: 60px !important;
  }

  body.single-sp_player .sportspress table.sp-data-table th:nth-child(5),
  body.single-sp_player .sportspress table.sp-data-table td:nth-child(5),
  body.single-sp_player table.sp-player-statistics th:nth-child(5),
  body.single-sp_player table.sp-player-statistics td:nth-child(5){
    width: 68px !important;
  }
}
/* =========================================================
   PLAYER STATS TABLES (single-sp_player): mobile-fit columns
   Uses Sportspress column classes so it also works on
   "Career Total" tables (no Team column).
   ========================================================= */

@media (max-width: 520px){

  /* Make sure these tables are allowed to shrink to the viewport */
  body.single-sp_player .sp-template-player-statistics table.sp-player-statistics{
    width: 100% !important;
    max-width: 100% !important;
    table-layout: fixed !important;     /* critical: obey widths */
  }

  /* Tighten typography + padding so all columns fit */
  body.single-sp_player .sp-template-player-statistics
  table.sp-player-statistics :is(th, td){
    padding: 8px 6px !important;
    font-size: 13px !important;
    line-height: 1.15 !important;
    white-space: nowrap !important;
  }

  /* ----- Column widths by class (MOST IMPORTANT) ----- */
  /* Season */
  body.single-sp_player .sp-template-player-statistics
  table.sp-player-statistics :is(th.data-name, td.data-name){
    width: 62px !important;
    text-align: left !important;
  }

  /* Team (shrink + ellipsis) */
  body.single-sp_player .sp-template-player-statistics
  table.sp-player-statistics :is(th.data-team, td.data-team){
    width: 104px !important;            /* tighten the Team column */
    text-align: left !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }

  /* Goals */
  body.single-sp_player .sp-template-player-statistics
  table.sp-player-statistics :is(th.data-goals, td.data-goals){
    width: 46px !important;
    text-align: center !important;
  }

  /* Points */
  body.single-sp_player .sp-template-player-statistics
  table.sp-player-statistics :is(th.data-points, td.data-points){
    width: 54px !important;
    text-align: center !important;
  }

  /* Total Pts */
  body.single-sp_player .sp-template-player-statistics
  table.sp-player-statistics :is(th.data-total-pts, td.data-total-pts){
    width: 68px !important;
    text-align: center !important;
  }

  /* Make Team links obey ellipsis (anchors can force width otherwise) */
  body.single-sp_player .sp-template-player-statistics
  td.data-team a{
    display: block !important;
    max-width: 100% !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
  }

  /* Header a touch tighter */
  body.single-sp_player .sp-template-player-statistics
  table.sp-player-statistics thead th{
    font-size: 12px !important;
    padding: 8px 6px !important;
    letter-spacing: .01em !important;
  }
}

/* Extra-small phones */
@media (max-width: 380px){
  body.single-sp_player .sp-template-player-statistics
  table.sp-player-statistics :is(th, td){
    padding: 7px 5px !important;
    font-size: 12.5px !important;
  }

  body.single-sp_player .sp-template-player-statistics
  table.sp-player-statistics :is(th.data-name, td.data-name){
    width: 58px !important;
  }

  body.single-sp_player .sp-template-player-statistics
  table.sp-player-statistics :is(th.data-team, td.data-team){
    width: 92px !important;
  }

  body.single-sp_player .sp-template-player-statistics
  table.sp-player-statistics :is(th.data-total-pts, td.data-total-pts){
    width: 64px !important;
  }
}
/* =========================================================
   PLAYER STATS: FORCE 5 COLS TO FIT ON MOBILE (NO H-SCROLL)
   - tighter padding + font
   - fixed column widths
   - abbreviate header labels on small screens
   ========================================================= */

@media (max-width: 520px){

  body.single-sp_player .sp-template-player-statistics .sp-table-wrapper,
  body.single-sp_player .sp-template-player-statistics .sp-scrollable-table-wrapper{
    overflow-x: hidden !important; /* we are making it fit */
  }

  body.single-sp_player .sp-template-player-statistics table.sp-player-statistics{
    width: 100% !important;
    max-width: 100% !important;
    table-layout: fixed !important;  /* MUST be fixed to obey widths */
  }

  body.single-sp_player .sp-template-player-statistics table.sp-player-statistics :is(th,td){
    padding: 7px 5px !important;
    font-size: 12.5px !important;
    line-height: 1.1 !important;
    white-space: nowrap !important;
  }

  /* Column widths (mobile) */
  body.single-sp_player .sp-template-player-statistics table.sp-player-statistics :is(th.data-name,td.data-name){
    width: 56px !important; /* Season */
    text-align: left !important;
  }

  body.single-sp_player .sp-template-player-statistics table.sp-player-statistics :is(th.data-team,td.data-team){
    width: 92px !important; /* Team (tight) */
    text-align: left !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }

  body.single-sp_player .sp-template-player-statistics table.sp-player-statistics :is(th.data-goals,td.data-goals){
    width: 38px !important;
    text-align: center !important;
  }

  body.single-sp_player .sp-template-player-statistics table.sp-player-statistics :is(th.data-points,td.data-points){
    width: 44px !important;
    text-align: center !important;
  }

  body.single-sp_player .sp-template-player-statistics table.sp-player-statistics :is(th.data-total-pts,td.data-total-pts){
    width: 56px !important;
    text-align: center !important;
  }

  /* Team link must allow ellipsis */
  body.single-sp_player .sp-template-player-statistics td.data-team a{
    display:block !important;
    max-width:100% !important;
    overflow:hidden !important;
    text-overflow:ellipsis !important;
    white-space:nowrap !important;
  }
}

/* Even smaller phones: abbreviate header labels to save space */
@media (max-width: 420px){

  body.single-sp_player .sp-template-player-statistics table.sp-player-statistics :is(th,td){
    padding: 6px 4px !important;
    font-size: 12px !important;
  }

  /* shave a bit more from Team + Season */
  body.single-sp_player .sp-template-player-statistics table.sp-player-statistics :is(th.data-name,td.data-name){
    width: 52px !important;
  }
  body.single-sp_player .sp-template-player-statistics table.sp-player-statistics :is(th.data-team,td.data-team){
    width: 82px !important;
  }
  body.single-sp_player .sp-template-player-statistics table.sp-player-statistics :is(th.data-total-pts,td.data-total-pts){
    width: 52px !important;
  }

  /* Replace long header words with short ones (keeps layout tight) */
  body.single-sp_player .sp-template-player-statistics thead th.data-goals,
  body.single-sp_player .sp-template-player-statistics thead th.data-points,
  body.single-sp_player .sp-template-player-statistics thead th.data-total-pts{
    font-size: 0 !important;         /* hide original text width */
    letter-spacing: 0 !important;
  }

  body.single-sp_player .sp-template-player-statistics thead th.data-goals::before{
    content: "G";
    font-size: 12px;
    font-weight: 900;
  }
  body.single-sp_player .sp-template-player-statistics thead th.data-points::before{
    content: "Pts";
    font-size: 12px;
    font-weight: 900;
  }
  body.single-sp_player .sp-template-player-statistics thead th.data-total-pts::before{
    content: "Tot";
    font-size: 12px;
    font-weight: 900;
  }
}

/* Ultra small (older iPhones): final squeeze */
@media (max-width: 360px){
  body.single-sp_player .sp-template-player-statistics table.sp-player-statistics :is(th,td){
    padding: 6px 3px !important;
    font-size: 11.5px !important;
  }

  body.single-sp_player .sp-template-player-statistics table.sp-player-statistics :is(th.data-team,td.data-team){
    width: 74px !important;
  }
}
/* =========================================================
   FIX: Player statistics must NOT have min-width on mobile
   (your earlier rule min-width:620px forces scroll)
========================================================= */
@media (max-width: 680px){
  body.single-sp_player .sp-template-player-statistics table.sp-player-statistics{
    min-width: 0 !important;
    width: 100% !important;
  }
}
/* Guard: never allow player pages to create horizontal page scroll */
body.single-sp_player,
body.single-sp_player .wp-site-blocks,
body.single-sp_player main{
  overflow-x: hidden !important;
}
body.single-sp_player img,
body.single-sp_player iframe,
body.single-sp_player table{
  max-width: 100% !important;
}
/* FINAL GUARD — prevent any future plugin/theme update
   from reintroducing horizontal scroll on player pages */
body.single-sp_player,
body.single-sp_player .wp-site-blocks,
body.single-sp_player main{
  overflow-x: hidden !important;
}

body.single-sp_player table{
  max-width: 100% !important;
}
.bhw-player-overview{
  max-width: 1100px;
  margin: 16px auto 22px;
  padding: 14px 16px;
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.02));
  box-shadow: 0 12px 30px rgba(0,0,0,.22);
}

.bhw-player-overview p{
  margin: 0;
  color: rgba(255,255,255,.90);
  line-height: 1.6;
}

.bhw-player-overview strong{
  color: #fff;
}
body.single-sp_player .pp-overview{
  max-width:1200px;
  margin:18px auto 0;
  padding:0 18px;
  color:rgba(255,255,255,.86);
  font-size:15px;
  line-height:1.6;
}
body.single-sp_player .pp-overview p{ margin:0; }
body.single-sp_player .pp-overview a{ color: var(--bh-gold); text-decoration:none; }
.bhw-player-overview{
  max-width: 1100px;
  margin: 22px auto 18px;
  padding: 14px 16px;
  border-radius: 14px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.10);
  color: rgba(255,255,255,.92);
  box-shadow: 0 10px 25px rgba(0,0,0,.22);
}
.bhw-player-overview p{ margin:0; line-height:1.55; }
.bhw-player-overview strong{ color: #fff; }
/* Prevent ads overlaying content */
[class^="ns-"][class*="banner"] {
  position: relative !important;
  z-index: 1 !important;
  max-width: 100%;
  overflow: hidden;
}

/* Reserve space to prevent CLS */
[class^="ns-"][class*="banner"] {
  min-height: 90px;
}

/* Mobile safety */
@media (max-width: 768px) {
  [class^="ns-"][class*="banner"] {
    min-height: 120px;
  }
}
/* ===============================
   GLOBAL AD SLOT STABILISATION
   =============================== */

.advads-placement,
.advads_ad,
.adsbygoogle,
[class*="ad-slot"] {
  display: block;
  width: 100%;
  overflow: hidden;
}

/* Desktop & tablet ad reservation */
@media (min-width: 768px) {
  .ad-slot--hero,
  .ad-slot--content,
  .ad-slot--archive,
  .ad-slot--footer {
    min-height: 280px; /* 300x250 / 336x280 */
  }
}

/* Mobile ad reservation */
@media (max-width: 767px) {
  .ad-slot--hero,
  .ad-slot--content,
  .ad-slot--archive {
    min-height: 250px; /* 300x250 */
  }
}

/* Ensure ads NEVER overlay content */
.advads-placement {
  position: relative;
  z-index: 1;
}
/* Prevent image-based CLS */
img {
  height: auto;
  max-width: 100%;
  aspect-ratio: attr(width) / attr(height);
}
.home .wp-post-image,
.home .featured-image img {
  aspect-ratio: 16 / 9;
  object-fit: cover;
}
@font-face {
  font-display: swap;
}
/* Reduce Gutenberg/block CSS impact */
.wp-block {
  max-width: 100%;
}

/* Prevent unused editor styles affecting layout */
.wp-site-blocks {
  padding: 0;
}
/* Prevent fonts blocking render */
@font-face {
  font-display: swap;
}
/* HOME: prevent image-card CLS and speed render */
.home img {
  height: auto;
  max-width: 100%;
}

/* If your top cards are square icons/images, this stabilises them */
.home .wp-block-image img,
.home figure img {
  aspect-ratio: 1 / 1;
  object-fit: cover;
}
/* Force instant font paint for LCP heading */
.home .wp-block-heading {
  font-family: -apple-system, BlinkMacSystemFont,
               "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
@media (max-width: 767px) {
  .home .wp-block-heading {
    background: #130091 !important;
  }
}
/* LCP FIX: force instant paint for site title */
.obb-site-title {
  font-family: -apple-system, BlinkMacSystemFont,
               "Segoe UI", Roboto, Helvetica, Arial, sans-serif !important;
  font-weight: 700;
}
/* Simplify LCP text paint */
.obb-site-title {
  background: none !important;
  text-shadow: none !important;
  -webkit-text-stroke: 0 !important;
}
@font-face {
  font-display: swap;
}
.ad-slot--home-1 {
  min-height: 250px;
  margin: 16px 0;
}
/* Homepage LCP stability */
.home .wp-block-post-featured-image img {
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

/* Keep homepage text cheap to paint */
.home h1,
.home h2 {
  background: none !important;
}
/* Homepage post list */
.home .home-post {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* FEATURED POST (first item only) */
.home .home-post:first-child img {
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.home .home-post:first-child h2 {
  font-size: clamp(1.6rem, 5vw, 2.2rem);
  line-height: 1.2;
}

/* Smaller posts below */
.home .home-post:not(:first-child) img {
  max-height: 180px;
  object-fit: cover;
}

.home .home-post:not(:first-child) h2 {
  font-size: 1.1rem;
}
/* Force instant paint for header title */
.obb-site-title {
  font-family: system-ui, -apple-system, BlinkMacSystemFont,
               "Segoe UI", Roboto, Helvetica, Arial, sans-serif !important;
  background: none !important;
  text-shadow: none !important;
}
/* ---------- Layout spacing ---------- */
.home .home-hero,
.home .home-nav,
.home .home-live {
  margin: 16px 0;
}

/* ---------- Hero card ---------- */
.home .home-hero {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(0,0,0,.08);
}

/* Make hero image stable and clean */
.home .home-hero .wp-block-post-featured-image img {
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
  width: 100%;
}

/* Hero text padding */
.home .home-hero .wp-block-post-title,
.home .home-hero .wp-block-post-date,
.home .home-hero .wp-block-post-excerpt {
  padding-left: 14px;
  padding-right: 14px;
}

.home .home-hero .wp-block-post-title {
  margin-top: 12px;
  margin-bottom: 8px;
}

.home .home-hero .wp-block-post-excerpt {
  margin-top: 8px;
  margin-bottom: 14px;
}

/* ---------- Section nav "tabs" ---------- */
.home .home-nav .wp-block-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.home .home-nav .wp-block-button__link {
  border-radius: 999px;
  padding: 10px 14px;
  border: 1px solid rgba(0,0,0,.14);
  background: #fff;
  color: inherit;
  text-decoration: none;
}

/* ---------- Live strip (subtle) ---------- */
.home .home-live {
  border-radius: 14px;
  padding: 12px 14px;
  border: 1px solid rgba(0,0,0,.08);
}

/* ---------- Make lists look cleaner ---------- */
.home .wp-block-post-template {
  gap: 14px;
}
body.page-id-body.page-id-performance-first-homepage {
  font-family: system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,sans-serif;
}
.page-id-105936 body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif !important;
}
/* Performance-first homepage only */
.page-id-105936 .wp-block-image,
.page-id-105936 .wp-block-cover {
  contain: layout paint;
}
@font-face {
  font-family: 'Bebas Neue';
  font-display: swap;
}
.page-id-105936 {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
.lcp-image img {
  loading: eager;
  fetchpriority: high;
}
@font-face {
  font-family: 'fallback';
  size-adjust: 100%;
  ascent-override: 90%;
  descent-override: 10%;
  line-gap-override: 0%;
}
body {
  font-display: swap;
}
.fc-consent-root {
  max-height: 100vh;
}

@media (min-width: 768px) {
  .fc-consent-root {
    bottom: 0;
    top: auto;
  }
}
.fc-consent-root * {
  transition: none !important;
}
/* Delay non-critical Gutenberg layout */
body:not(.loaded) {
  contain: paint;
}

/* Stop massive global styles blocking LCP */
.wp-site-blocks,
.wp-block-group,
.wp-block-columns {
  contain: layout paint;
}
@font-face {
  font-display: swap;
}
/* Disable broken Font Awesome include */
@import url('') !important;
/* === Player Database (Mockup styling) === */
.player-db-wrap{max-width:1100px;margin:0 auto;padding:24px 18px 60px}
.player-db-hero{
  background: radial-gradient(1200px 400px at 10% 0%, rgba(242,194,0,.25), transparent 60%),
              radial-gradient(1000px 500px at 90% 0%, rgba(11,46,102,.25), transparent 55%),
              #fff;
  border:1px solid #e5eaf2;
  box-shadow:0 10px 30px rgba(11,18,32,.08);
  border-radius:18px;
  padding:22px;
}
.player-db-badge{
  display:inline-flex;gap:10px;align-items:center;
  background:rgba(11,46,102,.08);
  border:1px solid rgba(11,46,102,.12);
  border-radius:999px;
  padding:8px 12px;
  font-size:13px;color:#5b6577;
}
.player-db-dot{width:10px;height:10px;border-radius:99px;background:#f2c200;box-shadow:0 0 0 4px rgba(242,194,0,.18)}
.player-db-hero h1{margin:12px 0 8px;font-size:28px;letter-spacing:-.02em}
.player-db-sub{margin:0;color:#5b6577;max-width:64ch;line-height:1.4}

.player-db-controls{
  margin-top:16px;
  display:grid;
  grid-template-columns: 1.3fr .7fr .7fr .7fr;
  gap:10px;
}
.player-db-control{
  background:rgba(255,255,255,.75);
  border:1px solid #e5eaf2;
  border-radius:12px;
  padding:10px 12px;
  display:flex;align-items:center;gap:10px;
  min-height:44px;
}
.player-db-control input,.player-db-control select{
  width:100%;border:0;outline:none;background:transparent;
  font-size:15px;color:#0b1220;
}
.player-db-actions{margin-top:12px;display:flex;gap:10px;flex-wrap:wrap;align-items:center}
.player-db-btn{
  border:1px solid rgba(11,46,102,.18);
  background:#0b2e66;color:#fff;
  padding:10px 14px;border-radius:999px;font-weight:600;cursor:pointer;
}
.player-db-btn.secondary{background:#fff;color:#0b2e66}
.player-db-meta{margin-left:auto;color:#5b6577;font-size:13px}

/* SportPress table look */
.player-db-results{
  margin-top:18px;
  background:#fff;
  border:1px solid #e5eaf2;
  border-radius:18px;
  box-shadow:0 10px 30px rgba(11,18,32,.08);
  overflow:hidden;
}
.player-db-results .sp-table-wrapper{overflow:auto}
.player-db-results table{width:100%;border-collapse:separate;border-spacing:0;min-width:880px}
.player-db-results th,.player-db-results td{padding:12px 14px;text-align:left;white-space:nowrap}
.player-db-results th{
  font-size:12px;letter-spacing:.08em;text-transform:uppercase;
  color:#5b6577;background:#fbfcfe;border-bottom:1px solid #e5eaf2
}
.player-db-results tr td{border-bottom:1px solid #e5eaf2}
.player-db-results tr:hover td{background:rgba(242,194,0,.06)}

/* Responsive */
@media (max-width:900px){
  .player-db-controls{grid-template-columns:1fr 1fr}
  .player-db-meta{width:100%;margin-left:0}
}
@media (max-width:520px){
  .player-db-hero h1{font-size:24px}
  .player-db-controls{grid-template-columns:1fr}
}
/* === Player Database (Mockup styling) === */
.player-db-wrap{max-width:1100px;margin:0 auto;padding:24px 18px 60px}
.player-db-hero{
  background: radial-gradient(1200px 400px at 10% 0%, rgba(242,194,0,.25), transparent 60%),
              radial-gradient(1000px 500px at 90% 0%, rgba(11,46,102,.25), transparent 55%),
              #fff;
  border:1px solid #e5eaf2;
  box-shadow:0 10px 30px rgba(11,18,32,.08);
  border-radius:18px;
  padding:22px;
}
.player-db-badge{
  display:inline-flex;gap:10px;align-items:center;
  background:rgba(11,46,102,.08);
  border:1px solid rgba(11,46,102,.12);
  border-radius:999px;
  padding:8px 12px;
  font-size:13px;color:#5b6577;
}
.player-db-dot{width:10px;height:10px;border-radius:99px;background:#f2c200;box-shadow:0 0 0 4px rgba(242,194,0,.18)}
.player-db-hero h1{margin:12px 0 8px;font-size:28px;letter-spacing:-.02em}
.player-db-sub{margin:0;color:#5b6577;max-width:64ch;line-height:1.4}

.player-db-controls{
  margin-top:16px;
  display:grid;
  grid-template-columns: 1.3fr .7fr .7fr .7fr;
  gap:10px;
}
.player-db-control{
  background:rgba(255,255,255,.75);
  border:1px solid #e5eaf2;
  border-radius:12px;
  padding:10px 12px;
  display:flex;align-items:center;gap:10px;
  min-height:44px;
}
.player-db-control input,.player-db-control select{
  width:100%;border:0;outline:none;background:transparent;
  font-size:15px;color:#0b1220;
}
.player-db-actions{margin-top:12px;display:flex;gap:10px;flex-wrap:wrap;align-items:center}
.player-db-btn{
  border:1px solid rgba(11,46,102,.18);
  background:#0b2e66;color:#fff;
  padding:10px 14px;border-radius:999px;font-weight:600;cursor:pointer;
}
.player-db-btn.secondary{background:#fff;color:#0b2e66}
.player-db-meta{margin-left:auto;color:#5b6577;font-size:13px}

/* SportPress table look */
.player-db-results{
  margin-top:18px;
  background:#fff;
  border:1px solid #e5eaf2;
  border-radius:18px;
  box-shadow:0 10px 30px rgba(11,18,32,.08);
  overflow:hidden;
}
.player-db-results .sp-table-wrapper{overflow:auto}
.player-db-results table{width:100%;border-collapse:separate;border-spacing:0;min-width:880px}
.player-db-results th,.player-db-results td{padding:12px 14px;text-align:left;white-space:nowrap}
.player-db-results th{
  font-size:12px;letter-spacing:.08em;text-transform:uppercase;
  color:#5b6577;background:#fbfcfe;border-bottom:1px solid #e5eaf2
}
.player-db-results tr td{border-bottom:1px solid #e5eaf2}
.player-db-results tr:hover td{background:rgba(242,194,0,.06)}

@media (max-width:900px){
  .player-db-controls{grid-template-columns:1fr 1fr}
  .player-db-meta{width:100%;margin-left:0}
}
@media (max-width:520px){
  .player-db-hero h1{font-size:24px}
  .player-db-controls{grid-template-columns:1fr}
}
/* === MOBILE FIX: TEAM CREST + NAME INLINE === */
@media (max-width: 680px){

  /* Force table behaviour back on mobile */
  .player-db-results table { width: 100%; border-collapse: collapse; }
  .player-db-results tr { display: table-row; }
  .player-db-results td { display: table-cell; vertical-align: middle; }

  /* TEAM cell layout */
  .player-db-results td.pdb-team{
    display: flex !important;
    align-items: center;
    gap: 10px;
    padding: 10px 8px;
  }

  /* Crest wrapper */
  .player-db-results .pdb-crest-wrap{
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
  }

  /* Crest image size */
  .player-db-results .pdb-crest{
    width: 28px !important;
    height: 28px !important;
    object-fit: contain;
    display: block;
  }

  /* Team name to the RIGHT of crest */
  .player-db-results .pdb-team-name{
    display: inline-block !important;
    white-space: nowrap;
    font-size: 14px;
    line-height: 1.2;
  }
}
/* MOBILE: force crest + team name inline (override stacking) */
@media (max-width: 680px){

  /* Make sure the TEAM cell isn't being turned into a stacked/centered block */
  .player-db-results td.pdb-team{
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 10px !important;
    text-align: left !important;
  }

  /* Prevent child spans being forced full-width/stacked */
  .player-db-results td.pdb-team .pdb-crest-wrap{
    display: inline-flex !important;
    width: auto !important;
    flex: 0 0 auto !important;
    align-items: center !important;
    justify-content: center !important;
  }

  .player-db-results td.pdb-team .pdb-team-name{
    display: inline-block !important;
    width: auto !important;
    margin: 0 !important;
    white-space: nowrap !important;
    line-height: 1.2 !important;
  }

  /* Keep crest small on mobile */
  .player-db-results td.pdb-team img.pdb-crest{
    width: 28px !important;
    height: 28px !important;
    object-fit: contain !important;
    display: block !important;
  }
}
/* Sharpen + strengthen player name links */
.player-db-results td.pdb-player a{
  font-weight: 600;
  color: #0f766e; /* keeps your current teal tone */
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Slightly stronger on mobile (iOS needs it) */
@media (max-width: 680px){
  .player-db-results td.pdb-player a{
    font-weight: 700;
  }
}
/* Replace SportPress Players label text */
.sp-player-search-label{
  font-size: 0; /* hide original text */
}

/* Inject replacement text */
.sp-player-search-label::after{
  content: "Bill Hill Players · Search";
  font-size: 14px;
  font-weight: 600;
  color: #1f2937; /* dark slate for readability */
}
/* Sharpen player name appearance */
.player-db-results .pdb-player a{
  color: #0b3a6f;          /* Bill Hill blue */
  font-weight: 600;        /* match team weight */
  text-decoration: none;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Subtle hover, still Discover-safe */
.player-db-results .pdb-player a:hover{
  text-decoration: underline;
}
/* Hide original SportPress label text */
.sp-player-search *{
  font-size: 0;
}

/* Inject Bill Hill label */
.sp-player-search::before{
  content: "Bill Hill Players · Search";
  display: inline-block;
  font-size: 14px;
  font-weight: 600;
  color: #1f2937;
}
/* Replace SportPress Players · Search label */
.sp-player-search .sp-search-title{
  font-size: 0;
}

/* Inject Bill Hill label */
.sp-player-search .sp-search-title::after{
  content: "Bill Hill Players · Search";
  font-size: 14px;
  font-weight: 600;
  color: #1f2937;
}
.bhw-stats-intro{ font-size:1.05rem; line-height:1.6; margin:0 0 .6rem; }
.bhw-mini-trust{ margin:0 0 1rem; font-size:.92rem; opacity:.85; }

.bhw-top10-h{ margin-top:1rem; }
.bhw-top10{ margin: .6rem 0 .5rem; }
.bhw-top10-note{ margin:0 0 1.2rem; font-size:.95rem; }

.bhw-related{
  border:1px solid rgba(0,0,0,.10);
  border-radius:12px;
  padding:12px 14px;
  background:rgba(0,0,0,.02);
  margin: 0 0 1.2rem;
}
.bhw-related h3{ margin:0 0 .5rem; }
.bhw-related-list{ margin:.25rem 0 0 1.1rem; }

.bhw-credibility{
  border:1px solid rgba(0,0,0,.12);
  border-radius:10px;
  padding:12px 14px;
  margin:14px 0;
  background:rgba(0,0,0,.03);
}
.bhw-consistency{ font-size:.9rem; opacity:.8; margin-bottom:1.5rem; }
.bhw-top10-graphic{
  margin: 12px 0 18px;
}
.bhw-top10-graphic img{
  width: 100%;
  height: auto;
  border-radius: 14px;
  display:block;
}
.bhw-top10-graphic-links{
  margin: 8px 0 0;
  font-size: .95rem;
  opacity: .9;
}
.bhw-stats-intro{ font-size:1.05rem; line-height:1.6; margin:0 0 .6rem; }
.bhw-mini-trust{ margin:0 0 1rem; font-size:.92rem; opacity:.85; }

.bhw-related{
  border:1px solid rgba(0,0,0,.10);
  border-radius:12px;
  padding:12px 14px;
  background:rgba(0,0,0,.02);
  margin: 0 0 1.2rem;
}
.bhw-related h3{ margin:0 0 .5rem; }
.bhw-related-list{ margin:.25rem 0 0 1.1rem; }

.bhw-top10-graphic{ margin: 12px 0 18px; }
.bhw-top10-graphic img{ width:100%; height:auto; border-radius:14px; display:block; }
.bhw-top10-graphic-links{ margin:8px 0 0; font-size:.95rem; opacity:.9; }

.bhw-credibility{
  border:1px solid rgba(0,0,0,.12);
  border-radius:10px;
  padding:12px 14px;
  margin:14px 0;
  background:rgba(0,0,0,.03);
}
.bhw-consistency{ font-size:.9rem; opacity:.8; margin-bottom:1.5rem; }
.bhw-top10-graphic{ margin:12px 0 20px; }
.bhw-top10-svg svg{ width:100%; height:auto; border-radius:14px; display:block; }
.bhw-stats-intro{ font-size:1.05rem; line-height:1.6; margin:0 0 .6rem; }
.bhw-mini-trust{ margin:0 0 1rem; font-size:.92rem; opacity:.85; }

.bhw-top10-graphic{ margin:12px 0 18px; }
.bhw-top10-svg svg{ width:100%; height:auto; border-radius:14px; display:block; }
.bhw-top10-graphic-links{ margin:8px 0 0; font-size:.95rem; opacity:.9; }

.bhw-related{
  border:1px solid rgba(0,0,0,.10);
  border-radius:12px;
  padding:12px 14px;
  background:rgba(0,0,0,.02);
  margin:0 0 1.2rem;
}
.bhw-related h3{ margin:0 0 .5rem; }
.bhw-related-list{ margin:.25rem 0 0 1.1rem; }
.bhw-top10-graphic{ margin:12px 0 20px; }
.bhw-top10-svg svg{ width:100%; height:auto; border-radius:14px; display:block; }
/* === BHW: Top result card team name readability === */

/* SportsPress event header team names */
.sp-event-results .sp-team-name,
.sp-event-results .sp-team-name a,
.sp-event-results .sp-event-team-name,
.sp-event-results .sp-event-team-name a {
  color: #ffffff !important;
  font-weight: 700 !important;
  text-shadow: 0 2px 6px rgba(0,0,0,0.75) !important;
  opacity: 1 !important;
}

/* If the theme is dimming the team blocks */
.sp-event-results .sp-team,
.sp-event-results .sp-event-team {
  opacity: 1 !important;
}

/* Score stays crisp too */
.sp-event-results .sp-event-score,
.sp-event-results .sp-event-score a {
  color: #ffffff !important;
  text-shadow: 0 2px 6px rgba(0,0,0,0.75) !important;
}
/* =========================================
   BHW: Make top event header team names readable
   SportsPress forces #333 !important — override it safely
========================================= */

body.single-sp_event .sp-template-event-logos .sp-team-name,
body.single-sp_event .sp-template-event-logos .sp-team-name a,
body.single-sp_event .sp-template-event-logos-block .sp-team-name,
body.single-sp_event .sp-template-event-logos-block .sp-team-name a,
body.single-sp_event .sp-event-results .sp-team-name,
body.single-sp_event .sp-event-results .sp-team-name a {
  color: rgba(255,255,255,.95) !important;
  font-weight: 800 !important;
  text-shadow: 0 2px 10px rgba(0,0,0,.85) !important;
  opacity: 1 !important;
}

/* Keep the score readable too */
body.single-sp_event .sp-template-event-logos .sp-event-results,
body.single-sp_event .sp-template-event-logos-block .sp-event-results,
body.single-sp_event .sp-template-event-logos .sp-event-results a,
body.single-sp_event .sp-template-event-logos-block .sp-event-results a {
  color: #fff !important;
  text-shadow: 0 2px 10px rgba(0,0,0,.85) !important;
  opacity: 1 !important;
}

/* If anything in that header area is being dimmed by a parent opacity, neutralise it */
body.single-sp_event .sp-template-event-logos,
body.single-sp_event .sp-template-event-logos-block,
body.single-sp_event .sp-template-event-logos .team-logo,
body.single-sp_event .sp-template-event-logos-block .team-logo {
  opacity: 1 !important;
}
/* BHW — Schedule pill buttons visibility boost */

.bhw-np-hubs a,
.bhw-np-hubs button {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: 8px 14px;
  margin: 6px 6px 0 0;

  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;

  color: #eaf6ff; /* brighter text */
  background: rgba(20, 40, 90, 0.75); /* visible pill */
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 999px;

  text-decoration: none;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);

  transition: 
    background 0.2s ease,
    border-color 0.2s ease,
    transform 0.15s ease;
}

/* Hover / focus */
.bhw-np-hubs a:hover,
.bhw-np-hubs a:focus,
.bhw-np-hubs button:hover,
.bhw-np-hubs button:focus {
  background: linear-gradient(
    135deg,
    #1b3a8a,
    #0f255f
  );
  border-color: #f5c84c; /* BHW gold */
  color: #ffffff;
  transform: translateY(-1px);
}

/* Active / tap feedback */
.bhw-np-hubs a:active,
.bhw-np-hubs button:active {
  transform: translateY(0);
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.35);
}
/* =========================================================
   BHW — Global Pill Button System (Events & Match Centre)
   ========================================================= */

/* Base pill style */
.bhw-mc-quicklinks a,
.bhw-tnav-row a,
.bhw-np-hubs a,
.bhw-np-hubs button,
.bhw-match-centre a.button,
.bhw-match-centre .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: 8px 14px;
  margin: 6px 6px 0 0;

  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;

  color: #eaf6ff;
  background: rgba(20, 40, 90, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 999px;

  text-decoration: none;
  white-space: nowrap;

  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);

  transition:
    background 0.2s ease,
    border-color 0.2s ease,
    transform 0.15s ease,
    box-shadow 0.15s ease;
}

/* Hover / focus */
.bhw-mc-quicklinks a:hover,
.bhw-tnav-row a:hover,
.bhw-np-hubs a:hover,
.bhw-np-hubs button:hover,
.bhw-match-centre a.button:hover,
.bhw-match-centre .button:hover {
  background: linear-gradient(
    135deg,
    #1b3a8a,
    #0f255f
  );
  border-color: #f5c84c; /* BHW gold */
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.35);
}

/* Active / tap */
.bhw-mc-quicklinks a:active,
.bhw-tnav-row a:active,
.bhw-np-hubs a:active,
.bhw-np-hubs button:active,
.bhw-match-centre a.button:active,
.bhw-match-centre .button:active {
  transform: translateY(0);
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.35);
}

/* Muted / secondary pills (e.g. "In this league") */
.bhw-tnav-muted {
  opacity: 0.8;
  background: rgba(255, 255, 255, 0.08) !important;
}

/* Mobile: slightly larger tap targets */
@media (max-width: 480px) {
  .bhw-mc-quicklinks a,
  .bhw-tnav-row a,
  .bhw-np-hubs a,
  .bhw-np-hubs button {
    padding: 10px 16px;
    font-size: 14px;
  }
}
/* Match Centre pills: fix the two odd ones */
.bhw-tnav-row a.bhw-tnav-muted{
  opacity: 1 !important;
  filter: none !important;
  background: rgba(47,107,255,.20) !important;
  border: 1px solid rgba(255,255,255,.22) !important;
  color: rgba(255,255,255,.92) !important;
  border-radius: 999px !important;
  padding: 10px 14px !important;
  line-height: 1 !important;
  font-weight: 700 !important;
  text-decoration: none !important;
}

.bhw-np-hubs button[data-bhw-copylink]{
  appearance: none;
  -webkit-appearance: none;
  border: 1px solid rgba(255,255,255,.22) !important;
  background: rgba(47,107,255,.20) !important;
  color: rgba(255,255,255,.92) !important;
  border-radius: 999px !important;
  padding: 10px 14px !important;
  line-height: 1 !important;
  font-weight: 700 !important;
  cursor: pointer !important;
}

.bhw-tnav-row a.bhw-tnav-muted:hover,
.bhw-np-hubs button[data-bhw-copylink]:hover{
  background: rgba(47,107,255,.30) !important;
  border-color: rgba(255,255,255,.32) !important;
}

.bhw-tnav-row a.bhw-tnav-muted:focus-visible,
.bhw-np-hubs button[data-bhw-copylink]:focus-visible{
  outline: 2px solid rgba(245,200,76,.9) !important;
  outline-offset: 2px !important;
}
/* ================================
   BHW — Fix mobile column widths (sp_event Details + Results)
   ================================ */

/* DETAILS table (Date / Time / League / Season / Match Day) */
@media (max-width: 600px){
  body.single-sp_event .sp-template-event-details table.sp-data-table{
    table-layout: fixed !important;
  }
  body.single-sp_event .sp-template-event-details table.sp-data-table th,
  body.single-sp_event .sp-template-event-details table.sp-data-table td{
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
  }

  /* Date */
  body.single-sp_event .sp-template-event-details table.sp-data-table th:nth-child(1),
  body.single-sp_event .sp-template-event-details table.sp-data-table td:nth-child(1){
    width: 84px !important;
  }

  /* Time (make narrow again) */
  body.single-sp_event .sp-template-event-details table.sp-data-table th:nth-child(2),
  body.single-sp_event .sp-template-event-details table.sp-data-table td:nth-child(2){
    width: 68px !important;
  }

  /* Season */
  body.single-sp_event .sp-template-event-details table.sp-data-table th:nth-child(4),
  body.single-sp_event .sp-template-event-details table.sp-data-table td:nth-child(4){
    width: 64px !important;
  }

  /* League can wrap (otherwise it becomes unreadable) */
  body.single-sp_event .sp-template-event-details table.sp-data-table th:nth-child(3),
  body.single-sp_event .sp-template-event-details table.sp-data-table td:nth-child(3){
    white-space: normal !important;
    line-height: 1.15 !important;
  }
}

/* On very small screens, hide Match Day (it repeats the date anyway) */
@media (max-width: 420px){
  body.single-sp_event .sp-template-event-details table.sp-data-table th:nth-child(5),
  body.single-sp_event .sp-template-event-details table.sp-data-table td:nth-child(5){
    display: none !important;
  }
}


/* RESULTS table (Team / Goal / Point / Total Points / Final Score / Outcome) */
@media (max-width: 600px){
  body.single-sp_event .sp-template-event-results table.sp-data-table{
    table-layout: fixed !important;
  }
  body.single-sp_event .sp-template-event-results table.sp-data-table th,
  body.single-sp_event .sp-template-event-results table.sp-data-table td{
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
  }

  /* Team column gets the space */
  body.single-sp_event .sp-template-event-results table.sp-data-table th:nth-child(1),
  body.single-sp_event .sp-template-event-results table.sp-data-table td:nth-child(1){
    width: 34% !important;
    white-space: nowrap !important;
  }

  /* Goal + Point should be compact */
  body.single-sp_event .sp-template-event-results table.sp-data-table th:nth-child(2),
  body.single-sp_event .sp-template-event-results table.sp-data-table td:nth-child(2){
    width: 44px !important;
  }
  body.single-sp_event .sp-template-event-results table.sp-data-table th:nth-child(3),
  body.single-sp_event .sp-template-event-results table.sp-data-table td:nth-child(3){
    width: 52px !important;
  }

  /* Final Score readable */
  body.single-sp_event .sp-template-event-results table.sp-data-table th:nth-child(5),
  body.single-sp_event .sp-template-event-results table.sp-data-table td:nth-child(5){
    width: 66px !important;
  }

  /* Outcome */
  body.single-sp_event .sp-template-event-results table.sp-data-table th:nth-child(6),
  body.single-sp_event .sp-template-event-results table.sp-data-table td:nth-child(6){
    width: 64px !important;
  }
}

/* On small phones, hide Total Points to stop “jumbled” layout */
@media (max-width: 420px){
  body.single-sp_event .sp-template-event-results table.sp-data-table th:nth-child(4),
  body.single-sp_event .sp-template-event-results table.sp-data-table td:nth-child(4){
    display: none !important;
  }
}
/* ================================
   BHW — Mobile refinements (event)
   ================================ */

/* DETAILS TABLE — refine column balance */
@media (max-width: 600px){

  /* Centre Time column text */
  body.single-sp_event
  .sp-template-event-details table.sp-data-table th:nth-child(2),
  body.single-sp_event
  .sp-template-event-details table.sp-data-table td:nth-child(2){
    text-align: center !important;
  }

  /* League column: slightly wider + better wrapping */
  body.single-sp_event
  .sp-template-event-details table.sp-data-table th:nth-child(3),
  body.single-sp_event
  .sp-template-event-details table.sp-data-table td:nth-child(3){
    width: 42% !important;
    white-space: normal !important;
    line-height: 1.2 !important;
    text-align: left !important;
  }

  /* Date a touch tighter to compensate */
  body.single-sp_event
  .sp-template-event-details table.sp-data-table th:nth-child(1),
  body.single-sp_event
  .sp-template-event-details table.sp-data-table td:nth-child(1){
    width: 78px !important;
    text-align: center !important;
  }
}

/* PAST MEETINGS — prevent right-edge clipping */
@media (max-width: 600px){
  body.single-sp_event .sp-template-event-blocks,
  body.single-sp_event .sp-template-event-logos-block{
    padding-right: 12px !important;
    padding-left: 12px !important;
    box-sizing: border-box !important;
  }

  body.single-sp_event .sp-template-event-logos-block .team-logo{
    max-width: 48% !important;
  }
}

/* RESULTS TABLE — centre Goal column values */
@media (max-width: 600px){
  body.single-sp_event
  .sp-template-event-results table.sp-data-table th:nth-child(2),
  body.single-sp_event
  .sp-template-event-results table.sp-data-table td:nth-child(2){
    text-align: center !important;
  }
}
/* BHW — Past Meetings mobile: stop right-edge clipping + allow wrap */
@media (max-width: 520px){

  /* Make sure the wrapper isn't clipping */
  body.single-sp_event .sp-template-event-blocks,
  body.single-sp_event .sp-template-event-blocks .sp-table-wrapper,
  body.single-sp_event .sp-template-event-blocks td{
    overflow: visible !important;
  }

  /* The centre lines (league/season/venue) were too padded for mobile */
  body.single-sp_event .sp-template-event-blocks .sp-event-league,
  body.single-sp_event .sp-template-event-blocks .sp-event-season,
  body.single-sp_event .sp-template-event-blocks .sp-event-venue{
    margin: 0 16% !important;        /* was 20% */
    padding: 0 10px !important;      /* was 20px */
    max-width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    overflow-wrap: anywhere !important;
    word-break: break-word !important;
  }

  /* The match title (gold line) — allow wrapping so it can't clip */
  body.single-sp_event .sp-template-event-blocks .sp-event-title,
  body.single-sp_event .sp-template-event-blocks .sp-event-title a{
    display: block !important;
    padding: 0 12px !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    overflow-wrap: anywhere !important;
    word-break: break-word !important;
  }

  /* Give the centre column a touch more room */
  body.single-sp_event .sp-template-event-blocks .team-logo{
    width: 18% !important;   /* was 20% */
  }
}
/* Search results heading: force light text on dark theme */
body.search .page-header,
body.search .page-title,
body.search .archive-title,
body.search .entry-title,
body.search .entry-title a,
body.search h1,
body.search h2 {
  color: rgba(255,255,255,.92) !important;
}

/* Stop featured images being “portrait-cropped” on mobile */
.wp-post-image,
.post-thumbnail img,
.wp-block-post-featured-image img,
.entry-content img {
  height: auto !important;
  object-fit: contain !important;
}

/* If you previously added any global aspect-ratio rule, neutralise it here */
.wp-post-image,
.post-thumbnail img,
.wp-block-post-featured-image img {
  aspect-ratio: auto !important;
}
/* League table (sp_table): portrait mobile compact view */
@media (max-width: 480px){

  table.sp-league-table{
    width: 100% !important;
    table-layout: fixed !important;
  }

  table.sp-league-table th,
  table.sp-league-table td{
    padding: 8px 6px !important;
    font-size: 13px !important;
    text-align: center !important;
  }

  /* Hide: W, D, L, PF, PA, Next */
  table.sp-league-table th:nth-child(4),
  table.sp-league-table td:nth-child(4),
  table.sp-league-table th:nth-child(5),
  table.sp-league-table td:nth-child(5),
  table.sp-league-table th:nth-child(6),
  table.sp-league-table td:nth-child(6),
  table.sp-league-table th:nth-child(7),
  table.sp-league-table td:nth-child(7),
  table.sp-league-table th:nth-child(8),
  table.sp-league-table td:nth-child(8),
  table.sp-league-table th:nth-child(11),
  table.sp-league-table td:nth-child(11){
    display: none !important;
  }

  /* Pos narrow */
  table.sp-league-table th:nth-child(1),
  table.sp-league-table td:nth-child(1){
    width: 44px !important;
  }

  /* Team gets room + ellipsis */
  table.sp-league-table th:nth-child(2),
  table.sp-league-table td:nth-child(2){
    width: 48% !important;
    text-align: left !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }

  /* PLD, +/-, PTS each tidy */
  table.sp-league-table th:nth-child(3),
  table.sp-league-table td:nth-child(3),
  table.sp-league-table th:nth-child(9),
  table.sp-league-table td:nth-child(9),
  table.sp-league-table th:nth-child(10),
  table.sp-league-table td:nth-child(10){
    width: 17% !important;
  }
}
/* League table (sp_table): portrait mobile compact view WITH W/D/L */
@media (max-width: 480px){

  table.sp-league-table{
    width: 100% !important;
    table-layout: fixed !important;
  }

  table.sp-league-table th,
  table.sp-league-table td{
    padding: 7px 5px !important;
    font-size: 12.5px !important;
    text-align: center !important;
  }

  /* Hide ONLY: PF, PA, Next */
  table.sp-league-table th:nth-child(7),
  table.sp-league-table td:nth-child(7),
  table.sp-league-table th:nth-child(8),
  table.sp-league-table td:nth-child(8),
  table.sp-league-table th:nth-child(11),
  table.sp-league-table td:nth-child(11){
    display: none !important;
  }

  /* Pos narrow */
  table.sp-league-table th:nth-child(1),
  table.sp-league-table td:nth-child(1){
    width: 40px !important;
  }

  /* Team gets most room + ellipsis */
  table.sp-league-table th:nth-child(2),
  table.sp-league-table td:nth-child(2){
    width: 42% !important;
    text-align: left !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }

  /* PLD, W, D, L are tight */
  table.sp-league-table th:nth-child(3),
  table.sp-league-table td:nth-child(3),
  table.sp-league-table th:nth-child(4),
  table.sp-league-table td:nth-child(4),
  table.sp-league-table th:nth-child(5),
  table.sp-league-table td:nth-child(5),
  table.sp-league-table th:nth-child(6),
  table.sp-league-table td:nth-child(6){
    width: 8% !important;
  }

  /* +/- and PTS slightly wider */
  table.sp-league-table th:nth-child(9),
  table.sp-league-table td:nth-child(9),
  table.sp-league-table th:nth-child(10),
  table.sp-league-table td:nth-child(10){
    width: 13% !important;
  }
}
/* Mobile portrait: league table fit + ENSURE W/D/L visible */
@media (max-width: 480px){

  /* cover both possible table class names */
  .sp-table-wrapper table.sp-league-table,
  .sp-table-wrapper table.sp-data-table.sp-league-table,
  table.sp-league-table{
    width: 100% !important;
    table-layout: fixed !important;
  }

  .sp-table-wrapper table.sp-league-table th,
  .sp-table-wrapper table.sp-league-table td,
  table.sp-league-table th,
  table.sp-league-table td{
    padding: 7px 5px !important;
    font-size: 12.5px !important;
    text-align: center !important;
  }

  /* FORCE show PLD/W/D/L in case older CSS hid them */
  table.sp-league-table th:nth-child(3),
  table.sp-league-table td:nth-child(3),
  table.sp-league-table th:nth-child(4),
  table.sp-league-table td:nth-child(4),
  table.sp-league-table th:nth-child(5),
  table.sp-league-table td:nth-child(5),
  table.sp-league-table th:nth-child(6),
  table.sp-league-table td:nth-child(6){
    display: table-cell !important;
  }

  /* Hide PF, PA, Next */
  table.sp-league-table th:nth-child(7),
  table.sp-league-table td:nth-child(7),
  table.sp-league-table th:nth-child(8),
  table.sp-league-table td:nth-child(8),
  table.sp-league-table th:nth-child(11),
  table.sp-league-table td:nth-child(11){
    display: none !important;
  }

  /* Pos narrow */
  table.sp-league-table th:nth-child(1),
  table.sp-league-table td:nth-child(1){
    width: 40px !important;
  }

  /* Team gets most space */
  table.sp-league-table th:nth-child(2),
  table.sp-league-table td:nth-child(2){
    width: 44% !important;
    text-align: left !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }

  /* PLD/W/D/L tight */
  table.sp-league-table th:nth-child(3),
  table.sp-league-table td:nth-child(3),
  table.sp-league-table th:nth-child(4),
  table.sp-league-table td:nth-child(4),
  table.sp-league-table th:nth-child(5),
  table.sp-league-table td:nth-child(5),
  table.sp-league-table th:nth-child(6),
  table.sp-league-table td:nth-child(6){
    width: 7.5% !important;
  }

  /* +/- and PTS a bit wider */
  table.sp-league-table th:nth-child(9),
  table.sp-league-table td:nth-child(9),
  table.sp-league-table th:nth-child(10),
  table.sp-league-table td:nth-child(10){
    width: 13% !important;
  }
}
/* =========================================================
   MOBILE PORTRAIT — FORCE SHOW TEAM + W/D/L ON LEAGUE TABLE
   (class-based, robust)
========================================================= */
@media (max-width: 480px){

  /* Ensure table uses fixed layout so it can fit */
  table.sp-league-table{
    width: 100% !important;
    table-layout: fixed !important;
  }

  table.sp-league-table th,
  table.sp-league-table td{
    padding: 7px 5px !important;
    font-size: 12.5px !important;
    text-align: center !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }

  /* ✅ FORCE-SHOW the Team column (SportPress usually uses data-name) */
  table.sp-league-table th.data-name,
  table.sp-league-table td.data-name{
    display: table-cell !important;
    text-align: left !important;
    white-space: nowrap !important;
  }

  /* If your install uses a different class name for team, force those too */
  table.sp-league-table th.data-team,
  table.sp-league-table td.data-team,
  table.sp-league-table th.team,
  table.sp-league-table td.team{
    display: table-cell !important;
    text-align: left !important;
  }

  /* ✅ FORCE-SHOW PLD + W/D/L by class name */
  table.sp-league-table th.data-pld,
  table.sp-league-table td.data-pld,
  table.sp-league-table th.data-w,
  table.sp-league-table td.data-w,
  table.sp-league-table th.data-d,
  table.sp-league-table td.data-d,
  table.sp-league-table th.data-l,
  table.sp-league-table td.data-l{
    display: table-cell !important;
  }

  /* Keep +/- and PTS visible */
  table.sp-league-table th.data-diff,
  table.sp-league-table td.data-diff,
  table.sp-league-table th.data-pts,
  table.sp-league-table td.data-pts{
    display: table-cell !important;
  }

  /* ❌ HIDE PF / PA / Next (common class names) */
  table.sp-league-table th.data-pf,
  table.sp-league-table td.data-pf,
  table.sp-league-table th.data-pa,
  table.sp-league-table td.data-pa,
  table.sp-league-table th.data-next,
  table.sp-league-table td.data-next{
    display: none !important;
  }

  /* Width tuning */
  table.sp-league-table th.data-pos,
  table.sp-league-table td.data-pos{
    width: 40px !important;
  }

  table.sp-league-table th.data-name,
  table.sp-league-table td.data-name{
    width: 46% !important; /* give team most space */
  }

  table.sp-league-table th.data-pld,
  table.sp-league-table td.data-pld,
  table.sp-league-table th.data-w,
  table.sp-league-table td.data-w,
  table.sp-league-table th.data-d,
  table.sp-league-table td.data-d,
  table.sp-league-table th.data-l,
  table.sp-league-table td.data-l{
    width: 7% !important;
  }

  table.sp-league-table th.data-diff,
  table.sp-league-table td.data-diff,
  table.sp-league-table th.data-pts,
  table.sp-league-table td.data-pts{
    width: 12% !important;
  }

  /* Make sure logos inside Team cell don't blow the width */
  table.sp-league-table td.data-name img{
    max-height: 20px !important;
    width: auto !important;
    margin-right: 6px !important;
    vertical-align: middle !important;
  }
}
/* MOBILE PORTRAIT: compact league table + make Team readable */
@media (max-width: 480px){

  table.sp-league-table{
    width:100% !important;
    table-layout: fixed !important;
  }

  table.sp-league-table th,
  table.sp-league-table td{
    padding:6px 4px !important;
    font-size:12px !important;
    line-height:1.15 !important;
    text-align:center !important;
    white-space:nowrap !important;
    overflow:hidden !important;
    text-overflow:ellipsis !important;
  }

  /* Team column usually = data-name (and contains crest + name) */
  table.sp-league-table th.data-name,
  table.sp-league-table td.data-name{
    text-align:left !important;
  }

  table.sp-league-table td.data-name img{
    max-height:18px !important;
    width:auto !important;
    margin-right:6px !important;
    vertical-align:middle !important;
  }

  /* Column widths (tuned for portrait) */
  table.sp-league-table th.data-pos,
  table.sp-league-table td.data-pos{ width:34px !important; }

  table.sp-league-table th.data-name,
  table.sp-league-table td.data-name{ width:42% !important; } /* Team gets space */

  table.sp-league-table th.data-pld,
  table.sp-league-table td.data-pld,
  table.sp-league-table th.data-w,
  table.sp-league-table td.data-w,
  table.sp-league-table th.data-d,
  table.sp-league-table td.data-d,
  table.sp-league-table th.data-l,
  table.sp-league-table td.data-l{ width:7% !important; }

  table.sp-league-table th.data-pts,
  table.sp-league-table td.data-pts{ width:10% !important; }

  /* Optional: hide heavy columns on portrait so it fits */
  table.sp-league-table th.data-pf,
  table.sp-league-table td.data-pf,
  table.sp-league-table th.data-pa,
  table.sp-league-table td.data-pa,
  table.sp-league-table th.data-next,
  table.sp-league-table td.data-next{
    display:none !important;
  }
}
/* FIX: League table on MOBILE PORTRAIT — force Team column to show + keep W/D/L */
@media (max-width: 480px){

  /* compact table */
  .sp-table-wrapper table.sp-league-table{
    width:100% !important;
    table-layout: fixed !important;
  }

  .sp-table-wrapper table.sp-league-table th,
  .sp-table-wrapper table.sp-league-table td{
    padding:6px 4px !important;
    font-size:12px !important;
    line-height:1.15 !important;
    white-space:nowrap !important;
    overflow:hidden !important;
    text-overflow:ellipsis !important;
    text-align:center !important;
  }

  /* FORCE Team column to show (some earlier rules are hiding/collapsing it) */
  .sp-table-wrapper table.sp-league-table th.data-name,
  .sp-table-wrapper table.sp-league-table td.data-name{
    display:table-cell !important;
    width:42% !important;              /* give Team the most space */
    text-align:left !important;
  }

  /* extra safety: if Team is the 2nd column and was hidden by nth-child rules */
  .sp-table-wrapper table.sp-league-table :is(th,td):nth-child(2){
    display:table-cell !important;
  }

  /* tighten other column widths so everything fits */
  .sp-table-wrapper table.sp-league-table th.data-pos,
  .sp-table-wrapper table.sp-league-table td.data-pos{ width:30px !important; }

  .sp-table-wrapper table.sp-league-table th.data-pld,
  .sp-table-wrapper table.sp-league-table td.data-pld{ width:34px !important; }

  .sp-table-wrapper table.sp-league-table th.data-w,
  .sp-table-wrapper table.sp-league-table td.data-w,
  .sp-table-wrapper table.sp-league-table th.data-d,
  .sp-table-wrapper table.sp-league-table td.data-d,
  .sp-table-wrapper table.sp-league-table th.data-l,
  .sp-table-wrapper table.sp-league-table td.data-l{ width:28px !important; }

  .sp-table-wrapper table.sp-league-table th.data-diff,
  .sp-table-wrapper table.sp-league-table td.data-diff{ width:34px !important; }

  .sp-table-wrapper table.sp-league-table th.data-pts,
  .sp-table-wrapper table.sp-league-table td.data-pts{ width:34px !important; }

  /* OPTIONAL (recommended): hide PF/PA/Next on portrait so Team + W/D/L fit */
  .sp-table-wrapper table.sp-league-table th.data-pf,
  .sp-table-wrapper table.sp-league-table td.data-pf,
  .sp-table-wrapper table.sp-league-table th.data-pa,
  .sp-table-wrapper table.sp-league-table td.data-pa,
  .sp-table-wrapper table.sp-league-table th.data-next,
  .sp-table-wrapper table.sp-league-table td.data-next{
    display:none !important;
  }

  /* crest sizing inside Team cell */
  .sp-table-wrapper table.sp-league-table td.data-name img{
    max-height:18px !important;
    width:auto !important;
    margin-right:6px !important;
    vertical-align:middle !important;
  }
}
/* MOBILE PORTRAIT — tighten league table columns further */
@media (max-width: 480px){

  .sp-table-wrapper table.sp-league-table{
    table-layout: fixed !important;
    width: 100% !important;
  }

  /* tighten cell padding + font */
  .sp-table-wrapper table.sp-league-table th,
  .sp-table-wrapper table.sp-league-table td{
    padding: 4px 2px !important;
    font-size: 11px !important;
    line-height: 1.05 !important;
  }

  /* hard column widths (sum stays within screen) */
  .sp-table-wrapper table.sp-league-table :is(th,td).data-pos{ width: 26px !important; }

  /* Team column: crest only (no text) on portrait */
  .sp-table-wrapper table.sp-league-table :is(th,td).data-name{
    width: 34px !important;
    text-align: center !important;
  }

  /* hide team text, keep crest */
  .sp-table-wrapper table.sp-league-table td.data-name a{
    font-size: 0 !important;
  }
  .sp-table-wrapper table.sp-league-table td.data-name img{
    max-height: 20px !important;
    margin: 0 !important;
  }

  .sp-table-wrapper table.sp-league-table :is(th,td).data-pld{ width: 28px !important; }
  .sp-table-wrapper table.sp-league-table :is(th,td).data-w,
  .sp-table-wrapper table.sp-league-table :is(th,td).data-d,
  .sp-table-wrapper table.sp-league-table :is(th,td).data-l{ width: 24px !important; }

  .sp-table-wrapper table.sp-league-table :is(th,td).data-diff{ width: 30px !important; }
  .sp-table-wrapper table.sp-league-table :is(th,td).data-pts{ width: 28px !important; }

  /* keep headers from wrapping */
  .sp-table-wrapper table.sp-league-table thead th{
    white-space: nowrap !important;
  }

  /* if any leftover wide cols exist, force-hide them */
  .sp-table-wrapper table.sp-league-table :is(th,td).data-pf,
  .sp-table-wrapper table.sp-league-table :is(th,td).data-pa,
  .sp-table-wrapper table.sp-league-table :is(th,td).data-next{
    display: none !important;
  }
}
/* MOBILE PORTRAIT — tighter again (Pos + W/D/L) */
@media (max-width: 480px){

  .sp-table-wrapper table.sp-league-table{
    table-layout: fixed !important;
    width: 100% !important;
  }

  /* smaller overall */
  .sp-table-wrapper table.sp-league-table th,
  .sp-table-wrapper table.sp-league-table td{
    padding: 3px 1px !important;
    font-size: 10px !important;
    line-height: 1.0 !important;
  }

  /* POS: make it as tight as possible */
  .sp-table-wrapper table.sp-league-table :is(th,td).data-pos{
    width: 20px !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  /* TEAM (crest-only) tighter */
  .sp-table-wrapper table.sp-league-table :is(th,td).data-name{
    width: 28px !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    text-align: center !important;
  }
  .sp-table-wrapper table.sp-league-table td.data-name a{
    font-size: 0 !important;      /* hide name text */
  }
  .sp-table-wrapper table.sp-league-table td.data-name img{
    max-height: 18px !important;
    margin: 0 !important;
  }

  /* PLD / W / D / L: tighten */
  .sp-table-wrapper table.sp-league-table :is(th,td).data-pld{ width: 22px !important; padding-left:0!important; padding-right:0!important; }

  .sp-table-wrapper table.sp-league-table :is(th,td).data-w,
  .sp-table-wrapper table.sp-league-table :is(th,td).data-d,
  .sp-table-wrapper table.sp-league-table :is(th,td).data-l{
    width: 20px !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  /* +/- and PTS a touch tighter too */
  .sp-table-wrapper table.sp-league-table :is(th,td).data-diff{ width: 26px !important; padding-left:0!important; padding-right:0!important; }
  .sp-table-wrapper table.sp-league-table :is(th,td).data-pts{ width: 22px !important; padding-left:0!important; padding-right:0!important; }

  /* keep headers on one line */
  .sp-table-wrapper table.sp-league-table thead th{
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }
}
/* MOBILE PORTRAIT — force-fit league table + restore crests in Team col */
@media (max-width: 480px){

  /* Lock layout */
  .sp-table-wrapper table.sp-league-table{
    table-layout: fixed !important;
    width: 100% !important;
  }

  /* Tighten everything */
  .sp-table-wrapper table.sp-league-table th,
  .sp-table-wrapper table.sp-league-table td{
    padding: 3px 1px !important;
    font-size: 10px !important;
    line-height: 1 !important;
  }

  /* Column widths by POSITION (your order: Pos, Team, PLD, W, D, L, +/-, PTS) */
  .sp-table-wrapper table.sp-league-table :is(th,td):nth-child(1){ /* Pos */
    width: 20px !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  .sp-table-wrapper table.sp-league-table :is(th,td):nth-child(2){ /* Team */
    width: 30px !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    text-align: center !important;
  }

  .sp-table-wrapper table.sp-league-table :is(th,td):nth-child(3){ /* PLD */
    width: 22px !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  .sp-table-wrapper table.sp-league-table :is(th,td):nth-child(4), /* W */
  .sp-table-wrapper table.sp-league-table :is(th,td):nth-child(5), /* D */
  .sp-table-wrapper table.sp-league-table :is(th,td):nth-child(6){ /* L */
    width: 20px !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  .sp-table-wrapper table.sp-league-table :is(th,td):nth-child(7){ /* +/- */
    width: 34px !important; /* allow 2–3 digits + minus */
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  .sp-table-wrapper table.sp-league-table :is(th,td):nth-child(8){ /* PTS */
    width: 26px !important; /* allow 2 digits */
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  /* Make sure the TEAM column shows the crest (and doesn't go blank) */
  .sp-table-wrapper table.sp-league-table td:nth-child(2) img{
    display: inline-block !important;
    visibility: visible !important;
    opacity: 1 !important;
    max-height: 18px !important;
    width: auto !important;
    height: auto !important;
    margin: 0 !important;
  }

  /* If SportPress outputs "crest + text", hide the text but keep image */
  .sp-table-wrapper table.sp-league-table td:nth-child(2) a{
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0 !important;
  }
  .sp-table-wrapper table.sp-league-table td:nth-child(2) a{
    font-size: 0 !important; /* hides name text */
  }
  .sp-table-wrapper table.sp-league-table td:nth-child(2) a img{
    font-size: 10px !important; /* prevents weird inheritance edge cases */
  }

  /* Keep headers readable (no wrapping) */
  .sp-table-wrapper table.sp-league-table thead th{
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }
}
/* MOBILE PORTRAIT — swap Team and +/- column widths */
@media (max-width: 480px){

  /* TEAM column — give it the old +/- width */
  .sp-table-wrapper table.sp-league-table :is(th,td):nth-child(2){
    width: 34px !important; /* was +/- */
    min-width: 34px !important;
    text-align: center !important;
  }

  /* +/- column — shrink it to numeric-only width */
  .sp-table-wrapper table.sp-league-table :is(th,td):nth-child(7){
    width: 22px !important;
    min-width: 22px !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    text-align: center !important;
  }

  /* Keep crests clean in Team column */
  .sp-table-wrapper table.sp-league-table td:nth-child(2) img{
    max-height: 18px !important;
    width: auto !important;
    height: auto !important;
    display: inline-block !important;
  }

  /* Hide team name text but keep crest */
  .sp-table-wrapper table.sp-league-table td:nth-child(2) a{
    font-size: 0 !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
  }
}
/* BHW — Mobile portrait: give TEAM the space, shrink +/-  */
@media (max-width: 600px){

  /* target SportPress league tables */
  table.sp-league-table{
    width: 100% !important;
    table-layout: fixed !important; /* forces widths to actually apply */
  }

  table.sp-league-table th,
  table.sp-league-table td{
    padding: 8px 6px !important;
    white-space: nowrap !important;
    text-align: center !important;
  }

  /* Pos (tight) */
  table.sp-league-table th:nth-child(1),
  table.sp-league-table td:nth-child(1){
    width: 34px !important;
  }

  /* Team (WIDE) — takes the space you want */
  table.sp-league-table th:nth-child(2),
  table.sp-league-table td:nth-child(2){
    width: 92px !important;
  }

  /* PLD (tight-ish) */
  table.sp-league-table th:nth-child(3),
  table.sp-league-table td:nth-child(3){
    width: 40px !important;
  }

  /* W / D / L (very tight — single digits) */
  table.sp-league-table th:nth-child(4),
  table.sp-league-table td:nth-child(4),
  table.sp-league-table th:nth-child(5),
  table.sp-league-table td:nth-child(5),
  table.sp-league-table th:nth-child(6),
  table.sp-league-table td:nth-child(6){
    width: 28px !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  /* +/- (NARROW — give its space to Team) */
  table.sp-league-table th:nth-child(7),
  table.sp-league-table td:nth-child(7){
    width: 34px !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  /* PTS (tight-ish but can hit double digits) */
  table.sp-league-table th:nth-child(8),
  table.sp-league-table td:nth-child(8){
    width: 40px !important;
  }

  /* If the Team cell is crest-only, keep the crest nicely sized */
  table.sp-league-table td:nth-child(2) img{
    max-height: 18px !important;
    width: auto !important;
    height: auto !important;
    display: inline-block !important;
  }
}
/* =========================================================
   BHW — SportPress Mobile Portrait Column Swap (REAL FIX)
   Swaps TEAM <-> +/- widths without touching other columns
========================================================= */

@media (max-width: 600px){

  /* lock table layout */
  table.sp-league-table{
    table-layout: fixed !important;
    width: 100% !important;
  }

  table.sp-league-table th,
  table.sp-league-table td{
    padding: 8px 6px !important;
    text-align: center !important;
    white-space: nowrap !important;
  }

  /* ---------- POS (leave as-is but ensure tight) ---------- */
  table.sp-league-table th[data-label="Pos"],
  table.sp-league-table td[data-label="Pos"]{
    width: 34px !important;
  }

  /* ---------- TEAM (STEAL WIDTH FROM +/-) ---------- */
  table.sp-league-table th[data-label="Team"],
  table.sp-league-table td[data-label="Team"]{
    width: 90px !important; /* was +/- width */
    text-align: left !important;
  }

  /* crest-only team cells */
  table.sp-league-table td[data-label="Team"] img{
    max-height: 18px !important;
    width: auto !important;
    height: auto !important;
    display: inline-block !important;
  }

  /* ---------- PLD / W / D / L (DO NOT CHANGE) ---------- */
  table.sp-league-table th[data-label="PLD"],
  table.sp-league-table td[data-label="PLD"],
  table.sp-league-table th[data-label="W"],
  table.sp-league-table td[data-label="W"],
  table.sp-league-table th[data-label="D"],
  table.sp-league-table td[data-label="D"],
  table.sp-league-table th[data-label="L"],
  table.sp-league-table td[data-label="L"]{
    width: 32px !important;
  }

  /* ---------- +/- (NOW SMALL) ---------- */
  table.sp-league-table th[data-label="+/-"],
  table.sp-league-table td[data-label="+/-"]{
    width: 36px !important; /* swap completed */
    padding-left: 4px !important;
    padding-right: 4px !important;
  }

  /* ---------- PTS (unchanged) ---------- */
  table.sp-league-table th[data-label="PTS"],
  table.sp-league-table td[data-label="PTS"]{
    width: 40px !important;
  }
}
/* =========================================================
   BHW — League Table Mobile Portrait Column Swap
   Goal: give TEAM the space currently being wasted by +/-,
         keep Pos/PLD/W/D/L/PTS as-is (small),
         make +/- tight,
         fix crest clipping/position.
========================================================= */

@media (max-width: 480px){

  /* Ensure the table can actually obey our widths */
  .sp-league-table table,
  table.sp-league-table,
  .sp-table-wrapper table{
    table-layout: fixed !important;
    width: 100% !important;
  }

  /* Tighten cell padding so columns can fit */
  .sp-league-table th,
  .sp-league-table td,
  table.sp-league-table th,
  table.sp-league-table td{
    padding: 10px 6px !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    vertical-align: middle !important;
  }

  /* Column widths (portrait view you showed: Pos, Team, PLD, W, D, L, +/-, PTS)
     1  Pos  (tiny)
     2  Team (WIDE)
     3  PLD  (tiny)
     4  W    (tiny)
     5  D    (tiny)
     6  L    (tiny)
     7  +/-  (TIGHT)
     8  PTS  (small)
  */
  .sp-league-table th:nth-child(1), .sp-league-table td:nth-child(1){ width: 42px !important; text-align:center !important; }
  .sp-league-table th:nth-child(3), .sp-league-table td:nth-child(3){ width: 44px !important; text-align:center !important; }
  .sp-league-table th:nth-child(4), .sp-league-table td:nth-child(4){ width: 36px !important; text-align:center !important; }
  .sp-league-table th:nth-child(5), .sp-league-table td:nth-child(5){ width: 36px !important; text-align:center !important; }
  .sp-league-table th:nth-child(6), .sp-league-table td:nth-child(6){ width: 36px !important; text-align:center !important; }
  .sp-league-table th:nth-child(7), .sp-league-table td:nth-child(7){ width: 44px !important; text-align:center !important; } /* +/- tight */
  .sp-league-table th:nth-child(8), .sp-league-table td:nth-child(8){ width: 52px !important; text-align:center !important; } /* PTS */

  /* TEAM column gets the remaining space */
  .sp-league-table th:nth-child(2), .sp-league-table td:nth-child(2){
    width: auto !important;
    text-align: left !important;
    overflow: visible !important;          /* prevents the “crest looks cut off” effect */
    text-overflow: clip !important;
    padding-left: 8px !important;
  }

  /* If Team cell contains crest + name, keep it aligned and stop clipping */
  .sp-league-table td:nth-child(2) img{
    max-height: 22px !important;
    width: auto !important;
    vertical-align: middle !important;
    margin-right: 6px !important;
  }

  /* If your Team column is crest-only on mobile, center that crest properly */
  .sp-league-table td:nth-child(2){
    line-height: 1.2 !important;
  }

  /* Just in case a wrapper is clipping content */
  .sp-table-wrapper,
  .sp-league-table{
    overflow: visible !important;
  }
}
/* ===============================
   SPORTSPRESS LEAGUE TABLE – MOBILE & DESKTOP
   Bill Hill Wicklow
   =============================== */

/* Base table styling */
body .sp-template-league-table table.sp-league-table{
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

/* Vertical centering for ALL cells */
body .sp-template-league-table table.sp-league-table th,
body .sp-template-league-table table.sp-league-table td{
  vertical-align: middle !important;
}

/* ===============================
   COLUMN WIDTH CONTROL
   (DO NOT CHANGE — these are correct)
   =============================== */

body .sp-template-league-table .data-rank{ width: 44px; }
body .sp-template-league-table .data-pld{ width: 48px; }
body .sp-template-league-table .data-win,
body .sp-template-league-table .data-draw,
body .sp-template-league-table .data-loss{ width: 44px; }

body .sp-template-league-table .data-pd{ width: 70px; }   /* +/- */
body .sp-template-league-table .data-pts{ width: 56px; } /* PTS */

/* ===============================
   TEAM COLUMN — LEFT ALIGNED (KEY FIX)
   =============================== */

/* Cell itself */
body .sp-template-league-table table.sp-league-table td.data-name{
  text-align: left !important;
  padding-left: 12px !important;
}

/* Anchor holds crest + name */
body .sp-template-league-table table.sp-league-table td.data-name > a{
  display: flex !important;
  align-items: center !important;          /* vertical centering */
  justify-content: flex-start !important;  /* LEFT aligned */
  gap: 10px !important;
  width: 100% !important;
}

/* Crest wrapper */
body .sp-template-league-table table.sp-league-table .team-logo{
  display: inline-flex !important;
  align-items: center !important;
}

/* Crest image */
body .sp-template-league-table table.sp-league-table .team-logo img{
  width: 26px !important;
  height: 26px !important;
  object-fit: contain !important;
  margin: 0 !important;
}

/* Team name text */
body .sp-template-league-table table.sp-league-table td.data-name a{
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ===============================
   MOBILE REFINEMENTS
   =============================== */

@media (max-width: 600px){
  body .sp-template-league-table table.sp-league-table td,
  body .sp-template-league-table table.sp-league-table th{
    padding-top: 10px;
    padding-bottom: 10px;
  }
}
/* Hide empty hub ad containers */
.bhw-hub__ad:empty { display: none !important; }

/* Hide unfilled AdSense units */
ins.adsbygoogle[data-ad-status="unfilled"] {
  display: none !important;
}

/* If Advanced Ads wraps an empty slot, collapse wrapper too */
.bhw-hub__ad ins.adsbygoogle:empty {
  display: none !important;
}
/* ===== BHW League Hub readability fixes (Page ID: 107419) ===== */
body.page-id-107419 .entry-content{
  color:#0b1b2b;
  line-height:1.6;
}

/* Make intro text readable on dark theme backgrounds */
body.page-id-107419 .entry-content > h2,
body.page-id-107419 .entry-content > p{
  max-width: 1100px;
  margin-left:auto;
  margin-right:auto;
}

/* Turn the intro paragraph into a light card */
body.page-id-107419 .entry-content > p:first-of-type{
  background: rgba(255,255,255,0.92);
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 16px;
  padding: 16px 18px;
  font-size: 16px;
  line-height: 1.7;
  box-shadow: 0 10px 30px rgba(0,0,0,0.10);
}

/* Headings: stronger hierarchy */
body.page-id-107419 .entry-content h2{
  color:#ffffff;
  text-shadow: 0 2px 12px rgba(0,0,0,0.45);
  font-size: 22px;
  margin-top: 10px;
  margin-bottom: 10px;
}

/* Hub container: light canvas so SportPress tables are readable */
body.page-id-107419 .bhw-hub{
  max-width: 1100px;
  margin: 18px auto 40px;
  padding: 0 16px 20px;
}

/* Ensure hub blocks are true “cards” and not dark-on-dark */
body.page-id-107419 .bhw-hub__block,
body.page-id-107419 .bhw-hub__ad{
  background:#ffffff;
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 18px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

/* Improve the hub hero contrast */
body.page-id-107419 .bhw-hub__hero{
  background: linear-gradient(135deg, rgba(11,60,93,0.18), rgba(242,183,5,0.12));
  border: 1px solid rgba(255,255,255,0.10);
}
body.page-id-107419 .bhw-hub__h1,
body.page-id-107419 .bhw-hub__sub{
  color:#ffffff !important;
  text-shadow: 0 2px 14px rgba(0,0,0,0.45);
}

/* Make pills legible */
body.page-id-107419 .bhw-pill{
  background: rgba(255,255,255,0.92);
  color:#0b1b2b;
}

/* Tabs: clearer */
body.page-id-107419 .bhw-tab{
  font-size: 14px;
}
body.page-id-107419 .bhw-tab.is-active{
  color:#fff;
}

/* Hide empty/blank ad gaps */
body.page-id-107419 .bhw-hub__ad:empty{ display:none !important; }
body.page-id-107419 ins.adsbygoogle[data-ad-status="unfilled"]{ display:none !important; }
body.page-id-107419 .bhw-hub__h2{
  font-size: 20px;
  font-weight: 700;
  color: #0b3c5d;
  margin-bottom: 12px;
}
body.page-id-107419 .bhw-hub__block{
  border: none;
}
/* Latest Analysis block */
.bhw-latest-analysis {
  background: linear-gradient(135deg, #0f1c2d, #142840);
  border-left: 4px solid #f2b705;
  border-radius: 12px;
  padding: 18px 20px;
  margin-top: 14px;
}

.bhw-latest-analysis h3 {
  color: #ffffff;
  font-size: 1.15rem;
  margin-bottom: 8px;
}

.bhw-latest-analysis p {
  color: #e6ecf3;
  font-size: 0.95rem;
  line-height: 1.55;
  margin: 0;
  opacity: 0.95;
}

/* Placeholder hint styling */
.bhw-latest-analysis .bhw-tip {
  font-style: italic;
  opacity: 0.8;
}
/* Explore section */
.bhw-explore {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  margin-top: 12px;
}

.bhw-explore-card {
  background: linear-gradient(135deg, #0b3c5d, #0f4c75);
  border-radius: 12px;
  padding: 14px 16px;
  text-decoration: none;
  color: #ffffff;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.bhw-explore-card strong {
  display: block;
  font-size: 1rem;
  margin-bottom: 4px;
}

.bhw-explore-card span {
  font-size: 0.85rem;
  color: #e4edf6;
  opacity: 0.9;
}

.bhw-explore-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.25);
}
.bhw-latest-analysis {
  background: rgba(255,255,255,0.08);
  border-radius: 14px;
  padding: 20px 22px;
  margin: 28px 0;
}

.bhw-latest-analysis h2 {
  color: #ffffff;
  margin-bottom: 10px;
}

.bhw-latest-analysis p {
  color: #e6e6e6;
  line-height: 1.6;
  font-size: 15px;
}
.bhw-explore {
  margin: 32px 0;
}

.bhw-explore h2 {
  color: #ffffff;
  margin-bottom: 14px;
}

.bhw-explore-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}

.bhw-explore-card {
  background: linear-gradient(135deg, #0b2a5b, #081b3a);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px;
  padding: 16px 18px;
  text-decoration: none;
  color: #ffffff;
  transition: transform .15s ease, box-shadow .15s ease;
}

.bhw-explore-card strong {
  display: block;
  font-size: 16px;
  margin-bottom: 6px;
}

.bhw-explore-card span {
  font-size: 13px;
  color: #d0d8ff;
}

.bhw-explore-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0,0,0,.35);
}
/* BHW Hub Intro Card */
.bhw-hub-intro{
  margin: 18px 0 22px;
  border-radius: 18px;
  background: rgba(20,26,40,.65);
  border: 1px solid rgba(255,255,255,.08);
  box-shadow: 0 10px 30px rgba(0,0,0,.25);
  overflow: hidden;
}
.bhw-hub-intro__inner{
  display: grid;
  grid-template-columns: 1.35fr .65fr;
  gap: 18px;
  padding: 18px;
}
.bhw-hub-intro__title{
  margin: 0 0 6px;
  font-size: 22px;
  line-height: 1.15;
}
.bhw-hub-intro__sub{
  margin: 0 0 12px;
  opacity: .9;
}
.bhw-hub-intro__chips{
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 10px 0 12px;
}
.bhw-chip{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 999px;
  text-decoration: none;
  background: rgba(0,60,120,.35);
  border: 1px solid rgba(255,255,255,.10);
}
.bhw-chip:hover{ transform: translateY(-1px); }

.bhw-hub-intro__bullets{
  margin: 0;
  padding-left: 18px;
  opacity: .95;
}
.bhw-hub-mini{
  border-radius: 16px;
  background: rgba(0,70,140,.25);
  border: 1px solid rgba(255,255,255,.10);
  padding: 14px;
  height: 100%;
}
.bhw-hub-mini__kicker{
  font-size: 13px;
  letter-spacing: .4px;
  text-transform: uppercase;
  opacity: .85;
  margin-bottom: 10px;
}
.bhw-hub-mini__grid{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.bhw-mini-btn{
  display: block;
  text-align: center;
  padding: 10px 12px;
  border-radius: 14px;
  text-decoration: none;
  background: rgba(10,20,35,.55);
  border: 1px solid rgba(255,255,255,.10);
}
.bhw-mini-btn:hover{ transform: translateY(-1px); }

@media (max-width: 900px){
  .bhw-hub-intro__inner{ grid-template-columns: 1fr; }
}
/* === BHW Explore Section === */
.bhw-explore{
  margin: 22px 0 28px;
}

.bhw-explore-title{
  margin: 0 0 14px;
  font-size: 22px;
  letter-spacing: .2px;
}

.bhw-explore-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.bhw-explore-card{
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 16px 16px 18px;
  border-radius: 16px;
  text-decoration: none;
  background: linear-gradient(
    180deg,
    rgba(10,20,40,.55),
    rgba(5,10,25,.65)
  );
  border: 1px solid rgba(255,255,255,.10);
  box-shadow: 0 8px 22px rgba(0,0,0,.25);
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}

.bhw-explore-card strong{
  font-size: 16px;
  font-weight: 700;
}

.bhw-explore-card span{
  font-size: 14px;
  opacity: .9;
}

.bhw-explore-card:hover{
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(0,0,0,.35);
  background: linear-gradient(
    180deg,
    rgba(0,60,120,.55),
    rgba(10,25,55,.75)
  );
}

/* Tablet */
@media (max-width: 900px){
  .bhw-explore-grid{
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Mobile */
@media (max-width: 520px){
  .bhw-explore-grid{
    grid-template-columns: 1fr;
  }
}
/* === BHW Hub Intro Card === */
.bhw-hub-intro{
  margin: 18px 0 26px;
  padding: 18px 20px;
  border-radius: 18px;
  background: linear-gradient(
    180deg,
    rgba(15,25,45,.65),
    rgba(10,15,30,.75)
  );
  border: 1px solid rgba(255,255,255,.12);
  box-shadow: 0 10px 26px rgba(0,0,0,.28);
}

.bhw-hub-intro h2{
  margin: 0 0 10px;
  font-size: 20px;
}

.bhw-hub-intro ul{
  margin: 0 0 14px;
  padding-left: 18px;
}

.bhw-hub-intro li{
  margin-bottom: 6px;
}

.bhw-hub-intro p{
  margin: 0 0 10px;
  line-height: 1.6;
}

.bhw-hub-note{
  margin-top: 8px;
  font-style: italic;
  opacity: .9;
}
/* === BHW Hub Intro Card (Improved Contrast) === */
.bhw-hub-intro{
  margin: 18px 0 26px;
  padding: 22px 24px;
  border-radius: 18px;

  /* Lighter, cleaner card background */
  background: linear-gradient(
    180deg,
    rgba(20,35,65,.88),
    rgba(12,20,40,.92)
  );

  border: 1px solid rgba(255,255,255,.14);
  box-shadow: 0 14px 32px rgba(0,0,0,.35);

  color: #f5f7fb; /* FORCE readable text */
}

.bhw-hub-intro h2{
  margin: 0 0 12px;
  font-size: 20px;
  color: #ffffff;
}

.bhw-hub-intro ul{
  margin: 0 0 16px;
  padding-left: 18px;
}

.bhw-hub-intro li{
  margin-bottom: 8px;
  color: #e6ebf5;
}

.bhw-hub-intro p{
  margin: 0 0 12px;
  line-height: 1.65;
  color: #e9eef8;
}

.bhw-hub-note{
  margin-top: 10px;
  font-style: italic;
  color: #cfd8ee;
}
.bhw-hub-summary{
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid rgba(255,255,255,.12);
  font-size: 15px;
  color: #eaf0ff;
}

.bhw-hub-summary strong{
  color: #f2b705;
}
.bhw-hub-intro-card{
  background: linear-gradient(180deg, rgba(20,30,50,.85), rgba(10,15,30,.9));
  border-radius: 16px;
  padding: 22px 24px;
  margin: 26px 0;
  box-shadow: 0 10px 30px rgba(0,0,0,.35);
}

.bhw-hub-intro-card h2{
  margin-top: 0;
  font-size: 20px;
  color: #ffffff;
}

.bhw-hub-bullets{
  margin: 12px 0 18px;
  padding-left: 18px;
}

.bhw-hub-bullets li{
  margin-bottom: 8px;
  color: #dce6ff;
}

.bhw-hub-intro-card p{
  color: #e3ebff;
  line-height: 1.6;
  margin-bottom: 12px;
}

.bhw-hub-summary{
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid rgba(255,255,255,.15);
  font-size: 15px;
  color: #eaf0ff;
}

.bhw-hub-summary strong{
  color: #f2b705;
}