/* Keep résumé in the primary tab sequence; search is its adjacent control. */
.version-editorial .site-header{
  justify-content:center;
  gap:clamp(12px,2.1vw,31px);
}
.version-editorial .site-header .site-nav{
  width:auto;
  max-width:calc(100% - 80px);
  margin:0;
  gap:clamp(17px,2.6vw,44px);
  justify-content:center;
  flex-shrink:1;
}
.version-editorial .site-header .site-nav a{flex:0 0 auto}
/* Inline search is anchored to the icon, not to the full-width header. */
.site-header .site-search{
  position:relative;
  top:auto;
  right:auto;
  bottom:auto;
  left:auto;
  display:flex;
  align-items:center;
  flex:0 0 42px;
  width:42px;
  height:42px;
  transform:none;
  padding:0;
  margin:0;
  isolation:auto;
  box-shadow:none;
  background:transparent;
  overflow:visible;
  pointer-events:auto;
  z-index:45;
}
.site-header .site-search.is-open{
  width:42px;
  background:transparent;
  box-shadow:none;
}
.site-header .site-search__trigger{
  position:relative;
  z-index:3;
  order:1;
  height:42px;
  width:42px;
  color:var(--ink);
}
.site-header .site-search.is-open .site-search__trigger{
  color:var(--blue);
}
.site-header .site-search__field{
  position:absolute;
  z-index:2;
  left:calc(100% + 12px);
  right:auto;
  top:50%;
  width:min(278px,var(--search-room,278px));
  max-width:none;
  height:38px;
  min-width:0;
  opacity:0;
  background:transparent;
  border:0;
  border-bottom:1px solid var(--ink);
  transform:translateY(-50%) scaleX(0);
  transform-origin:left center;
  transition:transform .28s cubic-bezier(.22,.77,.26,1),opacity .16s ease;
  pointer-events:none;
  overflow:hidden;
}
.site-header .site-search.is-open .site-search__field{
  width:min(278px,var(--search-room,278px));
  opacity:1;
  transform:translateY(-50%) scaleX(1);
  pointer-events:auto;
  border-bottom-color:var(--ink);
}
.site-header .site-search__input{
  height:37px;
  width:100%;
  font-size:14px;
  line-height:1.5;
  padding:0 8px 0 2px;
}
.site-header .site-search__results{
  position:absolute;
  z-index:60;
  top:calc(100% + 9px);
  left:calc(100% + 12px);
  right:auto;
  width:min(328px,var(--search-room,328px));
  max-height:min(52vh,365px);
  padding:7px 0 4px;
  box-shadow:0 12px 32px #10283a19;
}
.site-header .site-search__group-title{
  padding:9px 14px 4px;
  font-size:9px;
}
.site-header .site-search__result{
  padding:9px 14px;
  gap:8px;
}
.site-header .site-search__title{
  font-size:13px;
  line-height:1.35;
}
.site-header .site-search__meta{
  font-size:10px;
}
.site-header .site-search__status{padding:14px;font-size:12px}
.site-header .site-search__all{padding:11px 14px 9px;font-size:11px}
/* With six navigation links, keep the search field inside compact desktop
   viewports rather than extending it past the available right-hand space. */
@media(min-width:851px) and (max-width:1250px){
 .version-editorial .site-header .site-nav{gap:clamp(14px,2vw,26px)}
 .site-header .site-search__field,
 .site-header .site-search.is-open .site-search__field{
   top:calc(100% + 10px);left:auto;right:0;width:278px;
   background:var(--paper);transform:scaleX(0);transform-origin:right center;
 }
 .site-header .site-search.is-open .site-search__field{transform:scaleX(1)}
 .site-header .site-search__results{top:calc(100% + 57px);left:auto;right:0;width:328px}
}
@media(max-width:850px){
  .version-editorial .site-header{justify-content:flex-end;gap:12px}
  .version-editorial .site-header .site-nav{display:none}
  .version-editorial .site-header .mobile-menu{order:2}
  .version-editorial .site-header .site-search{order:1}
  /* On narrow screens, unfold a small field just below the icon to avoid clipping. */
  .site-header .site-search__field,
  .site-header .site-search.is-open .site-search__field{
    top:calc(100% + 10px);
    left:auto;
    right:-40px;
    width:min(278px,calc(100vw - 112px));
    transform:scaleX(0);
    transform-origin:left center;
  }
  .site-header .site-search.is-open .site-search__field{transform:scaleX(1)}
  .site-header .site-search__results{
    top:calc(100% + 57px);
    left:auto;
    right:-40px;
    width:min(320px,calc(100vw - 112px));
    max-height:min(55vh,350px);
  }
}
@media(max-width:620px){
  .site-header .site-search__input{font-size:13px}
}
@media(prefers-reduced-motion:reduce){
  .site-header .site-search__field{transition:none}
}
