/* Three doors: tall pill-ended plates built from details/summary */

/* Even vertical rhythm: the picture, the two sections and the closing note are
   spaced by one measure of oxblood, so no gap reads wider than its neighbours. */
.page-campuses .fig { margin-bottom: 0; }
.page-campuses .section { padding-block: 0; margin-top: var(--stretch); }

.doors { display: grid; gap: 1.25rem; }
.door {
  border-radius: var(--r-panel);
  background: var(--rose); color: var(--ox);
}
.door :focus-visible { outline-color: var(--ox); }
.door ::selection { background: var(--ox); color: var(--rose); }
.door summary {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  column-gap: 1.25rem;
  row-gap: .2rem;
  min-height: 7rem;
  padding: 1.5rem clamp(1.5rem, 5vw, 2.75rem);
  border-radius: var(--r-panel);
  list-style: none;
  cursor: pointer;
}
.door summary::-webkit-details-marker { display: none; }
.door summary:focus-visible { outline-offset: .3rem; }
.door summary .tape { grid-row: 1 / span 2; }
.door summary h3 {
  margin: 0;
  font-size: 1.625rem; line-height: 1.2;
}
@media (min-width: 48rem) {
  .door summary h3 { font-size: 1.75rem; }
}
/* The one-line "what to confirm" summary: shown while a door is shut, out of the
   way once it opens (the body prints the same line as its sub-head). */
.door-say {
  grid-column: 2;
  margin: 0;
  font-size: var(--fs-body); line-height: 1.35;
}
.door[open] .door-say { display: none; }

.door .tape {
  width: var(--tape-w);
  transition: width var(--quick) ease-out;
}
.door summary:hover .tape,
.door[open] .tape { width: calc(var(--tape-w) + var(--tape-grow)); }
.door-body { padding: 0 clamp(1.5rem, 5vw, 2.75rem) 2rem; }
.door-body > :last-child { margin-bottom: 0; }
.door-sub {
  margin: 0 0 .6rem;
  font: 400 var(--fs-body)/1.4 var(--text);
}
.door-body a:not(.pill) { color: var(--ox); }

/* The way out of an open panel: an oxblood outline pill at reading size, flush
   with the panel's left text edge. */
.door-body .pill {
  margin-top: .85rem;
  min-height: 2.75rem;
  padding: .55rem 1.4rem;
  border: .125rem solid var(--ox);
  border-radius: var(--r-pill);
  background: transparent;
  color: var(--ox);
  font-size: var(--fs-body); line-height: 1.2;
  text-align: left;
  justify-content: flex-start;
  transition: background-color var(--quick) ease-out, color var(--quick) ease-out;
}
.door-body .pill:hover {
  background: var(--ox); color: var(--rose);
  text-decoration: none;
}

.page-campuses .fig--pano img { max-height: 38vh; }

/* The closing action: the filled pale-rose pill at reading size, the same
   weight as the one that closes the programs page. */
.page-campuses .prose .pill {
  margin-top: .25rem;
  min-height: 3.25rem;
  padding: .7rem 1.6rem;
  font-size: var(--fs-body); line-height: 1.3;
  text-align: left;
}
@media (max-width: 47.99rem) {
  .door summary { min-height: 5.5rem; column-gap: .9rem; padding-block: 1.15rem; }
}
