:root {
  --bg-dark: #161820;
  --bg-alt: #2d2d2d;
  --teal: #00987F;
  --green: #00C896;
  --text: #ffffff;
  --text-muted: #C1CDE3;

  --font-body: "Work Sans", system-ui, sans-serif;
  --font-numbers: "Barlow Condensed", "Oswald", Impact, sans-serif;
}

.calendar {
  width: 100%;
  max-width: none;
  box-sizing: border-box;
  margin: 0px;
  background: var(--bg-dark);
  color: var(--text);
  font-family: var(--font-body);
}

.schedule-table thead th {
  text-align: center;
  padding: 4px clamp(8px, 2vw, 24px) 6px;
  font-size: clamp(14px, 1.6vw, 20px);
  font-weight: 400;
  color: #9C9C9C;
  background: var(--bg-dark);
}

.schedule-table thead th.schedule-names,
.schedule-table thead th.schedule-times {
  text-align: center;
}

.schedule-table {
  width: 100%;
  border-collapse: collapse;
  color: #fff;
  table-layout: auto;
}

.schedule-table tr:not(.schedule-header) {
  height: 110px;
}

.schedule-table tr:nth-child(odd) {
  background: #2D2D2D;
}

.schedule-table tr:nth-child(even) {
  background: #161820;
}

.schedule-table td {
  text-align: center;
  padding: 8px clamp(6px, 1.2vw, 12px);
  vertical-align: middle;
  overflow-wrap: anywhere;
}

.schedule-day {
  font-size: clamp(18px, 3vw, 32px);
  font-weight: 800;
  text-transform: uppercase;
}

.schedule-names {
  font-size: clamp(15px, 2.2vw, 24px);
  text-align: center;
  font-weight: 600;
}

.schedule-times {
  font-size: clamp(18px, 2.8vw, 30px);
  font-family: var(--font-numbers);
  white-space: nowrap;
  text-align: center;
  color: #00C896;
  font-weight: 700;
}

thead .schedule-times {
  font-family: var(--font-body) !important;
}

thead .schedule-day {
	text-transform: none;
}

.schedule-line {
  line-height: 1.5;
}

.schedule-empty {
  padding: 16px;
  text-align: center;
  font-size: clamp(15px, 2.2vw, 24px);
}

/* ---------- Responsive ---------- */

/* Tablets and small laptops: tighter rows */
@media (max-width: 900px) {
  .schedule-table tr:not(.schedule-header) {
    height: auto;
    min-height: 80px;
  }

  .schedule-table td {
    padding: 12px 8px;
  }
}

/* Phones: keep the 3-column table (Nap | Program | Időpont) with the
   header row visible. Day on the left, programs in the middle,
   times on the right; rows alternate dark/grey and stay ~110px tall. */
@media (max-width: 600px) {
  .schedule-table {
    display: table;
    width: 100%;
    table-layout: auto;
  }

  .schedule-table thead { display: table-header-group; }
  .schedule-table tbody { display: table-row-group; }

  .schedule-table thead tr,
  .schedule-table tbody tr {
    display: table-row;
    padding: 0;
    border-bottom: 0;
  }

  .schedule-table thead th {
    display: table-cell;
    padding: 10px 10px 12px;
    font-size: 14px;
    text-align: center;
  }

  .schedule-table thead th.schedule-day {
    text-align: left;
    padding-left: 10px;
  }

  .schedule-table thead th.schedule-times {
    text-align: right;
    padding-right: 10px;
  }

  .schedule-table tr:not(.schedule-header) {
    height: 110px;
    min-height: 110px;
  }

  .schedule-table td {
    display: table-cell;
    padding: 8px 6px;
    vertical-align: middle;
    overflow-wrap: normal;
  }

  .schedule-table td.schedule-day {
    text-align: left;
    color: var(--text);
    font-size: 18px;
    letter-spacing: 0;
    margin: 0;
    padding: 8px 6px 8px 6px;
    border-bottom: 0;
    white-space: nowrap;
  }

  .schedule-table td.schedule-names {
    text-align: left;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.1;
  }

  .schedule-table td.schedule-times {
    text-align: right;
    font-size: 20px;
    padding-right: 6px;
  }

  .schedule-line {
    line-height: 1.1;
    padding: 5px 0;
  }

  /* Days without events keep the same row height, day name only */
  .schedule-table tr.schedule-row-empty td.schedule-day {
    margin: 0;
    padding: 8px 6px;
    border-bottom: 0;
    opacity: 0.6;
  }
}

/* Very small phones */
@media (max-width: 360px) {
  .schedule-table td.schedule-day,
  .schedule-table td.schedule-names { font-size: 16px; }
  .schedule-table td.schedule-times { font-size: 18px; }
}

/* Large TV displays: keep things big and readable from a distance */
@media (min-width: 1600px) {
  .schedule-day   { font-size: 40px; }
  .schedule-names { font-size: 30px; }
  .schedule-times { font-size: 38px; }
  .schedule-table thead th { font-size: 24px; }
}
