/*
 * YouthMonk dark theme: overrides for HAND-WRITTEN colours (kit custom CSS, ym-motion.css, youthmonk-core.php markup,
 * Hello theme / Elementor base styles, the header Nav Menu widget). Elementor element/global-class colours: ym-dark.css.
 * Mapping (Figma light → dark): bg #FFFFFF→#0A0A0A · surface #F4F4F1→#161616 · ink #0A0A0A→#FFFFFF · muted #5C5C5C→#A3A3A3
 * · border #E4E4DF→#2A2A2A · accent-text #4F6F00→#D4F36B · inverse-bg #0A0A0A→#1C1C1C · accent-hover →#E0F790.
 * Hex values are literal on purpose: ym-dark.css may remap --e-global-color-* in dark.
 * This file prints before Hello and Elementor CSS, so ties lose: theme-level rules use body/html for one extra element.
 */

/* ---------- Page, links, selection, native controls ---------- */
html[data-theme="dark"] { color-scheme: dark; background-color: #0A0A0A; }
html[data-theme="dark"] body { background-color: #0A0A0A; color: #FFFFFF; }
/* Hello reset: a #C36 / hover #336. (0,0,2) beats Hello's `a` but not any class rule (.ym-eyebrow a, Elementor .e-*). */
:where(html[data-theme="dark"]) body a { color: #D4F36B; }
:where(html[data-theme="dark"]) body a:is(:hover, :active) { color: #E0F790; }
:where(html[data-theme="dark"]) body figcaption { color: #A3A3A3; }
html[data-theme="dark"] ::selection { background-color: #D4F36B; color: #0A0A0A; }
/* Skip link (Hello .screen-reader-text:focus #eee/#333). */
html[data-theme="dark"] .screen-reader-text:focus { background-color: #161616; color: #FFFFFF; }
/* Focus ring (ym-motion #0A0A0A; Hello reset #000 + a 4px #fff halo that shows as a white box on dark). */
html[data-theme="dark"] :is(a, button, summary, input, select, textarea):focus-visible { outline-color: #FFFFFF; }
:where(html[data-theme="dark"]) body :is(a, button, input, select, textarea):focus-visible,
:where(html[data-theme="dark"]) body [tabindex]:not([tabindex="-1"]):not([contenteditable]):focus-visible { outline-color: #FFFFFF; box-shadow: none; }

/* ---------- Header bar (ym-motion) ---------- */
html[data-theme="dark"] .elementor-location-header .ym-header { background-color: #0A0A0A; }
html[data-theme="dark"].ym-scrolled .elementor-location-header .ym-header { background-color: rgba(10, 10, 10, 0.9); }

/* ---------- Header Nav Menu widget (Elementor V3 widget settings in post-1299.css, specificity (0,4,0)+; Pro base CSS) ---------- */
/* !important: the widget's own rules are ID-scoped (.elementor-1299 .elementor-element-88a9204 …) and print after this file. */
html[data-theme="dark"] .elementor-location-header .elementor-nav-menu--main .elementor-item { color: #FFFFFF !important; fill: #FFFFFF !important; }
html[data-theme="dark"] .elementor-location-header .elementor-nav-menu--main .elementor-item:focus { color: #D4F36B !important; fill: #D4F36B !important; }
html[data-theme="dark"] .elementor-location-header .elementor-menu-toggle { color: #FFFFFF !important; fill: #FFFFFF !important; background-color: transparent; }
html[data-theme="dark"] .elementor-location-header .elementor-menu-toggle svg { fill: #FFFFFF !important; }
/* Burger panel (tablet/mobile) and the widget's own sub-menus. */
html[data-theme="dark"] .elementor-location-header .elementor-nav-menu--dropdown { background-color: #161616 !important; }
html[data-theme="dark"] .elementor-location-header .elementor-nav-menu__container.elementor-nav-menu--dropdown { box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5) !important; outline: 1px solid #2A2A2A; outline-offset: -1px; }
html[data-theme="dark"] .elementor-location-header .elementor-nav-menu--dropdown a { color: #FFFFFF !important; fill: #FFFFFF !important; }
html[data-theme="dark"] .elementor-location-header .elementor-nav-menu--dropdown a:is(:hover, :focus, .highlighted, .elementor-item-active) { background-color: #2A2A2A !important; color: #FFFFFF !important; }

/* ---------- Mega menu (ym-motion): lime hover tile stays; its icon keeps on-accent ink ---------- */
@media (hover: hover) and (pointer: fine) {
	html[data-theme="dark"] .ym-mega-item:hover .ym-mega-tile :is(.ym-mega-icon, svg) { color: #0A0A0A; }
}

/* ---------- Forms (Elementor V4 base styles; field colours themselves are element styles) ---------- */
html[data-theme="dark"] :is(.e-form-input-base, .e-form-textarea-base)::placeholder { color: #A3A3A3; opacity: 1; }
html[data-theme="dark"] :is(input, textarea, select):-webkit-autofill { -webkit-text-fill-color: #FFFFFF; caret-color: #FFFFFF; transition: background-color 600000s 0s, color 600000s 0s, border-color 120ms ease; }
html[data-theme="dark"] select option { background-color: #161616; color: #FFFFFF; }
/* Hello reset fallbacks for unstyled fields (#666 border, #333 focus). */
:where(html[data-theme="dark"]) body :is(input:not([type=submit], [type=button], [type=checkbox], [type=radio]), select, textarea) { border-color: #2A2A2A; }
:where(html[data-theme="dark"]) body :is(input, select, textarea):focus { border-color: #A3A3A3; }

/* ---------- Kit custom CSS: articles ---------- */
html[data-theme="dark"] .ym-prose p { color: #A3A3A3; }
html[data-theme="dark"] .ym-prose p#the-short-answer,
html[data-theme="dark"] .ym-prose h2 { color: #FFFFFF; }
html[data-theme="dark"] .ym-toc a { color: #FFFFFF; }
html[data-theme="dark"] .ym-callout { background-color: #161616; }
html[data-theme="dark"] .ym-callout-eyebrow { color: #A3A3A3; }
html[data-theme="dark"] .ym-callout-text { color: #FFFFFF; }

/* ---------- Kit custom CSS: Knowledge Hub pills (Figma 262:3067: active = white pill, others plain) ---------- */
html[data-theme="dark"] .ym-tabs :is(a, strong) { color: #FFFFFF; background-color: transparent; }
html[data-theme="dark"] .ym-tabs strong { color: #0A0A0A; background-color: #FFFFFF; }
@media (hover: hover) and (pointer: fine) {
	html[data-theme="dark"] .ym-tabs a:hover { background-color: #161616; }
}

/* ---------- Kit custom CSS: breadcrumb hover, featured industry card ---------- */
html[data-theme="dark"] .ym-eyebrow a:hover { color: #FFFFFF; }
html[data-theme="dark"] .ym-inc-card:has(.ym-inc-label:not(:empty)) { background-color: #1C1C1C; }
html[data-theme="dark"] .ym-inc-card:has(.ym-inc-label:not(:empty)) .ym-h3 { color: #FFFFFF; }
html[data-theme="dark"] .ym-inc-card:has(.ym-inc-label:not(:empty)) .ym-body { color: #A3A3A3; }

/* ---------- ym-motion: hero, proof strip, cards, process, stats, sectors ---------- */
html[data-theme="dark"] .ym-h1 em { color: #D4F36B; }
html[data-theme="dark"] .ym-proof-count { color: #A3A3A3; }
html[data-theme="dark"].ym-js .ym-step::before { background: #FFFFFF; }
html[data-theme="dark"].ym-js .ym-step:last-child::before { background: #D4F36B; }
html[data-theme="dark"].ym-js .ym-step.is-current:not(:last-child) .ym-chip { background-color: #FFFFFF; color: #0A0A0A; }
html[data-theme="dark"].ym-js .ym-section:not(:first-child) .ym-stat::before { background: #FFFFFF; }
@media (hover: hover) and (pointer: fine) {
	html[data-theme="dark"] .ym-case-card.is-in:hover { box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5); }
	html[data-theme="dark"] a.ym-inc-card:hover { background-color: #1F1F1F; }
	html[data-theme="dark"] a.ym-inc-card:has(.ym-inc-label:not(:empty)):hover { background-color: #262626; }
	html[data-theme="dark"] .ym-sector-row:hover .ym-sector-figure { color: #E0F790; }
}

/* ---------- Floating actions (youthmonk-core.php markup + ym-motion; Figma: dark call button, lime outline icon) ---------- */
html[data-theme="dark"] .ym-fab a { box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5); }
html[data-theme="dark"] .ym-fab-call { background: #0A0A0A; border-color: #FFFFFF; }
html[data-theme="dark"] .ym-fab-call path[fill="#0A0A0A"] { fill: #D4F36B; }
html[data-theme="dark"] .ym-fab-call path[fill="#D4F36B"] { fill: rgba(212, 243, 107, 0.2); }
html[data-theme="dark"] .ym-fab-wa { background: #1C1C1C; color: #FFFFFF; }

/* ---------- Thank-you dialog (ym-motion; markup in youthmonk-core.php) ---------- */
html[data-theme="dark"] .ym-thanks { border-color: #2A2A2A; background: #161616; color: #FFFFFF; box-shadow: 0 24px 64px rgba(0, 0, 0, 0.6); }
html[data-theme="dark"] .ym-thanks-text { color: #A3A3A3; }
@media (hover: hover) and (pointer: fine) {
	html[data-theme="dark"] dialog.ym-thanks .ym-thanks-done:hover { background-color: #E0F790; }
}

/* Mobile UX fixes (2026-11-28): dark versions. */
:where(html[data-theme="dark"]) .e-paragraph-base.ym-tabs a { box-shadow: inset 0 0 0 1px #2A2A2A; }
:where(html[data-theme="dark"]) .e-form-base ::placeholder { color: #A3A3A3; }
html[data-theme="dark"].ym-menu-open::after { background: rgba(0, 0, 0, 0.6); }
html[data-theme="dark"] .elementor-location-header .elementor-nav-menu--dropdown li.ym-menu-cta > a.elementor-item { color: #0A0A0A !important; background-color: #D4F36B !important; }
