/* Responsive dropdown from the standalone header preview. */
@media (max-width: 1024px) {
      .nh-plugin-root.nh-header-shell:has(.nh-preview-menu.is-open) { transform: none !important; }
      .nh-header-shell .nh-preview-menu {
        position: absolute; z-index: 25; top: calc(100% + 8px);
        right: var(--nh-preview-menu-right, 8px);
        width: min(500px, calc(100vw - 32px)); max-height: calc(100dvh - var(--nh-preview-menu-bottom, 90px) - 12px);
        overflow-y: auto; padding: 10px;
        border-radius: 15px; background: #fff; color: #131D37;
        box-shadow: none;
        opacity: 0; visibility: hidden; pointer-events: none;
        transform-origin: top right;
        transform: translate(calc(-1 * var(--nh-grow-x, 0px)), var(--nh-grow-y, -40px)) scale(var(--nh-grow-scale-x, .08), var(--nh-grow-scale-y, .06));
        transition: transform .48s cubic-bezier(.22, .8, .22, 1), opacity .3s ease, visibility .48s;
        will-change: transform;
      }
      .nh-header-shell .nh-preview-menu.is-open:not(.is-leaving) {
        opacity: 1; visibility: visible; pointer-events: auto; transform: translate(0, 0) scale(1);
      }
      .nh-header-shell .nh-preview-menu.is-leaving {
        opacity: 0; visibility: hidden; pointer-events: none;
        transition: transform .48s cubic-bezier(.22, .8, .22, 1), opacity .18s ease .26s, visibility .48s;
      }
      .nh-header-shell .nh-preview-menu.is-leaving #nh-preview-primary:not([hidden]) > li {
        opacity: 1; transform: none; animation: none;
      }
      body:has(.nh-preview-menu.is-leaving) .nh-preview-page-backdrop {
        opacity: 0; visibility: hidden; pointer-events: none;
      }
      .nh-header-shell .nh-preview-menu[hidden] { display: none !important; }
      .nh-header-shell .nh-preview-menu ul { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }
      .nh-header-shell .nh-preview-menu #nh-preview-primary[hidden] { display: none; }
      .nh-header-shell .nh-preview-menu .nh-preview-menu__submenu { padding-top: 0; }
      .nh-header-shell .nh-preview-menu .nh-preview-menu__submenu li:first-child a,
      .nh-header-shell .nh-preview-menu .nh-preview-menu__back { color: #A6735C; font-size: 13px; }
      .nh-header-shell .nh-preview-menu .nh-preview-menu__submenu li.nh-preview-menu__category-row {
        display: block; padding: 0;
      }
      .nh-header-shell .nh-preview-menu .nh-preview-menu__category-row::before { content: none; }
      .nh-header-shell .nh-preview-menu .nh-preview-menu__category {
        display: grid; grid-template-columns: 10% 80% 10%; align-items: center;
        width: 100%; height: 100%; padding: 0; border: 0;
        background: transparent; color: #131D37; cursor: pointer;
        font: 400 15px/1.7 "Be Vietnam Pro", sans-serif;
      }
      .nh-header-shell .nh-preview-menu .nh-preview-menu__category-label { grid-column: 2; text-align: center; }
      .nh-header-shell .nh-preview-menu .nh-preview-menu__long-link { height: auto; min-height: 51.6px; }
      .nh-header-shell .nh-preview-menu .nh-preview-menu__long-link a { padding: 9px 0; }
      .nh-header-shell .nh-preview-menu .nh-preview-menu__back {
        display: flex; justify-content: center; align-items: center; gap: 8px;
        width: 100%; height: 51.6px; padding: 0; border: 0;
        border-bottom: 1px dashed #E2E2E2; background: transparent;
        cursor: pointer; font: 400 13px/1.7 "Be Vietnam Pro", sans-serif;
      }
      .nh-header-shell .nh-preview-menu .nh-preview-menu__back-label { grid-column: 2; text-align: center; }
      .nh-header-shell .nh-preview-menu .nh-preview-menu__back .nh-preview-menu__side { margin: 0; }
      .nh-header-shell .nh-preview-menu li {
        display: grid; grid-template-columns: 10% 80% 10%; align-items: center;
        height: 51.6px; margin: 0; padding: 0;
        border-bottom: 1px dashed #E2E2E2;
      }
      .nh-header-shell .nh-preview-menu li::before { content: ''; grid-column: 1; }
      .nh-header-shell .nh-preview-menu li.nh-preview-menu__has-submenu {
        display: block; height: auto; padding: 0; border: 0;
      }
      .nh-header-shell .nh-preview-menu li.nh-preview-menu__has-submenu::before { content: none; }
      .nh-header-shell .nh-preview-menu .nh-preview-menu__expand {
        display: grid; grid-template-columns: 10% 80% 10%; align-items: center;
        width: 100%; height: 51.6px; margin: 0; padding: 0;
        border: 0; border-bottom: 1px dashed #E2E2E2;
        background: transparent; color: #131D37; cursor: pointer;
        font: 400 15px/1.7 "Be Vietnam Pro", sans-serif;
      }
      .nh-header-shell .nh-preview-menu .nh-preview-menu__expand-label { grid-column: 2; text-align: center; }
      .nh-header-shell .nh-preview-menu .nh-preview-menu__contact-panel {
        display: grid; justify-items: center; gap: 20px; padding: 20px 0;
        border-bottom: 1px dashed #E2E2E2;
      }
      .nh-header-shell .nh-preview-menu .nh-preview-menu__contact-panel[hidden] { display: none; }
      .nh-header-shell .nh-preview-menu .nh-preview-menu__contact-panel a {
        display: inline-flex; grid-column: auto; align-items: center; justify-self: center; gap: 8px;
        width: fit-content; color: #23335A; text-decoration: none;
        font: 400 14px/1.7 "Be Vietnam Pro", sans-serif;
      }
      .nh-header-shell .nh-preview-menu .nh-preview-menu__contact-panel .nh-btn-icon { display: inline-flex; align-items: center; flex: none; }
      .nh-header-shell .nh-preview-menu .nh-preview-menu__submenu[hidden] { display: none; }
      .nh-header-shell .nh-preview-menu li a {
        display: block; grid-column: 2; width: 100%; padding: 0;
        color: #131D37; text-align: center; text-decoration: none;
        font: 400 15px/1.7 "Be Vietnam Pro", sans-serif;
      }
       /* Only primary rows get icons; mirror the Tyrimai arrow's position on the left. */
       .nh-header-shell .nh-preview-menu #nh-preview-primary > li::before { content: none; }
       .nh-header-shell .nh-preview-menu #nh-preview-primary > li > a {
         display: grid; grid-column: 1 / -1; grid-template-columns: 10% 80% 10%;
         align-items: center; height: 100%;
       }
       .nh-header-shell .nh-preview-menu #nh-preview-primary .nh-preview-menu__item-label {
         grid-column: 2; text-align: center;
       }
       .nh-header-shell .nh-preview-menu #nh-preview-primary .nh-preview-menu__item-icon {
         display: block !important; grid-column: 1; grid-row: 1; justify-self: end;
         width: var(--nh-item-icon-size, 20px) !important; height: var(--nh-item-icon-size, 20px) !important; margin-right: 15px;
         object-fit: contain; fill: none; stroke: var(--nh-item-icon-color, #131D37); stroke-width: var(--nh-item-icon-stroke, 2);
         stroke-linecap: round; stroke-linejoin: round;
       }
       /* WordPress themes often reset inline SVGs in links, but not in buttons (Kontaktai). */
       .nh-header-shell .nh-preview-menu #nh-preview-primary > li > a > svg.nh-preview-menu__item-icon {
         fill: none !important; stroke: var(--nh-item-icon-color, #131D37) !important;
         stroke-width: var(--nh-item-icon-stroke, 2) !important; visibility: visible !important;
       }
       .nh-header-shell .nh-preview-menu .nh-preview-menu__side {
         display: flex; grid-column: 3; align-items: center; justify-content: center;
         width: 32px; height: 32px; justify-self: start; margin-left: 9px;
         border: 0; border-radius: 50%;
         background: rgb(241 219 208 / 57%); color: #A6735C;
       }
      .nh-header-shell .nh-preview-menu .nh-preview-menu__side svg {
        display: block; width: 15px; height: 15px; fill: currentColor;
      }
      .nh-header-shell .nh-preview-menu .nh-preview-menu__back .nh-preview-menu__side {
        width: 24px; height: 24px;
      }
      .nh-header-shell .nh-preview-menu .nh-preview-menu__back .nh-preview-menu__side svg {
        width: 12px; height: 12px;
      }
      .nh-header-shell .nh-preview-menu .nh-preview-menu__register {
        display: flex; justify-content: center; align-items: center; width: 100%;
        min-height: 51px; margin: 70px 0 0; padding: 12.75px 19.5px;
        border-radius: 55px; background: rgb(241 219 208 / 57%);
        color: #131D37; text-align: center; text-decoration: none;
        font: 400 15px/1.7 "Be Vietnam Pro", sans-serif;
      }
      @media (max-width: 767px) {
        .nh-header-shell .nh-preview-menu {
          right: calc(var(--nh-preview-menu-right, 8px) - 10px);
          width: calc(100vw - 20px); padding: 0 0 15px;
        }
        .nh-header-shell .nh-preview-menu li { grid-template-columns: 20% 60% 20%; height: 61.6px; padding: 5px 0; }
        .nh-header-shell .nh-preview-menu li:has(.nh-preview-menu__side) { height: 62.53px; }
        .nh-header-shell .nh-preview-menu li.nh-preview-menu__has-submenu { height: auto; padding: 0; }
         .nh-header-shell .nh-preview-menu .nh-preview-menu__expand {
           grid-template-columns: 20% 60% 20%; height: 62.53px; padding: 5px 0; font-size: 16px;
         }
         .nh-header-shell .nh-preview-menu #nh-preview-primary > li > a { grid-template-columns: 20% 60% 20%; }
        .nh-header-shell .nh-preview-menu .nh-preview-menu__back { height: 61.6px; font-size: 13px; }
        .nh-header-shell .nh-preview-menu .nh-preview-menu__category { grid-template-columns: 20% 60% 20%; font-size: 16px; }
        .nh-header-shell .nh-preview-menu .nh-preview-menu__long-link { height: auto; min-height: 61.6px; }
        .nh-header-shell .nh-preview-menu .nh-preview-menu__side { margin-left: 15px; }
        .nh-header-shell .nh-preview-menu li a { font-size: 16px; }
        .nh-header-shell .nh-preview-menu .nh-preview-menu__submenu li:first-child a { font-size: 13px; }
        .nh-header-shell .nh-preview-menu .nh-preview-menu__side svg { width: 16px; height: 16px; }
        .nh-header-shell .nh-preview-menu .nh-preview-menu__register {
          width: calc(100% - 20px); min-height: 42px; margin: 70px 10px 0;
          padding: 10px 30px; font-size: 13px;
        }
      }
      .nh-header-shell .nh-preview-menu a:hover,
      .nh-header-shell .nh-preview-menu a:focus-visible,
      .nh-header-shell .nh-preview-menu .nh-preview-menu__expand:hover,
      .nh-header-shell .nh-preview-menu .nh-preview-menu__expand:focus-visible,
      .nh-header-shell .nh-preview-menu .nh-preview-menu__contact-panel a:hover,
      .nh-header-shell .nh-preview-menu .nh-preview-menu__contact-panel a:focus-visible,
      .nh-header-shell .nh-preview-menu .nh-preview-menu__back:hover,
      .nh-header-shell .nh-preview-menu .nh-preview-menu__back:focus-visible,
      .nh-header-shell .nh-preview-menu .nh-preview-menu__category:hover,
      .nh-header-shell .nh-preview-menu .nh-preview-menu__category:focus-visible { color: #A6735C; }
      .nh-header-shell .nh-tablet-menu-toggle svg { width: 20px; height: 20px; }
    }
     @media (min-width: 1025px) { .nh-header-shell .nh-preview-menu { display: none !important; } }
     @media (prefers-reduced-motion: reduce) { .nh-header-shell .nh-preview-menu, .nh-header-shell .nh-preview-menu.is-leaving { transition: none; } }
/* Preserve the reference icon sizes when an administrator uploads replacement images. */
@media (max-width: 1024px) {
  .nh-header-shell .nh-preview-menu .nh-preview-menu__side .nh-preview-menu__icon-image {
    display: block; width: 15px; height: 15px; object-fit: contain;
  }
  .nh-header-shell .nh-preview-menu .nh-preview-menu__back .nh-preview-menu__icon-image {
    width: 12px; height: 12px;
  }
  .nh-header-shell .nh-preview-menu .nh-preview-menu__contact-panel .nh-preview-menu__icon-image {
    display: block; width: 16px; height: 16px; object-fit: contain;
  }
  .nh-header-shell .nh-preview-menu .nh-preview-menu__contact-toggle[aria-expanded="true"] .nh-preview-menu__side img,
  .nh-header-shell .nh-preview-menu .nh-preview-menu__contact-toggle[aria-expanded="true"] .nh-preview-menu__side svg {
    transform: rotate(180deg);
  }
  .nh-header-shell .nh-preview-menu .nh-preview-menu__register { gap: 8px; }
  .nh-header-shell .nh-preview-menu .nh-preview-menu__register--icon-left { flex-direction: row-reverse; }
  .nh-header-shell .nh-preview-menu .nh-preview-menu__register .nh-btn-icon { display: inline-flex; align-items: center; }
}
@media (max-width: 767px) {
  .nh-header-shell .nh-preview-menu .nh-preview-menu__side .nh-preview-menu__icon-image { width: 16px; height: 16px; }
  .nh-header-shell .nh-preview-menu .nh-preview-menu__back .nh-preview-menu__icon-image { width: 12px; height: 12px; }
}

/* WordPress preview menu backdrop, standalone-menu animation and standalone registration action. */
.nh-preview-page-backdrop {
  position: fixed; inset: 0; z-index: 999; background: rgb(19 29 55 / 52%);
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .32s ease, visibility .32s ease;
}
.nh-preview-page-backdrop.is-open { opacity: 1; visibility: visible; pointer-events: auto; }
body.nh-preview-menu-open { overflow: hidden; }
.nh-header-shell .nh-preview-menu__registration { display: block; width: 100%; }
.nh-header-shell .nh-preview-menu .nh-preview-menu__register { width: 100%; min-height: 42px; margin: 70px 0 0; padding: 15px 30px; }
.nh-preview-menu .nh-preview-menu__contact-panel:not([hidden]) a,
.nh-preview-menu .nh-preview-menu__submenu:not([hidden]) > ul > li {
  opacity: 0; transform: translateY(-12px);
  animation: nh-preview-menu-item-in .42s cubic-bezier(.22, .8, .25, 1) forwards;
}
.nh-preview-menu .nh-preview-menu__contact-panel:not([hidden]) a:nth-child(2),
.nh-preview-menu .nh-preview-menu__submenu:not([hidden]) > ul > li:nth-child(2) { animation-delay: .06s; }
.nh-preview-menu .nh-preview-menu__submenu:not([hidden]) > ul > li:nth-child(3) { animation-delay: .12s; }
.nh-preview-menu .nh-preview-menu__submenu:not([hidden]) > ul > li:nth-child(4) { animation-delay: .18s; }
.nh-preview-menu .nh-preview-menu__submenu:not([hidden]) > ul > li:nth-child(5) { animation-delay: .24s; }
.nh-preview-menu .nh-preview-menu__submenu:not([hidden]) > ul > li:nth-child(6) { animation-delay: .30s; }
.nh-preview-menu .nh-preview-menu__submenu:not([hidden]) > ul > li:nth-child(7) { animation-delay: .36s; }
.nh-preview-menu .nh-preview-menu__submenu:not([hidden]) > ul > li:nth-child(8) { animation-delay: .42s; }
.nh-preview-menu .nh-preview-menu__submenu:not([hidden]) > ul > li:nth-child(9) { animation-delay: .48s; }
@keyframes nh-preview-menu-item-in { from { opacity: 0; transform: translateY(-12px); } to { opacity: 1; transform: translateY(0); } }
/* Primary items use the exact research-submenu enter timing; exit travels upward. */
.nh-preview-menu.is-entering #nh-preview-primary:not([hidden]) > li {
  opacity: 0; transform: translateY(-12px);
  animation: nh-preview-menu-item-in .42s cubic-bezier(.22, .8, .25, 1) both;
  animation-delay: var(--nh-stagger, 0ms);
}
.nh-preview-menu.is-leaving #nh-preview-primary:not([hidden]) > li {
  opacity: 1; transform: translateY(0);
  animation: nh-preview-menu-item-out .42s cubic-bezier(.22, .8, .25, 1) both;
  animation-delay: var(--nh-stagger, 0ms);
}
@keyframes nh-preview-menu-item-out { from { opacity: 1; transform: translateY(0); } to { opacity: 0; transform: translateY(-12px); } }
@media (max-width: 767px) {
  .nh-header-shell .nh-preview-menu .nh-preview-menu__register {
    width: calc(100% - 20px); min-height: 42px; margin: 70px 10px 0;
    padding: 15px 30px; font-size: 13px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .nh-preview-page-backdrop { transition: none; }
  .nh-preview-menu .nh-preview-menu__contact-panel:not([hidden]) a,
  .nh-preview-menu .nh-preview-menu__submenu:not([hidden]) > ul > li,
  .nh-preview-menu.is-entering #nh-preview-primary:not([hidden]) > li,
  .nh-preview-menu.is-leaving #nh-preview-primary:not([hidden]) > li {
    opacity: 1; transform: none; animation: none;
  }
}

/* Tyrimai submenu icons mirror the primary menu's left column without moving centered labels. */
@media (max-width: 1024px) {
  .nh-header-shell .nh-preview-menu .nh-preview-menu__submenu li:has(> .nh-research-link)::before { content: none; }
  .nh-header-shell .nh-preview-menu .nh-preview-menu__submenu li > a.nh-research-link {
    display: grid; grid-column: 1 / -1; grid-template-columns: 10% 80% 10%;
    align-items: center; min-height: inherit; height: 100%;
  }
  .nh-header-shell .nh-preview-menu .nh-preview-menu__submenu .nh-research-label {
    grid-column: 2; grid-row: 1; text-align: center;
  }
  .nh-header-shell .nh-preview-menu .nh-preview-menu__submenu .nh-research-icon {
    display: block !important; grid-column: 1; grid-row: 1; justify-self: end;
    width: var(--nh-item-icon-size, 20px) !important;
    height: var(--nh-item-icon-size, 20px) !important; margin-right: 15px;
    object-fit: contain;
  }
  .nh-header-shell .nh-preview-menu .nh-preview-menu__submenu svg.nh-research-icon {
    fill: none !important; stroke: var(--nh-item-icon-color, #131D37) !important;
    stroke-width: var(--nh-item-icon-stroke, 2) !important;
    stroke-linecap: round; stroke-linejoin: round; visibility: visible !important;
  }
  @media (max-width: 767px) {
    .nh-header-shell .nh-preview-menu .nh-preview-menu__submenu li > a.nh-research-link {
      grid-template-columns: 20% 60% 20%;
    }
  }
}
