/* Site chrome: header wordmark, red-line stripe, dev-login surfaces. The band's layout, chips, strip and scope line live in
   band.css.
   Extracted from arenas/templates/arenas/base.html on 2026-05-03.
   Brand-icon body folded in from
   arenas/templates/arenas/partials/brand_icon_styles.html (still
   used by the auth template's inline <style> block). */

/* --- Header (the band's wordmark) --- */
.site-header h1 {
  font-family: var(--font-display);
  font-size: var(--font-size-xl);
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #fff;
  white-space: nowrap;
}
.site-header .brand-link,
.site-header .brand-link:hover {
  color: inherit;
  text-decoration: none;
}
.site-header .brand-link {
  border-radius: var(--radius-md);
}
.site-header .brand-link:focus-visible {
  outline: 2px solid var(--color-ice-blue);
  outline-offset: 2px;
}
.site-header .brand-icon {
  margin-right: var(--spacing-sm);
  vertical-align: middle;
}

/* Brand-icon body lives in arenas/static/arenas/css/brand-icon.css
   (single source of truth, also linked from base_auth.html). The
   .site-header .brand-icon margin tweak above is the only chrome-
   specific positioning override and stays here. */

/* Site-wide brand stripe — the rink-line metaphor as inescapable signature.
   z-index 1000 sits above every sheet layer (sheets.css, 300 and the nested
   Save sheet's 310) so the stripe stays visible regardless of overlay state. */
.red-line-top {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--color-red-line);
  z-index: 1000;
}

/* DEBUG-only impersonation banner. Visually loud so a developer
   cannot forget the session was bypassed auth. Rendered only when
   settings.DEBUG=True and request.user.is_authenticated (see
   accounts/templates/accounts/_dev_login_banner.html). Production
   never sees this rule fire because the partial emits no markup. */
.dev-login-banner {
  position: sticky;
  top: 2px;
  z-index: 999;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.4rem 1rem;
  background: var(--color-red-line);
  color: #fff;
  font-family: var(--font-mono);
  font-size: var(--font-size-xs);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.dev-login-banner strong { font-weight: 800; }
.dev-login-banner-logout { margin-left: auto; }
.dev-login-banner-logout button {
  background: rgba(0,0,0,0.25);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.4);
  padding: 0.15rem 0.6rem;
  font: inherit;
  cursor: pointer;
  border-radius: 2px;
}

/* DEBUG-only navbar dropdown at the end of the band's bar. Suppressed
   under DEBUG=False (the {% if emails %} block in
   _dev_login_dropdown.html never renders). White on red: the red-line
   outline alone fails contrast on the boards-deep band. */
.dev-login-dropdown {
  position: relative;
  margin-left: 0.5rem;
}
.dev-login-dropdown > summary {
  list-style: none;
  cursor: pointer;
  padding: 0.25rem 0.5rem;
  font-family: var(--font-mono);
  font-size: var(--font-size-xs);
  font-weight: 700;
  color: #fff;
  background: var(--color-red-line);
  border: 1px solid var(--color-red-line);
  border-radius: 2px;
}
.dev-login-dropdown > summary::-webkit-details-marker { display: none; }
.dev-login-dropdown[open] > summary { background: var(--color-red-line); color: #fff; }
.dev-login-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 4px);
  list-style: none;
  margin: 0;
  padding: 0.5rem;
  background: var(--color-fresh-sheet);
  border: 1px solid var(--color-red-line);
  border-radius: 4px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.12);
  font-family: var(--font-sans);
  font-size: var(--font-size-sm);
  white-space: nowrap;
  z-index: 998;
}
/* Below 768px the bar has no room to spare: the band's location pill
   would ellipsize "Near you" beside it. The dropdown leaves the bar's
   flow for the viewport's bottom-left corner (under the sheets), and its
   menu opens upward. specs/deployment.yaml > authentication.
   dev_login_bypass.navbar_dropdown. */
@media (max-width: 767px) {
  .dev-login-dropdown {
    position: fixed;
    left: 8px;
    bottom: 8px;
    margin-left: 0;
    z-index: 250;
  }
  .dev-login-menu {
    top: auto;
    right: auto;
    bottom: calc(100% + 4px);
    left: 0;
  }
}
.dev-login-menu-label {
  font-family: var(--font-mono);
  font-size: var(--font-size-xs);
  font-weight: 700;
  text-transform: uppercase;
  color: var(--color-red-line);
  padding: 0.25rem 0.5rem 0.4rem;
}
.dev-login-menu a {
  display: block;
  padding: 0.35rem 0.5rem;
  color: var(--color-text);
  text-decoration: none;
}
.dev-login-menu a:hover { background: var(--color-bg-secondary); }
