:root {
  color-scheme: light;
  /* Primary Palette */
  --brand: #E8A33D;
  --brand-dark: #B8791F;
  --brand-secondary: #2F5233;
  --brand-light: #FFF8ED;
  /* Neutral */
  --text: #2B2B2B;
  --muted: #666;
  --border: #e2e2e2;
  --bg: #FFF8ED;
  /* Status Colors */
  --status-scheduled: #4C8557;
  --status-postponed: #E0A800;
  --status-cancelled: #B3453D;
  --status-completed: #8A8378;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-size: 16px;
  line-height: 1.6;
}
/* Form controls don't inherit body font by default — enforce the site stack
   even when the Tailwind CDN (whose preflight does this) is unreachable. */
button,
input,
select,
textarea {
  font-family: inherit;
}
h1, h2, h3 { color: var(--text); }
h1 {
  font-size: 36px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.02em;
}
h2 {
  font-size: 32px;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.02em;
}
h3 {
  font-size: 22px;
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: -0.01em;
}
table { width: 100%; border-collapse: collapse; margin-top: 8px; }
th, td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--border); }
th { color: var(--muted); text-transform: uppercase; letter-spacing: 0.03em; }
/* ---- Responsive + accessibility pass ---- */
:focus-visible {
  outline: 3px solid var(--brand);
  outline-offset: 2px;
  border-radius: 4px;
}
details summary {
  cursor: pointer;
  padding: 6px 0;
  border-radius: 4px;
  text-decoration: underline;
  text-underline-offset: 2px;
}
select { min-height: 36px; font-size: 14px; }
@media (max-width: 640px) {th, td { padding: 8px 6px; }}
@media (prefers-reduced-motion: reduce) {* { transition: none !important; }}
/* ---- Fan pages (BookMyShow-style) ---- */
.chip {
  border: 1px solid var(--border);
  background: white;
  border-radius: 999px;
  padding: 7px 16px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  color: var(--text);
  min-height: 36px;
}
.chip.active { background: var(--text); color: white; border-color: var(--text); }
.ev-card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
}
/* ---- Homepage spotlight + ticker + features ---- */
/* --- Header --- */
.main-nav {
  display: flex;
  gap: 28px;
}
.main-nav a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 500;
  font-size: 15px;
  transition: color 0.2s;
}
.main-nav a:hover {
  color: var(--brand);
}
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  background: none;
  border: none;
  cursor: pointer;
}
.mobile-menu-toggle span {
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
}
/* --- Leagues Section --- */
.league-card {
  background: white;
  border-radius: 16px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  border: 1px solid var(--border);
  transition: all 0.3s ease;
}
.league-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.1);
}
.no-results {
  text-align: center;
  padding: 60px 20px;
  color: var(--muted);
  font-size: 16px;
}
/* --- Responsive Design --- */
@media (max-width: 768px) {.main-nav {
    display: none;
    width: 100%;
    flex-direction: column;
    gap: 12px;
  }.main-nav.active {
    display: flex;
  }.mobile-menu-toggle {
    display: flex;
    margin-left: auto;
  }}
/* --- Accessibility --- */
@media (prefers-reduced-motion: reduce) {.league-card {
    animation: none !important;
    transition: none !important;
  }}
/* ========================================
   Admin Dashboard Styles
   ======================================== */
/* ---- Admin density: every text step one nudge smaller (scoped, rem/px
   based so nested elements never compound) ---- */
.admin-dense .text-2xl { font-size: 1.375rem; line-height: 1.875rem; }
.admin-dense .text-xl { font-size: 1.125rem; line-height: 1.625rem; }
.admin-dense .text-lg { font-size: 1rem; line-height: 1.5rem; }
.admin-dense .text-sm { font-size: 0.8125rem; line-height: 1.25rem; }
.admin-dense .text-xs { font-size: 0.6875rem; line-height: 1rem; }
.admin-dense .text-\[13px\] { font-size: 12px; line-height: 1.125rem; }
.admin-dense .text-\[11px\] { font-size: 10px; line-height: 0.9375rem; }
.admin-dense .text-\[10px\] { font-size: 9px; line-height: 0.875rem; }
/* ---- Collapsible admin sidebar (shared by admin + admin-org) ---- */
#adminSidebar {
  transition: width 0.2s ease;
}
#adminSidebar .sidebar-nav-item {
  justify-content: flex-start;
}
body.sidebar-collapsed #adminSidebar {
  width: 5rem;
}
body.sidebar-collapsed #adminSidebar .sidebar-label,
body.sidebar-collapsed #adminSidebar .sidebar-logo-text,
body.sidebar-collapsed #adminSidebar .sidebar-section-title {
  display: none;
}
body.sidebar-collapsed #adminSidebar .sidebar-nav-item {
  justify-content: center;
  padding-left: 0;
  padding-right: 0;
}
body.sidebar-collapsed #sidebarCollapseIcon {
  transform: rotate(180deg);
}
#sidebarCollapseIcon {
  transition: transform 0.2s ease;
}
#sidebarBackdrop {
  transition: opacity 0.2s ease;
}
@media (max-width: 767px) {#adminSidebar {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 60;
    width: 16rem !important;
    transform: translateX(-100%);
    transition: transform 0.2s ease;
  }body.sidebar-open #adminSidebar {
    display: flex;
    transform: translateX(0);
  }body.sidebar-open #sidebarBackdrop {
    display: block;
  }/* Labels always visible in the mobile drawer */body.sidebar-collapsed #adminSidebar .sidebar-label,
  body.sidebar-collapsed #adminSidebar .sidebar-logo-text {
    display: inline;
  }body.sidebar-collapsed #adminSidebar .sidebar-nav-item {
    justify-content: flex-start;
    padding-left: 0.875rem;
    padding-right: 0.875rem;
  }}

/* Home redesign utilities: marquee ticker, subtle grids, fixture views */
.bg-grid-subtle {
  background-size: 28px 28px;
  background-image:
    linear-gradient(to right, rgba(15, 23, 42, 0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(15, 23, 42, 0.04) 1px, transparent 1px);
}
@keyframes home-marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.animate-ticker {
  display: flex;
  width: max-content;
  animation: home-marquee 120s linear infinite;
}
.animate-ticker:hover { animation-play-state: paused; }
.no-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }
.no-scrollbar::-webkit-scrollbar { display: none; }
.font-mono-num {
  font-family: 'JetBrains Mono', monospace;
  font-variant-numeric: tabular-nums;
}
#fixture-grid.is-compact { display: flex; flex-direction: column; gap: 0.5rem; }
#fixture-grid.is-compact .fixture-card .fixture-extra { display: none; }
#fixture-grid.is-compact .fixture-card { padding: 0.75rem 1rem; }
@media (max-width: 1023px) {
  .main-nav.active { display: flex; flex-direction: column; position: absolute; top: 4rem; right: 1rem; background: #fff; border: 1px solid #e2e8f0; border-radius: 0.75rem; padding: 0.75rem 1rem; gap: 0.75rem; box-shadow: 0 10px 30px -8px rgba(15, 23, 42, 0.15); }
}