/* =====================================================================
   Site footer: wordmark + tagline + Tulsa, then the secondary links that
   left the main nav (newsletter, playlists, the game, dispatches, support,
   socials). Same dark ground as the header so the page is bookended.

   Phone first: the links wrap onto as many rows as they need, and every link
   is a full 44px tap target. Tokens only.
   ===================================================================== */

.footer {
  background: var(--header-bg);
  color: var(--text-light);
  padding: var(--space-xl) var(--space-md) var(--space-lg);
}

.footer-inner {
  max-width: 72rem;
  margin: 0 auto;
  text-align: center;
}

.footer a {
  color: var(--text-light);
  text-decoration: none;
}

.footer a:hover,
.footer a:focus-visible {
  color: var(--color-accent-on-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ---------- Brand line ---------- */

.footer-brand {
  margin: 0 0 var(--space-md);
}

.footer-wordmark {
  display: block;
  font-family: var(--font-heading);
  font-size: var(--font-size-xl);
  margin-bottom: var(--space-xs);
}

.footer-tagline {
  display: block;
  font-family: var(--font-content);
  font-style: italic;
  font-size: var(--font-size-md);
}

.footer-location {
  display: block;
  font-family: var(--font-ui);
  font-size: var(--font-size-xs);
  text-transform: uppercase;
  letter-spacing: var(--tracking-caps);
  color: var(--text-muted);
  margin-top: var(--space-xs);
}

/* ---------- Links ---------- */

/* Selector carries the nav class on purpose: base_styles/mobile.css has a
   broad phone rule (`nav ul { flex-direction: column }`) written for the old
   header nav, and this needs to outrank it so the links wrap into rows. */
.footer-nav .footer-links {
  list-style: none;
  margin: 0 0 var(--space-md);
  padding: 0;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0 var(--space-md);
}

.footer-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-family: var(--font-ui);
  font-size: var(--font-size-sm);
}

/* "New puzzle you haven't played" indicator, on the footer's game link.
   Hidden by default; shown only when the link carries .is-unplayed
   (server-set for logged-in users, client-toggled for anonymous readers via
   localStorage by game_nav_dot.js). Functional, today-scoped, no tracking. */
.game-nav-dot {
  display: inline-block;
  width: 0.4rem;
  height: 0.4rem;
  margin-left: 0.35rem;
  border-radius: var(--radius-pill);
  background-color: var(--color-accent-on-dark);
  vertical-align: super;
  opacity: 0;
  transform: scale(0);
  transition: opacity var(--transition-fast), transform var(--transition-fast);
}

.footer-game-link.is-unplayed .game-nav-dot {
  opacity: 1;
  transform: scale(1);
}

.footer-copyright {
  font-size: var(--font-size-xs);
  color: var(--text-muted);
  margin: 0;
}
