/* Common header. Layout and sizes follow the site header of the live landing page at every width: logo left, the middle buttons centred in the header, menu button at the right end; 69px high below 1024px, 110px from 1024px up. */

/* Pinned to the top of the screen while scrolling (D15; the live header scrolls away). Being fixed it forms its own stacking context inside #content (the theme's z-index 10 context), so the menu overlay, panel and button are ordered at this level: 100000 keeps them above the page sections, as before, while the estimator overlay (2147483647) and sticky CTA (2147483646) stay above it. */
body.single-sa28_programs:not(#_):not(#_) .programs-header {
  box-sizing: border-box;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100000;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  grid-template-rows: 69px;
  align-items: center;
  gap: 16px;
  min-height: 0;
  margin: 0;
  padding: 0 clamp(13px, 4vw, 24px);
  background: #FFFFFF;
  color: #111111;
  font: 400 16px/1.4 "Inter", sans-serif;
  transition: box-shadow 0.2s ease;
}

@media (min-width: 1024px) {
  body.single-sa28_programs:not(#_):not(#_) .programs-header {
    grid-template-rows: 110px;
    padding: 0 24px;
  }
}

/* Once the page has scrolled, a light shadow along the bottom edge shows the page passing under the header (D15). programs-chrome.js sets the class while scrollY is above 0; at the top there is none, so the first screen is unchanged. */
body.single-sa28_programs:not(#_):not(#_) .programs-header.programs-header--scrolled {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

/* The fixed header has left the flow, so #content keeps its height free at the top and the page starts where it did. The header stays the first child of #content, so the "header.programs-header + …" rules below still match. */
body.single-sa28_programs:not(#_):not(#_) #content:has(> header.programs-header) {
  padding-top: 69px;
}

/* Anchor jumps and scrollIntoView stop below the header. On html because the viewport is the scroller. */
html:not(#_):not(#_):has(> body.single-sa28_programs header.programs-header) {
  scroll-padding-top: 69px;
}

/* Logged in: right under the admin bar (32px high, 46px at 782px and below). */
body.admin-bar.single-sa28_programs:not(#_):not(#_) .programs-header {
  top: 32px;
}

html:not(#_):not(#_):has(> body.admin-bar.single-sa28_programs header.programs-header) {
  scroll-padding-top: 101px;
}

@media (min-width: 1024px) {
  body.single-sa28_programs:not(#_):not(#_) #content:has(> header.programs-header) {
    padding-top: 110px;
  }

  html:not(#_):not(#_):has(> body.single-sa28_programs header.programs-header) {
    scroll-padding-top: 110px;
  }

  html:not(#_):not(#_):has(> body.admin-bar.single-sa28_programs header.programs-header) {
    scroll-padding-top: 142px;
  }
}

@media (max-width: 782px) {
  body.admin-bar.single-sa28_programs:not(#_):not(#_) .programs-header {
    top: 46px;
  }

  html:not(#_):not(#_):has(> body.admin-bar.single-sa28_programs header.programs-header) {
    scroll-padding-top: 115px;
  }
}

/* At 600px and below WordPress lets the admin bar scroll away with the page (position absolute), so the header and the menu panel follow it up over the first 46px of scroll and then stay at the top, and anchor jumps keep only the header height. Browsers without scroll timelines keep both at 46px and the anchor space at 115px. */
@media (max-width: 600px) {
  @supports (animation-timeline: scroll()) {
    html:not(#_):not(#_):has(> body.admin-bar.single-sa28_programs header.programs-header) {
      scroll-padding-top: 69px;
    }

    body.admin-bar.single-sa28_programs:not(#_):not(#_) .programs-header,
    body.admin-bar.single-sa28_programs:not(#_):not(#_) .programs-header__panel {
      animation-name: programs-header-below-admin-bar;
      animation-duration: auto;
      animation-timing-function: linear;
      animation-fill-mode: both;
      animation-timeline: scroll(root block);
      animation-range: 0 46px;
    }
  }
}

@keyframes programs-header-below-admin-bar {
  from { top: 46px; }
  to { top: 0; }
}

/* Phones: the strip under the header row is part of the fixed header, so the page offset and the anchor space grow by its height. PHP sets the class by its line count (28px a line), so no script is needed; programs-chrome.js steps it down when the countdown line ends. */
@media (max-width: 767px) {
  body.programs-has-strip-1.single-sa28_programs:not(#_):not(#_) #content:has(> header.programs-header) {
    padding-top: 97px;
  }

  body.programs-has-strip-2.single-sa28_programs:not(#_):not(#_) #content:has(> header.programs-header) {
    padding-top: 125px;
  }

  html:not(#_):not(#_):has(> body.programs-has-strip-1.single-sa28_programs header.programs-header) {
    scroll-padding-top: 97px;
  }

  html:not(#_):not(#_):has(> body.programs-has-strip-2.single-sa28_programs header.programs-header) {
    scroll-padding-top: 125px;
  }

  html:not(#_):not(#_):has(> body.admin-bar.programs-has-strip-1.single-sa28_programs header.programs-header) {
    scroll-padding-top: 143px;
  }

  html:not(#_):not(#_):has(> body.admin-bar.programs-has-strip-2.single-sa28_programs header.programs-header) {
    scroll-padding-top: 171px;
  }
}

@media (max-width: 600px) {
  @supports (animation-timeline: scroll()) {
    html:not(#_):not(#_):has(> body.admin-bar.programs-has-strip-1.single-sa28_programs header.programs-header) {
      scroll-padding-top: 97px;
    }

    html:not(#_):not(#_):has(> body.admin-bar.programs-has-strip-2.single-sa28_programs header.programs-header) {
      scroll-padding-top: 125px;
    }
  }
}

body.single-sa28_programs:not(#_):not(#_) .programs-header :is(a, button):focus-visible {
  outline: 3px solid #5E30FF;
  outline-offset: 2px;
}

/* The estimator's own top spacing (the container padding, different at each width) made the space below the logo larger than above. Only when the estimator directly follows the common header; with the header switched off, or for an estimator further down the page, its own spacing stays. */
body.single-sa28_programs:not(#_):not(#_) header.programs-header + .sa28-est-config + .sa28-est .sa28-est-container { padding-top: 0; }

/* A Text row directly before the estimator: the title block of that row sits outside the estimator container, so the container's own top padding and min-height would only stack on the row's own space. The quiz card keeps its own top margin. */
body.single-sa28_programs:not(#_):not(#_):not(#_) .programs-text + .sa28-est-config + .sa28-est .sa28-est-container { padding-top: 0; min-height: 0; }

/* The space below the container used to be left by its min-height; it is set directly now (the header variant had a larger space because the top padding was 0). */
@media (min-width: 1201px) {
  body.single-sa28_programs:not(#_):not(#_):not(#_) .programs-text + .sa28-est-config + .sa28-est .sa28-est-container { padding-bottom: 137px; }
  body.single-sa28_programs:not(#_):not(#_):not(#_) header.programs-header + .programs-text + .sa28-est-config + .sa28-est .sa28-est-container { padding-bottom: 212px; }
}

@media (min-width: 768px) and (max-width: 1200px) {
  body.single-sa28_programs:not(#_):not(#_):not(#_) .programs-text + .sa28-est-config + .sa28-est .sa28-est-container { padding-bottom: 24px; }
}

@media (max-width: 767px) {
  body.single-sa28_programs:not(#_):not(#_):not(#_) .programs-text + .sa28-est-config + .sa28-est .sa28-est-container { padding-bottom: 146px; }
  body.single-sa28_programs:not(#_):not(#_):not(#_) header.programs-header + .programs-text + .sa28-est-config + .sa28-est .sa28-est-container { padding-bottom: 178px; }
}

/* Image Carousel directly after the estimator: the cards and the note line left the container, so the space that sat below them (min-height and bottom padding, 137px and more) must not stay under the quiz card. Four ids so this wins over the Text row variants above. */
body.single-sa28_programs:not(#_):not(#_):not(#_):not(#_) .sa28-est:has(+ .programs-image-carousel) .sa28-est-container { min-height: 0; padding-bottom: 0; }

/* The empty how-it-works strip is only a spacer at 768-1200px and would add 34px between the quiz card and the carousel. */
body.single-sa28_programs:not(#_):not(#_):not(#_):not(#_) .sa28-est:has(+ .programs-image-carousel) .sa28-est-how-it-works:empty { display: none; }

/* Menu button. It sits above the panel and the overlay and turns into the X while the panel is open, so it is the only close mark; the -13px right margin puts the bars on the header padding line, as on the live header. */
body.single-sa28_programs:not(#_):not(#_) .programs-header__hamburger {
  box-sizing: border-box;
  position: relative;
  z-index: 100002;
  grid-column: 3;
  grid-row: 1;
  justify-self: end;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  min-width: 0;
  min-height: 0;
  margin: 0 -13px 0 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: #5E30FF;
  line-height: 0;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}

body.single-sa28_programs:not(#_):not(#_) .programs-header__hamburger:is(:hover, :focus) {
  border: 0;
  background: transparent;
  box-shadow: none;
  color: #5E30FF;
}

body.single-sa28_programs:not(#_):not(#_) .programs-header__bars {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  width: 18px;
}

body.single-sa28_programs:not(#_):not(#_) .programs-header__bars span {
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
  transition: width 0.3s ease, transform 0.3s ease, opacity 0.3s ease;
}

body.single-sa28_programs:not(#_):not(#_) .programs-header__hamburger:is(:hover, :focus-visible) .programs-header__bars span:nth-child(2) {
  width: 12px;
}

/* Open: the bars turn into an X (the bars are 2px high with a 4px gap, so the outer two move 6px to the middle). */
body.single-sa28_programs:not(#_):not(#_) .programs-header__hamburger[aria-expanded="true"] .programs-header__bars span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

body.single-sa28_programs:not(#_):not(#_) .programs-header__hamburger[aria-expanded="true"] .programs-header__bars span:nth-child(2) {
  opacity: 0;
}

body.single-sa28_programs:not(#_):not(#_) .programs-header__hamburger[aria-expanded="true"] .programs-header__bars span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* Forced-colors mode replaces the bar background with the page colour, which would hide the bars. */
@media (forced-colors: active) {
  body.single-sa28_programs:not(#_):not(#_) .programs-header__bars span {
    forced-color-adjust: none;
    background: CanvasText;
  }
}

/* Slide-in panel and overlay. State comes from aria-expanded on the button, which is a sibling before both. */
body.single-sa28_programs:not(#_):not(#_) .programs-header__overlay {
  position: fixed;
  inset: 0;
  z-index: 100000;
  background: rgba(0, 0, 0, 0.45);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

body.single-sa28_programs:not(#_):not(#_) .programs-header__panel {
  box-sizing: border-box;
  position: fixed;
  top: 0;
  bottom: 0;
  right: 0;
  z-index: 100001;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: max-content;
  max-width: 100vw;
  margin: 0;
  /* The top 68px is the band the menu button (turned into the X) sits in; the top line starts below it. */
  padding: 68px 24px 24px;
  overflow-y: auto;
  outline: none;
  background: #FFFFFF;
  border-left: 1px solid #ECE3DD;
  box-shadow: -4px 0 24px rgba(0, 0, 0, 0.16);
  transform: translateX(100%);
  visibility: hidden;
  transition: transform 0.4s ease, visibility 0.4s ease;
}

body.admin-bar.single-sa28_programs:not(#_):not(#_) .programs-header__panel { top: 32px; }

@media (max-width: 782px) {
  body.admin-bar.single-sa28_programs:not(#_):not(#_) .programs-header__panel { top: 46px; }
}

body.single-sa28_programs:not(#_):not(#_) .programs-header__hamburger[aria-expanded="true"] ~ .programs-header__overlay {
  opacity: 1;
  visibility: visible;
}

body.single-sa28_programs:not(#_):not(#_) .programs-header__hamburger[aria-expanded="true"] ~ .programs-header__panel {
  transform: translateX(0);
  visibility: visible;
  /* No visibility delay on open, so the panel can take focus on the same tick. */
  transition: transform 0.4s ease, visibility 0s;
}

/* The open-state rule above outranks the reduced-motion block further down, so it needs its own override. */
@media (prefers-reduced-motion: reduce) {
  body.single-sa28_programs:not(#_):not(#_) .programs-header__hamburger[aria-expanded="true"] ~ .programs-header__panel {
    transition-duration: 0s;
  }
}

/* Set by programs-chrome.js for the first 400ms after opening: the panel ignores the pointer while it slides in, so a click made during the slide cannot activate a menu link that moves under it. */
html.programs-chrome-settling:not(#_):not(#_) .programs-header__panel {
  pointer-events: none;
}

/* The theme gives links and buttons "transition: all", which would animate the visibility they inherit from the panel and keep them unfocusable for the first frames after opening. */
body.single-sa28_programs:not(#_):not(#_) .programs-header__panel :is(a, button) {
  transition: none;
}

/* The theme sets html { overflow: auto !important } from 1024px up, so the lock needs the same flag and a heavier selector. */
html.programs-chrome-open:not(#_):not(#_) {
  overflow: hidden !important;
}

body.single-sa28_programs:not(#_):not(#_) .programs-header :is(.programs-header__menu, .programs-header__submenu) {
  margin: 0;
  padding: 0;
  list-style: none;
}

body.single-sa28_programs:not(#_):not(#_) .programs-header__submenu {
  padding-left: 16px;
}

body.single-sa28_programs:not(#_):not(#_) .programs-header__item {
  margin: 0;
  padding: 0;
  list-style: none;
}

body.single-sa28_programs:not(#_):not(#_) .programs-header__link {
  display: flex;
  align-items: center;
  min-height: 48px;
  margin: 0 -8px;
  padding: 0 8px;
  background: transparent;
  color: #5E30FF;
  font: 400 16px/1.4 "Inter", sans-serif;
  text-decoration: none;
}

body.single-sa28_programs:not(#_):not(#_) .programs-header__submenu .programs-header__link {
  min-height: 40px;
  font-size: 15px;
}

body.single-sa28_programs:not(#_):not(#_) .programs-header__link:is(:hover, :focus, :focus-visible, :active) {
  background: transparent;
  box-shadow: none !important;
  color: #5E30FF !important;
  text-decoration: none !important;
  outline: none !important;
}

body.single-sa28_programs:not(#_):not(#_) .programs-header__text {
  display: inline-block;
  line-height: 22px;
  background: linear-gradient(currentcolor, currentcolor) no-repeat 0 calc(100% - 3.5px) / 0 1px;
  transition: background-size 0.3s ease;
}

body.single-sa28_programs:not(#_):not(#_) .programs-header__link:is(:hover, :focus-visible) .programs-header__text {
  background-size: 100% 1px;
}

/* Forced-colors mode turns gradient backgrounds into none, so the underline above would vanish; the text span takes a real underline there while the link keeps text-decoration none. */
@media (forced-colors: active) {
  body.single-sa28_programs:not(#_):not(#_) .programs-header__link:is(:hover, :focus-visible) .programs-header__text {
    text-decoration: underline;
  }
}

/* The menu button, turned into the X, is the only close mark. This in-panel button stays in the markup but is not shown and not focusable, so two X marks never overlap. */
body.single-sa28_programs:not(#_):not(#_) .programs-header__close {
  display: none;
}

/* Top line of the panel: the default buttons as text links, last row first, with a thin line between them. It starts 68px below the panel top (the panel padding) and is 48px high; the menu items follow. */
body.single-sa28_programs:not(#_):not(#_) .programs-header__topline {
  display: flex;
  align-items: center;
  height: 48px;
}

body.single-sa28_programs:not(#_):not(#_) .programs-header__topline .programs-header__topline-link {
  flex: none;
  margin: 0;
  padding: 0;
  white-space: nowrap;
}

body.single-sa28_programs:not(#_):not(#_) .programs-header__topline .programs-header__topline-link + .programs-header__topline-link::before {
  content: "";
  flex: none;
  width: 1px;
  height: 18px;
  margin: 0 16px;
  background-color: #D6D0EE;
}

/* Forced-colors mode replaces the line colour with the page colour, which would hide it. */
@media (forced-colors: active) {
  body.single-sa28_programs:not(#_):not(#_) .programs-header__topline .programs-header__topline-link + .programs-header__topline-link::before {
    forced-color-adjust: none;
    background-color: CanvasText;
  }
}

/* Logo */
body.single-sa28_programs:not(#_):not(#_) .programs-header__brand {
  grid-column: 1;
  grid-row: 1;
  justify-self: start;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: transparent;
  box-shadow: none;
  color: #5E30FF;
  text-decoration: none;
}

body.single-sa28_programs:not(#_):not(#_) .programs-header__brand:hover {
  box-shadow: none !important;
  color: #5E30FF !important;
}

body.single-sa28_programs:not(#_):not(#_) .programs-header__brand svg {
  display: block;
  width: 48px;
  height: 44.3px;
}

@media (min-width: 1024px) {
  body.single-sa28_programs:not(#_):not(#_) .programs-header__brand svg {
    width: 62.5px;
    height: 57.7px;
  }
}

/* Middle: tag and CTA, or the default buttons. The middle track is auto, so the max-width (the page width minus both side columns) keeps a long tag or CTA from pushing the logo and the menu button. */
body.single-sa28_programs:not(#_):not(#_) .programs-header__actions {
  grid-column: 2;
  grid-row: 1;
  justify-self: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(6px, 2vw, 10px);
  min-width: 0;
  max-width: calc(100vw - 2 * clamp(13px, 4vw, 24px) - 2 * (48px + 16px));
}

@media (min-width: 1024px) {
  body.single-sa28_programs:not(#_):not(#_) .programs-header__actions {
    gap: 10px;
    max-width: calc(100vw - 2 * 24px - 2 * (62.5px + 16px));
  }
}

/* Price (post setting header_price): in the menu button's place, its right edge where the button's is (the same -13px right margin), in the live 8 Week Challenge price style. */
body.single-sa28_programs:not(#_):not(#_) .programs-header__price {
  grid-column: 3;
  grid-row: 1;
  justify-self: end;
  margin: 0 -13px 0 0;
  color: #5E30FF;
  font: 800 32px/40px "Montserrat", sans-serif;
  text-transform: uppercase;
  white-space: nowrap;
}

/* The price text is free, so its room comes from the price itself: side columns at least as wide as what they hold (1fr is minmax(auto, 1fr)) stay equal while both fit, keeping the middle centred, and otherwise the price keeps its width and the middle gets what is left. Stretched to its column, the middle cannot run past it under the price; a long tag or CTA is cut with an ellipsis instead. */
body.single-sa28_programs:not(#_):not(#_) .programs-header.programs-header--price {
  grid-template-columns: 1fr auto 1fr;
}

body.single-sa28_programs:not(#_):not(#_) .programs-header--price .programs-header__actions {
  justify-self: stretch;
}

/* A long tag or CTA label is cut with an ellipsis inside the middle place instead of running into the logo; the tag gives way before the CTA. */
body.single-sa28_programs:not(#_):not(#_) .programs-header__tag,
body.single-sa28_programs:not(#_):not(#_) .programs-header__cta {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
}

body.single-sa28_programs:not(#_):not(#_) .programs-header__cta {
  flex: none;
}

body.single-sa28_programs:not(#_):not(#_) .programs-header__tag {
  box-sizing: border-box;
  display: inline-block;
  padding: 0 14px;
  border-radius: 999px;
  background: #FFE6FF;
  color: #C700C7;
  font: 600 12px/26px "Inter", sans-serif;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

body.single-sa28_programs:not(#_):not(#_) .programs-header__cta {
  box-sizing: border-box;
  display: block;
  height: 35px;
  padding: 0 20px;
  border-radius: 999px;
  background: #5E30FF;
  box-shadow: none;
  color: #FFFFFF;
  font: 400 13px/35px "Inter", sans-serif;
  letter-spacing: 0.1em;
  text-decoration: none;
  text-transform: uppercase;
  white-space: nowrap;
}

body.single-sa28_programs:not(#_):not(#_) .programs-header__cta:is(:hover, :focus) {
  background: #4A1FE6;
  box-shadow: none !important;
  color: #FFFFFF !important;
  text-decoration: none !important;
}

/* Countdown: the group around the chip and the countdown takes no box of its own unless the wide countdown layout below gives it one, so once the script removes the countdown the chip and the CTA sit as they do without it. */
body.single-sa28_programs:not(#_):not(#_) .programs-header__group {
  display: contents;
}

body.single-sa28_programs:not(#_):not(#_) .programs-header__strip {
  display: none;
}

/* Countdown on, 768px and up (live B values; the font stays Inter): logo | chip, Ends in and boxes | CTA | menu button. The middle group is centred in the space between the logo and the CTA, so everything stays on one line. */
@media (min-width: 768px) {
  body.single-sa28_programs:not(#_):not(#_) .programs-header.programs-header--countdown {
    grid-template-columns: auto minmax(0, 1fr) auto auto;
  }

  body.single-sa28_programs:not(#_):not(#_) .programs-header--countdown .programs-header__actions {
    display: contents;
  }

  body.single-sa28_programs:not(#_):not(#_) .programs-header--countdown .programs-header__group {
    grid-column: 2;
    grid-row: 1;
    justify-self: center;
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    max-width: 100%;
  }

  body.single-sa28_programs:not(#_):not(#_) .programs-header--countdown .programs-header__tag {
    min-width: 0;
    padding: 7px 14px;
    background: #F2EFFF;
    color: #3A1CB0;
    font: 700 13px/1.2 "Inter", sans-serif;
  }

  body.single-sa28_programs:not(#_):not(#_) .programs-header--countdown .programs-header__countdown {
    flex: none;
    display: flex;
    align-items: center;
    gap: 6px;
  }

  body.single-sa28_programs:not(#_):not(#_) .programs-header--countdown .programs-header__ends {
    margin-right: 4px;
    color: #4A4A55;
    font: 500 15px/1.2 "Inter", sans-serif;
    white-space: nowrap;
  }

  body.single-sa28_programs:not(#_):not(#_) .programs-header--countdown .programs-header__box {
    padding: 5px 8px;
    border-radius: 8px;
    background: #F2EFFF;
    color: #5E30FF;
    font: 700 15px/1.2 "Inter", sans-serif;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
  }

  /* Live B's button is an outline in mixed case. */
  body.single-sa28_programs:not(#_):not(#_) .programs-header--countdown .programs-header__cta {
    grid-column: 3;
    grid-row: 1;
    height: auto;
    min-height: 49px;
    padding: 12px 20px;
    border: 2px solid #5E30FF;
    border-radius: 14px;
    background: transparent;
    color: #5E30FF;
    font: 600 17px/21px "Inter", sans-serif;
    letter-spacing: 0;
    text-transform: none;
  }

  body.single-sa28_programs:not(#_):not(#_) .programs-header--countdown .programs-header__cta:is(:hover, :focus) {
    background: #EFEAFF;
    color: #5E30FF !important;
  }

  body.single-sa28_programs:not(#_):not(#_) .programs-header--countdown :is(.programs-header__hamburger, .programs-header__price) {
    grid-column: 4;
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  body.single-sa28_programs:not(#_):not(#_) .programs-header--countdown .programs-header__tag {
    padding: 6px 10px;
    font-size: 11px;
  }

  body.single-sa28_programs:not(#_):not(#_) .programs-header--countdown .programs-header__ends {
    display: none;
  }

  body.single-sa28_programs:not(#_):not(#_) .programs-header--countdown .programs-header__box {
    font-size: 13px;
  }

  body.single-sa28_programs:not(#_):not(#_) .programs-header--countdown .programs-header__cta {
    min-height: 44px;
    padding: 10px 14px;
    font-size: 15px;
    line-height: 20px;
  }
}

body.single-sa28_programs:not(#_):not(#_) .programs-header__btn {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 120px;
  min-height: 36px;
  padding: 0 16px;
  border: 2px solid #5E30FF;
  border-radius: 999px;
  box-shadow: none;
  font: 400 13px/1 "Inter", sans-serif;
  letter-spacing: 0.11em;
  text-decoration: none;
  text-transform: uppercase;
  white-space: nowrap;
}

body.single-sa28_programs:not(#_):not(#_) .programs-header__btn--secondary {
  background: transparent;
  color: #5E30FF;
}

body.single-sa28_programs:not(#_):not(#_) .programs-header__btn--primary {
  min-width: 130px;
  background: #5E30FF;
  color: #FFFFFF;
}

body.single-sa28_programs:not(#_):not(#_) .programs-header__btn--secondary:hover {
  border-color: #5E30FF !important;
  background: #EFEAFF;
  box-shadow: none !important;
  color: #5E30FF !important;
  text-decoration: none !important;
}

body.single-sa28_programs:not(#_):not(#_) .programs-header__btn--primary:hover {
  border-color: #4A1FE6 !important;
  background: #4A1FE6;
  box-shadow: none !important;
  color: #FFFFFF !important;
  text-decoration: none !important;
}

/* Short label: a default button row that has one prints both spans; below 1024px the short one shows, from 1024px up the full one. */
body.single-sa28_programs:not(#_):not(#_) .programs-header__label-short {
  display: none;
}

@media (max-width: 1023px) {
  body.single-sa28_programs:not(#_):not(#_) .programs-header__label-full {
    display: none;
  }

  body.single-sa28_programs:not(#_):not(#_) .programs-header__label-short {
    display: inline;
  }

  /* Below 1024px both buttons stay and shrink to the live sizes. */
  body.single-sa28_programs:not(#_):not(#_) .programs-header__btn,
  body.single-sa28_programs:not(#_):not(#_) .programs-header__btn--primary {
    flex: none;
    min-width: 0;
    width: clamp(79px, 22vw, 104px);
    min-height: clamp(26px, 7vw, 32px);
    padding: 0;
    border-width: 1px;
    font-size: clamp(10px, 2.8vw, 12px);
    font-weight: 500;
    letter-spacing: 0;
  }
}

@media (max-width: 767px) {
  /* No row gap: the strip (row two) starts right under the 69px row. */
  body.single-sa28_programs:not(#_):not(#_) .programs-header {
    gap: 0 8px;
  }

  body.single-sa28_programs:not(#_):not(#_) .programs-header__actions {
    max-width: calc(100vw - 2 * clamp(13px, 4vw, 24px) - 2 * (48px + 8px));
  }

  /* The header row keeps only the CTA (D1); the Badge text and the countdown move to the strip. */
  body.single-sa28_programs:not(#_):not(#_) .programs-header__actions :is(.programs-header__tag, .programs-header__countdown) {
    display: none;
  }

  /* Full width (the header's side padding is cancelled), 28px a line; live A values. */
  body.single-sa28_programs:not(#_):not(#_) .programs-header__strip {
    grid-column: 1 / -1;
    grid-row: 2;
    display: block;
    margin: 0 calc(-1 * clamp(13px, 4vw, 24px));
    background: #FFE6FF;
    color: #C700C7;
    font: 700 11px/28px "Inter", sans-serif;
    letter-spacing: 0.08em;
    text-align: center;
    text-transform: uppercase;
    font-variant-numeric: tabular-nums;
  }

  body.single-sa28_programs:not(#_):not(#_) .programs-header__strip :is(.programs-header__strip-line, .programs-header__countdown) {
    display: block;
    height: 28px;
    padding: 0 8px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
  }

  body.single-sa28_programs:not(#_):not(#_) .programs-header__cta {
    height: 30px;
    padding: 0 12px;
    font-size: 10.5px;
    line-height: 30px;
    letter-spacing: 0.06em;
  }
}

/* Below 375px the CTA gets a tighter label so it still fits between the logo and the hamburger. */
@media (max-width: 374px) {
  body.single-sa28_programs:not(#_):not(#_) .programs-header__cta {
    padding: 0 10px;
    font-size: 10px;
    letter-spacing: 0.02em;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.single-sa28_programs:not(#_):not(#_) .programs-header,
  body.single-sa28_programs:not(#_):not(#_) .programs-header__bars span,
  body.single-sa28_programs:not(#_):not(#_) .programs-header__overlay,
  body.single-sa28_programs:not(#_):not(#_) .programs-header__panel,
  body.single-sa28_programs:not(#_):not(#_) .programs-header__text {
    transition-duration: 0s;
  }
}

/* Common footer. The rules come from the live landing footer, moved under body.single-sa28_programs. */

body.single-sa28_programs footer.new-footer {
  background: #3C3C3B;
  position: relative;
  padding: 64px 0;
}

body.single-sa28_programs footer.new-footer:before {
  content: '';
  position: absolute;
  top: 0;
  right: 100%;
  width: 100%;
  height: 100%;
  background: #3C3C3B;
}

body.single-sa28_programs footer.new-footer:after {
  content: '';
  position: absolute;
  top: 0;
  left: 100%;
  width: 100%;
  height: 100%;
  background: #3C3C3B;
}

body.single-sa28_programs footer.new-footer .outer {
  display: flex;
}

body.single-sa28_programs footer.new-footer .logo-wrapper {
  width: 22%;
}

body.single-sa28_programs footer.new-footer .footer-links {
  width: 38%;
  display: flex;
  justify-content: space-around;
}

body.single-sa28_programs footer.new-footer .footerc-content {
  width: 40%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

body.single-sa28_programs footer.new-footer .logo-wrapper .footer-logo {
  display: inline-block;
  width: 64px;
  height: 64px;
}

body.single-sa28_programs footer.new-footer .footer-links ul {
  margin: 0;
  padding: 0;
  list-style: none;
  width: 50%;
}

body.single-sa28_programs footer.new-footer .footer-links a {
  font-family: 'Averta';
  font-weight: normal;
  font-size: 16px;
  line-height: 22px;
  -webkit-text-decoration-line: underline;
  text-decoration-line: underline;
  color: #FFFFFF;
  margin: 6px 0;
  display: block;
  cursor: pointer;
}

body.single-sa28_programs footer.new-footer .footerc-content p,
body.single-sa28_programs footer.new-footer .footerc-content p a {
  font-family: Averta;
  font-style: normal;
  font-weight: normal;
  font-size: 12px;
  line-height: 16px;
  color: #E1E6EA;
  margin: 0;
  max-width: 396px;
}

@media only screen and (max-width: 767px) {
  body.single-sa28_programs footer.new-footer {
    padding: 40px 0;
  }

  body.single-sa28_programs footer.new-footer .container {
    padding: 0 20px;
  }

  body.single-sa28_programs footer.new-footer .outer {
    flex-direction: column;
  }

  body.single-sa28_programs footer.new-footer .outer>div {
    width: 100%;
  }

  body.single-sa28_programs footer.new-footer .logo-wrapper {
    text-align: center;
  }

  body.single-sa28_programs footer.new-footer .footer-links {
    margin: 40px 0;
  }

  body.single-sa28_programs footer.new-footer .footerc-content {
    text-align: center;
  }

  body.single-sa28_programs footer.new-footer .footerc-content p:first-child {
    margin-bottom: 40px;
  }
}

body.single-sa28_programs:not(#_):not(#_) .new-footer {
  box-sizing: border-box;
  padding: var(--evvr-section-space) var(--space-5);
  margin-block: 0;
}

body.single-sa28_programs:not(#_):not(#_) .new-footer > .container {
  box-sizing: border-box;
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: 0;
}

body.single-sa28_programs:not(#_):not(#_) .new-footer {
  background: var(--evvr-dark);
  color: var(--evvr-card);
  text-align: left;
}

body.single-sa28_programs:not(#_):not(#_) .new-footer :is(p, a, li) {
  color: var(--evvr-card);
  font: 400 15px/1.6 "Inter", sans-serif;
}

body.single-sa28_programs:not(#_):not(#_) .new-footer a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

body.single-sa28_programs:not(#_):not(#_) .new-footer .outer {
  display: grid;
  grid-template-columns: 1fr 2fr 2fr;
  gap: var(--space-8);
  margin: 0;
}

body.single-sa28_programs:not(#_):not(#_) .new-footer :is(.logo-wrapper, .footer-links, .footerc-content) {
  width: auto;
  min-width: 0;
  margin: 0;
  text-align: left;
}

body.single-sa28_programs:not(#_):not(#_) footer.new-footer .logo-wrapper .footer-logo {
  width: 144px;
  height: auto;
}

body.single-sa28_programs:not(#_):not(#_) footer.new-footer .logo-wrapper .footer-logo svg {
  width: 100%;
  height: auto;
}

body.single-sa28_programs:not(#_):not(#_) .new-footer .footer-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-5);
}

body.single-sa28_programs:not(#_):not(#_) .new-footer .footer-links ul {
  width: auto;
  padding: 0;
  margin: 0;
  list-style: none;
}

@media (max-width: 767px) {
  body.single-sa28_programs:not(#_):not(#_) .new-footer .outer {
    grid-template-columns: minmax(0, 1fr);
  }

  body.single-sa28_programs:not(#_):not(#_) .new-footer .footerc-content {
    padding-top: var(--space-6);
    border-top: 1px solid var(--evvr-line);
  }
}

@media (min-width: 1100px) {
  body.single-sa28_programs:not(#_):not(#_) .new-footer {
    box-sizing: border-box;
    min-height: 214px;
    padding: 52px 20px 0;
  }

  body.single-sa28_programs:not(#_):not(#_) .new-footer > .container {
    max-width: 980px;
    margin-inline: calc(50% - 520px) auto;
  }

  body.single-sa28_programs:not(#_):not(#_) .new-footer .outer {
    grid-template-columns: 202px 424px 354px;
    gap: 0;
  }

  body.single-sa28_programs:not(#_):not(#_) .new-footer .logo-wrapper {
    padding-top: 4px;
  }

  body.single-sa28_programs:not(#_):not(#_) footer.new-footer .logo-wrapper .footer-logo,
  body.single-sa28_programs:not(#_):not(#_) .footer-logo :is(svg, img) {
    width: 100px;
  }

  body.single-sa28_programs:not(#_):not(#_) .new-footer .footer-links {
    grid-template-columns: 191px 1fr;
    gap: 0;
  }

  body.single-sa28_programs:not(#_):not(#_) .new-footer .footer-links :is(li, a) {
    margin: 0;
    font: 400 13px/24px "Inter", sans-serif;
  }

  body.single-sa28_programs:not(#_):not(#_) .new-footer .footerc-content {
    padding-top: 4px;
  }

  body.single-sa28_programs:not(#_):not(#_) .new-footer .footerc-content :is(p, a) {
    font: 400 10.7px/16px "Inter", sans-serif;
  }

  body.single-sa28_programs:not(#_):not(#_) .new-footer .footerc-content p {
    margin: 0 0 6px;
  }

  body.single-sa28_programs:not(#_):not(#_) .new-footer .footerc-content a {
    text-decoration: none;
  }
}

@media (max-width: 767px) {
  body.single-sa28_programs:not(#_):not(#_) .new-footer {
    box-sizing: border-box;
    padding: 38.5px 24px 39px;
  }

  body.single-sa28_programs:not(#_):not(#_) .new-footer .outer {
    gap: 0;
  }

  body.single-sa28_programs:not(#_):not(#_) .new-footer .logo-wrapper {
    padding: 0;
  }

  body.single-sa28_programs:not(#_):not(#_) footer.new-footer .logo-wrapper .footer-logo,
  body.single-sa28_programs:not(#_):not(#_) .footer-logo :is(svg, img) {
    width: 74px;
  }

  body.single-sa28_programs:not(#_):not(#_) .new-footer .footer-links {
    grid-template-columns: 142px 1fr;
    gap: 0;
    margin-top: 13px;
  }

  body.single-sa28_programs:not(#_):not(#_) .new-footer .footer-links :is(li, a) {
    margin: 0;
    font: 400 14px/27px "Inter", sans-serif;
  }

  body.single-sa28_programs:not(#_):not(#_) .new-footer .footerc-content {
    margin-top: 17px;
    padding-top: 25.5px;
    border-top: 1px solid #39344E;
  }

  body.single-sa28_programs:not(#_):not(#_) .new-footer .footerc-content :is(p, a) {
    font: 400 10.7px/16px "Inter", sans-serif;
    text-decoration: none;
  }

  body.single-sa28_programs:not(#_):not(#_) .new-footer .footerc-content p {
    max-width: 330px;
    margin: 0 0 24px;
  }

  body.single-sa28_programs:not(#_):not(#_) .new-footer .footerc-content p:last-child {
    margin: 0;
  }
}

body.single-sa28_programs:not(#_):not(#_) .new-footer a:hover {
  border-color: currentcolor !important;
  box-shadow: none !important;
  color: var(--evvr-card) !important;
  text-decoration: underline !important;
}

body.single-sa28_programs:not(#_):not(#_) .new-footer .footer-links a {
  background: linear-gradient(currentcolor, currentcolor) no-repeat 0 calc(100% - 3.5px) / 0 1px;
  text-decoration: none !important;
  transition: background-size 0.3s ease;
  width: fit-content;
}

body.single-sa28_programs:not(#_):not(#_) .new-footer .footer-links a:hover {
  background-size: 100% 1px;
  text-decoration: none !important;
}

body.single-sa28_programs:not(#_):not(#_) .new-footer .footer-links a:focus-visible {
  background-size: 100% 1px;
  outline: 3px solid var(--evvr-card);
  outline-offset: 2px;
  text-decoration: none !important;
}

@media (prefers-reduced-motion: reduce) {
  body.single-sa28_programs:not(#_):not(#_) .new-footer .footer-links a {
    transition: none;
  }
}

body.single-sa28_programs:not(#_):not(#_) .new-footer .footerc-content a {
  text-shadow: 0 0 0 transparent, 0 0 0 transparent;
  transition: text-shadow 0.25s ease;
}

body.single-sa28_programs:not(#_):not(#_) .new-footer .footerc-content a:hover {
  text-shadow: 0.15px 0 0 currentcolor, -0.15px 0 0 currentcolor;
}

body.single-sa28_programs:not(#_):not(#_) .new-footer .footerc-content a:focus-visible {
  outline: 3px solid var(--evvr-card);
  outline-offset: 2px;
  text-shadow: 0.15px 0 0 currentcolor, -0.15px 0 0 currentcolor;
}

@media (prefers-reduced-motion: reduce) {
  body.single-sa28_programs:not(#_):not(#_) .new-footer .footerc-content a {
    transition: none;
  }
}

@media (min-width: 1100px), (max-width: 767px) {
  body.single-sa28_programs:not(#_):not(#_) .new-footer .footerc-content a:hover {
    text-decoration: none !important;
  }
}

/* Footer variables, moved here from programs.css so the footer rules above have a definition. */
body.single-sa28_programs footer.new-footer {
  --evvr-dark: #231E34;
  --evvr-card: #FFFFFF;
  --evvr-line: #ECE3DD;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --evvr-section-space: 48px;
}
@media (min-width: 768px) and (max-width: 1023px) {
  body.single-sa28_programs footer.new-footer {
    --evvr-section-space: 64px;
  }
}
@media (min-width: 1024px) {
  body.single-sa28_programs footer.new-footer {
    --evvr-section-space: 96px;
  }
}

/* the tracking tag leaves a stray ";" text node in body after the footer: a zero font size removes the glyph and its line box */
body.single-sa28_programs { font-size: 0; line-height: 0; }
body.single-sa28_programs > * { font-size: 1rem; line-height: 1.5rem; }
