:root {
  --bg-body: #e9edf0b6;
  --bg-elevated: #b0b2b4;
  --bg-elevated-soft: #b0b7be;
  --border-subtle: #1f2f3e;
  --text-main: #f7fafc;
  --text-muted: #a0aec0;

  /* Province colour system */
  --munster-main: #004b8d;      /* Dark blue */
  --munster-accent: #f2c94c;    /* Yellow */

  --leinster-main: #006d3b;     /* Dark green */
  --leinster-light: #34d399;    /* Light green */

  --national-green: #018749;
  --national-white: #ffffff;
  --national-gold: #f4b41a;

  --accent-primary: #38b2ac;
  --accent-primary-soft: rgba(56, 178, 172, 0.2);
  --accent-outline: #4fd1c5;
  --shadow-soft: 0 18px 40px rgba(0, 0, 0, 0.35);
  --radius-lg: 18px;
  --radius-xl: 24px;
  --transition-fast: 0.18s ease-out;
  --transition-med: 0.25s ease-out;
}

/* GLOBAL */

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: radial-gradient(circle at top, #232424 0, #0b0c0d 60%, #020509 100%);
  color: var(--text-main);
  min-height: 100vh;
}



/* HEADER */

.site-header {
  position: relative;   /* was sticky */
  top: 0;               /* safe to leave */
  z-index: 20;
  backdrop-filter: blur(16px);
  background: linear-gradient(
      to right,
      rgba(0, 109, 59, 0.82),
      rgba(224, 109, 2, 0.82)
    );
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}


.header-inner h1 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
}

.tagline {
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  font-weight: 400;
  letter-spacing: 0.03em;
}

/* Allow specific header buttons to use normal text case */
#ipp-main-site,
#ipp-handicap {
  text-transform: none !important;
}

.quick-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

/* LAYOUT */

.layout {
  max-width: 1440px;
  margin: 16px auto 32px;
  padding: 0 16px;
  display: grid;
  grid-template-columns: minmax(0, 280px) minmax(0, 1fr);
  gap: 16px;
}

@media (max-width: 900px) {
  .layout {
    grid-template-columns: 1fr;
  }

.filters-panel h2 {
  font-family: 'Outfit', sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.16em;
}

.filters-panel h3 {
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.checkbox-group label {
  font-family: 'Inter', sans-serif;
  font-size: 0.8rem;
  letter-spacing: 0.02em;
}

  .content-panel {
    order: 1;
  }
}

/* FILTERS PANEL */

.filters-panel {
  background: rgba(6, 6, 6, 0.95);
  border-radius: var(--radius-xl);
  padding: 16px 16px 18px;
  box-shadow: var(--shadow-soft);
  border: 4px solid rgba(148, 163, 184, 0.18);
}

.filters-panel h2 {
  margin-top: 0;
  font-size: 1rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.filter-section {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid rgba(148, 163, 184, 0.16);
}

.filter-section:first-of-type {
  border-top: none;
  padding-top: 0;
}

.filter-section h3 {
  margin: 0 0 6px;
  font-size: 0.9rem;
  font-weight: 600;
}

.chip-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.6);
  background: rgba(15, 23, 42, 0.8);
  color: var(--text-muted);
  font-size: 0.8rem;
  cursor: pointer;
  transition: background var(--transition-fast), transform var(--transition-fast),
    border-color var(--transition-fast), color var(--transition-fast);
}

.chip:hover {
  background: rgba(30, 64, 175, 0.6);
  transform: translateY(-1px);
  color: var(--text-main);
}

.chip-active {
  background: var(--accent-primary-soft);
  border-color: var(--accent-outline);
  color: var(--accent-outline);
}

.checkbox-group {
  display: grid;
  gap: 4px;
  font-size: 0.82rem;
}

.checkbox-group label {
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  color: var(--text-muted);
}

.checkbox-group input[type="checkbox"] {
  accent-color: var(--accent-primary);
}

#search-input,
#month-select,
#county-select {
  width: 100%;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: rgba(15, 23, 42, 0.9);
  color: var(--text-main);
  font-size: 0.85rem;
}

#search-input::placeholder {
  color: rgba(148, 163, 184, 0.8);
}

/* TOGGLE */

.toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 0.84rem;
  color: var(--text-muted);
}

.toggle input {
  display: none;
}

.toggle-slider {
  width: 36px;
  height: 20px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.6);
  position: relative;
  transition: background var(--transition-med);
}

.toggle-slider::before {
  content: "";
  position: absolute;
  width: 16px;
  height: 16px;
  top: 2px;
  left: 2px;
  border-radius: 999px;
  background: #0b1720;
  transition: transform var(--transition-med);
}

.toggle input:checked + .toggle-slider {
  background: var(--accent-primary);
}

.toggle input:checked + .toggle-slider::before {
  transform: translateX(16px);
}

/* BUTTONS */

.btn {
  border-radius: 999px;
  padding: 7px 14px;
  font-size: 0.85rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background var(--transition-fast), transform var(--transition-fast),
    box-shadow var(--transition-fast), border-color var(--transition-fast);
  white-space: nowrap;
}

.btn-primary {
  background: var(--accent-primary);
  color: #021015;
  font-weight: 600;
  box-shadow: 0 10px 25px rgba(56, 178, 172, 0.4);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 15px 34px rgba(56, 178, 172, 0.6);
}

.btn-outline {
  background: transparent;
  color: var(--text-main);
  border-color: rgba(226, 232, 240, 0.7);
}

.btn-outline:hover {
  background: rgba(15, 23, 42, 0.9);
}

/* CONTENT PANEL */

.content-panel {
  background: rgba(6, 6, 6, 0.95);
  border-radius: var(--radius-xl);
  padding: 14px 16px 18px;
  box-shadow: var(--shadow-soft);
  border: 4px solid rgba(148, 163, 184, 0.25);
}

.summary-bar {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 12px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

#results-count {
  font-weight: 500;
  color: var(--text-main);
}

#active-filters-summary {
  text-align: right;
}

.fixtures-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 25px;
}

/* Summary actions + view toggle */
.summary-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.view-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.view-toggle-label {
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.view-toggle-btn {
  padding: 4px 10px;
  font-size: 0.78rem;
}

.view-toggle-active {
  background: rgba(15, 23, 42, 0.95);
  border-color: var(--accent-outline);
}

/* Calendar view container */
.calendar-view {
  margin-top: 8px;
  border-radius: var(--radius-lg);
  background: #020617;
  border: 1px solid rgba(148, 163, 184, 0.45);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.85);
  padding: 4px;
  min-height: 1000px; /* 🔸 key line: make the whole panel taller */
}

@media (max-width: 768px) {
  .calendar-view {
    min-height: 480px; /* or even 400px if you prefer */
  }
}

/* On small screens, let the summary wrap nicely */
@media (max-width: 720px) {
  .summary-bar {
    flex-direction: column;
    align-items: flex-start;
  }

  #active-filters-summary {
    text-align: left;
  }

  .summary-actions {
    width: 100%;
    justify-content: space-between;
  }
}

@media (min-width: 720px) {
  .fixtures-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
}

.fixture-card {
  position: relative;
  border-radius: var(--radius-lg);
  padding: 30px 14px 12px;
  background: #020617; /* darker, flatter base for better readability */
  border: 1px solid rgba(15, 23, 42, 0.95);
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.85);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;   /* centres content vertically */
  gap: 10px;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast),
    border-color var(--transition-fast), background var(--transition-fast);
}

.fixture-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.8);
  border-color: rgba(34, 159, 6, 0.9);
}

/* gradient strip per province/level */

.fixture-card::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.22;     /* softer overlay */
  mix-blend-mode: soft-light;
  pointer-events: none;
}

.fixture-munster::before {
  background: linear-gradient(135deg, var(--munster-main), var(--munster-accent));
}

.fixture-leinster::before {
  background: linear-gradient(135deg, var(--leinster-main), var(--leinster-light));
}

.fixture-national::before {
  background: linear-gradient(
    135deg,
    var(--national-green),
    var(--national-white),
    var(--national-gold)
  );
}

.fixture-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}



.fixture-card.fixture-munster-loc .fixture-date {
  color: var(--munster-accent);     /* yellow */
}

.fixture-card.fixture-leinster-loc .fixture-date {
  color: var(--leinster-light);     /* light green */
}

.fixture-card.fixture-national-loc .fixture-date {
  color: var(--national-gold);
}

/* Base for county texture overlay */
.fixture-card.county-border::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.16;              /* keep this low so text stays readable */
  mix-blend-mode: soft-light; /* gentle glow effect */
  border-radius: inherit;
}

/* Example textures – tweak colours per county if you like */
.fixture-card.county-kerry::after {
  background: radial-gradient(circle at top left,
    rgba(27, 94, 32, 0.7),
    transparent 60%);
}

.fixture-card.county-cork::after {
  background: radial-gradient(circle at top right,
    rgba(228, 0, 43, 0.65),
    transparent 65%);
}

.fixture-card.county-limerick::after {
  background: radial-gradient(circle at bottom left,
    rgba(0, 110, 46, 0.7),
    transparent 60%);
}

.fixture-card.county-dublin::after {
  background: radial-gradient(circle at bottom right,
    rgba(0, 87, 184, 0.7),
    transparent 60%);
}

/* Fallback for any other county-border cards */
.fixture-card.county-border:not(.county-kerry):not(.county-cork):not(.county-limerick):not(.county-dublin)::after {
  background: radial-gradient(circle at top,
    rgba(148, 163, 184, 0.4),
    transparent 65%);
}



.fixture-name {
  font-family: 'Outfit', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.3px;
  margin-top: 2px;
}

.fixture-date {
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.2px;
}

.fixture-venue {
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.15px;
}

.fixture-meta {
  font-family: 'Inter', sans-serif;
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 0.15px;
}

/* all badges */
.badge {
  font-family: 'Inter', sans-serif;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.25px;
  text-transform: uppercase;
}


.fixture-meta span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.badges-row {
  display: flex;
  flex-direction: column;   /* stack vertically */
  align-items: flex-end;    /* right edge of the card */
  gap: 4px;
  margin-top: 0;
}

.badge {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  letter-spacing: 0.25px;
}


.badge-type {
  border-color: rgba(148, 163, 184, 0.6);
  background: rgba(15, 23, 42, 0.9);
  color: var(--text-muted);
}

.badge-county {
  background: rgba(15, 23, 42, 0.95);
  border-color: rgba(148, 163, 184, 0.7);
  color: #e5e7eb;
  font-weight: 600;
}

/* County-specific chips */
.badge-county.county-chip-cork {
  background: #e4002b;
  color: #ffffff;
}

.badge-county.county-chip-kerry {
  background: #1b5e20;
  color: #f3c623;
}

.badge-county.county-chip-limerick {
  background:#009a44;
  color: #0032a0;
}

.badge-county.county-chip-clare {
  background:#009a44;
  color: #0032a0;
}

.badge-county.county-chip-tipperary {
  background: #0032a0;
  color: #ffd700;
}

.badge-county.county-chip-waterford {
  background: #1b365d;
  color: #ffffff;
}

.badge-county.county-chip-dublin {
  background: #0057b8;
  color: #cce4ff;
}

.badge-county.county-chip-kildare {
  background: #ffffff;
  color: #111827;
}

.badge-county.county-chip-meath {
  background: #006400;
  color: #ffd54f;
}

.badge-county.county-chip-louth {
  background: #d40000;
  color: #ffffff;
}

.badge-county.county-chip-offaly {
  background: #009639;
  color: #ffffff;
}

.badge-county.county-chip-longford {
  background: #0033a0;
  color: #ffd700;
}

.badge-county.county-chip-kilkenny {
  background: #000000;
  color: #ffcc00;
}

.badge-county.county-chip-westmeath {
  background: #800000;
  color: #ffcccb;
}

.badge-county.county-chip-wexford {
  background: #5e338d;
  color: #f3c623;
}

.badge-county.county-chip-carlow {
  background: #d62828;
  color: #ffdd00;
}

.badge-county.county-chip-galway {
  background: #7c2e3b;
  color: #ffffff;
}

.badge-county.county-chip-mayo {
  background: #0b8346;
  color: #ffffff;
}

.badge-county.county-chip-down {
  background: #ee1c25;
  color: #ffffff;
}

.badge-county.county-chip-monaghan {
  background: #0033a0;
  color: #ffffff;
}

.badge-major {
  border-color: var(--national-gold);
  background: rgba(244, 180, 26, 0.12);
  color: var(--national-gold);
}

.badge-munster {
  border-color: var(--munster-accent);
  background: rgba(0, 75, 141, 0.32);
  color: #e5f4ff;
}

.badge-leinster {
  border-color: var(--leinster-light);
  background: rgba(0, 109, 59, 0.32);
  color: #e6fffa;
}

.badge-national {
  border-image: linear-gradient(
      to right,
      var(--national-green),
      var(--national-white),
      var(--national-gold)
    )
    1;
  border-width: 1px;
  border-style: solid;
  background: rgba(3, 22, 10, 0.85);
  color: #fef9c3;
}

/* No results */

.no-results {
  margin-top: 16px;
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(127, 29, 29, 0.85);
  border: 1px solid rgba(248, 113, 113, 0.8);
  color: #fee2e2;
  font-size: 0.85rem;
}

.load-more-container {
  margin-top: 14px;
  text-align: center;
}

/* FOOTER */

.site-footer {
  max-width: 1440px;
  margin: 0 auto 20px;
  padding: 0 16px;
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* --- County & regional borders --- */

/* Base for solid split borders */
.county-border {
  border-width: 10px !important;
  border-style: solid !important;
  border-image: none !important;
  border-color: transparent;
}

/* ------------------------------ */
/*   TWO-COLOUR SPLIT BORDERS     */
/* ------------------------------ */

.county-cork {
  border-color: #e4002b #ffffff;   /* red | white */
}

.county-kerry {
  border-color: #1b5e20 #f3c623;   /* green | gold */
}

.county-limerick {
  border-color: #006e2e #0032a0 #ffd700 #ffffff;
}

.county-clare {
  border-color: #006e2e #0032a0 #ffd700 #ffffff;
}

.county-tipperary {
  border-color: #0032a0 #ffd700;   /* blue | yellow */
}

.county-waterford {
  border-color: #1b365d #ffffff;   /* blue | white */
}

.county-dublin {
  border-color: #0057b8 #012d53;   /* light blue | dark blue */
}

.county-kildare {
  border-color: #ffffff #121212;   /* white | grey */
}

.county-meath {
  border-color: #ffd54f #006400;   /* green | gold */
}

.county-louth {
  border-color: #ffffff #d40000;   /* white | red */
}

.county-offaly {
  border-color: #ffffff #009639;   /* green | white */
}

.county-longford {
  border-color: #ffd700 #0033a0;   /* yellow | blue */
}

.county-kilkenny {
  border-color: #ffcc00 #000000;   /* amber | black */
}

.county-westmeath {
  border-color: #800000 #ffcccb;   /* maroon | pink */
}

.county-wexford {
  border-color: #5e338d #f3c623;   /* purple | yellow */
}

.county-carlow {
  border-color: #ffdd00 #d62828;   /* yellow | red */
}

.county-galway {
  border-color: #7c2e3b #ffffff;   /* maroon | white */
}

.county-mayo {
  border-color: #0b8346 #ffffff;   /* green | white */
}

.county-down {
  border-color: #ee1c25 #ffffff;   /* red | white */
}

.county-monaghan {
  border-color: #0033a0 #ffffff;   /* blue | white */
}

/* --- Major event title styling --- */
.fixture-card.major-event .fixture-name {
  color: #d4af37;            /* gold: classic, readable */
  font-weight: 900;          /* very bold */
  letter-spacing: 0.5px;     /* gives prestige feel */
  text-shadow: 0 0 3px rgba(255, 223, 0, 0.4); /* optional subtle glow */
}

/* Province chips - custom colours */
.chip[data-province="Munster"] {
  background-color: #003a78;      /* deep Munster blue */
  color: #ffd700;                 /* Munster yellow */
}

.chip[data-province="Leinster"] {
  background-color: #006400;      /* strong Leinster green */
  color: #ffffff;                 /* white text */
}

/* When chip is active (already selected), make it brighter */
.chip-active[data-province="Munster"] {
  background-color: #0050a8; 
  color: #ffea00;
}

.chip-active[data-province="Leinster"] {
  background-color: #008000;
  color: #ffffff;
}

/* --- Province badges inside fixture cards --- */

/* Base badge style */
.badge {
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
}

/* Munster badge */
.badge-munster {
  background-color: #003a78 !important;   /* deep Munster blue */
  color: #ffd700 !important;              /* Munster yellow */
}

/* Leinster badge */
.badge-leinster {
  background-color: #006400 !important;   /* Leinster green */
  color: #ffffff !important;              /* white text */
}

/* National badge — Irish flag colours */
.badge-national {
  background: linear-gradient(
    90deg,
    #009a44 25%,      /* green */
    #ffffff 50%,     /* white */
    #ff8c00 75%      /* gold/saffron */
  ) !important;
  color: #000000 !important;              /* readable on light parts */
  border: 1px solid rgba(0,0,0,0.2);
}

#fixtures-list {
  padding-top: 10px;
}

/* Background area behind & between the fixture cards */
#fixtures-list {
  background: #2d2d30;
  padding: 24px 16px;
  border-radius: 24px;
}


/* --- RINGS FOR PROVINCIAL & NATIONAL CHAMPIONSHIP EVENTS --- */

/* --- CHAMPIONSHIP RINGS BY TITLE (National / Munster / Leinster / County) --- */

/* National championships – gold */
.fixture-card.title-national-event {
  border: 8px solid #d4af37 !important;  /* gold */
  border-radius: 16px;
  box-shadow:
    0 0 12px rgba(212, 175, 55, 0.7),
    0 0 26px rgba(212, 175, 55, 0.4),
    0 10px 30px rgba(0, 0, 0, 0.8);
}

.fixture-card.title-munster-event {
  border-width: 8px !important;
  border-style: solid !important;
  border-image-slice: 1 !important;
  border-image-source: linear-gradient(
    135deg,
    #8c8c8c 0%,       /* silver */
    #8c8c8c 50%,      /* silver */
    #0050a8 50%,      /* Munster blue */
    #0050a8 100%
  ) !important;

  border-radius: 16px;
  box-shadow:
    0 0 12px rgba(0, 80, 168, 0.7),
    0 0 22px rgba(192, 192, 192, 0.5);
}

.fixture-card.title-leinster-event {
  border-width: 8px !important;
  border-style: solid !important;
  border-image-slice: 1 !important;
  border-image-source: linear-gradient(
    135deg,
    #8c8c8c 0%,       /* silver */
    #8c8c8c 50%,      /* silver */
    #007f3f 50%,      /* Leinster green */
    #007f3f 100%
  ) !important;

  border-radius: 16px;
  box-shadow:
    0 0 12px rgba(0, 128, 63, 0.7),
    0 0 22px rgba(192, 192, 192, 0.5);
}

/* County championships – bronze */
.fixture-card.title-county-event {
  border: 8px solid #8c4c0c !important;  /* bronze */
  border-radius: 16px;
  box-shadow:
    0 0 10px rgba(205, 127, 50, 0.75),
    0 0 22px rgba(205, 127, 50, 0.45),
    0 10px 28px rgba(0, 0, 0, 0.75);
}

.fixture-card.title-national-event {
  background: radial-gradient(circle at top, #3a2e00 0%, #1f1800 60%, #120d00 100%) !important;
}
.fixture-card.title-munster-event {
  background: radial-gradient(circle at top, #001a33 0%, #000f1f 60%, #000913 100%) !important;
}
.fixture-card.title-leinster-event {
  background: radial-gradient(circle at top, #003f20 0%, #001b0f 60%, #000c07 100%) !important;
}
.fixture-card.title-county-event {
  background: radial-gradient(circle at top, #3b240c 0%, #1d1307 60%, #120c05 100%) !important;
}

/* Expandable county venue list inside cards */
.venues-toggle {
  margin-top: 10px;
  color: #c8d2ff;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: underline;
}

.venues-list {
  margin-top: 8px;
  padding: 10px 12px;
  background-color: rgba(255,255,255,0.05);
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.12);
  font-size: 0.85rem;
  line-height: 1.4rem;
}

.venues-list span {
  display: block;
  padding: 2px 0;
}

/* Mobile layout fix: put filters above fixtures */
@media (max-width: 768px) {
  .layout {
    display: flex;
    flex-direction: column;
  }

  .filters-panel {
    order: 1;       /* show first */
  }

  .fixtures-panel {
    order: 2;       /* show second */
  }
}

/* -------------------------------------------- */
/* MOBILE FILTERS DRAWER                        */
/* -------------------------------------------- */

#mobile-filter-toggle {
  display: none; /* desktop default */
  background: #1e293b;
  color: #ffffff;
  padding: 12px 16px;
  font-size: 1rem;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  border-bottom: 1px solid rgba(255,255,255,0.15);
}

.filters-collapsible {
  overflow: hidden;
  max-height: none; /* desktop */
  transition: max-height 0.35s ease;
}

/* MOBILE ONLY */
@media (max-width: 768px) {
  #mobile-filter-toggle {
    display: block;
  }

  /* collapsed by default */
  .filters-collapsible {
    max-height: 0;
  }

  /* expanded state */
  .filters-collapsible.expanded {
    max-height: 1000px; /* big enough for all filters */
  }

  /* OPTIONAL: tighten spacing on mobile */
  .filters-panel {
    padding: 16px;
  }
}

/* Reset collapsible wrapper on desktop */
@media (min-width: 769px) {
  #filters-collapsible {
    max-height: none !important;
    overflow: visible !important;
  }
}

/* Hard override: header should NOT be sticky */
.site-header {
  position: relative !important;
  top: auto !important;
}

@media (min-width: 769px) {
  #filters-collapsible {
    display: contents !important; /* behaves like the wrapper doesn't exist */
  }
}

.fixture-card {
  color: #f8fafc; /* stronger white */
}

.fixture-name {
  letter-spacing: 0.3px;
}

.fixture-header-row {
  display: flex;
  align-items: center;     /* vertical centering */
  justify-content: space-between;
  min-height: 120px;       /* keeps height stable */
}


.fixture-name {
  margin-top: 2px;
}

.month-heading {
  grid-column: 1 / -1;         /* full row across both columns */
  margin: 24px 0 10px;
  font-size: 1.25rem;
  font-weight: 1000;
  letter-spacing: 0.10em;
  color: var(--text-muted);

  display: flex;
  align-items: center;
  gap: 12px;
}


.fixture-name {
  letter-spacing: 0.3px;
  line-height: 1.25;
  word-wrap: break-word;
  hyphens: auto;
}

.month-heading::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(
    to right,
    rgba(148, 163, 184, 0.5),
    transparent
  );
}

/* Brand + key headings in Outfit */
.site-header h1,
.month-heading,
.content-panel h2.main-heading {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.btn,
.chip,
.toggle,
.toggle-slider {
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.btn-primary {
  font-weight: 600;
}

.header-inner > div:first-child {
  padding-left: 24px;   /* try 12–24px until it “feels” right */
}

.header-inner > div:first-child {
  flex: 1;
}

.quick-actions {
  flex-shrink: 0;    /* prevents collapsing */
  display: flex;
  justify-content: flex-end;
}

/* HERO HEADER */

/* HERO HEADER */

.calendar-hero {
  background: linear-gradient(90deg, #075c3b, #926002);
}

/* Main hero container: text on left, button on right */
.calendar-hero-inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 24px 32px;

  display: grid;
  grid-template-columns: minmax(0, 1fr) auto; /* text | button */
  grid-template-rows: auto auto;              /* title row, tagline row */
  column-gap: 32px;
  row-gap: 0;                                 /* tight vertical spacing */
}

/* Title + tagline as a vertical stack on the left */
.calendar-hero-text {
  grid-column: 1 / 2;
  grid-row: 1 / 3;         /* spans both rows (title + tagline) */
  display: flex;
  flex-direction: column;
}

.calendar-hero-text h1 {
  font-family: "Outfit", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1.9rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  margin: 0;               /* remove default h1 margin */
}

.calendar-hero-text p {
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.95rem;
  opacity: 0.9;
  margin: 2px 0 0;         /* tiny gap under the title */
}

/* Button container on the right, aligned to tagline row */
.calendar-hero-actions {
  grid-column: 2 / 3;
  grid-row: 2 / 3;         /* same “row” height as tagline */
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.btn-help {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.6);
  background: rgba(15, 23, 42, 0.9);
  color: #e5e7eb;
  font-family: "Outfit", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-right: 8px; /* small spacing before Reset Filters */
  cursor: pointer;
  transition: background 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.btn-help:hover {
  background: rgba(31, 41, 55, 0.95);
  box-shadow: 0 0 0 1px rgba(148, 163, 184, 0.6);
  transform: translateY(-1px);
}

.help-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.help-modal {
  background: #020617;
  border-radius: 18px;
  border: 1px solid rgba(148, 163, 184, 0.45);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.9);
  max-width: 580px;
  width: 92%;
  padding: 20px 20px 18px;
  position: relative;
  color: var(--text-main);
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.help-modal h2 {
  font-family: "Outfit", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1.25rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0 0 8px;
}

.help-intro {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 0 0 10px;
}

.help-modal h3 {
  font-size: 0.9rem;
  margin: 14px 0 6px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.help-list {
  list-style: none;
  margin: 0;
  padding-left: 0;
  font-size: 0.86rem;
}

.help-list li {
  margin-bottom: 4px;
  color: #e5e7eb;
}

.help-list li strong {
  color: #f9fafb;
}

/* Close button (X) */
.help-modal-close {
  position: absolute;
  top: 8px;
  right: 10px;
  background: transparent;
  border: none;
  color: #9ca3af;
  font-size: 1.3rem;
  cursor: pointer;
  padding: 0;
  line-height: 1;
  transition: color 0.15s ease, transform 0.15s ease;
}

.help-modal-close:hover {
  color: #f9fafb;
  transform: translateY(-1px);
}

/* Small adjustment for mobile */
@media (max-width: 480px) {
  .help-modal {
    padding: 16px 14px 14px;
    max-width: 96%;
  }

  .help-modal h2 {
    font-size: 1.1rem;
  }
}

/* Reset Filters button */
.btn-reset-filters {
  padding: 0.4rem 1.5rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  background: transparent;
  color: #f7fafc;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.9rem;
  text-transform: none;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.btn-reset-filters:hover {
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.3);
}

/* Mobile: stack text + button, button goes underneath */
@media (max-width: 768px) {
  .calendar-hero-inner {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
  }

  .calendar-hero-text {
    grid-column: 1 / 2;
    grid-row: 1 / 3;
  }

  .calendar-hero-actions {
    grid-column: 1 / 2;
    grid-row: 3 / 4;
    justify-content: flex-start;
    margin-top: 8px;
  }

  .btn-reset-filters {
    align-self: flex-start;
  }
}

/* --- Readability Enhancements --- */

/* 1. Richer base background with subtle internal gradient */
.fixture-card {
  background: linear-gradient(
      to bottom,
      rgba(156, 157, 181, 0.301),
      rgba(0,0,0,0.15)
    ),
    #0b1120 !important;
}

/* 2. Softer colour overlay */
.fixture-card::before {
  opacity: 0.14 !important;
}

/* 3. Stronger neutral badges */
.badge-type {
  background: rgba(255, 255, 255, 0.085) !important;
  border-color: rgba(255, 255, 255, 0.15) !important;
  color: #dbe4ee !important;
}

/* 4. Slightly soften the two-colour county borders */
.county-border {
  filter: brightness(0.97);
}

.fixture-venue {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.map-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  width: 18px;
  height: 18px;
  margin-left: 6px;

  /* Hide the emoji text but keep the element visible */
  font-size: 0;
  line-height: 1;

  opacity: 0.95;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;

  /* Google Maps style red marker */
  background-image: url('data:image/svg+xml;utf8,\
    <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">\
      <path fill="%23EA4335" d="M12 2C8.14 2 5 5.14 5 9c0 5.25 7 13 7 13s7-7.75 7-13c0-3.86-3.14-7-7-7z"/>\
      <circle cx="12" cy="9" r="3.5" fill="%23FFFFFF"/>\
    </svg>');
  cursor: pointer;
  transition: opacity 0.15s ease, transform 0.15s ease;
}

.map-link:hover {
  opacity: 1;
  transform: translateY(-1px);
}

.fixture-actions {
  margin-top: 8px;
  display: flex;
  justify-content: flex-end;
}

.btn-calendar {
  background: transparent;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.7);
  padding: 4px 10px;
  font-size: 0.75rem;
  font-family: 'Inter', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #e5e7eb;
  cursor: pointer;
  opacity: 1.0;
  transition: background 0.15s ease, opacity 0.15s ease, transform 0.15s ease;
}

.btn-calendar:hover {
  background: rgba(236, 237, 240, 0.9);
  opacity: 1;
  transform: translateY(-1px);
}

.btn-calendar {
  padding: 6px 6px;     /* smaller height + narrower width */
  font-size: 0.75rem;    /* slightly smaller text */
  border-radius: 14px;   /* reduce pill size */
}

.help-modal-overlay[hidden] {
  display: none !important;
}

.help-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding-top: 12vh;
  z-index: 50;
}

.help-modal {
  max-width: 560px;
  width: 90%;
  background: #020617;
  border-radius: 18px;
  padding: 20px 22px 18px;
  border: 1px solid rgba(148, 163, 184, 0.6);
  box-shadow: 0 22px 48px rgba(0, 0, 0, 0.8);
}

/* --- Schedule-X calendar tweaks --- */

/* Let the calendar stretch to fill the container if these classes exist */
#calendar-view .sx-react-calendar-wrapper,
#calendar-view .sx__calendar {
  height: 100%;
}

/* Event box: slightly tighter padding so more events fit per day */
#calendar-view .sx__event {
  padding: 1px 3px;
}

/* Event titles: smaller and wrap */
#calendar-view .sx__event-title {
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
  line-height: 1.2;
  font-size: 10px;  /* down from 11px */
}

/* Hide the time label completely if Schedule-X still renders one */
#calendar-view .sx__event-time {
  display: none;
}
