/* WRAPING / ELVANOR: one stable logo frame on every page.
   Prevents inner-page masthead overrides from clipping the brand. */
html body header.masthead {
  height: auto !important;
  max-height: none !important;
  overflow: visible !important;
}
html body header.masthead > .masthead-main {
  box-sizing: border-box !important;
  height: 94px !important;
  min-height: 94px !important;
  max-height: none !important;
  display: grid !important;
  grid-template-columns: minmax(0,1fr) auto minmax(0,1fr) !important;
  align-items: center !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  overflow: visible !important;
}
html body header.masthead > .masthead-main > a.brand {
  position: relative !important;
  inset: auto !important;
  top: auto !important;
  bottom: auto !important;
  transform: none !important;
  translate: none !important;
  align-self: center !important;
  justify-self: center !important;
  margin: 0 auto !important;
  box-sizing: border-box !important;
  width: clamp(210px,27vw,310px) !important;
  height: 85px !important;
  min-height: 85px !important;
  max-height: 85px !important;
  padding: 0 !important;
  background-repeat: no-repeat !important;
  background-size: contain !important;
  background-position: center center !important;
  overflow: visible !important;
}
@media(max-width:900px) {
 html body header.masthead > .masthead-main {height:81px!important;min-height:81px!important;}
 html body header.masthead > .masthead-main > a.brand {width:clamp(152px,44vw,224px)!important;height:64px!important;min-height:64px!important;max-height:64px!important;}
}
@media(max-width:600px) {
 html body header.masthead > .masthead-main {height:75px!important;min-height:75px!important;}
}
@media(max-width:380px) {
 html body header.masthead > .masthead-main > a.brand {width:153px!important;height:54px!important;min-height:54px!important;max-height:54px!important;}
}

/* 2026-11-16: honour the real ELVANOR artwork's width at all screen sizes.
   The base theme sets .brand min-width:255px; that exceeded the mobile logo
   frame and squeezed neighbouring navigation buttons. Keep the actual image. */
html body header.masthead > .masthead-main > a.brand {
  min-width: 0 !important;
  max-width: 100% !important;
  flex-shrink: 1 !important;
  background-position: center center !important;
  background-size: contain !important;
}
html body header.masthead > .masthead-main > .masthead-side {
  min-width: 0 !important;
}
@media (max-width:900px) {
 html body header.masthead > .masthead-main {
   grid-template-columns: minmax(0,1fr) minmax(0,auto) minmax(0,1fr) !important;
   column-gap: 9px !important;
 }
 html body header.masthead > .masthead-main > a.brand {
   min-width: 0 !important;
   max-width: 45vw !important;
 }
 html body header.masthead > .masthead-main > .masthead-side.right {gap:10px !important}
}
@media (max-width:600px) {
 html body header.masthead > .masthead-main > a.brand {
   width: min(42vw,176px) !important;
   height: 60px !important;
   min-height: 60px !important;
   max-height: 60px !important;
 }
 html body header.masthead > .masthead-main > .masthead-side.right {gap:7px !important}
}
@media (max-width:380px) {
 html body header.masthead > .masthead-main > a.brand {
   width: min(39vw,145px) !important;
   height: 53px !important;
   min-height: 53px !important;
   max-height: 53px !important;
 }
}

