/* Keep the brand in the existing header footprint. No stretching or added link. */
.main-nav .site-brand {
  display:flex;align-items:center;justify-content:flex-start;
  flex:0 0 216px;width:216px;height:64px;max-width:100%;
  overflow:hidden;line-height:1;isolation:isolate;
}
.site-brand .brand-logo {
  display:block;width:100%;height:100%;object-fit:contain;
  object-position:left center;
}
@media(max-width:1000px) {
  .main-nav .site-brand {flex-basis:auto;width:216px;height:60px}
}
@media(max-width:560px) {
  .main-nav .site-brand {width:200px;height:56px}
}
@media print {
  .site-brand {display:none!important}
}

@media(max-width:1240px) {
 :root[data-theme=default] .hero:before {right:0}
}

/* Give the complete navigation one row on wide screens, even for reading themes. */
:root .site-header .main-nav {max-width:max(1240px,var(--theme-width,1240px))}
@media(max-width:1200px) {
 .site-header .main-nav {
  flex-direction:column;align-items:flex-start;gap:10px;
  padding-top:14px;padding-bottom:14px;
 }
 .main-nav .site-brand {flex-basis:auto;height:56px}
 .main-nav .nav-links {width:100%;flex-wrap:wrap}
}
