.masthead .brand-logo {
  display: block;
  width: min(15rem, 100%);
  height: auto;
}
.masthead:not(.masthead-photo) .brand {
  background: #30372d;
  padding: 10px 14px;
  border-radius: 3px;
}
.masthead-top > div { min-width: 0; width: min(100%, 280px); }
.masthead .masthead-navigation {
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(12rem, 30%, 17.5rem);
  align-items: center;
  gap: 0 14px;
  border-top: 1px solid #0002;
}
.masthead-photo .masthead-navigation { border-top-color: #fff6; }
.masthead-navigation .nav { border-top: 0; }
.masthead-navigation .search {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 6px;
  min-width: 0;
  width: auto;
  padding: 6px 0;
}
.masthead-navigation .search label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.masthead-navigation .search button { margin: 0; min-height: 41px; }
.masthead .featured-slider { justify-content: flex-end; }
.masthead .slide-controls { flex-wrap: wrap; }
.masthead-image.slide-enter { animation: masthead-slide-in .42s ease-out; }
@keyframes masthead-slide-in {
  from { transform: translateX(7%); opacity: .4; }
  to { transform: translateX(0); opacity: 1; }
}
@media (max-width: 650px) {
  .masthead .masthead-navigation { grid-template-columns: minmax(0, 1fr); }
  .masthead-navigation .search { padding: 8px 0 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .masthead-image.slide-enter { animation: none; }
}
.masthead:has(.featured-slider) { overflow: clip; }
.masthead:has(.featured-slider)::before {
  background: linear-gradient(to bottom, #000a, #0002 51%, #0009);
}

.back-to-top { margin: 2rem 0 0; }
.back-to-top a { display: inline-flex; align-items: center; gap: .5rem; min-height: 44px; padding: 0 .65rem 0 .15rem; color: #406b36; font-weight: 600; }
.back-to-top svg { flex: none; }
.back-to-top a:focus-visible { outline: 2px solid #406b36; outline-offset: 3px; }
