/* ===========================================================================
   Academic Department — Kelsey styling pilot, 2026-10-08
   Academic Department — Kelsey styling pilot, updated 2026-10-11
   Replace: /_assets/css/main-theme/new/overrides/templates/academic-department.css
   Load after Foundation using the existing Academic-Department-Page-css-call.
   All new rules are department-scoped; content, media and CTA contracts stay
   with their existing renderers. Shared academic-family import is retained.
   =========================================================================== */
@import url("../components/academic-family.css");
@import url("../components/academic-hierarchy-explorer.css");

.academic-department {
  --adp-editorial-width: var(--container-lg, 1200px);
  --adp-editorial-gutter: clamp(1rem, 3vw, 2rem);
  --adp-editorial-space: clamp(2.5rem, 5vw, 4.5rem);
  --adp-editorial-radius: var(--radius-sm, .5rem);
  --adp-editorial-soft: hsl(210, 42%, 95%);
  --adp-hero-swoop: 40%;
  --adp-hero-mobile-swoop: clamp(3rem, 14vw, 6.5rem);
  --adp-hero-media-position: center;
  --academic-new-panel-radius: var(--adp-editorial-radius);
  --academic-new-panel-shadow: none;
  --academic-new-soft-blue: var(--adp-editorial-soft);
  --component-new-radius: var(--adp-editorial-radius);
  --component-new-radius-sm: var(--adp-editorial-radius);
  --component-new-border: var(--color-border);
  --component-new-shadow: none;
  --component-new-shadow-soft: none;
  background: var(--color-white);
}

/* One alignment system: remove the baseline's repeated width deductions. */
.academic-department .academic-department-hero__inner,
.academic-department .academic-department-context__inner,
.academic-department .academic-department__body,
.academic-department .academic-department__extended {
  width: 100%;
  max-width: var(--adp-editorial-width);
  margin-inline: auto;
  padding-inline: var(--adp-editorial-gutter);
}

.academic-department .academic-department-section__inner {
  width: 100%;
  max-width: none;
  margin-inline: 0;
}

.academic-department .academic-department-section__inner--wide {
  max-width: var(--adp-editorial-width);
}

.academic-department .academic-department-section__inner--narrow {
  max-width: var(--container-sm, 760px);
}

/* Blue + gold hierarchy; clean media rather than a second framed panel. */
.academic-department .academic-department-hero {
  border: 0;
  border-block-end: .375rem solid var(--color-primary-light, var(--color-primary));
  background: var(--color-primary-dark);
  color: var(--color-white);
}

.academic-department .academic-department-hero__inner {
  padding-block: clamp(2.75rem, 6vw, 5.5rem);
  gap: clamp(2rem, 4vw, 3.5rem);
}

.academic-department .academic-department-hero__content {
  min-width: 0;
}

.academic-department .academic-department__eyebrow {
  font-size: .8125rem;
  font-weight: var(--fw-bold);
  letter-spacing: .12em;
  line-height: 1.4;
}

.academic-department .academic-department-hero .academic-department__eyebrow,
.academic-department .academic-department-hero__tagline {
  color: var(--color-gold);
}

.academic-department .academic-department-hero__title {
  color: var(--color-white);
  font-size: clamp(2.25rem, 4.8vw, 4.25rem);
  letter-spacing: -.035em;
  line-height: 1.08;
  overflow-wrap: anywhere;
  text-wrap: balance;
}

.academic-department .academic-department-hero__summary {
  max-width: 58ch;
  color: var(--color-white);
  font-size: clamp(1.0625rem, 1.5vw, 1.2rem);
  line-height: 1.7;
}

.academic-department .academic-department-hero__summary a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: .18em;
}

.academic-department .academic-department-hero__image,
.academic-department .academic-department-hero__video {
  border: 0;
  border-radius: var(--adp-editorial-radius);
  box-shadow: none;
}

.academic-department .academic-department-hero__caption {
  color: var(--color-white);
  line-height: 1.5;
}

.academic-department .academic-department-hero a:focus-visible {
  outline-color: var(--color-gold);
}

/* Full-bleed media hero. The text determines height; the media fills its track.
   A 44/56 composition and elliptical inside edge replace the boxed split.
   Captions remain separate from the clipped media so they stay readable. */
.academic-department .academic-department-hero--has-media .academic-department-hero__inner {
  max-width: none;
  padding: 0;
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
  align-items: stretch;
}

.academic-department .academic-department-hero--has-media .academic-department-hero__content {
  max-width: none;
  padding: clamp(2.75rem, 6vw, 5.5rem) var(--adp-editorial-gutter);
  align-self: center;
  grid-column: auto;
  grid-row: auto;
}

.academic-department .academic-department-hero--has-media .academic-department-hero__media {
  min-width: 0;
  margin: 0;
  grid-column: auto;
  grid-row: auto;
}

.academic-department .academic-department-hero--has-media .academic-department-hero__image,
.academic-department .academic-department-hero--has-media .academic-department-hero__video {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  border-radius: 0;
  object-fit: cover;
  object-position: var(--adp-hero-media-position);
}

.academic-department .academic-department-hero--has-media .academic-department-hero__caption {
  margin: 0;
  padding: 1rem var(--adp-editorial-gutter);
  overflow-wrap: anywhere;
}

/* Mobile keeps the swoop as a broad curved transition, edged in gold.
   Reserve the overlap below all authored text/actions before raising the media.
   Shape only the image/video; captions remain in normal document flow. */
@media (max-width: 59.999rem) {
  .academic-department .academic-department-hero--has-media .academic-department-hero__content {
    padding-block-end: calc(clamp(2.75rem, 6vw, 5.5rem) + var(--adp-hero-mobile-swoop));
  }

  .academic-department .academic-department-hero--has-media .academic-department-hero__media {
    position: relative;
    isolation: isolate;
    margin-block-start: calc(-1 * var(--adp-hero-mobile-swoop));
  }

  .academic-department .academic-department-hero--has-media .academic-department-hero__media::before {
    content: "";
    position: absolute;
    inset-inline: 0;
    top: -.35rem;
    height: calc(var(--adp-hero-mobile-swoop) + .35rem);
    border-top-left-radius: 100% var(--adp-hero-mobile-swoop);
    background: var(--color-gold);
    pointer-events: none;
  }

  .academic-department .academic-department-hero--has-media .academic-department-hero__image,
  .academic-department .academic-department-hero--has-media .academic-department-hero__video {
    position: relative;
    z-index: 1;
    border-top-left-radius: 100% var(--adp-hero-mobile-swoop);
  }

  .academic-department .academic-department-hero--has-media .academic-department-hero__caption {
    position: relative;
    z-index: 1;
  }

  .academic-department .academic-department-hero--image_left.academic-department-hero--has-media .academic-department-hero__media::before,
  .academic-department .academic-department-hero--image_left.academic-department-hero--has-media .academic-department-hero__image,
  .academic-department .academic-department-hero--image_left.academic-department-hero--has-media .academic-department-hero__video {
    border-top-left-radius: 0;
    border-top-right-radius: 100% var(--adp-hero-mobile-swoop);
  }
}

@media (max-width: 59.999rem) and (prefers-reduced-motion: reduce) {
  .academic-department .academic-department-hero--has-media .academic-department-hero__media:has(video)::before {
    display: none;
  }
}

@media (min-width: 60rem) {
  .academic-department .academic-department-hero--has-media .academic-department-hero__inner {
    grid-template-columns: minmax(0, 44fr) minmax(0, 56fr);
  }

  .academic-department .academic-department-hero--has-media .academic-department-hero__content {
    grid-column: 1;
    grid-row: 1;
    padding-inline-start: max(var(--adp-editorial-gutter), calc((100vw - var(--adp-editorial-width)) / 2 + var(--adp-editorial-gutter)));
    padding-inline-end: clamp(1.5rem, 3vw, 3rem);
  }

  .academic-department .academic-department-hero--has-media .academic-department-hero__media {
    position: relative;
    display: grid;
    grid-column: 2;
    grid-row: 1;
    min-height: clamp(28rem, 42vw, 42rem);
  }

  .academic-department .academic-department-hero--has-media .academic-department-hero__image,
  .academic-department .academic-department-hero--has-media .academic-department-hero__video {
    position: absolute;
    inset: 0;
    height: 100%;
    aspect-ratio: auto;
    border-top-left-radius: var(--adp-hero-swoop) 100%;
    border-bottom-left-radius: var(--adp-hero-swoop) 100%;
  }

  .academic-department .academic-department-hero--has-media .academic-department-hero__caption {
    position: relative;
    z-index: 1;
    align-self: end;
    justify-self: end;
    max-width: calc(100% - 3rem);
    max-width: calc(100% - var(--adp-hero-swoop) - 3rem);
    margin: 1.5rem;
    padding: .75rem 1rem;
    border-radius: .25rem;
    background: rgba(8, 30, 55, .9);
  }

  .academic-department .academic-department-hero--image_left.academic-department-hero--has-media .academic-department-hero__inner {
    grid-template-columns: minmax(0, 56fr) minmax(0, 44fr);
  }

  .academic-department .academic-department-hero--image_left.academic-department-hero--has-media .academic-department-hero__content {
    grid-column: 2;
    padding-inline-start: clamp(1.5rem, 3vw, 3rem);
    padding-inline-end: max(var(--adp-editorial-gutter), calc((100vw - var(--adp-editorial-width)) / 2 + var(--adp-editorial-gutter)));
  }

  .academic-department .academic-department-hero--image_left.academic-department-hero--has-media .academic-department-hero__media {
    grid-column: 1;
  }

  .academic-department .academic-department-hero--image_left.academic-department-hero--has-media .academic-department-hero__image,
  .academic-department .academic-department-hero--image_left.academic-department-hero--has-media .academic-department-hero__video {
    border-top-left-radius: 0;
    border-top-right-radius: var(--adp-hero-swoop) 100%;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: var(--adp-hero-swoop) 100%;
  }

  .academic-department .academic-department-hero--image_left.academic-department-hero--has-media .academic-department-hero__caption {
    justify-self: start;
  }
}

/* A quiet hierarchy rail, consistent with the program's pale navigation. */
.academic-department .academic-department-context {
  border-block-end: 1px solid var(--color-border);
  background: var(--adp-editorial-soft);
}

.academic-department .academic-department-context__inner {
  gap: 1rem 2.5rem;
  padding-block: 1.25rem;
}

.academic-department .academic-department-context__item {
  min-width: 0;
  max-width: 100%;
  padding: 0 0 0 1rem;
  border-inline-start: 3px solid var(--color-primary);
  background: transparent;
  overflow-wrap: anywhere;
}

.academic-department .academic-department-context__label {
  color: var(--color-muted);
  font-size: .6875rem;
  letter-spacing: .1em;
}

.academic-department .academic-department-context a {
  color: var(--color-primary-dark);
  text-underline-offset: .18em;
}

/* Let each section breathe; preserve tight/roomy authored row variants. */
.academic-department .academic-department__body {
  gap: clamp(2rem, 4vw, 3.5rem);
  padding-block: var(--adp-editorial-space);
}

.academic-department .academic-department__main {
  container-type: inline-size;
  container-name: department-main;
}

.academic-department .academic-department__main .content-prose {
.academic-department .academic-department-overview__body,
.academic-department .academic-department__section-intro,
.academic-department .academic-department-card__body,
.academic-department .academic-department-highlight-card__body,
.academic-department .academic-department-program-card__body {
  overflow-wrap: anywhere;
}

.academic-department .academic-department-section:not(.academic-department-custom-row) {
  padding-block: var(--adp-editorial-space);
}

.academic-department .academic-department__main > .academic-department-section:first-child {
  padding-block-start: 0;
}

.academic-department .academic-department-section + .academic-department-section {
  border-block-start: 1px solid var(--color-border);
}

.academic-department .academic-department__section-header {
  max-width: 65ch;
  margin-block-end: 1.75rem;
}

.academic-department .academic-department__section-title {
  color: var(--color-primary-dark);
  font-size: clamp(1.75rem, 2.5vw, 2.5rem);
  letter-spacing: -.025em;
  line-height: 1.18;
  overflow-wrap: anywhere;
}

.academic-department .academic-department__section-header::after {
  inline-size: 3rem;
  block-size: .1875rem;
  margin-block-start: 1rem;
  border-radius: 0;
}

.academic-department .academic-department__section-intro,
.academic-department .academic-department-overview__body {
  max-width: 65ch;
  line-height: 1.75;
}

/* Program-inspired unified overview surface; no overlap or fixed height. */
.academic-department .academic-department-overview__grid {
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
  border-radius: var(--adp-editorial-radius);
  background: var(--adp-editorial-soft);
}

.academic-department .academic-department-overview__content {
  min-width: 0;
  padding: clamp(1.5rem, 3vw, 2.5rem);
}

.academic-department .academic-department-overview .academic-department__section-title {
  font-size: clamp(1.5rem, 2.25vw, 2rem);
}

.academic-department .academic-department-overview__media {
  min-width: 0;
  padding: 1rem;
}

.academic-department .academic-department-overview__media img {
  border-radius: var(--adp-editorial-radius);
  box-shadow: none;
}

.academic-department .academic-department-mission__quote,
.academic-department .academic-department-quote {
  margin-block-start: 1.5rem;
  padding: 1rem 1.5rem;
  border-inline-start: .25rem solid var(--color-gold);
  border-radius: 0;
  background: transparent;
  color: var(--color-primary-dark);
  font-size: clamp(1.125rem, 1.7vw, 1.4rem);
  line-height: 1.7;
}

/* Content grids respond to their actual column width, including an aside. */
.academic-department .academic-department-card-grid,
.academic-department .academic-department-highlight-grid,
.academic-department .academic-department-program-grid,
.academic-department .academic-department-location-grid {
  grid-template-columns: minmax(0, 1fr);
  gap: 1.5rem;
}

@container department-main (min-width: 38rem) {
  .academic-department .academic-department-card-grid,
  .academic-department .academic-department-highlight-grid,
  .academic-department .academic-department-program-grid,
  .academic-department .academic-department-location-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@container department-main (min-width: 48rem) {
  .academic-department .academic-department-overview__grid--has-media {
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
    align-items: center;
  }
}

@supports not (container-type: inline-size) {
  @media (min-width: 48rem) {
    .academic-department .academic-department-card-grid,
    .academic-department .academic-department-highlight-grid,
    .academic-department .academic-department-program-grid,
    .academic-department .academic-department-location-grid {
      grid-template-columns: repeat(2, minmax(0, 1fr));
    }
  }
}

.academic-department .academic-department-card,
.academic-department .academic-department-highlight-card,
.academic-department .academic-department-program-card,
.academic-department .academic-department-location-card {
  min-width: 0;
  border: 1px solid var(--color-border);
  border-radius: var(--adp-editorial-radius);
  background: var(--color-white);
  box-shadow: none;
  transform: none;
  transition: border-color 160ms ease;
}

.academic-department .academic-department-card,
.academic-department .academic-department-highlight-card {
  padding: 1.5rem;
}

.academic-department .academic-department-card h3,
.academic-department .academic-department-highlight-card h3,
.academic-department .academic-department-program-card h3 {
  color: var(--color-primary-dark);
  font-size: 1.25rem;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.academic-department .academic-department-card:focus-within,
.academic-department .academic-department-program-card:focus-within,
.academic-department .academic-department-highlight-card:focus-within {
  border-color: var(--color-primary);
}

.academic-department .academic-department-program-card {
  display: flex;
  flex-direction: column;
  padding: 0;
}

.academic-department .academic-department-program-card__content {
  flex: 1;
  padding: 1.5rem;
}

.academic-department .academic-department-program-card__media {
  border: 0;
  background: var(--adp-editorial-soft);
}

.academic-department .academic-department-program-card__meta {
  color: var(--color-muted);
  font-size: .875rem;
  font-weight: var(--fw-semibold);
}

.academic-department .academic-department-card__body,
.academic-department .academic-department-highlight-card__body,
.academic-department .academic-department-program-card__body {
  line-height: 1.75;
}

/* The directory invitation is one quiet band, using the existing wrapper. */
.academic-department .academic-department-faculty__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem 2rem;
  padding: clamp(1.5rem, 3vw, 2.5rem);
  border-inline-start: .25rem solid var(--color-gold);
  border-radius: var(--adp-editorial-radius);
  background: var(--adp-editorial-soft);
}

.academic-department .academic-department-faculty__inner > div {
  flex: 1 1 24rem;
  min-width: 0;
}

.academic-department .academic-department-faculty .academic-department__section-header,
.academic-department .academic-department-faculty__action {
  margin: 0;
}

.academic-department .academic-department-faculty .academic-department__section-header::after {
  display: none;
}

.academic-department .academic-department-card a,
.academic-department .academic-department-program-card a,
.academic-department .academic-department-context a:hover {
  text-decoration-thickness: .08em;
  text-underline-offset: .2em;
}

.academic-department .academic-department-card__action {
  margin-block-start: 1.25rem;
}

.academic-department .academic-department-feature {
  gap: 0;
  border-radius: var(--adp-editorial-radius);
  background: var(--adp-editorial-soft);
  box-shadow: none;
}

.academic-department .academic-department-feature__content {
  min-width: 0;
  padding: clamp(1.5rem, 3vw, 2.5rem);
}

.academic-department .academic-department-feature__media img {
  border-radius: var(--adp-editorial-radius);
}

/* Existing button behavior; keep crimson reserved for actions. */
.academic-department .academic-department-button {
  max-width: 100%;
  border-radius: var(--radius-pill);
  border-color: var(--color-primary);
  background: var(--color-primary);
  color: var(--color-white);
  font-weight: var(--fw-bold);
  text-align: center;
  overflow-wrap: anywhere;
}

.academic-department .academic-department-button:hover,
.academic-department .academic-department-button:focus {
  border-color: var(--color-accent);
  background: var(--color-accent);
  color: var(--color-white);
}

/* Department-only shared component pilot. Keep Foundation disclosure hooks. */
.academic-department .academic-department__aside {
  gap: 2rem;
  top: calc(var(--masthead-height, 80px) + 1.5rem);
}

.academic-department .academic-aside {
  gap: 2rem;
}

.academic-department .academic-aside__navigation .sidebar-nav,
/* Aside placement only. Shared navigation/contact appearance is deferred. */
.academic-department .academic-department-local-nav,
.academic-department .academic-department-contact {
  padding: 1.5rem;
  border: 0;
  border-radius: var(--adp-editorial-radius);
  background: var(--adp-editorial-soft);
  box-shadow: none;
}

.academic-department .academic-department-local-nav .program-nav__list a,
.academic-department .academic-department-local-nav .program-nav__dropdown-toggle {
  min-height: 2.75rem;
  border-color: transparent;
  border-radius: var(--radius-xs, .25rem);
  background: transparent;
  background: var(--color-white);
}

.academic-department .academic-department-local-nav .program-nav__list a:hover,
.academic-department .academic-department-local-nav .program-nav__dropdown-toggle:hover {
  background: var(--color-white);
  color: var(--color-accent);
.academic-department .academic-department-local-nav__title,
.academic-department .academic-department-contact__heading {
  color: var(--color-primary-dark);
}

.academic-department .contact-placard:not(.contact-placard--member-card) .contact-placard__link {
  text-decoration: underline;
  text-decoration-thickness: .06em;
  text-underline-offset: .2em;
.academic-department .academic-department__aside {
  gap: 2rem;
  top: calc(var(--masthead-height, 80px) + 1.5rem);
}

.academic-department .academic-department-location-card:not(.academic-department-location-card--has-image) {
  padding: 1.5rem;
}

/* Retain authored photo backgrounds and their contrast layer. */
.academic-department .academic-department-location-card--has-image {
  border: 0;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, .12), rgba(0, 0, 0, .72)),
    var(--adp-location-card-image), var(--color-primary);
  background-position: center;
  background-size: cover;
}

.academic-department .academic-department-location-card__details > div {
  border-radius: .25rem;
.academic-department .academic-department-location-card:not(.academic-department-location-card--has-image) .academic-department-location-card__details {
  gap: 0;
}

.academic-department .academic-department-location-card:not(.academic-department-location-card--has-image) .academic-department-location-card__details > div {
  padding: .75rem 0;
  border-radius: 0;
  background: transparent;
}

.academic-department .academic-department-location-card:not(.academic-department-location-card--has-image) .academic-department-location-card__details > div + div {
  border-block-start: 1px solid var(--color-border);
}

/* Preserve editor-selected row treatments, including inverse quote colors. */
.academic-department .academic-department-custom-row--dark .academic-department__section-title,
.academic-department .academic-department-custom-row--dark .academic-department__section-intro,
.academic-department .academic-department-custom-row--dark .academic-department-quote {
  color: var(--color-white);
}

/* CTA appearance remains in the shared program-cta.css; placement only. */
.academic-department .academic-department__footer-cta {
  margin-block-start: var(--adp-editorial-space);
}

@media (max-width: 69.999rem) {
  .academic-department .academic-department__body {
    grid-template-columns: minmax(0, 1fr);
  }
  .academic-department .academic-department__aside {
    position: static;
  }
}

@media (min-width: 70rem) {
  .academic-department .academic-department__body {
    grid-template-columns: minmax(0, 1fr) minmax(16rem, 18rem);
    align-items: start;
  }
}

@media (max-width: 44.999rem) {
  .academic-department .academic-department-context__inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (prefers-reduced-motion: reduce) {
  .academic-department .academic-department-card,
  .academic-department .academic-department-program-card,
  .academic-department .academic-department-highlight-card,
  .academic-department .academic-department-location-card {
    transition: none;
  }
}
/* Image-only department overview: no empty title/text column. */
.academic-department .academic-department-overview--image-only .academic-department-overview__grid {
  grid-template-columns: minmax(0, 1fr);
}
.academic-department .academic-department-overview--image-only .academic-department-overview__media {
  width: min(100%, 48rem);
  margin-block: 0;
  margin-inline: auto;
}
