
.event-card {
  gap: 10px;
}

.event-card .event-fold,
.event-card .event-fold-body {
  display: contents;
}

.event-card .event-fold-toggle {
  display: none;
}

.event-card-image {
  width: 100%;
  border-radius: 12px;
  object-fit: cover;
}

.event-badge {
  align-self: center;
  background: var(--primary-color);
  border-radius: 999px;
  padding: 2px 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.event-muted {
  color: #555;
  font-size: 0.9rem;
}

.event-seats {
  margin-top: auto;
  font-weight: 700;
}

/* The seat the caller holds, under the seats line: a mark in the colour of the
   state, then the word. */
.event-status {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 6px;
  font-weight: 700;
}

.event-status-mark {
  font-size: 1.1rem;
  line-height: 1;
}

.event-status--registered .event-status-mark {
  color: #1e8e3e;
}

.event-status--booked .event-status-mark {
  color: #1a73e8;
}

.event-page {
  box-sizing: border-box;
  width: 50%;
  margin: 0 auto;
  text-align: start;
}

@media screen and (max-width: 750px) {
  .event-page {
    width: calc(100% - 32px);
  }

  .event-cards.cards-carousel {
    flex-direction: row;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    padding-inline: calc((100% - min(85vw, 320px)) / 2);
    height: auto;
    align-items: flex-start;
  }

  .event-cards.cards-carousel > .event-card {
    height: auto;
    overflow-y: auto;
    scrollbar-width: thin;
    scroll-snap-align: center;
  }

  .event-card > * {
    flex-shrink: 0;
  }

  .event-card .event-fold {
    display: block;
    margin-bottom: 0;
  }

  .event-card .event-fold-body {
    display: none;
  }

  .event-card .event-fold--open .event-fold-body {
    display: flex;
  }

  .event-card .event-fold-toggle {
    display: block;
    width: 100%;
    border: 0;
    color: inherit;
    font-family: inherit;
    font-size: 0.75rem;
    padding: 8px 16px;
    text-align: start;
  }

  .event-card > .button {
    font-size: inherit;
    padding: 12px 16px;
  }

  .event-fold-toggle::before {
    content: "▸ ";
  }

  .event-fold--open .event-fold-toggle::before {
    content: "▾ ";
  }
}

.event-detail-image {
  display: block;
  max-width: 20rem;
  width: 100%;
  margin: 0 auto 12px;
  border-radius: 12px;
}

.event-title {
  margin: 8px 0;
}

.event-share {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  box-sizing: border-box;
  border: none;
  border-radius: 50%;
  background-color: var(--secondary-color);
  color: #f4706e;
  cursor: pointer;
}

.event-sold-out {
  display: inline-flex;
  align-items: center;
  margin-inline-start: 8px;
  background-color: var(--secondary-color);
  color: #f4706e;
  border-radius: 999px;
  padding: 2px 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.event-badges {
  align-self: center;
}

.event-pills {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  margin: 10px 0 16px;
}

.event-pills:last-child {
  flex-direction: row;
  flex-wrap: wrap;
}

.event-pill {
  background: var(--primary-color);
  border-radius: 999px;
  padding: 4px 14px;
  font-weight: 700;
  font-size: 0.9rem;
}

.event-fold {
  border: 1px solid var(--secondary-color);
  border-radius: 10px;
  margin-bottom: 12px;
  overflow: hidden;
}

.event-fold > summary,
.event-fold-toggle {
  background: var(--primary-color);
  padding: 12px 16px;
  font-weight: 700;
  cursor: pointer;
}

.event-fold-body {
  padding: 12px 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.event-participant-list {
  margin: 0;
  padding-inline-start: 1.5rem;
  text-align: start;
  list-style-type: decimal;
}

.event-participant-list li {
  width: auto;
  margin-bottom: 4px;
}

.event-body-columns {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  gap: 16px;
}

.event-rich {
  text-align: start;
}

.event-rich ul,
.event-rich ol {
  margin: 0.5em 0;
  padding-inline-start: 1.5rem;
  text-align: start;
}

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

.event-rich ol {
  list-style-type: decimal;
}

.event-rich li {
  width: auto;
}

.event-speaker {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.event-speaker-header {
  margin-bottom: 24px;
}

.event-speaker-photo,
.event-profile-photo {
  flex: 0 0 auto;
  width: 7rem;
  height: 7rem;
  border-radius: 50%;
  object-fit: cover;
}

.card > .event-speaker-photo {
  align-self: center;
  margin-bottom: 12px;
}

.event-banner {
  display: block;
  width: 100%;
  height: clamp(8rem, 30vw, 15rem);
  border-radius: 12px;
  object-fit: cover;
  margin-bottom: 20px;
}

.event-profile-photo {
  width: 10rem;
  height: 10rem;
}

.event-speaker-initials {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary-color);
  font-size: 2rem;
  font-weight: 700;
}

.event-speaker-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.event-speaker-name {
  font-weight: 700;
  color: var(--text-color);
}

.event-speaker-title {
  font-weight: 700;
}

.event-fee-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  gap: 16px;
}

.event-fee-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  border: 1px solid var(--secondary-color);
  border-radius: 12px;
  padding: 16px;
}

.event-fee-card .event-badge {
  align-self: flex-start;
}

.event-price {
  font-size: 2rem;
  font-weight: 700;
}

.event-price-old {
  font-weight: 400;
  opacity: 0.6;
}

.event-price-small {
  font-size: 1.25rem;
  font-weight: 700;
}

@media screen and (max-width: 600px) {
  .event-speaker {
    flex-direction: column;
  }
}

.event-fee-actions {
  margin-top: auto;
  align-self: stretch;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 8px;
}

.event-register {
  text-align: center;
  background-color: var(--secondary-color);
}

.event-registered {
  background: var(--secondary-color);
  color: var(--text-color);
  border-radius: 10px;
  padding: 12px 16px;
  margin: 8px 0 24px;
  font-weight: 700;
  text-align: center;
}

.event-registered--pending {
  background: var(--secondary-color);
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: center;
}

.event-hold-left {
  font-variant-numeric: tabular-nums;
}

.event-fee-grid--disabled .event-fee-card {
  opacity: 0.5;
  pointer-events: none;
}

.event-zoomable {
  cursor: zoom-in;
  transition: transform 0.2s;
}

.event-zoomable:hover {
  transform: scale(1.02);
}

.event-viewer {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.85);
  padding: 16px;
  box-sizing: border-box;
}

.event-viewer-image {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 8px;
}

.event-viewer-close {
  position: absolute;
  top: calc(12px + env(safe-area-inset-top, 0px));
  right: 16px;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: var(--third-color);
  color: var(--text-color);
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
}

.event-form-banner {
  margin: 0 0 24px;
  text-align: center;
}

.event-form-button {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  box-sizing: border-box;
  font-size: inherit;
}

.event-registered-label {
  margin: 8px 0 16px;
  text-align: center;
}

.event-registered-label .event-badge {
  text-transform: none;
}

.event-badge--incomplete {
  background: #f4706e;
}

.fill-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: min(48rem, calc(100% - 32px));
  margin: 0 auto 24px;
  text-align: start;
}

.fill-form .note-warning {
  width: 100%;
  margin: 0;
}

.fill-body {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.fill-body--locked {
  opacity: 0.6;
}

.fill-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 18px 22px;
  text-align: start;
  background: #fff;
  border: 1px solid #dadce0;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
}

.fill-header {
  border-top: 10px solid var(--secondary-color);
}

.fill-header h1,
.fill-section h2 {
  margin: 0;
  text-align: start;
}

.fill-description {
  margin: 0;
  white-space: pre-line;
}

.fill-note,
.fill-help {
  margin: 0;
  font-size: 0.9rem;
  color: #5f6368;
}

.fill-question-title {
  font-weight: 700;
}

.fill-star {
  color: #d93025;
}

.fill-question--invalid {
  border-color: #d93025;
  border-left: 6px solid #d93025;
}

.fill-text {
  width: 100%;
  box-sizing: border-box;
}

.fill-select {
  width: 100%;
  max-width: 24rem;
}

.fill-choices {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.fill-choice {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 400;
  cursor: pointer;
}

.fill-choice input[type="radio"],
.fill-choice input[type="checkbox"] {
  flex: none;
  width: auto;
  margin: 0;
}

.fill-other-text {
  flex: 1;
  min-width: 8rem;
}

.fill-actions {
  display: flex;
  justify-content: flex-start;
}
