/*
 * Career Paths section.
 *
 * An intro column (heading, short copy, and an arrow link) beside a ruled
 * list of titled career blurbs in two columns, with up to two stat tiles
 * under the list. The careers fill the left column first; the template sets
 * the row count. Tablets stack the intro above the list, and phones show the
 * careers and the tiles in one column. Colors are component custom props with
 * light-surface defaults; the purple-surface overrides live in the central
 * page-sections stylesheet under the theme-dark wrapper. The tile surfaces
 * are fixed by the design.
 */

.acu-career-paths {
  --acu-career-paths-copy: var(--acu-midnight-purple);
  --acu-career-paths-heading: var(--acu-wildcat-purple);
  --acu-career-paths-list-heading: var(--acu-wildcat-purple);
  --acu-career-paths-divider: rgba(33, 23, 75, 0.3);
  --acu-career-paths-link-copy: var(--acu-midnight-purple);
  --acu-career-paths-link-arrow: var(--acu-mesquite-red);
  --acu-career-paths-rows: 1;
  color: var(--acu-career-paths-copy);
  padding: clamp(var(--space-3xl), 7.5vw, 7rem) 0;
  width: 100%;
}

.acu-career-paths__inner {
  align-items: start;
  display: grid;
  gap: clamp(var(--space-2xl), 7.8vw, 7rem);
  grid-template-columns: minmax(0, 536fr) minmax(0, 664fr);
  margin: 0 auto;
  max-width: var(--container-xl);
  padding: 0 var(--space-xl);
  width: 100%;
}

.acu-career-paths__inner--no-intro {
  grid-template-columns: minmax(0, 1fr);
}

.acu-career-paths__intro {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
  min-width: 0;
}

.acu-career-paths__heading {
  color: var(--acu-career-paths-heading);
  font-family: var(--font-serif);
  font-size: clamp(var(--text-4xl), 4.4vw, 3.5rem);
  font-weight: var(--font-bold);
  letter-spacing: var(--tracking-tight);
  line-height: var(--leading-tight);
  margin: 0;
  text-wrap: balance;
}

.acu-career-paths__description {
  font-family: var(--font-sans);
  font-size: clamp(var(--text-md), 1.4vw, var(--text-xl));
  font-weight: var(--font-regular);
  line-height: var(--leading-normal);
}

.acu-career-paths__description p {
  margin: 0;
}

.acu-career-paths__description p + p {
  margin-top: var(--space-sm);
}

.acu-career-paths__actions {
  display: flex;
  flex-wrap: wrap;
  margin-top: var(--space-xs);
}

.acu-career-paths__link {
  align-items: center;
  color: var(--acu-career-paths-link-copy);
  display: inline-flex;
  font-family: var(--font-serif);
  font-size: var(--text-md);
  font-weight: var(--font-semibold);
  gap: var(--space-xs);
  line-height: var(--leading-normal);
  text-decoration: none;
}

.acu-career-paths__link-icon {
  background-color: var(--acu-career-paths-link-arrow);
  display: block;
  flex: 0 0 auto;
  height: 1.5rem;
  -webkit-mask-image: url("assets/arrow-forward.svg");
  mask-image: url("assets/arrow-forward.svg");
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-size: contain;
  mask-size: contain;
  transition: transform var(--motion-base) var(--ease-out);
  width: 1.5rem;
}

.acu-career-paths__link:hover,
.acu-career-paths__link:focus-visible {
  color: var(--acu-career-paths-link-copy);
  text-decoration: none;
}

.acu-career-paths__link:hover .acu-career-paths__link-label,
.acu-career-paths__link:focus-visible .acu-career-paths__link-label {
  text-decoration: underline;
  text-decoration-thickness: 0.125rem;
  text-underline-offset: var(--space-2xs);
}

.acu-career-paths__link:hover .acu-career-paths__link-icon,
.acu-career-paths__link:focus-visible .acu-career-paths__link-icon {
  transform: translateX(var(--space-2xs));
}

.acu-career-paths__link:focus-visible {
  border-radius: 0.125rem;
  outline: 0.1875rem solid var(--acu-sky-blue);
  outline-offset: var(--space-2xs);
}

.acu-career-paths__body {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  min-width: 0;
}

.acu-career-paths__list {
  border-bottom: 1px solid var(--acu-career-paths-divider);
  border-top: 1px solid var(--acu-career-paths-divider);
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  padding: 1.25rem 0;
}

.acu-career-paths__list-heading {
  color: var(--acu-career-paths-list-heading);
  font-family: var(--font-serif);
  font-size: var(--text-2xl);
  font-weight: var(--font-bold);
  letter-spacing: -0.01em;
  line-height: 1.2;
  margin: 0;
  overflow-wrap: anywhere;
}

.acu-career-paths__careers {
  display: grid;
  gap: var(--space-md) var(--space-xl);
  grid-auto-flow: column;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: repeat(var(--acu-career-paths-rows), auto);
  margin: 0;
}

.acu-career-paths__career {
  font-family: var(--font-sans);
  font-size: var(--text-lg);
  line-height: var(--leading-normal);
  min-width: 0;
  overflow-wrap: anywhere;
}

.acu-career-paths__career-title {
  font-weight: var(--font-bold);
  margin: 0;
}

.acu-career-paths__career-description {
  font-weight: var(--font-regular);
  margin: 0;
}

.acu-career-paths__stats {
  display: grid;
  gap: var(--space-md);
  grid-template-columns: repeat(2, minmax(0, 1fr));
  list-style: none;
  margin: 0;
  padding: 0;
}

.acu-career-paths__stat {
  border-radius: 0.125rem;
  display: flex;
  flex-direction: column;
  gap: var(--space-xl);
  margin: 0;
  min-width: 0;
  padding: var(--space-lg);
}

.acu-career-paths__stat--purple {
  background-color: var(--acu-vibrant-purple);
  color: var(--acu-white);
}

.acu-career-paths__stat--light-purple {
  background-color: var(--acu-lavender-purple);
  color: var(--acu-wildcat-purple);
}

.acu-career-paths__stat-value {
  font-family: var(--font-serif);
  font-size: clamp(var(--text-4xl), 3.5vw, 2.75rem);
  font-weight: var(--font-bold);
  letter-spacing: -0.01em;
  line-height: var(--leading-tight);
  margin: 0;
  overflow-wrap: anywhere;
}

.acu-career-paths__stat-caption {
  font-family: var(--font-sans);
  font-size: var(--text-lg);
  font-weight: var(--font-regular);
  line-height: var(--leading-normal);
  margin: 0;
}

@media (max-width: 63.9375rem) {
  .acu-career-paths__inner {
    gap: var(--space-2xl);
    grid-template-columns: minmax(0, 1fr);
    padding-inline: var(--space-lg);
  }
}

@media (max-width: 47.9375rem) {
  .acu-career-paths {
    padding-block: var(--space-3xl);
  }

  .acu-career-paths__intro {
    gap: 1.25rem;
  }

  .acu-career-paths__heading {
    font-size: var(--text-4xl);
  }

  .acu-career-paths__description {
    font-size: var(--text-md);
  }

  .acu-career-paths__actions {
    margin-top: 0;
  }

  .acu-career-paths__body {
    gap: var(--space-xl);
  }

  .acu-career-paths__list-heading {
    font-size: var(--text-xl);
  }

  .acu-career-paths__careers {
    grid-auto-flow: row;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: none;
  }

  .acu-career-paths__career,
  .acu-career-paths__stat-caption {
    font-size: var(--text-md);
  }

  .acu-career-paths__stats {
    grid-template-columns: minmax(0, 1fr);
  }

  .acu-career-paths__stat {
    gap: var(--space-md);
  }

  .acu-career-paths__stat-value {
    font-size: var(--text-4xl);
  }
}

@media (prefers-reduced-motion: reduce) {
  .acu-career-paths__link-icon {
    transition: none;
  }
}
