/**
 * Program hero
 *
 * Explicit responsive styles for single-program.php. Component specificity and
 * load order own layout, spacing and typography. Compatibility overrides stay
 * scoped to legacy typography, visibility and existing content components.
 */

body.single-program #topshr .jci-program-hero__cta {
  text-decoration: none;
}

body.single-program #topshr .jci-program-hero__cta:hover,
body.single-program #topshr .jci-program-hero__cta:focus-visible {
  text-decoration: none;
}

body.single-program .site-main img.fletxa2 {
  width: 28px;
  min-width: 28px;
  max-width: 28px;
  height: auto;
}

@media (max-width: 768px) {
  body.single-program #topshr {
    margin-top: 0;
  }

  /* Single Program mobile layout contract. The canonical program container owns
   * the viewport gutter; legacy Bootstrap rows/columns must not add a second
   * horizontal inset inside it. Short and Long Programs therefore share one
   * 16px mobile axis without template-specific gutter patches. */
  body.single-program .site-main .jci-container--program {
    --jci-container-local-gutter: var(--jci-container-gutter-mobile, 16px);
  }

  body.single-program .site-main .container-inner.jci-container--program {
    padding-inline: 0;
  }

  body.single-program .site-main .jci-container--program.row {
    --bs-gutter-x: 0;
  }

  body.single-program .site-main .jci-container--program > .row,
  body.single-program .site-main .jci-container--program .row {
    --bs-gutter-x: 0;
    width: 100%;
    margin-left: 0;
    margin-right: 0;
  }

  body.single-program .site-main .jci-container--program.row > [class*="col-"],
  body.single-program .site-main .jci-container--program > .row > [class*="col-"],
  body.single-program .site-main .jci-container--program .row > [class*="col-"] {
    width: 100%;
    max-width: none;
    padding-inline: 0;
  }

  /* Mobile Program hero CTAs share one readable text scale in both templates. */
  body.single-program #topshr:is(.jci-program-hero--course, .jci-program-hero--master) .jci-program-hero__cta {
    font-size: 16px;
  }

  body.single-program #topshr .jci-program-hero__cta.mobile {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    max-width: 100%;
    min-height: 48px;
    height: auto;
    margin: 0;
    padding: 13px 18px;
    border: 1px solid transparent;
    border-radius: 8px;
    font-family: "DM Sans", "DM Sans Fallback", sans-serif;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
    white-space: normal;
    overflow: visible;
    box-shadow: none;
  }

  body.single-program #topshr .jci-program-hero__cta--primary.mobile {
    background: var(--color-brand-blue, #487cff);
    color: #fff;
  }

  body.single-program #topshr .jci-program-hero__cta--secondary.mobile {
    background: var(--color-brand-navy, #041c40);
    color: #fff;
  }

  body.single-program #topshr .jci-program-hero__cta--outline.mobile {
    background: #fff;
    color: var(--bs-body-color);
    border-color: var(--color-brand-navy, #041c40);
  }

  body.single-program #topshr .jci-program-hero__cta-icon,
  body.single-program .site-main .jci-program-hero__cta-icon.fletxa2 {
    display: block;
    flex: 0 0 28px;
    width: 28px;
    min-width: 28px;
    max-width: 28px;
    height: auto;
    max-height: 18px;
    margin: 0;
    padding: 0;
    object-fit: contain;
  }

  body.single-program #topshr2 .jci-program-inline-arrow,
  body.single-program .site-main .jci-program-inline-arrow.fletxa2 {
    display: inline-block;
    width: 24px;
    min-width: 24px;
    max-width: 24px;
    height: auto;
    margin: 12px 0 0;
    padding: 0;
  }
}

/* Desktop program hero: full-bleed split with content aligned to the program grid. */
body.single-program {
  overflow-anchor: none;
}

body.single-program .jci-program-hero {
  --jci-program-hero-title-color: #0b2a55;
  --jci-program-hero-title-tracking: -2px;
  z-index: 1;
}

body.single-program .jci-program-hero__compact-title {
  letter-spacing: var(--jci-program-hero-title-tracking);
  text-transform: none;
}

body.single-program .site-main .jci-container--program {
  font-family: "DM Sans", "DM Sans Fallback", sans-serif;
}

@media (min-width: 769px) {
  body.single-program #topshr2 + .jci-program-basic-information {
    margin-top: 20px !important;
  }

  body.single-program > .site-wrapper .site-main .jci-container--program > .row {
    width: 100%;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  body.single-program > .site-wrapper .site-main .jci-container--program.row > [class*="col-"]:first-child,
  body.single-program > .site-wrapper .site-main .jci-container--program > .row > [class*="col-"]:first-child {
    padding-left: 0 !important;
  }

  body.single-program > .site-wrapper .site-main .container-inner.jci-container:has(> .aaccordion) {
    --jci-container-local-gutter: var(--jci-container-page-edge);
    width: min(
      var(--jci-container-max-page, 1280px),
      calc(100% - (var(--jci-container-page-edge) * 2))
    ) !important;
    margin-left: var(--jci-container-page-edge) !important;
    margin-right: auto !important;
    padding-left: 0;
    padding-right: 0;
  }
}

body.single-program .jci-program-hero :where(.btn1, .btn11, .btn2, .jci-program-hero__cta),
body.single-program .jci-program-hero :where(.btn1, .btn11, .btn2, .jci-program-hero__cta):hover,
body.single-program .jci-program-hero :where(.btn1, .btn11, .btn2, .jci-program-hero__cta):focus,
body.single-program .jci-program-hero :where(.btn1, .btn11, .btn2, .jci-program-hero__cta):focus-visible,
body.single-program .jci-program-hero :where(.btn1, .btn11, .btn2, .jci-program-hero__cta):active {
  transform: none;
  translate: none;
  top: auto;
  right: auto;
  bottom: auto;
  left: auto;
}

body.single-program .jci-program-hero :where(.btn1, .btn11, .btn2, .jci-program-hero__cta) {
  transition:
    background-color 160ms ease,
    border-color 160ms ease,
    color 160ms ease,
    box-shadow 160ms ease;
}

/* Shared Program-hero action contract. Long and short Programs now use the
 * same primary/outline geometry; legacy btn classes remain only as compatibility
 * hooks for existing templates. */
body.single-program .jci-program-hero .jci-program-hero__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: auto;
  min-height: 38px;
  padding: 0 22px;
  border-radius: 8px;
  box-sizing: border-box;
  font-family: "DM Sans", "DM Sans Fallback", sans-serif;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
}

body.single-program .jci-program-hero .jci-program-hero__cta--primary {
  border: 1px solid var(--color-brand-blue, #487cff);
  background: var(--color-brand-blue, #487cff);
  color: #fff;
}

body.single-program .jci-program-hero .jci-program-hero__cta--outline {
  border: 1px solid var(--color-brand-navy, #041c40);
  background: #fff;
  color: var(--color-brand-navy, #041c40);
}

body.single-program .jci-program-hero .jci-program-hero__cta-icon {
  display: block;
  flex: 0 0 28px;
  width: 28px;
  min-width: 28px;
  max-width: 28px;
  height: auto;
  max-height: 14px;
  margin: 0;
  object-fit: contain;
  transition: transform 160ms ease, filter 160ms ease;
}

body.single-program .jci-program-hero .jci-program-hero__cta--outline .jci-program-hero__cta-icon {
  filter: brightness(0);
}

body.single-program .jci-program-hero .jci-program-hero__cta--primary:hover,
body.single-program .jci-program-hero .jci-program-hero__cta--primary:focus-visible,
body.single-program .jci-program-hero .jci-program-hero__cta--outline:hover,
body.single-program .jci-program-hero .jci-program-hero__cta--outline:focus-visible {
  border-color: #2f68ff;
  background: #2f68ff;
  color: #fff;
}

body.single-program .jci-program-hero .jci-program-hero__cta--outline:hover .jci-program-hero__cta-icon,
body.single-program .jci-program-hero .jci-program-hero__cta--outline:focus-visible .jci-program-hero__cta-icon {
  filter: brightness(0) invert(1);
}

body.single-program #topshr.jci-program-hero--course .jci-program-hero__compact {
  display: none;
}

/* A Course section menu follows the existing compact hero. The shared nav
 * consumes this height for placement; the hero owns its anchor registration. */
body.single-program #topshr.jci-program-hero--course[data-jci-course-hero-state="compact"] + :is(.jci-secondary-nav-bar, .jci-editorial-main) {
  --jci-secondary-nav-preceding-offset: var(--jci-course-hero-compact-height, 0px);
}

/*
 * Course compact summary bar.
 *
 * The expanded hero remains in normal document flow and scrolls naturally.
 * A separate summary bar is fixed below the complete site header only after
 * the expanded hero has passed its activation line. Its background and content
 * fade together as one visual unit without changing the sticky geometry. No layout
 * morphing, cloned runtime DOM, scroll-linked progress or height animation is
 * involved.
 */
@media (min-width: 1025px) {
  body.single-program {
    --jci-course-hero-compact-height: 104px;
  }

  body.single-program #topshr.jci-program-hero--course {
    position: relative;
    z-index: auto;
    margin-bottom: 0;
    overflow: visible;
    background: #ecf2ff;
  }

  body.single-program #topshr.jci-program-hero--course .jci-program-hero__compact {
    position: fixed;
    top: var(--jci-viewport-top-offset, var(--jci-header-visual-offset, 120px));
    right: 0;
    left: 0;
    z-index: 900;
    display: block;
    width: 100%;
    height: var(--jci-course-hero-compact-height);
    min-height: var(--jci-course-hero-compact-height);
    visibility: hidden;
    overflow: visible;
    pointer-events: none;
    isolation: isolate;
    opacity: 0;
    transition:
      opacity var(--jci-course-hero-transition-duration, 110ms) cubic-bezier(0.2, 0, 0, 1),
      visibility 0s linear var(--jci-course-hero-transition-duration, 110ms);
  }

  body.single-program #topshr.jci-program-hero--course .jci-program-hero__compact::before,
  body.single-program #topshr.jci-program-hero--course .jci-program-hero__compact::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
  }

  body.single-program #topshr.jci-program-hero--course .jci-program-hero__compact::before {
    z-index: 0;
    background: #ecf2ff;
  }

  body.single-program #topshr.jci-program-hero--course .jci-program-hero__compact::after {
    z-index: 2;
    box-shadow:
      inset 0 -1px 0 rgba(4, 28, 64, 0.07),
      0 3px 8px rgba(14, 28, 64, 0.08);
  }

  body.single-program #topshr.jci-program-hero--course .jci-program-hero__compact-inner {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(240px, 1fr) auto clamp(180px, 16vw, 210px);
    align-items: center;
    width: 100%;
    height: 100%;
    min-height: var(--jci-course-hero-compact-height);
    padding-inline: var(--jci-container-page-edge);
    box-sizing: border-box;
  }

  body.single-program #topshr.jci-program-hero--course .jci-program-hero__compact.is-visible {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
    transition-delay: 0s;
  }

  body.single-program #topshr.jci-program-hero--course .jci-program-hero__compact-copy {
    min-width: 0;
  }

  body.single-program #topshr.jci-program-hero--course .jci-program-hero__compact-title {
    display: block;
    width: 100%;
    max-width: none;
    margin: 0;
    padding-bottom: 0;
    color: var(--jci-program-hero-title-color);
    font-family: "DM Sans", "DM Sans Fallback", sans-serif;
    font-size: clamp(20px, 1.7vw, 24px);
    font-weight: 700;
    line-height: 1.08;
    text-wrap: wrap;
  }

  body.single-program #topshr.jci-program-hero--course :where(
    .jci-program-hero__compact-title-primary,
    .jci-program-hero__compact-title-secondary,
    .jci-program-hero__compact-subtitle
  ) {
    display: block;
  }

  body.single-program #topshr.jci-program-hero--course .jci-program-hero__compact-title-secondary {
    margin-top: 3px;
    font-size: 0.66em;
    font-weight: 600;
    line-height: 1.08;
  }

  body.single-program #topshr.jci-program-hero--course .jci-program-hero__compact-subtitle {
    margin-top: 6px;
    color: var(--color-brand-blue, #487cff);
    font-size: 16px;
    font-weight: 600;
    line-height: 1.15;
    letter-spacing: normal;
  }

  body.single-program #topshr.jci-program-hero--course .jci-program-hero__compact-actions {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    min-width: max-content;
    margin: 0;
    padding: 0;
  }

  body.single-program #topshr.jci-program-hero--course .jci-program-hero__compact-actions :where(.btn1, .btn11, .btn2) {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 9px;
    float: none;
    width: auto;
    max-width: none;
    min-width: 0;
    min-height: 38px;
    height: 38px;
    margin: 0;
    padding: 0 18px;
    border-radius: 10px;
    font-size: 14px;
    line-height: 1;
    white-space: nowrap;
  }

  body.single-program #topshr.jci-program-hero--course .jci-program-hero__compact-actions .fletxa2 {
    width: 18px;
    min-width: 18px;
    max-width: 18px;
    height: auto;
    margin: 0;
  }

  body.single-program #topshr.jci-program-hero--course .jci-program-hero__compact-media {
    align-self: stretch;
    width: 100%;
    height: var(--jci-course-hero-compact-height);
    overflow: hidden;
  }

  body.single-program #topshr.jci-program-hero--course .jci-program-hero__compact-image {
    display: block;
    width: 100%;
    height: 100%;
    margin: 0;
    object-fit: contain;
    object-position: right center;
  }

  body.single-program #topshr.jci-program-hero--master {
    --jci-program-hero-compact-nav-height: 52px;
  }

  body.single-program #topshr.jci-program-hero--master.is-nav-sticky > .sup-nav,
  body.single-program #topshr.jci-program-hero--master.is-tab-navigation-active > .sup-nav,
  body.single-program #topshr.jci-program-hero--master > .sup-nav.is-sticky {
    position: fixed;
    top: var(--jci-viewport-top-offset, var(--jci-header-visual-offset, var(--jci-header-offset, 120px)));
    left: var(--jci-container-page-edge);
    z-index: 20;
    display: block;
    width: min(
      var(--jci-container-max-page, 1280px),
      calc(100vw - (var(--jci-container-page-edge) * 2))
    );
    min-height: var(--jci-program-hero-compact-nav-height);
    height: auto;
    margin: 0;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-top: 0;
    padding-bottom: 0;
    background: #fff;
    border-bottom: 1px solid rgba(4, 28, 64, 0.14);
    box-shadow:
      0 1px 0 rgba(4, 28, 64, 0.08),
      0 0 0 100vmax #fff;
    clip-path: inset(0 -100vmax);
    overflow-x: auto;
    overflow-y: hidden;
    transform: none;
  }

  body.single-program #topshr.jci-program-hero--master:is(.is-nav-sticky, .is-tab-navigation-active) {
    padding-bottom: var(--jci-program-hero-compact-nav-height, 52px);
  }

  body.single-program #topshr.jci-program-hero--master:is(.is-nav-sticky, .is-tab-navigation-active) ~ .div-master:not(.hidden) {
    padding-top: 24px;
  }

  body.single-program #topshr.jci-program-hero--master:is(.is-nav-sticky, .is-tab-navigation-active) > .sup-nav > .sup-nav-mini__list,
  body.single-program #topshr.jci-program-hero--master > .sup-nav.is-sticky > .sup-nav-mini__list {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0;
    width: 100%;
    min-width: 0;
    min-height: var(--jci-program-hero-compact-nav-height);
    height: var(--jci-program-hero-compact-nav-height);
    margin-top: 0;
    margin-bottom: 0;
  }

  body.single-program #topshr.jci-program-hero--master:is(.is-nav-sticky, .is-tab-navigation-active) > .sup-nav > .sup-nav-mini__list > li,
  body.single-program #topshr.jci-program-hero--master > .sup-nav.is-sticky > .sup-nav-mini__list > li {
    display: flex;
    flex: 1 1 0;
    min-width: 0;
  }

  body.single-program #topshr.jci-program-hero--master:is(.is-nav-sticky, .is-tab-navigation-active) > .sup-nav > .sup-nav-mini__list > li > :where(a, span),
  body.single-program #topshr.jci-program-hero--master > .sup-nav.is-sticky > .sup-nav-mini__list > li > :where(a, span) {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: var(--jci-program-hero-compact-nav-height);
    height: var(--jci-program-hero-compact-nav-height);
    padding-top: 0;
    padding-bottom: 0;
    text-align: center;
  }
}

@media (min-width: 1025px) and (max-width: 1180px) {
  body.single-program #topshr.jci-program-hero--course .jci-program-hero__compact-inner {
    grid-template-columns: minmax(270px, 1fr) auto 150px;
  }

  body.single-program #topshr.jci-program-hero--course .jci-program-hero__compact-actions {
    gap: 10px;
  }

  body.single-program #topshr.jci-program-hero--course .jci-program-hero__compact-actions :where(.btn1, .btn11, .btn2) {
    padding-inline: 16px;
    font-size: 14px;
  }
}

@media (max-width: 1024px) {
  body.single-program #topshr.jci-program-hero {
    position: relative;
    top: auto;
    z-index: 1;
    margin-bottom: 0;
    box-shadow: none;
  }
}

@media (min-width: 769px) {
  body.single-program .jci-container--program .col-8 > p:has(+ .aaccordion) {
    max-width: 80%;
  }
}

/*
 * Course topic accordion.
 *
 * The legacy stylesheet can replace `.fletxa.icon` with a horizontal arrow
 * and can leave the icon in the normal text flow. Target the existing
 * `.thinline2` topic rows as well as the newer component class so the real
 * FAQ chevron remains visible and aligned to the far right.
 */
body.single-program .jci-course-topic-accordion > .aaccordion-item,
body.single-program .aaccordion > .aaccordion-item.thinline2 {
  padding: 0 10px;
}

body.single-program .jci-course-topic-accordion > .aaccordion-item > .aaccordion-header,
body.single-program .aaccordion > .aaccordion-item.thinline2 > .aaccordion-header {
  display: grid !important;
  grid-template-columns: minmax(64px, auto) minmax(0, 1fr) 20px !important;
  align-items: center !important;
  column-gap: clamp(16px, 2vw, 28px) !important;
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 10px 0 !important;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: default;
  appearance: none;
}

body.single-program .jci-course-topic-accordion > .aaccordion-item > button.aaccordion-header,
body.single-program .aaccordion > .aaccordion-item.thinline2 > button.aaccordion-header {
  cursor: pointer;
}

body.single-program .jci-course-topic-accordion > .aaccordion-item > .aaccordion-header > span:first-child,
body.single-program .aaccordion > .aaccordion-item.thinline2 > .aaccordion-header > span:first-child {
  grid-column: 1;
  min-width: 0;
}

body.single-program .jci-course-topic-accordion > .aaccordion-item > .aaccordion-header > span:nth-child(2),
body.single-program .aaccordion > .aaccordion-item.thinline2 > .aaccordion-header > span:nth-child(2) {
  grid-column: 2;
  min-width: 0;
}

body.single-program .jci-course-topic-accordion__index {
  color: var(--color-brand-blue, #487cff);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.3;
}

body.single-program .jci-course-topic-accordion__title {
  color: var(--bs-body-color);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.35;
  text-transform: none;
}

body.single-program .jci-course-topic-accordion > .aaccordion-item > .aaccordion-content,
body.single-program .aaccordion > .aaccordion-item.thinline2 > .aaccordion-content {
  padding-left: calc(64px + clamp(16px, 2vw, 28px)) !important;
}

body.single-program .jci-course-topic-accordion .jci-course-topic-accordion__icon,
body.single-program .aaccordion > .aaccordion-item.thinline2 > .aaccordion-header > img:last-child {
  content: normal !important;
  position: static !important;
  inset: auto !important;
  display: block !important;
  grid-column: 3 !important;
  justify-self: end !important;
  align-self: start !important;
  float: none !important;
  width: 20px !important;
  min-width: 20px !important;
  max-width: 20px !important;
  height: auto !important;
  margin: 2px 0 0 !important;
  padding: 0 !important;
  object-fit: contain !important;
  transform: none;
  transition: transform 180ms ease;
}

body.single-program .jci-course-topic-accordion > .aaccordion-item.active > .aaccordion-header .jci-course-topic-accordion__icon,
body.single-program .aaccordion > .aaccordion-item.thinline2.active > .aaccordion-header > img:last-child {
  transform: rotate(180deg);
}

body.single-program .jci-course-topic-accordion > .aaccordion-item > .aaccordion-header:focus-visible,
body.single-program .aaccordion > .aaccordion-item.thinline2 > .aaccordion-header:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 4px;
}

@media (max-width: 768px) {
  body.single-program .jci-course-topic-accordion > .aaccordion-item > .aaccordion-header,
  body.single-program .aaccordion > .aaccordion-item.thinline2 > .aaccordion-header {
    grid-template-columns: 32px minmax(0, 1fr) 18px !important;
    align-items: center !important;
    column-gap: 10px !important;
    padding: 12px 0 !important;
  }

  body.single-program .jci-course-topic-accordion__index {
    font-size: 12px;
    line-height: 1.35;
  }

  body.single-program .jci-course-topic-accordion__title {
    font-size: 14px;
    line-height: 1.35;
  }

  body.single-program .jci-course-topic-accordion > .aaccordion-item > .aaccordion-content,
  body.single-program .aaccordion > .aaccordion-item.thinline2 > .aaccordion-content {
    padding-left: 42px !important;
  }

  body.single-program .jci-course-topic-accordion .jci-course-topic-accordion__icon,
  body.single-program .aaccordion > .aaccordion-item.thinline2 > .aaccordion-header > img:last-child {
    width: 18px !important;
    min-width: 18px !important;
    max-width: 18px !important;
    height: auto !important;
    align-self: start !important;
    margin-top: 1px !important;
  }
}



/* Course content spacing and existing utility adjustments. */
body.single-program #topshr2 ~ .row strong.font18.blue + .blues.margtop20 li {
  margin-bottom: 10px;
}

body.single-program .bordersblue:not(.jci-short-program-start-banner):not(.jci-short-program-closing-cta) {
  padding: 15px 5px !important;
}

body.single-program .bordersblue.row:not(.jci-short-program-start-banner) + .row.rowmobile.container-inner {
  margin-top: 80px !important;
}

body.single-program #topshr2 ~ .row.container-inner.margtop100 {
  margin-top: 100px !important;
}

body.single-program #topshr2 ~ .row.container-inner.margtop100 + .row.container-inner.margtop20 .col-6 > img.w100 {
  width: 80%;
  max-width: 100%;
  height: auto;
}

body.single-program .bgdarkblue .white,
body.single-program .bgdarkblue .white p {
  color: #fff !important;
}

body.single-program .container-inner.thin.bordersblue:not(.row):not(.jci-short-program-closing-cta) {
  margin-top: 80px !important;
  margin-bottom: 80px !important;
}

body.single-program .container-inner.thin.bordersblue:not(.row):not(.jci-short-program-closing-cta) > .row {
  padding-top: 30px !important;
  padding-bottom: 30px !important;
}

body.single-program .container-inner.thin.bordersblue:not(.row):not(.jci-short-program-closing-cta) h2 {
  font-size: 35px !important;
  font-weight: 600 !important;
  letter-spacing: -1px !important;
}


@media (prefers-reduced-motion: reduce) {
body.single-program #topshr.jci-program-hero--course .jci-program-hero__compact,
body.single-program .aaccordion .aaccordion-header .jci-faqs__icon {
    transition: none;
  }
}

/* Long Program tablet hero.
 *
 * Mobile remains stacked through 768px and desktop keeps the approved 373px
 * composition from 1025px. Between those states, keep the same semantic hero
 * but reduce type/action pressure and give the artwork a reliable media track.
 * Title variables preserve the existing desktop values without another
 * specificity layer. */
@media (min-width: 769px) and (max-width: 1024px) {
  body.single-program.jci-long-program-page #topshr.jci-program-hero--master {
    --jci-long-hero-title-size: clamp(34px, 4.5vw, 44px);
    --jci-long-hero-title-line-height: 1.04;
  }
}
body.single-program #topshr .jci-program-hero__compact-image--vector {
  object-fit: contain;
  object-position: center center;
}

/* Expanded Program hero: one layout owner for Long and Short.
 * The four siblings retain their mobile reading order. Desktop reserves real
 * tracks for Partners and media; images cannot contribute intrinsic row height.
 * The compact Course hero above retains its existing positioning/JS contract. */
body.single-program #topshr {
  --jci-hero-partner-width: clamp(136px, 12vw, 180px);
  --jci-hero-column-gap: clamp(24px, 2.2vw, 36px);
  --jci-hero-block-padding: clamp(48px, 4vw, 64px);
  --jci-hero-media-fraction: 0.9fr;
}

body.single-program #topshr.jci-program-hero--artwork-vertical {
  --jci-hero-media-fraction: 0.55fr;
}

body.single-program #topshr.jci-program-hero--artwork-horizontal {
  --jci-hero-media-fraction: 1fr;
}

body.single-program #topshr .jci-program-hero__inner {
  display: grid;
  width: 100%;
  max-width: none;
  min-width: 0;
  margin: 0;
  background: #ecf2ff;
}

body.single-program #topshr .jci-program-hero__content,
body.single-program #topshr .jci-program-hero__media,
body.single-program #topshr .jci-program-hero__partners,
body.single-program #topshr .jci-program-hero__expanded-actions {
  min-width: 0;
  max-width: 100%;
  margin: 0;
}

body.single-program #topshr .jci-program-hero__content {
  width: 100%;
  padding: 0;
}

/* Interior-page H1 compatibility is scoped away from the expanded Program title. */
body.single-program > .site-wrapper .site-main #topshr h1.jci-program-hero__title {
  display: block;
  width: 100%;
  max-width: none !important;
  margin: 0;
  color: var(--jci-program-hero-title-color);
  font-family: "DM Sans", "DM Sans Fallback", sans-serif;
  font-weight: 800;
  letter-spacing: var(--jci-program-hero-title-tracking);
  text-transform: none;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: normal;
  text-wrap: wrap;
}

body.single-program #topshr .jci-program-hero__title-primary,
body.single-program #topshr .jci-program-hero__title-secondary,
body.single-program #topshr .jci-program-hero__subtitle {
  display: block;
}

body.single-program #topshr .jci-program-hero__title-secondary {
  margin-top: 8px;
  font-size: clamp(24px, 1.8vw, 36px);
  font-weight: 600;
  line-height: 1.12;
}

body.single-program #topshr .jci-program-hero__subtitle {
  margin-top: 8px;
  color: var(--color-brand-blue, #487cff);
  font-size: clamp(24px, 1.1vw, 25px);
  font-weight: 400;
  line-height: 1.35;
  letter-spacing: normal;
}

body.single-program #topshr .jci-program-hero__expanded-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  align-content: flex-start;
  gap: 12px 20px;
  padding: 0;
}

body.single-program #topshr .jci-program-hero__expanded-actions .jci-program-hero__cta {
  max-width: 100%;
  min-width: 0;
  height: auto;
  min-height: 38px;
  padding-block: 10px;
  line-height: 1.15;
  white-space: normal;
}

body.single-program #topshr .jci-program-hero__expanded-actions .jci-program-hero__cta > span {
  min-width: 0;
  overflow-wrap: anywhere;
}

body.single-program #topshr .jci-program-hero__partners-label {
  display: block;
  margin-bottom: 16px;
  font-size: 14px;
  line-height: 1.3;
}

body.single-program #topshr .jci-program-hero__partner-logos {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: flex-start;
}

body.single-program #topshr .jci-program-hero__partner-logo {
  display: block;
  flex: 0 1 auto;
  width: auto;
  height: auto;
  max-width: min(100%, 150px);
  max-height: 44px;
  object-fit: contain;
}

@media (min-width: 1025px) {
  body.single-program #topshr .jci-program-hero__inner {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto 1fr;
    column-gap: var(--jci-hero-column-gap);
    row-gap: 28px;
    padding: var(--jci-hero-block-padding) var(--jci-container-page-edge);
  }

  body.single-program #topshr.jci-program-hero--course .jci-program-hero__inner {
    min-height: 373px;
  }

  body.single-program #topshr.jci-program-hero--has-image .jci-program-hero__inner {
    grid-template-columns: minmax(0, 1fr) minmax(0, var(--jci-hero-media-fraction));
  }

  body.single-program #topshr.jci-program-hero--has-partners .jci-program-hero__inner {
    grid-template-columns: minmax(0, 1fr) var(--jci-hero-partner-width);
  }

  body.single-program #topshr.jci-program-hero--has-partners.jci-program-hero--has-image .jci-program-hero__inner {
    grid-template-columns: minmax(0, 1fr) var(--jci-hero-partner-width) minmax(0, var(--jci-hero-media-fraction));
  }

  body.single-program #topshr .jci-program-hero__content {
    grid-column: 1;
    grid-row: 1;
  }

  body.single-program #topshr .jci-program-hero__expanded-actions {
    grid-column: 1;
    grid-row: 2;
    align-self: start;
  }

  body.single-program #topshr .jci-program-hero__partners {
    grid-column: 2;
    grid-row: 1 / 3;
    align-self: start;
    border-left: 1px solid #66758d;
    padding-left: 24px;
    text-align: center;
  }

  body.single-program #topshr .jci-program-hero__partner-logos {
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: center;
  }

  body.single-program #topshr .jci-program-hero__media {
    position: relative;
    grid-column: 2;
    grid-row: 1 / 3;
    align-self: stretch;
    margin-block: calc(-1 * var(--jci-hero-block-padding));
  }

  body.single-program #topshr.jci-program-hero--has-partners .jci-program-hero__media {
    grid-column: 3;
  }

  body.single-program #topshr .jci-program-hero__image {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    margin: 0;
    object-fit: contain;
    object-position: right center;
  }

  body.single-program > .site-wrapper .site-main #topshr h1.jci-program-hero__title {
    font-size: var(--jci-long-hero-title-size, clamp(48px, 3vw, 76px)) !important;
    line-height: var(--jci-long-hero-title-line-height, 55px) !important;
  }
}

/* Tablet reserves a full-height image track and keeps partners in normal flow
 * with the copy. Three narrow desktop columns would compromise legibility. */
@media (min-width: 769px) and (max-width: 1024px) {
  body.single-program #topshr .jci-program-hero__inner {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto 1fr;
    gap: 24px;
    padding: 32px var(--jci-container-page-edge);
  }

  body.single-program #topshr.jci-program-hero--course .jci-program-hero__inner {
    min-height: 340px;
  }

  body.single-program #topshr.jci-program-hero--has-image .jci-program-hero__inner {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  }

  body.single-program #topshr.jci-program-hero--has-partners .jci-program-hero__inner {
    grid-template-rows: auto auto 1fr;
  }

  body.single-program #topshr .jci-program-hero__content {
    grid-column: 1;
    grid-row: 1;
  }

  body.single-program #topshr .jci-program-hero__partners {
    grid-column: 1;
    grid-row: 2;
  }

  body.single-program #topshr .jci-program-hero__expanded-actions {
    grid-column: 1;
    grid-row: 2;
    align-self: start;
    gap: 10px;
  }

  body.single-program #topshr.jci-program-hero--has-partners .jci-program-hero__expanded-actions {
    grid-row: 3;
  }

  body.single-program #topshr .jci-program-hero__media {
    position: relative;
    grid-column: 2;
    grid-row: 1 / -1;
    margin-block: -32px;
  }

  body.single-program #topshr .jci-program-hero__image {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    margin: 0;
    object-fit: contain;
    object-position: right center;
  }

  body.single-program #topshr.jci-program-hero--course .jci-program-hero__image:not(.jci-program-hero__image--vector) {
    object-fit: cover;
    object-position: center;
  }

  body.single-program > .site-wrapper .site-main #topshr h1.jci-program-hero__title {
    font-size: var(--jci-long-hero-title-size, clamp(34px, 4.4vw, 44px)) !important;
    line-height: var(--jci-long-hero-title-line-height, 1.06) !important;
  }

  body.single-program #topshr .jci-program-hero__title-secondary {
    font-size: clamp(20px, 2.5vw, 25px);
  }

  body.single-program #topshr .jci-program-hero__subtitle {
    font-size: clamp(17px, 2.1vw, 21px);
  }

  body.single-program #topshr .jci-program-hero__partners-label {
    margin-bottom: 12px;
  }
}

@media (max-width: 768px) {
  body.single-program #topshr .jci-program-hero__inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
    padding: 52px var(--jci-container-gutter-mobile, 16px) 20px;
  }

  body.single-program > .site-wrapper .site-main #topshr h1.jci-program-hero__title {
    font-size: var(--jci-program-hero-mobile-title-size, 40px) !important;
    line-height: var(--jci-program-hero-mobile-title-line-height, 1.06) !important;
  }

  body.single-program #topshr .jci-program-hero__title-secondary {
    margin-top: 4px;
    font-size: 0.82em;
    line-height: 1.1;
  }

  body.single-program #topshr .jci-program-hero__subtitle {
    margin-top: 8px;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.3;
  }

  body.single-program #topshr .jci-program-hero__media {
    overflow: hidden;
    aspect-ratio: 16 / 9;
  }

  body.single-program #topshr .jci-program-hero__image {
    display: block;
    width: 100%;
    height: 100%;
    margin: 0;
    object-fit: cover;
    object-position: center;
  }

  body.single-program #topshr .jci-program-hero__image--vector {
    object-fit: contain;
  }

  body.single-program #topshr.jci-program-hero--master.jci-program-hero--has-partners .jci-program-hero__media {
    display: none;
  }

  body.single-program #topshr .jci-program-hero__partners-label {
    display: none;
  }

  body.single-program #topshr .jci-program-hero__partner-logos {
    gap: 16px 20px;
    align-items: flex-start;
  }

  body.single-program #topshr .jci-program-hero__partner-logo {
    max-width: min(42%, 120px);
    max-height: 40px;
  }

  body.single-program #topshr .jci-program-hero__expanded-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    width: 100%;
  }

  body.single-program #topshr .jci-program-hero__expanded-actions .jci-program-hero__cta {
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr) 28px;
    align-items: center;
    gap: 0;
    width: 100%;
    min-height: 42px;
    margin: 0;
    padding: 9px 10px;
    font-size: 16px;
    line-height: 1.1;
    text-align: center;
  }

  body.single-program #topshr .jci-program-hero__expanded-actions .jci-program-hero__cta > span {
    grid-column: 2;
  }

  body.single-program #topshr .jci-program-hero__expanded-actions .jci-program-hero__cta-icon {
    grid-column: 1;
    justify-self: start;
    width: 28px;
    min-width: 28px;
    max-width: 28px;
    height: 12px;
    max-height: 12px;
    margin: 0;
    object-fit: contain;
  }
}

@media (max-width: 420px) {
  body.single-program #topshr .jci-program-hero__expanded-actions {
    grid-template-columns: minmax(0, 1fr);
  }
}
