/* abcm palette × AUTOOL Brand Header & Footer 1.7.6 (palette tech, SpaceX menu) — two dark colours.
 * Before: mega panel and open-menu bar #0E1116, glass rgba(14,17,22,.78 / .88), SpaceX drawer and search #000,
 * footer #05070A. After: header surfaces d1 (glass from d1), footer d2. The transparent bar over a photo
 * hero (gradient) is an overlay and stays: its rule (0,5,0) outranks the bar rules here (0,4,1). */
html[data-abcm="dark"] .abbhf-pal-tech { --abbhf-ink: var(--abcm-d1); --abbhf-footer-bg: var(--abcm-d2); }
html[data-abcm="dark"] .abbhf-pal-tech.abbhf-hd--dark { --abbhf-glass: color-mix(in srgb, var(--abcm-d1) 84%, transparent); }
@media (max-width: 767.98px) {
	html[data-abcm="dark"] .abbhf-pal-tech.abbhf-hd--m-bmw .abbhf-header { background: color-mix(in srgb, var(--abcm-d1) 88%, transparent); }
}
@media (min-width: 768px) and (max-width: 1279.98px) {
	html[data-abcm="dark"] .abbhf-pal-tech.abbhf-hd--t-bmw .abbhf-header { background: color-mix(in srgb, var(--abcm-d1) 88%, transparent); }
}
html[data-abcm="dark"] .abbhf-hd.is-mega .abbhf-header { background: var(--abcm-d1); }
html[data-abcm="dark"] :is(#abbhf-drawer-airbus, #abbhf-drawer-bmw).abbhf-drawer--spacex { background: var(--abcm-d1); }
html[data-abcm="dark"] :is(#abbhf-drawer-airbus, #abbhf-drawer-bmw).abbhf-drawer--spacex .abbhf-drawer__part--search { background: var(--abcm-d1); box-shadow: 0 -12px 24px var(--abcm-d1); }
html[data-abcm="dark"] .abbhf-search.abbhf-search--dark { background: var(--abcm-d1); }

/* Footer vs the block above it: the footer is the alternate colour, unless the page ends on an alternate
 * block (home Join us; catalog inquiry band, product rail; pages CTA / contact / policies / software …),
 * then it takes the main colour. :has() decides before first paint. Light: same rule with L1 (footer
 * follows the page); with "Footer stays dark" the light page above already differs. */
html[data-abcm="dark"] body:has(:is(.abh > section.abh-m.abh-t-ink:last-of-type, .abp.abp-pal-home > section.abp-m:is(.abp-t-ink, .abp-t-paper, .abp-t-brand):last-of-type, .abcat > section.abcat-m:is(.abcat-t-ink, .abcat-t-paper, .abcat-t-brand):last-of-type)) .abbhf-footer.abbhf-pal-tech { --abbhf-footer-bg: var(--abcm-d1); }
html[data-abcm="light"]:not([data-abcm-footer="dark"]) body:has(:is(.abh > section.abh-m.abh-t-ink:last-of-type, .abp.abp-pal-home > section.abp-m:is(.abp-t-ink, .abp-t-paper, .abp-t-brand):last-of-type, .abcat > section.abcat-m:is(.abcat-t-ink, .abcat-t-paper, .abcat-t-brand):last-of-type)) .abbhf-footer.abbhf-pal-tech { --abbhf-footer-bg: var(--abcm-l1); }
