/* The simple variant uses the Course accordion layout, icon and interactions. */
body.single-program .jci-program-study-plan__simple > .aaccordion-item {
  border-top: 2px solid rgba(4, 28, 64, 0.72);
}

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

body.single-program .jci-program-study-plan__simple .jci-course-topic-accordion__index {
  align-self: start;
  color: var(--color-brand-navy, #041c40);
  font-size: 18px;
  font-weight: 500;
  line-height: 1.25;
}

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

.jci-program-study-plan__simple-meta {
  display: block;
  margin-top: 6px;
  color: #6a7388;
  font-size: 14px;
  line-height: 1.4;
  letter-spacing: normal;
  text-transform: none;
}

.jci-program-study-plan__simple .jci-program-study-plan__topic {
  margin-bottom: 20px;
}

.jci-program-study-plan__simple .jci-program-study-plan__topic > h3 {
  margin: 0 0 12px;
  color: var(--bs-body-color);
  font-size: 18px;
  line-height: 1.3;
}

.jci-program-study-plan__simple .jci-program-study-plan__topic:last-child {
  margin-bottom: 0;
}

@media (min-width: 769px) and (max-width: 1024px) {
  body.single-program .jci-program-study-plan__simple .jci-course-topic-accordion__index {
    font-size: 17px;
  }
}

@media (min-width: 1025px) {
  body.single-program .jci-program-study-plan__simple > .aaccordion-item {
    border-top: 1px solid #041c40;
  }

  body.single-program .jci-program-study-plan__simple > .aaccordion-item:last-child {
    border-bottom: 1px solid #041c40;
  }

  body.single-program .jci-program-study-plan__simple .jci-course-topic-accordion__index {
    font-size: 20px;
    line-height: 1.2;
  }

  body.single-program .jci-program-study-plan__simple .jci-course-topic-accordion__title {
    font-size: 16px;
    line-height: 1.3;
  }
}

.jci-program-study-plan {
  --jci-study-plan-blue: #487cff;
  --jci-study-plan-navy: #131940;
  --jci-study-plan-green: #6bb486;
  --jci-study-plan-gray: #e6e2e2;
  margin-top: clamp(48px, 6vw, 88px);
  color: var(--bs-body-color);
  font-family: "DM Sans", "DM Sans Fallback", sans-serif;
}

.jci-program-study-plan,
.jci-program-study-plan * {
  box-sizing: border-box;
}

.jci-program-study-plan__intro {
  display: grid;
  grid-template-columns: minmax(220px, 0.62fr) minmax(0, 1.38fr);
  gap: clamp(48px, 7vw, 104px);
  align-items: start;
}

.jci-program-study-plan__heading,
.jci-program-study-plan__section-header h3,
.jci-program-study-plan__group h4,
.jci-program-study-plan__module h5,
.jci-program-study-plan__topic h6 {
  margin: 0;
  color: var(--bs-body-color);
  font-family: inherit;
  text-transform: none;
}

.jci-program-study-plan__heading {
  font-size: clamp(24px, 1vw, 28px);
  font-weight: 500;
  line-height: 1.15;
}

.jci-program-study-plan__summary {
  display: grid;
  gap: 18px;
  justify-items: start;
  margin: clamp(20px, 3vw, 30px) 0 0;
  color: var(--bs-body-color);
  line-height: 1;
}

.jci-program-study-plan__summary-modules,
.jci-program-study-plan__summary-credits {
  display: grid;
  gap: 4px;
  justify-items: start;
}

.jci-program-study-plan__summary strong {
  color: var(--bs-body-color);
  font-size: clamp(48px, 5vw, 68px);
  font-weight: 500;
  line-height: 0.9;
  letter-spacing: -0.035em;
}

.jci-program-study-plan__summary-modules > span,
.jci-program-study-plan__summary-credits > span {
  color: #667085;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.3;
}

/* Desktop summary: modules and credits are separate rows under the heading. */
@media (min-width: 769px) {
  .jci-program-study-plan__summary {
    display: grid;
    gap: 0;
    align-items: baseline;
    margin-top: 20px;
    font-size: 40px;
    line-height: 50px;
  }

  .jci-program-study-plan__summary-modules,
  .jci-program-study-plan__summary-credits {
    display: flex;
    gap: 0.2em;
    align-items: baseline;
  }

  .jci-program-study-plan__summary strong,
  .jci-program-study-plan__summary-modules > span,
  .jci-program-study-plan__summary-credits > span {
    color: var(--bs-body-color);
    font-size: inherit;
    font-weight: 400;
    line-height: inherit;
    letter-spacing: normal;
  }
}

.jci-program-study-plan__introduction {
  max-width: 820px;
}

.jci-program-study-plan__introduction-copy {
  max-width: 68ch;
  font-size: 16px;
  line-height: 1.6;
}

.jci-program-study-plan__introduction-copy > :first-child,
.jci-program-study-plan__module-content > :first-child,
.jci-program-study-plan__topic > :first-child {
  margin-top: 0;
}

.jci-program-study-plan__introduction-copy > :last-child,
.jci-program-study-plan__module-content > :last-child,
.jci-program-study-plan__topic > :last-child {
  margin-bottom: 0;
}

.jci-program-study-plan__sections {
  display: grid;
  gap: 64px;
  margin-top: 36px;
  margin-left: 0;
}

.jci-program-study-plan__section {
  /* Compact geometry replaces the former 70% zoom. Panel typography stays
   * independent, so opening a group never scales down its module content. */
  border-top: 9.8px solid var(--jci-study-plan-gray);
}

.jci-program-study-plan__section-header {
  position: relative;
  padding: 14px 33.6px;
  border-bottom: 1.4px solid var(--jci-study-plan-navy);
}

.jci-program-study-plan__section-header::before {
  position: absolute;
  top: -9.8px;
  bottom: -1.4px;
  left: 0;
  width: 15.4px;
  background: var(--jci-study-plan-green);
  content: "";
}

.jci-program-study-plan__section-header h3,
.jci-program-study-plan__section-header p {
  margin-left: 0;
}

.jci-program-study-plan__section-header h3 {
  font-size: clamp(14px, 1.89vw, 23.8px);
  font-weight: 600;
  line-height: 1.15;
  padding-bottom: 0;
}

.jci-program-study-plan__section-header p {
    margin-top: 7px;
    padding-bottom: 0 !important;
    color: var(--jci-study-plan-blue);
    font-size: clamp(14px, 1.89vw, 21px);
    line-height: 1.15;
    margin-bottom: 0 !important;
}

.jci-program-study-plan__group,
.jci-program-study-plan__module-details,
.jci-program-study-plan__module-static {
  border-bottom: 1.4px solid var(--jci-study-plan-navy);
}

.jci-program-study-plan summary {
  display: flex;
  gap: 16.8px;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 57.4px;
  padding: 11.2px 33.6px;
  cursor: pointer;
  list-style: none;
  text-align: left;
}

.jci-program-study-plan summary::-webkit-details-marker {
  display: none;
}

.jci-program-study-plan summary::marker {
  content: "";
}

.jci-program-study-plan summary:hover .jci-program-study-plan__group-title,
.jci-program-study-plan summary:hover .jci-program-study-plan__module-title {
  color: var(--jci-study-plan-blue);
}

.jci-program-study-plan summary:focus-visible {
  outline: 3px solid var(--jci-study-plan-blue);
  outline-offset: 4px;
}

.jci-program-study-plan__group-label,
.jci-program-study-plan__module-label {
  display: flex;
  flex: 1 1 auto;
  align-items: center;
  justify-content: space-between;
  gap: 16.8px;
  min-width: 0;
  text-align: left;
}

.jci-program-study-plan__group-copy {
  display: block;
  min-width: 0;
}

.jci-program-study-plan__group-title,
.jci-program-study-plan__group-credits,
.jci-program-study-plan__selection-requirement {
  display: block;
}

.jci-program-study-plan__group h4 {
  font-size: clamp(16.1px, 1.33vw, 19.6px);
  font-weight: 500;
  line-height: 1.25;
}

.jci-program-study-plan__group-credits,
.jci-program-study-plan__module-credits,
.jci-program-study-plan__module-static p {
  margin: 4.2px 0 0;
  color: var(--jci-study-plan-blue);
  font-size: clamp(11.2px, 1.4vw, 12.6px);
  line-height: 1.25;
  padding-bottom: 0;
}

.jci-program-study-plan__group-label .jci-program-study-plan__selection-requirement {
  margin-top: 12.6px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}

.jci-program-study-plan__group:not([open]) .jci-program-study-plan__selection-requirement {
  display: none;
}

.jci-program-study-plan__chevron {
  display: block;
  flex: 0 0 auto;
  width: 20px;
  max-width: 20px;
  height: auto;
  transition: transform 180ms ease;
}

.jci-program-study-plan details[open] > summary .jci-program-study-plan__chevron {
  transform: rotate(180deg);
}

.jci-program-study-plan__module-list {
  margin: 0;
  padding: 0;
  background: #f1efef;
  list-style: none;
}

.jci-program-study-plan__module {
  position: relative;
}

.jci-program-study-plan__module-details,
.jci-program-study-plan__module-static {
  border-bottom-width: 1px;
}

.jci-program-study-plan__module-details summary,
.jci-program-study-plan__module-static {
  min-height: 44px;
  padding: 9.8px 33.6px;
  text-align: left;
}

.jci-program-study-plan__module-static {
  display: flex;
  gap: 9.8px;
  align-items: center;
}

.jci-program-study-plan__module-details summary {
  padding-right: 33.6px;
  padding-left: 33.6px;
}

.jci-program-study-plan__module-label {
  gap: 16.8px;
}

.jci-program-study-plan__module-copy {
  display: flex;
  flex: 1 1 auto;
  gap: 9.8px;
  align-items: baseline;
  min-width: 0;
}

.jci-program-study-plan__module-title {
  min-width: 0;
}

.jci-program-study-plan__module-label .jci-program-study-plan__chevron {
  align-self: center;
  margin-left: auto;
}

.jci-program-study-plan__module h5 {
  min-width: 0;
  font-size: clamp(14px, 1.25vw, 16px);
  font-weight: 600;
  line-height: 1.3;
  text-transform: uppercase;
}

.jci-program-study-plan__module-credits,
.jci-program-study-plan__module-static p {
  flex: 0 0 auto;
  margin: 0;
  color: #777575;
  font-size: clamp(12px, 1.25vw, 14px);
  padding-bottom: 0;
  white-space: nowrap;
}

.jci-program-study-plan__module-content {
  padding: 0 33.6px 16.8px;
  color: var(--bs-body-color);
  text-align: left;
  font-size: 16px;
  line-height: 1.5;
}

.jci-program-study-plan__topic + .jci-program-study-plan__topic {
  margin-top: 8.4px;
}

.jci-program-study-plan__topic h6 {
  margin-bottom: 7px;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.35;
}

.jci-program-study-plan__topic ul,
.jci-program-study-plan__topic ol {
  padding-left: 1.25em;
}

.jci-program-study-plan__topic li::marker {
  color: var(--jci-study-plan-blue);
}

.jci-program-study-plan__topic ul > li::marker {
  font-size: var(--jci-accent-list-marker-size);
}


/* Outdoor activities: concise editorial lead followed quickly by the full-bleed video. */
.jci-program-study-plan__outdoor {
  margin-top: clamp(72px, 7vw, 104px);
}

.jci-program-study-plan__outdoor-video {
  margin-top: clamp(48px, 5vw, 72px);
}

.jci-program-study-plan__outdoor > .row {
  align-items: start;
}

.jci-program-study-plan__outdoor h3 {
  max-width: 12ch;
  margin-top: 0;
  font-size: clamp(28px, 2.6vw, 36px);
  line-height: 1.08;
}

.jci-program-study-plan__outdoor .col-8 > :first-child {
  max-width: 68ch;
  margin-top: 0;
}

.jci-program-study-plan__outdoor .col-8 > :last-child {
  margin-bottom: 0;
}


/* The video is full bleed, centred, and capped at a large desktop viewport. */
.jci-program-study-plan__outdoor-video {
  position: relative;
  left: 50%;
  width: 100vw;
  max-width: 1920px;
  overflow: hidden;
  transform: translateX(-50%);
}

.jci-program-study-plan__outdoor-video .jci-video-facade {
  width: 100%;
  max-width: none;
}

@media (max-width: 900px) {
  .jci-program-study-plan__intro {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .jci-program-study-plan__summary {
    margin-top: 24px;
  }

  .jci-program-study-plan__sections {
    margin-left: 0;
  }
}

/* Tablet: retain the editorial split without squeezing nested module accordions.
 * Mobile and desktop retain their established composition. */
@media (min-width: 769px) and (max-width: 1024px) {
  .jci-program-study-plan__intro {
    grid-template-columns: minmax(0, 0.38fr) minmax(0, 0.62fr);
    gap: clamp(24px, 3vw, 36px);
  }

  .jci-program-study-plan__summary {
    font-size: clamp(28px, 3vw, 32px);
    line-height: 1.25;
  }

  .jci-program-study-plan__sections {
    gap: 40px;
    margin-top: 28px;
  }

  .jci-program-study-plan__section-header {
    padding: 12.6px 14px 12.6px 23.8px;
  }

  .jci-program-study-plan__section-header::before {
    width: 11.2px;
  }

  .jci-program-study-plan__section-header h3 {
    font-size: clamp(14.7px, 1.61vw, 16.8px);
  }

  .jci-program-study-plan__section-header p {
    font-size: 13.3px;
  }

  .jci-program-study-plan__group > summary {
    min-height: 47.6px;
    padding: 9.8px 14px;
  }

  .jci-program-study-plan__group h4 {
    font-size: 14px;
  }

  .jci-program-study-plan__module-details summary,
  .jci-program-study-plan__module-static {
    padding: 8.4px 14px;
  }

  .jci-program-study-plan__module-content {
    padding: 0 14px 15.4px;
  }
}

/* Mobile study-plan contract: the existing details markup remains the only
 * accordion system. Layout, hierarchy and touch geometry are owned here. */
@media (max-width: 768px) {
  .jci-program-study-plan {
    margin-top: 40px;
  }

  .jci-program-study-plan__intro {
    gap: 24px;
  }

  .jci-program-study-plan__heading {
    font-size: clamp(28px, 8vw, 34px);
    line-height: 1;
  }

  .jci-program-study-plan__summary {
    display: grid;
    grid-template-columns: 1fr;
    gap: 4px;
    justify-content: start;
    justify-items: start;
    margin-top: 16px;
  }

  .jci-program-study-plan__summary-modules,
  .jci-program-study-plan__summary-credits {
    display: flex;
    align-items: baseline;
    gap: 8px;
  }

  .jci-program-study-plan__summary strong {
    font-size: clamp(36px, 10vw, 42px);
    font-weight: 600;
    line-height: 0.98;
    letter-spacing: -0.03em;
  }

  .jci-program-study-plan__summary-modules > span,
  .jci-program-study-plan__summary-credits > span {
    color: var(--jci-study-plan-navy);
    font-size: clamp(20px, 5.6vw, 24px);
    font-weight: 500;
    line-height: 1;
  }

  .jci-program-study-plan__introduction-copy {
    font-size: 16px;
    line-height: 1.55;
  }

  .jci-program-study-plan__sections {
    gap: 48px;
    margin-top: 24px;
  }

  .jci-program-study-plan__section {
    border-top-width: 6.3px;
  }

  .jci-program-study-plan__section-header {
    padding: 11.2px 5.6px 11.2px 14px;
  }

  .jci-program-study-plan__section-header::before {
    top: -6.3px;
    width: 7.7px;
  }

  .jci-program-study-plan__section-header h3 {
    font-size: 12.6px;
    line-height: 1.2;
  }

  .jci-program-study-plan__section-header p {
    margin-top: 4.2px;
    font-size: calc(var(--jci-sp-font-body, 14px) * .7);
    line-height: var(--jci-sp-line-body, 1.3);
  }

  .jci-program-study-plan summary {
    min-height: 44px;
    padding: 8.4px 11.2px 8.4px 14px;
  }

  .jci-program-study-plan__group > summary {
    gap: 8.4px;
  }

  .jci-program-study-plan__group h4 {
    font-size: 12.6px;
    line-height: 1.25;
  }

  .jci-program-study-plan__group-credits {
    margin-top: 2.8px;
    font-size: 9.8px;
  }

  .jci-program-study-plan__group-label .jci-program-study-plan__selection-requirement {
    margin-top: 7px;
    font-size: 12px;
  }

  .jci-program-study-plan__chevron {
    width: 15px;
    max-width: 15px;
  }

  .jci-program-study-plan__module-details summary {
    min-height: 44px;
    padding: 8.4px 11.2px 8.4px 14px;
  }

  .jci-program-study-plan__module-label {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 15px;
    gap: 8.4px;
    align-items: center;
  }

  .jci-program-study-plan__module-copy {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8.4px;
    align-items: center;
  }

  .jci-program-study-plan__module-static {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8.4px;
    min-height: 44px;
    padding: 7px 21.7px 7px 14px;
  }

  .jci-program-study-plan__module-credits,
  .jci-program-study-plan__module-static p {
    margin: 1px 0 0;
    font-weight: 600;
    line-height: 1.3;
  }

  .jci-program-study-plan__module-content {
    padding: 8.4px 14px 14px;
    font-size: 16px;
    line-height: 1.5;
  }

  .jci-program-study-plan__topic + .jci-program-study-plan__topic {
    margin-top: 11.2px;
  }

  .jci-program-study-plan__outdoor {
    margin-top: 48px;
  }

  .jci-program-study-plan__outdoor-video {
    margin-top: 32px;
  }

  .jci-program-study-plan__outdoor h3 {
    max-width: none;
    font-size: clamp(26px, 7vw, 32px);
  }

}

@media (prefers-reduced-motion: reduce) {
  .jci-program-study-plan__chevron {
    transition: none;
  }
}

@media print {
  .jci-program-study-plan {
    margin-top: 24px;
  }

  .jci-program-study-plan__intro {
    display: block;
  }

  .jci-program-study-plan__sections {
    margin-top: 30px;
    margin-left: 0;
  }

  .jci-program-study-plan details > * {
    display: block;
  }

  .jci-program-study-plan summary {
    cursor: default;
  }

  .jci-program-study-plan__chevron {
    display: none;
  }
}

/* v146 mobile study-plan density: retain the details semantics while matching
 * the more compact, line-led mobile reference. */
@media (max-width: 576px) {
  .jci-program-study-plan__heading {
    font-size: clamp(30px, 9vw, 38px);
    line-height: 0.98;
  }

  .jci-program-study-plan__summary {
    grid-template-columns: 1fr;
    gap: 4px;
    width: 100%;
  }

  .jci-program-study-plan summary {
    min-height: 44.8px;
    padding-block: 8.4px;
  }

  .jci-program-study-plan__module-content {
    padding: 9.8px 14px 15.4px;
  }

  .jci-program-study-plan__section-header {
    padding-top: 11.2px;
    padding-bottom: 11.2px;
  }

  .jci-program-study-plan__outdoor {
    margin-top: 48px;
  }

  .jci-program-study-plan__outdoor-video {
    margin-top: 32px;
  }
}

@media (max-width: 768px) {
  .jci-program-study-plan__section-header h3,
  .jci-program-study-plan__group h4 {
    font-size: 16px;
  }

  .jci-program-study-plan__section-header p,
  .jci-program-study-plan__group-credits {
    font-size: 12px;
  }
}
