/* Integrated event carousel prototypes.
   The three query-string variants reuse the live landing page's existing
   palette, typography, card anatomy, spacing and image treatment. */

.landing-v2 .landing-events-carousel {
  position: relative;
  height: auto !important;
  min-height: 0 !important;
  padding-bottom: clamp(112px, 8.75vw, 168px) !important;
  overflow: hidden;
}

.landing-v2 .landing-events-carousel__status {
  min-height: 18px;
  margin: calc(clamp(24px, 2.2vw, 42px) * -1 + 2px) 0
    clamp(18px, 1.5vw, 28px);
  color: rgba(250, 246, 235, 0.54);
  font-family: "Roboto", Arial, sans-serif;
  font-size: clamp(12px, 0.875vw, 14px);
  line-height: 1;
  text-align: right;
}

.landing-v2 .landing-events-carousel__status:empty {
  display: none;
}

.landing-v2 .landing-events-carousel__viewport {
  width: 100%;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scrollbar-width: none;
  cursor: grab;
  touch-action: pan-y;
}

.landing-v2 .landing-events-carousel__viewport[hidden] {
  display: none;
}

.landing-v2 .landing-events-carousel__viewport::-webkit-scrollbar {
  display: none;
}

.landing-v2 .landing-events-carousel__viewport.is-dragging {
  cursor: grabbing;
  user-select: none;
}

.landing-v2 .landing-events-carousel__viewport:focus-visible {
  outline: 2px solid var(--landing-yellow);
  outline-offset: 6px;
}

.landing-v2 .landing-events-carousel__track,
.landing-v2 .landing-schedule__grid.landing-events-carousel__track {
  display: flex !important;
  grid-template-columns: none !important;
  gap: var(--figma-gap, 24px);
  width: max-content !important;
  margin: 0 !important;
}

.landing-v2 .landing-events-carousel .landing-event-card {
  position: relative;
  display: block;
  flex: 0 0 auto;
  width: calc((var(--figma-wrap, 90vw) - 2 * var(--figma-gap, 24px)) / 3);
  height: clamp(405px, 31.625vw, 607px);
  min-height: 0;
  padding: clamp(17px, 1.3125vw, 25px);
  border-radius: clamp(6px, 0.5vw, 10px);
  color: var(--landing-paper);
  background: var(--landing-leaf);
  overflow: hidden;
}

@media (min-width: 901px) and (max-width: 1360px) {
  .landing-v2
    .landing-events-carousel[data-events-variant="cards"]
    .landing-event-card {
    width: clamp(390px, 32vw, 400px);
  }
}

.landing-v2 .landing-event-card--loading {
  background:
    linear-gradient(
      105deg,
      rgba(250, 246, 235, 0.03) 25%,
      rgba(250, 246, 235, 0.1) 42%,
      rgba(250, 246, 235, 0.03) 58%
    ),
    var(--landing-leaf);
  background-size: 230% 100%;
  animation: landing-event-loading 1.8s linear infinite;
}

@keyframes landing-event-loading {
  to {
    background-position-x: -230%;
  }
}

.landing-v2 .landing-events-carousel .landing-schedule__day {
  left: clamp(17px, 1.3125vw, 25px);
  top: clamp(8px, 0.7vw, 14px);
  font-family: "Roboto", Arial, sans-serif;
  font-size: clamp(108px, 8.4375vw, 162px);
  font-weight: 400;
  line-height: 0.8;
  color: rgba(250, 246, 235, 0.16);
}

.landing-v2 .landing-schedule__date {
  position: absolute;
  left: clamp(20px, 1.55vw, 30px);
  top: clamp(105px, 8.7vw, 167px);
  z-index: 2;
  color: rgba(250, 246, 235, 0.62);
  font-family: "Roboto", Arial, sans-serif;
  font-size: clamp(11px, 0.8vw, 15px);
  line-height: 1;
  text-transform: uppercase;
}

.landing-v2 .landing-events-carousel .landing-schedule__body {
  position: static;
  z-index: 2;
  width: calc(100% - clamp(198px, 13.75vw, 264px) - clamp(20px, 1.3125vw, 25px));
  margin: 0 0 0 clamp(198px, 13.75vw, 264px);
}

.landing-v2 .landing-events-carousel .landing-schedule__time {
  margin: 0 0 clamp(8px, 0.7vw, 13px);
  color: var(--landing-paper);
  font-family: "Roboto", Arial, sans-serif;
  font-size: clamp(32px, 2.5vw, 48px);
  font-weight: 400;
  line-height: 1;
  white-space: nowrap;
}

.landing-v2
  .landing-events-carousel[data-events-variant="cards"]
  .landing-schedule__time {
  margin-bottom: clamp(10px, 0.75vw, 14px);
}

.landing-v2 .landing-schedule__title {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  color: var(--landing-paper);
  font-family: "Roboto", Arial, sans-serif;
  font-size: clamp(14px, 1.05vw, 20px);
  font-weight: 400;
  line-height: 1;
  text-transform: uppercase;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.landing-v2
  .landing-events-carousel[data-events-variant="cards"]
  .landing-schedule__title {
  margin: 0 0 clamp(7px, 0.55vw, 11px);
  font-size: clamp(16px, 1.15vw, 22px);
  text-transform: none;
}

.landing-v2 .landing-events-carousel .landing-schedule__description {
  display: none;
}

.landing-v2
  .landing-events-carousel[data-events-variant="cards"]
  .landing-schedule__description {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  color: rgba(250, 246, 235, 0.6);
  font-family: "Roboto", Arial, sans-serif;
  font-size: clamp(12px, 1vw, 16px);
  line-height: 1.05;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.landing-v2 .landing-events-carousel .landing-event-card > img {
  position: absolute;
  left: clamp(17px, 1.3125vw, 25px);
  top: clamp(168px, 11.25vw, 216px);
  bottom: auto;
  width: calc(100% - clamp(34px, 2.625vw, 50px));
  height: auto;
  margin: 0;
  aspect-ratio: 661 / 295;
  border-radius: 0;
  object-fit: cover;
  object-position: center;
  transition: transform 600ms ease;
}

.landing-v2 .landing-events-carousel .landing-event-card:hover > img,
.landing-v2 .landing-events-carousel .landing-event-card:focus-within > img {
  transform: scale(1.015);
}

.landing-v2 .landing-events-carousel .landing-schedule__body > a {
  position: absolute;
  left: 50%;
  bottom: clamp(16px, 1.25vw, 24px);
  z-index: 3;
  width: max-content;
  margin: 0;
  transform: translateX(-50%);
  color: var(--landing-paper);
  font-family: "Roboto", Arial, sans-serif;
  font-size: clamp(16px, 1.25vw, 24px);
  font-weight: 400;
  line-height: 1;
  text-align: center;
  text-transform: uppercase;
}

.landing-v2 .landing-schedule__deadline {
  display: none;
}

.landing-v2 .landing-events-carousel__message {
  min-height: clamp(300px, 25vw, 480px);
  padding: clamp(48px, 5vw, 96px);
  color: var(--landing-paper);
  background: var(--landing-leaf);
  text-align: center;
}

.landing-v2 .landing-events-carousel__message[hidden] {
  display: none;
}

.landing-v2 .landing-events-carousel__message p {
  margin: 0 0 28px;
  font-family: "Piazzolla", Georgia, serif;
  font-size: clamp(28px, 2.5vw, 48px);
  line-height: 1;
}

.landing-v2 .landing-events-carousel__message a {
  color: var(--landing-paper);
  font-family: "Roboto", Arial, sans-serif;
  font-size: 16px;
  text-transform: uppercase;
}

.landing-v2 .landing-events-carousel__message a:hover,
.landing-v2 .landing-events-carousel__message a:focus-visible {
  color: var(--landing-yellow);
}

/* Variant 2: the same card language, expanded to show more editorial copy. */
.landing-v2
  .landing-events-carousel[data-events-variant="wide"]
  .landing-event-card {
  width: min(72vw, 980px);
  height: clamp(470px, 36vw, 620px);
}

.landing-v2
  .landing-events-carousel[data-events-variant="wide"]
  .landing-schedule__body {
  width: 39%;
  margin-left: 58%;
}

.landing-v2
  .landing-events-carousel[data-events-variant="wide"]
  .landing-schedule__description {
  display: -webkit-box;
  margin: clamp(12px, 1vw, 18px) 0 0;
  overflow: hidden;
  color: rgba(250, 246, 235, 0.6);
  font-family: "Roboto", Arial, sans-serif;
  font-size: clamp(13px, 1vw, 17px);
  line-height: 1.05;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
}

.landing-v2
  .landing-events-carousel[data-events-variant="wide"]
  .landing-event-card
  > img {
  left: clamp(18px, 1.5vw, 28px);
  top: auto;
  bottom: clamp(20px, 1.7vw, 32px);
  width: 54%;
  height: 57%;
  aspect-ratio: auto;
}

.landing-v2
  .landing-events-carousel[data-events-variant="wide"]
  .landing-schedule__body
  > a {
  left: auto;
  right: clamp(22px, 2vw, 38px);
  bottom: clamp(24px, 2vw, 38px);
  transform: none;
}

.landing-v2
  .landing-events-carousel[data-events-variant="wide"]
  .landing-schedule__deadline {
  position: absolute;
  right: clamp(22px, 2vw, 38px);
  bottom: clamp(61px, 4.8vw, 88px);
  display: block;
  margin: 0;
  color: rgba(250, 246, 235, 0.48);
  font-family: "Roboto", Arial, sans-serif;
  font-size: clamp(10px, 0.75vw, 13px);
  line-height: 1;
  text-transform: uppercase;
}

/* Variant 3: one event at a time, scaled from the existing schedule card. */
.landing-v2
  .landing-events-carousel[data-events-variant="spotlight"]
  .landing-events-carousel__viewport {
  overflow: hidden;
  cursor: default;
}

.landing-v2
  .landing-events-carousel[data-events-variant="spotlight"]
  .landing-events-carousel__track {
  width: 100% !important;
}

.landing-v2
  .landing-events-carousel[data-events-variant="spotlight"]
  .landing-event-card {
  width: 100%;
  height: clamp(500px, 39vw, 650px);
}

.landing-v2
  .landing-events-carousel[data-events-variant="spotlight"]
  .landing-schedule__day {
  font-size: clamp(132px, 11vw, 190px);
}

.landing-v2
  .landing-events-carousel[data-events-variant="spotlight"]
  .landing-schedule__date {
  top: clamp(128px, 10.8vw, 190px);
}

.landing-v2
  .landing-events-carousel[data-events-variant="spotlight"]
  .landing-schedule__body {
  width: 39%;
  margin-left: 59%;
}

.landing-v2
  .landing-events-carousel[data-events-variant="spotlight"]
  .landing-schedule__title {
  font-size: clamp(24px, 2.2vw, 40px);
}

.landing-v2
  .landing-events-carousel[data-events-variant="spotlight"]
  .landing-schedule__description {
  display: -webkit-box;
  margin: clamp(16px, 1.4vw, 26px) 0 0;
  overflow: hidden;
  color: rgba(250, 246, 235, 0.6);
  font-family: "Roboto", Arial, sans-serif;
  font-size: clamp(14px, 1.1vw, 19px);
  line-height: 1.08;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 5;
}

.landing-v2
  .landing-events-carousel[data-events-variant="spotlight"]
  .landing-event-card
  > img {
  left: clamp(18px, 1.5vw, 28px);
  top: auto;
  bottom: clamp(20px, 1.7vw, 32px);
  width: 55%;
  height: 55%;
  aspect-ratio: auto;
}

.landing-v2
  .landing-events-carousel[data-events-variant="spotlight"]
  .landing-schedule__body
  > a {
  left: auto;
  right: clamp(24px, 2.1vw, 40px);
  bottom: clamp(26px, 2.1vw, 40px);
  transform: none;
}

.landing-v2
  .landing-events-carousel[data-events-variant="spotlight"]
  .landing-schedule__deadline {
  position: absolute;
  right: clamp(24px, 2.1vw, 40px);
  bottom: clamp(66px, 5.4vw, 98px);
  display: block;
  margin: 0;
  color: rgba(250, 246, 235, 0.48);
  font-family: "Roboto", Arial, sans-serif;
  font-size: clamp(10px, 0.75vw, 13px);
  line-height: 1;
  text-transform: uppercase;
}

@media (min-width: 761px) and (max-width: 900px) {
  .landing-v2 .landing-events-carousel {
    padding-bottom: 96px !important;
  }

  .landing-v2 .landing-events-carousel .landing-event-card {
    width: 340px;
    height: 392px;
    padding: 14px;
    border-radius: 0;
  }

  .landing-v2
    .landing-events-carousel[data-events-variant="wide"]
    .landing-event-card {
    width: 620px;
    height: 430px;
  }

  .landing-v2
    .landing-events-carousel[data-events-variant="spotlight"]
    .landing-event-card {
    width: 100%;
    height: 450px;
  }
}

@media (min-width: 761px) and (max-width: 900px) {
  .landing-v2 .landing-events-carousel__viewport {
    margin-top: 39px;
  }
}

@media (max-width: 760px) {
  .landing-v2 .landing-events-carousel {
    height: auto !important;
    min-height: 0 !important;
    padding: 0 0 78px !important;
  }

  .landing-v2 .landing-events-carousel__status {
    width: var(--handoff-wrap);
    min-height: 14px;
    margin: 0 auto 16px;
    font-size: 11px;
    text-align: left;
  }

  .landing-v2 .landing-events-carousel__viewport {
    width: 100vw;
    margin-left: calc((var(--handoff-wrap) - 100vw) / 2);
    margin-top: 30px;
    padding: 0 10px;
  }

  .landing-v2 .landing-events-carousel__track {
    gap: 10px;
  }

  .landing-v2 .landing-events-carousel .landing-event-card,
  .landing-v2
    .landing-events-carousel[data-events-variant="wide"]
    .landing-event-card,
  .landing-v2
    .landing-events-carousel[data-events-variant="spotlight"]
    .landing-event-card {
    width: var(--handoff-wrap);
    height: 382px;
    min-height: 382px;
    padding: 14px;
    border-radius: 0;
  }

  .landing-v2 .landing-events-carousel .landing-schedule__day,
  .landing-v2
    .landing-events-carousel[data-events-variant="spotlight"]
    .landing-schedule__day {
    left: 14px;
    top: 10px;
    font-size: 100px;
    line-height: 0.8;
  }

  .landing-v2 .landing-schedule__date,
  .landing-v2
    .landing-events-carousel[data-events-variant="spotlight"]
    .landing-schedule__date {
    left: 16px;
    top: 91px;
    font-size: 11px;
  }

  .landing-v2 .landing-events-carousel .landing-schedule__body,
  .landing-v2
    .landing-events-carousel[data-events-variant="wide"]
    .landing-schedule__body,
  .landing-v2
    .landing-events-carousel[data-events-variant="spotlight"]
    .landing-schedule__body {
    position: static;
    width: 160px;
    margin: 0 0 0 166px;
  }

  .landing-v2 .landing-events-carousel .landing-schedule__time {
    margin: 0 0 12px;
    font-size: 25px;
  }

  .landing-v2
    .landing-events-carousel[data-events-variant="cards"]
    .landing-schedule__time {
    margin-bottom: 8px;
  }

  .landing-v2 .landing-schedule__title,
  .landing-v2
    .landing-events-carousel[data-events-variant="spotlight"]
    .landing-schedule__title {
    font-size: 14px;
    -webkit-line-clamp: 3;
  }

  .landing-v2
    .landing-events-carousel[data-events-variant="cards"]
    .landing-schedule__title {
    margin-bottom: 7px;
  }

  .landing-v2
    .landing-events-carousel[data-events-variant="cards"]
    .landing-schedule__description {
    display: -webkit-box;
    font-size: 12px;
    line-height: 1;
    -webkit-line-clamp: 3;
  }

  .landing-v2
    .landing-events-carousel[data-events-variant="wide"]
    .landing-schedule__description,
  .landing-v2
    .landing-events-carousel[data-events-variant="spotlight"]
    .landing-schedule__description {
    display: none;
  }

  .landing-v2 .landing-events-carousel .landing-event-card > img,
  .landing-v2
    .landing-events-carousel[data-events-variant="wide"]
    .landing-event-card
    > img,
  .landing-v2
    .landing-events-carousel[data-events-variant="spotlight"]
    .landing-event-card
    > img {
    left: 14px;
    top: auto;
    bottom: 72px;
    width: 312px;
    height: 139px;
    aspect-ratio: auto;
    object-fit: cover;
  }

  .landing-v2 .landing-events-carousel .landing-schedule__body > a,
  .landing-v2
    .landing-events-carousel[data-events-variant="wide"]
    .landing-schedule__body
    > a,
  .landing-v2
    .landing-events-carousel[data-events-variant="spotlight"]
    .landing-schedule__body
    > a {
    left: 50%;
    right: auto;
    bottom: 20px;
    transform: translateX(-50%);
    font-size: 14px;
  }

  .landing-v2 .landing-events-carousel .landing-schedule__deadline {
    display: none;
  }

  .landing-v2 .landing-events-carousel__message {
    width: var(--handoff-wrap);
    min-height: 300px;
    margin: 0 auto;
    padding: 80px 20px;
  }
}

/* The selected cards variant preserves the original schedule-card geometry.
   Only the real date, title and full operator-authored description are new. */
.landing-v2
  .landing-events-carousel[data-events-variant="cards"]
  .landing-event-card {
  --landing-event-card-pad: clamp(17px, 1.3125vw, 25px);
  --landing-event-copy-top: clamp(120px, 9.2vw, 175px);
  --landing-event-image-bottom: calc(clamp(40px, 3.125vw, 60px) + 8px);
  --landing-event-metadata-gap: clamp(23px, 1.8vw, 35px);
  height: clamp(460px, 31.625vw, 607px);
}

.landing-v2
  .landing-events-carousel[data-events-variant="cards"]
  .landing-schedule__date {
  left: calc(
    var(--landing-event-card-pad) + clamp(198px, 13.75vw, 264px)
  );
  top: var(--landing-event-card-pad);
  z-index: 3;
  padding: 0;
  border: 0;
  border-radius: 0;
  color: var(--landing-paper);
  background: transparent;
  font-family: "Roboto", Arial, sans-serif;
  font-size: clamp(16px, 1.15vw, 22px);
  font-weight: 400;
  line-height: 1;
  text-transform: none;
  white-space: nowrap;
}

.landing-v2
  .landing-events-carousel[data-events-variant="cards"]
  .landing-schedule__body {
  padding-top: var(--landing-event-metadata-gap);
}

.landing-v2
  .landing-events-carousel[data-events-variant="cards"]
  .landing-schedule__description {
  position: absolute;
  left: var(--landing-event-card-pad);
  right: var(--landing-event-card-pad);
  top: var(--landing-event-copy-top);
  display: block;
  margin: 0;
  overflow: visible;
  overflow-wrap: anywhere;
  color: rgba(250, 246, 235, 0.6);
  font-family: "Roboto", Arial, sans-serif;
  font-size: clamp(16px, 1.15vw, 18px);
  line-height: 1.06;
  word-break: break-word;
  -webkit-line-clamp: unset;
}

.landing-v2
  .landing-events-carousel[data-events-variant="cards"]
  .landing-event-card
  > img {
  top: auto;
  bottom: var(--landing-event-image-bottom);
  border-radius: 999px;
}

@media (max-width: 900px) {
  .landing-v2
    .landing-events-carousel[data-events-variant="cards"]
    .landing-event-card {
    --landing-event-card-pad: 14px;
    --landing-event-copy-top: 122px;
    --landing-event-image-bottom: 48px;
    --landing-event-metadata-gap: 21px;
    height: 460px;
    min-height: 460px;
  }

  .landing-v2
    .landing-events-carousel[data-events-variant="cards"]
    .landing-schedule__body {
    width: calc(100% - 166px);
    margin-left: 166px;
  }

  .landing-v2
    .landing-events-carousel[data-events-variant="cards"]
    .landing-schedule__date {
    left: 180px;
    top: 14px;
    font-size: 14px;
  }

  .landing-v2
    .landing-events-carousel[data-events-variant="cards"]
    .landing-schedule__title {
    -webkit-line-clamp: 2;
  }

  .landing-v2
    .landing-events-carousel[data-events-variant="cards"]
    .landing-schedule__description {
    font-size: 16px;
    line-height: 1.06;
  }

  .landing-v2
    .landing-events-carousel[data-events-variant="cards"]
    .landing-event-card
    > img {
    left: 14px;
    top: auto;
    bottom: var(--landing-event-image-bottom);
    width: calc(100% - 28px);
    height: auto;
    aspect-ratio: 661 / 295;
    border-radius: 999px;
  }
}

@media (max-width: 760px) {
  .landing-v2
    .landing-events-carousel[data-events-variant="cards"]
    .landing-schedule__body {
    width: calc(100% - 150px);
    margin-left: 150px;
  }

  .landing-v2
    .landing-events-carousel[data-events-variant="cards"]
    .landing-schedule__date {
    left: 164px;
  }

  .landing-v2
    .landing-events-carousel[data-events-variant="cards"]
    .landing-schedule__title {
    -webkit-line-clamp: 2;
  }
}

@media (prefers-reduced-motion: reduce) {
  .landing-v2 .landing-event-card--loading {
    animation: none;
  }

  .landing-v2 .landing-events-carousel *,
  .landing-v2 .landing-events-carousel *::before,
  .landing-v2 .landing-events-carousel *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

.landing-v2
  .landing-events-carousel[data-events-static="true"]
  .landing-events-carousel__viewport {
  overflow-x: hidden;
  cursor: default;
}

.landing-v2
  .landing-events-carousel[data-events-static="true"]
  .landing-events-carousel__track {
  flex-wrap: wrap;
  width: 100% !important;
}

.landing-v2
  .landing-events-carousel[data-events-static="true"]
  .landing-event-card {
  width: calc((100% - 2 * var(--figma-gap, 24px)) / 3);
}

@media (max-width: 1100px) {
  .landing-v2
    .landing-events-carousel[data-events-static="true"]
    .landing-event-card {
    width: calc((100% - var(--figma-gap, 24px)) / 2);
  }
}

@media (max-width: 760px) {
  .landing-v2
    .landing-events-carousel[data-events-static="true"]
    .landing-event-card {
    width: 100%;
  }
}
