.masthead { z-index: 8; }
.masthead .brand img { filter: brightness(0) invert(15%); }
.masthead-inner { position: relative; min-height: 76px; }
.main-nav {
  padding: 3px;
  border-radius: 15px;
  border-color: #2626231b;
  background: #fff9;
}
.main-nav > a, .catalog-disclosure summary {
  min-height: 44px;
  border-radius: 11px;
  padding: 0 17px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
}
.catalog-disclosure summary { list-style: none; gap: 7px; }
.catalog-disclosure summary::-webkit-details-marker { display: none; }
.catalog-disclosure summary::after {
  content: ''; width: 6px; height: 6px; border: solid currentColor;
  border-width: 0 1.4px 1.4px 0; transform: translateY(-2px) rotate(45deg);
}
.catalog-disclosure[open] summary::after { transform: translateY(2px) rotate(225deg); }
.catalog-disclosure.is-current summary, .catalog-disclosure[open] summary { background: var(--ink); color: white; }
.catalog-flyout {
  position: absolute;
  z-index: 1;
  top: calc(50% + 21px);
  left: 50%;
  width: min(570px, 100%);
  transform: translateX(-50%);
  padding-top: 10px;
}
.catalog-sheet {
  max-height: calc(100dvh - 84px);
  overflow-y: auto;
  padding: 16px;
  display: grid;
  grid-template-columns: 1fr 144px;
  gap: 16px;
  background: rgba(248,247,243,.96);
  border: 1px solid #2626232b;
  border-radius: 20px;
  box-shadow: 0 16px 48px #2626231f;
  -webkit-backdrop-filter: blur(22px);
  backdrop-filter: blur(22px);
}
.catalog-sheet a { justify-content: start; justify-items: start; font-size: 16px; font-weight: 450; padding: 0 10px; }
.catalog-sheet a:hover, .catalog-sheet a:focus-visible { background-color: #dcdad1; }
.catalog-sheet .catalog-overview {
  display: flex; justify-content: space-between; font-size: 20px; font-weight: 550;
  border-bottom: 1px solid var(--border); border-radius: 4px; padding-bottom: 6px;
}
.catalog-links { display: grid; grid-template-columns: 1fr 1fr; margin-top: 6px; }
.catalog-links a { min-height: 44px; }
.catalog-sheet .catalog-feature { position: relative; display: block; padding: 0; overflow: hidden; border-radius: 12px; }
.catalog-feature img { position: absolute; width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; }
.catalog-feature span { position: absolute; inset: auto 0 0; padding: 24px 10px 8px; background: linear-gradient(transparent,#262623b8); color: white; font-size: 14px; }
@media (prefers-reduced-motion: no-preference) {
  .catalog-disclosure[open] .catalog-sheet { animation: open-category-sheet 220ms cubic-bezier(.2,.8,.25,1.1); transform-origin: top; }
  @keyframes open-category-sheet { from { opacity: 0; transform: translateY(-5px) scale(.985); } }
}
@media (max-width: 800px) {
  :root { --masthead-height: 64px; }
  .masthead-inner { min-height: 64px; }
  .main-nav > a, .catalog-disclosure summary { padding: 0 5px; font-size: clamp(12px,3vw,15px); }
  .brand img { width: clamp(72px,21vw,110px); }
}
@media (max-width: 590px) {
  .catalog-sheet { grid-template-columns: 1fr; padding: 12px; }
  .catalog-sheet .catalog-feature { display: none; }
}
