/* Dotty Retro DS · nav.css */

/* ─────────────────────────────────────────
   3. GLOBAL NAV (floating brushed chrome)
   ───────────────────────────────────────── */
.ds-nav {
  display: flex;
  justify-content: center;
  padding: 16px 16px 0;
  background: transparent;
  border: 0;
}

.ds-nav-inner {
  display: flex;
  width: 100%;
  max-width: var(--ds-max);
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #2a2a2a;
  box-shadow:
    0 2px 6px rgba(0,0,0,0.12),
    0 1px 0 rgba(255,255,255,0.2) inset;
  background: linear-gradient(
    to bottom,
    #8a8a8a 0%,
    #5a5a5a 46%,
    #3e3e3e 54%,
    #585858 100%
  );
}

.ds-nav-tab {
  flex: 1 1 0;
  min-width: 0;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 36px;
  padding: 0 8px;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  text-shadow: 0 -1px 0 rgba(0,0,0,0.45);
  text-decoration: none !important;
  border: 0;
  background: transparent;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.22);
  z-index: 0;
}
.ds-nav-tab:hover {
  background: transparent;
}
.ds-nav-tab:not(.brand):hover::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 5px 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}
/* Active = inset rounded pill (not full-tab wash) */
.ds-nav-tab.is-active:not(.brand) {
  background: transparent;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.22);
  color: #fff;
  text-shadow: 0 -1px 0 rgba(0,0,0,0.55);
}
.ds-nav-tab.is-active:not(.brand):hover {
  background: transparent;
}
.ds-nav-tab.is-active:not(.brand)::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 5px 6px;
  border-radius: 999px;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.28) 0%,
    rgba(0, 0, 0, 0.42) 100%
  );
  box-shadow:
    inset 0 1px 3px rgba(0, 0, 0, 0.55),
    inset 0 0 0 1px rgba(0, 0, 0, 0.22),
    0 1px 0 rgba(255, 255, 255, 0.12);
}
.ds-nav-tab.brand {
  flex: 0 0 52px;
  min-width: 52px;
  padding: 0;
}
.ds-nav-tab.brand img {
  width: 26px;
  height: 26px;
  border-radius: 5px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.35);
}

/* Invented header CTA — glossy download pill, last equal-width slot */
.ds-nav-end {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1 1 0;
  min-width: 0;
  height: 36px;
  padding: 0 8px;
  background: transparent;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.22);
}
.ds-nav-download {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 24px;
  padding: 0 12px 1px;
  border: 1px solid #3777bf;
  border-top-color: #4a86c1;
  border-bottom-color: #2469bc;
  border-radius: 11px;
  background-color: #408edb;
  background-image: linear-gradient(to bottom, #51a8e6, #2f78d0);
  color: #fff !important;
  font-size: 11px;
  font-weight: 700;
  text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.6);
  text-decoration: none !important;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
  white-space: nowrap;
}
.ds-nav-download:hover {
  border-color: #376daa;
  background-color: #3a87d7;
  background-image: linear-gradient(to bottom, #4795cc, #2a6ab8);
}
.ds-nav-download::after {
  content: "";
  flex: 0 0 auto;
  width: 14px;
  height: 14px;
  background: url("/assets/images/icons/download-badge.svg?v=dup1") center / contain no-repeat;
}
.ds-subnav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px 2px;
  max-width: var(--ds-max);
  margin: 0 auto;
  padding: 10px 16px 4px;
  border: 0;
  background: transparent;
}
.ds-subnav a {
  padding: 2px 9px;
  font-size: 11px;
  color: #555;
  border: 0;
  text-decoration: none;
}
.ds-subnav a:hover { color: #0085cf; text-decoration: underline; }
