/*
Theme Name: TZbetting Bendera
Theme URI: https://tzbetting.com/
Author: AICT Media
Description: Lightweight dark theme for TZbetting.com. Toplists, per-page CTA widget (bonus / odds / compact), previous/next and related-article widgets, EN/SW switcher (Polylang) and Tanzanian flag-colour accents.
Version: 1.0.0
Requires at least: 6.3
Requires PHP: 7.4
License: GPL-2.0-or-later
Text Domain: tzb
WPVibe: yes
*/

/* ---------- Tokens ---------- */
:root {
  --bg: #0B1410;
  --surface: #13221A;
  --surface-2: #1A2E23;
  --line: #2A4434;
  --text: #F3F7F4;
  --text-body: #E1E9E4;
  --muted: #A9BDB0;
  --yellow: #FCD116;
  --green: #1EB53A;
  --blue: #00A3DD;
  --on-yellow: #0B1410;
  --radius: 12px;
  --radius-sm: 10px;
  --head: 'Barlow Condensed', 'Arial Narrow', 'Roboto Condensed', sans-serif;
  --body: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --wrap: 1180px;
  --read: 880px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text-body); font: 400 17px/1.65 var(--body); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--yellow); text-underline-offset: 3px; }
a:hover { color: #FFE466; }
h1, h2, h3, h4 { font-family: var(--head); font-weight: 800; text-transform: uppercase; color: var(--text); line-height: 1.08; letter-spacing: .005em; margin: 1.6em 0 .5em; }
h1 { font-size: clamp(34px, 5vw, 54px); margin-top: 0; }
h2 { font-size: clamp(26px, 3.4vw, 34px); }
h3 { font-size: 24px; }
h4 { font-size: 20px; }
p, ul, ol { margin: 0 0 1.1em; }
hr { border: 0; border-top: 1px solid var(--line); margin: 2em 0; }
table { width: 100%; border-collapse: collapse; font-size: 15px; margin: 0 0 1.4em; }
th, td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; }
th { color: var(--text); background: var(--surface-2); font-weight: 600; }
blockquote { margin: 1.4em 0; padding: 4px 0 4px 18px; border-left: 4px solid var(--green); color: var(--text); }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
.screen-reader-text { position: absolute !important; clip: rect(1px,1px,1px,1px); width: 1px; height: 1px; overflow: hidden; }
.skip-link:focus { clip: auto; width: auto; height: auto; z-index: 100; top: 8px; left: 8px; padding: 10px 14px; background: var(--yellow); color: var(--on-yellow); }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.read { max-width: var(--read); }

/* ---------- Flag band ---------- */
.tzb-band { height: 8px; background: linear-gradient(115deg, var(--green) 0 46%, var(--bg) 46% 48%, var(--yellow) 48% 54%, var(--bg) 54% 56%, var(--blue) 56% 100%); }

/* ---------- Header ---------- */
.site-header { background: var(--bg); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }
.site-header .wrap { display: flex; align-items: center; gap: 24px; min-height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; flex-shrink: 0; }
.brand .custom-logo { max-height: 44px; width: auto; }
.brand-word { font: 800 28px/1 var(--head); text-transform: uppercase; color: #fff; }
.brand-word span { color: var(--yellow); }
.main-nav { flex-grow: 1; }
.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 22px; }
.main-nav a { color: var(--text); text-decoration: none; font-weight: 600; font-size: 15px; }
.main-nav a:hover, .main-nav .current-menu-item > a, .main-nav .current-menu-ancestor > a { color: var(--yellow); }
.main-nav li { position: relative; }
.main-nav > ul > li { padding: 22px 0; }
.main-nav .menu-item-has-children > a::after { content: ""; display: inline-block; width: 6px; height: 6px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); margin-left: 7px; vertical-align: 3px; }
.main-nav .sub-menu { display: none; position: absolute; top: 100%; left: -16px; min-width: 230px; flex-direction: column; gap: 0; padding: 8px 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); box-shadow: 0 14px 32px rgba(0,0,0,.4); z-index: 60; }
.main-nav li:hover > .sub-menu, .main-nav li:focus-within > .sub-menu { display: flex; }
.main-nav .sub-menu a { display: block; padding: 10px 16px; font-weight: 500; font-size: 14px; white-space: nowrap; }
.main-nav .sub-menu a:hover, .main-nav .sub-menu a:focus-visible { background: var(--bg); }
.sub-toggle { display: none; }
.nav-parent { background: none; border: 0; padding: 0; color: var(--text); font: 600 15px var(--body); cursor: pointer; }
.nav-parent::after { content: ""; display: inline-block; width: 6px; height: 6px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); margin-left: 7px; vertical-align: 3px; }
.nav-parent:hover, .current-menu-ancestor > .nav-parent { color: var(--yellow); }
.main-nav li.is-open > .sub-menu { display: flex; }
.main-nav .sub-menu.mega { flex-direction: row; gap: 0; padding: 12px 6px; min-width: 500px; }
.main-nav .mega-col { flex: 1; min-width: 230px; }
.main-nav .sub-menu .mega-head { display: block; padding: 6px 16px 8px; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--yellow); }
.main-nav .mega-list { display: flex; flex-direction: column; gap: 0; }
.main-nav .mega-list a { padding: 8px 16px; }
.lang-switch { display: flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; flex-shrink: 0; }
.lang-switch a { font: 700 13px var(--body); padding: 8px 14px; color: var(--text); text-decoration: none; min-height: 36px; display: flex; align-items: center; }
.lang-switch a[aria-current="true"] { background: var(--yellow); color: var(--on-yellow); }
.menu-toggle { display: none; background: none; border: 1px solid var(--line); color: var(--text); border-radius: 10px; width: 44px; height: 44px; align-items: center; justify-content: center; cursor: pointer; }

@media (max-width: 900px) {
  .site-header .wrap { flex-wrap: wrap; gap: 12px; }
  .menu-toggle { display: inline-flex; margin-left: auto; }
  .main-nav { order: 5; flex-basis: 100%; display: none; padding-bottom: 12px; }
  .main-nav.is-open { display: block; }
  .main-nav ul { flex-direction: column; gap: 0; }
  .main-nav li a { display: block; padding: 12px 4px; border-bottom: 1px solid var(--line); }
  .main-nav.is-open { max-height: calc(100vh - 80px); max-height: calc(100dvh - 80px); overflow-y: auto; overscroll-behavior: contain; }
  .main-nav > ul > li { padding: 0; }
  .main-nav .menu-item-has-children > a { padding-right: 52px; }
  .main-nav .menu-item-has-children > a::after { display: none; }
  .main-nav .sub-menu, .main-nav li:hover > .sub-menu, .main-nav li:focus-within > .sub-menu { display: none; position: static; min-width: 0; padding: 0 0 0 16px; background: none; border: 0; border-radius: 0; box-shadow: none; }
  .main-nav li.is-open > .sub-menu { display: block; }
  .main-nav .sub-menu a { font-size: 14px; white-space: normal; color: var(--muted); }
  .sub-toggle { position: absolute; right: 0; top: 0; width: 48px; height: 46px; display: flex; align-items: center; justify-content: center; background: none; border: 0; border-left: 1px solid var(--line); color: var(--text); cursor: pointer; }
  .sub-toggle::before { content: ""; width: 8px; height: 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); margin-top: -4px; transition: transform .15s; }
  li.is-open > .sub-toggle::before { transform: rotate(-135deg); margin-top: 4px; }
  .nav-parent { display: block; width: 100%; text-align: left; padding: 12px 52px 12px 4px; border-bottom: 1px solid var(--line); position: relative; }
  .nav-parent::after { position: absolute; right: 20px; top: 18px; margin: 0; }
  li.is-open > .nav-parent::after { transform: rotate(-135deg); top: 22px; }
  .main-nav .sub-menu.mega, .main-nav li:hover > .sub-menu.mega { display: none; }
  .main-nav li.is-open > .sub-menu.mega { display: block; }
  .main-nav .mega-col { min-width: 0; }
  .main-nav .sub-menu .mega-head { padding: 14px 4px 6px; border-bottom: 0; }
  .main-nav .mega-list { padding-left: 12px; }
  .main-nav .mega-list a { padding: 12px 4px; }
}

/* ---------- Hero / page head ---------- */
.page-hero { padding: 40px 0 34px; border-bottom: 1px solid var(--line); }
.crumbs { font-size: 13px; color: var(--muted); margin-bottom: 12px; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--yellow); }
.crumbs .sep { margin: 0 6px; opacity: .6; }
.page-hero .lead { font-size: 19px; color: var(--muted); max-width: 760px; margin: 12px 0 0; }
.meta-line { font-size: 13px; color: var(--muted); margin-top: 14px; display: flex; gap: 14px; flex-wrap: wrap; }
.badge-18 { display: inline-flex; align-items: center; justify-content: center; border: 2px solid currentColor; border-radius: 999px; padding: 1px 8px; font-weight: 700; font-size: 12px; }

/* ---------- Layout ---------- */
.site-main { padding: 34px 0 60px; }
.content-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px; }
@media (min-width: 1080px) { .content-grid.has-aside { grid-template-columns: minmax(0, 1fr) 320px; } }
.entry-content > *:first-child { margin-top: 0; }
.entry-content > p, .entry-content > ul, .entry-content > ol, .entry-content > blockquote { max-width: 72ch; }
.entry-content img { border-radius: var(--radius-sm); }
.entry-content figure { margin: 1.6em 0; }
.entry-content figcaption { font-size: 13px; color: var(--muted); margin-top: 6px; }
.featured { margin: 0 0 28px; border-radius: var(--radius); overflow: hidden; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 22px; border-radius: var(--radius-sm); background: var(--yellow); color: var(--on-yellow); font: 700 15px var(--body); text-decoration: none; border: 0; cursor: pointer; white-space: nowrap; }
.btn:hover { background: #FFE04D; color: var(--on-yellow); }
.btn-ghost { background: transparent; color: var(--yellow); border: 1px solid var(--line); }
.link-sm { font-size: 13px; font-weight: 600; text-align: center; }
.chip { font: 600 12px var(--body); padding: 5px 10px; border-radius: 999px; background: var(--surface-2); color: var(--text); border: 1px solid var(--line); white-space: nowrap; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }

/* ---------- Operator logo ---------- */
.op-logo { display: flex; align-items: center; justify-content: center; border-radius: var(--radius-sm); overflow: hidden; color: #fff; font: 700 15px var(--body); text-align: center; padding: 6px; }
.op-logo img { max-height: 100%; width: auto; object-fit: contain; }

/* ---------- Toplist ---------- */
.toplist { display: flex; flex-direction: column; gap: 14px; margin: 1.4em 0 1.8em; counter-reset: tl; }
.tl-row { display: grid; grid-template-columns: 36px 132px minmax(0, 1fr) 84px 168px; gap: 16px; align-items: center; padding: 18px 22px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.tl-rank { font: 800 30px var(--head); color: var(--yellow); text-align: center; }
.tl-row .op-logo { height: 64px; }
.tl-bonus { font: 700 18px/1.3 var(--body); color: var(--text); margin-bottom: 8px; }
.tl-rating { display: flex; flex-direction: column; align-items: center; }
.tl-rating strong { font: 800 28px var(--head); color: var(--text); }
.tl-rating span { font-size: 12px; color: var(--muted); }
.tl-cta { display: flex; flex-direction: column; gap: 6px; }
.tl-terms { font-size: 12px; color: var(--muted); grid-column: 1 / -1; margin-top: -6px; }
.toplist-note { font-size: 12px; color: var(--muted); }
.tl-name { font: 700 12px var(--body); letter-spacing: .06em; text-transform: uppercase; color: var(--yellow); margin-bottom: 2px; }

/* Odds comparison for tips ([tzb_tip_odds]) */
.btn-sm { min-height: 40px; padding: 0 16px; font-size: 14px; }
.tzb-odds { margin: 1.4em 0 1.8em; }
.tzb-otable { width: 100%; border-collapse: collapse; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; font-size: 14px; }
.tzb-otable caption { text-align: left; font: 700 13px var(--body); letter-spacing: .06em; text-transform: uppercase; color: var(--yellow); padding: 0 0 8px; }
.tzb-otable th { text-align: left; font-size: 12px; color: var(--muted); font-weight: 600; padding: 10px 12px; background: var(--surface-2); }
.tzb-otable td { padding: 12px; border-top: 1px solid var(--line); vertical-align: middle; }
.o-pick strong { display: block; color: var(--text); }
.o-pick span, .o-best span { display: block; font-size: 12px; color: var(--muted); }
.o-best b { font: 800 22px var(--display, var(--body)); color: var(--yellow); }
.o-high { display: block; margin-top: 4px; font-size: 12px; font-style: normal; color: #7CE38B; }
.o-other { display: inline-block; margin: 0 10px 2px 0; color: var(--muted); white-space: nowrap; }
.o-other b { color: var(--text); }
.o-cta { text-align: right; }
.tzb-onote { font-size: 12px; color: var(--muted); margin-top: 8px; }
.tzb-obox { display: flex; align-items: center; gap: 14px; justify-content: space-between; margin: 8px 0 14px; padding: 12px 14px; background: var(--surface); border: 1px solid var(--line); border-left: 3px solid var(--yellow); border-radius: var(--radius-sm); }
.tzb-obox .o-main { display: flex; flex-direction: column; gap: 2px; font-size: 14px; }
.tzb-obox .o-label { font-size: 12px; color: var(--muted); }
.tzb-obox .o-price b { font-size: 20px; color: var(--yellow); }
.tzb-obox .o-others { font-size: 12px; color: var(--muted); }
@media (max-width: 700px) {
  .tzb-otable thead { display: none; }
  .tzb-otable tr { display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; padding: 12px; border-top: 1px solid var(--line); }
  .tzb-otable td { padding: 0; border: 0; }
  .tzb-otable .o-others { grid-column: 1 / -1; }
  .tzb-otable .o-cta { grid-column: 1 / -1; text-align: left; }
  .tzb-otable .o-cta .btn { width: 100%; }
  .tzb-obox { flex-direction: column; align-items: stretch; }
}
@media (max-width: 900px) {
  .tl-row { grid-template-columns: 34px 96px minmax(0, 1fr); gap: 12px 14px; padding: 16px; }
  .tl-rank { font-size: 24px; }
  .tl-row .op-logo { height: 52px; }
  .tl-rating { flex-direction: row; gap: 6px; align-items: baseline; grid-column: 3; }
  .tl-cta { grid-column: 1 / -1; }
  .tl-bonus { font-size: 17px; }
}

/* ---------- CTA widget ---------- */
.tzb-cta { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; margin: 1.6em 0; display: grid; gap: 16px; }
.tzb-cta-head { display: flex; align-items: center; gap: 14px; }
.tzb-cta .op-logo { width: 72px; height: 72px; flex-shrink: 0; }
.tzb-cta-title { font: 800 26px/1.1 var(--head); text-transform: uppercase; color: var(--text); margin: 0; }
.tzb-cta-sub { margin: 0; color: var(--text-body); font-size: 16px; }
.tzb-cta-terms { font-size: 12px; color: var(--muted); }
.tzb-cta-odds { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.tzb-cta-odds div { display: flex; flex-direction: column; align-items: center; padding: 10px 0; background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius-sm); }
.tzb-cta-odds span { font-size: 12px; color: var(--muted); font-weight: 600; }
.tzb-cta-odds strong { font-size: 19px; color: var(--text); }
.tzb-cta.is-odds .op-logo { width: 72px; height: 44px; }
.tzb-cta.is-odds .tzb-cta-title { font: 700 18px/1.3 var(--body); text-transform: none; }
@media (min-width: 700px) { .tzb-cta.is-bonus { grid-template-columns: minmax(0, 1fr) auto; align-items: center; } .tzb-cta.is-bonus .tzb-cta-terms { grid-column: 1 / -1; } }

/* Sticky compact bar (phones) */
.tzb-sticky { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; background: var(--surface); border-top: 1px solid var(--line); padding: 10px 14px calc(10px + env(safe-area-inset-bottom)); display: none; }
.tzb-sticky .inner { display: flex; align-items: center; gap: 12px; max-width: 640px; margin: 0 auto; }
.tzb-sticky .op-logo { width: 44px; height: 44px; flex-shrink: 0; font-size: 11px; }
.tzb-sticky .txt { flex-grow: 1; font: 700 15px/1.25 var(--body); color: var(--text); }
.tzb-sticky .btn { min-height: 44px; padding: 0 16px; font-size: 14px; }
.tzb-sticky-close { background: none; border: 0; color: var(--muted); width: 32px; height: 44px; cursor: pointer; font-size: 20px; }
@media (max-width: 760px) { .tzb-sticky.is-on { display: block; } body.has-sticky { padding-bottom: 76px; } }

/* ---------- Previous / Next ---------- */
.tzb-prevnext { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin: 40px 0 0; }
.tzb-prevnext a { display: flex; flex-direction: column; gap: 4px; padding: 16px 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; min-height: 84px; }
.tzb-prevnext a:hover { border-color: var(--yellow); }
.tzb-prevnext .dir { font: 600 12px var(--body); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.tzb-prevnext .ttl { font: 700 16px/1.35 var(--body); color: var(--text); }
.tzb-prevnext .next { text-align: right; grid-column: 2; }
@media (max-width: 600px) { .tzb-prevnext { grid-template-columns: minmax(0, 1fr); } .tzb-prevnext .next { grid-column: 1; } }

/* ---------- Related ---------- */
.tzb-related { margin: 48px 0 0; }
.tzb-related h2 { font-size: 28px; margin: 0 0 16px; }
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(240px, 100%), 1fr)); gap: 16px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; text-decoration: none; }
.card:hover { border-color: var(--yellow); }
.card-img { aspect-ratio: 16 / 9; background: var(--surface-2); }
.card-img img { width: 100%; height: 100%; object-fit: cover; }
.card-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 6px; }
.card-kicker { font: 600 11px var(--body); letter-spacing: .08em; text-transform: uppercase; color: var(--green); }
.card-title { font: 700 16px/1.35 var(--body); color: var(--text); }
.card-excerpt { font-size: 14px; color: var(--muted); }

/* ---------- Archive / search ---------- */
.archive-head { margin-bottom: 24px; }
.pagination { margin-top: 34px; display: flex; gap: 8px; flex-wrap: wrap; }
.pagination .page-numbers { min-width: 44px; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--line); border-radius: var(--radius-sm); color: var(--text); text-decoration: none; padding: 0 12px; }
.pagination .current { background: var(--yellow); color: var(--on-yellow); border-color: var(--yellow); }
.search-form { display: flex; gap: 8px; }
.search-form input[type="search"] { flex-grow: 1; min-height: 48px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); color: var(--text); padding: 0 14px; font: inherit; }

/* ---------- AI translation note ---------- */
.ai-note { margin-top: 36px; padding: 12px 16px; border: 1px dashed var(--line); border-radius: var(--radius-sm); font-size: 13px; color: var(--muted); }

/* ---------- Author ---------- */
.byline { display: inline-flex; align-items: center; gap: 8px; }
.byline .byline-photo { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; }
.byline a { color: var(--text); font-weight: 600; text-decoration: none; }
.byline a:hover { color: var(--yellow); }
.meta-line { align-items: center; }
.tzb-author { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 20px; margin: 44px 0 0; padding: 22px; background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--green); border-radius: var(--radius); }
.tzb-author-photo { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; border: 3px solid var(--yellow); }
.tzb-author-kicker { font: 600 11px var(--body); letter-spacing: .08em; text-transform: uppercase; color: var(--green); }
.tzb-author-name { font: 800 26px/1.1 var(--head); text-transform: uppercase; margin: 2px 0 2px; }
.tzb-author-name a { color: var(--text); text-decoration: none; }
.tzb-author-name a:hover { color: var(--yellow); }
.tzb-author-job { font-size: 14px; color: var(--muted); margin: 0 0 10px; }
.tzb-author-bio { font-size: 15px; }
.tzb-author-bio p { margin: 0 0 .7em; }
.tzb-author-links { list-style: none; margin: 6px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.tzb-author-links a { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 12px; border: 1px solid var(--line); border-radius: 999px; color: var(--text); text-decoration: none; font-size: 13px; font-weight: 600; }
.tzb-author-links a:hover { border-color: var(--yellow); color: var(--yellow); }
.author-articles { margin: 40px 0 16px; font-size: 28px; }
@media (max-width: 600px) { .tzb-author { grid-template-columns: 1fr; } .tzb-author-links span { display: none; } .tzb-author-links a { width: 40px; justify-content: center; padding: 0; } }

/* ---------- Latest posts block (hub pages) ---------- */
.wp-block-latest-posts.is-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(240px, 100%), 1fr)); gap: 16px; margin: 1.6em 0; padding: 0; list-style: none; }
.wp-block-latest-posts.is-grid li { margin: 0 !important; width: auto !important; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; padding: 0 0 14px; display: flex; flex-direction: column; }
.wp-block-latest-posts.is-grid li:hover { border-color: var(--yellow); }
.wp-block-latest-posts__featured-image { margin: 0 0 12px; aspect-ratio: 16 / 9; background: var(--surface-2); }
.wp-block-latest-posts__featured-image img { width: 100%; height: 100%; object-fit: cover; border-radius: 0 !important; }
.wp-block-latest-posts__post-title { display: block; padding: 14px 16px 0; font: 700 16px/1.35 var(--body); color: var(--text); text-decoration: none; }
.wp-block-latest-posts__featured-image + .wp-block-latest-posts__post-title { padding-top: 0; }
.wp-block-latest-posts__post-date { display: block; padding: 6px 16px 0; font-size: 12px; color: var(--muted); }
.wp-block-latest-posts__post-excerpt { padding: 6px 16px 0; font-size: 14px; color: var(--muted); margin: 0; }
.entry-content > .wp-block-latest-posts { max-width: none; }
/* Hub article lists: core block CSS sets display:flex inline, so force the grid, and let it use the
   full page width (3 per row on desktop, 2 on tablet, 1 on phones) instead of the 880px text column. */
.entry-content > .wp-block-latest-posts.is-grid { display: grid !important; grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); width: min(calc(var(--wrap) - 40px), calc(100vw - 40px)); }
.wp-block-latest-posts.is-grid .wp-block-latest-posts__post-title { font-size: 15px; }

/* ---------- Footer ---------- */
.site-footer { background: #07100C; border-top: 1px solid var(--line); padding: 36px 0 28px; color: #D5DFD8; font-size: 14px; }
.site-footer .wrap { display: grid; gap: 22px; }
.footer-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; flex-wrap: wrap; }
.footer-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 8px 20px; flex-wrap: wrap; }
.footer-nav a { color: #D5DFD8; text-decoration: none; }
.footer-nav a:hover { color: var(--yellow); }
.footer-legal { display: flex; gap: 16px; align-items: center; color: #BFCCC3; font-size: 13px; }
.footer-legal .badge-18 { color: #fff; font-size: 13px; padding: 4px 10px; }
.copyright { font-size: 12px; color: #9DB0A3; }

/* Fixtures & results */
.tzb-matches { margin: 1.5rem 0; }
.tzb-mfilter { display: flex; flex-direction: column; gap: .6rem; margin: 0 0 1.25rem; }
.tzb-mfgroup { display: flex; flex-wrap: wrap; gap: .5rem; }
.tzb-mfilter[hidden] { display: none; }
.tzb-mfilter button { min-height: 44px; padding: .5rem .9rem; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--text-body); font: 600 .9rem var(--body); cursor: pointer; }
.tzb-mfilter button[aria-pressed="true"] { background: var(--yellow); color: var(--on-yellow); border-color: var(--yellow); }
.tzb-mfilter button:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.tzb-mday h2 { font-size: 1.35rem; margin: 1.75rem 0 .75rem; }
.tzb-mtable { width: 100%; border-collapse: collapse; margin: 0 0 1rem; background: var(--surface); border: 1px solid var(--line); font-size: .95rem; }
.tzb-mtable caption { caption-side: top; text-align: left; font: 700 1rem var(--head); letter-spacing: .02em; text-transform: uppercase; color: var(--yellow); padding: .25rem 0 .5rem; }
.tzb-mtable thead th { font-size: .75rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); font-weight: 600; padding: .5rem .6rem; border-bottom: 1px solid var(--line); text-align: left; }
.tzb-mtable td { padding: .6rem; border-top: 1px solid var(--line); vertical-align: top; }
.tzb-mtable thead th:nth-child(2), .tzb-mhome { text-align: right; }
.tzb-mtable thead th:nth-child(3), .tzb-mscore { text-align: center; white-space: nowrap; font-weight: 700; color: var(--text); width: 4.5rem; }
.tzb-mtime { white-space: nowrap; color: var(--muted); width: 4.5rem; }
.tzb-mvs { color: var(--muted); font-weight: 400; }
.tzb-mtable .is-win { font-weight: 700; color: var(--text); }
.tzb-mbadge { display: inline-block; font-size: .7rem; font-weight: 700; padding: .05rem .35rem; border-radius: 4px; background: var(--line); color: var(--text); }
.is-live .tzb-mbadge { background: #C8102E; color: #fff; }
.is-off td { opacity: .65; }
.tzb-mdetail td { border-top: 0; padding-top: 0; font-size: .8rem; color: var(--muted); }
.tzb-mvenue { color: var(--muted); font-size: .85rem; }
.tzb-mnote, .tzb-mempty { font-size: .85rem; color: var(--muted); }
/* Fixtures: aligned columns and competition icons */
.tzb-mtable { table-layout: fixed; }
.tzb-mtable th:nth-child(1), .tzb-mtable td:nth-child(1) { width: 92px; }
.tzb-mtable th:nth-child(3), .tzb-mtable td:nth-child(3) { width: 72px; }
.tzb-mtable th:nth-child(5), .tzb-mtable td:nth-child(5) { width: 26%; }
.tzb-mtable td { overflow-wrap: anywhere; }
.tzb-cicon { display: inline-block; vertical-align: -2px; margin-right: 8px; border-radius: 2px; flex-shrink: 0; }
.tzb-mfilter button { display: inline-flex; align-items: center; }
.tzb-mfilter .tzb-cicon { margin-right: 6px; }
@media (max-width: 640px) {
  .tzb-mtable th:nth-child(1), .tzb-mtable td:nth-child(1) { width: 62px; }
  .tzb-mtable th:nth-child(3), .tzb-mtable td:nth-child(3) { width: 56px; }
  .tzb-mbadge { display: block; width: max-content; margin-top: 3px; }
}
@media (max-width: 640px) {
  .tzb-mvenue { display: none; }
  .tzb-mtable { font-size: .9rem; }
  .tzb-mtable td, .tzb-mtable thead th { padding: .5rem .35rem; }
}
