/* Original supplied artwork: the selected plaque, not a font approximation. */
.site-header { position: relative; }
.site-header .brand {
  display: block;
  flex: none;
  max-width: 100%;
  line-height: 0;
}
.site-header .brand:focus-visible {
  outline: 2px solid #e7bd63;
  outline-offset: 5px;
  border-radius: 8px;
}
.site-header .brand-artwork {
  display: block;
  width: 330px;
  max-width: 100%;
  height: auto;
  aspect-ratio: 3 / 1;
}
body:has(.frontdoor) .site-header { padding-top: 68px; padding-bottom: 8px; }
body:has(.frontdoor) .brand-artwork { width: 420px; }

/* Centre the lobby title over the player frame, leaving Huey's column aside. */
body:has(.club-lobby) .brand-artwork { width: 640px; }
body:has(.club-lobby) .brand { margin-inline-end: 303px; } /* Huey 275px + gap 28px */
body:has(.club-lobby) .site-header { padding-top: 96px; padding-bottom: 0; }
@media (max-width: 1100px) {
  body:has(.club-lobby) .brand { margin-inline-end: 210px; } /* Huey 190px + gap 20px */
}

/* Balance the tagline between the plaque's visible edge and the headline. */
@media (min-width: 1001px) {
  body:has(.frontdoor) .site-header { padding-bottom: 0; }
  body:has(.frontdoor) .brand-artwork { width: 560px; }
  .frontdoor .welcome-copy { align-self: start; padding-top: 8px; }
}

/* During play the logo shares the top bar, keeping the workbench compact. */
body:has(#app[data-phase="cracking"]) .site-header {
  min-height: 80px;
  padding-top: 0;
  padding-bottom: 0;
}
body:has(#app[data-phase="cracking"]) .brand-artwork { width: 240px; }
body:has(#app:is([data-phase="cracking"], [data-phase="results"])) .site-header {
  border-bottom-color: transparent;
}
body:has(#app:is([data-phase="cracking"], [data-phase="results"])) .site-header::after {
  content: "";
  position: absolute;
  left: 26px;
  right: 26px;
  bottom: -5px;
  height: 14px;
  background: url('/assets/branding/header-rule.png') center / 100% auto no-repeat;
  opacity: .65;
  pointer-events: none;
}
@media (max-width: 1000px) {
  body:has(.club-lobby) .brand-artwork { width: 500px; }
  body:has(#app[data-phase="cracking"]) .site-header {
    padding-top: 68px;
    padding-bottom: 10px;
  }
}
@media (max-width: 820px) {
  body:has(.club-lobby) .brand { margin-inline-end: 0; }
}
@media (max-width: 560px) {
  .site-header .brand-artwork,
  body:has(.frontdoor) .brand-artwork { width: 270px; }
  body:has(.frontdoor) .site-header { padding-top: 72px; padding-bottom: 8px; }
  body:has(.club-lobby) .brand-artwork { width: 270px; }
  body:has(.club-lobby) .site-header { padding-top: 72px; padding-bottom: 8px; }
  body:has(#app[data-phase="cracking"]) .brand-artwork { width: 180px; }
  body:has(#app[data-phase="cracking"]) .site-header { padding-top: 72px; padding-bottom: 8px; }
  body:has(#app:is([data-phase="cracking"], [data-phase="results"])) .site-header::after { left: 16px; right: 16px; }
}
