/* VII CREATION · RP137.28
   Dark-room navigation parity with the proven About VII / FAQ chrome.
   Scope is deliberately limited to VII Sports, VII Community and VII Studio routes.
   About VII, FAQ, Threshold and all page content remain untouched. */

body:is(
  [data-view="sports"],
  [data-view="community"],
  [data-view="studio"],
  [data-view="studio-commission"],
  [data-view="studio-request"],
  [data-view="studio-bag"],
  [data-view="studio-thanks"]
) {
  --nav-main-h: 4.05rem;
  --nav-context-h: 1.28rem;
  --header-h: calc(var(--nav-main-h) + var(--nav-context-h) + var(--safe-t));
}

/* The same fixed, two-row glass construction used by About VII / FAQ,
   translated to the House's Midnight Navy palette. */
body:is(
  [data-view="sports"],
  [data-view="community"],
  [data-view="studio"],
  [data-view="studio-commission"],
  [data-view="studio-request"],
  [data-view="studio-bag"],
  [data-view="studio-thanks"]
):not(.hall-open) .house-nav {
  height: var(--header-h) !important;
  grid-template-rows: var(--nav-main-h) var(--nav-context-h) !important;
  align-items: center !important;
  overflow: hidden !important;
  box-sizing: border-box !important;
  background: linear-gradient(180deg, rgba(6,7,26,.80), rgba(6,7,26,.60)) !important;
  border-bottom-color: rgba(247,244,238,.045) !important;
  box-shadow: 0 .8rem 2.8rem rgba(0,0,0,.13) !important;
  -webkit-backdrop-filter: blur(28px) saturate(108%) !important;
  backdrop-filter: blur(28px) saturate(108%) !important;
  transition: background .42s ease, color .32s ease, border-color .42s ease,
              box-shadow .42s ease, -webkit-backdrop-filter .42s ease,
              backdrop-filter .42s ease !important;
}

body:is(
  [data-view="sports"],
  [data-view="community"],
  [data-view="studio"],
  [data-view="studio-commission"],
  [data-view="studio-request"],
  [data-view="studio-bag"],
  [data-view="studio-thanks"]
) :is(.hall-trigger,.house-seal,.house-nav__right,.house-action) {
  grid-row: 1 !important;
  align-self: center !important;
}

/* Breadcrumb is part of the glass bar, exactly as on About VII / FAQ. */
body:is(
  [data-view="sports"],
  [data-view="community"],
  [data-view="studio"],
  [data-view="studio-commission"],
  [data-view="studio-request"],
  [data-view="studio-bag"],
  [data-view="studio-thanks"]
) .location-trail {
  position: static !important;
  z-index: auto !important;
  top: auto !important;
  bottom: auto !important;
  left: auto !important;
  right: auto !important;
  grid-column: 1 / -1 !important;
  grid-row: 2 !important;
  align-self: center !important;
  justify-self: start !important;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  height: var(--nav-context-h) !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 0 .16rem !important;
  box-sizing: border-box !important;
  display: flex !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: .42rem !important;
  overflow: hidden !important;
  contain: none !important;
  white-space: nowrap !important;
  line-height: 1.18 !important;
  background: transparent !important;
  color: rgba(247,244,238,.88) !important;
  visibility: visible !important;
  opacity: 1 !important;
}

body:is(
  [data-view="sports"],
  [data-view="community"],
  [data-view="studio"],
  [data-view="studio-commission"],
  [data-view="studio-request"],
  [data-view="studio-bag"],
  [data-view="studio-thanks"]
) .location-trail > button,
body:is(
  [data-view="sports"],
  [data-view="community"],
  [data-view="studio"],
  [data-view="studio-commission"],
  [data-view="studio-request"],
  [data-view="studio-bag"],
  [data-view="studio-thanks"]
) .location-trail a,
body:is(
  [data-view="sports"],
  [data-view="community"],
  [data-view="studio"],
  [data-view="studio-commission"],
  [data-view="studio-request"],
  [data-view="studio-bag"],
  [data-view="studio-thanks"]
) .location-trail__segment,
body:is(
  [data-view="sports"],
  [data-view="community"],
  [data-view="studio"],
  [data-view="studio-commission"],
  [data-view="studio-request"],
  [data-view="studio-bag"],
  [data-view="studio-thanks"]
) .location-trail [aria-current="page"] {
  color: rgba(247,244,238,.88) !important;
  visibility: visible !important;
  opacity: 1 !important;
  min-width: 0 !important;
  min-height: 0 !important;
  height: auto !important;
  overflow: visible !important;
  text-overflow: clip !important;
  white-space: nowrap !important;
}

body:is(
  [data-view="sports"],
  [data-view="community"],
  [data-view="studio"],
  [data-view="studio-commission"],
  [data-view="studio-request"],
  [data-view="studio-bag"],
  [data-view="studio-thanks"]
):not(.hall-open) :is(.hall-trigger,.house-action,.house-action a,.house-seal,.location-trail,.location-trail__room) {
  color: rgba(247,244,238,.88) !important;
}
body:is(
  [data-view="sports"],
  [data-view="community"],
  [data-view="studio"],
  [data-view="studio-commission"],
  [data-view="studio-request"],
  [data-view="studio-bag"],
  [data-view="studio-thanks"]
):not(.hall-open) .house-seal__logo {
  filter: none !important;
  opacity: 1 !important;
}
body:is(
  [data-view="sports"],
  [data-view="community"],
  [data-view="studio"],
  [data-view="studio-commission"],
  [data-view="studio-request"],
  [data-view="studio-bag"],
  [data-view="studio-thanks"]
):not(.hall-open) .hall-trigger__mark span {
  background: rgba(247,244,238,.90) !important;
}
body:is(
  [data-view="sports"],
  [data-view="community"],
  [data-view="studio"],
  [data-view="studio-commission"],
  [data-view="studio-request"],
  [data-view="studio-bag"],
  [data-view="studio-thanks"]
):not(.hall-open) .location-trail::before {
  background: rgba(247,244,238,.055) !important;
}

/* Match the already-working compact About / FAQ geometry on phones. */
@media (max-width: 640px) {
  body:is(
    [data-view="sports"],
    [data-view="community"],
    [data-view="studio"],
    [data-view="studio-commission"],
    [data-view="studio-request"],
    [data-view="studio-bag"],
    [data-view="studio-thanks"]
  ) {
    --nav-main-h: 3.82rem;
    --nav-context-h: 1.18rem;
  }
  body:is(
    [data-view="sports"],
    [data-view="community"],
    [data-view="studio"],
    [data-view="studio-commission"],
    [data-view="studio-request"],
    [data-view="studio-bag"],
    [data-view="studio-thanks"]
  ) .location-trail {
    padding: 0 0 .08rem !important;
  }
}

/* Orientation parity can add a more-specific landscape breadcrumb contract.
   Keep the same two-row in-bar architecture there too. */
html.vii-touch-landscape-desktop body:is(
  [data-view="sports"],
  [data-view="community"],
  [data-view="studio"],
  [data-view="studio-commission"],
  [data-view="studio-request"],
  [data-view="studio-bag"],
  [data-view="studio-thanks"]
) {
  --nav-main-h: 4.05rem !important;
  --nav-context-h: 1.28rem !important;
  --header-h: calc(var(--nav-main-h) + var(--nav-context-h) + var(--safe-t)) !important;
}
html.vii-touch-landscape-desktop body:is(
  [data-view="sports"],
  [data-view="community"],
  [data-view="studio"],
  [data-view="studio-commission"],
  [data-view="studio-request"],
  [data-view="studio-bag"],
  [data-view="studio-thanks"]
) .house-nav {
  height: var(--header-h) !important;
  grid-template-rows: var(--nav-main-h) var(--nav-context-h) !important;
  overflow: hidden !important;
}
html.vii-touch-landscape-desktop body:is(
  [data-view="sports"],
  [data-view="community"],
  [data-view="studio"],
  [data-view="studio-commission"],
  [data-view="studio-request"],
  [data-view="studio-bag"],
  [data-view="studio-thanks"]
) .location-trail {
  position: static !important;
  top: auto !important;
  bottom: auto !important;
  left: auto !important;
  right: auto !important;
  grid-column: 1 / -1 !important;
  grid-row: 2 !important;
  width: 100% !important;
  max-width: 100% !important;
  height: var(--nav-context-h) !important;
  padding: 0 0 .16rem !important;
  align-self: center !important;
  align-items: center !important;
  overflow: hidden !important;
}

@media (prefers-reduced-motion: reduce) {
  body:is(
    [data-view="sports"],
    [data-view="community"],
    [data-view="studio"],
    [data-view="studio-commission"],
    [data-view="studio-request"],
    [data-view="studio-bag"],
    [data-view="studio-thanks"]
  ) .house-nav { transition: none !important; }
}
