.nav__inner {
  display: grid;
  grid-template-columns: auto minmax(25rem, 30vw) auto;
  gap: clamp(0.75rem, 1.4vw, 1.4rem);
}

.nav__inner > .brand {
  justify-self: start;
}

.nav__resources {
  width: 100%;
  max-width: 34rem;
  min-width: 0;
  justify-self: center;
}

.nav__resources .resource-bank {
  display: grid;
  width: 100%;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.45rem;
}

.nav__resources .resource-token {
  min-width: 0;
  min-height: 2.85rem;
  grid-template-columns: 2.1rem minmax(0, 1fr);
  gap: 0.25rem;
  padding: 0.1rem 0.5rem 0.1rem 0.25rem;
  border-radius: 0.8rem;
}

.nav__resources .resource-token img {
  width: 2rem;
  height: 2.2rem;
}

.nav__resources .resource-token data {
  min-width: 0;
  overflow: hidden;
  font-size: clamp(0.72rem, 1vw, 0.9rem);
  text-overflow: clip;
  white-space: nowrap;
}

.nav__resources .resource-token::after {
  right: 0.4rem;
  bottom: 0.15rem;
  left: 2.55rem;
  height: 3px;
}

@media (max-width: 1320px) {
  .nav__inner {
    grid-template-columns: auto minmax(22rem, 34rem) auto;
  }

  .nav__toggle {
    display: inline-flex;
  }

  .nav__links {
    position: absolute;
    top: 100%;
    right: 1rem;
    left: 1rem;
    z-index: var(--z-menu);
    display: none;
    padding: 1rem;
    border: 1px solid var(--color-gold-deep);
    background: var(--color-ink);
    box-shadow: var(--shadow-panel);
  }

  .nav__links.is-open {
    display: grid;
  }

  .nav__links > a:not(.btn) {
    min-height: 3rem;
    padding: 0.85rem;
    border-bottom: 1px solid var(--color-line);
  }

  .nav__links > a:not(.btn)::after {
    display: none;
  }

  .nav__links .btn {
    margin-top: 0.75rem;
  }
}

@media (max-width: 960px) {
  html {
    scroll-padding-top: 8.5rem;
  }

  .nav__inner {
    min-height: 0;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.45rem 0.75rem;
    padding-block: 0.45rem;
  }

  .nav__resources {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .nav__resources .resource-bank {
    gap: 0.25rem;
  }

  .nav__resources .resource-token {
    min-height: 2.55rem;
    grid-template-columns: 1.7rem minmax(0, 1fr);
    gap: 0.12rem;
    padding: 0.08rem 0.25rem 0.08rem 0.15rem;
    border-width: 1px;
    border-radius: 0.6rem;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14), inset 0 -3px 0 rgba(12, 10, 46, 0.5);
  }

  .nav__resources .resource-token img {
    width: 1.65rem;
    height: 1.85rem;
  }

  .nav__resources .resource-token data {
    font-size: clamp(0.6rem, 2.25vw, 0.72rem);
  }

  .nav__resources .resource-token::after {
    right: 0.3rem;
    bottom: 0.12rem;
    left: 1.95rem;
    height: 2px;
  }
}

@media (max-width: 410px) {
  .nav__resources .resource-token {
    min-height: 2.25rem;
    grid-template-columns: 1.3rem minmax(0, 1fr);
    gap: 0.08rem;
    padding-inline: 0.1rem;
  }

  .nav__resources .resource-token img {
    width: 1.3rem;
    height: 1.5rem;
  }

  .nav__resources .resource-token data {
    font-size: clamp(0.56rem, 2.55vw, 0.66rem);
  }

  .nav__resources .resource-token::after {
    right: 0.18rem;
    left: 1.5rem;
  }
}
