/* Shared top nav — used on all inner pages */
.top-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 48px;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  background: var(--nav-bg);
  z-index: 100;
  height: 61px;
}

.nav-back {
  color: var(--accent);
  text-decoration: none;
  font-size: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  letter-spacing: 1.5px;
  font-family: 'Orbitron', sans-serif;
  transition: opacity 0.2s, color 0.2s;
}

.nav-back::before {
  content: "←";
  font-size: 14px;
  font-family: sans-serif;
}

.nav-back:hover { opacity: 0.75; color: var(--text-bright); }

.top-nav-links {
  display: flex;
  gap: 32px;
  align-items: center;
}

.top-nav-links a {
  color: var(--text-dim);
  text-decoration: none;
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  transition: color 0.2s;
  font-family: 'Inter', 'Segoe UI', system-ui, sans-serif;
}

.top-nav-links a:hover { color: var(--text); }
.top-nav-links a.active { color: var(--text); }

@media (max-width: 768px) {
  .top-nav {
    padding: 14px 20px;
    flex-wrap: wrap;
    gap: 10px;
    height: auto;
  }
  .top-nav-links { gap: 14px; }
}

/* ── SHARED THIN PAGE HEADER ── */
.page-header-thin {
  position: relative;
  height: 72px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid var(--border);
}

.page-header-thin .video-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.page-header-thin .video-bg video {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  object-fit: cover;
  pointer-events: none;
  opacity: 0.18;
}

.page-header-thin .video-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(17,17,17,0.85),
    rgba(17,17,17,0.5),
    rgba(17,17,17,0.85)
  );
  z-index: 1;
}

[data-theme="light"] .page-header-thin .video-overlay {
  background: linear-gradient(
    to right,
    rgba(247,247,247,0.85),
    rgba(247,247,247,0.5),
    rgba(247,247,247,0.85)
  );
}

.page-header-thin .page-title {
  position: relative;
  z-index: 2;
  font-family: 'Orbitron', sans-serif;
  font-size: 13px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--text-bright);
  text-align: center;
}

/* underline removed — typewriter.js handles post-type decoration on landing */

@media (max-width: 768px) {
  .page-header-thin { height: 56px; }
}

/* ── TABLET (769px–1024px) ── */
@media (max-width: 1024px) and (min-width: 769px) {
  .top-nav { padding: 16px 32px; }
  .top-nav-links { gap: 20px; }
  .top-nav-links a { font-size: 10px; letter-spacing: 1px; }
}

/* ── HAMBURGER BREAKPOINT: hide text links, keep theme toggle ── */
@media (max-width: 992px) {
  .top-nav-links a { display: none; }
  /* the fixed hamburger sits at the top-right corner; shift the theme toggle
     left so the two controls don't overlap */
  .top-nav-links { margin-right: 42px; }
}
