/* `overflow-x: hidden` turns the page root into a scroll container and breaks
   sticky positioning. Clip horizontal overflow without changing the page's
   vertical scroll container. */
html,
body {
  overflow-x: clip !important;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(203, 213, 225, .8);
  background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(14px);
  color: #091922;
  font-family: "Open Sans", Arial, sans-serif;
}

.site-header-inner {
  width: min(1280px, calc(100% - 40px));
  min-height: 76px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.site-header-brand { display: inline-flex; flex: 0 0 auto; }
.site-header-logo { display: block; width: auto; height: 38px; }

.site-desktop-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-left: auto;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

.site-desktop-nav a {
  color: #20343f;
  text-decoration: none;
  transition: color .2s ease;
}

.site-desktop-nav a:hover,
.site-desktop-nav a[aria-current="page"] { color: #224db7; }

.site-nav-dropdown {
  position: relative;
  align-self: stretch;
  display: flex;
  align-items: center;
}

.site-nav-trigger {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.site-nav-trigger svg { transition: transform .2s ease; }

.site-nav-menu {
  position: absolute;
  top: 100%;
  left: -22px;
  width: 350px;
  padding: 10px;
  border: 1px solid #dce4e9;
  background: #fff;
  box-shadow: 0 22px 55px rgba(9, 25, 34, .18);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity .18s ease, visibility .18s ease, transform .18s ease;
}

.site-nav-dropdown:hover .site-nav-menu,
.site-nav-dropdown:focus-within .site-nav-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.site-nav-dropdown:hover .site-nav-trigger svg,
.site-nav-dropdown:focus-within .site-nav-trigger svg { transform: rotate(180deg); }

.site-nav-menu a {
  display: block;
  padding: 10px 12px;
  border-bottom: 1px solid #edf1f4;
  white-space: normal;
}

.site-nav-menu a:last-child { border-bottom: 0; }
.site-nav-menu a:hover { background: #f4f7fa; }
.site-nav-menu strong { display: block; color: #091922; font-size: 13px; line-height: 1.35; }
.site-nav-menu span { display: block; margin-top: 3px; color: #64748b; font-size: 11px; font-weight: 600; line-height: 1.4; }

.site-header-actions { display: flex; align-items: center; gap: 10px; }

.site-header-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 16px;
  background: #224db7;
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
}

.site-header-cta:hover { background: #17398c; }

.site-menu-toggle,
.site-menu-close {
  border: 1px solid #dce4e9;
  background: #fff;
  color: #091922;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.site-menu-toggle { display: none; }
.site-menu-close { display: inline-flex; }

.site-mobile-panel {
  position: fixed;
  inset: 0;
  z-index: 70;
  background: rgba(9, 25, 34, .5);
  transform: translateX(100%);
  transition: transform .25s ease;
  font-family: "Open Sans", Arial, sans-serif;
}

.site-mobile-panel.is-open,
.site-mobile-panel:not(.translate-x-full) { transform: translateX(0); }

.site-mobile-drawer {
  position: absolute;
  top: 0;
  right: 0;
  width: min(86vw, 390px);
  height: 100%;
  overflow-y: auto;
  background: #fff;
  box-shadow: -18px 0 50px rgba(9, 25, 34, .25);
}

.site-mobile-head {
  height: 68px;
  padding: 0 18px;
  border-bottom: 1px solid #e5ebef;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-mobile-logo { width: auto; height: 34px; }
.site-mobile-nav { display: flex; flex-direction: column; padding: 16px 20px 28px; }

.site-mobile-nav a {
  padding: 13px 2px;
  border-bottom: 1px solid #edf1f4;
  color: #091922;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.site-mobile-nav a:hover,
.site-mobile-nav a[aria-current="page"] { color: #224db7; }

.site-mobile-group { border-bottom: 1px solid #edf1f4; }
.site-mobile-nav .site-mobile-group-title { border-bottom: 0; color: #224db7; }
.site-mobile-subnav { padding: 0 0 9px 13px; border-left: 2px solid #dbe5ff; }
.site-mobile-nav .site-mobile-subnav a { padding: 8px 8px; border-bottom: 0; color: #475569; font-size: 12px; }

.site-mobile-nav .site-mobile-cta {
  margin-top: 16px;
  border: 0;
  background: #224db7;
  color: #fff;
  text-align: center;
}

@media (max-width: 1380px) and (min-width: 1121px) {
  .site-header-inner { width: min(1320px, calc(100% - 28px)); gap: 14px; }
  .site-desktop-nav { gap: 13px; font-size: 12px; }
  .site-header-actions { gap: 8px; }
  .site-header-cta { padding: 0 12px; font-size: 12px; }
}

@media (max-width: 1120px) and (min-width: 768px) {
  .site-header-inner {
    width: min(100% - 28px, 1080px);
    min-height: 112px;
    padding: 9px 0 8px;
    flex-wrap: wrap;
    gap: 5px 14px;
  }

  .site-desktop-nav {
    order: 3;
    flex: 0 0 100%;
    width: 100%;
    min-height: 34px;
    margin-left: 0;
    gap: clamp(8px, 1.25vw, 15px);
    font-size: 12px;
  }

  .site-header-actions { margin-left: auto; }
  .site-header-cta { min-height: 38px; padding: 0 14px; font-size: 12px; }
  .site-nav-dropdown { align-self: center; }
  .site-nav-menu { top: calc(100% + 10px); }
}

@media (max-width: 767.98px) {
  .site-desktop-nav { display: none; }
  .site-menu-toggle { display: inline-flex; }
}

@media (max-width: 600px) {
  .site-header-inner { width: min(100% - 28px, 1280px); min-height: 68px; }
  .site-header-logo { height: 33px; }
  .site-header-cta { display: none; }
}
