/*
 * Degree Details section.
 *
 * An intro column (heading, short copy, and button) beside a ruled list of
 * titled details. Each list row holds one full width detail or up to two
 * half width details; the template groups the details into rows. Tablets
 * stack the intro above the list, and phones stack the half width details
 * into 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.
 */

.acu-degree-details {
  --acu-degree-details-copy: var(--acu-midnight-purple);
  --acu-degree-details-heading: var(--acu-wildcat-purple);
  --acu-degree-details-item-heading: var(--acu-wildcat-purple);
  --acu-degree-details-divider: rgba(33, 23, 75, 0.3);
  --acu-degree-details-button-surface: var(--acu-citrus-orange);
  --acu-degree-details-button-surface-hover: var(--acu-sunset-orange);
  --acu-degree-details-button-copy: var(--acu-midnight-purple);
  color: var(--acu-degree-details-copy);
  padding: clamp(var(--space-3xl), 7.5vw, 7rem) 0;
  width: 100%;
}

.acu-degree-details__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-degree-details__inner--no-intro {
  grid-template-columns: minmax(0, 1fr);
}

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

.acu-degree-details__heading {
  color: var(--acu-degree-details-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-degree-details__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-degree-details__description p {
  margin: 0;
}

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

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

.acu-degree-details__button {
  align-items: center;
  background-color: var(--acu-degree-details-button-surface);
  border-radius: var(--radius-md);
  color: var(--acu-degree-details-button-copy);
  display: inline-flex;
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  font-weight: var(--font-bold);
  justify-content: center;
  line-height: var(--leading-snug);
  min-height: 3.5rem;
  padding: var(--space-sm) var(--space-lg);
  text-align: center;
  text-decoration: none;
  transition: background-color var(--motion-fast) var(--ease-out);
}

.acu-degree-details__button:hover,
.acu-degree-details__button:focus-visible {
  background-color: var(--acu-degree-details-button-surface-hover);
  color: var(--acu-degree-details-button-copy);
  text-decoration: none;
}

.acu-degree-details__button:focus-visible {
  outline: 0.1875rem solid var(--acu-sky-blue);
  outline-offset: var(--space-2xs);
}

.acu-degree-details__list {
  border-bottom: 1px solid var(--acu-degree-details-divider);
  min-width: 0;
}

.acu-degree-details__row {
  border-top: 1px solid var(--acu-degree-details-divider);
  display: grid;
  gap: var(--space-md) var(--space-xl);
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding: 1.25rem 0;
}

.acu-degree-details__row--full {
  grid-template-columns: minmax(0, 1fr);
}

.acu-degree-details__item {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  min-width: 0;
}

.acu-degree-details__item-heading {
  color: var(--acu-degree-details-item-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-degree-details__item-content {
  font-family: var(--font-sans);
  font-size: var(--text-lg);
  font-weight: var(--font-regular);
  line-height: var(--leading-normal);
  overflow-wrap: anywhere;
}

.acu-degree-details__item-content > * {
  margin: 0;
}

.acu-degree-details__item-content > * + * {
  margin-top: var(--space-lg);
}

.acu-degree-details__item-content ul,
.acu-degree-details__item-content ol {
  padding-left: 1.5em;
}

.acu-degree-details__item-content ul {
  list-style: disc;
}

.acu-degree-details__item-content ol {
  list-style: decimal;
}

.acu-degree-details__item-content li {
  margin: 0;
}

.acu-degree-details__item-content strong,
.acu-degree-details__item-content b {
  font-weight: var(--font-bold);
}

.acu-degree-details__item-content a {
  color: inherit;
  text-decoration: underline;
  text-decoration-thickness: from-font;
  text-underline-offset: 0.15em;
}

.acu-degree-details__item-content a:hover,
.acu-degree-details__item-content a:focus-visible {
  color: inherit;
  text-decoration-thickness: 0.125rem;
}

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

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

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

  .acu-degree-details__intro {
    gap: 1.25rem;
  }

  .acu-degree-details__heading {
    font-size: var(--text-4xl);
  }

  .acu-degree-details__description {
    font-size: var(--text-md);
  }

  .acu-degree-details__actions {
    margin-top: 0;
  }

  .acu-degree-details__button {
    min-height: 3rem;
  }

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

  .acu-degree-details__item {
    gap: var(--space-xs);
  }

  .acu-degree-details__item-heading {
    font-size: var(--text-xl);
  }

  .acu-degree-details__item-content {
    font-size: var(--text-md);
  }

  .acu-degree-details__item-content > * + * {
    margin-top: var(--space-md);
  }
}

@media (prefers-reduced-motion: reduce) {
  .acu-degree-details__button {
    transition: none;
  }
}
