/* Airmen common tokens. All selectors are frontend/login presentation only. */
html[data-airmen-theme="light"] { --amt-bg:#f4f7fc;--amt-panel:#ffffff;--amt-soft:#edf3fb;--amt-ink:#17243b;--amt-muted:#52647b;--amt-line:#d5dfed;--amt-accent:#245fe8;--amt-on-accent:#ffffff;--amt-success:#166534;--amt-success-bg:#dcfce7;--amt-error:#991b1b;--amt-error-bg:#fee2e2;--amt-notice:#854d0e;--amt-notice-bg:#fef3c7;color-scheme:light; }
html[data-airmen-theme="dark"] { --amt-bg:#091324;--amt-panel:#111f34;--amt-soft:#1c304c;--amt-ink:#eaf1ff;--amt-muted:#b2c2d8;--amt-line:#354966;--amt-accent:#8bb7ff;--amt-on-accent:#091324;--amt-success:#86efac;--amt-success-bg:#143b2b;--amt-error:#fca5a5;--amt-error-bg:#492027;--amt-notice:#fde68a;--amt-notice-bg:#3d321a;color-scheme:dark; }
html[data-airmen-theme] body:is(.airmen-theme-enabled,.login) {
 --bb-body-background-color:var(--amt-bg);--bb-content-background-color:var(--amt-panel);--bb-content-alternate-background-color:var(--amt-soft);--bb-content-border-color:var(--amt-line);--bb-body-text-color:var(--amt-ink);--bb-headings-color:var(--amt-ink);--bb-alternate-text-color:var(--amt-muted);
 --bb-header-background:var(--amt-panel);--bb-header-alternate-background:var(--amt-soft);--bb-header-links:var(--amt-ink);--bb-header-links-hover:var(--amt-accent);--bb-footer-background:var(--amt-panel);--bb-footer-text-color:var(--amt-muted);--bb-footer-menu-link-color-regular:var(--amt-ink);--bb-footer-menu-link-color-hover:var(--amt-accent);
 --bb-primary-color:var(--amt-accent);--bb-primary-button-background-regular:var(--amt-accent);--bb-primary-button-border-regular:var(--amt-accent);--bb-primary-button-text-regular:var(--amt-on-accent);--bb-primary-button-background-hover:var(--amt-accent);--bb-primary-button-border-hover:var(--amt-accent);--bb-primary-button-text-hover:var(--amt-on-accent);--bb-input-focus-border-color:var(--amt-accent);
 --bb-rl-background-color:var(--amt-bg);--bb-rl-background-secondary-color:var(--amt-panel);--bb-rl-background-tertiary-color:var(--amt-soft);--bb-rl-text-primary-color:var(--amt-ink);--bb-rl-text-secondary-color:var(--amt-muted);--bb-rl-icon-primary-color:var(--amt-ink);--bb-rl-icon-secondary-color:var(--amt-muted);--bb-rl-border-secondary-color:var(--amt-line);--bb-rl-border-tertiary-color:var(--amt-line);
 background-color:var(--amt-bg);color:var(--amt-ink);
}
/* Match the live iPilot outline icon control, with one common theme owner. */
.airmen-theme-toggle { display:inline-flex!important;align-items:center;justify-content:center;flex:0 0 42px;min-width:42px;width:42px;height:42px;min-height:42px;padding:0!important;margin:0 10px;border:1px solid #d6d9dd!important;border-radius:999px;background:#fff!important;color:#1e2132!important;cursor:pointer;box-shadow:none; }
.airmen-theme-toggle .airmen-theme-toggle__icon { font-size:24px;line-height:24px;color:inherit; }
html[data-airmen-theme="dark"] .airmen-theme-toggle { border-color:#3b4764!important;background:#111827!important;color:#f8fafc!important; }
.airmen-theme-toggle:hover,.airmen-theme-toggle:focus-visible { border-color:#385dff!important;color:#385dff!important; }
html[data-airmen-theme="dark"] .airmen-theme-toggle:hover,html[data-airmen-theme="dark"] .airmen-theme-toggle:focus-visible { background:#182033!important;border-color:#9fb0ff!important;color:#f8fafc!important; }
.airmen-theme-toggle:focus-visible { outline:3px solid var(--amt-accent)!important;outline-offset:3px; }
@media(max-width:799px) { .airmen-theme-toggle { flex-basis:44px;min-width:44px;width:44px;height:44px;min-height:44px; } .airmen-theme-toggle .airmen-theme-toggle__icon { font-size:21px;line-height:21px; } }
.airmen-theme-toggle--fallback { position:fixed;top:12px;right:12px;z-index:9999; }
.am-head-inner .airmen-theme-toggle { grid-column:1;grid-row:1;justify-self:start;margin-left:0; }
.am-head-inner .am-brand,.am-head-inner .am-lang { grid-row:1; }
html[data-airmen-theme] body.airmen-theme-enabled:not(.elementor-template-canvas) :is(#page,#content,.site-content) { background-color:var(--amt-bg)!important;color:var(--amt-ink); }
html[data-airmen-theme] body.airmen-theme-enabled :is(#masthead,.bb-mobile-header-wrapper,.bb-mobile-header,.buddypanel,.site-footer,.footer-bottom,.notification-dropdown,.header-search-wrap) { background:var(--amt-panel)!important;color:var(--amt-ink)!important;border-color:var(--amt-line)!important; }
html[data-airmen-theme] body.airmen-theme-enabled :is(.header-aside,.site-title,.site-title a,.site-header a,.buddypanel a,.footer-bottom,.site-footer a) { color:var(--amt-ink); }
/* Native course/quiz cards and Woo surfaces must follow the selected mode. */
html[data-airmen-theme] body.airmen-theme-enabled :is(.bb-course-preview-wrap,.bb-single-course-sidebar,.bb-course-status-wrap,.bb-course-banner-info,.bb-lms-header,.ld-item-list-item,.ld-table-list,.ld-tabs-content,.wpProQuiz_content,.wpProQuiz_results,.wpProQuiz_response,.woocommerce-tabs .panel,.woocommerce-cart-form,.cart_totals,.woocommerce-checkout-review-order,.woocommerce-checkout-payment,.woocommerce-MyAccount-content,.woocommerce-MyAccount-navigation,.woocommerce form.login,.woocommerce form.register,.woocommerce form.checkout_coupon) { background-color:var(--amt-panel)!important;color:var(--amt-ink)!important;border-color:var(--amt-line)!important; }
html[data-airmen-theme] body.airmen-theme-enabled :is(.entry-title,.woocommerce .product_title,.woocommerce h2,.woocommerce h3,.woocommerce label,.woocommerce .price,.woocommerce .amount,.woocommerce .product-name,.woocommerce .product-name a,.woocommerce th,.woocommerce td,.ld-item-name,.ld-item-title,.ld-text,.bb-course-title,.bb-course-category,.bb-course-excerpt,.learndash-wrapper h2,.learndash-wrapper h3,.wpProQuiz_question_text,.wpProQuiz_questionListItem,.wpProQuiz_results p,.wpProQuiz_response p) { color:var(--amt-ink)!important; }
html[data-airmen-theme] body.airmen-theme-enabled :is(.woocommerce table.shop_table,.woocommerce table.shop_table th,.woocommerce table.shop_table td,.woocommerce table.shop_table tfoot,.woocommerce .quantity .qty,.learndash-wrapper .ld-item-list-item,.ld-table-list-item) { border-color:var(--amt-line)!important; }
html[data-airmen-theme] body.airmen-theme-enabled .woocommerce :is(input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="button"]),select,textarea,.select2-selection,.select2-dropdown) { background:var(--amt-panel)!important;color:var(--amt-ink)!important;border-color:var(--amt-line)!important; }
html[data-airmen-theme] body.airmen-theme-enabled .woocommerce :is(.select2-selection__rendered,.variation dt,.variation dd,.woocommerce-Price-currencySymbol) { color:var(--amt-ink)!important; }
html[data-airmen-theme] body.airmen-theme-enabled .woocommerce :is(.button,button.button,input.button) { background:var(--amt-accent)!important;color:var(--amt-on-accent)!important;border-color:var(--amt-accent)!important; }
html[data-airmen-theme] body.airmen-theme-enabled .woocommerce .button:disabled { opacity:.65; }
html[data-airmen-theme] body.airmen-theme-enabled :is(.woocommerce-info,.woocommerce-message,.ld-alert-warning) { background:var(--amt-soft)!important;color:var(--amt-ink)!important;border-color:var(--amt-accent)!important; }
html[data-airmen-theme] body.airmen-theme-enabled :is(.woocommerce-error,.wpProQuiz_incorrect) { background:var(--amt-error-bg)!important;color:var(--amt-error)!important;border-color:var(--amt-error)!important; }
html[data-airmen-theme] body.airmen-theme-enabled .wpProQuiz_correct { background:var(--amt-success-bg)!important;color:var(--amt-success)!important; }
html[data-airmen-theme] body.airmen-theme-enabled :is(.woocommerce-info,.woocommerce-message,.woocommerce-error) a { color:inherit!important;text-decoration:underline; }
html[data-airmen-theme] body.airmen-theme-enabled .woocommerce .payment_box { background:var(--amt-soft)!important;color:var(--amt-ink)!important; }
html[data-airmen-theme] body.airmen-theme-enabled .woocommerce .payment_box::before { border-bottom-color:var(--amt-soft)!important; }
html[data-airmen-theme] body.login :is(#loginform,#registerform,#lostpasswordform,.message,.notice) { background:var(--amt-panel);color:var(--amt-ink);border-color:var(--amt-line); }
html[data-airmen-theme] body.login :is(label,#nav a,#backtoblog a,.privacy-policy-link) { color:var(--amt-ink)!important; }
html[data-airmen-theme] body.login :is(input[type="text"],input[type="password"],input[type="email"]) { background:var(--amt-soft)!important;color:var(--amt-ink)!important;border-color:var(--amt-line)!important; }
html[data-airmen-theme] body.login .button-primary { background:var(--amt-accent);border-color:var(--amt-accent);color:var(--amt-on-accent); }
@media(max-width:799px) { .bb-mobile-header .header-aside { display:flex;align-items:center;gap:4px; } .bb-mobile-header .airmen-theme-toggle { margin-left:4px; } .am-brand small { display:none; } }
@media(prefers-reduced-motion:reduce) { .airmen-theme-toggle { transition:none; } }
/* Keep the new control and language control visible beside the landing brand. */
@media(max-width:600px) {
 .am-head-inner { grid-template-columns:44px minmax(0,1fr) auto!important;gap:8px; }
 .am-head-inner .am-brand { width:100%!important;min-width:0;justify-content:center; }
 .am-head-inner .am-lang { margin-left:0;min-height:44px; }
}

/* BuddyBoss login overrides use hard-coded colors and a negative form margin. */
html[data-airmen-theme] body.login :is(#login h2,#login h3,#login a,.language-switcher label) { color:var(--amt-ink)!important; }
html[data-airmen-theme] body.login #language-switcher { margin-left:0;margin-right:0;max-width:100%;box-sizing:border-box; }
html[data-airmen-theme] body.login #language-switcher .button { background:var(--amt-panel);color:var(--amt-ink);border-color:var(--amt-line); }
