/*
 * Force the root font-size to the browser default (16px) on AeroIDX-rendered
 * pages only. The `components.js` widget bundle sizes its internals in `rem`,
 * so a theme that has changed the root font-size will misrender the widget.
 *
 * Selector escalation: started as plain `html` (lost to themes using `:root`),
 * then `html, :root !important` (lost to Bricks injecting inline CSS in <head>
 * AFTER our stylesheet — same specificity, later cascade wins). Settled on
 * `html[lang]` because:
 *   - specificity 0,0,1,1 beats `:root !important` (0,0,1,0) regardless of
 *     cascade order, so we win even if Bricks injects later in <head>;
 *   - WordPress sets the `lang` attribute on every <html> via `language_attributes()`
 *     in the theme's get_header(), so the selector always matches.
 *
 * This file is only enqueued on AeroIDX pages (see Widgets\WidgetLoader), so
 * the blast radius is scoped — the rest of the site is untouched.
 */
html[lang] {
    font-size: 16px !important;
}

/*
 * Full-width IDX pages: clear a fixed/sticky theme header. The offset value is
 * measured at runtime by assets/js/page-layout.js and published as
 * --aeroidx-header-offset on <body>. Defaults to 0 so this is inert when the
 * script is absent (e.g. /details/). Admins can override padding-top via the
 * Theme Integration Custom CSS box, which loads after this stylesheet.
 */
body.aeroidx-page {
    padding-top: var(--aeroidx-header-offset, 0px);
}
