/* Header navigation, mobile panel and live search. */
.rfd-overlay-open {
  overflow: hidden;
  overscroll-behavior: none;
}

.rfd-desktop-search-toggle,
.rfd-mobile-menu-toggle,
.rfd-mobile-menu-close,
.rfd-search-modal-close,
.rfd-submenu-toggle,
.rfd-search-clear {
  appearance: none;
  border: 0;
  font: inherit;
}

.rfd-desktop-search-toggle,
.rfd-mobile-menu-toggle,
.rfd-mobile-menu-close,
.rfd-search-modal-close,
.rfd-submenu-toggle,
.rfd-search-clear,
.rfd-live-search a {
  -webkit-tap-highlight-color: transparent;
}

.rfd-desktop-search-toggle:focus-visible,
.rfd-mobile-menu-toggle:focus-visible,
.rfd-mobile-menu-close:focus-visible,
.rfd-search-modal-close:focus-visible,
.rfd-submenu-toggle:focus-visible,
.rfd-search-clear:focus-visible,
.rfd-live-search a:focus-visible,
.rfd-mobile-menu-link:focus-visible,
.rfd-mobile-consultation:focus-visible,
.rfd-search-input:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--rfd-blue) 34%, transparent);
  outline-offset: 3px;
}

.rfd-desktop-search-toggle {
  display: inline-grid;
  width: 46px;
  height: 46px;
  flex: 0 0 46px;
  place-items: center;
  margin-inline-start: 8px;
  border: 1px solid var(--rfd-border);
  border-radius: 11px;
  background: #fff;
  color: var(--rfd-navy);
  cursor: pointer;
  transition: border-color 220ms ease, color 220ms ease, background-color 220ms ease;
}

.rfd-desktop-search-toggle:hover {
  border-color: color-mix(in srgb, var(--rfd-blue) 45%, var(--rfd-border));
  background: color-mix(in srgb, var(--rfd-blue) 5%, #fff);
  color: var(--rfd-blue);
}

.rfd-desktop-search-toggle svg,
.rfd-search-leading-icon svg {
  width: 21px;
  height: 21px;
}

.rfd-theme-active [data-section="section-hb-menu-1"] {
  align-items: center;
}

.rfd-mobile-menu-toggle {
  display: none;
  width: 48px;
  height: 48px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  padding: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--rfd-navy);
  cursor: pointer;
}

.rfd-mobile-menu-toggle > span[aria-hidden="true"] {
  width: 24px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
}

.rfd-mobile-menu-backdrop,
.rfd-search-modal,
.rfd-search-modal-backdrop,
.rfd-mobile-menu-panel {
  position: fixed;
  inset: 0;
}

.rfd-mobile-menu-backdrop {
  z-index: 100010;
  background: rgba(4, 17, 30, 0.64);
  opacity: 0;
  cursor: pointer;
  transition: opacity 240ms ease;
}

.rfd-mobile-menu-backdrop.is-open {
  opacity: 1;
}

.rfd-mobile-menu-panel {
  right: 0;
  left: auto;
  z-index: 100020;
  display: flex;
  width: min(92vw, 430px);
  max-width: 100%;
  min-width: 0;
  height: 100dvh;
  overflow: hidden;
  flex-direction: column;
  background: #fff;
  box-shadow: -18px 0 52px rgba(4, 17, 30, 0.22);
  color: var(--rfd-text);
  opacity: 0;
  transform: translate3d(104%, 0, 0);
  transition: transform 260ms ease, opacity 220ms ease;
}

.rfd-mobile-menu-panel.is-open {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

.admin-bar .rfd-mobile-menu-panel {
  top: 32px;
  height: calc(100dvh - 32px);
}

.rfd-mobile-panel-header {
  display: flex;
  min-height: 70px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 16px 10px 20px;
  border-bottom: 1px solid var(--rfd-border);
}

.rfd-mobile-panel-brand {
  min-width: 0;
  font-size: 1.05rem;
  font-weight: 800;
}

.rfd-mobile-panel-brand a {
  color: var(--rfd-navy);
  text-decoration: none;
}

.rfd-mobile-panel-brand .custom-logo-link {
  display: flex;
  align-items: center;
}

.rfd-mobile-panel-brand .custom-logo {
  width: auto;
  max-width: min(200px, 58vw);
  max-height: 52px;
  object-fit: contain;
}

.rfd-mobile-menu-close,
.rfd-search-modal-close {
  display: inline-grid;
  width: 46px;
  height: 46px;
  flex: 0 0 46px;
  place-items: center;
  padding: 0;
  border-radius: 50%;
  background: color-mix(in srgb, var(--rfd-navy) 5%, #fff);
  color: var(--rfd-navy);
  cursor: pointer;
}

.rfd-mobile-menu-close:hover,
.rfd-search-modal-close:hover {
  background: color-mix(in srgb, var(--rfd-blue) 10%, #fff);
  color: var(--rfd-blue);
}

.rfd-mobile-menu-close svg,
.rfd-search-modal-close svg,
.rfd-search-clear svg,
.rfd-submenu-toggle svg {
  width: 22px;
  height: 22px;
}

.rfd-mobile-panel-scroll {
  min-height: 0;
  flex: 1;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 18px 20px 24px;
}

.rfd-mobile-primary-navigation {
  margin-top: 17px;
}

.rfd-mobile-primary-navigation ul,
.rfd-mobile-primary-navigation li {
  margin: 0;
  padding: 0;
  list-style: none;
}

.rfd-mobile-menu > .rfd-mobile-menu-item {
  border-bottom: 1px solid color-mix(in srgb, var(--rfd-border) 78%, transparent);
}

.rfd-mobile-menu-row {
  display: flex;
  min-height: 52px;
  align-items: stretch;
}

.rfd-mobile-menu-link {
  display: flex;
  min-width: 0;
  flex: 1;
  align-items: center;
  padding: 11px 8px;
  color: var(--rfd-navy);
  font-size: 1rem;
  font-weight: 720;
  line-height: 1.35;
  text-decoration: none;
}

.rfd-mobile-menu-link:hover {
  color: var(--rfd-blue);
}

.rfd-mobile-menu-item.current-menu-item > .rfd-mobile-menu-row > .rfd-mobile-menu-link,
.rfd-mobile-menu-item.current-menu-ancestor > .rfd-mobile-menu-row > .rfd-mobile-menu-link,
.rfd-mobile-menu-link[aria-current="page"] {
  position: relative;
  color: var(--rfd-blue);
}

.rfd-mobile-menu-item.current-menu-item > .rfd-mobile-menu-row > .rfd-mobile-menu-link::before,
.rfd-mobile-menu-link[aria-current="page"]::before {
  position: absolute;
  top: 14px;
  bottom: 14px;
  left: 0;
  width: 3px;
  border-radius: 3px;
  background: var(--rfd-blue);
  content: "";
}

.rfd-submenu-toggle {
  display: inline-grid;
  width: 52px;
  min-height: 52px;
  flex: 0 0 52px;
  place-items: center;
  padding: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--rfd-navy);
  cursor: pointer;
}

.rfd-submenu-toggle:hover {
  background: color-mix(in srgb, var(--rfd-blue) 7%, #fff);
  color: var(--rfd-blue);
}

.rfd-submenu-toggle svg {
  transition: transform 220ms ease;
}

.rfd-submenu-toggle[aria-expanded="true"] svg {
  transform: rotate(180deg);
}

.rfd-mobile-submenu {
  padding: 2px 0 10px 14px !important;
}

.rfd-mobile-submenu .rfd-mobile-menu-row {
  min-height: 48px;
}

.rfd-mobile-submenu .rfd-mobile-menu-link {
  min-height: 48px;
  padding: 9px 8px 9px 15px;
  border-left: 1px solid color-mix(in srgb, var(--rfd-blue) 22%, var(--rfd-border));
  color: #35495f;
  font-size: 0.93rem;
  font-weight: 620;
}

.rfd-mobile-panel-footer {
  padding: 14px 20px max(18px, env(safe-area-inset-bottom));
  border-top: 1px solid var(--rfd-border);
  background: #fff;
}

.rfd-mobile-consultation {
  display: flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 18px;
  border-radius: 11px;
  background: var(--rfd-blue);
  box-shadow: 0 10px 24px color-mix(in srgb, var(--rfd-blue) 26%, transparent);
  color: #fff;
  font-weight: 780;
  text-align: center;
  text-decoration: none;
}

.rfd-mobile-consultation:hover {
  background: color-mix(in srgb, var(--rfd-blue) 87%, #000);
  color: #fff;
}

.rfd-live-search {
  position: relative;
  width: 100%;
  margin: 0;
}

.rfd-search-input-shell {
  position: relative;
  display: flex;
  min-width: 0;
  align-items: center;
}

.rfd-search-leading-icon {
  position: absolute;
  left: 15px;
  z-index: 1;
  display: inline-flex;
  color: var(--rfd-blue);
  pointer-events: none;
}

.rfd-search-input[type="search"] {
  width: 100%;
  height: 54px;
  min-width: 0;
  margin: 0;
  padding: 11px 92px 11px 46px;
  border: 1px solid color-mix(in srgb, var(--rfd-navy) 18%, #dbe5ee);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 5px 16px rgba(7, 24, 39, 0.045);
  color: var(--rfd-text);
  font: inherit;
  line-height: 1.3;
  outline: 0;
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.rfd-search-input[type="search"]:focus {
  border-color: var(--rfd-blue);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--rfd-blue) 14%, transparent);
}

.rfd-search-input::-webkit-search-cancel-button {
  display: none;
}

.rfd-search-clear {
  position: absolute;
  right: 42px;
  z-index: 2;
  display: inline-grid;
  width: 42px;
  height: 42px;
  place-items: center;
  padding: 0;
  border-radius: 8px;
  background: transparent;
  color: #60758a;
  cursor: pointer;
}

.rfd-search-clear:hover {
  color: var(--rfd-blue);
}

.rfd-search-spinner {
  position: absolute;
  right: 16px;
  width: 18px;
  height: 18px;
  border: 2px solid color-mix(in srgb, var(--rfd-blue) 18%, #fff);
  border-top-color: var(--rfd-blue);
  border-radius: 50%;
  animation: rfd-search-spin 700ms linear infinite;
}

@keyframes rfd-search-spin {
  to { transform: rotate(360deg); }
}

.rfd-search-results {
  position: absolute;
  top: calc(100% + 9px);
  right: 0;
  left: 0;
  z-index: 100;
  overflow: hidden;
  border: 1px solid var(--rfd-border);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 18px 46px rgba(7, 24, 39, 0.16);
}

.rfd-search-listbox {
  max-height: min(430px, 58vh);
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 7px;
}

.rfd-search-result {
  display: grid;
  min-width: 0;
  grid-template-columns: 62px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 9px;
  border-radius: 10px;
  color: var(--rfd-text);
  text-decoration: none;
}

.rfd-search-result:hover,
.rfd-search-result.is-active {
  background: color-mix(in srgb, var(--rfd-blue) 7%, #fff);
  color: var(--rfd-text);
}

.rfd-search-result-media {
  display: grid;
  width: 62px;
  height: 54px;
  overflow: hidden;
  place-items: center;
  border-radius: 8px;
  background: linear-gradient(140deg, #e7f0ff, #eefafa);
}

.rfd-search-result-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.rfd-search-result-fallback {
  display: grid;
  width: 100%;
  height: 100%;
  place-items: center;
  color: var(--rfd-blue);
}

.rfd-search-result-fallback svg {
  width: 28px;
  height: 28px;
}

.rfd-search-result-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 3px;
}

.rfd-search-result-copy strong {
  overflow: hidden;
  color: var(--rfd-navy);
  font-size: 0.96rem;
  line-height: 1.28;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rfd-search-result-type {
  color: var(--rfd-blue);
  font-size: 0.68rem;
  font-weight: 780;
  letter-spacing: 0.08em;
  line-height: 1.2;
  text-transform: uppercase;
}

.rfd-search-result-excerpt {
  display: -webkit-box;
  overflow: hidden;
  color: var(--rfd-muted);
  font-size: 0.78rem;
  line-height: 1.35;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
}

.rfd-search-result mark {
  border-radius: 2px;
  background: color-mix(in srgb, var(--rfd-orange) 28%, #fff);
  color: inherit;
}

.rfd-search-no-results {
  margin: 0;
  padding: 22px 18px;
  color: var(--rfd-muted);
  text-align: center;
}

.rfd-search-view-all {
  display: flex;
  min-height: 49px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 16px;
  border-top: 1px solid var(--rfd-border);
  background: color-mix(in srgb, var(--rfd-blue) 4%, #fff);
  color: var(--rfd-blue);
  font-size: 0.9rem;
  font-weight: 760;
  text-decoration: none;
}

.rfd-search-modal {
  z-index: 100030;
  display: grid;
  overflow-x: hidden;
  overflow-y: auto;
  place-items: start center;
  padding: clamp(78px, 10vh, 130px) 20px 40px;
  opacity: 0;
  transition: opacity 220ms ease;
}

.rfd-search-modal.is-open {
  opacity: 1;
}

.rfd-search-modal-backdrop {
  z-index: 0;
  background: rgba(4, 17, 30, 0.74);
  backdrop-filter: blur(3px);
  cursor: pointer;
}

.rfd-search-dialog {
  position: relative;
  z-index: 1;
  width: min(760px, 100%);
  padding: clamp(28px, 5vw, 48px);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 28px 80px rgba(4, 17, 30, 0.28);
  opacity: 0;
  transform: translateY(-14px) scale(0.985);
  transition: transform 220ms ease, opacity 220ms ease;
}

.rfd-search-modal.is-open .rfd-search-dialog {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.rfd-search-dialog .rfd-eyebrow {
  margin: 0 50px 8px 0;
}

.rfd-search-dialog h2 {
  margin: 0 50px 24px 0;
  color: var(--rfd-navy);
  font-size: clamp(1.65rem, 4vw, 2.35rem);
}

.rfd-search-modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
}

[hidden] {
  display: none !important;
}

@media (max-width: 921px) {
  .rfd-desktop-search-toggle {
    display: none;
  }

  .rfd-theme-active .ast-mobile-header-wrap .ast-primary-header-bar,
  .rfd-theme-active .ast-primary-header-bar .site-primary-header-wrap {
    min-height: 64px !important;
  }

  .rfd-theme-active .ast-mobile-header-wrap .custom-logo {
    width: auto;
    max-height: 52px;
    object-fit: contain;
  }

  .rfd-navigation-ready [data-section="section-header-mobile-trigger"] .ast-button-wrap,
  .rfd-navigation-ready .ast-mobile-popup-drawer {
    display: none !important;
  }

  .rfd-navigation-ready .rfd-mobile-menu-toggle {
    display: flex;
  }

  .rfd-mobile-menu-panel .rfd-search-results {
    position: static;
    margin-top: 9px;
    box-shadow: 0 10px 28px rgba(7, 24, 39, 0.12);
  }

  .rfd-mobile-menu-panel .rfd-search-listbox {
    max-height: 310px;
  }
}

@media (max-width: 782px) {
  .admin-bar .rfd-mobile-menu-panel {
    top: 46px;
    height: calc(100dvh - 46px);
  }
}

@media (max-width: 480px) {
  .admin-bar .rfd-mobile-menu-panel {
    top: 0;
    height: 100dvh;
  }

  .rfd-search-modal {
    padding: 58px 12px 24px;
  }

  .rfd-search-dialog {
    padding: 28px 18px 24px;
    border-radius: 16px;
  }

  .rfd-search-dialog h2 {
    margin-right: 42px;
    font-size: 1.55rem;
  }

  .rfd-search-modal-close {
    top: 12px;
    right: 12px;
  }

  .rfd-search-result {
    grid-template-columns: 54px minmax(0, 1fr);
    gap: 10px;
  }

  .rfd-search-result-media {
    width: 54px;
    height: 50px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .rfd-mobile-menu-backdrop,
  .rfd-mobile-menu-panel,
  .rfd-search-modal,
  .rfd-search-dialog,
  .rfd-submenu-toggle svg,
  .rfd-search-input[type="search"] {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }

  .rfd-search-spinner {
    animation-duration: 1.5s;
  }
}
