/**
 * Short Program / Course single
 *
 * Course-specific ownership for the short-program composition. Shared JCI
 * primitives (containers, buttons, FAQs, responsive images and accordions) are
 * reused; this file only defines the short-program layout and mobile reading
 * rhythm.
 */

/* Shared course introduction testimonial geometry. */
body.single-program.jci-short-program-page .jci-testimonial--program > img.fotografia.fotcurs {
  display: block;
  width: 150px;
  max-width: 150px;
  height: auto;
  aspect-ratio: 1.08;
  object-fit: cover;
}

body.single-program.jci-short-program-page .jci-testimonial--program .jci-testimonial__program-attribution {
  display: grid;
  gap: 2px;
  margin: 12px 0 0;
}

body.single-program.jci-short-program-page .jci-testimonial--program .jci-testimonial__program-attribution :where(strong, span) {
  display: block;
}

/* Course section headings share one visual hierarchy rather than inheriting
 * independent legacy utility scales. */
body.single-program.jci-short-program-page .jci-short-program-section-title {
  margin: 0;
  padding: 0;
  color: var(--bs-body-color);
  font-family: "DM Sans", sans-serif;
  font-size: 26px;
  font-weight: 500;
  line-height: 32px;
  letter-spacing: -0.018em;
}

/* Course topic labels belong to the Course component on every viewport. The
 * Program-hero accordion primitives keep the mechanics; this layer owns the
 * editorial hierarchy requested by the Course design. */
body.single-program.jci-short-program-page .jci-course-topic-accordion__index {
  align-self: start;
  color: var(--color-brand-navy, #041c40);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.25;
}

body.single-program.jci-short-program-page .jci-course-topic-accordion__title {
  color: var(--color-brand-navy, #041c40);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.3;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

body.single-program.jci-short-program-page .jci-course-topic-accordion > .aaccordion-item {
  border-top: 2px solid rgba(4, 28, 64, 0.72);
}

body.single-program.jci-short-program-page .jci-course-topic-accordion > .aaccordion-item:last-child {
  border-bottom: 2px solid rgba(4, 28, 64, 0.72);
}

/* Course topic content uses the same blue circular cue on desktop and mobile.
 * WYSIWYG topics can arrive as paragraphs or real unordered lists. */
body.single-program.jci-short-program-page .jci-course-topic-accordion > .aaccordion-item > .aaccordion-content > p {
  position: relative;
  padding-left: 18px;
}

body.single-program.jci-short-program-page .jci-course-topic-accordion > .aaccordion-item > .aaccordion-content > p::before {
  content: "";
  position: absolute;
  top: 0.58em;
  left: 0;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--color-brand-blue, #487cff);
}

body.single-program.jci-short-program-page .jci-course-topic-accordion > .aaccordion-item > .aaccordion-content > ul {
  padding-left: 18px;
  list-style: disc;
}

body.single-program.jci-short-program-page .jci-course-topic-accordion > .aaccordion-item > .aaccordion-content > ul > li::marker {
  color: var(--color-brand-blue, #487cff);
}

body.single-program.jci-short-program-page :is(
  .jci-short-program-objectives__competencies ul,
  .jci-short-program-profile__items ul,
  .jci-short-program-protagonist__benefits
) {
  padding-left: 18px;
}

body.single-program.jci-short-program-page :is(
  .jci-short-program-objectives__competencies li,
  .jci-short-program-profile__items li,
  .jci-short-program-protagonist__benefits li
)::marker {
  color: var(--color-brand-blue, #487cff);
  font-size: 1em;
}

/* Related courses reuse the existing native-scroll component. Desktop exposes
 * four cards at once; additional recommendations stay in the horizontal rail. */
body.single-program.jci-short-program-page .jci-short-program-related__heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

body.single-program.jci-short-program-page .jci-short-program-related__nav {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 10px;
}

/* The related-Course rail owns horizontal scrolling internally. Contain that
 * scrolling at the component boundary so flex min-content or transformed card
 * media can never widen the document itself. */
body.single-program.jci-short-program-page .jci-short-program-related {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  contain: paint;
}

body.single-program.jci-short-program-page .jci-short-program-related .programs-grid {
  display: flex;
  align-items: stretch;
  gap: 24px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  padding: 0 0 10px;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

body.single-program.jci-short-program-page .jci-short-program-related .programs-grid::-webkit-scrollbar {
  display: none;
}

body.single-program.jci-short-program-page .jci-short-program-related .jci-program-card--related-course {
  flex: 0 0 calc((100% - 72px) / 4);
  min-width: 0;
  margin-bottom: 0;
  scroll-snap-align: start;
  scroll-snap-stop: normal;
}

body.single-program.jci-short-program-page .jci-short-program-related__toggle {
  display: none;
}




/* Course introduction: one semantic component with a stable desktop two-column
 * composition. Mobile only changes the reading order; content is never duplicated. */
body.single-program.jci-short-program-page .jci-short-program-introduction {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  column-gap: clamp(56px, 5vw, 72px);
  align-items: start;
}

body.single-program.jci-short-program-page .jci-short-program-introduction__title {
  grid-column: 1;
  grid-row: 1 / span 2;
  min-width: 0;
  margin-top: 10px;
}

body.single-program.jci-short-program-page .jci-short-program-introduction__subtitle {
  grid-column: 2;
  grid-row: 1;
  min-width: 0;
}

body.single-program.jci-short-program-page .jci-short-program-introduction__testimonial {
  grid-column: 2;
  grid-row: 2;
  min-width: 0;
}

/* Basic information geometry is shared in program-hero.css. */
body.single-program.jci-short-program-page .jci-short-program-objectives__media {
  margin: 24px 0 0;
  overflow: hidden;
  aspect-ratio: 4 / 3;
}

body.single-program.jci-short-program-page .jci-short-program-objectives__image {
  display: block;
  width: 100%;
  height: 100%;
  margin: 0;
  aspect-ratio: auto;
  object-fit: cover;
  object-position: center;
}


/* Communication and dark-course-benefit sections own their own geometry.
 * Legacy spacing utility classes are not required by these components. */
body.single-program.jci-short-program-page .jci-short-program-communication {
  margin-top: 20px;
}

body.single-program.jci-short-program-page .jci-short-program-communication__inner {
  align-items: center;
  padding-top: 40px;
  padding-bottom: 40px;
}

body.single-program.jci-short-program-page .jci-short-program-communication__content {
  align-self: center;
  padding-top: 0;
}

body.single-program.jci-short-program-page .jci-short-program-communication__content--full {
  width: 100%;
  padding-top: 0;
}

body.single-program.jci-short-program-page .jci-short-program-communication__title {
  margin: 0 0 20px;
  padding-left: 20px;
}

body.single-program.jci-short-program-page .jci-short-program-communication__items {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

body.single-program.jci-short-program-page .jci-short-program-communication__item {
  min-width: 0;
  padding: 0 20px;
}

body.single-program.jci-short-program-page .jci-short-program-communication__icon img {
  display: block;
  width: auto;
  max-width: 48px;
  height: auto;
}

body.single-program.jci-short-program-page .jci-short-program-communication__item p {
  margin: 16px 0 0;
}

body.single-program.jci-short-program-page .jci-short-program-why {
  margin-top: 40px;
  padding-bottom: 40px;
}

body.single-program.jci-short-program-page .jci-short-program-why__inner {
  padding-top: 40px;
}

body.single-program.jci-short-program-page .jci-short-program-why__content {
  margin-top: 40px;
}

@media (min-width: 769px) {
  body.single-program.jci-short-program-page {
    --jci-short-program-section-space-desktop: clamp(72px, 6vw, 88px);
    --jci-short-program-secondary-column-shift: clamp(40px, 3vw, 56px);
  }

  /* Desktop typography contract: 14px body copy, 26px structural headings and
   * larger editorial headings only where the content is intentionally
   * protagonist. Mobile keeps its approved 16px reading scale below. */
  body.single-program.jci-short-program-page .jci-short-program-introduction__title :where(p, li),
  body.single-program.jci-short-program-page .jci-short-program-curriculum > .col-8 > p,
  body.single-program.jci-short-program-page .jci-course-topic-accordion > .aaccordion-item > .aaccordion-content :where(p, li) {
    font-size: 14px;
    line-height: 1.5;
  }

  body.single-program.jci-short-program-page .jci-short-program-introduction__subtitle h3 {
    font-size: clamp(30px, 2.15vw, 36px);
    line-height: 1.12;
    letter-spacing: -0.02em;
  }

  body.single-program.jci-short-program-page .jci-testimonial--program .jci-testimonial__program-quote p {
    font-weight: 700;
  }

  body.single-program.jci-short-program-page :is(
    .jci-short-program-objectives__heading,
    .jci-short-program-protagonist__heading
  ) .jci-short-program-section-title {
    font-size: clamp(32px, 2.35vw, 36px);
    line-height: 1.1;
    letter-spacing: -0.025em;
  }

  body.single-program.jci-short-program-page .jci-short-program-objectives__body,
  body.single-program.jci-short-program-page .jci-short-program-protagonist__body {
    margin-top: 32px;
    align-items: start;
  }

  /* Match the Competencies vertical start to Benefits on desktop. The
   * existing padtop20mobile utility is kept for the stacked mobile layout,
   * but must not add vertical offset to the desktop competencies column. */
  body.single-program.jci-short-program-page .jci-short-program-objectives__body > .col-5.padtop20mobile {
    align-self: start;
    padding-top: 0 !important;
    /* Objectives uses a six-column copy block while Protagonist uses five.
     * Offset Competencies by the one-column difference plus the same shift
     * already used by Benefits so both secondary columns share one axis. */
    transform: translateX(calc(-20% - var(--jci-short-program-secondary-column-shift)));
  }

  /* Keep Benefits at its original five-column measure, but move that column
   * left independently of its width. This preserves the approved reading
   * measure while bringing the block closer to the protagonist copy. */
  body.single-program.jci-short-program-page .jci-short-program-protagonist__body > .col-5:last-child {
    transform: translateX(calc(-1 * var(--jci-short-program-secondary-column-shift)));
  }

  body.single-program.jci-short-program-page :is(
    .jci-short-program-objectives__copy,
    .jci-short-program-objectives__competencies,
    .jci-short-program-profile__items,
    .jci-short-program-protagonist__copy,
    .jci-short-program-protagonist__benefits
  ),
  body.single-program.jci-short-program-page :is(
    .jci-short-program-objectives__copy,
    .jci-short-program-objectives__competencies,
    .jci-short-program-profile__items,
    .jci-short-program-protagonist__copy,
    .jci-short-program-protagonist__benefits
  ) :where(p, li) {
    font-size: 14px;
    line-height: 1.5;
  }

  body.single-program.jci-short-program-page :is(
    .jci-short-program-objectives__copy,
    .jci-short-program-protagonist__copy
  ) {
    max-width: 430px;
  }

  body.single-program.jci-short-program-page :is(
    .jci-short-program-objectives__copy,
    .jci-short-program-protagonist__copy
  ) p {
    margin-top: 0;
    margin-bottom: 16px;
  }

  body.single-program.jci-short-program-page :is(
    .jci-short-program-objectives__competencies-label,
    .jci-short-program-protagonist__benefits-label
  ) {
    margin-bottom: 18px;
  }

  body.single-program.jci-short-program-page :is(
    .jci-short-program-objectives__competencies,
    .jci-short-program-protagonist__benefits
  ) {
    margin-top: 0;
  }

  body.single-program.jci-short-program-page :is(
    .jci-short-program-objectives__competencies,
    .jci-short-program-protagonist__benefits
  ) :where(p, li) {
    margin-top: 0;
    margin-bottom: 12px;
  }

  body.single-program.jci-short-program-page .jci-short-program-objectives__competencies li + li,
  body.single-program.jci-short-program-page .jci-short-program-protagonist__benefits li + li {
    margin-top: 2px;
  }

  body.single-program.jci-short-program-page :is(
    .jci-short-program-objectives__competencies-label,
    .jci-short-program-protagonist__benefits-label
  ) {
    display: block;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.35;
    letter-spacing: 0.02em;
  }

  body.single-program.jci-short-program-page .jci-course-topic-accordion__index {
    color: var(--color-brand-navy, #041c40);
    font-size: 20px;
    font-weight: 500;
    line-height: 1.2;
  }

  body.single-program.jci-short-program-page .jci-course-topic-accordion__title {
    color: var(--color-brand-navy, #041c40);
    font-size: 16px;
    font-weight: 400;
    line-height: 1.3;
    letter-spacing: 0.02em;
    text-transform: uppercase;
  }

  /* Restore the desktop hierarchy from the original Course composition: the
   * section label used the existing 40px medium scale, while the topic/ECTS
   * summary followed the existing 26px heading scale. Keep the semantic
   * component classes instead of bringing legacy utility classes back into the
   * template. */
  body.single-program.jci-short-program-page .jci-short-program-curriculum__title {
    font-size: 40px;
    font-weight: 500;
    line-height: 50px;
    letter-spacing: 0;
  }

  body.single-program.jci-short-program-page .jci-short-program-curriculum__summary {
    display: grid;
    gap: 2px;
    margin: 14px 0 0;
    color: var(--bs-body-color);
    font-size: 26px;
    font-weight: 500;
    line-height: 32px;
    letter-spacing: 0;
  }

  body.single-program.jci-short-program-page .jci-short-program-curriculum__summary-item {
    display: block;
  }

  body.single-program.jci-short-program-page .jci-short-program-curriculum__summary-item + .jci-short-program-curriculum__summary-item::before {
    content: none;
  }

  body.single-program.jci-short-program-page .jci-short-program-start-banner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    gap: 24px;
    padding: 14px 0;
    border-top-width: 1px;
    border-bottom-width: 1px;
  }

  body.single-program.jci-short-program-page .jci-short-program-start-banner > [class*="col-"] {
    width: auto;
    max-width: none;
    padding: 0;
  }

  body.single-program.jci-short-program-page .jci-short-program-start-banner strong {
    font-size: 13px;
    line-height: 1.3;
    letter-spacing: 0.02em;
  }

  body.single-program.jci-short-program-page .jci-short-program-start-banner .font30 {
    margin: 0;
    font-size: clamp(25px, 2vw, 30px);
    font-weight: 400;
    line-height: 1.1;
    text-align: center;
  }

  body.single-program.jci-short-program-page .jci-short-program-start-banner .butstart {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: auto;
    min-height: 40px;
    margin: 0;
    padding: 0 18px;
    border: 1px solid var(--color-brand-blue, #487cff);
    border-radius: 8px;
    font-size: 14px;
    line-height: 1;
  }

  body.single-program.jci-short-program-page .jci-short-program-start-banner .butstart img.fletxa2 {
    width: 18px;
    min-width: 18px;
    max-width: 18px;
    margin: 0;
  }

  body.single-program.jci-short-program-page .jci-short-program-objectives__heading,
  body.single-program.jci-short-program-page .jci-short-program-curriculum,
  body.single-program.jci-short-program-page .jci-short-program-protagonist__heading,
  body.single-program.jci-short-program-page .jci-short-program-related__heading {
    margin-top: var(--jci-short-program-section-space-desktop);
  }

  body.single-program.jci-short-program-page .jci-short-program-related__heading {
    margin-bottom: 28px;
  }

  body.single-program.jci-short-program-page .jci-short-program-closing-cta .btn1 {
    font-size: 14px;
  }


  body.single-program.jci-short-program-page .jci-short-program-communication__inner {
    gap: clamp(28px, 3vw, 48px);
  }

  body.single-program.jci-short-program-page .jci-short-program-communication__title {
    font-size: 16px;
    line-height: 1.4;
  }

  body.single-program.jci-short-program-page .jci-short-program-communication__item p {
    font-size: 14px;
    line-height: 1.5;
  }

  body.single-program.jci-short-program-page .jci-short-program-why {
    margin-top: var(--jci-short-program-section-space-desktop);
    padding-bottom: 0;
  }

  body.single-program.jci-short-program-page .jci-short-program-why__inner {
    padding: clamp(48px, 4vw, 64px) 0;
  }

  body.single-program.jci-short-program-page .jci-short-program-why__heading h2 {
    margin: 0;
    font-size: clamp(32px, 2.8vw, 40px);
    line-height: 1.08;
  }

  body.single-program.jci-short-program-page .jci-short-program-why__content {
    align-items: center;
    gap: clamp(32px, 4vw, 56px);
    margin-top: 28px;
  }

  body.single-program.jci-short-program-page .jci-short-program-why__content p {
    margin: 0 0 16px;
    font-size: 14px;
    line-height: 1.55;
  }

  body.single-program.jci-short-program-page .jci-short-program-why__content p:last-child {
    margin-bottom: 0;
  }

  body.single-program.jci-short-program-page .jci-short-program-related .jci-program-card--related-course {
    flex-basis: calc((100% - 24px) / 2);
  }
}

@media (min-width: 1025px) {
  body.single-program.jci-short-program-page .jci-short-program-related .jci-program-card--related-course {
    flex-basis: calc((100% - 72px) / 4);
  }
}

@media (max-width: 768px) {
  body.single-program.jci-short-program-page {
    --jci-short-program-section-space: clamp(52px, 12vw, 62px);
    --jci-short-program-content-space: 20px;
    --jci-short-program-heading-space: 12px;
    --jci-program-keys-section-space: var(--jci-short-program-section-space);
    --jci-program-keys-content-space: 24px;
    --jci-program-keys-title-space: 8px;
    --jci-short-program-text-space: 16px;
    --jci-course-hero-compact-height: 56px;
  }

  /* Mobile Course has one horizontal layout owner: the canonical program
   * container. Bootstrap rows historically add negative margins and column
   * gutters on top of it; neutralize those at the component boundary so every
   * contained section shares exactly the same 16px/14px mobile axis. */
  body.single-program.jci-short-program-page main .jci-container--program {
    --jci-container-local-gutter: var(--jci-container-gutter-mobile, 16px);
    margin-left: auto !important;
    margin-right: auto !important;
  }

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

  /* A top-level program container can also be a legacy Bootstrap .row. Do not
   * turn that container into a full-width row: its width/margins belong to the
   * canonical container system. Only nested rows are flattened. */
  body.single-program.jci-short-program-page main .jci-container--program.row {
    --bs-gutter-x: 0;
  }

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

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

  body.single-program.jci-short-program-page .jci-testimonial--program > img.fotografia.fotcurs {
    width: min(100%, 360px);
    max-width: 100%;
    height: auto;
    aspect-ratio: auto;
    object-fit: contain;
    object-position: center top;
  }

  /* The shared testimonial still carries a legacy offset caption on mobile.
   * Course owns its program-testimonial geometry: keep image and attribution on
   * the same canonical content axis instead of adding a second 20px inset. */
  body.single-program.jci-short-program-page .jci-testimonial--program .fotografia-desc {
    position: static;
    inset: auto;
    width: 100%;
    max-width: none;
    margin: 14px 0 0;
    padding: 0;
    background: transparent;
    font-size: 14px;
    line-height: 1.45;
  }

  body.single-program.jci-short-program-page .jci-testimonial--program .fotografia-desc * {
    font-size: inherit !important;
  }

  body.single-program.jci-short-program-page .jci-testimonial--program .jci-testimonial__program-quote {
    margin: 0 0 14px;
    padding: 0;
    border: 0;
    color: var(--bs-body-color);
  }

  body.single-program.jci-short-program-page .jci-testimonial--program .jci-testimonial__program-quote p {
    margin: 0;
    font-size: 16px !important;
    font-weight: 600;
    line-height: 1.42;
  }

  body.single-program.jci-short-program-page .jci-testimonial--program .jci-testimonial__program-attribution {
    display: grid;
    gap: 2px;
    margin: 0;
  }

  body.single-program.jci-short-program-page .jci-testimonial--program .jci-testimonial__program-attribution span {
    display: block;
  }

  /* Expanded hero: name, modality, image and one shared action group. */
  body.single-program.jci-short-program-page #topshr.jci-program-hero--course .jci-program-hero__inner {
    display: flex;
    flex-direction: column;
    padding: 28px var(--jci-container-gutter-mobile, 16px) 20px;
  }

  body.single-program.jci-short-program-page #topshr.jci-program-hero--course .jci-program-hero__content {
    display: contents;
  }

  body.single-program.jci-short-program-page #topshr.jci-program-hero--course .jci-program-hero__title {
    order: 1;
  }

  body.single-program.jci-short-program-page #topshr.jci-program-hero--course .jci-program-hero__media {
    order: 2;
    margin: 14px 0 0;
    aspect-ratio: 16 / 9;
    overflow: hidden;
  }

  body.single-program.jci-short-program-page #topshr.jci-program-hero--course .jci-program-hero__image {
    display: block;
    width: 100%;
    height: 100%;
    aspect-ratio: auto;
    margin: 0;
    object-fit: cover;
    object-position: center;
  }

  body.single-program.jci-short-program-page #topshr.jci-program-hero--course .jci-program-hero__expanded-actions {
    order: 3;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    width: 100%;
    margin: 14px 0 0;
    padding: 0;
  }

  body.single-program.jci-short-program-page #topshr.jci-program-hero--course .jci-program-hero__expanded-actions .jci-program-hero__cta {
    display: grid !important;
    grid-template-columns: 16px minmax(0, 1fr) 16px;
    align-items: center;
    gap: 0;
    width: 100%;
    min-width: 0;
    min-height: 42px;
    margin: 0;
    padding: 9px 10px;
    border: 1px solid transparent;
    border-radius: 8px;
    font-family: "DM Sans", sans-serif;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.1;
    text-align: center;
    white-space: normal;
    box-shadow: none;
  }

  body.single-program.jci-short-program-page #topshr.jci-program-hero--course .jci-program-hero__expanded-actions .jci-program-hero__cta > span {
    grid-column: 2;
    min-width: 0;
    text-align: center;
  }

  body.single-program.jci-short-program-page #topshr.jci-program-hero--course .jci-program-hero__expanded-actions .jci-program-hero__cta--primary {
    background: var(--color-brand-blue, #487cff);
    color: #fff;
  }

  body.single-program.jci-short-program-page #topshr.jci-program-hero--course .jci-program-hero__expanded-actions .jci-program-hero__cta--outline {
    border-color: var(--color-brand-navy, #041c40);
    background: #fff;
    color: var(--color-brand-navy, #041c40);
  }

  body.single-program.jci-short-program-page #topshr.jci-program-hero--course .jci-program-hero__expanded-actions .jci-program-hero__cta-icon,
  body.single-program.jci-short-program-page #topshr.jci-program-hero--course .jci-program-hero__expanded-actions img.fletxa2 {
    content: normal !important;
    grid-column: 1;
    justify-self: start;
    float: none;
    width: 16px;
    min-width: 16px;
    max-width: 16px;
    height: 12px;
    margin: 0;
    object-fit: contain;
  }

  /* Existing compact hero becomes the lightweight mobile context + CTA bar. */
  body.single-program.jci-short-program-page #topshr.jci-program-hero--course .jci-program-hero__compact {
    position: fixed;
    top: var(--jci-header-visual-offset, var(--jci-header-offset, 64px));
    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;
    background: #ecf2ff;
    border-bottom: 1px solid rgba(4, 28, 64, 0.1);
    box-shadow: 0 3px 8px rgba(14, 28, 64, 0.08);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-4px);
    transition:
      opacity 120ms ease,
      transform 120ms ease,
      visibility 0s linear 120ms;
  }

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

  body.single-program.jci-short-program-page #topshr.jci-program-hero--course .jci-program-hero__compact-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    width: 100%;
    height: 100%;
    min-height: var(--jci-course-hero-compact-height);
    padding: 6px var(--jci-container-gutter-mobile, 16px);
  }

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

  body.single-program.jci-short-program-page #topshr.jci-program-hero--course .jci-program-hero__compact-title {
    width: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden;
    color: var(--bs-body-color);
    font-family: "DM Sans", sans-serif;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.2;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  body.single-program.jci-short-program-page #topshr.jci-program-hero--course :is(
    .jci-program-hero__compact-title-secondary,
    .jci-program-hero__compact-subtitle,
    .jci-program-hero__compact-media,
    .jci-program-hero__compact-actions .btn2,
    .jci-program-hero__compact-actions .btn11
  ) {
    display: none;
  }

  body.single-program.jci-short-program-page #topshr.jci-program-hero--course .jci-program-hero__compact-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    min-width: 0;
    margin: 0;
    padding: 0;
  }

  body.single-program.jci-short-program-page #topshr.jci-program-hero--course .jci-program-hero__compact-actions .btn1 {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: auto !important;
    min-width: 0;
    min-height: 38px;
    height: 38px;
    margin: 0;
    padding: 0 13px;
    border-radius: 8px;
    font-size: 13px;
    line-height: 1;
    white-space: nowrap;
  }

  body.single-program.jci-short-program-page #topshr.jci-program-hero--course .jci-program-hero__compact-actions .btn1 img.fletxa2 {
    content: normal !important;
    float: none;
    width: 14px;
    min-width: 14px;
    max-width: 14px;
    height: 10px;
    margin: 0;
  }

  /* Shared mobile reading rhythm. */
  body.single-program.jci-short-program-page #topshr2.jci-container--program {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
    margin-top: var(--jci-short-program-section-space);
  }

  body.single-program.jci-short-program-page .jci-short-program-introduction__subtitle,
  body.single-program.jci-short-program-page .jci-short-program-introduction__title,
  body.single-program.jci-short-program-page .jci-short-program-introduction__testimonial {
    grid-column: 1;
    grid-row: auto;
    min-width: 0;
    margin-top: 0;
  }

  body.single-program.jci-short-program-page .jci-short-program-introduction__subtitle {
    order: 1;
  }

  body.single-program.jci-short-program-page .jci-short-program-introduction__title {
    order: 2;
  }

  body.single-program.jci-short-program-page .jci-short-program-introduction__testimonial {
    order: 3;
  }

  body.single-program.jci-short-program-page #topshr2.jci-container--program h3 {
    margin: 0;
    padding: 0;
    font-size: clamp(22px, 6.1vw, 26px);
    line-height: 1.16;
    letter-spacing: -0.015em;
  }

  body.single-program.jci-short-program-page #topshr2.jci-container--program p,
  body.single-program.jci-short-program-page .jci-container--program p,
  body.single-program.jci-short-program-page .jci-container--program li {
    font-size: 16px;
    line-height: 1.55;
  }

  /* These three blocks previously received 16px/22px from the legacy `.font16`
   * utility. Preserve that approved mobile rendering after removing the utility
   * from the markup; desktop now owns its typography semantically. */
  body.single-program.jci-short-program-page .jci-short-program-introduction__title :where(p, li) {
    font-size: 16px;
    line-height: 22px;
  }

  body.single-program.jci-short-program-page .jci-container--program.margtop100,
  body.single-program.jci-short-program-page .jci-container--program.margtop60 {
    margin-top: var(--jci-short-program-section-space);
  }

  body.single-program.jci-short-program-page .jci-container--program.margtop40 {
    margin-top: clamp(40px, 10vw, 52px);
  }

  body.single-program.jci-short-program-page .jci-short-program-section-title,
  body.single-program.jci-short-program-page .jci-faqs > h2 {
    font-size: clamp(26px, 7vw, 30px);
    line-height: 1.1;
    letter-spacing: -0.02em;
  }

  body.single-program.jci-short-program-page .jci-container--program .w100,
  body.single-program.jci-short-program-page .jci-short-program-objectives__image {
    display: block;
    width: 100%;
    height: auto;
  }

  body.single-program.jci-short-program-page .jci-short-program-objectives__media {
    overflow: visible;
    aspect-ratio: auto;
  }

  body.single-program.jci-short-program-page .jci-short-program-objectives__image {
    height: auto;
    aspect-ratio: auto;
    object-fit: contain;
  }


  /* Text rhythm: Course uses one spacing contract instead of inheriting the
   * assorted paragraph/list margins from legacy utility classes. */
  body.single-program.jci-short-program-page .jci-short-program-introduction__title > :first-child,
  body.single-program.jci-short-program-page .jci-short-program-introduction__subtitle > :first-child,
  body.single-program.jci-short-program-page .jci-short-program-objectives__body > [class*="col-"] > :first-child,
  body.single-program.jci-short-program-page .jci-short-program-protagonist__body > [class*="col-"] > :first-child {
    margin-top: 0;
  }

  body.single-program.jci-short-program-page .jci-short-program-introduction__title p,
  body.single-program.jci-short-program-page .jci-short-program-objectives__body p,
  body.single-program.jci-short-program-page .jci-short-program-protagonist__body p {
    margin-top: 0;
    margin-bottom: var(--jci-short-program-text-space);
  }

  body.single-program.jci-short-program-page .jci-short-program-introduction__title p:last-child,
  body.single-program.jci-short-program-page .jci-short-program-objectives__body p:last-child,
  body.single-program.jci-short-program-page .jci-short-program-protagonist__body p:last-child {
    margin-bottom: 0;
  }

  body.single-program.jci-short-program-page :is(
    .jci-short-program-objectives__heading,
    .jci-short-program-profile__heading,
    .jci-short-program-protagonist__heading
  ) > [class*="col-"] > :first-child {
    margin-top: 0;
    margin-bottom: 0;
  }

  body.single-program.jci-short-program-page :is(
    .jci-short-program-profile__heading,
    .jci-short-program-protagonist__heading
  ) {
    margin-top: var(--jci-short-program-section-space);
  }

  body.single-program.jci-short-program-page :is(
    .jci-short-program-objectives__body,
    .jci-short-program-profile__items,
    .jci-short-program-protagonist__body
  ) ul {
    margin-top: 0;
    margin-bottom: 0;
  }

  /* Editorial lists use the same reading rhythm as the surrounding body copy.
   * ACF/WYSIWYG content can wrap list text in <p>, so normalize both the list
   * item and any direct paragraph rather than letting the generic paragraph
   * line-height re-open the text inside bullets. */
  body.single-program.jci-short-program-page :is(
    .jci-short-program-objectives__body,
    .jci-short-program-profile__items,
    .jci-short-program-protagonist__body
  ) li {
    margin: 0;
    line-height: 1.4;
  }

  body.single-program.jci-short-program-page :is(
    .jci-short-program-objectives__body,
    .jci-short-program-profile__items,
    .jci-short-program-protagonist__body
  ) li > :where(p, div) {
    margin: 0;
    line-height: inherit;
  }

  body.single-program.jci-short-program-page :is(
    .jci-short-program-objectives__body,
    .jci-short-program-profile__items,
    .jci-short-program-protagonist__body
  ) li + li {
    margin-top: 6px;
  }

  /* Basic information begins a new section after the intro testimonial. Its
   * internal rendering is shared with long Programs in program-hero.css. */
  body.single-program.jci-short-program-page .jci-program-basic-information {
    margin-top: calc(var(--jci-short-program-section-space) + 10px);
  }

  /* Objectives follows Basic information with the normal section rhythm.
   * Legacy .margtop100 is intentionally not used here. */
  body.single-program.jci-short-program-page .jci-short-program-objectives__heading {
    margin-top: var(--jci-short-program-section-space);
  }

  /* Objectives/profile blocks use the same axes and internal spacing. */
  body.single-program.jci-short-program-page :is(
    .jci-short-program-objectives__body,
    .jci-short-program-profile__items,
    .jci-short-program-protagonist__body
  ) {
    margin-top: var(--jci-short-program-content-space);
  }

  body.single-program.jci-short-program-page :is(
    .jci-short-program-objectives__body,
    .jci-short-program-protagonist__body
  ) {
    gap: 22px;
  }


  body.single-program.jci-short-program-page :is(
    .jci-short-program-objectives__competencies-label,
    .jci-short-program-protagonist__benefits-label
  ) {
    display: block;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.35;
    letter-spacing: 0.02em;
  }

  body.single-program.jci-short-program-page :is(
    .jci-short-program-objectives__copy,
    .jci-short-program-objectives__competencies,
    .jci-short-program-profile__items,
    .jci-short-program-protagonist__copy,
    .jci-short-program-protagonist__benefits
  ),
  body.single-program.jci-short-program-page :is(
    .jci-short-program-objectives__copy,
    .jci-short-program-objectives__competencies,
    .jci-short-program-profile__items,
    .jci-short-program-protagonist__copy,
    .jci-short-program-protagonist__benefits
  ) :where(p, li) {
    font-size: 16px;
    line-height: 1.45;
  }

  body.single-program.jci-short-program-page :is(
    .jci-short-program-objectives__competencies-label,
    .jci-short-program-protagonist__benefits-label
  ) {
    margin-bottom: 12px;
  }

  body.single-program.jci-short-program-page :is(
    .jci-short-program-objectives__competencies,
    .jci-short-program-protagonist__benefits
  ) {
    margin-top: 0;
  }

  /* Start-date banner: centered CTA label + arrow and a clean mobile stack. */
  body.single-program.jci-short-program-page .jci-short-program-start-banner,
  body.single-program.jci-short-program-page .jci-short-program-closing-cta {
    display: grid;
    gap: 10px;
    padding: 22px 0 !important;
    border-top-width: 1px;
    border-bottom-width: 1px;
  }

  body.single-program.jci-short-program-page .jci-short-program-start-banner {
    margin-top: var(--jci-short-program-section-space);
  }

  body.single-program.jci-short-program-page .jci-short-program-start-banner > [class*="col-"],
  body.single-program.jci-short-program-page .jci-short-program-closing-cta > .row > [class*="col-"] {
    width: 100%;
    max-width: none;
    padding: 0;
    text-align: left;
  }

  body.single-program.jci-short-program-page .jci-short-program-start-banner .font30,
  body.single-program.jci-short-program-page .jci-short-program-closing-cta .font30 {
    font-size: 24px;
    line-height: 1.2;
  }

  body.single-program.jci-short-program-page .jci-short-program-closing-cta h2 {
    margin: 0;
    line-height: 1.14;
    letter-spacing: -0.02em;
  }

  body.single-program.jci-short-program-page :is(
    .jci-short-program-start-banner,
    .jci-short-program-closing-cta
  ) .btn1 {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    min-height: 42px;
    margin-top: 8px;
    text-align: center;
  }

  body.single-program.jci-short-program-page :is(
    .jci-short-program-start-banner,
    .jci-short-program-closing-cta
  ) .btn1 img.fletxa2 {
    float: none;
    margin: 0;
  }

  /* Curriculum hierarchy + top-aligned topic controls. */
  body.single-program.jci-short-program-page .jci-short-program-curriculum {
    display: grid;
    gap: 20px;
    margin-top: var(--jci-short-program-section-space);
  }

  body.single-program.jci-short-program-page .jci-short-program-curriculum > [class*="col-"] {
    width: 100%;
    max-width: none;
    padding: 0;
  }

  body.single-program.jci-short-program-page .jci-short-program-curriculum__title {
    margin: 0;
    padding: 0;
  }

  body.single-program.jci-short-program-page .jci-short-program-curriculum__summary {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 8px;
    margin: 8px 0 0;
    color: #667085;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
  }

  body.single-program.jci-short-program-page .jci-short-program-curriculum__summary-item + .jci-short-program-curriculum__summary-item::before {
    content: "·";
    margin-right: 8px;
    color: #98a2b3;
  }

  body.single-program.jci-short-program-page .jci-course-topic-accordion {
    max-width: none;
    margin: 18px 0 0;
  }

  body.single-program.jci-short-program-page .jci-course-topic-accordion > .aaccordion-item {
    padding-inline: 0;
  }


  body.single-program.jci-short-program-page .jci-course-topic-accordion > .aaccordion-item > .aaccordion-header {
    min-height: 44px;
  }

  /* Topic bodies are compact study-plan items, not long-form paragraphs.
   * Normalize WYSIWYG paragraphs/lists at the accordion component boundary so
   * legacy global paragraph and accordion-list spacing cannot inflate them. */
  body.single-program.jci-short-program-page .jci-course-topic-accordion > .aaccordion-item > .aaccordion-content :where(p, li) {
    margin-top: 0;
    margin-bottom: 6px;
    line-height: 1.35;
  }

  body.single-program.jci-short-program-page .jci-course-topic-accordion > .aaccordion-item > .aaccordion-content :where(ul, ol) {
    margin: 0;
  }

  /* Blue markers are shared above; mobile only owns the compact text rhythm. */
  body.single-program.jci-short-program-page .jci-course-topic-accordion > .aaccordion-item > .aaccordion-content li > :where(p, div) {
    margin: 0;
    line-height: inherit;
  }

  body.single-program.jci-short-program-page .jci-course-topic-accordion > .aaccordion-item > .aaccordion-content :where(p, li):last-child {
    margin-bottom: 0;
  }

  body.single-program.jci-short-program-page .jci-course-topic-accordion > .aaccordion-item.active > .aaccordion-content {
    padding-bottom: 20px !important;
  }

  /* Communication block: content-sized, no inherited desktop min-space or
   * empty placeholder columns. */
  body.single-program.jci-short-program-page .jci-short-program-communication {
    margin-top: var(--jci-short-program-section-space);
  }

  body.single-program.jci-short-program-page .jci-short-program-communication__inner {
    gap: 24px;
    padding-top: 28px;
    padding-bottom: 28px;
  }

  body.single-program.jci-short-program-page .jci-short-program-communication__content {
    width: 100%;
    max-width: none;
    padding-top: 0;
  }

  body.single-program.jci-short-program-page .jci-short-program-communication__title {
    margin: 0 0 12px;
    padding-left: 0;
    font-size: 16px;
    line-height: 22px;
  }

  body.single-program.jci-short-program-page .jci-short-program-communication__items {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
  }

  body.single-program.jci-short-program-page .jci-short-program-communication__item {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr);
    align-items: start;
    gap: 12px;
    padding: 12px 0;
    border-left: 0;
    border-top: 1px solid rgba(4, 28, 64, 0.14);
  }

  body.single-program.jci-short-program-page .jci-short-program-communication__item:first-child {
    border-top: 0;
  }

  body.single-program.jci-short-program-page .jci-short-program-communication__icon img {
    max-width: 40px;
  }

  body.single-program.jci-short-program-page .jci-short-program-communication__item p {
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
  }

  /* Related courses: native horizontal swipe, no new JS/library. */
  body.single-program.jci-short-program-page .jci-short-program-related__heading {
    display: block;
    margin-top: var(--jci-short-program-section-space);
    margin-bottom: 0;
    padding-bottom: 20px;
  }

  body.single-program.jci-short-program-page .jci-short-program-related__nav {
    display: none;
  }

  body.single-program.jci-short-program-page .jci-short-program-related {
    padding-bottom: 0;
  }

  body.single-program.jci-short-program-page .jci-short-program-related .programs-grid {
    display: flex;
    margin-top: 2px;
    grid-template-columns: none;
    align-items: stretch;
    gap: 16px;
    width: 100%;
    max-width: 100%;
    padding: 0 0 12px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: 0;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  body.single-program.jci-short-program-page .jci-short-program-related .programs-grid::-webkit-scrollbar {
    display: none;
  }

  body.single-program.jci-short-program-page .jci-short-program-related .jci-program-card--related-course {
    flex: 0 0 min(84%, 310px);
    min-width: 0;
    margin-bottom: 0;
    scroll-snap-align: start;
  }

  body.single-program.jci-short-program-page .jci-short-program-related .jci-program-card--related-course[hidden] {
    display: none;
  }

  /* Progressive disclosure remains the existing link/JS component, but mobile
   * presents it as a narrow final swipe column. The text stays in the
   * accessibility tree while the existing down chevron is rotated to indicate
   * horizontal continuation. */
  body.single-program.jci-short-program-page .jci-short-program-related__toggle {
    display: flex;
    flex: 0 0 64px;
    align-self: stretch;
    grid-column: auto;
    width: 64px;
    min-width: 64px;
    min-height: 0;
    margin: 0;
    padding: 0;
    background: #ecf2ff;
    border: 0;
    border-radius: 0;
    scroll-snap-align: end;
    text-decoration: none;
  }

  body.single-program.jci-short-program-page .jci-short-program-related__toggle .font18 {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    min-height: 100%;
    margin: 0;
    font-size: 0;
    line-height: 0;
  }

  body.single-program.jci-short-program-page .jci-short-program-related__toggle .fletxa4 {
    width: 24px;
    min-width: 24px;
    max-width: 24px;
    margin: 0;
    padding: 0;
    transform: rotate(-90deg);
    transition: transform 180ms ease;
  }

  body.single-program.jci-short-program-page .jci-short-program-related__toggle[aria-expanded="true"] .fletxa4 {
    transform: rotate(90deg);
  }

  /* Dark benefit block stays full-bleed outside and uses the same contained
   * reading rhythm as the rest of Course. */
  body.single-program.jci-short-program-page .jci-short-program-why {
    margin-top: var(--jci-short-program-section-space);
    padding-bottom: 0;
  }

  body.single-program.jci-short-program-page .jci-short-program-why__inner {
    padding: 32px 0;
  }

  body.single-program.jci-short-program-page .jci-short-program-why__heading h2 {
    margin: 0;
  }

  body.single-program.jci-short-program-page .jci-short-program-why__content {
    gap: 24px;
    margin-top: 20px;
  }

  body.single-program.jci-short-program-page .jci-short-program-why__content p {
    margin: 0 0 14px;
    line-height: 1.55;
  }

  body.single-program.jci-short-program-page .jci-short-program-why__content p:last-child {
    margin-bottom: 0;
  }

  body.single-program.jci-short-program-page .jci-short-program-why__content .jci-short-program-why__description :where(p, li) {
    font-size: 16px;
    line-height: 22px;
  }

  body.single-program.jci-short-program-page .jci-short-program-why .col-7 {
    margin-top: 0;
  }

  body.single-program.jci-short-program-page .jci-faqs {
    margin-top: var(--jci-short-program-section-space) !important;
  }

  body.single-program.jci-short-program-page .jci-faqs > h2 {
    margin-bottom: 18px;
  }

  body.single-program.jci-short-program-page .jci-faqs details {
    border-top-width: 2px;
  }

  body.single-program.jci-short-program-page .jci-faqs details:last-child {
    border-bottom-width: 2px;
  }

  body.single-program.jci-short-program-page .jci-faqs summary {
    align-items: flex-start;
    min-height: 44px;
    padding: 12px 4px 12px 0;
    line-height: 1.4;
  }

  body.single-program.jci-short-program-page .jci-faqs__icon {
    margin-top: 2px;
  }

  body.single-program.jci-short-program-page .jci-faqs__answer {
    padding: 0 28px 18px 0;
  }

  body.single-program.jci-short-program-page .jci-faqs__answer p {
    margin-top: 0;
    line-height: 1.55;
  }

  body.single-program.jci-short-program-page .jci-program-request-form {
    margin-top: var(--jci-short-program-section-space);
  }


}

@media (max-width: 420px) {
  body.single-program.jci-short-program-page #topshr.jci-program-hero--course .jci-program-hero__expanded-actions {
    grid-template-columns: 1fr;
  }
}

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

  body.single-program.jci-short-program-page .jci-short-program-related .programs-grid {
    scroll-behavior: auto;
  }
}

/* 2026-09-07 Vector Program hero artwork keeps its full composition on mobile.
 * The generic short-program hero still crops photographic/raster assets. */
body.single-program.jci-short-program-page #topshr.jci-program-hero--course .jci-program-hero__image--vector {
  object-fit: contain;
  object-position: center center;
}
