/* Shared style switcher and lightweight foundations for every presentation. */

.era-switcher,
.era-switcher * {
  box-sizing: border-box;
}

.era-switcher {
  position: fixed;
  z-index: 900;
  top: 1rem;
  right: 1rem;
  color: #f7fafc;
  font: 700 0.75rem/1.25 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

body:not(.vw-era-2026) .era-switcher {
  top: auto;
  bottom: 1rem;
}

body:not(.vw-era-2026) .era-switcher > nav {
  top: auto;
  bottom: calc(100% + 0.65rem);
}

.era-switcher > summary {
  width: 42px;
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid rgb(255 255 255 / 22%);
  border-radius: 999px;
  background: rgb(10 13 18 / 88%);
  box-shadow: 0 10px 30px rgb(0 0 0 / 25%);
  cursor: pointer;
  list-style: none;
  backdrop-filter: blur(16px);
  transition: border-color 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.era-switcher > summary::-webkit-details-marker {
  display: none;
}

.era-switcher > summary > span:first-child {
  width: 100%;
  min-width: 0;
  min-height: 100%;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: #c8ff4a;
  color: #0a0d12;
  letter-spacing: 0.04em;
}

.era-switcher-icon {
  width: 1.15rem;
  height: 1.15rem;
}

.era-switcher > summary > span:last-child {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}

.era-switcher > summary:hover,
.era-switcher > summary:focus-visible {
  border-color: #65d9ff;
  box-shadow: 0 12px 36px rgb(0 0 0 / 34%), 0 0 0 3px rgb(101 217 255 / 10%);
  transform: translateY(-1px);
}

.era-switcher > summary:active {
  box-shadow: 0 4px 12px rgb(0 0 0 / 25%);
  transform: translateY(2px);
}

.era-switcher > nav {
  position: absolute;
  top: calc(100% + 0.65rem);
  right: 0;
  width: min(210px, calc(100vw - 2rem));
  padding: 0.75rem;
  border: 1px solid rgb(255 255 255 / 16%);
  border-radius: 1rem;
  background: #111721;
  box-shadow: 0 24px 70px rgb(0 0 0 / 45%);
}

.era-switcher nav > p {
  margin: 0 0 0.75rem;
  color: #9ba8b6;
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.era-switcher ol {
  display: grid;
  gap: 0.35rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.era-switcher a {
  display: block;
  gap: 0.75rem;
  align-items: center;
  padding: 0.65rem 0.75rem;
  border: 1px solid transparent;
  border-radius: 0.65rem;
  color: #dce4eb;
  text-decoration: none;
}

.era-switcher a:hover,
.era-switcher a:focus-visible {
  border-color: rgb(101 217 255 / 30%);
  background: rgb(101 217 255 / 8%);
}

.era-switcher a[aria-current="page"] {
  background: #c8ff4a;
  color: #0a0d12;
}

.era-switcher a span {
  color: #65d9ff;
}

.era-switcher a[aria-current="page"] span {
  color: #304007;
}

body:not(.vw-era-2026) {
  min-width: 280px;
  margin: 0;
  overflow-x: hidden;
}

body:not(.vw-era-2026) *,
body:not(.vw-era-2026) *::before,
body:not(.vw-era-2026) *::after {
  box-sizing: border-box;
}

body:not(.vw-era-2026) img,
body:not(.vw-era-2026) svg {
  display: block;
  max-width: 100%;
}

body:not(.vw-era-2026) button,
body:not(.vw-era-2026) input,
body:not(.vw-era-2026) select,
body:not(.vw-era-2026) textarea {
  font: inherit;
}

body:not(.vw-era-2026) .skip-link {
  position: fixed;
  z-index: 1000;
  top: 0.75rem;
  left: 50%;
  padding: 0.7rem 1rem;
  background: #fff;
  color: #111;
  font-weight: 800;
  transform: translate(-50%, -180%);
}

body:not(.vw-era-2026) .skip-link:focus {
  transform: translate(-50%, 0);
}

.era-site {
  min-height: 100vh;
}

@media (max-width: 720px) {
  .vw-era-2026 .era-switcher {
    top: 0.75rem;
    right: 0.75rem;
    bottom: auto;
  }

  body:not(.vw-era-2026) .era-switcher {
    top: auto;
    right: 0.75rem;
    bottom: 0.75rem;
  }

  body:not(.vw-era-2026) .era-switcher > nav {
    top: auto;
    right: 0;
    bottom: calc(100% + 0.65rem);
  }

  .era-switcher > summary {
    width: 42px;
    padding: 0;
  }

  .era-switcher > summary > span:first-child {
    min-width: 0;
    width: 100%;
  }

  .era-topbar {
    grid-template-columns: 1fr auto;
  }

  .era-topbar > nav {
    display: none;
  }

  .era-footer {
    align-items: flex-start;
    flex-direction: column;
    padding-bottom: 5.5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .era-switcher *,
  .era-site *,
  .era-site *::before,
  .era-site *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
