.eventPublicPage {
  min-height: 100vh;
  margin: 0;
  background: #f2f5f9;
  color: #182536;
}

.eventPublicShell {
  width: min(100% - 28px, 760px);
  margin: 0 auto;
  padding: 22px 0 48px;
}

.eventPublicBrand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  color: #12356b;
  font-size: 17px;
  font-weight: 800;
}

.eventPublicBrand img {
  width: 42px;
  height: 42px;
  object-fit: contain;
}

.eventPublicMessage {
  margin: 0 0 12px;
  color: #315071;
  font-weight: 700;
}

.eventPublicMessage.error {
  padding: 10px 12px;
  border: 1px solid #e8b9b6;
  border-left: 4px solid #b42318;
  border-radius: 6px;
  background: #fff7f6;
  color: #8f1d18;
}

.eventPublicCard {
  margin: 0 0 14px;
  padding: 20px;
  border: 1px solid #d5deea;
  border-radius: 8px;
  background: #fff;
}

.eventPublicEyebrow {
  margin: 0 0 6px;
  color: #506681;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.eventPublicCard h1 {
  margin: 0;
  color: #12356b;
  font-size: 26px;
  line-height: 1.2;
}

.eventPublicMeta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 16px 0;
}

.eventPublicMeta div {
  min-width: 0;
}

.eventPublicMeta span,
.eventPublicMeta strong {
  display: block;
  overflow-wrap: anywhere;
}

.eventPublicMeta span {
  color: #586b82;
  font-size: 12px;
}

.eventPublicMeta strong {
  margin-top: 2px;
  color: #1d2c40;
}

.eventPublicDetails {
  margin: 14px 0 0;
  color: #36485e;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.eventPublicForm h2,
.eventPublicSectionTitle {
  margin: 0 0 14px;
  color: #12356b;
  font-size: 18px;
}

.eventPublicContactGrid,
.eventPublicAttendeeGrid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.eventPublicPage label {
  display: grid;
  gap: 5px;
  color: #203b60;
  font-size: 14px;
  font-weight: 700;
}

.eventPublicPage input,
.eventPublicPage select {
  width: 100%;
  min-height: 42px;
  box-sizing: border-box;
}

.eventPublicAttendee {
  margin: 0 0 12px;
  padding: 14px;
  border: 1px solid #d8e1eb;
  border-radius: 6px;
  background: #f8fafc;
}

.eventPublicAttendeeHeader {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 12px;
  color: #173b66;
  font-weight: 800;
}

.eventPublicAttendeeHeader button {
  width: 34px;
  min-width: 34px;
  height: 34px;
  padding: 0;
}

.eventPublicEquipmentField,
.eventPublicWide {
  grid-column: 1 / -1;
}

.eventPublicConfirm {
  display: flex!important;
  align-items: flex-start;
  gap: 9px!important;
  margin-top: 16px;
  font-weight: 500!important;
  line-height: 1.45;
}

.eventPublicConfirm input {
  width: 18px;
  min-width: 18px;
  height: 18px;
  min-height: 18px;
  margin: 2px 0 0;
}

.eventPublicTotal {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid #d8e1eb;
  color: #19385f;
  font-size: 17px;
  font-weight: 800;
}

.eventPublicActions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 16px;
}

.eventPublicActions button {
  min-height: 44px;
}

.eventPublicFootnote {
  margin: 12px 0 0;
  color: #586b82;
  font-size: 13px;
  line-height: 1.45;
}

.eventPublicHoneypot {
  position: absolute!important;
  width: 1px!important;
  height: 1px!important;
  overflow: hidden!important;
  clip-path: inset(50%)!important;
}

.eventPublicResult {
  padding: 18px;
  border: 1px solid #b8dfc8;
  border-left: 4px solid #21844b;
  border-radius: 6px;
  background: #f1fbf5;
  color: #185b37;
}

.eventPublicResult h2 {
  margin: 0 0 6px;
  color: inherit;
}

.eventPublicResult p {
  margin: 0;
  line-height: 1.5;
}

.eventPublicLinks {
  color: #23456f;
  font-weight: 700;
}

.eventPublicLinks {
  margin: 14px 0 2px;
  border-top: 1px solid #dce2ef;
  padding-top: 12px;
}

.eventPublicLinks h4 {
  margin: 0 0 9px;
  font-size: 14px;
}

.eventPublicLinkRow {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: end;
  gap: 8px;
  margin-top: 8px;
}

.eventPublicLinkRow label {
  display: grid;
  min-width: 0;
  gap: 4px;
}

.eventPublicLinkRow label span {
  color: #53667e;
  font-size: 12px;
}

.eventPublicLinkRow input {
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
  font-size: 12px;
}

.eventPublicLinkRow .smallBtn {
  min-height: 36px;
}

.eventPublicLinksNotice {
  margin-top: 14px;
}

.eventBookingSubline {
  display: block;
  margin-top: 3px;
  color: #5b6b80;
  white-space: normal;
  overflow-wrap: anywhere;
}

.eventArtwork {
  position: relative;
  display: block;
  min-width: 0;
  min-height: 240px;
  max-height: 360px;
  aspect-ratio: 16 / 7;
  margin: 14px 0 2px;
  overflow: hidden;
  isolation: isolate;
  border-radius: 6px;
  background: #111b2b;
  color: #fff;
}

.eventArtwork[hidden] {
  display: none;
}

.eventArtworkImage {
  position: absolute;
  z-index: 0;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: eventArtworkLightPulse 5s ease-in-out infinite alternate;
}

.eventArtworkSweep {
  position: absolute;
  z-index: 0;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.eventArtworkSweep::after {
  position: absolute;
  inset: 0 auto 0 -45%;
  width: 28%;
  background: linear-gradient(100deg, transparent, rgb(112 255 224 / 24%), transparent);
  content: "";
  transform: skewX(-16deg);
  animation: eventArtworkSweep 7s ease-in-out infinite;
}

.eventArtworkCaption {
  position: absolute;
  z-index: 1;
  inset: auto 0 0;
  display: grid;
  gap: 8px;
  padding: 16px 18px;
  border-top: 2px solid #62edcf;
  background: rgb(9 18 32 / 88%);
  box-shadow: 0 -8px 22px rgb(14 236 195 / 12%);
  animation: eventArtworkGlow 4s ease-in-out infinite alternate;
}

.eventArtworkCaption h1,
.eventArtworkCaption h2 {
  margin: 0;
  color: #fff;
  font-size: 22px;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.eventArtworkMeta {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
  color: #e7f1fa;
  font-size: 14px;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.eventArtworkMeta strong {
  color: #7cf3d5;
}

.eventBookingArtwork {
  width: 100%;
}

.centreEventArtwork {
  max-height: none;
  aspect-ratio: 16 / 8;
  margin: 0;
  border-radius: 0;
}

@keyframes eventArtworkSweep {
  0%, 18% { transform: translateX(0) skewX(-16deg); opacity: 0; }
  30% { opacity: 1; }
  70% { opacity: .85; }
  88%, 100% { transform: translateX(560%) skewX(-16deg); opacity: 0; }
}

@keyframes eventArtworkLightPulse {
  from { filter: brightness(.88) saturate(1); }
  to { filter: brightness(1.02) saturate(1.13); }
}

@keyframes eventArtworkGlow {
  from { box-shadow: 0 -6px 16px rgb(14 236 195 / 9%); }
  to { box-shadow: 0 -8px 24px rgb(14 236 195 / 22%); }
}

@media (max-width: 560px) {
  .eventArtworkCaption { gap: 6px; padding: 12px; }
  .eventArtworkCaption h1,
  .eventArtworkCaption h2 { font-size: 19px; }
  .eventArtworkMeta { gap: 3px 10px; font-size: 13px; }
}

@media (prefers-reduced-motion: reduce) {
  .eventArtworkImage,
  .eventArtworkSweep::after,
  .eventArtworkCaption { animation: none; }
}

.eventPublicDirectoryPage {
  min-height: 100vh;
  margin: 0;
  background: #f2f5f9;
  color: #182536;
}

.centreEventsShell {
  width: min(100% - 36px, 1080px);
  margin: 0 auto;
  padding: 22px 0 52px;
}

.centreEventsHeading {
  margin: 0 0 18px;
}

.centreEventsHeading h1 {
  margin: 0;
  color: #12356b;
  font-size: 30px;
  line-height: 1.2;
}

.centreEventsHeading p {
  margin: 7px 0 0;
  color: #53667e;
}

.centreEventsTabs,
.eventCategoryFilters {
  display: flex;
  align-items: center;
  gap: 6px;
  overflow-x: auto;
  padding: 3px 0 10px;
  scrollbar-width: thin;
}

.centreEventsTabs button,
.eventCategoryFilters button {
  flex: 0 0 auto;
  min-height: 38px;
  padding: 7px 12px;
  border: 1px solid #cbd7e6;
  border-radius: 6px;
  background: #fff;
  color: #24425f;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.centreEventsTabs button[aria-selected="true"],
.eventCategoryFilters button[aria-selected="true"] {
  border-color: #123f78;
  background: #123f78;
  color: #fff;
}

.centreEventsGrid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 14px;
  margin-top: 8px;
}

.centreEventCard {
  min-width: 0;
  overflow: hidden;
  border: 1px solid #d5deea;
  border-radius: 8px;
  background: #fff;
}

.centreEventImage {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 8;
  object-fit: cover;
  background: #e9eef5;
}

.centreEventContent {
  padding: 16px;
}

.centreEventContent h2 {
  margin: 0 0 10px;
  color: #12356b;
  font-size: 20px;
  line-height: 1.25;
}

.centreEventMeta {
  display: grid;
  gap: 5px;
  color: #3e526b;
  font-size: 14px;
}

.centreEventDetails {
  display: -webkit-box;
  margin: 12px 0;
  overflow: hidden;
  color: #36485e;
  line-height: 1.45;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
}

.centreEventActions {
  display: flex;
  margin-top: 12px;
}

.centreEventActions a {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  border-radius: 5px;
  background: #123f78;
  color: #fff;
  font-weight: 800;
  text-decoration: none;
}

.centreEventsEmpty {
  padding: 24px 0;
  color: #53667e;
}

.eventPublicDirectoryActions {
  display: flex;
  align-items: end;
  gap: 8px;
  margin: 12px 0 0;
}

.eventPromoUpload {
  display: grid;
  gap: 7px;
}

.eventPromoUpload small {
  color: #586b82;
  line-height: 1.4;
}

.eventArtwork.eventAdminArtwork {
  min-height: 220px;
  max-height: 220px;
}

.eventAdminPromo {
  margin: 0 0 12px;
}

@media (max-width: 600px) {
  .centreEventsShell {
    width: min(100% - 20px, 1080px);
    padding-top: 14px;
  }

  .centreEventsHeading h1 {
    font-size: 24px;
  }

  .eventPublicDirectoryActions {
    align-items: stretch;
    flex-direction: column;
  }

  .centreEventActions a {
    width: 100%;
    box-sizing: border-box;
  }
}

@media (max-width: 600px) {
  .eventPublicShell {
    width: min(100% - 20px, 760px);
    padding-top: 14px;
  }

  .eventPublicCard {
    padding: 15px;
  }

  .eventPublicCard h1 {
    font-size: 22px;
  }

  .eventPublicMeta,
  .eventPublicContactGrid,
  .eventPublicAttendeeGrid {
    grid-template-columns: 1fr;
  }

  .eventPublicWide,
  .eventPublicEquipmentField {
    grid-column: auto;
  }

  .eventPublicActions button {
    width: 100%;
  }

  .eventPublicLinkRow {
    grid-template-columns: minmax(0, 1fr) minmax(0, auto);
  }

  .eventPublicLinkRow label {
    grid-column: 1 / -1;
  }
}
