/*
 * Accessibility (WCAG 2.1 AA) contrast overrides.
 * Loaded after the main stylesheet so these win the cascade.
 * Targets cases that can't be a plain brand-color swap: the gold CTA buttons
 * (which need dark text instead of white), third-party/plugin controls, and
 * disabled-looking pagination.
 */

/* Visually-hidden but screen-reader-available (for injected section headings). */
.davis-sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* --- "Three box" CTA buttons cycle gold / red / blue by position.
 *     Gold needs dark text; red & blue keep white. Mirror the bg cycle. --- */
.boxes-block .box:nth-child(1n + 1) .uk-button,
.boxes-block .box:nth-child(1n + 1) .uk-button span {
  color: #001733; /* gold base -> dark navy text (11.5:1 on #fdc66f) */
}
.boxes-block .box:nth-child(2n + 1) .uk-button,
.boxes-block .box:nth-child(2n + 1) .uk-button span {
  color: #ffffff; /* red */
}
.boxes-block .box:nth-child(3n + 1) .uk-button,
.boxes-block .box:nth-child(3n + 1) .uk-button span {
  color: #ffffff; /* blue */
}

/* --- IDSS venue form: required marker forced to pure red elsewhere --- */
.required-marker {
  color: #f05a5c !important; /* 4.57:1 on the white form panel */
}

/* --- IDSS venue search pagination: greyed prev/next had white-on-#ccc --- */
#prev-page,
#next-page {
  background-color: #6e6e6e !important; /* white text -> 5.1:1 */
  color: #ffffff !important;
}
#next-page {
  background-color: #4ba4d8 !important; /* active next -> accessible blue */
}

/* --- Cookie Law Info bar (plugin) "Accept all" button --- */
#wt-cli-accept-all-btn {
  background-color: #f05a5c !important; /* white text -> 4.57:1 */
  color: #ffffff !important;
}

/* --- Layout preservation: several headings were re-leveled for a valid
 *     heading order. Keep their original visual sizes (level = semantics,
 *     size = presentation). --- */
.single-blog-post .post-header .post-title {
  font-size: 40px; /* was h2 */
}
.sidebar .topics h2,
.mobile-topics h2 {
  font-size: 24px; /* was h3 */
}
.taxonomy-list h2 {
  font-size: 1.2em; /* was h5 */
}

/* --- Venues grid block + Gravity Forms (plugin-rendered) buttons & legends --- */
.read-more {
  background-color: #f05a5c !important; /* white text -> 4.57:1 */
  color: #ffffff !important;
}
.wp-block-venues-grid legend,
.venues-filter legend {
  background-color: #4ba4d8 !important; /* white text -> 4.78:1 */
  color: #ffffff !important;
}
.sports-venues-button {
  background-color: #4ba4d8 !important;
  color: #ffffff !important;
}
/* High specificity (html body …) to beat an inline !important rule that
 * forces the brand red on Gravity Forms submit buttons. */
html body .gform_wrapper input[type="submit"],
html body .gform_wrapper .gform_button {
  background: #f05a5c !important; /* white text -> 4.57:1 */
  color: #ffffff !important;
  box-shadow: 0 0 15px rgba(240, 90, 92, 0.5) !important;
}

/* ============================================================
 * Full-site sweep additions (venues plugin, team block, modal,
 * in-content links). Loaded after plugin CSS so these win.
 * ============================================================ */

/* --- Venue single (venues-manager plugin) contact links: #f05a5c = 3.32:1 --- */
.venue-phone,
.venue-address a,
.venue-website a {
  color: #f05a5c !important; /* 4.57:1 on white */
}
.venue-phone svg path,
.venue-address a svg path,
.venue-website a svg path {
  fill: #f05a5c !important; /* keep decorative icons matched */
}

/* --- Venue single CTA button: white-on-#f05a5c = 3.32:1 --- */
.cta-button {
  background-color: #f05a5c !important; /* white text -> 4.57:1 */
  color: #ffffff !important;
}
.cta-button:hover,
.cta-button:focus {
  background-color: #f05a5c !important; /* white text -> 5.65:1 */
  color: #ffffff !important;
}

/* --- Plain mailto/tel content links inherit UIkit blue #1e87f0 (3.63:1 on
 *     white). Darken ONLY these to the accessible blue. Scoped to mailto/tel so
 *     it can never touch nav/card links that sit on colored backgrounds (those
 *     already pass and must keep their own colors). --- */
.default-page a[href^="mailto:"]:not([class]),
.default-page a[href^="tel:"]:not([class]) {
  color: #4ba4d8; /* 4.78:1 on white */
}

/* --- Team block: "The Team" eyebrow re-leveled h4 -> p for valid heading
 *     order; preserve the original h4 look (21px / 900, accent blue). --- */
section.ekr-team .text-container .team-eyebrow {
  font-family: arboria, sans-serif;
  font-size: 21px;
  font-weight: 900;
  color: #2b83ff;
  margin: 0;
}

/* --- Frightmares modal notice re-leveled h4 -> p for valid heading order;
 *     preserve the original h4 look. --- */
#frightmares-modal .frightmares-modal-notice {
  font-family: arboria, sans-serif;
  font-size: 21px;
  font-weight: 900;
  color: #001733;
  margin: 0 0 10px;
}
