/*
Theme Name: NJHL Child
Template: Total
Version: 0.1.0
Requires at least: 5.8
Requires PHP: 7.4
Text Domain: njhl-child
*/

/* ==========================================================================
   M003-96klqe / S03 / T01 — D008 child-CSS color-contrast overrides (STABLE)
   ==========================================================================
   These are the CLASS-DEFAULT tokens (no Customizer theme_mod exists for them,
   so child CSS wins on specificity). They are stable across both prod-promote
   batches and ship now so each batch's operator window is capture-and-validate.

   The CSS-var tokens (link-blue / accent-orange / menu-red / green-button bg)
   are NOT here: Total emits those via inline wp_get_custom_css (loads AFTER this
   stylesheet) and would defeat a :root redeclaration. They land via D009
   set_theme_mod in T02/T03 so Total regenerates the inline value.

   Every value below is pre-proven to pass WCAG 1.4.3 >=4.5:1 against its REAL
   background by audit/M003-96klqe/s03-contrast/tools/contrast-math.js (run the
   shortlist to re-verify; ratios are viewport-independent). All 44 baseline
   color-contrast nodes are <=14px normal weight, so the normal-text 4.5:1
   threshold applies (no large-text 3:1 exception).
   ========================================================================== */

/* --- (c) Breadcrumb muted gray: 12 of 44 nodes ---------------------------
   Total's breadcrumb <nav> uses class .site-breadcrumbs + the utility class
   .wpex-text-4 (which resolves color: var(--wpex-text-4) = #999999,
   @2.54:1 on #f2f2f2 FAIL). The trail links inherit this gray. breadcrumbs.php
   exposes NO color mod (toggles/position only), so override on specificity:
   target the actual .site-breadcrumbs container + its descendants.
   #595959 on #f2f2f2 = 6.26:1 (PASS, normal text). Small 11px trail text. */
.site-breadcrumbs,
.site-breadcrumbs span,
.site-breadcrumbs a,
.site-breadcrumbs a:visited,
.site-breadcrumbs a:hover,
.breadcrumb,
.breadcrumb a,
.breadcrumb a:visited,
.breadcrumb_last,
.breadcrumb-trail,
.breadcrumb-trail > span {
	color: #595959;
}

/* --- (e) WPBakery vc_color-warning callout text: 2 of 44 nodes -----------
   .vc_color-warning > p text #9d8967 on the preset bg #fff4e2 (@3.10:1 FAIL).
   Darken the brown. #6d5d44 on #fff4e2 = 5.85:1 (PASS, normal text). */
.vc_color-warning > p {
	color: #6d5d44;
}

/* --- (g) WPBakery vc_color-info callout text: 1 of 44 nodes --------------
   .vc_color-info > p text #5e7f96 on the preset bg #dff2fe (@3.68:1 FAIL).
   Darken the slate-blue. #44607a on #dff2fe = 5.71:1 (PASS, normal text). */
.vc_color-info > p {
	color: #44607a;
}

/* --- (h) Menu-button nav items (Join Today / Renew Online): nav-button CTAs --
   Total renders .menu-button nav items as buttons. Their background follows
   --wpex-btn-bg (theme_button_bg). With theme_button_bg darkened to #4f7012
   (green), the button text must be WHITE (#ffffff on #4f7012 = 5.74:1 PASS) to
   match theme_button_color. This override pins the nav-button text to the
   button text color so it stays correct regardless of which bg token the
   .menu-button class resolves to (accent or button). !important: targeted a11y
   override on 2 specific nav items where the button text is emitted inline. */
.main-navigation-ul .menu-button > a,
.main-navigation-ul .menu-button > a > .link-inner,
.main-navigation-ul .menu-button > a:visited {
	color: #ffffff !important;
}
