/* GA 2026 — Homepage During Event (Live) — Figma Homepage-1440-During Event */

/*
 * Sticky chrome: #top 66 + #nav 82 = 148. Global .body-stick only pads 82px,
 * so live alert slips under nav and the page jumps ~66px. Fix on During only.
 */
html.during-event-ready {
  scroll-padding-top: 160px;
}

@media (min-width: 768px) {
  html.during-event-ready #main.body-stick {
    padding-top: 148px !important;
  }
}

/* Figma Homepage-768: Top bar + nav Frame 327 → 56px side inset */
@media (min-width: 768px) and (max-width: 1199px) {
  html.during-event-ready #top > .container,
  html.during-event-ready #nav > .container,
  body.during-event-page #top > .container,
  body.during-event-page #nav > .container {
    width: 100%;
    max-width: 100%;
    padding-left: 56px;
    padding-right: 56px;
  }
}

/* Figma top bar brand ~21px / ~220px wide — logo.svg was max 300px */
html.during-event-ready #top .logo img {
  max-width: 220px;
  height: auto;
}

/*
 * Figma Homepage-375 Top bar: #340d24, brand left + hamburger right,
 * Outfit 18/600 #f0f0f0, pad 20×28, height 68. (Site default is light-blue + burger left.)
 */
@media (max-width: 767px) {
  html.during-event-ready {
    scroll-padding-top: 80px;
  }

  /*
   * Mobile #top is always position:fixed (theme). Default #main pad is 56px for
   * the old 56px bar — with our 68px Figma bar that eats ~12px of Live alert.
   * Always clear the full 68px, not only when .body-stick is on.
   */
  html.during-event-ready #main,
  html.during-event-ready #main.body-stick,
  html.during-event-ready body.body-stick #main,
  body.during-event-page #main,
  body.during-event-page #main.body-stick {
    padding-top: 68px !important;
  }

  html.during-event-ready body.body-stick,
  body.during-event-page.body-stick {
    padding-top: 0 !important;
  }

  html.during-event-ready #top,
  html.during-event-ready header#top,
  body.during-event-page #top,
  body.during-event-page header#top {
    background-color: #340d24 !important;
    height: 68px !important;
    min-height: 68px !important;
    padding: 0 !important;
    box-sizing: border-box;
  }

  html.during-event-ready #top > .container,
  body.during-event-page #top > .container {
    width: 100%;
    max-width: 100%;
    padding-left: 0;
    padding-right: 0;
    margin: 0;
  }

  html.during-event-ready #top > .container > .row,
  body.during-event-page #top > .container > .row {
    margin: 0;
    display: block;
  }

  html.during-event-ready #top .visible-xs,
  body.during-event-page #top .visible-xs {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    width: 100%;
    box-sizing: border-box;
    padding: 20px 28px;
    float: none;
  }

  /* Brand left — Figma wordmark without year */
  html.during-event-ready #top .mobile-logotext,
  body.during-event-page #top .mobile-logotext {
    order: 1;
    margin: 0;
    flex: 1 1 auto;
    min-width: 0;
    font-family: "Outfit", "proxima-nova", sans-serif;
    font-size: 0; /* hide “2026” from siteName; ::before is Figma label */
    font-weight: 600;
    line-height: normal;
    color: #f0f0f0;
    white-space: nowrap;
  }

  html.during-event-ready #top .mobile-logotext::before,
  body.during-event-page #top .mobile-logotext::before {
    content: "The General Assembly";
    font-size: 18px;
    font-weight: 600;
    color: #f0f0f0;
  }

  /* Hamburger right — white bars, 28×28 hit area (Figma Menu / Hamburger) */
  html.during-event-ready #top .hamburger,
  body.during-event-page #top .hamburger {
    order: 2;
    flex: 0 0 28px;
    width: 28px;
    height: 28px;
    margin: 0;
    vertical-align: middle;
  }

  html.during-event-ready #top .hamburger-global,
  body.during-event-page #top .hamburger-global {
    left: 3px;
    right: 3px;
    width: auto;
    border: 0;
    border-radius: 2px;
    height: 2.5px;
    background: #fff;
    box-sizing: border-box;
  }

  html.during-event-ready #top .hamburger-top,
  body.during-event-page #top .hamburger-top {
    top: 6px;
  }

  html.during-event-ready #top .hamburger-middle,
  body.during-event-page #top .hamburger-middle {
    top: 13px;
  }

  html.during-event-ready #top .hamburger-bottom,
  body.during-event-page #top .hamburger-bottom {
    top: 20px;
  }

  html.during-event-ready #top .hamburger-top-click,
  body.during-event-page #top .hamburger-top-click {
    top: 13px;
  }

  html.during-event-ready #top .hamburger-bottom-click,
  body.during-event-page #top .hamburger-bottom-click {
    top: 13px;
  }
}

.during-home {
  --during-brown: #340d24;
  --during-dark-brown: #270017;
  --during-hero: #350e2d;
  --during-alert: #22071a;
  --during-navy: #27277c;
  --during-blue: #1c88ed;
  --during-mint: #70ddb4;
  --during-coral: #ec7875;
  --during-pink: #e84e75;
  --during-light: #f5f5f5;
  --during-sky: #d2e9ff;
  --during-ink: #2a2a2a;
  --during-live: #e5243b;
  --during-content: 986px;
  font-family: "Outfit", "proxima-nova", sans-serif;
  color: var(--during-ink);
  background: var(--during-light);
}

.during-home .during-inner {
  width: 100%;
  max-width: var(--during-content);
  margin: 0 auto;
  padding: 0 20px;
}

/* Live alert */
.during-live-alert {
  background: var(--during-alert);
  padding: 14px 20px;
  display: flex;
  justify-content: center;
}

.during-live-alert__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 14px;
}

.during-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 3px 12px 3px 10px;
  border-radius: 40px;
  border: 1px solid rgba(255, 59, 74, 0.6);
  background: rgba(255, 59, 74, 0.14);
  color: var(--during-light);
  font-weight: 600;
  font-size: 14px;
  white-space: nowrap;
}

.during-pill--lg {
  gap: 10px;
  padding: 8px 18px 8px 16px;
  font-size: 16px;
}

.during-pill__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--during-live);
  box-shadow: 0 0 0 2px rgba(229, 36, 59, 0.35);
  flex-shrink: 0;
}

/* Figma Replay status pill — Next live */
.during-pill--next {
  border-color: rgba(245, 245, 245, 0.35);
  background: rgba(245, 245, 245, 0.08);
  color: var(--during-light);
}

.during-pill__dot--next {
  width: 8px;
  height: 8px;
  background: var(--during-blue);
  box-shadow: none;
}

.during-live-alert__text {
  margin: 0;
  color: rgba(245, 245, 245, 0.85);
  font-size: 16px;
}

.during-live-alert__link {
  color: var(--during-mint);
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
}

.during-live-alert__link:hover,
.during-live-alert__link:focus {
  color: #9aecc9;
  text-decoration: none;
}

/*
 * Figma Homepage-1440-During Event (Live):
 * Hero Banner 1440×543 (Shards PNG from Figma) +
 * Livestream Star 1440×978 (side points PNG from Figma)
 * share #350e2d and together form the large star.
 */
.during-stage {
  position: relative;
  overflow: hidden;
  background-color: var(--during-hero);
}

/*
 * Full stage star/gradient must cover hero + livestream.
 * Width-only scaling left a flat #350e2d band under the player on tablet/mobile.
 */
.during-stage__star {
  position: absolute !important;
  top: 0;
  left: 0;
  z-index: 0;
  width: 100% !important;
  max-width: none !important;
  height: 100% !important;
  object-fit: cover;
  object-position: top center;
  display: block;
  pointer-events: none;
  float: none !important;
}

/* Tablet star only via ≤1199 media query — hide by default */
.during-stage__star--tablet {
  display: none !important;
}

/* Mobile Figma Homepage-375: dedicated shards + livestream side points */
.during-hero__shards--mobile,
.during-livestream__points--mobile {
  display: none;
}

.during-livestream__falloff {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    rgba(53, 14, 45, 0) 0%,
    rgba(53, 14, 45, 0) 70%,
    rgba(42, 10, 35, 0.6) 100%
  );
}

/* Hero — lock to Figma 1440×543 so top of stage star maps 1:1 */
.during-hero {
  position: relative;
  z-index: 1;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 1440 / 543;
  padding: clamp(12px, 2.08vw, 30px) 20px clamp(16px, 3.3vw, 48px);
  box-sizing: border-box;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  background: transparent;
}

.during-hero > *:not(.during-hero__shards--mobile) {
  position: relative;
  z-index: 1;
}

.during-hero img,
.during-livestream img,
.during-stage__art img {
  float: none !important;
  max-width: 100%;
}

.during-hero__jfna {
  position: relative;
  z-index: 1;
  height: clamp(32px, 3.47vw, 50px);
  width: auto !important;
  max-width: 167px;
  margin: 0 auto clamp(24px, 5.9vw, 85px) !important;
  display: block;
  align-self: center;
  float: none !important;
}

.during-hero__ga {
  position: relative;
  z-index: 1;
  width: min(913px, 100%);
  height: auto;
  margin: 0 auto;
  display: block;
}

.during-hero__status {
  position: relative;
  z-index: 1;
  margin: clamp(12px, 1.67vw, 24px) 0 0;
  color: var(--during-blue);
  font-size: clamp(22px, 2.43vw, 35px);
  font-weight: 600;
  line-height: 1.2;
}

/* Livestream — star continuation lives on .during-stage background */
.during-livestream {
  position: relative;
  z-index: 1;
  background: transparent;
  padding: 12px 20px 120px;
  text-align: center;
  overflow: hidden;
  scroll-margin-top: 160px;
}

.during-livestream__title,
.during-livestream__player,
.during-livestream__meta,
.during-livestream__replay-status {
  position: relative;
  z-index: 1;
}

/* Figma Replay — pill centered above “Watch The General Assembly” */
.during-livestream__replay-status {
  display: flex;
  justify-content: center;
  margin: 0 0 24px;
}

.during-livestream__title {
  margin: 0 0 40px;
  color: var(--during-light);
  font-size: clamp(36px, 5vw, 65px);
  font-weight: 600;
  line-height: 1.1;
}

.during-livestream__player {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--during-content);
  margin: 0 auto;
  border-radius: 12px;
  overflow: hidden;
  background: #111;
  aspect-ratio: 16 / 9;
}

.during-livestream__embed {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.during-livestream__player iframe,
.during-livestream__embed iframe,
.during-livestream__player video {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Hide legacy video-block overlays if an old embed wrapper is ever reused */
.during-livestream__player .video-overlay-title,
.during-livestream__player .play-button,
.during-livestream__player .video-thumbnail {
  display: none !important;
}

.during-livestream__poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.during-livestream__player--replay .during-livestream__poster {
  /* dim like Figma Replay facade */
  filter: brightness(0.85);
}

.during-livestream__facade::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.25), rgba(0, 0, 0, 0.25)),
    linear-gradient(180deg, rgba(0, 0, 0, 0.65) 0%, rgba(0, 0, 0, 0.1) 30%, rgba(0, 0, 0, 0.1) 75%, rgba(0, 0, 0, 0.6) 100%);
  pointer-events: none;
}

.during-livestream__badge {
  position: absolute;
  right: 18px;
  bottom: 18px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 4px;
  background: var(--during-live);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
}

.during-livestream__badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #fff;
}

/* Figma Replay Option 1 — play + “Watch the replay” caption on the video */
.during-livestream__facade {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 18px 20px;
  border: 0;
  background: transparent;
  cursor: pointer;
  color: inherit;
  font: inherit;
}

.during-livestream__facade:disabled {
  cursor: default;
}

.during-livestream__facade .during-livestream__poster {
  z-index: 0;
}

.during-livestream__facade-center {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.during-livestream__facade-play {
  width: 68px;
  height: 48px;
  display: block;
}

.during-livestream__facade-caption {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  border-radius: 40px;
  background: rgba(15, 15, 15, 0.7);
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  white-space: nowrap;
}

.during-livestream__player.is-playing .during-livestream__facade {
  display: none;
}

.during-livestream__player.is-playing .during-livestream__embed[hidden] {
  display: block !important;
}

.during-livestream__meta-actions {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  flex-shrink: 0;
}

.during-livestream__clips {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  padding: 8px 15px;
  border-radius: 30px;
  background: var(--during-blue);
  color: #fff;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  text-decoration: none;
  white-space: nowrap;
}

.during-livestream__clips:hover,
.during-livestream__clips:focus {
  color: #fff;
  text-decoration: none;
  filter: brightness(1.06);
}

.during-livestream__meta {
  position: relative;
  z-index: 1;
  max-width: var(--during-content);
  margin: 24px auto 0;
  display: flex;
  flex-wrap: nowrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  text-align: left;
}

.during-livestream__eyebrow {
  margin: 0 0 6px;
  color: var(--during-mint);
  font-size: 16px;
  font-weight: 600;
}

.during-livestream__eyebrow--replay {
  color: var(--during-blue);
}

.during-livestream__meta-copy {
  flex: 1 1 auto;
  min-width: 0;
}

.during-livestream__plenary {
  margin: 0;
  color: var(--during-light);
  font-size: clamp(20px, 2.2vw, 26px);
  font-weight: 600;
  line-height: 1.3;
}

.during-livestream__when {
  margin: 0;
  color: rgba(245, 245, 245, 0.85);
  font-size: 18px;
  font-weight: 300;
}

.during-livestream__plenary-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}

.during-livestream__divider {
  width: 1px;
  height: 22px;
  background: rgba(245, 245, 245, 0.4);
}

/* Where the Future */
.during-future {
  position: relative;
  padding: 50px 20px 0;
  background: linear-gradient(90deg, #d2e9ff 0%, #f5f5f5 55%);
  overflow: hidden;
}

.during-future__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: left center;
  pointer-events: none;
  opacity: 0.9;
}

.during-future__row {
  position: relative;
  z-index: 1;
  max-width: 1213px;
  margin: 0 auto;
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  gap: 30px;
}

/* Figma: asset ~584px left, copy ~599px right */
.during-future__photo {
  flex: 0 0 auto;
  width: min(584px, 48%);
  max-width: 100%;
  height: auto;
  display: block;
  float: none !important;
}

.during-future__copy {
  flex: 1 1 auto;
  min-width: 0;
  max-width: 600px;
  padding-bottom: 40px;
  text-align: left;
}

.during-future__title {
  margin: 0 0 30px;
  font-size: clamp(36px, 5vw, 65px);
  font-weight: 600;
  line-height: 1.1;
  color: var(--during-pink);
}

.during-future__title span {
  color: var(--during-blue);
}

/* Figma P Semi Bold: Outfit 18 / 600 / 150% / #2A2A2A */
.during-future__body {
  margin: 0;
  font-family: "Outfit", "proxima-nova", sans-serif;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  color: var(--during-ink);
}

.during-future__body p,
.during-home .during-future__body p {
  margin: 0;
  font-family: inherit;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  color: var(--during-ink);
}

/* Topic areas — Figma 1440: py 80 */
.during-topics {
  background: var(--during-brown);
  padding: 80px 20px;
  text-align: center;
}

.during-topics__title {
  margin: 0 0 16px;
  color: var(--during-coral);
  font-size: clamp(36px, 5vw, 65px);
  font-weight: 600;
  line-height: 1.1;
}

.during-topics__sub {
  margin: 0 auto 30px;
  max-width: 900px;
  color: var(--during-light);
  font-size: 22px;
  font-weight: 600;
  line-height: 1.3;
}

.during-topics__grid {
  max-width: var(--during-content);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.during-topic-card {
  position: relative;
  background: var(--during-dark-brown);
  border-radius: 25px;
  padding: 30px;
  min-height: 320px;
  box-shadow: inset 0 4px 4px rgba(0, 0, 0, 0.25);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.during-topic-card__icon {
  width: 56px;
  height: 50px;
  object-fit: contain;
  margin-bottom: 8px;
}

.during-topic-card__title {
  margin: 0;
  color: var(--during-mint);
  font-size: 26px;
  font-weight: 600;
  line-height: 1.3;
}

.during-topic-card__text {
  margin: 0;
  color: var(--during-light);
  font-size: 18px;
  font-weight: 300;
  line-height: 1.5;
}

.during-topic-card__text p {
  margin: 0;
}

/* Social — Figma 1440: py 80 */
.during-social {
  background: var(--during-light);
  padding: 80px 20px;
  text-align: center;
}

.during-social__title {
  margin: 0 0 16px;
  color: var(--during-blue);
  font-size: clamp(36px, 5vw, 65px);
  font-weight: 600;
  line-height: 1.1;
}

.during-social__sub {
  margin: 0 auto 24px;
  max-width: 760px;
  color: var(--during-ink);
  font-size: 22px;
  font-weight: 600;
  line-height: 1.3;
}

.during-social__follow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 40px;
}

.during-social__icons {
  display: inline-flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.during-social__follow-label {
  margin: 0;
  color: var(--during-brown);
  font-size: 18px;
  font-weight: 600;
}

/* Figma: circle size-[44px] rounded-[22px] bg-white border 1.5px rgba(52,13,36,0.25); glyph 20px */
.during-social__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 22px;
  background: #fff;
  border: 1.5px solid rgba(52, 13, 36, 0.25);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.during-social__icon img,
.during-social__icon svg {
  width: 20px;
  height: 20px;
  display: block;
}

.during-social__icon:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(16, 10, 74, 0.12);
}

.during-social__embed {
  max-width: var(--during-content);
  margin: 0 auto;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  padding: 0;
  text-align: center;
  overflow: visible;
}

.during-social__placeholder {
  display: block;
  width: 100%;
  max-width: 986px;
  height: auto;
  margin: 0 auto;
  border-radius: 12px;
}

.during-social__embed-note {
  margin: 12px 0 0;
  color: #888;
  font-size: 13px;
  line-height: 1.4;
}

/* Utility: Sub title color class "black" */
.black {
  color: #2a2a2a !important;
}

/* Video Image adapted as Follow Along Social (CMS) */
.section.video-image--follow.bg-white,
.section.video-image--follow.bg- {
  background: #f5f5f5;
}

/* Figma: subtitle W Fixed 760 */
.section.video-image--follow .video-image__subtitle {
  max-width: 760px;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  font-size: 22px;
  font-weight: 600;
  line-height: 1.3;
}

.section.video-image--follow .during-social__follow {
  margin-top: 40px;
  margin-bottom: 40px;
}

.section.video-image--follow .during-social__embed {
  margin-top: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  padding: 0;
}

.section.video-image--follow .during-social__embed iframe,
.section.video-image--follow .during-social__embed > * {
  max-width: 100%;
}

.section.video-image--follow .during-social__icon img {
  width: 20px;
  height: 20px;
}

/* Advocacy styles → shared /assets/css/ga-advocacy.css (linked from home + post-conference) */

/* Chairs — Figma 1440: py 80, content 986px */
.during-chairs {
  background: var(--during-light);
  padding: 80px 20px;
  text-align: center;
}

.during-chairs__inner {
  max-width: 986px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 50px;
}

.during-chairs__title {
  margin: 0;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  font-weight: 600;
}

.during-chairs__title-line {
  display: block;
  width: 100%;
  color: var(--during-navy);
  font-size: clamp(32px, 3.5vw, 50px);
  line-height: 1;
}

.during-chairs__title-accent {
  display: block;
  width: 100%;
  color: var(--during-blue);
  font-size: clamp(40px, 4.5vw, 65px);
  line-height: 1.1;
}

.during-chairs__body {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.during-chairs__photo {
  width: min(540px, 100%);
  height: auto;
  aspect-ratio: 540 / 432;
  object-fit: cover;
  border-radius: 0;
  margin: 0;
  display: block;
}

.during-chairs__meta {
  width: 100%;
}

.during-chairs__names {
  margin: 0;
  color: var(--during-navy);
  font-size: clamp(20px, 1.8vw, 26px);
  font-weight: 600;
  line-height: 1.3;
}

.during-chairs__role,
.during-chairs__origin {
  margin: 0;
  color: var(--during-ink);
  font-size: 16px;
  font-weight: 300;
  line-height: 1.5;
}

@media (max-width: 1199px) {
  /*
   * Figma Homepage-768: every section uses 56px side padding
   * (same pattern as Homepage-375 → 28px).
   */
  .during-home {
    --during-pad-x: 56px;
  }

  .during-live-alert,
  .during-hero,
  .during-livestream,
  .during-future,
  .during-topics,
  .during-social,
  .during-chairs,
  .during-home .during-advocacy,
  .during-home > section.section {
    padding-left: var(--during-pad-x) !important;
    padding-right: var(--during-pad-x) !important;
  }

  .during-home .during-inner {
    padding-left: 0;
    padding-right: 0;
  }

  /* Avoid double inset: section already has 56px */
  .during-home .container {
    padding-left: 0;
    padding-right: 0;
    width: 100%;
    max-width: 100%;
  }

  /*
   * Figma Homepage-768: dedicated stage star so side points stay in frame.
   * Desktop 1440 raster + object-fit:cover crops those points at tablet widths.
   */
  .during-stage__star--desktop {
    display: none !important;
  }

  .during-stage__star--tablet {
    display: block !important;
    width: 100% !important;
    max-width: none !important;
    /* Keep Figma-768 aspect so side points stay in frame (cover cropped them). */
    height: auto !important;
    object-fit: unset;
    object-position: top center;
  }

  /* Let hero grow a bit below 768; exact Figma lock is in the 768–1199 query */
  .during-hero {
    aspect-ratio: auto;
    overflow: visible;
    padding-top: 30px;
    padding-bottom: 36px;
  }

  .during-hero__jfna {
    height: 50px;
    max-width: 167px;
    margin-bottom: 32px !important;
  }

  .during-hero__status {
    margin-top: 24px;
    padding-bottom: 0;
    font-size: 28px;
    line-height: 1.25;
  }

  .during-livestream {
    padding-top: 72px;
    padding-bottom: 80px;
  }

  .during-livestream__title {
    margin: 0 0 32px;
    font-size: 35px;
    line-height: 1.1;
  }

  .during-livestream__player {
    max-width: 100%;
  }

  /* Figma Homepage-768 vertical paddings (sides via --during-pad-x) */
  .during-topics {
    padding-top: 50px;
    padding-bottom: 30px;
  }

  .during-social,
  .during-home .section.video-image--follow {
    padding-top: 52px;
    padding-bottom: 52px;
  }

  .during-chairs {
    padding-top: 52px;
    padding-bottom: 52px;
  }

  .during-chairs__inner {
    gap: 32px;
  }

  /* Figma 768 Social section gap heading→icons = 32 */
  .during-social__follow,
  .section.video-image--follow .during-social__follow {
    margin-top: 32px;
    margin-bottom: 32px;
  }

  .during-topics__grid {
    grid-template-columns: 1fr;
    max-width: 420px;
  }

  .during-future__row {
    flex-direction: column;
    flex-wrap: wrap;
    align-items: center;
  }

  .during-future__photo {
    width: min(584px, 100%);
    order: 0;
  }

  .during-future__copy {
    max-width: 600px;
    width: 100%;
    text-align: left;
    order: 1;
  }

  .during-livestream__meta {
    flex-direction: column;
    flex-wrap: wrap;
    align-items: center;
    text-align: center;
  }

  .during-livestream__meta-copy {
    width: 100%;
    flex: none;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .during-livestream__meta-actions {
    flex-wrap: wrap;
    justify-content: center;
  }

  .during-livestream__plenary-row {
    justify-content: center;
  }

  /*
   * Tablet 769–1199: Bootstrap md columns go full-width below 992, so copy
   * sat on top of the people baked into desktop Section-1.png. Drop that
   * composite bg, use the gradient, and surface the separate people image
   * (same stacked layout as ≤768).
   */
  .during-home .section.video-image.bg-gradient {
    background-image: none !important;
    background-color: #f5f5f5;
    background: linear-gradient(90deg, #d2e9ff 0%, #f5f5f5 55%) !important;
    min-height: 0 !important;
    display: block;
    align-items: stretch;
    justify-content: flex-start;
  }

  .during-home .section.video-image.bg-gradient > .container > .row {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    margin-left: 0;
    margin-right: 0;
  }

  .during-home .section.video-image.bg-gradient > .container > .row > [class*="col-"] {
    width: 100%;
    max-width: 100%;
    float: none;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  .during-home .section.video-image.bg-gradient [class*="col-sm-offset"],
  .during-home .section.video-image.bg-gradient [class*="col-md-offset"],
  .during-home .section.video-image.bg-gradient [class*="col-xs-offset"] {
    margin-left: 0 !important;
    width: 100% !important;
    max-width: 100%;
    float: none;
  }

  .during-home .section.video-image.bg-gradient img.graphic,
  .during-home .section.video-image.bg-gradient img.show-to-768 {
    display: block !important;
    margin: 0 auto 28px;
    max-width: min(100%, 520px);
    height: auto;
  }
}

/*
 * Figma Homepage-768 hero/livestream geometry — MUST come after the
 * general ≤1199 rules so aspect-ratio lock is not overridden.
 */
@media (min-width: 768px) and (max-width: 1199px) {
  .during-hero {
    aspect-ratio: 768 / 386.7;
    overflow: hidden;
    padding-top: 30px;
    padding-bottom: 0;
    justify-content: flex-start;
  }

  .during-hero__ga {
    width: 100%;
    max-width: 656px;
  }

  .during-hero__status {
    white-space: nowrap;
  }

  .during-livestream__title {
    white-space: nowrap;
  }
}

/*
 * Clip horizontal bleed on the During content only.
 * Do NOT set overflow on html/body/#outer-wrap — that turns #outer-wrap into
 * the scrollport (height ≈ viewport) and window.scrollTo / Watch below die.
 */
html.during-event-ready .during-home {
  overflow-x: clip;
  max-width: 100%;
}

@media (max-width: 575px) {
  /*
   * Figma Homepage-375-During Event: every section uses 28px side padding
   * (Live alert, Hero, Livestream, Future, Topics, Social, Advocacy, Chairs).
   */
  .during-home {
    --during-pad-x: 28px;
  }

  .during-live-alert,
  .during-hero,
  .during-livestream,
  .during-future,
  .during-topics,
  .during-social,
  .during-chairs,
  .during-home .during-advocacy,
  .during-home > section.section {
    padding-left: var(--during-pad-x) !important;
    padding-right: var(--during-pad-x) !important;
  }

  .during-live-alert {
    padding-top: 14px;
    padding-bottom: 14px;
  }

  .during-home .during-inner {
    padding-left: 0;
    padding-right: 0;
  }

  /* Avoid double inset: section already has 28px */
  .during-home .container {
    padding-left: 0;
    padding-right: 0;
    width: 100%;
    max-width: 100%;
  }

  .during-live-alert__text {
    text-align: center;
    width: 100%;
  }

  /* Swap desktop/tablet stage rasters for Figma-375 hero shards + livestream tips */
  .during-stage__star--desktop,
  .during-stage__star--tablet {
    display: none !important;
  }

  .during-hero__shards--mobile {
    display: block !important;
    position: absolute !important;
    inset: 0;
    z-index: 0;
    width: 100% !important;
    max-width: none !important;
    height: 100% !important;
    object-fit: fill;
    pointer-events: none;
    float: none !important;
  }

  .during-livestream__points--mobile {
    display: block !important;
    position: absolute !important;
    top: 0;
    left: 0;
    z-index: 0;
    width: 100% !important;
    max-width: none !important;
    height: auto !important;
    aspect-ratio: 375 / 565;
    object-fit: fill;
    pointer-events: none;
    float: none !important;
  }

  .during-hero {
    /* Figma Homepage-375 Hero Banner-During */
    aspect-ratio: 375 / 273;
    overflow: hidden;
    padding: 30px 28px 55px;
  }

  .during-hero__jfna {
    height: 40px;
    max-width: 134px;
    margin-bottom: 24px !important;
  }

  .during-hero__status {
    margin-top: 24px;
    font-size: 24px;
  }

  .during-livestream {
    /* Figma Livestream Section: title at y=55 */
    padding-top: 55px;
    padding-bottom: 60px;
  }

  /* Figma Homepage-375 vertical paddings (sides already 28 via --during-pad-x) */
  .during-topics {
    padding-top: 50px;
    padding-bottom: 30px;
  }

  .during-social,
  .during-home .section.video-image--follow {
    padding-top: 40px;
    padding-bottom: 40px;
  }

  .during-chairs {
    padding-top: 40px;
    padding-bottom: 40px;
  }

  .during-chairs__inner {
    gap: 24px;
  }

  /* Figma 375 Social: gap 20 between subtitle and icon row */
  .during-social__follow,
  .section.video-image--follow .during-social__follow {
    margin-top: 20px;
    margin-bottom: 20px;
  }

  .during-livestream__title {
    font-size: 32px;
    line-height: 1.1;
    text-align: center;
    color: #f5f5f5;
    /* Figma Title box 319×70 — keep margin under title before player */
    margin-bottom: 24px;
  }

  .during-livestream__meta {
    align-items: center;
    text-align: center;
    width: 100%;
    max-width: 100%;
  }

  /* Long CMS “next live” / alert copy must not blow past 375 viewport */
  .during-livestream__meta .during-pill {
    max-width: 100%;
    box-sizing: border-box;
    white-space: normal;
    text-align: center;
    justify-content: center;
    line-height: 1.3;
  }

  /* Divider looks odd when title/date wrap onto separate lines */
  .during-livestream__divider {
    display: none;
  }

  .during-livestream__plenary-row {
    flex-direction: column;
    gap: 6px;
  }

  .during-social__follow {
    flex-direction: row;
    justify-content: center;
    gap: 10px;
  }

  .during-social__icons {
    flex-wrap: wrap;
    justify-content: center;
    max-width: 100%;
    gap: 10px;
  }

  /* Ian: center or make smaller on ~414 */
  .during-social__icon {
    width: 40px;
    height: 40px;
  }

  .during-social__embed {
    padding: 0;
  }
}
