/* User-refined N/L artwork; the intrinsic ratio reserves space. */
:root body .neboluna-brand {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  min-height: 44px;
  line-height: 1;
  letter-spacing: normal;
  position: relative;
}
.neboluna-logo {
  display: block;
  width: 234px;
  max-width: 100%;
  height: auto;
}
:root body .header .neboluna-brand {
  flex: 0 1 234px;
  min-width: 0;
  margin-right: 12px;
}
.header .header-tools { flex-shrink: 0; }
.neboluna-brand:focus-visible {
  outline: 2px solid #efd096;
  outline-offset: 4px;
  border-radius: 4px;
}
:root body .footer .neboluna-brand { width: fit-content; }
.footer .neboluna-logo { width: 195px; }

/* Use the approved image's alpha as the exact silhouette. The material and
   bevel are shared with headings; unsupported browsers retain the original. */
@supports (mask-image: url("")) or (-webkit-mask-image: url("")) {
  .neboluna-brand::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image: var(--gold-foil-image);
    background-size: var(--gold-foil-size);
    background-blend-mode: var(--gold-foil-blend);
    -webkit-mask: var(--brand-mask, url("/assets/brand/neboluna/v2/logo.png")) center / 100% 100% no-repeat;
    mask: var(--brand-mask, url("/assets/brand/neboluna/v2/logo.png")) center / 100% 100% no-repeat;
  }
  .neboluna-brand {
    filter: url(#gold-type-relief) drop-shadow(0 1.5px 1px #080410a0);
  }
  .neboluna-logo { opacity: 0; }
  @supports (-moz-appearance: none) {
    .neboluna-brand {
      filter: url(#gold-type-relief-gecko) drop-shadow(0 1.5px 1px #080410a0);
    }
  }
}
@media (forced-colors: active) {
  .neboluna-brand { filter: none; }
  .neboluna-brand::after { display: none; }
  .neboluna-logo { opacity: 1; }
}
@media (max-width: 700px) {
  :root body .header .neboluna-brand { flex-basis: 171px; }
  .header .neboluna-logo { width: 171px; }
}
@media (max-width: 370px) {
  :root body .header .neboluna-brand { flex-basis: 144px; }
  .header .neboluna-logo { width: 144px; }
}
