/* Keep branding consistent before and after the exported React UI hydrates.
   Each logo link already has the accessible name "Dream Pixel Academy home". */
.logo {
  flex: 0 0 auto;
  gap: 0;
  min-height: 44px;
}

.logo > .logo-mark,
.logo > .logo-type {
  display: none;
}

.logo::before {
  content: "";
  display: block;
  width: 210px;
  height: 44px;
  background: url("/images/dreampixel-academy-horizontal-responsive.svg?v=3") center / contain no-repeat;
}

.logo--inverse::before {
  filter: brightness(0) invert(1);
}

.header-inner {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  column-gap: 32px;
}

.site-header .logo {
  flex-shrink: 0;
  padding-block: 8px;
}

@media (min-width: 1281px) {
  .nav-links {
    margin-left: auto;
    flex-wrap: nowrap;
    white-space: nowrap;
    gap: 18px;
  }

  .nav-actions {
    flex-shrink: 0;
    gap: 16px;
    white-space: nowrap;
  }
}

.footer .logo::before {
  width: 180px;
  height: 116px;
  background-image: url("/images/DreamPixel_Academy_Originals_and_WebP/WebP/dreampixel-academy-logo-white.webp");
  filter: none;
}

/* Two equal groups keep the ticker filled throughout every loop. */
.marquee > .marquee-track {
  display: flex;
  flex: 0 0 auto;
  width: max-content;
  animation: marquee 28s linear infinite;
  will-change: transform;
}

.marquee-group {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: space-around;
  gap: 24px;
  box-sizing: border-box;
  min-width: 100vw;
  padding-inline: 12px;
}

/* Collapse navigation before its links compete with the full brand lockup. */
@media (max-width: 1280px) {
  .header-inner {
    display: flex;
    justify-content: space-between;
  }

  .menu-button {
    display: grid;
  }

  .main-nav {
    display: flex;
    position: fixed;
    inset: 70px 16px auto;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 15px;
    background: #080d1cf7;
    border: 1px solid #ffffff1f;
    border-radius: 18px;
    box-shadow: 0 30px 80px #0006;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-12px);
    transition: all .25s;
  }

  .main-nav--open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .nav-links,
  .nav-actions {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .main-nav .button {
    margin-top: 12px;
  }
}

@media (max-width: 560px) {
  .site-header .logo::before {
    width: 52px;
    height: 36px;
    background-image: url("/images/DreamPixel_Academy_Originals_and_WebP/WebP/dreampixel-symbol-white.webp");
    filter: none;
  }
}
