/* The five themes and the portal: one picker across Basecamp, circle view and the walk. */
.voyage-themes {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem 0.35rem;
  font-family: var(--deco-mono, var(--font-machined, inherit));
  font-size: 0.75rem;
  line-height: 1.2;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: inherit;
}
.voyage-themes[hidden] {
  display: none !important;
}
.voyage-themes .vt-label {
  opacity: 0.82;
  margin-right: 0.2rem;
}
.voyage-themes .vt-pick {
  display: inline-block;
  padding: 0.22rem 0.5rem;
  border-radius: 999px;
  border: 1px solid transparent;
  color: inherit;
  background: transparent;
  text-decoration: none;
  font-weight: 500;
}
.voyage-themes .vt-pick:hover,
.voyage-themes .vt-pick:focus-visible {
  text-decoration: underline;
  text-underline-offset: 0.22em;
}
.voyage-themes .vt-pick[aria-current="page"] {
  border-color: currentColor;
  font-weight: 600;
}
.voyage-themes .vt-pick[data-saved="true"]:not([aria-current="page"]) {
  text-decoration: underline;
  text-underline-offset: 0.22em;
}

/* Every pick is a target of at least 24 by 24 CSS px (WCAG 2.2, 2.5.8), with a ring on focus that
   follows the page's own ink by day and by night. */
.voyage-themes .vt-pick {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 24px;
  min-width: 24px;
  box-sizing: border-box;
}
.voyage-themes .vt-pick:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 2px;
}

/* Below a wide screen the picker takes its own row at the foot of the page's header, so it never lies
   over the heading, the wordmark or the day and night switch, and never pushes the page sideways. On a
   phone: one row of six from 360 px, three by two below that, and the word "Theme" kept for screen
   readers only. */
@media (max-width: 1180px) {
  /* The header that holds the picker (each theme draws its own): it wraps and grows to fit the row. The
     id keeps this ahead of each theme's own sheet, which loads after this one. */
  :has(> #voyage-themes) {
    flex-wrap: wrap;
    height: auto;
    row-gap: 4px;
  }
  .voyage-themes {
    order: 100;
    flex: 1 1 100%;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    flex-wrap: nowrap;
    justify-content: center;
    margin: 0.25rem 0 0.25rem;
  }
}
@media (max-width: 520px) {
  .voyage-themes {
    display: grid;
    grid-template-columns: repeat(6, auto);
    justify-content: space-between;
    gap: 0.25rem;
    margin: 0.25rem 0 0;
    font-size: 0.6875rem;
    letter-spacing: 0.04em;
  }
  .voyage-themes .vt-label {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
  }
  .voyage-themes .vt-pick {
    padding: 0.2rem 0.4rem;
    white-space: nowrap;
  }
}
@media (max-width: 359px) {
  .voyage-themes {
    grid-template-columns: repeat(3, 1fr);
  }
}
