/* Finvec native header baseline. This loads after the historical theme CSS.
   Only the approved desktop navigation has a horizontal layout; the existing
   keyboard-accessible mobile menu keeps its normal open/close behaviour.
   Shared CMS design overrides are injected after this stylesheet. */
@media (min-width:781px) {
  .site-header .header-row {
    display:flex;
    flex-direction:row;
    align-items:center;
    justify-content:space-between;
    gap:clamp(18px,3vw,48px);
    min-height:95px;
  }
  .site-header .header-row > .brand {align-self:center;flex:0 0 auto;min-width:0;}
  .site-header .header-row > .nav-links {display:block;align-self:center;margin-left:auto;}
  .site-header .nav-items {
    display:flex;
    flex-direction:row;
    align-items:center;
    justify-content:flex-end;
    flex-wrap:wrap;
    gap:clamp(16px,2vw,30px);
    padding:0;
    margin:0;
    list-style:none;
  }
  .site-header .nav-items > li {display:block;flex:0 0 auto;list-style:none;}
  .site-header .nav-items > li > a,
  .site-header .nav-items .nav-group summary {white-space:nowrap;line-height:1.45;}
}
@media (max-width:780px) {
  .site-header .header-row {display:flex;align-items:center;justify-content:space-between;}
  .site-header .menu-toggle {display:flex;margin-left:auto;}
  .site-header .nav-links:not(.is-open) {display:none;}
  .site-header .nav-links.is-open {display:block;}
  .site-header .nav-items {
    display:flex;
    flex-direction:column;
    align-items:stretch;
    justify-content:flex-start;
    list-style:none;
    margin:0;
    padding:0;
    gap:0;
  }
  .site-header .nav-items > li {list-style:none;display:block;}
}
