/*
 * Susegado Strike frontend background and grain treatment.
 * Applied only when the public event page receives the App and grain classes.
 */

.App {
  position: relative;
  min-height: 100vh;
}

.public-event-page.App {
  background-color: #050505 !important;
  color: #fafafa;
}

.grain::before {
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='a'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23a)'/%3E%3C/svg%3E");
  content: "";
  inset: 0;
  opacity: 0.05;
  pointer-events: none;
  position: fixed;
  z-index: 60;
}

/* Full-width light content band while preserving the existing inner layout. */
.public-event-page.App.grain > .public-event-shell-v2 {
  position: relative;
  z-index: 61;
  isolation: isolate;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 34px 0 48px;
  background: #ffffff !important;
  background-color: #ffffff !important;
  background-image: none !important;
  color: #050505;
}

.public-event-page.App .public-event-layout-v2 {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
}

/* Text inside the white content band must use the light-theme text colour. */
.public-event-page.App .public-event-shell-v2 .public-event-about-copy-v2 p,
.public-event-page.App .public-event-shell-v2 .public-event-muted-v2,
.public-event-page.App .public-event-shell-v2 .public-event-info-item-v2,
.public-event-page.App .public-event-shell-v2 .public-event-submit {
/*  color: #050505 !important;*/
}

/* Keep the shared site chrome outside the grain overlay. */
.public-event-page.App.grain > .ss-site-header {
  z-index: 90;
}

.public-event-page.App.grain > .ss-site-footer {
  position: relative;
  z-index: 70;
  isolation: isolate;
}

@media (max-width: 720px) {
  .public-event-page.App .public-event-layout-v2 {
    width: min(100% - 24px, 1180px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .grain::before {
    transform: none;
  }
}
