/* Minimal, non-destructive global styles */
h1, h2, h3, h4 {
  text-align: center;
  line-height: 1.2;
  margin: 0.6em 0;
}

/* Back button styles (clear and accessible) */
.back-nav {
  display: flex;
  justify-content: center;
  margin: 0.5rem 0 1rem;
}

.back-button {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .6rem 1rem;
  border: 1px solid #1a73e8;
  border-radius: .5rem;
  background: #1a73e8;
  color: #ffffff;
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0.2px;
  box-shadow: 0 1px 2px rgba(0,0,0,.08);
}

.back-button:hover {
  filter: brightness(1.05);
}

/* --- Background video and overlay --- */
.bg-video {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2; /* behind content */
}

.bg-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.35);
  z-index: -1; /* above video, below content */
}

/* Hide static image layer by default so video is visible */
.bg {
  display: none;
}

/* Respect users who prefer reduced motion: show static image, hide video */
@media (prefers-reduced-motion: reduce) {
  .bg-video { display: none; }
  .bg { display: block; }
}
