/* Public contrast safety patch: fixes white text on light surfaces without changing dark hero/match headers. */
body.public-site {
  background: #f3f4f7 !important;
  color: #111827 !important;
}

/* Light public cards/sections */
body.public-site .home-card,
body.public-site .card:not(.polish-match-card):not(.uc-match-card),
body.public-site .public-panel,
body.public-site .public-surface,
body.public-site .league-widget,
body.public-site .league-standings-card {
  background: #ffffff !important;
  color: #111827 !important;
  border-color: #e5e7eb !important;
}

/* Common page headings that were written as text-white but sit on white/light backgrounds. */
body.public-site .container > .text-center .text-white,
body.public-site .container > .text-center .fw-bolder.text-white,
body.public-site .container > .text-center .fw-bold.text-white,
body.public-site .home-card > .d-flex h1.text-white,
body.public-site .home-card > .d-flex h2.text-white,
body.public-site .home-card > .d-flex h3.text-white,
body.public-site .home-card > .d-flex h4.text-white,
body.public-site .home-card > .d-flex h5.text-white,
body.public-site .home-card > h1.text-white,
body.public-site .home-card > h2.text-white,
body.public-site .home-card > h3.text-white,
body.public-site .home-card > h4.text-white,
body.public-site .home-card > h5.text-white,
body.public-site .section-title.text-white,
body.public-site .public-section-heading.text-white {
  color: #111827 !important;
  text-shadow: none !important;
}

body.public-site .container > .text-center .text-white-50,
body.public-site .home-card > .d-flex .text-white-50,
body.public-site .home-card > .text-white-50,
body.public-site .home-card .thb-empty,
body.public-site .public-muted,
body.public-site .league-muted {
  color: #64748b !important;
  text-shadow: none !important;
}

/* Empty states inside light cards. */
body.public-site .home-card > .text-center.text-white-50,
body.public-site .home-card .text-center.text-white-50.py-4,
body.public-site .home-card .empty-state,
body.public-site .home-card .no-data {
  color: #64748b !important;
  background: #f8fafc !important;
  border: 1px dashed #cbd5e1 !important;
  border-radius: 12px !important;
}

/* Keep true dark components readable. */
body.public-site .polish-match-card,
body.public-site .uc-match-card,
body.public-site .league-hero,
body.public-site .public-hero,
body.public-site .match-hero,
body.public-site .cbz-hero,
body.public-site .mcv-hero,
body.public-site .phase3-hero,
body.public-site .qual-card,
body.public-site [style*="background:#0f172a"],
body.public-site [style*="background: #0f172a"],
body.public-site [style*="background:#1e293b"],
body.public-site [style*="background: #1e293b"],
body.public-site [style*="linear-gradient"] {
  color: #ffffff;
}
body.public-site .polish-match-card .text-white,
body.public-site .polish-match-card .fw-bold.text-white,
body.public-site .uc-match-card .text-white,
body.public-site .league-hero .text-white,
body.public-site .public-hero .text-white,
body.public-site .match-hero .text-white,
body.public-site .cbz-hero .text-white,
body.public-site .mcv-hero .text-white,
body.public-site .phase3-hero .text-white,
body.public-site [style*="background:#0f172a"] .text-white,
body.public-site [style*="background: #0f172a"] .text-white,
body.public-site [style*="background:#1e293b"] .text-white,
body.public-site [style*="background: #1e293b"] .text-white,
body.public-site [style*="linear-gradient"] .text-white {
  color: #ffffff !important;
}
body.public-site .polish-match-card .text-white-50,
body.public-site .uc-match-card .text-white-50,
body.public-site [style*="background:#0f172a"] .text-white-50,
body.public-site [style*="background: #0f172a"] .text-white-50,
body.public-site [style*="background:#1e293b"] .text-white-50,
body.public-site [style*="background: #1e293b"] .text-white-50,
body.public-site [style*="linear-gradient"] .text-white-50 {
  color: rgba(255,255,255,.72) !important;
}

/* Tables should stay readable on white pages. */
body.public-site .table:not(.table-dark),
body.public-site .table:not(.table-dark) > :not(caption) > * > * {
  color: #111827 !important;
}
body.public-site .table thead th {
  color: #334155 !important;
}

/* Fixture/list pages: section counters and titles. */
body.public-site.page-fixtures .home-card h2,
body.public-site.page-liveScores .home-card h2,
body.public-site.page-season .home-card h2,
body.public-site.page-points-table .home-card h2,
body.public-site.page-team .home-card h2,
body.public-site.page-venue .home-card h2 {
  color: #111827 !important;
}

/* Final navbar brand weight lock: keep Cricket Live Hub same thickness on every public page/tab. */
body.public-site .navbar-custom .navbar-brand,
body.public-site .navbar-custom .navbar-brand span,
.navbar-custom .navbar-brand,
.navbar-custom .navbar-brand span {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif !important;
    font-size: 1.5rem !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;
    letter-spacing: 0 !important;
    text-transform: none !important;
    -webkit-font-smoothing: antialiased !important;
    text-rendering: geometricPrecision !important;
}
