body {
  font-family: system-ui, sans-serif;
  margin: 0;
  background: #f6f6f6;
}

.site-header {
  background: #2e7d32;
  color: white;
  padding: 1rem;
}

nav a {
  color: white;
  margin-right: 1rem;
  text-decoration: none;
}

nav a.active {
  text-decoration: underline;
}

.programme {
  padding: 1rem;
}

.programme-item {
  background: white;
  margin-bottom: 0.75rem;
  border-radius: 6px;
}

.programme-toggle {
  width: 100%;
  border: none;
  background: none;
  padding: 1rem;
  text-align: left;
  cursor: pointer;
}

.programme-details {
  display: none;
  padding: 0 1rem 1rem;
}

.programme-item.open .programme-details {
  display: block;
}

.view-map {
  margin-top: 0.5rem;
}

.grounds-map {
  max-width: 100%;
  background: #eef5ee;
}

.map-zone rect {
  fill: rgba(165, 214, 167, 0.1);
  stroke: #2e7d32;
  cursor: pointer;
}

.map-zone text {
  pointer-events: none;
  fill: #1b5e20;
  font-weight: bold;
}

.map-zone.active rect {
  fill: #ffeb3b;
  animation: pulse 1.5s ease-out;
}

@keyframes pulse {
  0%   { opacity: 0.5; }
  100% { opacity: 1; }
}

/* Live timing highlights */

.programme-item.now-on {
  border-left: 6px solid #2e7d32;
  background: #e8f5e9;
}

.programme-item.up-next {
  border-left: 6px solid #f9a825;
  background: #fffde7;
}

.programme-item.now-on .live-badge {
  background: #2e7d32;
}

.programme-item.up-next .live-badge {
  background: #f9a825;
}

.live-badge {
  display: inline-block;
  margin-left: 0.5rem;
  padding: 0.15rem 0.5rem;
  font-size: 0.7rem;
  border-radius: 4px;
  color: white;
  font-weight: bold;
}

/* Live status badges */

.live-badge {
  display: inline-block;
  margin-left: 0.4rem;
  padding: 0.15rem 0.5rem;
  font-size: 0.7rem;
  border-radius: 4px;
  color: white;
  font-weight: 700;
  white-space: nowrap;
}

.badge-now {
  background: #2e7d32;
}

.badge-next {
  background: #f9a825;
}

.badge-allday {
  background: #0277bd;
}

.badge-over {
  background: #9e9e9e;
}

/* Countdown text */

.countdown {
  display: block;
  font-size: 0.75rem;
  margin-top: 0.25rem;
  color: #444;
}

/* Live highlights */

.programme-item.now-on {
  border-left: 6px solid #2e7d32;
  background: #e8f5e9;
}

.programme-item.up-next {
  border-left: 6px solid #f9a825;
  background: #fffde7;
}

.programme-item.all-day {
  border-left: 6px solid #0277bd;
  background: #e3f2fd;
}
/* Live status badges */

.live-badge {
  display: inline-block;
  margin-left: o.4rem;
  padding: 0.15rem 0.5rem;
  font-size: 0.7rem;
  border-radius: 4px;
  color: white;
  font-weight: 700;
  white-space: nowrap;
}

.badge-now { background: #2e7d32; }
.badge-next { background: #f9a825; }
.badge-allday { background: #0277bd; }

/* Countdown text */

.countdown {
  display: block;
  font-size: 0.75rem;
  margin-top: 0.25rem;
  color: #444;
}

/* Live highlight states */

.programme-item.now-on {
  border-left: 6px solid #2e7d32;
  background: #e8f5e9;
}

.programme-item.up-next {
  border-left: 6px solid #f9a825;
  background: #fffde7;
}

.programme-item.all-day {
  border-left: 6px solid #0277bd;
  background: #e3f2fd;
}
/* Starting Soon banner */

.starting-soon {
  background: #fff3cd;
  border-left: 6px solid #f9a825;
  padding: 1rem;
  margin: 1rem;
  border-radius: 6px;
}

.starting-soon strong {
  display: block;
  font-size: 0.9rem;
  color: #7a5c00;
  margin-bottom: 0.25rem;
}

.starting-soon-content {
  font-size: 0.95rem;
}

.starting-soon.hidden {
  display: none;
}
.starting-soon-item {
  margin-bottom: 0.5rem;
}

.starting-soon-item:last-child {
  margin-bottom: 0;
}

/* Programme filters – mobile first */

.programme-filters {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin: 1rem;
}

.filter-group label {
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
  display: block;
}

.filter-group select {
  width: 100%;
  min-height: 48px;          /* Apple / Google touch target */
  font-size: 1rem;
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
  border: 1px solid #ccc;
  background-color: #fff;
}

/* Larger screens: side-by-side */
@media (min-width: 700px) {
  .programme-filters {
    flex-direction: row;
  }
}

.grounds-map {
  width: 100%;
  height: auto;
  background-image: url("map.png");
  background-size: contain;   /* or cover */
  background-repeat: no-repeat;
  background-position: center;
}

/* Category colour dot */

.category-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  min-width: 10px;
  border-radius: 50%;
  margin-right: 0.4rem;
  vertical-align: middle;
}

/* Time-block accordion (mobile first) */

.time-block {
  background: #ffffff;
  margin-bottom: 1rem;
  border-radius: 10px;
  overflow: hidden;
}

.time-block-header {
  width: 100%;
  min-height: 56px;              /* ✅ Larger tap target */
  padding: 1rem 1.25rem;
  background: #f1f1f1;
  border: none;
  text-align: left;
  cursor: pointer;

  display: flex;
  align-items: center;
}

.time-block-label {
  font-size: 1.25rem;            /* ✅ Bigger heading text */
  font-weight: 700;
  line-height: 1.3;
}

/* Optional hover/active feedback */
.time-block-header:active {
  background: #e0e0e0;
}
