/*
  CMV Stream — the three event states (Registration / Live / On-Demand).

  Moved as-is from the design previews (assets/cmv-*-preview.html): new
  components on top of main.min.css, same tokens — accent #000065, accent
  hover #14148a, light #e7edf8, text #0c0d0c, Montserrat headings, Assistant
  body, rem based on viewport width, the site's own mobile query.
  Loaded after main.min.css (inc/assets.php). WP-only glue is in style.css.
*/

/* ---------- header: highlighted register item inside the menu ---------- */
.main-menu a.main-menu__cta {
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #fff;
  background: #000065;
}
.main-menu a.main-menu__cta:hover { color: #fff; background: #14148a; }
.main-menu li + li { margin-inline-start: 0.125rem; }

/* ---------- header layout (client notes 22.10) ----------
   Desktop: logo on the left and the menu on the right of the same row, a thin
   line under the header, and more room between the header and the page title. */
@media (orientation: landscape), (min-width: 769px) and (orientation: portrait) {
  .header-inner { grid-template-columns: auto 1fr; }
  /* flat menu as in the client's mockup: plain grey links, only the register item is a pill */
  .main-menu {
    justify-self: end;
    padding: 0;
    border-radius: 0;
    background: none;
    box-shadow: none;
  }
  .main-menu a { color: rgba(12, 13, 12, 0.55); }
  .main-menu a:hover,
  .main-menu a.isActive { color: #0c0d0c; background: none; }
  .main-menu a.main-menu__cta { color: #fff; }
  .main-menu a.main-menu__cta:hover { color: #fff; background: #14148a; }
  .header-inner::after {
    content: "";
    position: absolute;
    inset-inline: 3.75rem;
    bottom: 0;
    height: 1px;
    background: rgba(0, 0, 0, 0.12);
  }
  .--compensate-for-header { padding-top: calc(var(--header-height) + 1.5rem); }
}

/* ---------- header: "Watch / Listen" submenu (video / podcast) ----------
   Opens on click (event.js) — and on hover / keyboard focus on desktop.
   Phones: the menu row scrolls sideways (overflow), so the panel is placed
   against the header (.header-inner), full width under the menu row. */
.main-menu__chev {
  width: 0.875rem;
  height: 0.875rem;
  margin-inline-start: 0.25rem;
  background: currentColor;
  -webkit-mask: url("../img/icons/chevron-down.svg") center / 1.5rem no-repeat;
  mask: url("../img/icons/chevron-down.svg") center / 1.5rem no-repeat;
  transition: transform 0.3s;
}
.main-menu__has-sub.isOpen .main-menu__chev { transform: rotate(180deg); }
.main-submenu {
  position: absolute;
  top: 100%;
  inset-inline: 0.75rem;
  z-index: 20;
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
  padding: 0.375rem;
  border-radius: 1.25rem;
  background: #fff;
  box-shadow: 0 0.5rem 1.5rem rgba(0, 0, 101, 0.14);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-0.375rem);
  transition: opacity 0.2s, visibility 0.2s, transform 0.2s;
}
.main-menu__has-sub.isOpen .main-submenu { opacity: 1; visibility: visible; transform: none; }
.main-menu .main-submenu li { margin: 0; }
.main-menu .main-submenu a { gap: 0.625rem; height: 2.75rem; padding-inline: 0.875rem; border-radius: 0.875rem; font-size: 0.9375rem; }
.main-submenu__icon {
  flex-shrink: 0;
  width: 1.25rem;
  height: 1.25rem;
  background: currentColor;
  -webkit-mask: var(--icon) center / contain no-repeat;
  mask: var(--icon) center / contain no-repeat;
}

/* ---------- registration hero ---------- */
.reg-hero__inner {
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.reg-hero__inner::after {
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.55) 0, rgba(0, 0, 0, 0.7) 100%);
}
.reg-hero__content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 2.5rem 1.25rem 2rem;
  color: #fff;
}
.reg-hero__content .hero__title { margin-top: 1rem; }
.reg-hero__subtitle {
  margin-top: 0.5rem;
  font-family: Montserrat, sans-serif;
  font-size: 1.25rem;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.02em;
}
.reg-hero__content .hero__text { margin-top: 0.75rem; color: rgba(255, 255, 255, 0.85); }
.reg-hero__mob-btn { width: 100%; margin-top: 1.5rem; }
.reg-hero__mob-btn img { width: 0.375rem; height: 0.75rem; }

/* date / format facts */
.event-facts {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1.5rem;
  padding: 1rem 1.25rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 1rem;
  background: rgba(0, 0, 40, 0.45);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.event-facts__item { display: flex; align-items: center; gap: 0.75rem; }
.event-facts__icon { flex-shrink: 0; width: 1.75rem; height: 1.75rem; }
.event-facts__label { font-family: Montserrat, sans-serif; font-size: 1rem; font-weight: 600; line-height: 1.3; }
.event-facts__value { font-size: 0.875rem; line-height: 1.4; color: rgba(255, 255, 255, 0.8); }
.event-facts__sep { display: none; }

/* three short benefits */
.benefits { display: flex; flex-direction: column; gap: 0.875rem; margin-top: 1.5rem; }
.benefit { display: flex; align-items: center; gap: 0.75rem; }
.benefit__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 50%;
  background: rgba(0, 0, 101, 0.7);
}
.benefit__icon svg { width: 1.375rem; height: 1.375rem; }
.benefit__text { font-size: 0.9375rem; font-weight: 600; line-height: 1.3; }

/* registration card */
.reg-card {
  position: relative;
  z-index: 2;
  margin: -1.5rem 0.5rem 0;
  padding: 1.75rem 1.25rem 1.5rem;
  border-radius: 1.5rem;
  background: #fff;
  box-shadow: 0 0.25rem 1.5rem rgba(0, 0, 0, 0.12);
  scroll-margin-top: calc(var(--header-height-mob) + 1rem);
}
.reg-card__title {
  font-family: Montserrat, sans-serif;
  font-size: 1.375rem;
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: #000065;
}
.reg-card__text { margin-top: 0.375rem; font-size: 0.9375rem; line-height: 1.5; color: rgba(12, 13, 12, 0.7); }
.reg-card .form__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.75rem; margin-top: 1.25rem; }
.reg-card .form__item:not(.--half) { grid-column: 1 / -1; }
.reg-card textarea.form__control { height: 5.25rem; padding-top: 0.75rem; resize: none; line-height: 1.4; font-family: inherit; }
.reg-card .form__check { align-items: flex-start; margin-top: 0.25rem; }
.reg-card .form__check-text { padding-top: 0.25rem; }
.reg-card .form__check-text a { color: #000065; text-decoration: underline; text-underline-offset: 2px; }
.reg-card__btn { width: 100%; margin-top: 1.25rem; font-weight: 700; letter-spacing: 0.02em; }
.reg-card__btn img { width: 0.375rem; height: 0.75rem; }
.reg-card__note { margin-top: 0.75rem; font-size: 0.8125rem; line-height: 1.4; text-align: center; color: rgba(12, 13, 12, 0.7); }

/* errors (same red family as system error states) */
.form__control.isError, .form__check-input.isError + .form__check-box { border-color: #d92d20; }
.form__error { display: none; font-size: 0.8125rem; line-height: 1.3; color: #d92d20; }
.form__item.isError .form__error, .form__check-wrap.isError .form__error { display: block; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); border: 0; }

/* countdown */
.countdown { display: flex; align-items: center; gap: 0.75rem; margin-top: 1.25rem; padding: 0.75rem 1rem; border-radius: 1rem; background: rgba(15, 78, 187, 0.06); }
.countdown__label { flex-shrink: 0; font-size: 0.8125rem; font-weight: 600; line-height: 1.2; color: #000065; }
.countdown__units { display: flex; flex: 1; justify-content: space-between; gap: 0.25rem; }
.countdown__unit { display: flex; flex-direction: column; align-items: center; min-width: 2.75rem; }
.countdown__num { font-family: Montserrat, sans-serif; font-size: 1.5rem; font-weight: 600; line-height: 1.1; color: #000065; font-variant-numeric: tabular-nums; }
.countdown__txt { font-size: 0.6875rem; line-height: 1.3; text-transform: uppercase; letter-spacing: 0.04em; color: rgba(12, 13, 12, 0.6); }
.countdown.isLive .countdown__units { display: none; }

/* floating register card: appears only once the form is out of view, shows a compact countdown */
.register { transition: opacity 0.3s, visibility 0.3s, transform 0.3s; }
.register.isHidden { opacity: 0; visibility: hidden; pointer-events: none; transform: translateY(1rem); }
.register__count { display: flex; justify-content: center; gap: 0.375rem; font-family: Montserrat, sans-serif; font-size: 0.8125rem; font-weight: 600; line-height: 1.2; font-variant-numeric: tabular-nums; }
.register__count span { display: flex; flex-direction: column; align-items: center; min-width: 2.25rem; padding: 0.25rem 0; border-radius: 0.5rem; background: rgba(255, 255, 255, 0.12); }
.register__count small { font-family: Assistant, sans-serif; font-size: 0.5625rem; font-weight: 400; text-transform: uppercase; opacity: 0.75; }

/* ---------- promo video (below hero, deliberately smaller than the hero) ---------- */
.promo { padding: 3.25rem 1rem 0; }
.promo .watch__video { margin-top: 1.5rem; border-radius: 1rem; overflow: hidden; }

/* ---------- scientific program: agenda as a clean list ---------- */
.program { padding: 3.25rem 1rem 0; }
.program__list { display: grid; gap: 0.625rem; max-width: 40rem; margin: 1.5rem auto 0; counter-reset: program; list-style: none; }
.program__item {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  padding: 0.875rem 1rem;
  border-radius: 1rem;
  background: rgba(15, 78, 187, 0.06);
  counter-increment: program;
}
.program__item::before {
  content: counter(program, decimal-leading-zero);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 2.375rem;
  height: 2.375rem;
  border-radius: 50%;
  background: #000065;
  font-family: Montserrat, sans-serif;
  font-size: 0.875rem;
  font-weight: 600;
  color: #fff;
}
.program__title { font-size: 1rem; font-weight: 600; line-height: 1.35; }

/* ---------- previous editions: carousel on mobile too (peeking neighbour cards) ---------- */
.editions__carousel { margin-top: 1.5625rem; }
.editions__carousel .edition { width: 19.5rem; padding-inline: 0.375rem; }
.editions__carousel + .editions__nav { margin-top: 1.5rem; }

/* ================= LIVE mode ================= */
/* menu item: same pill as the active item of the site + a red live dot */
.main-menu a.main-menu__live { gap: 0.5rem; font-weight: 600; color: #000065; background: rgba(15, 78, 187, 0.1); }
.main-menu__live-dot { width: 0.5rem; height: 0.5rem; border-radius: 50%; background: #d92d20; animation: livePulse 1.6s ease-out infinite; }
body:not(.isOnAir) .main-menu__live-dot { display: none; }

/* player as the hero: as big as the first screen allows, never cut by the fold */
.live-hero { padding-inline: 1rem; }
.live-hero__inner { margin-top: 1.6875rem; }
.live-hero .watch__video {
  margin-top: 0;
  aspect-ratio: 16 / 9;
  border-radius: 1.5rem;
  overflow: hidden;
}
.live-hero .watch__poster { object-fit: cover; }

/* LIVE NOW indicator on the video (red, as the spec asks) */
.live-badge {
  position: absolute;
  top: 0.75rem;
  inset-inline-start: 0.75rem;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  height: 2rem;
  padding-inline: 0.875rem;
  border-radius: 6.25rem;
  background: #d92d20;
  box-shadow: 0 0.25rem 1rem rgba(0, 0, 0, 0.25);
  font-family: Montserrat, sans-serif;
  font-size: 0.875rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.08em;
  color: #fff;
  pointer-events: none;
}
.live-badge[hidden] { display: none; }
.live-badge__dot { width: 0.5rem; height: 0.5rem; border-radius: 50%; background: #fff; animation: livePulse 1.6s ease-out infinite; }
/* before the start time: neutral "Live in" chip */
.live-badge.--soon { background: rgba(0, 0, 0, 0.6); letter-spacing: 0.04em; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.live-badge.--soon .live-badge__dot { background: #d92d20; animation: none; }
.live-badge__time { font-variant-numeric: tabular-nums; }
@keyframes livePulse {
  0% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.7); }
  70% { box-shadow: 0 0 0 0.5rem rgba(255, 255, 255, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0); }
}
.main-menu__live-dot { animation-name: livePulseRed; }
@keyframes livePulseRed {
  0% { box-shadow: 0 0 0 0 rgba(217, 45, 32, 0.6); }
  70% { box-shadow: 0 0 0 0.375rem rgba(217, 45, 32, 0); }
  100% { box-shadow: 0 0 0 0 rgba(217, 45, 32, 0); }
}

/* title + date ABOVE the player (the client, 18.10) */
.live-info { display: flex; flex-direction: column; gap: 0.75rem; margin-bottom: 1.25rem; }
.live-info__name {
  margin-bottom: 0.375rem;
  font-family: Montserrat, sans-serif;
  font-size: 0.875rem;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #0f4ebb;
}
.live-info__head { display: flex; flex-direction: column; align-items: flex-start; gap: 0.625rem; }
.live-info__title { font-family: Montserrat, sans-serif; font-size: 1.5rem; font-weight: 600; line-height: 1.1; letter-spacing: -0.02em; }
/* NOW ON DEMAND above the title, on the recording (the client, 19.10 —
   on the video it took over the picture; 25.10 — above the title) */
.live-info__status {
  display: inline-flex;
  align-items: center;
  height: 1.5rem;
  padding-inline: 0.625rem;
  border-radius: 6.25rem;
  background: #000065;
  font-family: Montserrat, sans-serif;
  font-size: 0.6875rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.08em;
  color: #fff;
  white-space: nowrap;
}
.live-info__status[hidden] { display: none; }
.live-info__sub { margin-top: 0.375rem; font-size: 1rem; line-height: 1.4; color: rgba(12, 13, 12, 0.7); }
.live-info__meta { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.live-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  height: 2.25rem;
  padding-inline: 0.875rem;
  border-radius: 6.25rem;
  background: rgba(15, 78, 187, 0.06);
  font-size: 0.875rem;
  font-weight: 600;
  color: #000065;
  white-space: nowrap;
}
.live-chip svg { width: 1.125rem; height: 1.125rem; flex-shrink: 0; }

/* scientific program as chapters (existing chapters component) */
.program.--chapters .chapters { margin-top: 1.5rem; }
.program.--live .chapter__time,
.program.--live .chapter__btn { display: none; }
.program.--live .chapter { cursor: default; }

/* ================= ON-DEMAND mode ================= */
.program.--ondemand .chapter { cursor: pointer; }
.program.--ondemand .chapter:focus-visible { outline: 2px solid #000065; outline-offset: 2px; border-radius: 1rem; }
/* audio sits under the video as the secondary option: tighter top spacing than a full section */
.od-audio { padding-top: 3rem; }
.od-audio .section-head__title { font-size: 1.25rem; }
/* "Audio from" = Spotify: Spotify's embed in the player's place, same width */
.podcast__spotify { max-width: 88.75rem; margin-inline: auto; }
.podcast__spotify iframe { display: block; width: 100%; border: 0; border-radius: 0.75rem; }
@media (orientation: landscape), (min-width: 769px) and (orientation: portrait) {
  .od-audio .section-head__title { font-size: 2.25rem; }
  .od-audio .section-head__text { margin-top: 0.75rem; font-size: 1.125rem; }
}

/* ================= desktop (same query as the site) ================= */
@media (orientation: landscape), (min-width: 769px) and (orientation: portrait) {
  .main-menu li + li { margin-inline-start: 0.25rem; }
  .main-menu__has-sub { position: relative; }
  .main-menu__chev { width: 1.125rem; height: 1.125rem; margin-inline-start: 0.375rem; }
  .main-submenu {
    inset-inline: auto;
    inset-inline-start: 0;
    top: calc(100% + 0.75rem);
    min-width: 100%;
    padding: 0.5rem;
    border-radius: 1.5rem;
  }
  /* hover bridge over the gap between the item and the panel */
  .main-submenu::before { content: ""; position: absolute; inset-inline: 0; bottom: 100%; height: 0.75rem; }
  .main-menu__has-sub:not(.isSuppressed):hover .main-submenu,
  .main-menu__has-sub:not(.isSuppressed):focus-within .main-submenu { opacity: 1; visibility: visible; transform: none; }
  .main-menu .main-submenu a { height: 3.25rem; padding-inline: 1.125rem; font-size: 1.125rem; white-space: nowrap; }
  .main-submenu__icon { width: 1.5rem; height: 1.5rem; }

  .reg-hero__inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 3rem;
    /* height = its content, which is sized in rem (= viewport width), so the
       hero keeps its full width and gets lower as the window gets narrower */
    min-height: 0;
    padding: 3rem 4.5rem;
  }
  .reg-hero__inner::after {
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.72) 0, rgba(0, 0, 0, 0.55) 45%, rgba(0, 0, 0, 0.15) 100%);
  }
  .reg-hero__content { flex: 1; max-width: 58rem; padding: 0; }
  .reg-hero__content .hero__title { max-width: none; font-size: 4.5rem; }
  .reg-hero__subtitle { margin-top: 0.75rem; font-size: 2.25rem; }
  .reg-hero__content .hero__text { max-width: 46rem; margin-top: 1.25rem; }

  .event-facts { flex-direction: row; align-items: center; gap: 1.5rem; margin-top: 2rem; padding: 1.125rem 1.75rem; border-radius: 1.25rem; }
  .event-facts__icon { width: 2.25rem; height: 2.25rem; }
  .event-facts__label { font-size: 1.375rem; }
  .event-facts__value { font-size: 1.125rem; }
  .event-facts__sep { display: block; width: 1px; height: 3rem; background: rgba(255, 255, 255, 0.25); }

  .benefits { flex-direction: row; gap: 2.25rem; margin-top: 2.25rem; }
  .benefit__icon { width: 3.5rem; height: 3.5rem; }
  .benefit__icon svg { width: 1.625rem; height: 1.625rem; }
  .benefit__text { max-width: 13rem; font-size: 1.125rem; }

  .reg-card {
    flex-shrink: 0;
    width: 38rem;
    margin: 0;
    padding: 2.25rem 2.5rem 1.75rem;
    border-radius: 2rem;
    scroll-margin-top: calc(var(--header-height) + 1rem);
  }
  .reg-card__title { font-size: 2rem; }
  .reg-card__text { font-size: 1.125rem; }
  .reg-card .form__grid { gap: 0.875rem; margin-top: 1.25rem; }
  .reg-card textarea.form__control { height: 5.5rem; }
  .reg-card__btn { margin-top: 1.25rem; font-size: 1.375rem; }
  .reg-card__note { font-size: 1rem; }

  .countdown { gap: 1.25rem; padding: 0.875rem 1.25rem; }
  .countdown__label { font-size: 1rem; }
  .countdown__num { font-size: 2rem; }
  .countdown__txt { font-size: 0.8125rem; }
  .countdown__unit { min-width: 4rem; }

  .promo { padding: 4.5625rem 3.75rem 0; }
  /* the full content width at 16:9 — no one-screen cap: on a wide screen
     the cap made the box wider than the video (black bars, a narrower
     picture); the promo sits below the hero, so it may be taller than the
     screen (the client, 19.10: "spread the video wider") */
  .promo .watch__video {
    width: 100%;
    margin: 3rem auto 0;
    aspect-ratio: 16 / 9;
    background: #000;
    border-radius: 2.5rem;
  }
  .promo .watch__poster { object-fit: cover; }
  .promo .watch__play { top: 2rem; inset-inline-end: 2rem; }

  .program { padding: 4.5625rem 3.75rem 0; }
  .program__list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; max-width: 80rem; margin-top: 3rem; }
  .program__item { gap: 1.25rem; padding: 1.25rem 1.75rem; border-radius: 1.5rem; }
  .program__item::before { width: 3.25rem; height: 3.25rem; font-size: 1.125rem; }
  .program__title { font-size: 1.375rem; }

  .editions__carousel { margin-top: 2.875rem; }
  .editions__carousel .edition { width: 32.5rem; padding-inline: 1.09375rem; }
  .editions__carousel + .editions__nav { margin-top: 2.875rem; }
  /* 1–2 editions (no loop): they fit side by side — centred, no arrows */
  .editions__carousel.--few:not(:has(.swiper-slide:nth-child(3))) .swiper-wrapper { justify-content: center; }
  .editions__carousel.--few:not(:has(.swiper-slide:nth-child(3))) + .editions__nav { display: none; }

  /* live */
  .live-hero { padding-inline: 3.75rem; }
  /* The player AND its title / chips (.live-info) fit the first screen: the
     16:9 player is as wide as the content allows, but never so tall that
     its bottom (under the title) drops under the fold. --live-info-h = the measured
     height of .live-info (event.js; 8rem until measured). The title block
     takes the player's width, so both line up. */
  .live-hero__inner {
    /* …but never below 60% of the content: on an extremely short window a
       short scroll to the title beats a stamp-sized player */
    width: min(100%, max(60%, calc((var(--elv-screen-h) - var(--live-info-h, 8rem)) * 16 / 9)));
    margin: 0 auto;
  }
  .live-hero .watch__video {
    aspect-ratio: 16 / 9;
    border-radius: 2.5rem;
    background: #000;
  }
  .live-hero .watch__play { top: 2rem; inset-inline-end: 2rem; }
  .live-badge { top: 2rem; inset-inline-start: 2rem; gap: 0.625rem; height: 3rem; padding-inline: 1.375rem; font-size: 1.125rem; }
  .live-badge__dot { width: 0.625rem; height: 0.625rem; }
  .live-info { flex-direction: row; align-items: center; justify-content: space-between; gap: 2rem; margin-bottom: 1.75rem; }
  .live-info__name { margin-bottom: 0.5rem; font-size: 1.125rem; }
  .live-info__title { font-size: 2.5rem; }
  .live-info__status { height: 2rem; padding-inline: 0.875rem; font-size: 0.8125rem; }
  .live-info__sub { margin-top: 0.5rem; font-size: 1.375rem; }
  .live-info__meta { flex-shrink: 0; gap: 0.75rem; }
  .live-chip { height: 3rem; padding-inline: 1.25rem; font-size: 1.125rem; }
  .live-chip svg { width: 1.5rem; height: 1.5rem; }
  .program.--chapters .chapters { margin-top: 3rem; }
}

/* short desktop screens (e.g. 1366x768 laptops): tighten the hero so it still fits without scrolling */
@media (orientation: landscape) and (min-aspect-ratio: 16/8.6) {
  .reg-hero__inner { padding-block: 2rem; }
  .reg-hero__subtitle { font-size: 2rem; }
  .event-facts, .benefits { margin-top: 1.5rem; }
}

/* ---- Zoom Webinar as the live stream (inc/zoom.php, event.js 5b) ----
   Phones: the join card under the title, full width (the 16:9 box is too
   small for it); the webinar itself opens on its own full-screen page.
   Desktop: the card over the poster; once joined, the Zoom component view
   replaces the poster and the box grows to fit Zoom's toolbar. */
.live-hero .watch__video.isZoom { aspect-ratio: auto; background: #000065; }
.live-hero .watch__video.isZoom .watch__poster { display: none; }
.watch__zoom { position: relative; height: auto; padding: 3.75rem 1rem 1.25rem; }
.zoom-join {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  width: 100%;
  max-width: 28rem;
  margin: 0 auto;
  padding: 1.5rem;
  border-radius: 1.5rem;
  background: #fff;
  color: #0c0d0c;
}
.zoom-join__title { margin: 0; font-family: "Montserrat", sans-serif; font-size: 1.5rem; font-weight: 700; line-height: 1.2; color: #000065; }
.zoom-join__text { margin: 0; font-size: 1rem; line-height: 1.4; color: rgba(12, 13, 12, 0.7); }
.zoom-join__fields { display: grid; gap: 0.75rem; }
.zoom-join__btn { width: 100%; justify-content: center; }
.zoom-join__btn:disabled { opacity: 0.6; cursor: default; }
.zoom-join__status { margin: 0; font-size: 0.875rem; line-height: 1.4; text-align: center; color: #000065; }
.zoom-join__status:empty { display: none; }
.zoom-join__status.isError { color: #d92d20; }
.zoom-root { display: none; }
.watch__video.isZoomJoined .zoom-join { display: none; }
.watch__video.isZoomJoined .zoom-root { display: block; position: relative; }
.watch__video.isZoomJoined .live-badge { display: none; } /* Zoom's own toolbar sits there */
/* Zoom opens its popups (Leave, chat, participants, settings) on <body> with
   no z-index — keep them above the player box and the fixed ISI bar */
body > [class*="zoom-Mui"] { z-index: 1000 !important; }

@media (orientation: landscape), (min-width: 769px) and (orientation: portrait) {
  .live-hero .watch__video.isZoom { aspect-ratio: 16 / 9; }
  .live-hero .watch__video.isZoom .watch__poster { display: block; }
  .watch__zoom {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    padding: 2rem;
    background: rgba(0, 0, 101, 0.45);
  }
  .zoom-join { padding: 2rem; border-radius: 2rem; }
  .zoom-join__title { font-size: 2rem; }
  .zoom-join__text { font-size: 1.125rem; }

  /* joined: Zoom draws its video + toolbar — let the box follow its height */
  .live-hero .watch__video.isZoomJoined { aspect-ratio: auto; overflow: visible; background: #000; }
  .watch__video.isZoomJoined .watch__zoom { position: relative; z-index: auto; display: block; height: auto; padding: 0; background: none; }
}

/* =====================================================================
   The client's notes of 21.10 (cmv stream spec.docx, pages 1–7)
   ===================================================================== */

/* ---------- type size: like the new Kamada site ----------
   The design scales with the screen width (16px = 1920px wide), so a laptop
   got 11–12px text. Now 18px at 1920 and never under 15px — everything in
   rem grows with it, the layout stays fluid. */
@media (orientation: landscape), (min-width: 769px) and (orientation: portrait) {
  html { font-size: clamp(15px, 0.9375vw, 24px); }
}

/* scroll targets land right under the header (its real height — event.js
   --header-h); the form card no longer adds a second header height on top */
html { scroll-padding-top: calc(var(--header-h, var(--header-height)) + 0.5rem); }
.reg-card { scroll-margin-top: 0; }
@media (orientation: landscape), (min-width: 769px) and (orientation: portrait) {
  .reg-card { scroll-margin-top: 0; }
}

/* ---------- logo: its light-blue parts were lost on white ---------- */
.header .logo img,
.footer__cmv img,
.register__media img { filter: saturate(1.7) brightness(0.84); }

/* ---------- header: logo left, menu right, on the content's edge, a thin
   line under it (the client's example) ---------- */
@media (orientation: landscape), (min-width: 769px) and (orientation: portrait) {
  .header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    margin-inline: var(--hero-x, 3.75rem);
    padding: 0;
    border-bottom: 1px solid rgba(0, 0, 101, 0.12);
  }
  .header .logo { width: 11.5rem; }
  .main-menu { padding: 0; border-radius: 0; background: none; box-shadow: none; }
  .main-menu a { font-size: 1.125rem; }
  /* more air between the header line and the title / hero */
  .hero__inner.reg-hero__inner { margin-top: 1.25rem; }
  /* (the player still fits the first screen: minus that margin too) */
  .live-hero__inner {
    width: min(100%, max(60%, calc((var(--elv-screen-h) - var(--live-info-h, 8rem) - 2.5rem) * 16 / 9)));
    margin-top: 2.5rem;
  }

  /* the bigger type must still fit the hero in the first screen (11.10),
     down to a 1366×768 laptop: a narrower, tighter form card, so the text
     beside it wraps less */
  .reg-hero__inner { gap: 2.5rem; padding: 1.5rem 3.5rem; }
  .reg-hero__content .hero__title { font-size: 4rem; }
  .reg-hero__subtitle { font-size: 2rem; }
  .reg-card { width: 34rem; padding: 1.75rem 2.25rem 1.25rem; }
  .reg-card__title { font-size: 1.75rem; }
  .reg-card__text { font-size: 1rem; }
  .reg-card .countdown { margin-top: 1rem; padding: 0.625rem 1rem; }
  .reg-card .countdown__num { font-size: 1.75rem; }
  .reg-card .form__grid { gap: 0.75rem; margin-top: 1rem; }
  .reg-card textarea.form__control { height: 4.5rem; line-height: 1.3; }
  .reg-card textarea.form__control:placeholder-shown { overflow: hidden; } /* no scrollbar for a long placeholder */
  .reg-card__btn { margin-top: 1rem; }
  .reg-card__note { margin-top: 0.5rem; font-size: 0.875rem; }
}

/* ---------- ISI: more prominent — the brand's dark bar ---------- */
.footer .isi { background: #000065; color: #fff; box-shadow: 0 -0.25rem 1.5rem rgba(0, 0, 40, 0.3); }
.footer .isi__eyebrow { color: #b1d0e5; font-size: 0.75rem; letter-spacing: 0.06em; }
.footer .isi__title { color: #fff; font-size: 1rem; }
.footer .isi__toggle { color: #fff; }
.footer .isi__toggle-icon { box-shadow: none; }
.footer .isi__toggle:focus-visible { outline-color: #fff; }
.footer .isi__body { color: rgba(255, 255, 255, 0.85); border-bottom-color: rgba(255, 255, 255, 0.2); }
.footer .isi__label { color: #fff; }
.footer .isi__body a { color: #fff; text-decoration: underline; text-underline-offset: 2px; }
/* its scrollbar: thin, rounded, the brand's light blue on the navy (not the browser's white one) */
.footer .isi__body { padding-inline-end: 1rem; }
/* Firefox (Chrome ignores the ::-webkit-scrollbar look below once scrollbar-color is set) */
@supports (-moz-appearance: none) {
  .footer .isi__body { scrollbar-width: thin; scrollbar-color: #b1d0e5 rgba(255, 255, 255, 0.12); }
}
.footer .isi__body::-webkit-scrollbar { width: 0.375rem; }
.footer .isi__body::-webkit-scrollbar-track { border-radius: 6.25rem; background: rgba(255, 255, 255, 0.12); }
.footer .isi__body::-webkit-scrollbar-thumb { border-radius: 6.25rem; background: #b1d0e5; }
.footer .isi__body::-webkit-scrollbar-thumb:hover { background: #fff; }
.footer .isi__body::-webkit-scrollbar-button { display: none; height: 0; }
@media (orientation: landscape), (min-width: 769px) and (orientation: portrait) {
  .footer .isi { padding: 1rem var(--hero-x, 3.75rem); }
  .footer .isi__eyebrow { font-size: 0.875rem; }
  .footer .isi__title { font-size: 1.25rem; }
  .footer .isi__toggle { padding: 0.25rem 0.25rem 0.25rem 1.25rem; border: 1px solid rgba(255, 255, 255, 0.45); border-radius: 6.25rem; font-size: 1rem; }
  .footer .isi__toggle-icon { width: 2.25rem; height: 2.25rem; }
}

/* ---------- floating cards: bigger, readable, and pulsing ---------- */
@keyframes cmvPulse {
  0% { box-shadow: 0 0 0 0 rgba(0, 0, 101, 0.55), 0 0.25rem 1.5rem rgba(0, 0, 0, 0.25); }
  70% { box-shadow: 0 0 0 1.125rem rgba(0, 0, 101, 0), 0 0.25rem 1.5rem rgba(0, 0, 0, 0.25); }
  100% { box-shadow: 0 0 0 0 rgba(0, 0, 101, 0), 0 0.25rem 1.5rem rgba(0, 0, 0, 0.25); }
}
.register:not(.isHidden) .register__card,
.register:not(.isHidden) .register__bar-btn { animation: cmvPulse 2.2s ease-out infinite; }
/* on air: the card stays blue, only the dot by LIVE NOW is red and blinks
   (the client, 26.10 — was all red) */
@media (prefers-reduced-motion: reduce) {
  .register:not(.isHidden) .register__card,
  .register:not(.isHidden) .register__bar-btn { animation: none; }
}

/* smaller again, lighter countdown digits (the client, 26.10) */
.register__count,
.register__count b { font-weight: 400; }
@media (orientation: landscape), (min-width: 769px) and (orientation: portrait) {
  .register__card { width: 13rem; gap: 0.625rem; padding: 0.5rem; }
  /* white behind the logo — the old photo swallowed its light-blue parts */
  .register__media { height: 4.5rem; background: #fff; }
  .register__media img { width: 8rem; margin: 0; }
  .register__info { gap: 0.125rem; white-space: normal; text-align: center; }
  .register__label { font-size: 0.875rem; }
  .register__title { font-size: 1.125rem; }
  .register__count { gap: 0.375rem; font-size: 0.9375rem; }
  .register__count span { min-width: 2.375rem; padding: 0.25rem 0; }
  .register__count small { font-size: 0.625rem; }
  .register__cta { height: 2.75rem; font-size: 1rem; }
}

/* On-Demand card: Watch + Listen; during the broadcast: LIVE NOW + Watch live */
.register__ctas { display: flex; flex-direction: column; }
a.register__cta { border-radius: 0.875rem; color: #fff; transition: background-color 0.25s ease; }
@media (any-hover: hover) {
  a.register__cta:hover { background: rgba(255, 255, 255, 0.12); }
}
.register__cta-icon {
  flex-shrink: 0;
  width: 1.375rem;
  height: 1.375rem;
  background: currentColor;
  -webkit-mask: var(--icon) center / contain no-repeat;
  mask: var(--icon) center / contain no-repeat;
}
.register__live {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: Montserrat, sans-serif;
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}
@keyframes cmvBlink { 50% { opacity: 0.25; } }
.register__live-dot {
  width: 0.75rem;
  height: 0.75rem;
  border-radius: 50%;
  background: #ff3b30;
  animation: cmvBlink 1s steps(1, end) infinite, livePulseRed 1.6s ease-out infinite;
}
@media (prefers-reduced-motion: reduce) {
  .register__live-dot { animation: none; }
}

/* ---------- registration form: phone with a country code ---------- */
.phone-field { position: relative; display: flex; gap: 0.5rem; }
.phone-field > .wpcf7-form-control-wrap { flex: 1; min-width: 0; }
.cc { flex-shrink: 0; }
.cc__btn {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  width: auto;
  padding-inline: 0.75rem;
  cursor: pointer;
  white-space: nowrap;
  text-align: start;
}
.cc__iso { font-size: 0.75rem; font-weight: 700; color: #000065; }
.cc__chev {
  width: 0.875rem;
  height: 0.875rem;
  background: currentColor;
  -webkit-mask: url("../img/icons/chevron-down.svg") center / 1.5rem no-repeat;
  mask: url("../img/icons/chevron-down.svg") center / 1.5rem no-repeat;
  transition: transform 0.25s;
}
.cc.isOpen .cc__chev { transform: rotate(180deg); }
.cc__panel {
  position: absolute;
  top: calc(100% + 0.375rem);
  inset-inline: 0;
  z-index: 30;
  min-width: 15rem;
  padding: 0.5rem;
  border-radius: 1rem;
  background: #fff;
  box-shadow: 0 0.5rem 1.75rem rgba(0, 0, 101, 0.2);
}
.cc__panel[hidden] { display: none; }
.cc__search {
  width: 100%;
  height: 2.5rem;
  padding-inline: 0.75rem;
  border: 1px solid rgba(0, 0, 0, 0.15);
  border-radius: 0.75rem;
  font: inherit;
  font-size: 0.9375rem;
  color: #0c0d0c;
}
.cc__search:focus { outline: none; border-color: #000065; }
.cc__list { max-height: 14rem; margin: 0.375rem 0 0; padding: 0; overflow-y: auto; overscroll-behavior: contain; list-style: none; }
.cc__opt {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.5rem 0.625rem;
  border-radius: 0.625rem;
  font-size: 0.9375rem;
  line-height: 1.3;
  cursor: pointer;
}
.cc__opt[hidden] { display: none; }
.cc__opt:hover, .cc__opt:focus { outline: none; background: rgba(15, 78, 187, 0.08); }
.cc__opt[aria-selected="true"] { font-weight: 600; color: #000065; }
.cc__opt-dial { flex-shrink: 0; color: rgba(12, 13, 12, 0.6); }

/* ---------- Previous Editions: Follow (Spotify) + the Spotify popup ---------- */
.editions__follow { display: flex; justify-content: center; margin-top: 1.75rem; }
.editions__follow-btn { gap: 0.625rem; color: #fff; background: #000065; }
.editions__follow-btn:hover { color: #fff; background: #14148a; }
.editions__follow-icon { width: 1.5rem; height: 1.5rem; color: #1ed760; }
.isSpotifyPopup .fancybox__content { width: min(92vw, 50rem); padding: 0; background: transparent; }
.spotify-popup iframe { display: block; border: 0; border-radius: 0.75rem; }
/* a video episode: 16:9, as large as the screen allows */
.isSpotifyPopup .fancybox__content:has(.spotify-popup.--video) { width: min(92vw, calc(82vh * 16 / 9), 70rem); }
.spotify-popup.--video iframe { height: auto; aspect-ratio: 16 / 9; }

/* ---------- On-Demand: chips under the video, video as wide as the audio ---------- */
.live-hero .live-info__meta { margin-top: 1rem; }
/* the Spotify player takes the video's width (event.js --hero-w) */
.podcast__spotify { max-width: none; width: min(100%, var(--hero-w, 100%)); }
/* colour separation: the audio part on the brand's light blue */
.od-audio { margin-top: 3rem; padding-bottom: 3rem; background: rgba(177, 208, 229, 0.45); }
@media (orientation: landscape), (min-width: 769px) and (orientation: portrait) {
  .live-hero .live-info__meta { margin-top: 1.25rem; }
  .od-audio { margin-top: 4rem; padding: 4rem 3.75rem 4.5rem; }
  .od-audio .section-head__text { font-size: 1.25rem; }
}

/* ---------- during the live broadcast ---------- */
/* no audio while live */
html.isOnAir .od-audio { display: none !important; }
/* the title + subtitle as on the recording (the client, 26.10 — no longer
   shrunk while live); the chips about the recording are hidden (data-onair) */

/* ---------- quotes: smaller, the whole card fits a phone screen ---------- */
.insight__card { padding: 1.75rem 1.25rem; }
.insight__icon { width: 2rem; height: 2rem; }
.insight__text { font-size: 1.125rem; line-height: 1.3; }
.insight__author { flex-direction: row; justify-content: center; gap: 0.75rem; margin-top: 1.25rem; }
.insight__meta { text-align: start; }
.insight__name { font-size: 1rem; line-height: 1.3; }
.insight__role { font-size: 0.875rem; line-height: 1.35; }
@media (orientation: landscape), (min-width: 769px) and (orientation: portrait) {
  .insight__card { padding: 2.5rem 3rem; }
  .insight__icon { width: 2.5rem; height: 2.5rem; }
  .insight__text { font-size: 1.875rem; line-height: 1.2; }
  .insight__author { gap: 1.25rem; margin-top: 1.75rem; }
  .insight__name { font-size: 1.25rem; }
  .insight__role { font-size: 1.0625rem; }
}

/* ================= phones ================= */
@media (max-width: 768px) and (orientation: portrait) {
  /* bigger logo */
  .header .logo { width: 6.5rem; }
  /* menu row: smaller, so all four fit without being cut on the right */
  .main-menu { padding: 0.5rem; }
  .main-menu a { height: 2.25rem; padding-inline: 0.5rem; font-size: 0.8125rem; }
  .main-menu a.main-menu__cta { padding-inline: 0.75rem; }
  /* Registration: the menu row only once the visitor reaches the form
     (event.js html.isMenuLate); the hero sits under the logo row alone */
  html.isMenuLate .header .main-menu { display: none; }
  html.isMenuLate .header-logo { border-bottom: 0; }
  html[data-mode="registration"] .reg-hero.--compensate-for-header { padding-top: var(--header-logo-h, 4rem); }

  /* form: email and phone (with its country code) each on a full row */
  .reg-card .form__item:has(input[type="email"]),
  .reg-card .form__item:has(.phone-field) { grid-column: 1 / -1; }

  /* Scientific Program: every topic open (no Read more), tighter cards */
  .program .program__list:not(.isOpen) .program__item:nth-child(n + 5) { display: flex; }
  .program__more { display: none !important; }
  .program__list { gap: 0.5rem; }
  .program__item { gap: 0.75rem; padding: 0.625rem 0.875rem; }
  .program__item::before { width: 2rem; height: 2rem; font-size: 0.8125rem; }
  .program__title { font-size: 0.9375rem; }
  /* less gap between the topics and the speakers */
  .speakers { padding-top: 3.5rem; }

  /* thank-you popup: less white on top, room before the button */
  .thanks-popup__media { width: 9rem; height: 6.5rem; margin-top: 2rem; }
  .thanks-popup .thanks-popup__btn { margin-top: 1.75rem; }
}

/* footer cookie button (OneTrust) in the site navy — client 29.10.
   OneTrust injects its own green #id.class rules after our CSS, so the extra .footer wins. */
.footer #ot-sdk-btn.ot-sdk-show-settings,
.footer #ot-sdk-btn.optanon-show-settings {
  margin-top: 1rem;
  padding: 0.75rem 1.875rem;
  border: 0;
  border-radius: 100px;
  color: #fff;
  background-color: #000065;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.02em;
  transition: background-color 0.2s;
}
.footer #ot-sdk-btn.ot-sdk-show-settings:hover,
.footer #ot-sdk-btn.ot-sdk-show-settings:focus-visible,
.footer #ot-sdk-btn.optanon-show-settings:hover { color: #fff; background-color: #14148a; }
.footer #ot-sdk-btn.ot-sdk-show-settings:active,
.footer #ot-sdk-btn.optanon-show-settings:active { color: #fff; background-color: #14148a; border: 0; }
