/* ============================================================
   PURACERÂMICA — WHAT'S ON
   ============================================================ */

.whats-on-page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 150px 28px 100px;
}

.whats-on-intro {
  max-width: 720px;
  margin-bottom: 60px;
}

.whats-on-eyebrow {
  display: block;
  margin-bottom: 14px;

  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: #777;
}

.whats-on-title {
  margin: 0 0 18px;

  font-family: var(--serif);
  font-size: clamp(2.8rem, 5vw, 4.5rem);
  font-weight: 500;
  line-height: 1;
}

.whats-on-intro p {
  margin: 0;
  max-width: 620px;
  line-height: 1.7;
  color: #555;
}


/* ============================================================
   MONTH SWITCHER
   ============================================================ */

.calendar-month-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 28px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.calendar-month-tab {
  appearance: none;
  border: 1px solid #d9d9d9;
  background: #fff;

  padding: 10px 18px;

  font: inherit;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;

  cursor: pointer;
  white-space: nowrap;
}

.calendar-month-tab:hover,
.calendar-month-tab.active {
  border-color: #222;
  background: #222;
  color: #fff;
}


/* ============================================================
   DESKTOP CALENDAR
   ============================================================ */

.whats-on-calendar {
  display: block;
}

.calendar-month {
  display: none;
}

.calendar-month.active {
  display: block;
}

.calendar-month-heading {
  margin: 0 0 20px;

  font-family: var(--serif);
  font-size: 2rem;
  font-weight: 500;
  text-transform: capitalize;
}

.calendar-weekdays,
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
}

.calendar-weekdays {
  border-top: 1px solid #dcdcdc;
  border-left: 1px solid #dcdcdc;
}

.calendar-weekday {
  padding: 10px;

  border-right: 1px solid #dcdcdc;
  border-bottom: 1px solid #dcdcdc;

  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #777;
}

.calendar-day {
  min-height: 145px;
  padding: 10px;

  border-right: 1px solid #dcdcdc;
  border-bottom: 1px solid #dcdcdc;

  background: #fff;
}

.calendar-grid {
  border-left: 1px solid #dcdcdc;
}

.calendar-day.empty {
  background: #fafafa;
}

.calendar-day-number {
  display: block;
  margin-bottom: 10px;

  font-size: 0.76rem;
  color: #666;
}

.calendar-events {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.calendar-event {
  display: block;
  padding: 8px;

  border: 1px solid #e3e3e3;

  text-decoration: none;
  color: inherit;

  transition:
    border-color 0.2s ease,
    background 0.2s ease;
}

.calendar-event:hover {
  border-color: #222;
  background: #fafafa;
}

.calendar-event-time {
  display: block;
  margin-bottom: 3px;

  font-size: 0.66rem;
  color: #777;
}

.calendar-event-title {
  display: block;

  font-size: 0.76rem;
  font-weight: 500;
  line-height: 1.3;
}

.calendar-event-detail {
  display: block;
  margin-top: 3px;

  font-size: 0.65rem;
  color: #888;
}


/* ============================================================
   MOBILE UPCOMING LIST
   ============================================================ */

.whats-on-mobile-list {
  display: none;
}

.upcoming-event {
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr);
  gap: 20px;

  padding: 20px 0;
  border-bottom: 1px solid #e2e2e2;
}

.upcoming-event-date {
  font-size: 0.76rem;
  line-height: 1.45;
  color: #666;
}

.upcoming-event-content a {
  color: inherit;
  text-decoration: none;
}

.upcoming-event-content h3 {
  margin: 0 0 5px;

  font-size: 1rem;
  font-weight: 500;
}

.upcoming-event-content p {
  margin: 0;

  font-size: 0.82rem;
  line-height: 1.5;
  color: #777;
}

.upcoming-event-content a:hover h3 {
  text-decoration: underline;
}


/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 800px) {

  .whats-on-page {
    padding: 120px 20px 70px;
  }

  .whats-on-intro {
    margin-bottom: 40px;
  }

  .whats-on-calendar {
    display: none;
  }

  .whats-on-mobile-list {
    display: block;
  }
}

/* ============================================================
   CALENDAR CATEGORIES
   ============================================================ */

.calendar-event--wheel {
  background: #e7eef7;
  border-color: #b7c9e1;
}

.calendar-event--handbuilding {
  background: #f2e8dc;
  border-color: #d8b99a;
}

.calendar-event--social {
  background: #f2e5e8;
  border-color: #d7b3bc;
}

.calendar-event--special {
  background: #e8ede4;
  border-color: #bdc9b4;
}


/* ============================================================
   LEGEND
   ============================================================ */

.whats-on-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin: 0 0 28px;
}

.legend-item {
  display: inline-flex;
  align-items: center;
  gap: 7px;

  font-size: 0.72rem;
  color: #666;
}

.legend-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
}

.legend-dot--wheel {
  background: #b7c9e1;
}

.legend-dot--handbuilding {
  background: #d8b99a;
}

.legend-dot--social {
  background: #d7b3bc;
}

.legend-dot--special {
  background: #bdc9b4;
}


/* ============================================================
   MOBILE MONTHS + CATEGORIES
   ============================================================ */

.mobile-month-panel {
  display: none;
}

.mobile-month-panel.active {
  display: block;
}

.mobile-month-heading {
  margin: 0 0 18px;

  font-family: var(--serif);
  font-size: 1.8rem;
  font-weight: 500;
  text-transform: capitalize;
}

.upcoming-event {
  position: relative;
  padding-left: 14px;
}

.upcoming-event--wheel {
  border-left: 4px solid #b7c9e1;
}

.upcoming-event--handbuilding {
  border-left: 4px solid #d8b99a;
}

.upcoming-event--social {
  border-left: 4px solid #d7b3bc;
}

.upcoming-event--special {
  border-left: 4px solid #bdc9b4;
}

/* ============================================================
   MOBILE WEEK VIEW
   ============================================================ */

.mobile-week-switcher {
  display: grid;
  grid-template-columns: 42px 1fr 42px;
  align-items: center;
  gap: 12px;

  margin-bottom: 18px;

  border-top: 1px solid #ddd;
  border-bottom: 1px solid #ddd;

  padding: 10px 0;
}

.mobile-week-label {
  text-align: center;

  font-size: 0.82rem;
  font-weight: 500;
}

.mobile-week-nav {
  appearance: none;
  border: 0;
  background: transparent;

  height: 38px;

  font-size: 1.6rem;
  line-height: 1;

  cursor: pointer;
}

.mobile-week-nav:disabled {
  opacity: 0.25;
  cursor: default;
}

.mobile-week-panel {
  display: none;
}

.mobile-week-panel.active {
  display: block;
}

.mobile-week-empty {
  margin: 30px 0;

  font-size: 0.85rem;
  color: #777;
}

.mobile-month-heading {
  margin-bottom: 16px;
}