/**
 * WCAG 2.1 AA overlay. Loaded after app.css so it can fix contrast, skip-link,
 * and focus without waiting on a Sass rebuild.
 */

/* Skip link must become visible AND unclipped on focus (2.4.1). */
.screen-reader-text:focus,
.skip-link:focus,
.skip-link:focus-visible {
  clip: auto !important;
  clip-path: none !important;
  height: auto !important;
  width: auto !important;
  margin: 0 !important;
  overflow: visible !important;
  position: absolute !important;
  left: 0 !important;
  top: 0 !important;
  z-index: 100000;
  padding: 12px 20px;
  background: #035d93;
  color: #ffffff;
  font-family: "Roboto Condensed", sans-serif;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 0 0 8px 0;
  outline: 3px solid #ffffff;
  outline-offset: 2px;
}

/* Footer legal text: white@50% on #0f0f1f fails 1.4.3. */
.site-footer .footer-bottom {
  color: rgba(255, 255, 255, 0.82);
}
.site-footer .footer-bottom a {
  color: rgba(255, 255, 255, 0.9);
}
.site-footer .footer-contact,
.site-footer .footer-contact a,
.site-footer .footer-col a,
.site-footer .footer-col p {
  color: rgba(255, 255, 255, 0.86);
}
.site-footer .footer-col a:hover,
.site-footer .footer-contact a:hover,
.site-footer .footer-bottom a:hover {
  color: #ffffff;
}

/* Footer headings were h4 (skipped levels). Match existing h4 look. */
.footer-col h2 {
  font-family: "Bebas Neue", sans-serif;
  font-size: 1.25rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #ffffff;
  margin: 0 0 20px;
  line-height: 1.1;
}

/* Visible focus on form fields (2.4.7 / 1.4.11). */
.ginput_container input:focus,
.ginput_container select:focus,
.ginput_container textarea:focus,
.inquiry-form__field input:focus,
.inquiry-form__field select:focus,
.search-form__field:focus {
  outline: 3px solid #046faf !important;
  outline-offset: 2px;
  box-shadow: none !important;
}

/* Target size 2.5.8 — close / hamburger already 44px in extended; reinforce. */
.announcement__close {
  min-width: 44px;
  min-height: 44px;
}
.menu-toggle span {
  pointer-events: none;
}

/* Don't send keyboard users into a dead "#" card. */
a[href="#"].audience__card,
a[href="#"].program-card {
  cursor: default;
}

/* Reduce motion for marquees if the overlay loads without the Sass layer. */
@media (prefers-reduced-motion: reduce) {
  .logo-marquee__track {
    animation: none !important;
    transform: none !important;
  }
}

/* Keep skip-target identifiable after jump (2.4.1). */
#main:focus {
  outline: none;
}
#main:focus-visible {
  outline: 3px solid #046faf;
  outline-offset: 4px;
}

/* Expand hit area of small carousel dots (2.5.5 / 2.5.8) without changing look. */
.photo-slider__dot,
.carousel__dot,
.testimonial-carousel__dot {
  position: relative;
}
.photo-slider__dot::before,
.carousel__dot::before,
.testimonial-carousel__dot::before {
  content: "";
  position: absolute;
  inset: -12px;
}

.programs__filter {
  min-height: 44px;
}

@media (max-width: 720px) {
  .mega-nav__toggle,
  .main-nav__toggle {
    min-width: 44px;
    min-height: 44px;
  }
}

/* Placeholder-only text is not a label; keep it ≥4.5:1 when used as hint. */
.inquiry-form__field input::placeholder,
.ginput_container input::placeholder,
.ginput_container textarea::placeholder {
  color: #5c6572;
  opacity: 1;
}

.compare-table tbody th {
  font-weight: 500;
}
.compare-table th.is-yes {
  color: #046faf;
  font-weight: 700;
}

/* 1.4.13 — Escape dismisses hover mega menus. */
body.stech-dismiss-hover .mega-nav__item.has-mega:hover > .mega-nav__panel,
body.stech-dismiss-hover .mega-nav__item.has-mega:focus-within > .mega-nav__panel {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

/* 2.2.2 — pause partner logo animation for keyboard users too. */
.logo-marquee:hover .logo-marquee__track,
.logo-marquee:focus-within .logo-marquee__track {
  animation-play-state: paused;
}

/* 2.2.2 — explicit pause control for auto-advancing photo slider. */
.photo-slider__pause {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  margin-left: 8px;
  padding: 0 12px;
  border: 1px solid currentColor;
  background: transparent;
  color: inherit;
  font-family: "Roboto Condensed", sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
}
.photo-slider__dots {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
}

/* 2.4.7 — CTA banner inputs had outline:0 in the compiled sheet. */
.cta-banner__signup-form input:focus,
.cta-banner__signup-form input:focus-visible {
  outline: 3px solid #ffffff !important;
  outline-offset: 2px;
}

/* Hidden tab panels must not be displayed (tab order). */
.info-tabs__panel[aria-hidden="true"] {
  display: none !important;
}

/* Honeypot: keep out of visual and a11y tree. */
.akismet-fields-container,
textarea[name="ak_hp_textarea"] {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

/* Form error text contrast on white. */
.gform_validation_errors,
.gform_submission_error,
.gfield_validation_message,
.validation_message {
  color: #9b1c38;
}

/* Landmark wrappers keep the original flex/block layout. */
.utility-bar__right {
  display: flex;
  gap: var(--space-5, 1.25rem);
  flex-wrap: wrap;
  align-items: center;
}
.footer-bottom__links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
}
