.atlas-shell-header {
  display: grid;
  grid-template-columns: minmax(240px, auto) minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  padding: 16px 18px;
  border: 3px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.22), transparent 34%),
    var(--pokedex, var(--red, #d73737));
  box-shadow: 6px 6px 0 var(--shadow);
  color: #fff;
}

.atlas-brand {
  display: flex;
  gap: 14px;
  align-items: center;
  min-width: 0;
  color: #fff;
  text-decoration: none;
}

.atlas-brand__text {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.atlas-brand__eyebrow {
  color: #fff4b8;
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
  text-shadow: 2px 2px 0 var(--pokedex-dark, var(--red-dark, #9f2323));
}

.atlas-brand__title {
  color: #fff;
  font-size: clamp(34px, 5vw, 54px);
  font-weight: 900;
  line-height: 0.96;
  text-shadow: 3px 3px 0 var(--pokedex-dark, var(--red-dark, #9f2323));
}

.atlas-page-label {
  display: inline-flex;
  width: fit-content;
  min-height: 24px;
  align-items: center;
  padding: 4px 8px;
  border: 2px solid var(--line);
  border-radius: 5px;
  background: var(--yellow);
  color: var(--text);
  box-shadow: 2px 2px 0 var(--pokedex-dark, var(--red-dark, #9f2323));
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
  text-shadow: none;
}

.atlas-nav-system {
  display: grid;
  gap: 9px;
  justify-items: end;
  min-width: 0;
}

.atlas-primary-nav,
.atlas-utility-zone {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  align-items: center;
  justify-content: flex-end;
  min-width: 0;
}

.atlas-utility-zone {
  gap: 6px;
  opacity: 0.98;
}

.atlas-nav-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 12px;
  border: 3px solid var(--line);
  border-radius: 6px;
  background: var(--blue);
  color: #fff;
  box-shadow: 3px 3px 0 #173b69;
  font: inherit;
  font-size: 13px;
  font-weight: 900;
  line-height: 1;
  text-decoration: none;
  text-transform: none;
  cursor: pointer;
}

.atlas-nav-link--utility {
  min-height: 34px;
  padding-inline: 10px;
  border-width: 2px;
  background: #fff8dc;
  color: var(--text);
  box-shadow: 2px 2px 0 rgba(27, 27, 27, 0.45);
  font-size: 12px;
}

.atlas-nav-link:hover,
.atlas-nav-link:focus-visible,
.atlas-nav-link.is-active {
  background: var(--yellow);
  color: var(--text);
  outline: 0;
}

.atlas-nav-link[aria-current="page"] {
  background: var(--yellow);
  color: var(--text);
}

.atlas-logout-form {
  margin: 0;
}

.atlas-locale {
  display: inline-flex;
  gap: 4px;
  align-items: center;
  padding: 3px;
  border: 2px solid var(--line);
  border-radius: 6px;
  background: var(--pokedex-dark, var(--red-dark, #9f2323));
}

.atlas-locale button {
  min-height: 28px;
  padding: 0 8px;
  border: 2px solid transparent;
  border-radius: 4px;
  background: transparent;
  color: #fff;
  font: inherit;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
}

.atlas-locale button[aria-pressed="true"],
.atlas-locale button:hover,
.atlas-locale button:focus-visible {
  border-color: var(--line);
  background: var(--yellow);
  color: var(--text);
  outline: 0;
}

.site-header,
.dex-topbar,
.hub-global-nav {
  display: none !important;
}

@media (max-width: 1180px) {
  .atlas-shell-header {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .atlas-nav-system,
  .atlas-primary-nav,
  .atlas-utility-zone {
    justify-items: start;
    justify-content: flex-start;
  }
}

@media (max-width: 620px) {
  .atlas-shell-header {
    padding: 12px;
    gap: 12px;
  }

  .atlas-brand {
    gap: 10px;
  }

  .atlas-brand .pokedex-lights {
    grid-template-columns: 34px repeat(3, 10px);
    gap: 5px;
    min-width: 80px;
  }

  .atlas-brand .light {
    width: 10px;
    height: 10px;
  }

  .atlas-brand .light.main {
    width: 34px;
    height: 34px;
  }

  .atlas-brand__title {
    font-size: 34px;
  }

  .atlas-primary-nav,
  .atlas-utility-zone {
    width: 100%;
  }

  .atlas-nav-link {
    flex: 1 1 96px;
    min-height: 36px;
    padding-inline: 8px;
  }

  .atlas-nav-link--utility {
    flex-grow: 0;
  }
}
