/* Shared public-page brand header. The music explorer uses the same brand markup. */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  flex-shrink: 0;
  width: 100%;
  max-width: none;
  min-height: 80px;
  margin: 0;
  padding: 10px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  border-bottom: 1px solid #ffffff20;
  background: #0d2333;
  background-image: linear-gradient(#0d233399, #0d233399), url('/brand/navy-knit.webp');
  background-size: auto, 320px;
}
.topbar .site-header { border-bottom: 0; background: none; }
.site-header .brand { display: flex; align-items: center; gap: 12px; min-width: 0; }
.site-header .brand-icon {
  width: 54px;
  height: 54px;
  flex: 0 0 54px;
  display: block;
  overflow: hidden;
  border-radius: 8px;
  background: #82cabe;
}
.site-header .brand-icon img { display: block; width: 100%; height: 100%; object-fit: contain; }
.site-header .brand-copy { display: flex; flex-direction: column; justify-content: space-between; height: 54px; min-width: 0; padding-block: 2px; }
.site-header .brand-wordmark { display: flex; align-items: baseline; gap: 7px; width: max-content; max-width: 100%; white-space: nowrap; text-decoration: none; line-height: 1; color: #edf5f6; }
.site-header .brand-wordmark strong { font-size: 32px; font-weight: 700; letter-spacing: -.9px; }
.site-header .brand-signature { display: block; width: 224px; height: 38px; object-fit: cover; object-position: center; align-self: center; }
.site-header .brand-attribution { color: #b3cbd2; font-size: 12px; line-height: 1; }
.site-header .brand-attribution .lastfm-link { display: inline-flex; align-items: center; gap: 4px; color: #edf5f6; text-decoration: none; font-weight: 400; }
.site-header .brand-attribution .lastfm-link:hover { text-decoration: underline; }
.site-header .lastfm-brand-icon { width: 16px; height: 16px; border-radius: 0; background: none; vertical-align: middle; }
.site-header .find-link { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; min-height: 44px; padding: 8px 17px; border-radius: 8px; background: #f4faf8; color: #123143; box-shadow: 0 2px 8px #0003; text-decoration: none; font-size: 16px; font-weight: 800; }
.site-header .find-link:hover { background: #dff4f0; text-decoration: none; }
.site-header a:focus-visible { outline: 2px solid #79d5d0; outline-offset: 4px; }
@media (max-width: 760px) {
  .site-header { min-height: 72px; padding: 10px 16px; gap: 12px; }
  .site-header .brand-icon { width: 47px; height: 47px; flex-basis: 47px; }
  .site-header .brand-copy { height: 47px; }
  .site-header .brand-wordmark strong { font-size: 24px; }
  .site-header .brand-signature { width: 180px; height: 32px; }
}
@media (max-width: 560px) {
  .site-header { flex-wrap: wrap; }
  .site-header .find-link { width: 100%; }
}
@media (max-width: 380px) {
  .site-header .brand-wordmark strong { font-size: 20px; }
  .site-header .brand-signature { width: 144px; height: 27px; }
}

/* The directory wraps its header: pin the wrapper, not a child constrained to its height. */
.topbar:has(> .site-header) {
  position: sticky;
  top: 0;
  z-index: 40;
  background: #0d2333;
  background-image: linear-gradient(#0d233399, #0d233399), url('/brand/navy-knit.webp');
  background-size: auto, 320px;
}
.topbar > .site-header { position: static; }
html, #root:has(.initial-page) { scroll-padding-top: 100px; }
@media (max-width: 560px) {
  html, #root:has(.initial-page) { scroll-padding-top: 160px; }
}
/* Keyboard skip links must remain above the pinned header. */
.skip-link:focus { z-index: 60; }
