/* Account and app links shared by the three page headers. */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-left: clamp(8px, 1.5vw, 20px);
  white-space: nowrap;
}

.nav-download {
  position: relative;
}

.nav-app {
  display: flex;
  align-items: center;
  gap: .5em;
  padding: 7.5px 16px;
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  cursor: pointer;
  list-style: none;
}

.nav-app::-webkit-details-marker {
  display: none;
}

.nav-app::after {
  content: "";
  width: .42em;
  height: .42em;
  border: solid currentColor;
  border-width: 0 1px 1px 0;
  transform: translateY(-.1em) rotate(45deg);
}

.nav-app:hover,
.nav-download[open] .nav-app {
  background: var(--ink);
  color: var(--bg);
}

.nav-stores {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 144px;
  padding: 4px;
  border: 1px solid #E6EAEE;
  border-radius: 12px;
  background: var(--bg);
  box-shadow: 0 6px 20px rgba(21, 35, 46, .14);
  list-style: none;
}

.nav-stores a {
  display: block;
  padding: 10px 12px;
  border-radius: 8px;
}

.nav-stores a:hover,
.nav-stores a:focus-visible {
  background: #F5F7F9;
}

.nav-cta {
  padding: 9px 18px;
  border-radius: 999px;
  background: var(--ink);
}

.nav a.nav-cta {
  color: var(--bg);
}

.nav-cta:hover {
  background: var(--blue-1);
}

.nav-actions :focus-visible {
  outline: 2px solid var(--blue-2);
  outline-offset: 2px;
}

@media (max-width: 1050px) {
  .nav { gap: 16px; padding-inline: 16px; }
  .nav-brand { margin-right: 0; }
  .nav-links { gap: 16px; }
  .nav-actions { gap: 10px; margin-left: 0; }
  .nav-app, .nav-cta { padding-inline: 12px; }
}

@media (max-width: 860px) {
  :root { --nav-h: 104px; }

  .nav {
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-rows: 62px 1fr;
    row-gap: 0;
  }

  .nav-brand { grid-area: 1 / 1; }
  .nav-actions { grid-area: 1 / 2; justify-self: end; }

  .nav-links {
    grid-area: 2 / 1 / 3 / -1;
    justify-content: center;
    margin: 0;
    gap: clamp(14px, 4vw, 32px);
    white-space: nowrap;
  }

  .nav-links a { display: block; padding: 8px 0; }
}

@media (max-width: 480px) {
  .nav { column-gap: 8px; padding-inline: 12px; }
  .nav-mark { width: 32px; height: 32px; }
  .nav-actions { gap: 8px; font-size: .75rem; }
  .nav-app, .nav-cta { padding-inline: 10px; }
}
