/* CRC Dynamic Schedule — ACF-driven, matched to Teams/Past Champions */
.crc-schedule,
.crc-schedule *,
.crc-schedule *::before,
.crc-schedule *::after {
  box-sizing: border-box;
}

.crc-schedule {
  --crc-schedule-primary: #14376f;
  --crc-schedule-accent: #2b9941;
  --crc-schedule-ink: #061a46;
  --crc-schedule-muted: #f6f6f6;
  --crc-schedule-border: #dedede;
  --crc-schedule-font: var(--e-global-typography-primary-font-family, "Montserrat"), "Montserrat", Arial, sans-serif;
  --crc-schedule-heading: var(--e-global-typography-accent-font-family, "QuatroSlab"), "QuatroSlab", "Quatro Slab", "Roboto Slab", Georgia, serif;
  width: 100%;
  color: var(--crc-schedule-ink);
  font-family: var(--crc-schedule-font);
}

.crc-schedule button {
  appearance: none;
  cursor: pointer;
  font: inherit;
}

.crc-schedule button:focus-visible {
  outline: 3px solid rgba(43, 153, 65, .25);
  outline-offset: 3px;
}

.crc-schedule__controls {
  position: relative;
  z-index: 2;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  padding: clamp(28px, 2.4vw, 38px) 24px;
  background: var(--crc-schedule-muted);
  border-bottom: 1px solid var(--crc-schedule-border);
  box-shadow: 0 7px 10px rgba(8, 24, 55, .08);
  text-align: center;
}

.crc-schedule__heading {
  margin: 0 0 36px;
  color: var(--crc-schedule-primary);
  font-family: var(--crc-schedule-heading);
  font-size: clamp(2.25rem, 5vw, 3rem);
  font-style: italic;
  font-weight: 900;
  letter-spacing: -.025em;
  line-height: 1.05;
  text-transform: uppercase;
}

.crc-schedule__gender {
  display: inline-grid;
  grid-auto-flow: column;
  grid-auto-columns: 200px;
  margin: 4px auto 50px;
  overflow: hidden;
  border: 2px solid var(--crc-schedule-primary);
  border-radius: 2px;
  box-shadow: 0 4px 10px rgba(8, 24, 55, .10);
}

.crc-schedule__gender-button {
  min-height: 68px;
  padding: 12px 30px;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: var(--crc-schedule-primary) !important;
  font-family: var(--crc-schedule-font) !important;
  font-size: 16px !important;
  font-weight: 700 !important;
  letter-spacing: .01em;
  line-height: 1;
  text-transform: uppercase;
  transition: background-color 180ms ease, color 180ms ease;
}

.crc-schedule__gender-button + .crc-schedule__gender-button {
  border-left: 1px solid var(--crc-schedule-primary) !important;
}

.crc-schedule__gender-button:hover,
.crc-schedule__gender-button.is-active,
.crc-schedule__gender-button[aria-pressed="true"] {
  background: var(--crc-schedule-primary) !important;
  color: #fff !important;
}

.crc-schedule__division-desktop {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(20px, 5.4vw, 78px);
}

.crc-schedule__division-button {
  position: relative;
  padding: 8px 2px 10px;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: var(--crc-schedule-primary) !important;
  font-family: var(--crc-schedule-font) !important;
  font-size: 14px !important;
  font-weight: 800 !important;
  letter-spacing: .015em;
  line-height: 1.2;
  text-transform: uppercase;
  transition: color 180ms ease, transform 180ms ease;
}

.crc-schedule__division-button:hover,
.crc-schedule__division-button:focus-visible,
.crc-schedule__division-button.is-active {
  color: var(--crc-schedule-accent) !important;
  transform: translateY(-1px);
}

.crc-schedule__division-mobile {
  display: none;
}

.crc-schedule__results {
  position: relative;
  width: 100vw;
  min-height: 560px;
  margin-left: calc(50% - 50vw);
  padding: 40px 0 0;
  background: #fff;
}

.crc-schedule__widget-shell {
  position: relative;
  width: min(calc(100% - 40px), 1376px);
  min-height: 500px;
  margin: 0 auto;
  overflow: visible;
  background: #fff;
}

.crc-schedule__widget-host,
.crc-schedule__widget-host > div,
.crc-schedule__widget-host iframe {
  width: 100% !important;
  max-width: 100% !important;
}

.crc-schedule__widget-host iframe {
  border: 0 !important;
}

.crc-schedule__loading {
  position: absolute;
  z-index: 5;
  top: 34px;
  left: 50%;
  display: flex;
  gap: 7px;
  opacity: 0;
  pointer-events: none;
  transform: translateX(-50%);
  transition: opacity 160ms ease;
}

.crc-schedule__loading span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--crc-schedule-accent);
  animation: crc-schedule-pulse 800ms ease-in-out infinite alternate;
}

.crc-schedule__loading span:nth-child(2) { animation-delay: 120ms; }
.crc-schedule__loading span:nth-child(3) { animation-delay: 240ms; }
.crc-schedule.is-loading .crc-schedule__loading { opacity: 1; }
.crc-schedule.is-loading .crc-schedule__widget-host { opacity: .42; }
.crc-schedule__widget-host { transition: opacity 180ms ease; }

.crc-schedule__empty {
  width: min(calc(100% - 40px), 900px);
  margin: 0 auto;
  padding: 70px 24px;
  color: #536078;
  text-align: center;
}

.crc-schedule__archive {
  display: flex;
  width: min(calc(100% - 40px), 1376px);
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 32px auto;
  padding: 24px 30px;
  border: 1px solid #dedede;
  border-radius: 2px;
  background: #f1f1f1;
  box-shadow: 0 8px 22px rgba(8, 24, 55, .08);
  text-align: center;
}

.crc-schedule.is-ready .crc-schedule__archive {
  opacity: 0;
  transform: translateY(30px) scale(.985);
}

.crc-schedule.is-ready .crc-schedule__archive.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  animation: crc-schedule-archive-bounce 760ms cubic-bezier(.2, .8, .2, 1);
}

.crc-schedule__archive h3 {
  margin: 0;
  color: var(--crc-schedule-ink);
  font-family: var(--crc-schedule-font);
  font-size: 14px;
  font-style: normal;
  font-weight: 800;
  line-height: 1;
  text-transform: uppercase;
}

.crc-schedule__archive-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0;
}

.crc-schedule__archive-current,
.crc-schedule__archive-button {
  min-width: 0;
  min-height: 0;
  padding: 0 9px;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: var(--crc-schedule-primary) !important;
  font-family: var(--crc-schedule-font) !important;
  font-size: 14px !important;
  font-weight: 800 !important;
  line-height: 1;
  text-decoration: none !important;
  white-space: nowrap;
  transition: color 180ms ease, transform 180ms cubic-bezier(.2, .75, .25, 1);
}

.crc-schedule__archive-current:hover,
.crc-schedule__archive-current:focus-visible,
.crc-schedule__archive-button:hover,
.crc-schedule__archive-button:focus-visible,
.crc-schedule__archive-button.is-active {
  color: var(--crc-schedule-accent) !important;
  text-decoration: none !important;
}

.crc-schedule__archive-current:hover,
.crc-schedule__archive-current:focus-visible,
.crc-schedule__archive-button:hover,
.crc-schedule__archive-button:focus-visible {
  transform: translateY(-2px) scale(1.03);
}

.crc-schedule__archive-button + .crc-schedule__archive-button::before,
.crc-schedule__archive-current + .crc-schedule__archive-button::before {
  margin-right: 9px;
  color: #121212;
  content: "|";
}

.crc-schedule__archive-button:first-child::before {
  content: none;
}

.crc-schedule__status {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

@keyframes crc-schedule-pulse {
  to { opacity: .32; transform: translateY(-4px); }
}

@keyframes crc-schedule-archive-bounce {
  0% { opacity: 0; transform: translateY(30px) scale(.985); }
  62% { opacity: 1; transform: translateY(-8px) scale(1.008); }
  80% { opacity: 1; transform: translateY(4px) scale(.998); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}

@media (max-width: 767px) {
  .crc-schedule__controls {
    padding: 38px 18px 24px;
  }

  .crc-schedule__heading {
    margin-bottom: 20px;
    font-size: 34px;
  }

  .crc-schedule__gender {
    width: min(100%, 360px);
    grid-auto-columns: minmax(0, 1fr);
    margin-bottom: 24px;
  }

  .crc-schedule__gender-button {
    min-height: 52px;
    padding: 11px 18px;
  }

  .crc-schedule__division-desktop {
    display: none;
  }

  .crc-schedule__division-mobile {
    position: relative;
    z-index: 50;
    display: block;
    width: min(100%, 360px);
    margin: 0 auto;
  }

  .crc-schedule__division-trigger {
    position: relative;
    display: flex;
    width: 100%;
    min-height: 54px;
    align-items: center;
    justify-content: center;
    padding: 12px 52px 12px 18px;
    border: 0 !important;
    border-radius: 0 !important;
    background: var(--crc-schedule-primary) !important;
    color: #fff !important;
    font-family: var(--crc-schedule-font) !important;
    font-size: 14px !important;
    font-weight: 800 !important;
    line-height: 1.1;
    text-transform: uppercase;
    box-shadow: 0 6px 14px rgba(8, 24, 55, .12);
  }

  .crc-schedule__division-trigger-label {
    display: block;
    width: 100%;
    text-align: center;
  }

  .crc-schedule__division-caret {
    position: absolute;
    top: 50%;
    right: 18px;
    width: 10px;
    height: 10px;
    border-right: 2.5px solid #fff;
    border-bottom: 2.5px solid #fff;
    pointer-events: none;
    transform: translateY(-60%) rotate(45deg);
    transition: transform 180ms ease;
  }

  .crc-schedule__division-mobile.is-open .crc-schedule__division-caret {
    transform: translateY(-40%) rotate(-135deg);
  }

  .crc-schedule__division-menu {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    z-index: 70;
    width: 100%;
    overflow: hidden;
    border: 1px solid #e0e3e7;
    background: #fff;
    box-shadow: 0 10px 24px rgba(8, 24, 55, .14);
  }

  .crc-schedule__division-menu[hidden] { display: none !important; }

  .crc-schedule__division-option {
    display: block;
    width: 100%;
    min-height: 48px;
    padding: 12px 16px;
    border: 0 !important;
    border-bottom: 1px solid #eceef1 !important;
    border-radius: 0 !important;
    background: #fff !important;
    color: #111 !important;
    font-family: var(--crc-schedule-font) !important;
    font-size: 14px !important;
    font-weight: 800 !important;
    line-height: 1.2;
    text-align: center;
    text-transform: uppercase;
  }

  .crc-schedule__division-option:last-child { border-bottom: 0 !important; }
  .crc-schedule__division-option:hover,
  .crc-schedule__division-option:focus-visible,
  .crc-schedule__division-option.is-active { color: var(--crc-schedule-accent) !important; }

  .crc-schedule__results {
    min-height: 540px;
    padding-top: 28px;
  }

  .crc-schedule__widget-shell {
    width: min(calc(100% - 32px), 720px);
    min-height: 500px;
  }

  .crc-schedule__archive {
    width: min(calc(100% - 32px), 720px);
    flex-direction: column;
    gap: 12px;
    margin: 24px auto;
    padding: 20px 18px;
  }

  .crc-schedule__archive-buttons {
    row-gap: 10px;
  }

  .crc-schedule__archive-current,
  .crc-schedule__archive-button {
    font-size: 13px !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .crc-schedule *,
  .crc-schedule *::before,
  .crc-schedule *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    transition-delay: 0ms !important;
  }

  .crc-schedule.is-ready .crc-schedule__archive,
  .crc-schedule.is-ready .crc-schedule__archive.is-visible {
    opacity: 1 !important;
    transform: none !important;
  }
}


/* Unified CRC archive bar: Teams / News / Schedule */
.crc-schedule__archive {
  position: relative;
  width: min(calc(100% - 40px), 1376px);
  margin: 32px auto;
  padding: 24px 30px;
  border: 1px solid #dedede;
  border-radius: 2px;
  background: #f1f1f1;
  box-shadow: 0 8px 22px rgba(8, 24, 55, 0.08);
}

.crc-schedule__archive-current {
  position: absolute !important;
  top: 50%;
  right: 18px;
  z-index: 2;
  padding: 0 !important;
  transform: translateY(-50%);
}

.crc-schedule__archive-current[hidden] {
  display: none !important;
}

.crc-schedule__archive-current:hover,
.crc-schedule__archive-current:focus-visible {
  transform: translateY(calc(-50% - 2px)) scale(1.025);
}

.crc-schedule__archive-current + .crc-schedule__archive-button::before {
  content: none !important;
}

@media (max-width: 767px) {
  .crc-schedule__archive {
    width: min(calc(100% - 24px), 720px);
    flex-direction: row;
    gap: 8px;
    margin: 24px auto;
    padding: 20px 16px;
  }

  .crc-schedule__archive:has(.crc-schedule__archive-current:not([hidden])) {
    padding-bottom: 52px;
  }

  .crc-schedule__archive-current {
    top: auto;
    right: 16px;
    bottom: 16px;
    font-size: 13px !important;
    transform: none;
  }

  .crc-schedule__archive-current:hover,
  .crc-schedule__archive-current:focus-visible {
    transform: translateY(-2px) scale(1.025);
  }
}

/* Mobile archive return link centered */
@media (max-width: 767px) {
  .crc-schedule__archive:has(.crc-schedule__archive-current:not([hidden])) {
    padding-bottom: 52px;
  }

  .crc-schedule__archive-current {
    left: 50%;
    right: auto;
    bottom: 16px;
    transform: translateX(-50%);
  }

  .crc-schedule__archive-current:hover,
  .crc-schedule__archive-current:focus-visible {
    transform: translateX(-50%) translateY(-2px) scale(1.025);
  }
}
