/* ADV-23 audit #02/#03 (2026-11-27, approved by Aaron): text/buttons use --aae-action-600 #0B6DBF (5.31:1 on white);
   --aae-gray-500 is now #6B6B6B (5.33:1 white, 4.82:1 tint). #3CA7FE (sky-500) stays for decorative icons only. */
/* ADV-23 audit #1: fluid design tokens (390 → 1440 px viewport). rem + vw so text still scales with browser zoom (WCAG 1.4.4).
   Elementor 4.4 only resolves global SIZE variables with Pro active, so layout tokens live here and atomic styles reference
   them as var(--aae-*) (custom unit). Colour + font variables still come from Elementor. */
:root {
	--aae-fs-h1:    clamp(2.125rem, 1.707rem + 1.714vw, 3.25rem);     /* 34 → 52 */
	--aae-fs-h2:    clamp(1.625rem, 1.393rem + 0.952vw, 2.25rem);     /* 26 → 36 */
	--aae-fs-h3:    clamp(1.125rem, 1.079rem + 0.19vw, 1.25rem);      /* 18 → 20 */
	--aae-fs-body:  clamp(1rem, 0.954rem + 0.19vw, 1.125rem);         /* 16 → 18 */
	--aae-fs-small: clamp(0.875rem, 0.852rem + 0.095vw, 0.9375rem);   /* 14 → 15 */
	--aae-fs-btn:   clamp(0.9375rem, 0.915rem + 0.095vw, 1rem);       /* 15 → 16 */
	--aae-section-y-top:    clamp(3rem, 1.886rem + 4.571vw, 6rem);    /* 48 → 96 */
	--aae-section-y-bottom: clamp(2.5rem, 1.757rem + 3.048vw, 4.5rem); /* 40 → 72 */
	--aae-gutter-x: clamp(1.25rem, 0.786rem + 1.905vw, 2.5rem);       /* 20 → 40 */
	--aae-gap-lg:   clamp(1.25rem, 0.786rem + 1.905vw, 2.5rem);       /* 20 → 40 */
	--aae-gap-md:   clamp(0.75rem, 0.564rem + 0.762vw, 1.25rem);      /* 12 → 20 */
	--aae-gap-sm:   clamp(0.5rem, 0.454rem + 0.19vw, 0.625rem);       /* 8 → 10 */
	--aae-card-pad: clamp(1.25rem, 0.971rem + 1.143vw, 2rem);         /* 20 → 32 */
	--aae-btn-pad-y: clamp(0.875rem, 0.805rem + 0.286vw, 1.0625rem);  /* 14 → 17 */
	--aae-btn-pad-x: clamp(1.5rem, 1.268rem + 0.952vw, 2.125rem);     /* 24 → 34 */
	--aae-container: 71.25rem;                                        /* 1140 */
	--aae-radius-button: 4px;
	--aae-radius-card: 12px;
	--aae-radius-full: 999px;
}

/* GIQ · AAE site styles that atomic classes can't reach (third-party widget markup).
   Uses the Elementor V4 global variables (--aae-*). ADV-4/5/6. */

/* Popups must sit above the ElementsKit nav (it sets a high z-index). */
.jet-popup.jet-popup--front-mode { z-index: 100000; }

/* ElementsKit nav: brand colours (Figma Header 38:74). */
#aae-header .elementskit-navbar-nav > li > a { color: var(--aae-navy-900); font-family: var(--aae-font-body); font-weight: 500; font-size: 16px; }
#aae-header .elementskit-navbar-nav > li > a:hover,
#aae-header .elementskit-navbar-nav > li.current-menu-item > a,
#aae-header .elementskit-navbar-nav > li.current_page_item > a { color: var(--aae-action-600) !important; text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 2px; } /* was sky-400 #45C7FF ≈1.9:1 (ADV-23 #02) */

/* JetFormBuilder: Figma jfb-field components (49:427 / 49:431). */
.jet-form-builder { font-family: var(--aae-font-body); }
.jet-form-builder .jet-form-builder-row { margin: 0 0 16px; }
.jet-form-builder .jet-form-builder__label-text { color: var(--aae-navy-900); font-weight: 500; font-size: var(--aae-fs-body); }
.jet-form-builder .jet-form-builder__required { color: var(--aae-action-600); }
.jet-form-builder input.jet-form-builder__field:not([type=checkbox]):not([type=radio]),
.jet-form-builder select.jet-form-builder__field,
.jet-form-builder textarea.jet-form-builder__field {
	width: 100%; padding: 13px 16px; border: 1px solid var(--aae-line-200); border-radius: var(--aae-radius-button);
	background: var(--aae-white); color: var(--aae-slate-600); font: 400 var(--aae-fs-body)/1.4 var(--aae-font-body); box-shadow: none;
}
.jet-form-builder .jet-form-builder__field:focus-visible { outline: 2px solid var(--aae-action-600); outline-offset: 1px; border-color: var(--aae-action-600); }
.jet-form-builder .checkradio-wrap { color: var(--aae-slate-600); font-size: 16px; }
.jet-form-builder .jet-form-builder__submit {
	background: var(--aae-action-600); background-image: none; box-shadow: none; color: var(--aae-white); border: 0; cursor: pointer;
	padding: var(--aae-btn-pad-y) var(--aae-btn-pad-x); border-radius: var(--aae-radius-button); font: 500 var(--aae-fs-btn)/1.2 var(--aae-font-body); text-transform: none;
}
.jet-form-builder .jet-form-builder__submit:hover,
.jet-form-builder .jet-form-builder__submit:focus-visible { background: var(--aae-navy-900); color: var(--aae-white); }
.jet-form-builder-messages-wrap .jet-form-builder-message--success { color: var(--aae-navy-900); }

/* JetEngine listing items (Figma li-* components 40:35 / 40:40 / 49:452 / 49:457). ADV-7. */
.aae-li-thumb, .aae-li-thumb .jet-listing-dynamic-image { width: 100%; }
.aae-li-thumb img { display: block; width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 8px; border-bottom: 3px solid var(--aae-blue-800); }
.aae-li-avatar img { display: block; width: 150px; height: 150px; object-fit: cover; border-radius: var(--aae-radius-full); margin: 0 auto; }
.aae-li-title .jet-listing-dynamic-field__content { font: 500 var(--aae-fs-h3)/1.35 var(--aae-font-heading); color: var(--aae-navy-900); text-transform: none; }
.aae-li-title.aae-center .jet-listing-dynamic-field__content { text-align: center; }
.aae-li-title .jet-listing-dynamic-field__inline-wrap, .aae-li-title .jet-listing-dynamic-field { justify-content: center; }
.aae-li-position .jet-listing-dynamic-field__content { font: 500 16px/24px var(--aae-font-accent); color: var(--aae-slate-600); text-align: center; }
.aae-li-org .jet-listing-dynamic-field__content { font: 400 15px/22px var(--aae-font-body); color: var(--aae-gray-500); text-align: center; }
.aae-li-org .jet-listing-dynamic-field__content br { display: none; }
.aae-li-position .jet-listing-dynamic-field, .aae-li-org .jet-listing-dynamic-field { justify-content: center; }
.aae-jlink-btn .jet-listing-dynamic-link__link {
	display: inline-flex; background: var(--aae-action-600); color: var(--aae-white); padding: 17px 34px;
	border-radius: var(--aae-radius-button); font: 500 15px/15px var(--aae-font-body); text-transform: none; text-decoration: none;
}
.aae-jlink-btn .jet-listing-dynamic-link__link:hover,
.aae-jlink-btn .jet-listing-dynamic-link__link:focus-visible { background: var(--aae-navy-900); color: var(--aae-white); }
.jet-listing-grid__item > .elementor, .jet-listing-grid__item .e-con, .jet-listing-grid__item [data-elementor-type="jet-listing-items"] { height: 100%; }
.aae-li-title .jet-listing-dynamic-field__inline-wrap, .aae-li-title .jet-listing-dynamic-field__content { width: 100%; }
.jet-listing-dynamic-link, .aae-jlink-btn { flex-shrink: 0; }
.aae-li-title { flex: 1 1 auto; min-width: 0; align-self: stretch; }
/* Jet per-widget CSS sets text-align:left on the field; centre titles marked aae-center. */
.jet-listing-grid .aae-li-title.aae-center .jet-listing-dynamic-field { justify-content: center !important; }
.jet-listing-grid .aae-li-title.aae-center .jet-listing-dynamic-field__content { text-align: center !important; }

/* ADV-7/8: single templates — banner, share, post navigation. */
.aae-banner-img, .aae-banner-img .jet-listing-dynamic-image, .aae-banner-img img { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; }
.aae-banner-img img { object-fit: cover; }
.aae-banner-title .jet-listing-dynamic-field__content { font: 500 var(--aae-fs-h1)/1.15 var(--aae-font-heading); color: var(--aae-navy-900); text-transform: none; text-align: center; margin: 0; }
.aae-banner-title .jet-listing-dynamic-field { justify-content: center !important; }
.aae-prose .jet-listing-dynamic-field__content { font: 400 var(--aae-fs-body)/1.6 var(--aae-font-body); color: var(--aae-slate-600); }
.aae-prose .jet-listing-dynamic-field__content :is(h2, h3, h4) { color: var(--aae-navy-900); font-family: var(--aae-font-heading); font-weight: 500; }
.aae-prose .jet-listing-dynamic-field__content a { color: var(--aae-blue-800); }
.aae-share { display: flex; gap: 12px; list-style: none; margin: 0; padding: 0; }
.aae-share a { display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; border-radius: var(--aae-radius-button); background: var(--aae-action-600); color: var(--aae-white); font: 500 var(--aae-fs-btn)/1.2 var(--aae-font-body); text-decoration: none; }
.aae-share a:hover, .aae-share a:focus-visible { background: var(--aae-navy-900); color: var(--aae-white); }
.aae-share__icon svg { width: 16px; height: 16px; display: block; }
.aae-post-nav { display: flex; justify-content: space-between; gap: 30px; width: 100%; }
.aae-post-nav a { display: flex; flex-direction: column; gap: 4px; text-decoration: none; max-width: 48%; }
.aae-post-nav__next { text-align: right; margin-left: auto; }
.aae-post-nav__label { color: var(--aae-slate-600); font: 400 14px/20px var(--aae-font-body); text-transform: none; letter-spacing: 1px; }
.aae-post-nav__title { color: var(--aae-navy-900); font: 500 18px/25px var(--aae-font-heading); }
.aae-post-nav a:hover .aae-post-nav__title, .aae-post-nav a:focus-visible .aae-post-nav__title { color: var(--aae-action-600); }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }
.aae-li-excerpt .jet-listing-dynamic-field__content { font: 400 15px/24px var(--aae-font-body); color: var(--aae-gray-500); text-align: center; }

/* ADV-23 audit #4 (WCAG 2.4.7): one visible focus ring for every interactive element. */
/* html:root body … + :not(#_) = specificity (1,3,2): beats ElementsKit / JetFormBuilder / kit `outline: 0` rules. */
html:root body:not(#_) :is(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
	outline: 2px solid #0B6DBF !important;
	outline-offset: 2px;
	box-shadow: none;
}
html:root body:not(#_) #aae-footer :is(a, button):focus-visible { outline-color: #FFFFFF !important; }
.jet-form-builder .jet-form-builder__field:focus-visible { outline: 2px solid #0B6DBF !important; outline-offset: 1px; border-color: #0B6DBF; }
.aae-sr-only:focus-within, a:focus-visible .aae-sr-only { opacity: 0; } /* hidden text stays hidden; the link ring shows */

/* ADV-23 audit #7 (WCAG 2.5.8): footer + top-bar text links get >= 24px targets. */
#aae-footer p > a, #aae-header p > a { display: inline-block; padding-block: 4px; }
/* standalone content links (contact details, feature-box titles) reach 24px too */
:is([data-elementor-type="wp-page"], [data-elementor-type="jet_single"]) :is(p, h3, h4, h5) > a:is(.e-paragraph-link-base, .e-heading-link-base) { display: inline-block; padding-block: 3px; }

/* Home feature boxes (ADV-23 #10): whole card is the link target (stretched title link) + visible hover/focus state.
   Card padding is painted with a box-shadow spread so the 320px layout and row alignment don't move. */
#aae-features > .e-con { position: relative; border-radius: 16px; transition: background-color .2s ease, box-shadow .2s ease, transform .2s ease; }
#aae-features > .e-con .e-con { position: static; }   /* so the stretched link spans the whole card, not just the text column */
#aae-features > .e-con h3 a { color: inherit; text-decoration: none; }
#aae-features > .e-con h3 a::after { content: ""; position: absolute; inset: -16px; border-radius: 16px; }
#aae-features > .e-con p a { position: relative; z-index: 1; }   /* secondary "Tahoe Career Connect" link stays clickable */
#aae-features > .e-con > .e-con:first-child { transition: background-color .2s ease; }
#aae-features > .e-con > .e-con:first-child svg { transition: color .2s ease; }
#aae-features > .e-con:is(:hover, :focus-within) {
	background-color: #FFFFFF;
	box-shadow: 0 0 0 16px #FFFFFF, 0 14px 32px 16px rgba(20, 40, 80, .12);
}
#aae-features > .e-con:is(:hover, :focus-within) > .e-con:first-child { background-color: var(--aae-action-600) !important; }
#aae-features > .e-con:is(:hover, :focus-within) > .e-con:first-child .e-svg-base { color: #FFFFFF !important; }
#aae-features > .e-con:is(:hover, :focus-within) h3 a { color: var(--aae-action-600); text-decoration: underline; text-underline-offset: 4px; }
#aae-features > .e-con h3 a:focus-visible { outline-offset: 20px; }
@media (prefers-reduced-motion: no-preference) { #aae-features > .e-con:hover { transform: translateY(-4px); } }
