/* =====================================================
   PATTERNS — page-composition classes (the sticky nav
   pill bar + the live-status tag). Consumed by lol.html;
   ported verbatim from the live site so the chrome is
   pixel-identical to the other pages.
   ===================================================== */

/* ---------- NAVBAR : dark soft pill bar ---------- */
.nav {
  position: sticky;
  top: 14px;
  z-index: 50;
  margin: 14px auto 0;
  max-width: var(--rail-max);
  width: calc(100% - 28px);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  padding: 10px 14px 10px 18px;
  border-radius: 24px;
  background: linear-gradient(180deg, var(--surface-top) 0%, var(--surface-bot) 100%);
  border: 1px solid var(--hair);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    inset 0 -1px 0 rgba(0, 0, 0, 0.4),
    0 24px 50px -28px rgba(0, 0, 0, 0.9);
}
.nav__brand {
  display: flex; align-items: center; gap: 12px;
  justify-self: start; text-decoration: none; color: var(--text);
}
.nav__pfp {
  width: 44px; height: 44px;
  flex-shrink: 0;
  display: grid; place-items: center;
  overflow: hidden;
  border-radius: 12px;
  background: var(--well);
  border: 1px solid var(--hair-2);
}
.nav__pfp img { width: 100%; height: 100%; object-fit: cover; display: block; }
.nav__name { font-size: 16px; font-weight: 600; letter-spacing: 0.01em; }

/* inset dark track that holds the link pills */
.nav__links {
  justify-self: center;
  display: inline-flex; align-items: center; gap: 0;
  list-style: none; margin: 0; padding: 5px;
  background: linear-gradient(180deg, var(--well) 0%, #101012 100%);
  border: 1px solid rgba(0, 0, 0, 0.5);
  border-radius: 999px;
  box-shadow:
    inset 0 2px 6px rgba(0, 0, 0, 0.75),
    inset 0 -1px 0 rgba(255, 255, 255, 0.03);
}
.nav__links li { display: flex; }
.nav__links a {
  display: inline-flex; align-items: center; justify-content: center;
  line-height: 1;
  padding: 9px 16px 8px;
  border-radius: 999px;
  text-decoration: none;
  color: var(--text-dim);
  font-size: 13px; font-weight: 600; letter-spacing: 0.05em;
  transition: color 180ms ease, background 180ms ease;
}
.nav__links a:hover { color: var(--text); }
.nav__links a.is-active {
  color: var(--raised-ink);
  background: linear-gradient(180deg, var(--raised-top) 0%, var(--raised-bot) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    inset 0 -2px 3px rgba(0, 0, 0, 0.12),
    0 5px 13px -4px rgba(0, 0, 0, 0.7);
}
.nav__links a.is-active:hover { color: var(--raised-ink); }

/* mobile: two-row nav — [brand | lang] on top, full-width link track below */
@media (max-width: 640px) {
  .nav { grid-template-columns: 1fr auto; gap: 10px 12px; padding: 10px 12px 10px 14px; }
  .nav__brand { grid-column: 1; grid-row: 1; }
  .nav__lang { grid-column: 2; grid-row: 1; justify-self: end; }
  .nav__links { grid-column: 1 / -1; grid-row: 2; justify-self: stretch; width: 100%; display: flex; }
  .nav__links li { flex: 1 1 0; min-width: 0; }
  .nav__links a { width: 100%; padding: 10px 4px 9px; font-size: 12px; letter-spacing: 0.02em; white-space: nowrap; }
}

/* ---------- LIVE tag (soft status dot) ---------- */
.tag-live {
  display: inline-flex; align-items: center; gap: 7px;
  color: var(--text);
}
.tag-live::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: #e7e8eb;
  box-shadow: 0 0 0 3px rgba(231, 232, 235, 0.16);
}
