/* V25: Home rhythm and the first mobile course view.
   Keep content in document order and let longer labels grow naturally. */

.home-page main > .section {
  padding-block: clamp(2.75rem, 4.5vw, 4.75rem);
}

.home-page main > .featured-courses-section {
  padding-top: clamp(1.75rem, 3vw, 2.75rem);
}

.home-page .section-heading {
  margin-bottom: clamp(1.25rem, 2vw, 1.75rem);
}

.home-page .section-action {
  margin-top: clamp(1.5rem, 2.5vw, 2rem);
}

.home-page .home-formation-shortcuts {
  gap: 0.75rem;
  margin-bottom: clamp(1.5rem, 2.5vw, 2rem);
}

.home-page .home-formation-shortcuts a {
  min-height: 5.25rem;
  gap: 0.4rem;
  padding: 0.85rem 1rem;
}

.home-page .home-formation-shortcuts a:focus-visible {
  outline: 3px solid var(--brand-blue-600);
  outline-offset: 3px;
}

.home-page .formation-finder-form {
  margin-bottom: 1.25rem;
}

.home-page .formation-path-card {
  min-height: 0;
}

.home-page .home-conversion-section .form-section-grid,
.home-page .methodology-showcase .showcase-grid,
.home-page #faq .split-layout {
  gap: clamp(1.75rem, 4vw, 3.5rem);
}

.home-page .home-conversion-section .check-list,
.home-page .methodology-showcase .check-list {
  margin-block: 1.25rem;
}

.home-page .methodology-showcase .institutional-note {
  margin-top: 1.25rem;
}

@media (min-width: 60rem) {
  .home-page .home-hero--visual-v2 .home-hero-grid {
    min-height: 22rem;
    gap: clamp(1.75rem, 3vw, 3rem);
    padding-block: clamp(1.75rem, 2.5vw, 2.5rem);
  }

  .home-page .home-formation-shortcuts {
    padding-right: 0;
  }

  .home-page .home-hero--visual-v2 .home-hero-visual--photo {
    right: 0;
    display: flex;
    width: auto;
    max-width: none;
    height: 100%;
    align-self: stretch;
    align-items: flex-end;
    justify-content: flex-end;
    gap: 0.75rem;
    padding-bottom: 1rem;
  }

  .home-page .home-hero--visual-v2 .hero-proof--one,
  .home-page .home-hero--visual-v2 .hero-proof--two {
    position: static;
    flex: 0 0 auto;
    margin: 0;
  }
}

@media (min-width: 60rem) and (max-width: 89.99rem) {
  .home-page .home-hero--visual-v2 .home-hero-grid {
    min-height: 21rem;
    padding-block: 1rem;
  }
}

@media (max-width: 59.99rem) {
  .home-page main > .section {
    padding-block: clamp(2.5rem, 5vw, 3.25rem);
  }

  .home-page main > .featured-courses-section {
    padding-top: 1.5rem;
  }

  .home-page .home-hero--visual-v2 .home-hero-grid {
    min-height: 0;
    gap: 1rem;
    padding-block: 1.5rem 1rem;
  }

  .home-page .home-hero--visual-v2 .home-hero-copy h1 {
    max-width: 19ch;
    margin-bottom: 0.85rem;
  }

  .home-page .home-hero--visual-v2 .home-hero-copy > p {
    margin-bottom: 0;
  }

  .home-page .home-hero--visual-v2 .home-hero-copy .hero-actions {
    gap: 0.65rem;
    margin-top: 1rem;
  }

  .home-page .home-hero--visual-v2 .home-hero-copy .button {
    min-height: 3rem;
  }

  .home-page .home-hero--visual-v2 .home-hero-image-frame {
    grid-area: 1 / 1 / 3 / 2;
    height: clamp(10rem, 38vw, 14rem);
  }

  .home-page .home-hero--visual-v2 .home-hero-visual--photo {
    position: relative;
    display: grid;
    height: clamp(10rem, 38vw, 14rem);
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: repeat(2, minmax(0, 1fr));
    row-gap: 0.5rem;
    margin-block: 0;
  }

  .home-page .home-hero--visual-v2 .hero-proof--one,
  .home-page .home-hero--visual-v2 .hero-proof--two {
    position: relative;
    inset: auto;
    width: 7.5rem;
    min-width: 0;
    max-width: 43%;
    min-height: 0;
    align-self: center;
    justify-self: start;
    gap: 0.125rem;
    margin: 0;
    padding: 0.375rem 0.5rem;
    border-radius: 0.75rem;
  }

  .home-page .home-hero--visual-v2 .hero-proof--one {
    grid-area: 1 / 1 / 2 / 2;
  }

  .home-page .home-hero--visual-v2 .hero-proof--two {
    grid-area: 2 / 1 / 3 / 2;
  }

  .home-page .home-hero--visual-v2 .hero-proof strong {
    font-size: 0.75rem;
    line-height: 1.25;
  }

  .home-page .home-hero--visual-v2 .hero-proof span {
    font-size: 0.625rem;
    line-height: 1.35;
  }

  .home-page .home-hero--visual-v2 > .trust-strip > span {
    min-height: 0;
    padding-block: 0.6rem;
    line-height: 1.45;
  }

  .home-page .home-conversion-section .form-section-grid,
  .home-page .methodology-showcase .showcase-grid,
  .home-page #faq .split-layout {
    gap: 1.75rem;
  }

  .course-page .course-hero {
    padding-block: 1.5rem 1.75rem;
  }

  .course-page .course-hero-grid {
    gap: 1rem;
    align-items: start;
  }

  .course-page .course-hero-copy .breadcrumbs {
    margin-bottom: 1rem;
  }

  .course-page .course-hero-kicker {
    margin-bottom: 0.75rem;
  }

  .course-page .course-hero-copy h1 {
    max-width: none;
    margin-bottom: 0.75rem;
  }

  .course-page .course-hero-copy .course-lead {
    margin-bottom: 0;
  }

  .course-page .course-hero-quickfacts {
    margin-top: 0.9rem;
  }

  .course-page .course-hero-quickfacts > div {
    padding: 0.65rem 0.55rem;
  }

  .course-page .course-hero-copy .hero-actions {
    display: grid;
    gap: 0.65rem;
    margin-top: 1rem;
  }

  .course-page .course-hero-copy .hero-actions .button {
    min-height: 3rem;
  }

  .course-page .course-hero .course-summary {
    margin-top: 0;
    transform: none;
  }

  .course-page .course-hero .course-summary-art {
    height: clamp(8.5rem, 31vw, 11rem);
  }

  .course-page .course-hero .course-summary-art img {
    height: 100%;
    max-height: none;
    aspect-ratio: auto;
  }

  .course-page .course-hero .course-summary-body {
    padding: 0.85rem 1rem;
  }

  .course-page .course-hero .course-coordinator-card {
    margin-bottom: 0.35rem;
  }

  .course-page .course-hero .course-summary-body .text-link {
    min-height: 2.75rem;
    align-items: center;
    margin-top: 0.25rem;
    padding-block: 0.5rem;
  }
}

@media (max-width: 42rem) {
  .home-page main > .section {
    padding-block: 2.25rem;
  }

  .home-page .home-hero--visual-v2 .home-hero-grid {
    padding-block: 1.25rem 0.75rem;
  }

  .home-page .home-hero--visual-v2 .home-hero-copy h1 {
    font-size: clamp(2.15rem, 10vw, 2.5rem);
  }

  .home-page .home-hero--visual-v2 .home-hero-copy > p {
    line-height: 1.5;
  }

  .home-page .home-hero--visual-v2 .home-hero-image-frame,
  .home-page .home-hero--visual-v2 .home-hero-visual--photo {
    height: 9rem;
  }

  .home-page main > .featured-courses-section {
    padding-top: 1.25rem;
  }

  .home-page .home-formation-shortcuts {
    grid-template-columns: minmax(0, 1fr);
    gap: 0.5rem;
    margin-bottom: 1.5rem;
  }

  .home-page .home-formation-shortcuts a {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    min-height: 3.25rem;
    align-items: center;
    gap: 0.75rem;
    padding: 0.7rem 0.85rem;
  }

  .home-page .home-formation-shortcuts strong {
    line-height: 1.3;
    overflow-wrap: anywhere;
  }

  .home-page .home-formation-shortcuts span {
    white-space: nowrap;
  }

  .home-page .formation-finder-form {
    gap: 0.85rem;
    padding: 1rem;
  }

  .home-page .section-action {
    margin-top: 1.5rem;
  }
}

@media (max-width: 42rem) {
  .home-page .home-hero--visual-v2 .home-hero-copy .hero-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.55rem;
  }

  .home-page .home-hero--visual-v2 .home-hero-copy .button {
    gap: 0.35rem;
    padding-inline: 0.5rem;
    font-size: 0.8125rem;
    white-space: normal;
  }

  .home-page .home-hero--visual-v2 .home-hero-copy .button .icon {
    width: 1rem;
    height: 1rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-page .home-formation-shortcuts a:hover,
  .home-page .home-formation-shortcuts a:focus-visible {
    transform: none;
  }
}
