.wrap {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 40px;
}
h1,
h2,
h3,
h4,
.display {
  font-family: var(--serif);
}

.eyebrow {
  font-size: 13px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 700;
  margin-bottom: 14px;
}

/* ================= INTRO ================= */
.intro {
  padding: 88px 0 50px;
  text-align: center;
}
.intro .eyebrow {
  justify-content: center;
  display: flex;
  align-items: center;
  gap: 14px;
}
.intro .eyebrow::before,
.intro .eyebrow::after {
  content: "";
  width: 30px;
  height: 1px;
  background: var(--gold);
}
.intro h2 {
  font-size: clamp(26px, 3.2vw, 40px);
  font-weight: 500;
  line-height: 1.25;
  color: var(--main);
  max-width: 26ch;
  margin: 0 auto 18px;
}
.intro p {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.7;
  color: #4a4a4a;
  max-width: 62ch;
  margin: 0 auto;
}

/* ================= CALENDAR SECTION ================= */
.calendar-section {
  padding: 10px 0 70px;
}

/* Layout: months grid on the left, key + dates sidebar on the right */
.calendar-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 34px;
  align-items: start;
}

.calendar-months {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

.calendar-sidebar {
  display: flex;
  flex-direction: column;
  gap: 26px;
  position: sticky;
  top: 24px;
}

.month-card {
  border: 1px solid rgba(0, 33, 71, 0.12);
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 6px 18px rgba(0, 33, 71, 0.06);
}

.month-card h3 {
  margin: 0;
  padding: 12px 0;
  text-align: center;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--accent);
  background: var(--main);
}

.month-card table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--sans);
  table-layout: fixed;
}

.month-card thead th {
  font-size: 12px;
  font-weight: 700;
  color: var(--navy-deep);
  background: var(--cream);
  padding: 7px 0;
  border-bottom: 1px solid rgba(0, 33, 71, 0.15);
}

.month-card td {
  text-align: center;
  font-size: 13px;
  padding: 7px 0;
  color: #333;
  border: 1px solid #f0f0f0;
  position: relative;
}

.month-card td.weekend-num {
  color: var(--main);
  font-weight: 700;
}

.month-card td.empty {
  background: transparent;
  border-color: transparent;
}

/* highlight categories */
.month-card td.orientation {
  background: #6c8ee8;
  color: #fff;
  font-weight: 700;
}
.month-card td.start-term {
  background: #8b2fd8;
  color: #fff;
  font-weight: 700;
}
.month-card td.national-holiday {
  background: #f5a623;
  color: #3a2600;
  font-weight: 700;
}
.month-card td.closed {
  background: #f28b8b;
  color: #5c1010;
  font-weight: 700;
}
.month-card td.eid {
  background: #4bd05a;
  color: #04380c;
  font-weight: 700;
}

/* hoverable / tappable highlighted days */
.month-card td[data-type] {
  cursor: pointer;
}

/* tooltip shown on hover / tap for highlighted days */
.day-tooltip {
  position: fixed;
  z-index: 999;
  background: var(--navy-deep);
  color: var(--text-light);
  font-family: var(--sans);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.01em;
  padding: 7px 12px;
  border-radius: 6px;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transform: translate(-50%, -8px);
  transition: opacity 0.12s ease;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
}

.day-tooltip::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 100%;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-top-color: var(--navy-deep);
}

.day-tooltip.visible {
  opacity: 1;
}

/* ================= LEGEND + NOTES (sidebar) ================= */
.legend-box,
.notes-box {
  border: 1px solid rgba(0, 33, 71, 0.15);
  border-radius: 10px;
  padding: 22px 24px;
  background: #fff;
}

.legend-box h4,
.notes-box h4 {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
}

.legend-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-family: var(--sans);
  font-size: 14px;
  color: var(--navy-deep);
}

.legend-list li {
  display: flex;
  align-items: center;
  gap: 12px;
}

.legend-swatch {
  width: 18px;
  height: 18px;
  border-radius: 4px;
  flex: none;
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.legend-swatch.orientation { background: #6c8ee8; }
.legend-swatch.start-term { background: #8b2fd8; }
.legend-swatch.national-holiday { background: #f5a623; }
.legend-swatch.closed { background: #f28b8b; }
.legend-swatch.eid { background: #4bd05a; }

.notes-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-family: var(--sans);
  font-size: 13.5px;
}

.notes-list li {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(0, 33, 71, 0.08);
  color: #333;
}
.notes-list li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.notes-list .date-range {
  font-weight: 700;
  color: var(--navy-deep);
}

/* ================= RESPONSIVE ================= */
@media (max-width: 1180px) {
  .calendar-layout {
    grid-template-columns: 1fr 260px;
    gap: 24px;
  }
}

@media (max-width: 980px) {
  .calendar-layout {
    grid-template-columns: 1fr;
  }
  .calendar-sidebar {
    position: static;
    flex-direction: row;
  }
  .calendar-sidebar > * {
    flex: 1;
  }
  .calendar-months {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 620px) {
  .calendar-months {
    grid-template-columns: 1fr;
  }
  .calendar-sidebar {
    flex-direction: column;
  }
  .wrap {
    padding: 0 20px;
  }
  .month-card td,
  .month-card thead th {
    font-size: 11.5px;
  }
}
