/* =========================================================
   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;
}
