/* Participant voices: an editorial horizontal journey, designed for touch. */
.ej-voices {
  position: relative;
  max-width: none;
  margin-top: clamp(78px, 7.5vw, 116px);
  padding: clamp(64px, 5.5vw, 84px) max(var(--gutter), calc((100vw - 1440px) / 2 + var(--gutter))) clamp(84px, 9vw, 128px);
  overflow: hidden;
  color: #f8f4ef;
  background:
    radial-gradient(circle at 84% 4%, rgba(92, 115, 183, .42), transparent 29%),
    radial-gradient(circle at 12% 88%, rgba(121, 73, 145, .24), transparent 30%),
    linear-gradient(135deg, #111f4c 0%, #15275c 48%, #0a1638 100%);
  border-radius: clamp(38px, 4vw, 64px) clamp(38px, 4vw, 64px) 0 0;
}

.ej-voices::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: .42;
  background-image:
    radial-gradient(circle at 16% 20%, rgba(255,255,255,.66) 0 1px, transparent 1.6px),
    radial-gradient(circle at 68% 26%, rgba(255,255,255,.5) 0 1px, transparent 1.5px),
    radial-gradient(circle at 87% 72%, rgba(255,255,255,.5) 0 1px, transparent 1.5px);
  background-size: 180px 180px, 240px 240px, 310px 310px;
}

.ej-voices-heading,
.ej-voices-lead,
.ej-voice-filters,
.ej-voices-stage,
.ej-voices-controls,
.ej-voices-note {
  position: relative;
  z-index: 1;
}

.ej-voices-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 42px;
  padding-bottom: 30px;
  border-bottom: 1px solid rgba(255, 255, 255, .22);
}

.ej-page .ej-voices-heading .ej-kind {
  margin-bottom: 13px;
  color: #aebee7;
}

.ej-voices h2 {
  margin: 0;
  color: #fffdf8;
}

.ej-voices-count {
  display: flex;
  align-items: baseline;
  gap: 11px;
  margin: 0 0 -4px;
  color: #c7d2ef;
  font: 500 .72rem/1 var(--ej-sans);
  letter-spacing: .22em;
}

.ej-voices-count strong {
  color: #ff706e;
  font: 400 clamp(5rem, 8vw, 7.8rem)/.72 var(--latin, "Cormorant Garamond", serif);
  letter-spacing: -.055em;
}

.ej-page .ej-voices-lead {
  max-width: 790px;
  margin: 29px 0 25px;
  color: rgba(246, 246, 249, .82);
  font-size: 1.1rem;
  line-height: 1.95;
}

.ej-voice-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 38px;
}

.ej-voice-filter {
  min-height: 42px;
  padding: 9px 18px;
  border: 1px solid rgba(255, 255, 255, .24);
  border-radius: 999px;
  background: transparent;
  color: rgba(255, 255, 255, .78);
  font: 500 .84rem/1.4 var(--ej-sans);
  cursor: pointer;
  transition: color .2s ease, background .2s ease, border-color .2s ease, transform .2s ease;
}

.ej-voice-filter:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, .62);
  transform: translateY(-1px);
}

.ej-voice-filter.is-active {
  color: #132352;
  background: #fffaf2;
  border-color: #fffaf2;
}

.ej-voice-filter:focus-visible,
.ej-voice-arrow:focus-visible {
  outline: 3px solid rgba(255, 112, 110, .68);
  outline-offset: 4px;
}

.ej-voices-stage {
  margin-right: calc(-1 * max(var(--gutter), calc((100vw - 1440px) / 2 + var(--gutter))));
}

.ej-voices-layout {
  display: flex;
  gap: clamp(16px, 2vw, 28px);
  width: 100%;
  padding: 2px max(var(--gutter), calc((100vw - 1440px) / 2 + var(--gutter))) 24px 0;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: 0;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  cursor: grab;
}

.ej-voices-layout::-webkit-scrollbar {
  display: none;
}

.ej-voices-layout:active {
  cursor: grabbing;
}

.ej-voices-layout.is-dragging {
  scroll-snap-type: none;
  user-select: none;
}

.ej-voice-card {
  --voice-accent: #7596de;
  position: relative;
  flex: 0 0 clamp(330px, 36vw, 500px);
  min-height: 440px;
  padding: clamp(31px, 3vw, 43px);
  overflow: hidden;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 0 76px 0 0;
  color: #223057;
  background:
    linear-gradient(150deg, rgba(255,255,255,.98), rgba(246,242,235,.98));
  box-shadow: 0 24px 70px rgba(2, 9, 29, .25);
}

.ej-voice-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 5px;
  background: var(--voice-accent);
}

.ej-voice-card::after {
  content: attr(data-voice-number);
  position: absolute;
  right: 25px;
  bottom: -25px;
  color: var(--voice-accent);
  font: 400 8.4rem/1 var(--latin, "Cormorant Garamond", serif);
  letter-spacing: -.08em;
  opacity: .07;
  pointer-events: none;
}

.ej-voice-card--session { --voice-accent: #8d6bc3; }
.ej-voice-card--seminar { --voice-accent: #4c82bb; }
.ej-voice-card--dialogue { --voice-accent: #d1746d; }
.ej-voice-card--share { --voice-accent: #5d917a; }

.ej-voice-card.is-featured {
  color: #f9f6f1;
  background:
    radial-gradient(circle at 88% 10%, rgba(133, 159, 221, .32), transparent 28%),
    linear-gradient(145deg, #263b78, #18295d 66%, #101f4b);
}

.ej-voice-card.is-featured::after {
  color: #fff;
  opacity: .055;
}

.ej-voice-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: clamp(28px, 3vw, 38px);
}

.ej-page .ej-voice-topic {
  margin: 0;
  color: var(--voice-accent);
  font: 500 .76rem/1.45 var(--ej-sans);
  letter-spacing: .1em;
}

.ej-voice-card.is-featured .ej-voice-topic {
  color: #c9d7ff;
}

.ej-voice-number {
  color: rgba(35, 52, 93, .38);
  font: 500 1.12rem/1 var(--latin, "Cormorant Garamond", serif);
  letter-spacing: .12em;
}

.ej-voice-card.is-featured .ej-voice-number {
  color: rgba(255, 255, 255, .5);
}

.ej-voice-card h3 {
  max-width: 17em;
  margin: 0 0 24px;
  color: #1d2d54;
  font: 500 clamp(1.3rem, 1.8vw, 1.65rem)/1.65 var(--ej-serif);
  letter-spacing: .01em;
}

.ej-voice-card.is-featured h3 {
  color: #fffdf8;
}

.ej-voice-card blockquote {
  position: relative;
  margin: 0;
  padding: 24px 0 4px;
  border-top: 1px solid rgba(40, 57, 98, .16);
}

.ej-voice-card.is-featured blockquote {
  border-color: rgba(255, 255, 255, .2);
}

.ej-quote-mark {
  position: absolute;
  top: 7px;
  left: -2px;
  color: var(--voice-accent);
  font: 400 2.8rem/1 var(--latin, "Cormorant Garamond", serif);
  opacity: .45;
}

.ej-voice-card.is-featured .ej-quote-mark {
  color: #ff7b77;
  opacity: .8;
}

.ej-voice-card blockquote p {
  position: relative;
  margin: 0;
  color: #43506c;
  font: 400 1rem/1.94 var(--ej-sans);
  letter-spacing: 0;
}

.ej-voice-card.is-featured blockquote p {
  color: rgba(255, 255, 255, .86);
}

.ej-page .ej-voice-meta {
  position: relative;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin: 28px 0 0;
  padding-top: 15px;
  border-top: 1px solid rgba(40, 57, 98, .12);
  color: #76809a;
  font: 400 .72rem/1.55 var(--ej-sans);
}

.ej-voice-card.is-featured .ej-voice-meta {
  color: rgba(255, 255, 255, .6);
  border-color: rgba(255, 255, 255, .17);
}

.ej-voice-meta span {
  flex: none;
  color: #53617e;
}

.ej-voice-card.is-featured .ej-voice-meta span {
  color: rgba(255, 255, 255, .76);
}

.ej-voices-controls {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto;
  align-items: center;
  gap: 36px;
  margin-top: 25px;
}

.ej-voice-progress {
  display: grid;
  grid-template-columns: 2.2em minmax(100px, 360px) 2.2em;
  align-items: center;
  gap: 15px;
  color: rgba(255, 255, 255, .7);
  font: 400 .82rem/1 var(--latin, "Cormorant Garamond", serif);
  letter-spacing: .09em;
}

.ej-voice-progress-track {
  position: relative;
  height: 1px;
  overflow: hidden;
  background: rgba(255, 255, 255, .25);
}

.ej-voice-progress-line {
  position: absolute;
  inset: 0;
  background: #ff7470;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform .28s ease;
}

.ej-voice-arrows {
  display: flex;
  gap: 10px;
}

.ej-voice-arrow {
  display: grid;
  width: 54px;
  height: 54px;
  padding: 0;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .38);
  border-radius: 50%;
  color: #fff;
  background: transparent;
  cursor: pointer;
  transition: color .2s ease, background .2s ease, opacity .2s ease, transform .2s ease;
}

.ej-voice-arrow:hover:not(:disabled) {
  color: #17285a;
  background: #fffaf2;
  transform: translateY(-2px);
}

.ej-voice-arrow:disabled {
  opacity: .28;
  cursor: default;
}

.ej-voice-arrow svg {
  width: 21px;
  height: 21px;
}

.ej-voices-swipe {
  display: none;
}

.ej-page .ej-voices-note {
  max-width: 760px;
  margin: 27px 0 0;
  color: rgba(255, 255, 255, .55);
  font: 400 .76rem/1.8 var(--ej-sans);
}

/* The short heading and count share one quiet row at common screen widths. */
@media (min-width: 701px) and (max-width: 1399px) {
  .ej-voices-heading {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-rows: auto;
    align-items: end;
    gap: 34px;
    padding-bottom: 34px;
  }

  .ej-voices-heading h2 {
    grid-column: 1;
    grid-row: 1;
    font-size: clamp(2.5rem, 4.25vw, 3.25rem);
    line-height: 1.38;
  }

  .ej-voices-count {
    grid-column: 2;
    grid-row: 1;
    align-self: end;
    justify-self: end;
    margin: 0;
  }

  .ej-voices-count strong {
    font-size: clamp(3.75rem, 5.25vw, 4.75rem);
  }

  .ej-page .ej-voices-lead {
    margin-top: 34px;
  }
}

@media (max-width: 700px) {
  .ej-voices {
    margin-top: 64px;
    padding: 52px 20px 84px;
    border-radius: 30px 30px 0 0;
  }

  .ej-voices-heading {
    grid-template-columns: 1fr auto;
    grid-template-rows: auto;
    align-items: end;
    gap: 16px;
    padding-bottom: 27px;
  }

  .ej-voices h2 {
    grid-column: 1;
    grid-row: 1;
    font-size: 1.95rem;
    line-height: 1.45;
  }

  .ej-voices-count {
    grid-column: 2;
    grid-row: 1;
    align-self: end;
    justify-self: end;
    display: block;
    margin: 0;
    font-size: .62rem;
    text-align: right;
  }

  .ej-voices-count strong {
    display: block;
    margin-bottom: 6px;
    font-size: 3.45rem;
  }

  .ej-page .ej-voices-lead {
    margin: 27px 0 22px;
    font-size: 1rem;
    line-height: 1.82;
  }

  .ej-voice-filters {
    flex-wrap: nowrap;
    gap: 8px;
    margin: 0 -20px 28px;
    padding: 0 20px 5px;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .ej-voice-filters::-webkit-scrollbar {
    display: none;
  }

  .ej-voice-filter {
    flex: 0 0 auto;
    min-height: 40px;
    padding: 8px 15px;
    font-size: .8rem;
  }

  .ej-voices-stage {
    margin: 0 -20px;
  }

  .ej-voices-layout {
    gap: 13px;
    padding: 2px 20px 21px;
    scroll-padding-inline: 20px;
  }

  .ej-voice-card {
    flex-basis: min(84vw, 340px);
    min-height: 430px;
    padding: 27px 23px 24px;
    border-radius: 0 58px 0 0;
  }

  .ej-voice-card::after {
    right: 19px;
    bottom: -18px;
    font-size: 7rem;
  }

  .ej-voice-card-top {
    margin-bottom: 25px;
  }

  .ej-voice-card h3 {
    margin-bottom: 20px;
    font-size: 1.22rem;
    line-height: 1.65;
  }

  .ej-voice-card blockquote {
    padding-top: 21px;
  }

  .ej-voice-card blockquote p {
    font-size: .94rem;
    line-height: 1.86;
  }

  .ej-page .ej-voice-meta {
    display: block;
    margin-top: 23px;
    font-size: .68rem;
  }

  .ej-voice-meta span {
    display: block;
    margin-top: 4px;
  }

  .ej-voices-controls {
    grid-template-columns: 1fr auto;
    gap: 17px;
    margin-top: 16px;
  }

  .ej-voice-progress {
    grid-template-columns: 1.8em minmax(60px, 1fr) 1.8em;
    gap: 10px;
    font-size: .76rem;
  }

  .ej-voice-arrows {
    gap: 7px;
  }

  .ej-voice-arrow {
    width: 45px;
    height: 45px;
  }

  .ej-voices-swipe {
    display: flex;
    align-items: center;
    gap: 9px;
    margin: 18px 0 0;
    color: rgba(255, 255, 255, .65);
    font: 400 .72rem/1.5 var(--ej-sans);
    letter-spacing: .05em;
  }

  .ej-voices-swipe::before {
    content: "↔";
    color: #ff7b77;
    font-size: 1rem;
  }

  .ej-page .ej-voices-note {
    margin-top: 20px;
    font-size: .7rem;
    text-align: left;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ej-voice-filter,
  .ej-voice-arrow,
  .ej-voice-progress-line {
    transition: none;
  }
}
