/* Barrhaven's table menu only. Header height and category offsets stay shared. */
.gallery-page[data-menu-location="barrhaven"] [data-table-menu-header] .table-menu-wordmark {
  display: none;
}
html[data-color-theme="brand"] .gallery-page[data-menu-location="barrhaven"] .menu-category-dock {
  background: transparent;
}

html[data-color-theme="brand"] .gallery-page[data-menu-location="barrhaven"] .site-header[data-table-menu-header] {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  column-gap: clamp(.4rem, 1.5vw, 1.25rem);
  direction: ltr;
  isolation: isolate;
  background: transparent;
  color: #fff2e3;
}
html[data-color-theme="brand"] .gallery-page[data-menu-location="barrhaven"] [data-table-menu-header]::before {
  content: "";
  position: absolute;
  inset: 0 0 -1.5rem;
  z-index: -1;
  /* One permanent transparent wash: the page's original pattern shows through
     from arrival. Scrolling changes only the logo, never this background. */
  background: linear-gradient(180deg, #651504b3 0%, #65150459 46%, #65150400 100%);
  /* Soften text passing behind the transparent wordmark without an opaque bar.
     The blur itself fades out below the header rather than leaving an edge. */
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  -webkit-mask-image: linear-gradient(#000 72%, transparent 100%);
  mask-image: linear-gradient(#000 72%, transparent 100%);
  pointer-events: none;
}
html[data-color-theme="brand"] .gallery-page[data-menu-location="barrhaven"] [data-table-menu-header] > .brand {
  position: relative;
  grid-column: 2;
  grid-row: 1;
  justify-self: center;
  width: clamp(6rem, 30vw, 8.5rem);
  height: calc(var(--header-height) - 1.55rem);
}
html[data-color-theme="brand"] .gallery-page[data-menu-location="barrhaven"] [data-table-menu-header] > .brand .brand-logo {
  position: absolute;
  inset: 0;
  width: auto;
  height: 100%;
  margin-inline: auto;
  opacity: 1;
  transition: opacity 180ms ease;
  content: url('/concepts/assets/yemen-gate-logo-light.svg');
}
html[data-color-theme="brand"] .gallery-page[data-menu-location="barrhaven"] [data-table-menu-header] .table-menu-wordmark {
  display: block;
  position: absolute;
  left: 50%;
  top: 50%;
  width: 100%;
  height: auto;
  max-height: 100%;
  object-fit: contain;
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity 220ms ease;
  pointer-events: none;
}
html[data-color-theme="brand"] .gallery-page[data-menu-location="barrhaven"] [data-table-menu-header] > nav {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  column-gap: clamp(.4rem, 1.5vw, 1.25rem);
  padding: .4rem var(--gutter);
  pointer-events: none;
}
html[data-color-theme="brand"] .gallery-page[data-menu-location="barrhaven"] [data-table-menu-header] .menu-language-picker {
  grid-column: 1;
  grid-row: 1;
  justify-self: start;
  pointer-events: auto;
}
html[data-color-theme="brand"] .gallery-page[data-menu-location="barrhaven"] [data-table-menu-header] .menu-language-picker > nav {
  inset-inline-start: 0;
  inset-inline-end: auto;
}
html[data-color-theme="brand"] .gallery-page[data-menu-location="barrhaven"] [data-table-menu-header] > nav > [data-catalog-open] {
  grid-column: 3;
  grid-row: 1;
  justify-self: end;
  pointer-events: auto;
}

html[data-color-theme="brand"] .gallery-page[data-menu-location="barrhaven"] [data-table-menu-header][data-menu-scrolled] .brand-logo {
  opacity: 0;
}
html[data-color-theme="brand"] .gallery-page[data-menu-location="barrhaven"] [data-table-menu-header][data-menu-scrolled] .table-menu-wordmark {
  opacity: 1;
}
html[data-color-theme="brand"] .gallery-page[data-menu-location="barrhaven"] [data-table-menu-header] > nav > a,
html[data-color-theme="brand"] .gallery-page[data-menu-location="barrhaven"] [data-table-menu-header] .menu-language-picker > summary {
  color: #fff2e3;
  /* A fine maroon halo protects the letters as bright plates pass behind them,
     while keeping the header background genuinely transparent. */
  text-shadow: -1px -1px 0 #651504, 1px -1px 0 #651504,
    -1px 1px 0 #651504, 1px 1px 0 #651504, 0 1px 3px #651504;
}
html[data-color-theme="brand"] .gallery-page[data-menu-location="barrhaven"] [data-table-menu-header] :focus-visible {
  outline-color: #fff2e3;
  outline-offset: 1px;
  box-shadow: 0 0 0 3px #651504;
  border-radius: .2rem;
}
html[data-color-theme="brand"] .gallery-page[data-menu-location="barrhaven"] [data-table-menu-header] > .brand img {
  filter: drop-shadow(0 1px 2px #651504);
}
@media (prefers-reduced-motion: reduce) {
  html[data-color-theme="brand"] .gallery-page[data-menu-location="barrhaven"] [data-table-menu-header] :is(.brand-logo, .table-menu-wordmark) {
    transition: none;
  }
}
