/* NexaMenu 2.14.0
   Stable Mega Workspace with no-flash top navigation and explicit long-list scroll controls.
   Native Robotil flyouts remain the mobile implementation. */

@media (min-width: 992px) {
  .nxm-menu-host.nxm-owned {
    --nxm-accent: #0b7dff;
    --nxm-accent-cyan: #20c9f3;
    --nxm-top-text: #101923;
    --nxm-top-muted: #718095;
    --nxm-top-hover-bg: rgba(11, 125, 255, .052);
    --nxm-top-beam: rgba(11, 125, 255, .34);
    --nxm-top-text-glow: rgba(11, 125, 255, .10);
    --nxm-top-current: #101923;
    --nxm-top-ring: rgba(11, 125, 255, .34);
  }

  /* Robotil is the source of truth for sticky state. No scroll sampling is needed. */
  .nxm-menu-host.nxm-owned.prefix,
  .nxm-menu-host.nxm-owned .robotil_nav_area.prefix,
  .nxm-menu-host.nxm-owned .trp_nav_area.hbg2 {
    --nxm-top-text: #f7fbff;
    --nxm-top-muted: #a8bbcf;
    --nxm-top-hover-bg: rgba(40, 180, 255, .075);
    --nxm-top-beam: rgba(56, 198, 255, .48);
    --nxm-top-text-glow: rgba(56, 198, 255, .20);
    --nxm-top-current: #ffffff;
    --nxm-top-ring: rgba(60, 198, 255, .48);
  }

  /* This selector also protects translated roots that incorrectly arrive as .sub-menu. */
  .robotil_menu > ul.sub-menu:not(.nav_scroll),
  .nxm-menu-host.nxm-owned .robotil_menu > ul.nxm-root-menu {
    display: flex !important;
    position: static !important;
    visibility: visible !important;
    opacity: 1 !important;
    width: auto !important;
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
    transform: none !important;
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    border: 0 !important;
  }

  .nxm-menu-host.nxm-owned .robotil_menu > ul.nxm-root-menu > li {
    position: relative !important;
  }

  /* Native nested Robotil lists are data only on desktop. The critical CSS in wp_head
     applies the same rule before JavaScript is ready, eliminating the old-menu flash. */
  .nxm-menu-host.nxm-runtime-ready .robotil_menu li > ul:not(.nxm-root-menu) {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    position: absolute !important;
    left: -100000px !important;
    right: auto !important;
    top: auto !important;
    transform: none !important;
    pointer-events: none !important;
  }

  .nxm-menu-host.nxm-runtime-ready .robotil_menu > ul.nxm-root-menu > li > a {
    position: relative !important;
    display: inline-flex !important;
    align-items: center !important;
    color: var(--nxm-top-text) !important;
    font-size: clamp(14.5px, .9vw, 16px) !important;
    font-weight: 650 !important;
    line-height: 1.2 !important;
    letter-spacing: -.012em;
    border: 0 !important;
    border-radius: 8px !important;
    padding: 10px 11px !important;
    background: transparent !important;
    box-shadow: none !important;
    transition: color 110ms ease, background-color 110ms ease, text-shadow 110ms ease !important;
    text-decoration: none !important;
    text-transform: none !important;
    white-space: nowrap;
  }

  .nxm-menu-host.nxm-runtime-ready .robotil_menu > ul.nxm-root-menu > li.menu-item-has-children > a {
    padding-inline-end: 29px !important;
  }

  /* Thin light beam replaces the previous oval active button. */
  .nxm-menu-host.nxm-runtime-ready .robotil_menu > ul.nxm-root-menu > li > a::before {
    content: '' !important;
    display: block !important;
    position: absolute !important;
    left: 50% !important;
    bottom: 1px !important;
    width: 0 !important;
    height: 2px !important;
    border: 0 !important;
    border-radius: 2px !important;
    background: linear-gradient(90deg, rgba(8, 124, 255, 0), #087cff 26%, #20c8f3 72%, rgba(32, 200, 243, 0)) !important;
    box-shadow: 0 0 13px var(--nxm-top-beam) !important;
    transform: translateX(-50%) !important;
    opacity: 0 !important;
    transition: width 120ms ease, opacity 120ms ease !important;
  }

  .nxm-menu-host.nxm-runtime-ready .robotil_menu > ul.nxm-root-menu > li.menu-item-has-children > a::after {
    content: '' !important;
    display: block !important;
    position: absolute !important;
    width: 6px !important;
    height: 6px !important;
    inset-inline-end: 12px !important;
    top: 50% !important;
    margin: -5px 0 0 !important;
    border: 0 !important;
    border-right: 1.7px solid var(--nxm-top-muted) !important;
    border-bottom: 1.7px solid var(--nxm-top-muted) !important;
    transform: rotate(45deg) !important;
    background: transparent !important;
    opacity: .86 !important;
    transition: transform 120ms ease, border-color 110ms ease, opacity 110ms ease !important;
  }

  .nxm-menu-host.nxm-runtime-ready .robotil_menu > ul.nxm-root-menu > li > a:hover,
  .nxm-menu-host.nxm-runtime-ready .robotil_menu > ul.nxm-root-menu > li > a:focus-visible,
  .nxm-menu-host.nxm-runtime-ready .robotil_menu > ul.nxm-root-menu > li > a[aria-expanded="true"] {
    color: var(--nxm-top-text) !important;
    background: transparent !important;
    box-shadow: none !important;
    text-shadow: 0 0 16px var(--nxm-top-text-glow) !important;
  }

  .nxm-menu-host.nxm-runtime-ready .robotil_menu > ul.nxm-root-menu > li.menu-item-has-children > a[aria-expanded="true"]::after {
    border-color: var(--nxm-top-text) !important;
    transform: rotate(225deg) !important;
    opacity: 1 !important;
  }

  .nxm-menu-host.nxm-runtime-ready .robotil_menu > ul.nxm-root-menu > li > a:hover::before,
  .nxm-menu-host.nxm-runtime-ready .robotil_menu > ul.nxm-root-menu > li > a:focus-visible::before {
    width: 22px !important;
    opacity: .78 !important;
  }

  .nxm-menu-host.nxm-runtime-ready .robotil_menu > ul.nxm-root-menu > li > a[aria-expanded="true"]::before {
    width: 40px !important;
    opacity: 1 !important;
  }

  .nxm-menu-host.nxm-runtime-ready .robotil_menu > ul.nxm-root-menu > li.current > a,
  .nxm-menu-host.nxm-runtime-ready .robotil_menu > ul.nxm-root-menu > li.current-menu-item > a,
  .nxm-menu-host.nxm-runtime-ready .robotil_menu > ul.nxm-root-menu > li.current-menu-ancestor > a,
  .nxm-menu-host.nxm-runtime-ready .robotil_menu > ul.nxm-root-menu > li.current-menu-parent > a,
  .nxm-menu-host.nxm-runtime-ready .robotil_menu > ul.nxm-root-menu > li.current_page_item > a,
  .nxm-menu-host.nxm-runtime-ready .robotil_menu > ul.nxm-root-menu > li.current_page_parent > a,
  .nxm-menu-host.nxm-runtime-ready .robotil_menu > ul.nxm-root-menu > li.current_page_ancestor > a {
    color: var(--nxm-top-current) !important;
    background: transparent !important;
    box-shadow: none !important;
  }

  .nxm-menu-host.nxm-runtime-ready .robotil_menu > ul.nxm-root-menu > li.current > a::before,
  .nxm-menu-host.nxm-runtime-ready .robotil_menu > ul.nxm-root-menu > li.current-menu-item > a::before,
  .nxm-menu-host.nxm-runtime-ready .robotil_menu > ul.nxm-root-menu > li.current-menu-ancestor > a::before,
  .nxm-menu-host.nxm-runtime-ready .robotil_menu > ul.nxm-root-menu > li.current-menu-parent > a::before,
  .nxm-menu-host.nxm-runtime-ready .robotil_menu > ul.nxm-root-menu > li.current_page_item > a::before,
  .nxm-menu-host.nxm-runtime-ready .robotil_menu > ul.nxm-root-menu > li.current_page_parent > a::before,
  .nxm-menu-host.nxm-runtime-ready .robotil_menu > ul.nxm-root-menu > li.current_page_ancestor > a::before {
    width: 32px !important;
    opacity: 1 !important;
  }

  .nxm-menu-host.nxm-runtime-ready .robotil_menu > ul.nxm-root-menu > li > a:focus-visible {
    outline: 2px solid var(--nxm-top-ring) !important;
    outline-offset: 2px !important;
  }

  .nxm-menu-host.nxm-owned .robotil_menu > .donate-btn-header > a.dtbtn {
    white-space: nowrap !important;
    border-radius: 12px !important;
    margin-left: 0 !important;
    margin-inline-start: 30px !important;
    box-shadow: 0 8px 20px rgba(11, 125, 255, .14), inset 0 1px 0 rgba(255, 255, 255, .16) !important;
    transition: box-shadow 120ms ease !important;
  }

  .nxm-menu-host.nxm-owned .robotil_menu > .donate-btn-header > a.dtbtn:hover,
  .nxm-menu-host.nxm-owned .robotil_menu > .donate-btn-header > a.dtbtn:focus-visible {
    box-shadow: 0 10px 24px rgba(11, 125, 255, .20), inset 0 1px 0 rgba(255, 255, 255, .22) !important;
  }

  .nxm-workspace {
    --nxm-workspace-left: 16px;
    --nxm-workspace-top: 100px;
    --nxm-workspace-width: 820px;
    --nxm-workspace-max-height: 620px;
    --nxm-workspace-height: 620px;
    position: fixed;
    z-index: 100080;
    left: var(--nxm-workspace-left);
    top: var(--nxm-workspace-top);
    width: var(--nxm-workspace-width);
    height: var(--nxm-workspace-height);
    max-width: calc(100vw - 32px);
    max-height: var(--nxm-workspace-max-height);
    display: none;
    pointer-events: auto;
    color: #132134;
    font-family: inherit;
  }

  .nxm-workspace.nxm-workspace-open {
    display: block;
  }

  .nxm-workspace-shell {
    position: relative;
    overflow: hidden;
    height: 100%;
    max-height: var(--nxm-workspace-max-height);
    border: 1px solid rgba(41, 116, 184, .19);
    border-radius: 22px;
    background: linear-gradient(145deg, rgba(255, 255, 255, .998), rgba(247, 251, 255, .995));
    box-shadow:
      0 22px 62px rgba(4, 23, 45, .19),
      0 5px 18px rgba(9, 73, 128, .075),
      inset 0 1px 0 rgba(255, 255, 255, .96),
      inset 0 0 0 1px rgba(255, 255, 255, .22);
    contain: layout paint;
  }

  .nxm-workspace-accent {
    height: 3px;
    background: linear-gradient(90deg, rgba(8, 124, 255, .06) 0%, #087cff 12%, #18c7f5 48%, #5ee4ff 72%, rgba(24, 199, 245, .08) 100%);
    box-shadow: 0 0 18px rgba(15, 165, 255, .20);
  }

  .nxm-workspace-grid {
    display: grid;
    height: calc(100% - 3px);
    min-height: 0;
    align-items: stretch;
  }

  .nxm-workspace.nxm-depth-1 .nxm-workspace-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .nxm-workspace.nxm-depth-2 .nxm-workspace-grid {
    grid-template-columns: minmax(260px, .78fr) minmax(0, 1.22fr);
  }

  .nxm-workspace.nxm-depth-3 .nxm-workspace-grid {
    grid-template-columns: minmax(250px, .72fr) minmax(270px, .84fr) minmax(0, 1.44fr);
  }

  .nxm-stage {
    --nxm-scroll-progress: 0;
    position: relative;
    display: flex;
    min-width: 0;
    min-height: 0;
    height: 100%;
    overflow: hidden;
  }

  .nxm-stage-1 {
    background: rgba(244, 250, 255, .42);
  }

  .nxm-stage-2 {
    background: rgba(250, 253, 255, .54);
  }

  .nxm-stage-3 {
    background: rgba(255, 255, 255, .62);
  }

  .nxm-stage + .nxm-stage {
    border-inline-start: 1px solid rgba(41, 116, 184, .10);
    box-shadow: inset 1px 0 0 rgba(255, 255, 255, .52);
  }

  .nxm-stage-empty {
    background: rgba(248, 252, 255, .48);
  }

  .nxm-workspace.nxm-depth-1 .nxm-stage-2,
  .nxm-workspace.nxm-depth-1 .nxm-stage-3,
  .nxm-workspace.nxm-depth-2 .nxm-stage-3 {
    display: none;
  }

  .nxm-stage-scroll {
    box-sizing: border-box;
    position: relative;
    flex: 1 1 auto;
    min-width: 0;
    min-height: 0;
    height: 100%;
    padding: 18px 16px 18px;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    scroll-padding-block: 50px 18px;
    touch-action: pan-y;
    scrollbar-gutter: stable;
    scrollbar-width: thin;
    scrollbar-color: rgba(31, 121, 203, .42) rgba(23, 78, 127, .04);
    outline: none;
  }

  .nxm-stage.nxm-stage-scrollable .nxm-stage-scroll {
    padding-inline-end: 54px;
  }

  .nxm-stage-scroll:focus-visible {
    outline: 2px solid rgba(11, 125, 255, .22);
    outline-offset: -2px;
  }

  .nxm-stage-head {
    position: sticky;
    z-index: 3;
    top: -18px;
    display: flex;
    align-items: center;
    gap: 9px;
    min-height: 40px;
    margin: -18px -16px 10px;
    padding: 14px 16px 9px;
    background: linear-gradient(180deg, rgba(252, 254, 255, .999) 62%, rgba(249, 252, 255, .95) 84%, rgba(249, 252, 255, 0));
    box-shadow: 0 1px 0 rgba(31, 105, 170, .055);
  }

  .nxm-stage.nxm-stage-scrollable .nxm-stage-head {
    padding-inline-end: 54px;
  }

  .nxm-stage-eyebrow {
    display: inline-grid;
    place-items: center;
    flex: 0 0 27px;
    height: 22px;
    border: 1px solid rgba(11, 125, 255, .08);
    border-radius: 7px;
    background: rgba(11, 125, 255, .07);
    color: #086ac8;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .06em;
  }

  .nxm-stage-title {
    min-width: 0;
    overflow: hidden;
    color: #24364a;
    font-size: 12px;
    font-weight: 760;
    line-height: 1.28;
    letter-spacing: .01em;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    white-space: normal;
  }

  .nxm-stage-title-link {
    text-decoration: none !important;
    color: #24364a !important;
    border-radius: 6px;
  }

  .nxm-stage-title-link:hover,
  .nxm-stage-title-link:focus-visible {
    color: #0876df !important;
    text-decoration: none !important;
  }

  .nxm-stage-title-link:focus-visible {
    outline: 2px solid rgba(11, 125, 255, .28);
    outline-offset: 2px;
  }

  .nxm-stage-list {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-content: start;
    gap: 3px;
    padding-bottom: 4px;
  }

  .nxm-stage-leaf-grid .nxm-stage-list {
    grid-template-columns: repeat(auto-fit, minmax(205px, 1fr));
    column-gap: 12px;
  }

  .nxm-workspace-item {
    position: relative;
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    min-width: 0;
    min-height: 49px;
    margin: 0 !important;
    padding: 10px 13px !important;
    border: 1px solid transparent !important;
    border-radius: 11px !important;
    background: transparent !important;
    color: #22344a !important;
    box-shadow: none !important;
    font-size: 15.5px !important;
    font-weight: 590 !important;
    line-height: 1.34 !important;
    letter-spacing: -.008em;
    text-decoration: none !important;
    transition: background-color 90ms ease, border-color 90ms ease, color 90ms ease, box-shadow 90ms ease !important;
  }

  .nxm-workspace-label {
    min-width: 0;
    overflow-wrap: anywhere;
  }

  .nxm-workspace-item:hover,
  .nxm-workspace-item:focus-visible,
  .nxm-workspace-item.nxm-item-active {
    color: #086fd2 !important;
    border-color: rgba(11, 125, 255, .14) !important;
    background: linear-gradient(90deg, rgba(11, 125, 255, .078), rgba(29, 199, 244, .028) 64%, rgba(255, 255, 255, .16)) !important;
    box-shadow: inset 2px 0 0 #0b7dff, inset 0 1px 0 rgba(255, 255, 255, .72), 0 5px 15px rgba(6, 84, 153, .04) !important;
  }

  .nxm-workspace-item.nxm-item-current {
    font-weight: 720 !important;
  }

  .nxm-workspace-item:focus-visible {
    outline: 2px solid rgba(11, 125, 255, .34) !important;
    outline-offset: 1px !important;
  }

  .nxm-workspace-chevron {
    flex: 0 0 8px;
    width: 7px;
    height: 7px;
    margin-right: 2px;
    border-right: 1.7px solid #7990a8;
    border-bottom: 1.7px solid #7990a8;
    transform: rotate(-45deg);
  }

  .nxm-workspace-item:hover .nxm-workspace-chevron,
  .nxm-workspace-item:focus-visible .nxm-workspace-chevron,
  .nxm-workspace-item.nxm-item-active .nxm-workspace-chevron {
    border-color: #0b7dff;
  }

  html[dir="rtl"] .nxm-workspace-item:hover,
  html[dir="rtl"] .nxm-workspace-item:focus-visible,
  html[dir="rtl"] .nxm-workspace-item.nxm-item-active {
    box-shadow: inset -2px 0 0 #0b7dff, inset 0 1px 0 rgba(255, 255, 255, .72), 0 5px 15px rgba(6, 84, 153, .04) !important;
  }

  html[dir="rtl"] .nxm-workspace-chevron {
    margin-right: 0;
    margin-left: 2px;
    transform: rotate(135deg);
  }

  /* Explicit scroll rail. It only appears when a stage really overflows. */
  .nxm-scroll-rail {
    position: absolute;
    z-index: 6;
    top: 50%;
    inset-inline-end: 9px;
    display: grid;
    grid-template-rows: 34px 70px 34px;
    align-items: center;
    justify-items: center;
    gap: 7px;
    width: 36px;
    padding: 5px 0;
    border: 1px solid rgba(36, 116, 186, .105);
    border-radius: 11px;
    background: rgba(249, 253, 255, .90);
    box-shadow: 0 7px 20px rgba(14, 66, 113, .07), inset 0 1px 0 rgba(255, 255, 255, .94);
    transform: translateY(-50%);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 100ms ease;
  }

  .nxm-stage.nxm-stage-scrollable .nxm-scroll-rail {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .nxm-scroll-button {
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    margin: 0;
    padding: 0;
    border: 1px solid rgba(11, 125, 255, .12);
    border-radius: 8px;
    background: rgba(253, 254, 255, .94);
    color: #0b72d4;
    box-shadow: 0 2px 8px rgba(14, 71, 124, .055), inset 0 1px 0 rgba(255, 255, 255, .9);
    cursor: pointer;
    transition: background-color 90ms ease, border-color 90ms ease, opacity 90ms ease;
  }

  .nxm-scroll-button:hover:not(:disabled),
  .nxm-scroll-button:focus-visible:not(:disabled) {
    border-color: rgba(11, 125, 255, .30);
    background: rgba(11, 125, 255, .08);
  }

  .nxm-scroll-button:focus-visible {
    outline: 2px solid rgba(11, 125, 255, .30);
    outline-offset: 1px;
  }

  .nxm-scroll-button:disabled {
    opacity: .24;
    cursor: default;
  }

  .nxm-scroll-button > span {
    width: 7px;
    height: 7px;
    border-top: 2px solid currentColor;
    border-left: 2px solid currentColor;
  }

  .nxm-scroll-button-up > span {
    transform: rotate(45deg) translate(1px, 1px);
  }

  .nxm-scroll-button-down > span {
    transform: rotate(225deg) translate(1px, 1px);
  }

  .nxm-scroll-meter {
    position: relative;
    display: block;
    width: 3px;
    height: 64px;
    border-radius: 3px;
    background: rgba(37, 111, 178, .105);
    overflow: visible;
  }

  .nxm-scroll-meter-fill {
    --nxm-meter-progress: 0;
    position: absolute;
    left: -1px;
    top: 0;
    display: block;
    width: 5px;
    height: 18px;
    border-radius: 5px;
    background: linear-gradient(180deg, #43dcff, #087cff);
    box-shadow: 0 0 10px rgba(11, 125, 255, .20);
    transform: translateY(calc(var(--nxm-meter-progress) * var(--nxm-meter-travel, 46px)));
    transition: transform 80ms linear;
  }

  .nxm-stage.nxm-can-scroll-down::after,
  .nxm-stage.nxm-can-scroll-up::before {
    content: '';
    position: absolute;
    z-index: 4;
    inset-inline-start: 0;
    inset-inline-end: 46px;
    height: 30px;
    pointer-events: none;
  }

  .nxm-stage.nxm-can-scroll-up::before {
    top: 0;
    background: linear-gradient(180deg, rgba(250, 253, 255, .88), rgba(250, 253, 255, 0));
  }

  .nxm-stage.nxm-can-scroll-down::after {
    bottom: 0;
    background: linear-gradient(0deg, rgba(250, 253, 255, .92), rgba(250, 253, 255, 0));
  }

  .nxm-stage-scroll::-webkit-scrollbar {
    width: 9px;
    height: 9px;
  }

  .nxm-stage-scroll::-webkit-scrollbar-thumb {
    border: 2px solid transparent;
    border-radius: 9px;
    background: rgba(31, 121, 203, .42);
    background-clip: padding-box;
  }

  .nxm-stage-scroll::-webkit-scrollbar-thumb:hover {
    background: rgba(18, 109, 194, .58);
    background-clip: padding-box;
  }

  .nxm-stage-scroll::-webkit-scrollbar-track {
    background: rgba(23, 78, 127, .035);
  }
}

@media (min-width: 992px) and (max-width: 1199px) {
  .nxm-menu-host.nxm-runtime-ready .robotil_menu > ul.nxm-root-menu > li > a {
    margin-inline: 3px !important;
    padding-inline: 8px !important;
    font-size: 14.5px !important;
  }

  .nxm-menu-host.nxm-runtime-ready .robotil_menu > ul.nxm-root-menu > li.menu-item-has-children > a {
    padding-inline-end: 24px !important;
  }

  .nxm-menu-host.nxm-runtime-ready .robotil_menu > ul.nxm-root-menu > li.menu-item-has-children > a::after {
    inset-inline-end: 9px !important;
  }

  .nxm-menu-host.nxm-owned .robotil_menu > .donate-btn-header > a.dtbtn {
    margin-inline-start: 12px !important;
    padding-inline: 16px !important;
    font-size: 15px !important;
  }
}

@media (min-width: 992px) and (max-width: 1120px) {
  .nxm-workspace.nxm-depth-3 .nxm-workspace-grid {
    grid-template-columns: minmax(220px, .68fr) minmax(238px, .78fr) minmax(0, 1.54fr);
  }

  .nxm-stage-scroll {
    padding-inline: 13px;
  }

  .nxm-stage.nxm-stage-scrollable .nxm-stage-scroll {
    padding-inline-end: 49px;
  }

  .nxm-workspace-item {
    font-size: 15px !important;
    padding-left: 11px !important;
    padding-right: 11px !important;
  }

  .nxm-stage-leaf-grid .nxm-stage-list {
    grid-template-columns: repeat(auto-fit, minmax(185px, 1fr));
  }
}



@media (min-width: 992px) and (hover: none), (min-width: 992px) and (pointer: coarse) {
  .nxm-workspace-item {
    min-height: 54px;
  }

  .nxm-scroll-button {
    width: 34px;
    height: 34px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .nxm-menu-host.nxm-runtime-ready .robotil_menu > ul.nxm-root-menu > li > a,
  .nxm-menu-host.nxm-runtime-ready .robotil_menu > ul.nxm-root-menu > li > a::before,
  .nxm-workspace-item,
  .nxm-scroll-rail,
  .nxm-scroll-meter-fill,
  .nxm-menu-host.nxm-runtime-ready .robotil_menu > ul.nxm-root-menu > li.menu-item-has-children > a::after,
  .nxm-menu-host.nxm-owned .robotil_menu > .donate-btn-header > a.dtbtn {
    transition: none !important;
  }
}

@media (prefers-contrast: more) {
  .nxm-workspace-shell {
    border-color: rgba(20, 74, 126, .42);
    background: #fff;
  }

  .nxm-stage + .nxm-stage {
    border-inline-start-color: rgba(24, 73, 119, .34);
  }

  .nxm-workspace-item {
    color: #102030 !important;
  }

  .nxm-scroll-rail,
  .nxm-scroll-button {
    border-color: rgba(20, 74, 126, .42);
    background: #fff;
  }
}

@media (forced-colors: active) {
  .nxm-workspace-shell,
  .nxm-workspace-item,
  .nxm-stage,
  .nxm-scroll-button,
  .nxm-scroll-rail {
    forced-color-adjust: auto;
  }

  .nxm-workspace-shell {
    border: 1px solid CanvasText;
    background: Canvas;
  }

  .nxm-workspace-item,
  .nxm-stage-title-link {
    color: LinkText !important;
  }
}

@media (prefers-reduced-transparency: reduce) {
  .nxm-workspace-shell,
  .nxm-scroll-rail {
    background: #fafdff;
  }
}

/* Very short desktop viewports: keep explicit scroll controls usable without
   allowing the rail itself to be clipped by the Workspace shell. */
@media (min-width: 992px) and (max-height: 230px) {
  .nxm-scroll-rail {
    box-sizing: border-box;
    grid-template-rows: 26px 26px;
    gap: 2px;
    width: 30px;
    padding: 2px 0;
  }

  .nxm-scroll-meter {
    display: none;
  }

  .nxm-scroll-button {
    width: 24px;
    height: 24px;
  }

  .nxm-stage.nxm-stage-scrollable .nxm-stage-scroll,
  .nxm-stage.nxm-stage-scrollable .nxm-stage-head {
    padding-inline-end: 46px;
  }
}

/* Runtime visual-viewport compaction. Browser pinch zoom can make the visible
   viewport much narrower while CSS media queries still report desktop width.
   Keep all three stages usable without horizontal clipping in that state. */
@media (min-width: 992px) {
  .nxm-workspace.nxm-visual-compact.nxm-depth-2 .nxm-workspace-grid {
    grid-template-columns: minmax(0, .9fr) minmax(0, 1.4fr);
  }

  .nxm-workspace.nxm-visual-compact.nxm-depth-3 .nxm-workspace-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr) minmax(0, 1.85fr);
  }

  .nxm-workspace.nxm-visual-compact .nxm-stage-leaf-grid .nxm-stage-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .nxm-workspace.nxm-visual-compact .nxm-stage-scroll {
    padding-inline: 10px;
  }

  .nxm-workspace.nxm-visual-compact .nxm-stage-head {
    margin-inline: -10px;
    padding-inline: 10px;
  }

  .nxm-workspace.nxm-visual-compact .nxm-stage.nxm-stage-scrollable .nxm-stage-scroll,
  .nxm-workspace.nxm-visual-compact .nxm-stage.nxm-stage-scrollable .nxm-stage-head {
    padding-inline-end: 40px;
  }

  .nxm-workspace.nxm-visual-compact .nxm-scroll-rail {
    inset-inline-end: 5px;
    grid-template-rows: 28px 42px 28px;
    gap: 4px;
    width: 30px;
    padding: 4px 0;
  }

  .nxm-workspace.nxm-visual-compact .nxm-scroll-button {
    width: 26px;
    height: 26px;
  }

  .nxm-workspace.nxm-visual-compact .nxm-scroll-meter {
    height: 42px;
  }

  .nxm-workspace.nxm-visual-compact .nxm-scroll-meter-fill {
    --nxm-meter-travel: 24px;
  }

  .nxm-workspace.nxm-visual-compact .nxm-stage.nxm-can-scroll-down::after,
  .nxm-workspace.nxm-visual-compact .nxm-stage.nxm-can-scroll-up::before {
    inset-inline-end: 38px;
  }

  .nxm-workspace.nxm-visual-tight .nxm-scroll-rail {
    grid-template-rows: 28px 28px;
  }

  .nxm-workspace.nxm-visual-tight .nxm-scroll-meter {
    display: none;
  }
}


@media (min-width: 992px) {
  .nxm-workspace.nxm-visual-ultra .nxm-stage-eyebrow {
    display: none;
  }

  .nxm-workspace.nxm-visual-ultra .nxm-stage-head {
    gap: 0;
  }

  .nxm-workspace.nxm-visual-ultra .nxm-stage.nxm-stage-scrollable .nxm-stage-scroll,
  .nxm-workspace.nxm-visual-ultra .nxm-stage.nxm-stage-scrollable .nxm-stage-head {
    padding-inline-end: 32px;
  }

  .nxm-workspace.nxm-visual-ultra .nxm-scroll-rail {
    inset-inline-end: 3px;
    grid-template-rows: 24px 24px;
    width: 26px;
    padding: 3px 0;
  }

  .nxm-workspace.nxm-visual-ultra .nxm-scroll-button {
    width: 22px;
    height: 22px;
  }
}

/* Multilingual top-navigation fit.
   Medium desktop widths are pre-compacted before JS so longer translated labels
   cannot flash across the logo. Runtime classes only tighten further when the
   measured content still collides with the Robotil logo or container edge. */
@media (min-width: 1200px) and (max-width: 1600px) {
  html:not(:lang(pl)) .nxm-menu-host.nxm-runtime-ready .robotil_menu > ul.nxm-root-menu > li > a {
    padding-inline: 7px !important;
    font-size: 13.75px !important;
  }

  html:not(:lang(pl)) .nxm-menu-host.nxm-runtime-ready .robotil_menu > ul.nxm-root-menu > li.menu-item-has-children > a {
    padding-inline-end: 22px !important;
  }

  html:not(:lang(pl)) .nxm-menu-host.nxm-runtime-ready .robotil_menu > ul.nxm-root-menu > li.menu-item-has-children > a::after {
    inset-inline-end: 8px !important;
  }

  html:not(:lang(pl)) .nxm-menu-host.nxm-owned .robotil_menu > .donate-btn-header > a.dtbtn {
    margin-inline-start: 12px !important;
    padding-inline: 17px !important;
    font-size: 14.5px !important;
  }
}

@media (min-width: 1200px) and (max-width: 1439px) {
  html:not(:lang(pl)) .nxm-menu-host.nxm-runtime-ready .robotil_menu > ul.nxm-root-menu > li > a {
    padding-inline: 5px !important;
    font-size: 13px !important;
  }

  html:not(:lang(pl)) .nxm-menu-host.nxm-runtime-ready .robotil_menu > ul.nxm-root-menu > li.menu-item-has-children > a {
    padding-inline-end: 20px !important;
  }

  html:not(:lang(pl)) .nxm-menu-host.nxm-owned .robotil_menu > .donate-btn-header > a.dtbtn {
    margin-inline-start: 9px !important;
    padding-inline: 14px !important;
    font-size: 14px !important;
  }
}

@media (min-width: 992px) and (max-width: 1199px) {
  html:not(:lang(pl)) .nxm-menu-host.nxm-runtime-ready .robotil_menu > ul.nxm-root-menu > li > a {
    margin-inline: 1px !important;
    padding-inline: 5px !important;
    font-size: 13px !important;
  }

  html:not(:lang(pl)) .nxm-menu-host.nxm-runtime-ready .robotil_menu > ul.nxm-root-menu > li.menu-item-has-children > a {
    padding-inline-end: 20px !important;
  }

  html:not(:lang(pl)) .nxm-menu-host.nxm-owned .robotil_menu > .donate-btn-header > a.dtbtn {
    margin-inline-start: 8px !important;
    padding-inline: 13px !important;
    font-size: 13.5px !important;
  }
}

@media (min-width: 992px) {
  .nxm-menu-host.nxm-top-fit-compact .robotil_menu > ul.nxm-root-menu > li > a {
    margin-inline: 1px !important;
    padding-inline: 6px !important;
    font-size: 13.5px !important;
  }

  .nxm-menu-host.nxm-top-fit-compact .robotil_menu > ul.nxm-root-menu > li.menu-item-has-children > a {
    padding-inline-end: 21px !important;
  }

  .nxm-menu-host.nxm-top-fit-compact .robotil_menu > ul.nxm-root-menu > li.menu-item-has-children > a::after {
    inset-inline-end: 8px !important;
  }

  .nxm-menu-host.nxm-top-fit-compact .robotil_menu > .donate-btn-header > a.dtbtn {
    margin-inline-start: 10px !important;
    padding-inline: 15px !important;
    font-size: 14px !important;
  }

  .nxm-menu-host.nxm-top-fit-tight .robotil_menu > ul.nxm-root-menu > li > a {
    margin-inline: 0 !important;
    padding-inline: 4px !important;
    font-size: 12.75px !important;
    letter-spacing: -.018em !important;
  }

  .nxm-menu-host.nxm-top-fit-tight .robotil_menu > ul.nxm-root-menu > li.menu-item-has-children > a {
    padding-inline-end: 19px !important;
  }

  .nxm-menu-host.nxm-top-fit-tight .robotil_menu > ul.nxm-root-menu > li.menu-item-has-children > a::after {
    inset-inline-end: 7px !important;
    width: 5px !important;
    height: 5px !important;
  }

  .nxm-menu-host.nxm-top-fit-tight .robotil_menu > .donate-btn-header > a.dtbtn {
    margin-inline-start: 7px !important;
    padding-inline: 12px !important;
    font-size: 13.5px !important;
  }

  .nxm-menu-host.nxm-top-fit-ultra .robotil_menu > ul.nxm-root-menu > li > a {
    margin-inline: 0 !important;
    padding-inline: 3px !important;
    font-size: 12px !important;
    letter-spacing: -.022em !important;
  }

  .nxm-menu-host.nxm-top-fit-ultra .robotil_menu > ul.nxm-root-menu > li.menu-item-has-children > a {
    padding-inline-end: 17px !important;
  }

  .nxm-menu-host.nxm-top-fit-ultra .robotil_menu > ul.nxm-root-menu > li.menu-item-has-children > a::after {
    inset-inline-end: 6px !important;
    width: 5px !important;
    height: 5px !important;
  }

  .nxm-menu-host.nxm-top-fit-ultra .robotil_menu > .donate-btn-header > a.dtbtn {
    margin-inline-start: 5px !important;
    padding-inline: 10px !important;
    font-size: 13px !important;
  }

  .nxm-menu-host.nxm-top-fit-ultra .row.logo-left .logo img {
    max-width: 88% !important;
    height: auto !important;
  }
}

@media (min-width: 992px) {
  /* Last-resort multilingual fit. This mode is only set after measured collision
     survives compact and tight modes. Allow long translated labels to use two
     short lines instead of crossing the logo or viewport edge. */
  .nxm-menu-host.nxm-top-fit-ultra .robotil_menu > ul.nxm-root-menu > li > a {
    max-width: 148px !important;
    white-space: normal !important;
    text-align: center !important;
    justify-content: center !important;
    line-height: 1.05 !important;
    font-size: 11.5px !important;
  }

  .nxm-menu-host.nxm-top-fit-ultra .robotil_menu > .donate-btn-header > a.dtbtn {
    max-width: 156px !important;
    white-space: normal !important;
    text-align: center !important;
    line-height: 1.08 !important;
    font-size: 12.5px !important;
  }

  .nxm-menu-host.nxm-top-fit-ultra .row.logo-left .logo img {
    max-width: 82% !important;
  }
}

@media (min-width: 992px) and (max-width: 1279px) {
  html:not(:lang(pl)) .nxm-menu-host.nxm-runtime-ready .robotil_menu > ul.nxm-root-menu > li > a {
    margin-inline: 0 !important;
    padding-inline: 3px !important;
    max-width: 145px !important;
    white-space: normal !important;
    text-align: center !important;
    justify-content: center !important;
    font-size: 12px !important;
    line-height: 1.06 !important;
    letter-spacing: -.018em !important;
  }

  html:not(:lang(pl)) .nxm-menu-host.nxm-runtime-ready .robotil_menu > ul.nxm-root-menu > li.menu-item-has-children > a {
    padding-inline-end: 17px !important;
  }

  html:not(:lang(pl)) .nxm-menu-host.nxm-runtime-ready .robotil_menu > ul.nxm-root-menu > li.menu-item-has-children > a::after {
    inset-inline-end: 6px !important;
    width: 5px !important;
    height: 5px !important;
  }

  html:not(:lang(pl)) .nxm-menu-host.nxm-owned .robotil_menu > .donate-btn-header > a.dtbtn {
    margin-inline-start: 5px !important;
    padding-inline: 10px !important;
    max-width: 150px !important;
    white-space: normal !important;
    text-align: center !important;
    line-height: 1.08 !important;
    font-size: 12.5px !important;
  }
}
