/* Uniform site chrome: fixed full-width header + footer, floating liquid-glass nav pill.
   Used by every page. Loaded after tokens.css. */

.dst-header,
.dst-footer {
  position: fixed;
  left: 0;
  right: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 24px;
  background: rgba(27, 27, 27, 0.55);
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
}

.dst-header {
  top: 0;
  border-bottom: 0.5px solid rgba(243, 243, 243, 0.06);
}

.dst-footer {
  bottom: 0;
  border-top: 0.5px solid rgba(243, 243, 243, 0.06);
  font-size: var(--t-micro);
  letter-spacing: var(--t-micro-tracking);
  text-transform: uppercase;
}

.dst-header-title {
  font-size: var(--t-micro);
  letter-spacing: var(--t-micro-tracking);
  text-transform: uppercase;
  color: var(--c-fg);
  text-decoration: none;
  white-space: nowrap;
}
.dst-header-title:hover { color: var(--c-orange); }

.dst-stats {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--font-mono);
  font-size: var(--t-micro);
  letter-spacing: 0.04em;
  color: var(--c-muted);
}
.dst-stats-label {
  font-family: var(--font-sans);
  text-transform: uppercase;
  letter-spacing: var(--t-micro-tracking);
  color: var(--c-muted);
}
.dst-stat { white-space: nowrap; }
.dst-stat-num {
  color: var(--c-fg);
  font-variant-numeric: tabular-nums;
}

.dst-footer-link {
  color: var(--c-muted);
  text-decoration: none;
  transition: color 0.15s;
}
.dst-footer-link:hover { color: var(--c-fg); }

/* Floating liquid-glass nav pill, bottom-center, above the footer. */
.dst-pill {
  position: fixed;
  bottom: 56px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 50;
  display: flex;
  gap: 2px;
  padding: 5px;
  background: rgba(243, 243, 243, 0.06);
  border: 0.5px solid rgba(243, 243, 243, 0.14);
  border-radius: var(--radius-pill);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  box-shadow:
    0 12px 36px rgba(0, 0, 0, 0.45),
    inset 0 0.5px 0 rgba(255, 255, 255, 0.1);
}
.dst-pill-item {
  padding: 8px 18px;
  border-radius: var(--radius-pill);
  font-size: var(--t-caption);
  line-height: 1;
  color: var(--c-muted);
  text-decoration: none;
  letter-spacing: 0.02em;
  white-space: nowrap;
  transition: color 0.15s, background-color 0.15s;
}
.dst-pill-item:hover { color: var(--c-fg); }
.dst-pill-item.is-active {
  background: rgba(243, 243, 243, 0.12);
  color: var(--c-fg);
}

/* Reserve room for fixed chrome on scrollable pages.
   Timespace uses absolute layout and opts out via .timespace-body. */
body:not(.timespace-body) {
  padding-top: 64px;
  padding-bottom: 108px;
}

/* Mobile: pill becomes a full-width tab bar above the footer.
   Stats stay visible but compact; header title never wraps. */
@media (max-width: 720px) {
  .dst-header,
  .dst-footer {
    padding: 10px 14px;
    gap: 10px;
  }
  .dst-stats {
    gap: 8px;
    font-size: 10px;
    overflow: hidden;
    flex-shrink: 1;
    min-width: 0;
  }
  .dst-stats-label { display: none; }
  .dst-stat { white-space: nowrap; }

  .dst-pill {
    left: 0;
    right: 0;
    bottom: 36px;
    transform: none;
    padding: 4px;
    gap: 0;
    border-radius: 0;
    border-left: none;
    border-right: none;
    border-bottom: none;
    box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.35), inset 0 0.5px 0 rgba(255, 255, 255, 0.06);
  }
  .dst-pill-item {
    flex: 1;
    padding: 9px 4px;
    font-size: var(--t-micro);
    text-align: center;
    letter-spacing: 0.04em;
  }

  .dst-footer { font-size: 10px; padding: 9px 14px; }

  body:not(.timespace-body) {
    padding-top: 52px;
    padding-bottom: 110px;
  }
}
