/* The tab bar shared by the homepage, Privacy Policy and Terms of Service, so every public
   page switches to the others from the same place. One stylesheet rather than a copy in each
   page, so the three cannot drift apart. Colours come from each page's own :root tokens,
   with fallbacks for the two a page may not define. */

.site-nav {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(15, 11, 26, 0.86);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border, #2a2340);
}

.site-nav-inner {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  grid-template-areas: "brand tabs open";
  align-items: center;
  column-gap: 20px;
}

.site-nav-brand {
  grid-area: brand;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text, #ece8fb);
  font-weight: 650;
  font-size: 15px;
  text-decoration: none;
}

.site-nav-mark {
  width: 24px;
  height: 24px;
  border-radius: 7px;
  background: linear-gradient(135deg, var(--accent, #8b5cf6), #4c2ba0);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.site-nav-tabs {
  grid-area: tabs;
  display: flex;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: none;
}
.site-nav-tabs::-webkit-scrollbar { display: none; }

.site-nav-tabs a {
  position: relative;
  padding: 16px 10px 15px;
  color: var(--text-dim, #a89fc9);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
}

.site-nav-tabs a:hover {
  color: var(--text, #ece8fb);
}

.site-nav-tabs a[aria-current="page"] {
  color: var(--text, #ece8fb);
}

.site-nav-tabs a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: -1px;
  height: 2px;
  border-radius: 2px;
  background: var(--accent, #8b5cf6);
}

.site-nav-open {
  grid-area: open;
  padding: 7px 12px;
  border-radius: 8px;
  border: 1px solid var(--border, #2a2340);
  color: var(--text, #ece8fb);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

.site-nav-open:hover {
  border-color: var(--accent, #8b5cf6);
  color: var(--accent-hover, #9d70f9);
}

.site-nav a:focus-visible {
  outline: 2px solid var(--accent, #8b5cf6);
  outline-offset: 2px;
  border-radius: 6px;
}

/* On a phone the tabs take their own row under the brand and the way into the app. */
@media (max-width: 600px) {
  .site-nav-inner {
    padding: 0 16px;
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "brand open"
      "tabs tabs";
    row-gap: 2px;
  }
  .site-nav-brand { padding-top: 12px; }
  .site-nav-open { margin-top: 10px; }
  .site-nav-tabs { margin: 0 -10px; }
  .site-nav-tabs a { padding: 10px 10px 11px; }
}
