.event-list {
  max-width: 980px;
}

.event-list-item .blog-post-thumbnail {
  flex: 0 0 38%;
  height: auto;
  background: #f5f3f7;
}

.event-list-item .blog-post-thumbnail-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: none;
}

.event-list-item .blog-post-thumbnail-inner img {
  position: static;
  width: 100%;
  height: auto;
  object-fit: contain;
}

.event-list-past {
  opacity: .88;
}

.event-detail-page {
  padding: 44px 0 0;
  background: #fff;
  color: #333;
}

.event-shell {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
}

.event-top-actions {
  margin-bottom: 24px;
}

.event-back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #6d01be;
  font-size: 16px;
  font-weight: 700;
}

.event-back-link:hover {
  color: #4f008b;
}

.event-hero {
  width: min(960px, 100%);
  overflow: hidden;
  margin: 0 auto 56px;
  border-radius: 18px;
  background: #f5f3f7;
  box-shadow: 0 12px 36px rgba(35, 20, 54, .08);
}

.event-hero img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}

.event-detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 72px;
  align-items: start;
  padding-bottom: 72px;
}

.event-copy {
  min-width: 0;
}

.event-copy h1 {
  margin: 0 0 24px;
  color: #6d01be;
  font-size: clamp(34px, 4vw, 52px);
  font-weight: 700;
  line-height: 1.28;
  letter-spacing: -.02em;
}

.event-summary {
  margin: 0 0 40px;
  padding-bottom: 36px;
  border-bottom: 1px solid #e5e0e9;
  color: #5f5965;
  font-size: 20px;
  line-height: 1.75;
}

.event-rich-text {
  overflow-wrap: anywhere;
  color: #3d3940;
  font-size: 18px;
  line-height: 1.9;
}

.event-rich-text img {
  display: none !important;
}

.event-rich-text h2,
.event-rich-text h3,
.event-rich-text h4 {
  margin: 50px 0 18px;
  color: #542078;
  font-weight: 700;
  line-height: 1.4;
}

.event-rich-text h2 {
  font-size: 30px;
}

.event-rich-text h3 {
  font-size: 24px;
}

.event-rich-text p {
  margin: 0 0 22px;
}

.event-rich-text ul,
.event-rich-text ol {
  margin: 0 0 28px;
  padding-left: 26px;
}

.event-rich-text ul {
  list-style: disc;
}

.event-rich-text li {
  margin-bottom: 10px;
}

.event-rich-text table {
  display: table;
  width: 100%;
  max-width: 100%;
  margin: 28px 0 36px;
  border-collapse: collapse;
  table-layout: fixed;
}

.event-rich-text th,
.event-rich-text td {
  min-width: 150px;
  padding: 14px 16px;
  border: 1px solid #ded8e3;
  text-align: left;
  vertical-align: top;
}

.event-rich-text th {
  background: #f6effb;
  color: #542078;
}

.event-meta-card {
  position: sticky;
  top: 112px;
  padding: 30px;
  border: 1px solid #e7e0ec;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 14px 42px rgba(35, 20, 54, .09);
}

.event-status {
  display: inline-flex;
  margin-bottom: 22px;
  padding: 7px 13px;
  border-radius: 999px;
  background: #f0e2fa;
  color: #6d01be;
  font-size: 13px;
  font-weight: 700;
}

.event-status.is-ended {
  background: #f0eef1;
  color: #6c6670;
}

.event-meta-card h2 {
  margin: 0 0 24px;
  color: #262229;
  font-size: 26px;
  font-weight: 700;
}

.event-facts {
  margin: 0 0 28px;
  padding: 0;
  list-style: none;
}

.event-facts li {
  display: flex;
  gap: 13px;
  margin-bottom: 20px;
  color: #55505a;
  font-size: 15px;
  line-height: 1.65;
}

.event-facts i {
  flex: 0 0 auto;
  margin-top: 3px;
  color: #6d01be;
  font-size: 21px;
}

.event-facts strong {
  display: block;
  margin-bottom: 2px;
  color: #28242b;
}

.event-primary-action,
.event-secondary-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 50px;
  padding: 13px 22px;
  border: 1px solid #6d01be;
  border-radius: 10px;
  background: #6d01be;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.4;
  cursor: pointer;
}

.event-primary-action:hover {
  background: #570099;
  color: #fff;
}

.event-secondary-action {
  background: #fff;
  color: #6d01be;
}

.event-secondary-action:hover {
  background: #f8f2fb;
  color: #570099;
}

.event-registration {
  width: 100%;
  margin: 0;
  padding: 78px 24px;
  background: #f7f5f8;
}

.event-registration-inner {
  width: min(860px, 100%);
  margin: 0 auto;
}

.event-section-heading {
  margin-bottom: 36px;
  text-align: center;
}

.event-section-heading > span {
  color: #6d01be;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.event-section-heading h2 {
  margin: 8px 0 10px;
  color: #28242b;
  font-size: 36px;
  font-weight: 700;
}

.event-section-heading p {
  margin: 0;
  color: #6f6874;
  font-size: 17px;
}

.event-ticket-list {
  display: grid;
  gap: 18px;
}

.event-ticket-card {
  overflow: hidden;
  border: 1px solid #e2dbe7;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 8px 28px rgba(35, 20, 54, .06);
}

.event-ticket-card summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px 24px;
  align-items: center;
  padding: 24px 28px;
  list-style: none;
  cursor: pointer;
}

.event-ticket-card summary::-webkit-details-marker {
  display: none;
}

.event-ticket-name {
  color: #322b36;
  font-size: 21px;
  font-weight: 700;
}

.event-ticket-price {
  color: #6d01be;
  font-size: 21px;
  font-weight: 700;
}

.event-ticket-note {
  color: #756e79;
  font-size: 14px;
  line-height: 1.6;
}

.event-ticket-select {
  grid-column: 2;
  grid-row: 2;
  color: #6d01be;
  font-size: 14px;
  font-weight: 700;
}

.event-ticket-card[open] .event-ticket-select::after {
  content: " ↑";
}

.event-checkout-form {
  padding: 28px;
  border-top: 1px solid #e8e1ec;
  background: #fcfbfd;
}

.event-attendee-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px 22px;
  margin-bottom: 28px;
}

.event-attendee-fields label > span,
.event-custom-field legend {
  display: block;
  margin-bottom: 7px;
  color: #39333d;
  font-size: 14px;
  font-weight: 700;
}

.event-attendee-fields input,
.event-custom-field > input {
  width: 100%;
  min-height: 46px;
  padding: 10px 14px;
  border: 1px solid #d7d0dc;
  border-radius: 8px;
  background: #fff;
  color: #333;
}

.event-attendee-fields input:focus,
.event-custom-field > input:focus {
  border-color: #6d01be;
  outline: 3px solid rgba(109, 1, 190, .12);
}

.event-field-error {
  display: block;
  margin-top: 6px;
  color: #a12626;
  font-size: 13px;
  line-height: 1.45;
}

.event-custom-field {
  margin: 0;
  padding: 22px 0;
  border: 0;
  border-top: 1px solid #e7e1ea;
}

.event-check {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin: 11px 0;
  color: #4c4650;
  font-size: 14px;
  line-height: 1.55;
}

.event-check input {
  flex: 0 0 auto;
  width: auto;
  margin-top: 4px;
}

.event-consents {
  margin: 6px 0 24px;
}

.event-submit {
  border: 0;
}

.event-form-errors {
  padding: 14px 18px;
  margin-bottom: 20px;
  border-radius: 8px;
  background: #fff0f0;
  color: #a12626;
}

.event-ticket-state {
  padding: 24px 26px;
  margin: 20px 0 40px;
  border: 1px solid #ddd4e3;
  border-radius: 12px;
  background: #faf8fb;
  color: #514a55;
}

.event-ticket-state strong {
  display: block;
  margin-bottom: 6px;
  color: #322b36;
  font-size: 20px;
}

.event-ticket-state p {
  margin: 0 0 14px;
  font-size: 16px !important;
  line-height: 1.7 !important;
}

.event-ticket-state a {
  display: inline-flex;
  color: #6d01be;
  font-size: 15px;
  font-weight: 700;
}

.event-ticket-state.is-ended {
  border-color: #e1dfe2;
  background: #f5f4f5;
}

.event-neighbor-nav {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 24px;
  align-items: stretch;
  padding: 64px 0 84px;
}

.event-neighbor-link {
  display: flex;
  min-height: 120px;
  flex-direction: column;
  justify-content: center;
  padding: 22px 24px;
  border: 1px solid #e5dee9;
  border-radius: 14px;
  background: #fff;
  color: #332d37;
}

.event-neighbor-link:hover {
  border-color: #b887db;
  color: #6d01be;
  box-shadow: 0 8px 24px rgba(35, 20, 54, .07);
}

.event-neighbor-link span {
  margin-bottom: 7px;
  color: #7a7280;
  font-size: 13px;
}

.event-neighbor-link strong {
  font-size: 16px;
  line-height: 1.55;
}

.event-neighbor-link.is-next {
  grid-column: 3;
  text-align: right;
}

.event-all-link {
  display: inline-flex;
  align-items: center;
  align-self: center;
  justify-content: center;
  padding: 12px 18px;
  border-radius: 9px;
  color: #6d01be;
  font-weight: 700;
  text-align: center;
}

.event-all-link:hover {
  background: #f7f1fa;
  color: #570099;
}

.event-order-status {
  min-height: 70vh;
  padding-top: 80px;
}

@media (max-width: 900px) {
  .event-detail-grid {
    grid-template-columns: 1fr;
    gap: 42px;
  }

  .event-meta-card {
    position: static;
  }

  .event-neighbor-nav {
    grid-template-columns: 1fr 1fr;
  }

  .event-all-link {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .event-neighbor-link.is-next {
    grid-column: 2;
  }
}

@media (max-width: 767px) {
  .event-list-item {
    display: block;
  }

  .event-list-item .blog-post-thumbnail {
    width: 100%;
    height: auto;
  }

  .event-list-item .blog-post-thumbnail-inner {
    height: auto;
  }

  .event-detail-page {
    padding-top: 26px;
  }

  .event-shell {
    width: min(100% - 28px, 1180px);
  }

  .event-hero {
    margin-bottom: 34px;
    border-radius: 10px;
  }

  .event-detail-grid {
    padding-bottom: 52px;
  }

  .event-copy h1 {
    font-size: 31px;
  }

  .event-summary {
    font-size: 17px;
  }

  .event-rich-text {
    font-size: 16px;
    line-height: 1.8;
  }

  .event-rich-text h2 {
    font-size: 25px;
  }

  .event-meta-card {
    padding: 24px;
  }

  .event-registration {
    padding: 56px 14px;
  }

  .event-section-heading h2 {
    font-size: 30px;
  }

  .event-ticket-card summary {
    grid-template-columns: 1fr;
    padding: 21px;
  }

  .event-ticket-price,
  .event-ticket-select {
    grid-column: 1;
    grid-row: auto;
  }

  .event-checkout-form {
    padding: 22px 18px;
  }

  .event-attendee-fields {
    grid-template-columns: 1fr;
  }

  .event-neighbor-nav {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 46px 0 64px;
  }

  .event-neighbor-link,
  .event-neighbor-link.is-next,
  .event-all-link {
    grid-column: 1;
    grid-row: auto;
    text-align: left;
  }
}
