/* Shared public-site chrome (footer, and later header). Self-contained colors
   and fonts so it renders identically on every public page regardless of that
   page's own theme tokens. New `esf-*` class names avoid any collision with the
   per-page `.foot-*` / `.sc-foot-*` styles during migration. */

.esf {
  border-top: 1px solid rgba(255,255,255,.06);
  padding: 34px 0;
  background: #070b0a;
  font-family: 'Space Grotesk', system-ui, -apple-system, 'Segoe UI', sans-serif;
}
.esf-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}
.esf-logo {
  display: flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
  font-weight: 700;
  font-size: 16px;
  letter-spacing: -.02em;
  color: #eef3f0;
}
.esf-logo .esf-wm-b { color: #2ee08a; }
.esf-copy { color: #8ba398; font-size: 13px; }
.esf-links {
  display: flex;
  gap: 24px;
  align-items: center;
  flex-wrap: wrap;
}
.esf-links a {
  color: #8ba398;
  font-size: 13.5px;
  text-decoration: none;
  transition: color .2s;
}
.esf-links a:hover { color: #3df0a0; }
.esf-group { display: flex; flex-direction: column; gap: 7px; }
.esf-group-label {
  font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, monospace;
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #6b7f76;
  font-weight: 500;
}
.esf-group a { display: block; }
.esf-discord {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #a5b0ff;
  font-weight: 600;
  padding: 8px 15px;
  border: 1px solid rgba(88,101,242,.5);
  border-radius: 9px;
  background: rgba(88,101,242,.14);
  transition: background .2s, border-color .2s, color .2s;
}
.esf-discord:hover {
  background: rgba(88,101,242,.26);
  border-color: rgba(88,101,242,.8);
  color: #c3cbff;
}
.esf-disclaimer {
  flex: 1 1 100%;
  font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, monospace;
  font-size: 11px;
  color: #6b7f76;
  line-height: 1.5;
}

/* ============================================================
   Light/dark theme control for public pages (no account menu).
   The toggle button (partials/_theme_toggle.html) lives in the
   nav; the early script in partials/_theme_init.html flips
   data-theme. These pages already pull in tokens.css, so the body
   flips for free — only the nav / dropdown / mobile chrome hardcode
   dark colors, fixed with data-theme overrides below (higher
   specificity than the pages' bare `nav {}` inline rules, so source
   order doesn't matter).
   ============================================================ */
.pub-theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  background: transparent;
  border: 1px solid var(--border, rgba(255, 255, 255, 0.12));
  border-radius: var(--radius-md, 10px);
  color: var(--text-secondary, #8ba398);
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s;
}
.pub-theme-toggle:hover {
  color: var(--text-primary, #eef3f0);
  border-color: var(--border-strong, rgba(255, 255, 255, 0.18));
}
.pub-theme-toggle:focus-visible {
  outline: none;
  box-shadow: var(--focus-shadow, 0 0 0 3px rgba(46, 224, 138, 0.45));
}
.pub-theme-ic { display: block; }
.pub-theme-sun { display: none; }
[data-theme="light"] .pub-theme-moon { display: none; }
[data-theme="light"] .pub-theme-sun { display: block; }

/* Nav + dropdown + mobile chrome: swap the hardcoded dark glass for light. */
[data-theme="light"] nav { background: rgba(255, 255, 255, 0.72); }
[data-theme="light"] .nav-menu-panel { background: rgba(255, 255, 255, 0.97); }
[data-theme="light"] .pmenu-panel { background: rgba(255, 255, 255, 0.98); }
[data-theme="light"] .pmenu-burger { background: rgba(9, 26, 20, 0.04); }
