/* ========================= */
/* RESET / SAFETY            */
/* ========================= */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  width: 100%;
  overflow-x: hidden;
  font-family: Roboto, -apple-system, BlinkMacSystemFont,
    "Helvetica Neue", Arial, sans-serif;
}

/* Hide radio buttons completely */
input[type="radio"] {
  display: none;
}

/* ========================= */
/* WRAPPER                   */
/* ========================= */

.wgc-schedule-container {
  width: 100%;
  max-width: 100%;
  padding: 12px;
  background: rgb(157, 193, 131);
}

/* ========================= */
/* POLL BANNER               */
/* ========================= */

.wgc-poll-banner {
  display: block;
  width: 100%;
  max-width: 1100px;
  margin: 0 auto 10px auto;
  padding: 6px 12px;
  text-align: center;

  background: rgb(255, 216, 0);
  color: rgb(31, 58, 20);

  font-weight: 800;
  font-size: 0.95rem;
  line-height: 1.15;
  text-decoration: none;

  border-radius: 6px;
}

.wgc-poll-banner:hover {
  background: rgb(245, 206, 0);
  text-decoration: underline;
}

.poll-sep {
  opacity: 0.8;
}

.poll-cta {
  font-weight: 700;
}

/* ========================= */
/* HEADER / NAV              */
/* ========================= */

.wgc-schedule-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgb(34, 68, 24);
  color: #fff;
  padding: 6px 8px;
  margin-bottom: 10px;
  border-radius: 6px;
}

.week-button {
  background: rgb(255, 180, 115);
  color: #000;
  padding: 6px 10px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  user-select: none;
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
}

.week-button:hover {
  background: rgb(230, 160, 102);
}

.week-button.disabled {
  background: rgb(180, 180, 180);
  color: rgb(100, 100, 100);
  cursor: not-allowed;
  opacity: 0.6;
}

.week-button.disabled:hover {
  background: rgb(180, 180, 180);
}

.wgc-header-center {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.wgc-header-title {
  color: rgb(255, 180, 115);
  font-size: 0.95rem;
  font-weight: 800;
  line-height: 1.05;
}

.wgc-header-subtitle {
  color: #fff;
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 1.1;
  white-space: nowrap;
}

/* ========================= */
/* WEEK VISIBILITY           */
/* ========================= */

.week-container {
  display: none;
  width: 100%;
}

#nav-week0:checked ~ #week0,
#nav-week1:checked ~ #week1,
#nav-week2:checked ~ #week2 {
  display: block;
}

/* ========================= */
/* TABLE                     */
/* ========================= */

.wgc-schedule-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: #fff;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 2px 4px rgba(0,0,0,0.15);
  vertical-align: middle;
  border: 2px solid rgba(0, 0, 0, 0.5);
}

/* Gridline tuning */
.wgc-schedule-table {
  --grid: rgba(0, 0, 0, 0.25);
  --grid-strong: rgba(0, 0, 0, 0.44);
  --head-grid: rgba(255, 255, 255, 0.25);
}

/* Header cells */
.wgc-schedule-table thead th {
  background: rgb(124, 161, 96);
  color: #fff;
  font-size: 14px;
  padding: 10px 6px;
  text-align: center;
  font-weight: 700;
  border-right: 1px solid var(--head-grid);
  border-bottom: 2px solid rgba(0, 0, 0, 0.5);
}

.wgc-schedule-table thead th:last-child {
  border-right: none;
}

/* Body cells */
.wgc-schedule-table td {
  padding: 8px 6px;
  font-size: 14px;
  font-weight: 600;
  text-align: center;
  border-top: 1px solid var(--grid);
  border-right: 1px solid var(--grid);
  vertical-align: middle;
}

.wgc-schedule-table td:last-child {
  border-right: none;
}

.wgc-schedule-table tbody tr:first-child td {
  border-top: none;
}

/* Darker separation between days */
.wgc-schedule-table tbody tr.day-end td {
  border-bottom: 2px solid rgba(0, 0, 0, 0.5);
}

/* ========================= */
/* COLUMN HIERARCHY FIXES    */
/* ========================= */

.wgc-schedule-table th:first-child,
.wgc-schedule-table td:first-child {
  width: 5.5em;
  white-space: nowrap;
}

.wgc-schedule-table td:nth-child(2) {
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.wgc-schedule-table td:nth-child(3) {
  text-align: center;
  line-height: 1.25;
  overflow-wrap: break-word;
}

.wgc-schedule-table td:nth-child(4) {
  font-size: 0.85em;
  font-weight: 600;
  opacity: 0.85;
  white-space: nowrap;
}

/* ========================= */
/* TBC + LINKS               */
/* ========================= */

.tbc-cell {
  color: #888;
  font-style: italic;
}

.wgc-schedule-table a {
  color: #000;
  text-decoration: none;
  font-weight: 700;
}

.wgc-schedule-table a:hover {
  text-decoration: underline;
  color: rgb(34, 68, 24);
}

/* ========================= */
/* ROW STRIPING              */
/* ========================= */

.wgc-schedule-table tbody tr:nth-child(even) td {
  background: rgb(214, 228, 207);
}

.wgc-schedule-table tbody tr:hover td {
  background: rgb(200, 218, 190);
}

/* ========================= */
/* HEADER VISIBILITY         */
/* ========================= */

.week-header {
  display: none;
}

#nav-week0:checked ~ #header-week0,
#nav-week1:checked ~ #header-week1,
#nav-week2:checked ~ #header-week2 {
  display: flex;
}

/* ========================= */
/* MOBILE                    */
/* ========================= */

@media (max-width: 600px) {

  .wgc-schedule-container {
    padding: 12px 20px 12px 12px;
  }

  .week-button {
    font-size: 13px;
    padding: 6px 8px;
  }

  .wgc-schedule-table thead th,
  .wgc-schedule-table td {
    font-size: 12px;
    padding: 6px 4px;
  }

  .wgc-header-center {
    max-width: calc(100% - 160px);
    min-width: 0;
  }

  /* ---- MOBILE SUBTITLE SWAP (SAFE) ---- */
  .wgc-header-subtitle {
    visibility: hidden;
    position: relative;
  }

  .wgc-header-subtitle::after {
    content: "we open 30mins before show";
    visibility: visible;
    position: absolute;
    left: 0;
    right: 0;
    top: 0;

    font-size: 0.55rem;
    line-height: 1.4;
    font-weight: 500;
    opacity: 0.9;
    text-align: center;
  }
  /* ----------------------------------- */

  .wgc-schedule-table td:nth-child(3) {
    hyphens: auto;
  }
}
