/* Shared public navigation and footer. */
.ev-header, .ev-footer {
  --ev-accent: #c4ff00;
  color: #f5f4ef;
  background: #141410;
  font: 500 14px/1.45 Inter, Arial, sans-serif;
}
.ev-header {
  position: relative;
  z-index: 40;
  display: block;
  height: auto;
  padding: 0;
  border: 0;
}
/* Public navigation also renders inside the signed-out app shell. */
.ev-header nav, .ev-home nav.chapters {
  inset: auto;
  transform: none;
  width: auto;
  max-width: none;
  height: auto;
  border: 0;
  border-radius: 0;
}
.ev-header nav.ev-desktop-links {
  position: static;
  padding: 0;
  background: transparent;
}
.ev-home nav.chapters {
  position: static;
  background: transparent;
}
.ev-shell, .ev-footer-inner { width: min(calc(100% - 2 * clamp(24px, 5vw, 64px)), 1312px); margin-inline: auto; }
.ev-header .ev-shell { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 76px; border-bottom: 1px solid #ffffff20; }
.ev-header a, .ev-footer a { color: inherit; text-decoration: none; }
.ev-header a:hover, .ev-footer a:hover { color: var(--ev-accent); }
.ev-brand { display: inline-flex; align-items: center; min-height: 44px; }
.ev-desktop-links { display: flex; align-items: center; gap: clamp(10px, 2vw, 32px); white-space: nowrap; }
.ev-header a.ev-register { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 15px; border-radius: 24px; background: var(--ev-accent); color: #141410; font-weight: 700; }
.ev-header a.ev-register { transition: background-color .16s ease, transform .16s ease; }
.ev-header a.ev-register:is(:hover, :focus-visible, :active) { background: #b4ea00; color: #141410; }
.ev-header a.ev-register:active { transform: scale(.96); }
@media (prefers-reduced-motion: reduce) {
  .ev-header a.ev-register { transition: none; }
}
.ev-dropdown { display: none; position: relative; }
.ev-dropdown summary { display: grid; place-items: center; width: 44px; height: 44px; cursor: pointer; border: 1px solid #ffffff35; border-radius: 10px; list-style: none; }
.ev-dropdown summary::-webkit-details-marker { display: none; }
.ev-header .ev-dropdown nav { display: block; position: absolute; right: 0; top: calc(100% + 8px); width: min(265px, calc(100vw - 48px)); padding: 10px; border: 1px solid #ffffff25; border-radius: 12px; background: #1c1e16; box-shadow: 0 12px 30px #0005; }
.ev-header .ev-dropdown:not([open]) nav { display: none; }
.ev-dropdown nav a { display: flex; align-items: center; min-height: 44px; padding: 8px 12px; }
.ev-footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 18px 30px; border-top: 1px solid #ffffff20; padding: 25px 0 48px; color: #bcbdb0; font-size: 12px; }
.ev-footer-info { flex: 1 1 245px; max-width: 670px; display: grid; gap: 8px; justify-items: start; }
.ev-privacy summary { cursor: pointer; }
.ev-privacy p { margin: 10px 0; }
.ev-footer-actions { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 10px; }
.ev-footer .ev-social-icon { display: inline-grid; place-items: center; width: 36px; height: 36px; border: 1px solid #c4ff0060; border-radius: 6px; color: var(--ev-accent); }
.ev-social-icon svg { width: 18px; height: 18px; }
.ev-footer .ev-footer-privacy { padding: 9px 4px; }
.ev-header :focus-visible, .ev-footer :focus-visible { outline: 2px solid var(--ev-accent); outline-offset: 3px; }
@media (max-width: 1024px) {
  .ev-header .ev-shell { min-height: 68px; }
  .ev-desktop-links { display: none; }
  .ev-dropdown { display: block; }
}

/* Shared marketing theme controls and palettes. */
.ev-header .ev-brand { order: 0; }
.ev-header .ev-desktop-links[aria-label="Main navigation"] { order: 1; }
.ev-header-tools { display: flex; align-items: center; gap: 10px; order: 2; }
.ev-theme-pill {
  display: grid;
  place-items: center;
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  min-height: 44px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  transition: color .16s ease, transform .16s ease;
}
.ev-theme-pill [data-mode-label] { display: none !important; }
.ev-theme-pill svg { width: 19px; height: 19px; }
.ev-theme-pill .sun { display: none; }
:root[data-site-theme="dark"] .ev-theme-pill .sun { display: block; }
:root[data-site-theme="dark"] .ev-theme-pill .moon { display: none; }
.ev-theme-pill:is(:hover, :focus-visible) { color: var(--ev-accent); }
.ev-theme-pill:active { transform: scale(.94); }
.ev-header .ev-actions .ev-desktop-account {
  display: inline-grid;
  place-items: center;
  flex: 0 0 44px;
  width: 44px;
  min-height: 44px;
  color: inherit;
}
.ev-header .ev-desktop-account svg { width: 22px; height: 22px; }
.ev-header .ev-desktop-account:is(:hover, :focus-visible, :active) { color: var(--ev-accent); }
.ev-mobile-account {
  display: none;
  place-items: center;
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  color: inherit;
}
.ev-mobile-account svg { width: 23px; height: 23px; }
.ev-mobile-account:is(:hover, :focus-visible, :active) { color: var(--ev-accent); }
:root[data-site-theme="light"] :is(.ev-header, .ev-footer) {
  background: #f7f6f0;
  color: #191c16;
}
:root[data-site-theme="light"] :is(.ev-header .ev-shell, .ev-footer-inner) {
  border-color: #d5d9ca;
  color: #39422e;
}
:root[data-site-theme="light"] :is(.ev-theme-pill, .ev-dropdown summary) { border-color: #a8b098; }
:root[data-site-theme="light"] .ev-dropdown nav { background: #fffef9; border-color: #d5d9ca; }
@media (max-width: 1024px) {
  .ev-header-tools { gap: 10px; }
  .ev-mobile-account { display: inline-grid; }
}
@media (max-width: 420px) {
  .ev-header-tools { gap: 8px; }
}

.ev-footer .ev-social-icon {
  transition: background-color .16s ease, color .16s ease, transform .16s ease;
}
:root[data-site-theme="light"] .ev-footer .ev-social-icon {
  background: #191c16;
  border-color: #191c16;
  color: var(--ev-accent);
}
@media (hover: hover) {
  .ev-footer .ev-social-icon:hover {
    background: var(--ev-accent);
    border-color: var(--ev-accent);
    color: #141410;
    transform: translateY(-2px);
  }
}
.ev-footer .ev-social-icon:is(:focus-visible, :active) {
  background: var(--ev-accent);
  border-color: var(--ev-accent);
  color: #141410;
}
.ev-footer .ev-social-icon:active { transform: scale(.92); }
:root[data-site-theme="light"] .ev-footer .ev-social-icon:is(:hover, :focus-visible, :active) {
  background: var(--ev-accent);
  border-color: #47620f;
  color: #141410;
}
:root[data-site-theme="light"] .ev-header a:not(.ev-register):is(:hover, :focus-visible, :active) {
  color: #b4ea00;
}
:root[data-site-theme="light"] .ev-footer a:not(.ev-social-icon):is(:hover, :focus-visible) {
  background: var(--ev-accent);
  color: #141410;
  border-radius: 4px;
}
:root[data-site-theme="light"] .ev-dropdown summary {
  background: var(--ev-accent);
  border-color: #47620f;
  color: #141410;
}
:root[data-site-theme="light"] .ev-dropdown summary:active { transform: scale(.94); }
:root[data-site-theme="light"] :is(.ev-header, .ev-footer) :focus-visible {
  outline-color: #47620f;
}
@media (prefers-reduced-motion: reduce) {
  .ev-footer .ev-social-icon { transition: none; }
}

/* Match header icon hover to the light navigation link hover color. */
:root[data-site-theme="light"] .ev-theme-pill:is(:hover, :focus-visible),
:root[data-site-theme="light"] .ev-header .ev-desktop-account:is(:hover, :focus-visible, :active),
:root[data-site-theme="light"] .ev-mobile-account:is(:hover, :focus-visible, :active) {
  color: #b4ea00;
}
