/*
 * First-wave child themes: the few rules the Nexus layer needs under a vendor parent. Tokens only (nexus-tokens.css).
 *
 * Rules for this file and the skins (checked by scripts/build-vendor-child.mjs and
 * tests/unit/integrations/wordpress/nexus-theme-vendor-children.test.ts):
 * - nothing targets the parent's header, top bar, footer, menus or popups: the theme draws them as it always has
 *   (owner direction 2026-10-27);
 * - nothing targets the Readabler controls (.mdp-readabler-*), and no rule sets filter, transform, zoom, font-size or
 *   overflow on html, body or the page wrappers, so Readabler's contrast filters, font sizing and content scaling keep
 *   working, and so does the estate header's own Readabler bridge and placement;
 * - sizes in rem where text is concerned, so the reader's font sizing applies.
 */

/* The site switch, when it shows at all (no estate navigation on the page): bottom left, clear of the Readabler
   button and the parent's back-to-top control at the bottom right. */
.nx-switch--floating{inset-inline-end:auto;inset-inline-start:16px}

/* The estate navigation and footer are custom elements: block boxes in the page flow. */
nexus-header[data-nxh],nexus-footer[data-nxf]{display:block}

/* Skip target printed at the top of the page content (inc/nexus-theme-mode.php). */
.nx-skip-target{display:block;inline-size:0;block-size:0;overflow:hidden}
.nx-skip-target:focus{outline:0}
/* Elementor content in Dark (the kit canvas, or the parent's own dark mode such as Ohio's): Elementor's global colours
   (the site's kit, set for a light page) follow the tokens, so text, headings and icon lists stay readable. Light keeps
   the site's own Elementor colours. */
:root[data-theme="dark"] body[class*="elementor-kit-"]{--e-global-color-primary:var(--nx-text-primary);--e-global-color-secondary:var(--nx-text-secondary);--e-global-color-text:var(--nx-text-secondary);--e-global-color-accent:var(--nx-primary-bg)}
:root[data-theme="dark"] body[class*="elementor-kit-"] .elementor-button{color:var(--nx-primary-ink)}
