/* XMS Theme 1.3.75 — one header layout, copied from the homepage on all pages.
   This layer is intentionally last so legacy inner-page header overrides cannot
   produce different logo sizes, nav positions, floating widths, and colors. */
body.xms-theme { --xms-unified-navy:#0c2348; }
body.xms-theme .xms-site-header,
body.xms-theme.xms-sticky .xms-site-header,
body.xms-theme.xms-transparent .xms-site-header {
  left:50%;right:auto;
  width:min(calc(100% - 65px),1280px);
  max-width:1280px;
  min-height:0;
  transform:translateX(-50%);
  border-radius:22px;
  border:1px solid rgba(255,255,255,.72);
  padding:2px 13px;
  box-shadow:0 12px 40px rgba(4,28,53,.15);
  background:rgba(247,251,255,.94)!important;
  color:var(--xms-unified-navy)!important;
  backdrop-filter:blur(16px);
  -webkit-backdrop-filter:blur(16px);
  z-index:99;
  overflow:visible;
  font-family:'Inter',Arial,sans-serif;
}
/* On study pages the header floats over the top section, matching Home. */
body.xms-theme:is(.xms-home-study,.xms-inner-study) .xms-site-header,
body.xms-theme:is(.xms-home-study,.xms-inner-study).xms-sticky .xms-site-header {
  position:absolute;
  top:22px;
  margin:0;
}
/* On regular page/post/archive templates, leave content in normal flow. */
body.xms-theme:not(.xms-home-study):not(.xms-inner-study) .xms-site-header {
  position:relative;
  top:auto;
  margin:22px 0 15px;
}
body.xms-theme.xms-sticky:not(.xms-home-study):not(.xms-inner-study) .xms-site-header {
  position:sticky;
  top:22px;
}
body.xms-theme .xms-site-header .xms-header-inner {
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  flex-wrap:nowrap!important;
  gap:12px!important;
  width:100%!important;
  max-width:100%!important;
  margin-inline:auto!important;
  min-height:108px!important;
  padding:0 7px!important;
}
body.xms-theme .xms-site-header .xms-brand {
  flex:0 0 auto!important;
  width:auto!important;
  order:0!important;
  margin:0!important;
  padding:0 15px 0 0!important;
  border-right:1px solid rgba(132,169,199,.29)!important;
}
body.xms-theme .xms-site-header .xms-brand a{display:flex;align-items:center}
body.xms-theme .xms-site-header .xms-logo-img,
body.xms-theme .xms-site-header .xms-logo-img.xms-study-brand-logo {
  display:block;
  width:228px!important;
  max-width:228px!important;
  max-height:100px!important;
  height:auto!important;
  object-fit:contain!important;
  filter:none!important;
}
body.xms-theme .xms-site-header .xms-primary-nav {
  display:block;
  flex:0 1 auto;
  min-width:0;
  width:auto;
  order:1!important;
  position:static;
  margin:0 0 0 auto!important;
  padding:0!important;
  background:transparent!important;
  box-shadow:none;
  color:var(--xms-unified-navy)!important;
}
body.xms-theme .xms-site-header .xms-menu {
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:clamp(10px,1.3vw,18px);
  flex-wrap:nowrap;
}
body.xms-theme .xms-site-header .xms-menu > li {
  border:0!important;
  min-width:0;
}
body.xms-theme .xms-site-header .xms-menu > li > a {
  font-family:'Inter',Arial,sans-serif;
  font-size:12px!important;
  font-weight:600!important;
  letter-spacing:.01em!important;
  line-height:1.25!important;
  text-transform:uppercase!important;
  white-space:nowrap;
  padding:13px 0!important;
  color:#173657!important;
  border:0!important;
}
body.xms-theme .xms-site-header .xms-menu > li > a:hover,
body.xms-theme .xms-site-header .xms-menu > li > a:focus-visible,
body.xms-theme .xms-site-header .xms-menu > li.current-menu-item > a,
body.xms-theme .xms-site-header .xms-menu > li.current_page_item > a {
  color:#327fff!important;
  border:0!important;
}
body.xms-theme .xms-site-header .xms-menu .sub-menu {
  background:#f6fbff;
  border:1px solid #e3effa;
  border-radius:13px;
  box-shadow:0 15px 35px rgba(45,100,151,.15);
  color:var(--xms-unified-navy);
}
body.xms-theme .xms-site-header .xms-menu .sub-menu a {
  color:#173657!important;
  text-transform:none;
  font-size:12px;
  font-weight:600;
}
body.xms-theme .xms-site-header .xms-menu .sub-menu a:hover{background:#eaf5ff;color:#327fff!important}
body.xms-theme .xms-site-header .xms-menu-toggle {
  order:2!important;
  margin-left:auto!important;
  color:var(--xms-unified-navy)!important;
  border-color:#bfd8ef!important;
  border-radius:11px!important;
  background:rgba(255,255,255,.45)!important;
}
/* The original header CTA was removed; keep it hidden on every page. */
body.xms-theme .xms-site-header .xms-header-cta{display:none!important}
@media(min-width:1101px){
  body.xms-theme .xms-site-header .xms-menu-toggle{display:none!important}
}
@media(max-width:1100px){
  body.xms-theme .xms-site-header,
  body.xms-theme.xms-sticky .xms-site-header {width:calc(100% - 54px);}
  body.xms-theme .xms-site-header .xms-header-inner {min-height:90px!important;gap:10px!important}
  body.xms-theme .xms-site-header .xms-logo-img,
  body.xms-theme .xms-site-header .xms-logo-img.xms-study-brand-logo{
    width:184px!important;max-width:184px!important;max-height:82px!important;
  }
  body.xms-theme .xms-site-header .xms-brand{border:0!important;padding:0!important}
  body.xms-theme .xms-site-header .xms-menu-toggle{display:flex!important;}
  body.xms-theme .xms-site-header .xms-primary-nav {
    display:none!important;
    position:absolute!important;
    top:calc(100% + 9px)!important;
    left:0!important;right:0!important;
    width:100%!important;
    margin:0!important;
    padding:13px 20px!important;
    background:#f4faff!important;
    border:1px solid #dceeff;
    border-radius:17px;
    box-shadow:0 18px 36px rgba(45,100,151,.15);
    max-height:calc(100vh - 130px);
    overflow-y:auto;
  }
  body.xms-theme .xms-site-header .xms-primary-nav.is-open{display:block!important}
  body.xms-theme .xms-site-header .xms-menu{display:block!important}
  body.xms-theme .xms-site-header .xms-menu > li{border-bottom:1px solid #deebf9!important}
  body.xms-theme .xms-site-header .xms-menu > li:last-child{border-bottom:0!important}
  body.xms-theme .xms-site-header .xms-menu > li > a {
    width:100%;padding:13px 0!important;font-size:13px!important;
    white-space:normal!important;
  }
  body.xms-theme .xms-site-header .xms-menu .sub-menu{position:static!important;box-shadow:none;border:0;border-radius:9px;background:#edf5ff;max-width:100%;width:100%}
  body.xms-theme .xms-site-header .xms-menu li:hover > .sub-menu,
  body.xms-theme .xms-site-header .xms-menu li:focus-within > .sub-menu{display:none}
  body.xms-theme .xms-site-header .xms-menu li.submenu-open > .sub-menu{display:block}
}
@media(max-width:767px){
  body.xms-theme .xms-site-header,
  body.xms-theme.xms-sticky .xms-site-header{width:calc(100% - 46px);border-radius:19px;padding:2px 9px}
  body.xms-theme:is(.xms-home-study,.xms-inner-study) .xms-site-header{top:15px}
  body.xms-theme:not(.xms-home-study):not(.xms-inner-study) .xms-site-header{margin-top:15px}
  body.xms-theme .xms-site-header .xms-header-inner{min-height:78px!important;padding:0 4px!important}
  body.xms-theme .xms-site-header .xms-logo-img,
  body.xms-theme .xms-site-header .xms-logo-img.xms-study-brand-logo{width:168px!important;max-width:168px!important;max-height:70px!important}
  body.xms-theme .xms-site-header .xms-menu-toggle{width:42px;height:42px;flex:0 0 42px}
}
@media(max-width:480px){
  body.xms-theme .xms-site-header,
  body.xms-theme.xms-sticky .xms-site-header{width:calc(100% - 28px);padding:2px 8px}
  body.xms-theme .xms-site-header .xms-header-inner{min-height:72px!important}
  body.xms-theme .xms-site-header .xms-logo-img,
  body.xms-theme .xms-site-header .xms-logo-img.xms-study-brand-logo{width:min(154px,45vw)!important;max-width:min(154px,45vw)!important;max-height:60px!important}
}
/* Respect the WordPress toolbar rather than letting the floating header cover it. */
@media(min-width:783px){
  body.admin-bar.xms-theme:is(.xms-home-study,.xms-inner-study) .xms-site-header,
  body.admin-bar.xms-theme:is(.xms-home-study,.xms-inner-study).xms-sticky .xms-site-header{top:54px!important}
  body.admin-bar.xms-theme.xms-sticky:not(.xms-home-study):not(.xms-inner-study) .xms-site-header{top:54px!important}
}
@media(max-width:782px){
  body.admin-bar.xms-theme:is(.xms-home-study,.xms-inner-study) .xms-site-header,
  body.admin-bar.xms-theme:is(.xms-home-study,.xms-inner-study).xms-sticky .xms-site-header{top:61px!important}
  body.admin-bar.xms-theme.xms-sticky:not(.xms-home-study):not(.xms-inner-study) .xms-site-header{top:61px!important}
}
