.schedule-page {
  background: #f3f8f3;
  font-family: Arial, Helvetica, sans-serif;
}

.schedule-top {
  background: var(--green-deep);
  color: #fff;
  border-bottom: 4px solid #88c842;
}

.schedule-top .shell {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding-block: 14px;
  font-size: .83rem;
}

.schedule-top a { font-weight: 800; }
.schedule-top span { color: #d8f0df; }

.schedule-sheet {
  width: min(1380px, calc(100% - 64px));
  margin-block: 32px 48px;
  padding: clamp(20px, 3vw, 40px);
  background: white;
  border: 1px solid #d9e7dc;
  border-radius: 14px;
}

.schedule-heading {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(16px, 3vw, 36px);
  padding-bottom: 24px;
  border-bottom: 4px solid;
  border-image: linear-gradient(90deg, #81c41e 0 40%, #ffab21 40% 65%, #ed2226 65% 84%, #191278 84%) 1;
}

.schedule-logo {
  flex: 0 0 auto;
  width: clamp(106px, 14vw, 175px);
  aspect-ratio: 2 / 1;
  position: relative;
  overflow: hidden;
}

.schedule-logo img {
  position: absolute;
  width: 150%;
  max-width: none;
  left: -25%;
  top: 50%;
  transform: translateY(-50%);
}

.schedule-nsc {
  width: clamp(48px, 7vw, 80px);
  height: auto;
}

.schedule-title { text-align: center; }
.schedule-title h1 {
  color: var(--green-deep);
  font: 900 clamp(1.2rem, 2.35vw, 2.2rem)/1.12 'Arial Black', Arial, sans-serif;
  letter-spacing: -.02em;
  margin: 0 0 8px;
  text-transform: uppercase;
}

.schedule-title p {
  color: var(--green-dark);
  font-size: clamp(.88rem, 1.65vw, 1.35rem);
  font-weight: 700;
  margin: 0;
  text-transform: uppercase;
}

.schedule-title .schedule-dates {
  margin-top: 6px;
  font-size: clamp(.8rem, 1.3vw, 1rem);
  font-weight: 400;
  text-transform: none;
}

.schedule-tools {
  display: flex;
  justify-content: flex-end;
  margin: 14px 0;
}

.schedule-tools .button { min-height: 40px; padding: 8px 14px; }
.schedule-scroll-note { display: none; }
.schedule-scroll { overflow-x: auto; border: 1px solid #000; border-radius: 6px; }
.schedule-grid {
  width: 100%;
  min-width: 1100px;
  table-layout: fixed;
  border-collapse: collapse;
  font-size: .78rem;
}
.sport-column { width: 16%; }
.venue-column { width: 25%; }
.schedule-grid th, .schedule-grid td { border: 1px solid #000; }
.schedule-grid thead { background: var(--green-deep); color: #fff; }
.month-row th { padding: 7px; font-weight: 800; }
.month-row th[rowspan] { text-align: left; padding-left: 12px; }
.date-row th { padding: 4px 1px 5px; }
.date-row time { display: grid; justify-items: center; gap: 1px; }
.date-row small { font-size: .62rem; font-weight: 500; }
.date-row strong { font-size: .93rem; }
.date-row .milestone-day { background: #38624e; }
.date-row .first-competition { background: #007149; box-shadow: inset 0 3px #b9eb6c; }
.schedule-grid tbody th { text-align: left; padding: 6px 10px; line-height: 1.2; }
.schedule-grid .venue {
  padding: 5px 9px;
  text-align: left;
  line-height: 1.25;
  color: var(--muted);
  overflow-wrap: anywhere;
}
.schedule-grid tbody tr:nth-child(even) { background: #f5f9f5; }
.schedule-grid .scheduled-day {
  text-align: center;
  vertical-align: middle;
}

.schedule-dot {
  display: inline-block;
  width: 9px;
  height: 9px;
  vertical-align: middle;
  border-radius: 50%;
  background: var(--sport-dot);
}
.schedule-grid tbody td:nth-child(3),
.schedule-grid tbody td:nth-child(4) { background: #edf2ed; }
.schedule-grid tbody td:nth-child(8),
.date-row .month-start { border-left-width: 2px; }
.schedule-page :focus-visible { outline: 2px solid #008753; outline-offset: 3px; }

@media (max-width: 1240px) {
  .schedule-scroll-note { display: block; margin: 0 0 6px; font-size: .75rem; color: var(--muted); }
  .schedule-grid tbody th {
    position: sticky;
    left: 0;
    background: #fff;
    box-shadow: 1px 0 #000;
  }
}

@media (max-width: 600px) {
  .schedule-top .shell, .schedule-sheet { width: calc(100% - 24px); }
  .schedule-top span { display: none; }
  .schedule-sheet { margin-block: 12px 24px; padding: 15px; }
  .schedule-heading { display: grid; grid-template-columns: 1fr auto; gap: 8px; padding-bottom: 15px; }
  .schedule-title { grid-row: 2; grid-column: 1 / -1; }
  .schedule-logo { grid-row: 1; grid-column: 2; }
}

@page { size: A4 landscape; margin: 8mm; }

@media print {
  .schedule-page { background: white; min-width: 0; print-color-adjust: exact; -webkit-print-color-adjust: exact; }
  .schedule-top, .schedule-page .skip-link, .schedule-tools, .schedule-scroll-note { display: none; }
  .schedule-sheet { width: 100%; margin: 0; padding: 0; border: 0; }
  .schedule-heading { gap: 5mm; padding-bottom: 2mm; margin-bottom: 3mm; }
  .schedule-logo { width: 31mm; }
  .schedule-nsc { width: 16mm; }
  .schedule-title h1 { font-size: 19pt; margin: 0 0 2mm; }
  .schedule-title p { font-size: 12pt; }
  .schedule-title .schedule-dates { font-size: 9pt; margin-top: 1mm; }
  .schedule-scroll { overflow: visible; border: 0; border-radius: 0; }
  .schedule-grid { min-width: 0; font-size: 8pt; }
  .schedule-grid thead th, .schedule-grid tbody th { padding: 1mm 2mm; }
  .schedule-grid .venue { padding: .7mm 1.5mm; font-size: 7pt; }
  .schedule-grid tbody th { position: static; background: transparent; box-shadow: none; }
  .date-row time { gap: 0; }
  .date-row small { font-size: 6.5pt; }
  .date-row strong { font-size: 8.5pt; }
  .schedule-grid tr { break-inside: avoid; }
}
