/* ER Homepage base: the only rules outside .erx. Page-template body only. */
body.erx-page.erx-chrome--plugin { margin: 0; padding: 0; }
.erx .erx-sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
/* With the theme's chrome, keep the page full-bleed inside Hello's content wrapper. */
.erx.erx--in-theme { width: 100%; max-width: none; }
/* Elementor kits colour bare headings (.elementor-kit-N h2, 0,1,1); the designs rely on inheritance (white on .dusk/.on-dark). */
body .erx :is(h1, h2, h3, h4, h5, h6) { color: inherit; }

/* ---- Site menu in the design header (erx_menu_links 'desktop' / 'mobile') ----
   Designs theme it with --erx-dd-bg, --erx-dd-fg, --erx-dd-muted, --erx-dd-hover-bg, --erx-dd-hover-fg, --erx-dd-line, --erx-dd-font. */
.erx .nav-dd { position: relative; display: flex; align-items: center; }
.erx .nav .nav-a { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; white-space: nowrap; }
.erx .nav-chev { width: 12px; height: 12px; flex: none; transition: transform .2s ease; }
.erx .nav-dd:hover > .nav-a .nav-chev, .erx .nav-dd:focus-within > .nav-a .nav-chev { transform: rotate(180deg); }
.erx .nav-panel { position: absolute; top: 100%; left: -16px; z-index: 60; padding-top: 14px; opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .18s ease, transform .18s ease, visibility 0s linear .18s; }
.erx .nav-dd:hover > .nav-panel, .erx .nav-dd:focus-within > .nav-panel { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.erx .nav-dd--end .nav-panel { left: auto; right: -16px; }
.erx .nav-list, .erx .nav-sub { list-style: none; margin: 0; padding: 8px; min-width: 248px; background: var(--erx-dd-bg, #fff); border: 1px solid var(--erx-dd-line, rgba(10, 18, 38, .08)); border-radius: 12px; box-shadow: 0 22px 48px -16px rgba(4, 10, 30, .45); }
.erx .nav-list { position: relative; }
/* Flyouts anchor to their parent panel (li stays static), so every level opens level with the panel top and never scrolls. */
.erx .nav-list li { position: static; margin: 0; }
.erx .nav-cols { display: grid; grid-auto-flow: column; grid-template-rows: repeat(var(--rows), auto); column-gap: 4px; }
.erx .nav-sub { position: absolute; top: -1px; left: 100%; z-index: 61; min-height: calc(100% + 2px); opacity: 0; visibility: hidden; transition: opacity .1s ease, visibility 0s linear .1s; }
.erx .nav-dd--end .nav-sub, .erx .nav-sub.is-flip { left: auto; right: 100%; }
/* Which flyout is open is decided by assets/nav.js (.is-open, with "menu aim" so diagonal moves don't swap flyouts);
   plain :hover is the no-JS fallback. */
.erx:not(.erx-navjs) .nav-list li:hover > .nav-sub, .erx .nav-list li.is-open > .nav-sub { opacity: 1; visibility: visible; z-index: 62; transition: opacity .12s ease, visibility 0s; }
.erx .nav-list li:focus-within > .nav-sub { opacity: 1; visibility: visible; transition: none; }
body .erx .nav .nav-panel a, body .erx .nav .nav-panel .nav-label { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 9px 14px; border-radius: 8px; color: var(--erx-dd-fg, #121b3a); font: 500 15px/1.3 var(--erx-dd-font, inherit); letter-spacing: 0; text-transform: none; text-decoration: none; white-space: nowrap; opacity: 1; cursor: pointer; }
body .erx .nav .nav-panel a::after { display: none; }
body .erx .nav .nav-panel .has-sub > a::after, body .erx .nav .nav-panel .has-sub > .nav-label::after { content: ""; display: block; position: static; width: 6px; height: 6px; background: none; border-right: 1.5px solid currentColor; border-top: 1.5px solid currentColor; transform: rotate(45deg); opacity: .6; }
body .erx .nav-dd--end .nav-panel .has-sub > a::after, body .erx .nav-dd--end .nav-panel .has-sub > .nav-label::after { transform: rotate(-135deg); order: -1; }
body .erx .nav .nav-panel a:hover, body .erx .nav .nav-panel a:focus-visible, body .erx .nav .nav-panel li:hover > .nav-label, body .erx .nav .nav-panel li:focus-within > .nav-label, body .erx .nav .nav-panel li.is-open > a, body .erx .nav .nav-panel li.is-open > .nav-label, body .erx:not(.erx-navjs) .nav .nav-panel li.has-sub:hover > a { background: var(--erx-dd-hover-bg, rgba(8, 33, 90, .06)); color: var(--erx-dd-hover-fg, inherit); }

/* Mobile accordions */
.erx .mnav-grp > summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.erx .mnav-grp > summary::-webkit-details-marker { display: none; }
.erx .mnav-grp > summary::after { content: ""; flex: none; width: 9px; height: 9px; margin: 0 6px 5px 0; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg); transition: transform .2s ease; opacity: .7; }
.erx .mnav-grp[open] > summary::after { transform: rotate(-135deg); margin-bottom: -4px; }
.erx .mnav-sub { padding: 4px 0 12px 16px; }
@media (prefers-reduced-motion: reduce) { .erx .nav-panel, .erx .nav-sub, .erx .nav-chev { transition: none; } }
body .erx .nav-dd--end .nav-panel .has-sub > a, body .erx .nav-dd--end .nav-panel .has-sub > .nav-label { justify-content: flex-start; }

/* Mobile menus: scrolling inside the panel never scrolls the page behind it. */
.erx .mnav, .erx .drawer { overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
.erx .nav-sub .nav-sub { min-height: 0; }
