/* The site-wide top nav (every /dungeontrain/ page). Self-contained: its own faces and colours, all
   under .site-nav, so it looks the same whichever page stylesheet sits beside it. The markup is copied
   into each page by hand and site-nav.test.js keeps the copies identical. Phones (≤ 760px) fold the
   links behind a menu button that opens a full-screen list (nav.js). */

@font-face {
  font-family: "Big Shoulders Display"; font-weight: 900; font-style: normal; font-display: swap;
  src: url("fonts/big-shoulders-display-900.woff2") format("woff2");
}
@font-face {
  font-family: "Karla"; font-weight: 500; font-style: normal; font-display: swap;
  src: url("fonts/karla-500.woff2") format("woff2");
}

.site-nav {
  --sn-bg: #151816; --sn-line: #3a413b; --sn-ink: #e4e8e1; --sn-muted: #99a397; --sn-story: #dfe5dc;
  --sn-accent: #8cc45e; --sn-on-accent: #0f1a0b;
  --sn-display: "Big Shoulders Display", "Arial Narrow", Impact, sans-serif;
  --sn-tell: "Karla", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  position: relative; z-index: 20; display: flex; align-items: center; gap: 22px;
  width: 100%; padding: 16px 24px; font: 16px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  text-align: left; text-shadow: none;
}
.site-nav a { text-decoration: none; }

.site-nav-mark {
  position: relative; z-index: 2; font: 900 22px/1 var(--sn-display); text-transform: uppercase; letter-spacing: 0.02em;
  white-space: nowrap; color: var(--sn-ink); text-shadow: 0 1px 8px rgba(0, 0, 0, 0.7);
}
.site-nav-mark span { color: var(--sn-accent); }

.site-nav-links { display: flex; align-items: center; gap: 2px; margin-right: auto; }
.site-nav-links a {
  padding: 6px 10px; border-radius: 6px; white-space: nowrap; color: var(--sn-story);
  font: 500 15px/1 var(--sn-tell); text-shadow: 0 1px 6px rgba(0, 0, 0, 0.8);
}
.site-nav-links a:hover { background: rgba(255, 255, 255, 0.07); }
.site-nav-links a[aria-current] { color: var(--sn-accent); border-radius: 0; box-shadow: inset 0 -2px 0 var(--sn-accent); }
.site-nav-links a:focus-visible, .site-nav-btn:focus-visible, .site-nav-burger:focus-visible, .site-nav-mark:focus-visible {
  outline: 2px solid var(--sn-accent); outline-offset: 2px;
}
/* Only in the phone list: Support and Discord already have buttons on wider screens. */
.site-nav-links .site-nav-sheet-only { display: none; }

.site-nav-actions { display: flex; align-items: center; gap: 8px; }
.site-nav-btn {
  display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border-radius: 8px;
  border: 1px solid var(--sn-line); background: rgba(21, 24, 22, 0.7); color: var(--sn-ink);
  font: 14px/1.2 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; white-space: nowrap;
}
.site-nav-btn:hover, .site-nav-btn[aria-current] { border-color: var(--sn-accent); }
.site-nav-btn.primary { background: var(--sn-accent); border-color: var(--sn-accent); color: var(--sn-on-accent); font-weight: 600; }
.site-nav-btn.primary:hover { filter: brightness(1.08); }
.site-nav-btn svg { width: 16px; height: 16px; fill: currentColor; }

.site-nav-burger {
  position: relative; z-index: 2; display: none; place-items: center; width: 38px; height: 38px; padding: 0;
  border-radius: 8px; border: 1px solid var(--sn-line); background: rgba(21, 24, 22, 0.7); color: var(--sn-ink); cursor: pointer;
}
.site-nav-burger svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.site-nav-burger .close { display: none; }
.site-nav.open .site-nav-burger .open-icon { display: none; }
.site-nav.open .site-nav-burger .close { display: block; }

/* Landing page: the hero's own buttons sit right below, so the nav has no buttons there. */
.site-nav.home .site-nav-links { margin-right: 0; }

@media (max-width: 760px) {
  .site-nav { gap: 10px; padding: 12px 16px; }
  .site-nav-mark { margin-right: auto; }
  .site-nav-actions .site-nav-btn:not(.primary) { display: none; }
  .site-nav-burger { display: grid; }
  .site-nav-links {
    position: fixed; inset: 0; z-index: 1; display: none; flex-direction: column; align-items: flex-start; gap: 2px;
    margin: 0; padding: 84px 26px 32px; overflow-y: auto; background: var(--sn-bg);
  }
  .site-nav.open .site-nav-links { display: flex; }
  .site-nav-links a, .site-nav-links .site-nav-sheet-only {
    display: block; padding: 4px 0; border-radius: 0; font: 900 36px/1.15 var(--sn-display); text-transform: uppercase; color: var(--sn-ink);
  }
  .site-nav-links a:hover { background: none; color: var(--sn-accent); }
  .site-nav-links a[aria-current] { color: var(--sn-accent); box-shadow: none; }
  .site-nav-links .site-nav-small { margin-top: 18px; font: 500 16px/1.4 var(--sn-tell); text-transform: none; color: var(--sn-muted); }
}
/* The open phone list covers the page; the page underneath must not scroll. */
html.site-nav-locked { overflow: hidden; }

/* The Live link (after Credits): nav.js unhides it only while someone is streaming the Live Feed. The
   [hidden] rule must win over the phone sheet's `display: block` above. */
.site-nav-links a.site-nav-live { display: inline-flex; align-items: center; gap: 7px; }
.site-nav-links a.site-nav-live[hidden] { display: none; }
@media (max-width: 760px) { .site-nav-links a.site-nav-live { display: flex; gap: 12px; } }
/* The green dot — shared by this link and the landing page's "live footage" label (landing.css). */
.live-dot {
  flex: none; width: 9px; height: 9px; border-radius: 50%; background: #3ddc5a;
  box-shadow: 0 0 0 0 rgba(61, 220, 90, 0.6); animation: live-pulse 2s ease-out infinite;
}
@media (max-width: 760px) { .site-nav-links .live-dot { width: 14px; height: 14px; } }
@keyframes live-pulse { to { box-shadow: 0 0 0 7px rgba(61, 220, 90, 0); } }
@media (prefers-reduced-motion: reduce) { .live-dot { animation: none; } }
