[data-editorial-route] .inner-content > .editorial-chapter {
  --chapter-gap: clamp(1.1rem, 3.4vw, 3.5rem);
  --chapter-rule: color-mix(in srgb, var(--editorial-accent) 20%, var(--editorial-paper));
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(1.05rem, 2.3vw, 1.85rem);
  padding-block: clamp(2.25rem, 5.6vw, 5.2rem);
}

.editorial-chapter-header,
.editorial-chapter-content {
  min-inline-size: 0;
}

.editorial-chapter-header h2 {
  max-inline-size: 27ch;
  color: var(--editorial-panel);
  font-size: clamp(1.85rem, 1.18rem + 2.3vw, 3.5rem);
  font-weight: 700;
  line-height: 1.14;
  text-wrap: balance;
  overflow-wrap: anywhere;
}

.editorial-chapter-header > p {
  max-inline-size: 62ch;
  margin-block-start: .7rem;
  color: #60515a;
  font-size: clamp(1rem, .94rem + .32vw, 1.21rem);
  line-height: 1.66;
}

.editorial-chapter-copy,
.editorial-chapter-content {
  display: grid;
  align-content: start;
  gap: clamp(.9rem, 1.8vw, 1.45rem);
}

.editorial-chapter-content > :is(p, ul, ol, dl, address, h3, .inner-link-list, .inner-note, figure) {
  margin-block-start: 0;
}

.editorial-chapter-content > :is(p, address, .inner-bullets) {
  max-inline-size: 65ch;
  font-size: clamp(1rem, .96rem + .18vw, 1.12rem);
  line-height: 1.72;
}

.editorial-chapter-content > h3:not(:first-child) { margin-block: .3rem 0; }

.editorial-chapter-content > .program-quote {
  max-inline-size: 24ch;
  margin: 0;
  line-height: 1.18;
  font-size: clamp(1.65rem, .95rem + 1.85vw, 3rem);
  text-wrap: balance;
}

.editorial-chapter-media {
  display: grid;
  gap: clamp(.9rem, 2.1vw, 1.5rem);
  min-inline-size: 0;
  margin: 0;
}

.editorial-chapter-figure {
  display: grid;
  align-content: start;
  gap: .4rem;
  min-inline-size: 0;
  margin: 0;
}

.editorial-chapter-figure img {
  display: block;
  inline-size: 100%;
  block-size: auto;
  border-radius: var(--editorial-radius);
  background: var(--editorial-wash);
}

.editorial-chapter-figure figcaption {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 0 .65rem;
  color: #68535e;
  font-size: .84rem;
  line-height: 1.48;
  overflow-wrap: anywhere;
}

.editorial-chapter-figure figcaption a {
  display: inline-flex;
  align-items: center;
  min-block-size: 44px;
  color: var(--editorial-accent);
  text-decoration: underline;
  text-underline-offset: .21em;
  white-space: nowrap;
}

[data-editorial-route] .editorial-chapter .reference-facts {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr));
  gap: 0 clamp(1.05rem, 2.7vw, 2.4rem);
  margin: 0;
}

[data-editorial-route] .editorial-chapter .reference-fact {
  gap: .35rem;
  padding: .88rem 0 .15rem;
  border: 0;
  border-block-start: 1px solid var(--chapter-rule);
  border-radius: 0;
  background: transparent;
}

.editorial-chapter .reference-fact dt { color: var(--editorial-panel); }
.editorial-chapter .reference-fact dd { gap: .14rem; }
.editorial-chapter .reference-fact a { color: var(--editorial-accent); }

.editorial-chapter .inner-course-list {
  border-block-start-color: var(--chapter-rule);
  margin: 0;
}

.editorial-chapter .inner-course-list li {
  align-items: baseline;
  padding-block: .67rem;
  border-block-end-color: var(--chapter-rule);
  color: var(--ink);
  line-height: 1.45;
}

.editorial-chapter .inner-course-list li span:first-child {
  min-inline-size: 7ch;
  color: var(--editorial-accent);
  font-size: .88rem;
  font-variant-numeric: tabular-nums;
}

.editorial-chapter .inner-bullets { margin: 0; }
.editorial-chapter .inner-bullets li + li { margin-block-start: .72rem; }

.editorial-chapter ol.inner-bullets {
  padding: 0;
  list-style: none;
  counter-reset: chapter-step;
}

.editorial-chapter ol.inner-bullets li {
  counter-increment: chapter-step;
  position: relative;
  min-block-size: 2.85rem;
  padding: .55rem 0 .62rem 3.1rem;
  border-block-end: 1px solid var(--chapter-rule);
}

.editorial-chapter ol.inner-bullets li::before {
  content: counter(chapter-step);
  position: absolute;
  inset-block-start: .3rem;
  inset-inline-start: 0;
  display: grid;
  place-items: center;
  inline-size: 2.1rem;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--editorial-wash);
  color: var(--editorial-accent);
  font: 700 1rem / 1 var(--display);
  font-variant-numeric: tabular-nums;
}

.editorial-chapter .inner-link-list {
  align-items: start;
  justify-items: start;
  gap: .15rem;
  margin: 0;
  border: 0;
}

.editorial-chapter .inner-link {
  justify-content: flex-start;
  gap: .55rem;
  max-inline-size: 100%;
  min-block-size: 44px;
  padding: .42rem .15rem;
  border: 0;
  color: var(--editorial-accent);
  text-underline-offset: .22em;
}

.editorial-chapter .inner-link:is(:hover, :focus-visible) { background: transparent; }

.editorial-chapter .inner-link:first-child {
  justify-content: space-between;
  margin-block-end: .12rem;
  padding: .57rem .9rem .6rem 1rem;
  border-radius: 1.6rem;
  background: var(--editorial-panel);
  color: #fff7fa;
}

.editorial-chapter .inner-link:first-child:is(:hover, :focus-visible) {
  background: color-mix(in srgb, var(--editorial-panel) 83%, var(--editorial-accent));
}

.editorial-chapter :is(a, summary):focus-visible {
  outline: 2px solid var(--editorial-accent);
  outline-offset: 3px;
}

[data-editorial-route] .editorial-chapter .inner-facts {
  padding: clamp(.75rem, 2vw, 1.3rem);
  margin: 0;
  border: 0;
  background: var(--editorial-wash);
}

.editorial-chapter .inner-facts dt { font-size: .91rem; line-height: 1.42; }
.editorial-chapter .inner-facts dd { color: var(--editorial-accent); }

.inner-masthead[data-route="resources"] { --masthead-position: 50% 45%; }

#staff .editorial-chapter-figure { inline-size: min(100%, 15rem); }

[data-editorial-route="facilities"] .facility-site-map img {
  width: 100%;
  height: auto;
  max-height: none;
  object-fit: contain;
}

.program-faculty-roster {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr));
  gap: 0 1.15rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.program-faculty-roster li {
  padding-block: .48rem;
  border-block-end: 1px solid var(--chapter-rule);
}

@media (min-width: 38rem) {
  .editorial-chapter-media:has(> :nth-child(2)) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 58rem) {
  [data-editorial-route] .inner-content > .editorial-chapter { scroll-margin-block-start: 7.5rem; }

  [data-editorial-route] .inner-content > .editorial-chapter:has(> .editorial-chapter-copy) {
    grid-template-columns: minmax(0, .78fr) minmax(0, 1.65fr);
    column-gap: var(--chapter-gap);
  }

  [data-editorial-route] .inner-content > .editorial-chapter[data-chapter-media] {
    grid-template-columns: minmax(0, 1fr);
  }

  .editorial-chapter[data-chapter-media] .editorial-chapter-header { max-inline-size: 75%; }
  .editorial-chapter[data-chapter-media] .editorial-chapter-copy {
    column-gap: var(--chapter-gap);
    align-items: start;
  }

  .editorial-chapter[data-chapter-media] .editorial-chapter-copy:has(> .editorial-chapter-media > :only-child) {
    grid-template-columns: minmax(0, 1fr) minmax(0, .82fr);
  }

  .editorial-chapter[data-chapter-media]:nth-child(even) .editorial-chapter-copy:has(> .editorial-chapter-media > :only-child) {
    grid-template-columns: minmax(0, .82fr) minmax(0, 1fr);
  }

  .editorial-chapter .inner-course-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: clamp(.65rem, 2vw, 1.8rem);
  }

}

@media (prefers-reduced-motion: no-preference) {
  .editorial-chapter.content-arrived[data-chapter-media] .editorial-chapter-figure img {
    animation: chapter-photo-settle .7s cubic-bezier(.2, .75, .16, 1) backwards;
  }

  .editorial-chapter.content-arrived[data-chapter-media] .editorial-chapter-figure:nth-child(2) img {
    animation-delay: .09s;
  }
}

@keyframes chapter-photo-settle {
  from { clip-path: inset(0 0 7% round 1rem); }
  to { clip-path: inset(0 round 1rem); }
}
