/*
 * Accessibility contrast overrides.
 * Previously injected at runtime via JS on every page load (see git history
 * of header.php) — moved here so they're a real, cacheable stylesheet
 * instead of a <style> tag built by JavaScript after DOMContentLoaded.
 */

/* MEC calendar: fix low-contrast text/background combinations */
.mec-event-detail,
.mec-event-detail * {
  color: #000000 !important;
  background-color: #ffffff !important;
  opacity: 1 !important;
}

.mec-calendar-topsec,
.mec-calendar-topsec * {
  background: #ffffff !important;
  color: #000000 !important;
  opacity: 1 !important;
}

.mec-calendar-day.mec-selected-day {
  background-color: #ffffff !important;
  color: #000000 !important;
}

.mec-calendar-topsec::before,
.mec-calendar-topsec::after,
.mec-event-detail::before,
.mec-event-detail::after {
  display: none !important;
  content: none !important;
}

/* Hero carousel: pause/play control for autoplay (WCAG 2.2.2) */
.hero-autoplay-toggle {
  position: absolute;
  bottom: 16px;
  right: 16px;
  z-index: 10;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.5);
  color: #ffffff;
  border: none;
  border-radius: 50%;
  cursor: pointer;
}

.hero-autoplay-toggle:hover,
.hero-autoplay-toggle:focus {
  background: rgba(0, 0, 0, 0.75);
}

/* Skip link: hidden off-screen until keyboard focus */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: #000000;
  color: #ffffff;
  padding: 8px 16px;
  z-index: 100000;
  text-decoration: none;
}

.skip-link:focus {
  top: 0;
}

/* Breadcrumbs: last item contrast */
.breadcrumbs span[typeof='v:Breadcrumb'] span[typeof='v:Breadcrumb']:last-of-type {
  color: #000000 !important;
}
