/* Active only after the Header 12/12246/15704 DOM guard succeeds. Native menus remain fallback. */
#header.orted12-enhanced [data-id="bc0f89b"] .module-primary-nav,
#header.orted12-enhanced .lqd-mobile-sec-nav,
#header.orted12-enhanced .lqd-mobile-sec-inner > .navbar-toggle { display: none !important; }
.orted12-navigation, .orted12-popover, .orted12-mobile-dialog, .orted12-mobile-trigger {
  --o12-primary: var(--e-global-color-primary, #00adac);
  --o12-heading: var(--e-global-color-secondary, #4c4c4c);
  --o12-text: var(--e-global-color-text, #646464);
  --o12-rule: #e7e7e7;
  font-family: Montserrat, sans-serif; font-size: 14px; font-weight: 400; line-height: 1.45;
  color: var(--o12-heading); text-align: left; letter-spacing: 0; text-shadow: none;
}
:is(.orted12-navigation, .orted12-popover, .orted12-mobile-dialog, .orted12-mobile-trigger) *,
:is(.orted12-navigation, .orted12-popover, .orted12-mobile-dialog, .orted12-mobile-trigger) *::before,
:is(.orted12-navigation, .orted12-popover, .orted12-mobile-dialog, .orted12-mobile-trigger) *::after { box-sizing: border-box; }
:is(.orted12-navigation, .orted12-popover, .orted12-mobile-dialog) ul { list-style: none; margin: 0; padding: 0; }
:is(.orted12-navigation, .orted12-popover, .orted12-mobile-dialog) a { color: inherit; text-decoration: none; text-transform: none; }
:is(.orted12-navigation, .orted12-popover, .orted12-mobile-dialog) a[aria-disabled="true"] { cursor: default; }
:is(.orted12-navigation, .orted12-popover, .orted12-mobile-dialog) button,
button.orted12-mobile-trigger {
  appearance: none; background: transparent; color: inherit; border: 0; border-radius: 4px;
  box-shadow: none; text-shadow: none; font: inherit; letter-spacing: 0; text-transform: none;
  margin: 0; cursor: pointer;
}
:is(.orted12-navigation, .orted12-popover, .orted12-mobile-dialog, .orted12-mobile-trigger) :is(a, button):focus-visible,
button.orted12-mobile-trigger:focus-visible { outline: 2px solid var(--o12-primary); outline-offset: -2px; }
.orted12-top-list { display: flex; align-items: center; gap: 10px; }
.orted12-top-list > li { display: flex; align-items: center; }
.orted12-top-list > li > a { padding: 18px 0; white-space: nowrap; font-weight: 700; font-size: 14px; }
.orted12-top-list > li > a:hover, .orted12-top-toggle[aria-expanded="true"] { color: var(--o12-primary); }
.orted12-navigation .orted12-top-toggle { display: flex; width: 28px; height: 44px; align-items: center; justify-content: center; padding: 0; }
.main-header-overlay:not(.is-stuck) .orted12-navigation { color: #fff; }
.orted12-chevron { display: inline-block; width: 7px; height: 7px; flex-shrink: 0; border: solid currentColor; border-width: 0 1.5px 1.5px 0; transform: rotate(-45deg); }
.orted12-chevron-down { transform: rotate(45deg); margin-top: -3px; }
.orted12-chevron-left { transform: rotate(135deg); }
.orted12-top-toggle[aria-expanded="true"] .orted12-chevron { transform: rotate(225deg); margin-top: 3px; }
.orted12-popover {
  box-sizing: border-box; position: fixed; z-index: 1000100; background: #fff; border: 1px solid var(--o12-rule); border-radius: 4px;
  box-shadow: 0 12px 32px rgb(0 0 0 / .12); overflow: hidden;
}
.orted12-popover[hidden], .orted12-mobile-dialog:not([open]) { display: none !important; }
.orted12-panel-head { display: flex; align-items: center; gap: 20px; min-height: 60px; padding: 8px 20px; border-bottom: 1px solid var(--o12-rule); }
.orted12-panel-title { margin: 0; font: 700 18px/1.25 Montserrat, sans-serif; color: var(--o12-heading); }
.orted12-root-link { margin-left: auto; }
:is(.orted12-popover, .orted12-mobile-dialog) .orted12-all-link { display: inline-block; padding: 8px 0; color: var(--o12-primary); font-weight: 600; }
:is(.orted12-popover, .orted12-mobile-dialog) .orted12-all-link::after { content: ' →'; }
.orted12-panel-body { display: grid; grid-template-columns: minmax(0, 1fr); height: var(--orted12-body-height); min-height: 0; }
.orted12-has-categories .orted12-panel-body { grid-template-columns: 240px minmax(0, 1fr); }
.orted12-popover .orted12-category-rail { position: relative; padding: 12px; border-right: 1px solid var(--o12-rule); overflow-y: scroll; overscroll-behavior: contain; scrollbar-gutter: stable; }
.orted12-category-rail[hidden] { display: none; }
.orted12-category-rail li { margin: 0; }
.orted12-category-rail > li > :is(a, button) { display: flex; align-items: center; justify-content: space-between; gap: 8px; width: 100%; padding: 11px 12px; font-size: 14px; line-height: 1.3; font-weight: 600; text-align: left; }
.orted12-category-button:hover, .orted12-category-rail a:hover { background: #f9f9f9; }
.orted12-category-button[aria-pressed="true"] { color: var(--o12-primary); background: #f9f9f9; box-shadow: inset 3px 0 var(--o12-primary); }
.orted12-pane { overflow: auto; min-height: 0; overscroll-behavior: contain; scrollbar-gutter: stable; }
.orted12-pane-inner { padding: 24px; }
.orted12-category-title { font: 700 24px/1.2 Montserrat, sans-serif; margin: 0 0 6px; color: var(--o12-heading); }
.orted12-pane-inner > .orted12-all-link { margin-bottom: 16px; }
.orted12-nested > li { margin: 0; }
.orted12-nested a { display: block; padding: 6px 0; font-size: 14px; line-height: 1.4; overflow-wrap: anywhere; }
.orted12-nested a:not([aria-disabled]):hover { color: var(--o12-primary); }
.orted12-nested > .orted12-group > a { font-weight: 600; }
.orted12-nested .orted12-nested { padding-left: 12px; }
.orted12-options-dense { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: start; gap: 24px; }
.orted12-options-dense > .orted12-group > a { font-size: 15px; font-weight: 700; padding-top: 0; padding-bottom: 10px; }
.orted12-options-short { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.orted12-options-short > li > a { padding: 18px 16px; border: 1px solid var(--o12-rule); border-radius: 4px; background: #f9f9f9; font-size: 16px; min-height: 64px; display: flex; align-items: center; }
.orted12-options-short > li > .orted12-nested { padding: 8px 16px; }
.orted12-pane:has(> .orted12-pane-inner > .orted12-options-short:only-child) .orted12-options-short { grid-template-columns: 1fr; }
.orted12-icon-button { width: 44px; height: 44px; padding: 0; flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; }
.orted12-close-icon { width: 20px; height: 20px; position: relative; }
.orted12-close-icon::before, .orted12-close-icon::after { content: ''; position: absolute; width: 22px; height: 1.5px; background: currentColor; top: 9px; left: 0; transform: rotate(45deg); }
.orted12-close-icon::after { transform: rotate(-45deg); }
button.orted12-mobile-trigger { display: none; padding: 0; width: 44px; height: 44px; align-items: center; justify-content: center; }
.orted12-hamburger { display: block; width: 24px; height: 16px; border: solid currentColor; border-width: 2px 0; position: relative; }
.orted12-hamburger::after { content: ''; position: absolute; left: 0; right: 0; top: 5px; border-top: 2px solid currentColor; }
.orted12-mobile-dialog {
  position: fixed; inset: 0; margin: 0; padding: 0; width: 100%; max-width: none; height: 100vh; height: 100dvh;
  max-height: none; border: 0; background: #fff; overflow: hidden; z-index: 2147483000;
}
.orted12-mobile-dialog[open] { display: grid; grid-template-rows: auto auto minmax(0, 1fr); }
.orted12-mobile-dialog::backdrop { background: #fff; }
.orted12-mobile-head { display: flex; align-items: center; justify-content: space-between; padding: calc(12px + env(safe-area-inset-top, 0px)) 20px 12px; border-bottom: 1px solid var(--o12-rule); }
.orted12-brand { font: 700 24px/1 Montserrat, sans-serif; color: var(--o12-heading); letter-spacing: 1px; }
.orted12-mobile-view-head { position: relative; padding: 18px 20px 20px 42px; background: #f9f9f9; border-bottom: 1px solid var(--o12-rule); }
.orted12-mobile-view-head::before { content: ""; position: absolute; left: 20px; top: 22px; bottom: 22px; width: 3px; background: var(--o12-primary); }
.orted12-mobile-dialog .orted12-back-button { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; padding: 0 8px 0 2px; font-size: 14px; font-weight: 600; }
.orted12-back-button[hidden] { display: none; }
.orted12-breadcrumb { margin: 4px 0 8px; color: var(--o12-text); font-size: 13px; line-height: 1.4; }
.orted12-breadcrumb[hidden] { display: none; }
.orted12-mobile-title { font: 700 30px/1.15 Montserrat, sans-serif; color: var(--o12-heading); margin: 4px 0 8px; letter-spacing: -.3px; }
.orted12-mobile-title:focus { outline: none; }
.orted12-mobile-all:empty { display: none; }
.orted12-mobile-body { padding: 0 20px calc(24px + env(safe-area-inset-bottom, 0px)); overflow-y: auto; overscroll-behavior: contain; scrollbar-gutter: stable; }
.orted12-mobile-list { width: 100%; max-width: 760px; margin-inline: auto !important; }
.orted12-mobile-list > li { margin: 0; border-bottom: 1px solid var(--o12-rule); }
.orted12-mobile-list > li > :is(a, button) { display: flex; width: 100%; align-items: center; justify-content: space-between; gap: 20px; padding: 18px 0; min-height: 62px; font-size: 17px; line-height: 1.4; text-align: left; overflow-wrap: anywhere; }
.orted12-mobile-list > li > :is(a, button):hover { color: var(--o12-primary); }
html.orted12-scroll-lock { overflow: hidden !important; }
.orted12-scroll-lock body { overflow: hidden !important; }
@media (max-width: 1199px) {
  .orted12-navigation, .orted12-popover { display: none !important; }
  #header.orted12-enhanced .orted12-mobile-trigger { display: inline-flex; width: 44px; flex: 0 0 44px; align-self: center; order: 10; margin-left: auto; color: #4c4c4c; }
  #header.orted12-enhanced > :is([data-elementor-id="12"], [data-elementor-id="12246"], [data-elementor-id="15704"]) { display: none !important; }
  #header.orted12-enhanced > .lqd-mobile-sec { display: block !important; }
}
@media (min-width: 768px) {
  .orted12-mobile-view-head { width: 100%; padding-inline: max(42px, calc((100% - 736px) / 2)); }
  .orted12-mobile-view-head::before { left: max(20px, calc((100% - 780px) / 2)); }
}
@media (prefers-reduced-motion: no-preference) {
  .orted12-mobile-list { animation: orted12-view-in .16s ease-out; }
  @keyframes orted12-view-in { from { opacity: .65; transform: translateY(6px); } to { opacity: 1; transform: none; } }
}

/* Keep the compact category rail discoverable on systems with overlay scrollbars. */
.orted12-category-rail::-webkit-scrollbar { width: 6px; }
.orted12-category-rail::-webkit-scrollbar-thumb { background: #d1d1d1; border-radius: 4px; }

@media (min-width: 1200px) {
  #header.orted12-enhanced > .lqd-mobile-sec { display: none !important; }
}

/* Smaller roots use a dropdown list instead of the megamenu's header and tiles. */
.orted12-simple { border-top: 2px solid var(--o12-primary); box-shadow: 0 8px 24px rgb(0 0 0 / .1); }
.orted12-simple .orted12-panel-head { display: none; }
.orted12-simple .orted12-pane { height: 100%; scrollbar-gutter: auto; }
.orted12-simple .orted12-pane-inner { padding: 8px 0; }
.orted12-simple .orted12-options-short { display: block; }
.orted12-simple .orted12-options-short > li > a { min-height: 44px; padding: 12px 18px; border: 0; border-radius: 0; background: transparent; font-size: 14px; line-height: 1.4; }
.orted12-simple .orted12-options-short > li > a:hover { background: #f9f9f9; }
.orted12-simple-footer { padding: 8px 18px; border-top: 1px solid var(--o12-rule); }
.orted12-simple-footer[hidden] { display: none; }
.orted12-simple-footer .orted12-root-link { margin: 0; }
.orted12-simple-footer .orted12-all-link { font-size: 13px; line-height: 1.5; overflow-wrap: anywhere; }
.orted12-category-title:focus-visible { outline: 2px solid var(--o12-primary); outline-offset: 4px; }
@media (max-height: 500px) {
  .orted12-mobile-view-head { padding-block: 8px; }
  .orted12-mobile-view-head::before { top: 12px; bottom: 12px; }
  .orted12-mobile-title { font-size: 26px; }
  .orted12-mobile-dialog .orted12-back-button { min-height: 36px; }
}

/* Small nested roots (e.g. Órtesis) keep their hierarchy without a full rail. */
.orted12-grouped .orted12-options-short > .orted12-group { padding-bottom: 8px; border-bottom: 1px solid var(--o12-rule); }
.orted12-grouped .orted12-options-short > .orted12-group > a { font-weight: 700; }
.orted12-grouped .orted12-options-short > .orted12-group > .orted12-nested { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; padding: 0 18px; }
.orted12-grouped .orted12-group > .orted12-nested > li > a { display: flex; align-items: center; min-height: 44px; padding-block: 10px; }

/* Explicit overflow affordances remain readable when mobile OS scrollbars fade. */
.orted12-scroll-area { display: grid; grid-template-rows: minmax(0, 1fr) auto; min-height: 0; min-width: 0; height: 100%; overflow: hidden; }
.orted12-scroll-cue { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 32px; padding: 6px 16px; border-top: 1px solid var(--o12-rule); background: #fff; color: var(--o12-text); font-size: 12px; line-height: 1.5; }
.orted12-scroll-cue .orted12-chevron { color: var(--o12-primary); }
.orted12-scroll-cue[hidden] { display: none; }
.orted12-pane, .orted12-mobile-body { scrollbar-width: thin; scrollbar-color: #b8b8b8 #f9f9f9; }
:is(.orted12-pane, .orted12-mobile-body)::-webkit-scrollbar { width: 6px; }
:is(.orted12-pane, .orted12-mobile-body)::-webkit-scrollbar-track { background: #f9f9f9; }
:is(.orted12-pane, .orted12-mobile-body)::-webkit-scrollbar-thumb { background: #b8b8b8; border-radius: 4px; }

/* Elementor's global button hover must not turn the menu arrow into a CTA. */
#header.orted12-enhanced .orted12-navigation .orted12-top-list > li > button.orted12-top-toggle {
  background: transparent; border: 0; border-radius: 0; box-shadow: none; color: inherit;
}
#header.orted12-enhanced .orted12-top-list > li:is(:hover, :focus-within, :has(> .orted12-top-toggle[aria-expanded="true"])) {
  color: var(--o12-primary);
}

/* Portal menus live outside #header, so isolate their controls independently. */
:is(#orted12-desktop-panel, #orted12-mobile-dialog) button {
  background: transparent; color: inherit; box-shadow: none;
}
#orted12-desktop-panel button.orted12-category-button:is(:hover, :focus-visible),
#orted12-desktop-panel button.orted12-category-button[aria-pressed="true"] {
  background: #f9f9f9; color: var(--o12-primary);
}
#orted12-desktop-panel button.orted12-category-button[aria-pressed="true"] {
  box-shadow: inset 3px 0 var(--o12-primary);
}
#orted12-mobile-dialog .orted12-mobile-list button:is(:hover, :focus-visible),
#orted12-mobile-dialog .orted12-back-button:is(:hover, :focus-visible),
#orted12-mobile-dialog .orted12-icon-button:is(:hover, :focus-visible),
#orted12-desktop-panel .orted12-icon-button:is(:hover, :focus-visible) { color: var(--o12-primary); }
#header.orted12-enhanced button.orted12-mobile-trigger { background: transparent; color: var(--o12-heading); box-shadow: none; }
#header.orted12-enhanced button.orted12-mobile-trigger:is(:hover, :focus-visible) { color: var(--o12-primary); }

/* Hub stretches the menu widget to the logo row; center the list within it. */
#header.orted12-enhanced .orted12-navigation { display: flex; align-items: center; }

/* Reuse the colored logo from the existing WordPress mobile header. */
.orted12-mobile-dialog .orted12-brand { display: inline-flex; align-items: center; }
.orted12-mobile-dialog .orted12-brand-image { display: block; width: auto; height: 44px; max-width: 160px; object-fit: contain; opacity: 1; filter: none; border: 0; box-shadow: none; }

/* Opening the dialog preserves the closed WordPress header's actual geometry. */
.orted12-mobile-head[data-match-native="true"] { position: relative; height: var(--o12-native-header-height); min-height: 0; padding: 0; box-sizing: border-box; }
.orted12-mobile-head[data-match-native="true"] .orted12-brand { position: absolute; left: var(--o12-native-logo-left, 20px); top: var(--o12-native-logo-top, 12px); width: var(--o12-native-logo-width, auto); height: var(--o12-native-logo-height, 44px); }
.orted12-mobile-dialog .orted12-mobile-head[data-match-native="true"] .orted12-brand-image { width: 100%; height: 100%; max-width: none; max-height: none; object-fit: contain; }
.orted12-mobile-head[data-match-native="true"] > .orted12-icon-button { position: absolute; left: var(--o12-native-close-left, auto); top: var(--o12-native-close-top, 12px); right: 20px; }

/* Compact root-screen contact details; never part of the menu hierarchy. */
.orted12-mobile-content { width: 100%; max-width: 760px; margin-inline: auto; }
.orted12-mobile-contacts { margin-top: 20px; }
.orted12-mobile-contacts[hidden] { display: none; }
.orted12-contact-block { min-width: 0; padding-block: 0 16px; border-bottom: 1px solid var(--o12-rule); }
#orted12-mobile-dialog .orted12-contact-block h3 { margin: 0 0 10px; color: var(--o12-primary); font: 700 16px/1.3 Montserrat, sans-serif; letter-spacing: 0; text-transform: none; }
#orted12-mobile-dialog .orted12-contact-block h4 { margin: 10px 0 3px; color: var(--o12-heading); font: 600 13px/1.45 Montserrat, sans-serif; letter-spacing: 0; text-transform: none; }
#orted12-mobile-dialog .orted12-contact-block :is(p, a) { margin: 0; font: 400 13px/1.5 Montserrat, sans-serif; color: var(--o12-text); overflow-wrap: anywhere; }
#orted12-mobile-dialog .orted12-contact-block a { display: flex; align-items: center; min-height: 44px; text-decoration: underline; text-decoration-color: var(--o12-rule); text-underline-offset: 3px; }
#orted12-mobile-dialog .orted12-contact-block a:is(:hover, :focus-visible) { color: var(--o12-primary); text-decoration-color: currentColor; }
@media (min-width: 1200px) {
  .orted12-navigation .orted12-top-list > li > a { text-transform: uppercase; }
  .orted12-navigation .orted12-top-list > li { padding-inline: 4px; }
}

.orted12-mobile-footer[hidden] { display: none; }
.orted12-mobile-legal { display: none; }

/* Compact contact and social links share a row throughout fullscreen navigation. */
.orted12-social-links { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; width: 100%; max-width: 144px; }
#orted12-mobile-dialog .orted12-social-links a { justify-content: center; min-width: 0; height: 44px; border: 1px solid var(--o12-rule); border-radius: 4px; color: var(--o12-heading); background: #f9f9f9; text-decoration: none; }
#orted12-mobile-dialog .orted12-social-links a:is(:hover, :focus-visible) { color: var(--o12-primary); border-color: currentColor; }
.orted12-social-links svg { display: block; width: 18px; height: 18px; fill: currentColor; }
@media (max-width: 1199px) {
  .orted12-mobile-content { display: flex; flex-direction: column; min-height: 100%; }
  .orted12-mobile-content > .orted12-mobile-list { flex: 0 0 auto; }
  .orted12-mobile-content[data-root="true"] > .orted12-mobile-list { margin-block: auto !important; }
  .orted12-mobile-footer { margin-top: 0; padding: 16px 0 calc(4px + env(safe-area-inset-bottom, 0px)); flex: 0 0 auto; }
  .orted12-mobile-body { padding-bottom: 0; }
  .orted12-mobile-contacts { display: flex; justify-content: space-evenly; align-items: start; gap: 0; margin-top: 0; }
  .orted12-mobile-contacts > .orted12-contact-block { flex: 0 1 44%; max-width: 220px; padding: 0; border: 0; text-align: center; }
  .orted12-mobile-contacts > .orted12-contact-block:first-child { flex-basis: 48%; }
  .orted12-mobile-contacts > .orted12-contact-block:last-child { flex-basis: 42%; }
  #orted12-mobile-dialog .orted12-contact-block a { justify-content: center; }
  .orted12-social-links { margin-inline: auto; }
  #orted12-mobile-dialog .orted12-mobile-legal { display: block; margin: 8px 0 0; padding-top: 8px; border-top: 1px solid var(--o12-rule); color: var(--o12-text); font: 400 11px/1.6 Montserrat, sans-serif; text-align: center; text-wrap: pretty; }
  #orted12-mobile-dialog .orted12-mobile-legal a { display: inline-block; min-height: 28px; padding-block: 5px; text-decoration: underline; text-underline-offset: 3px; }
  #orted12-mobile-dialog .orted12-mobile-legal a:is(:hover, :focus-visible) { color: var(--o12-primary); }
  #orted12-mobile-dialog .orted12-contact-block h3 { font-size: 12px; text-transform: uppercase; margin-bottom: 8px; }
  #orted12-mobile-dialog .orted12-contact-block h4 { margin-top: 0; }
}

/* Intranet has longer root labels; retain their type size at narrow desktop. */
@media (min-width: 1200px) and (max-width: 1279px) {
  .orted12-navigation[data-header-id="15704"] .orted12-top-list { gap: 6px; }
  .orted12-navigation[data-header-id="15704"] .orted12-top-list > li { padding-inline: 2px; }
}
@media (max-width: 1199px) {
  #orted12-mobile-dialog[data-header-id="15704"] .orted12-mobile-list > li.mobile-only {
    display: list-item !important; visibility: visible !important; opacity: 1 !important; pointer-events: auto !important;
  }
}
