/* Ceremony page proportions are relative to the full invitation width. */
.details.section-pad {
  container-type: inline-size;
  position: relative;
  padding: 4% 0 26px;
  text-align: center;
  color: #0c1828;
}
.details .academic-ribbon {
  top: 0;
  width: 27.3cqw;
  max-height: none;
  background-size: 100% 100%;
  background-position: center top;
  filter: drop-shadow(0 2px 2px #17283c26);
}
.details .academic-ribbon--left { left: -1.5cqw; height: 64cqw; background-image: url('../assets/left.png'); }
.details .academic-ribbon--right { right: -1.5cqw; height: 70cqw; background-image: url('../assets/right.png'); }
.ribbon__class, .ribbon__motto, .ribbon__graduation, .ribbon__dream {
  position: absolute;
  left: 30%;
  right: 26%;
  margin: 0;
  color: #e4cca0;
  text-align: center;
}
.ribbon__class { top: 18cqw; font: 400 clamp(10px, 1.6cqw, 12px)/1.3 var(--font-serif-heading); }
.ribbon__class b { font-size: clamp(12px, 2cqw, 14px); line-height: 1.4; font-weight: 400; }
.ribbon__class::before, .ribbon__class::after, .ribbon__dream::before { content: ''; display: block; width: 3.5cqw; margin: 1.2cqw auto; border-top: 1px solid #d5bd8c; }
.ribbon__class::before { margin-top: -1.5cqw; }
.ribbon__motto { top: 33cqw; font: 400 clamp(14px, 2.2cqw, 18px)/1 var(--font-script); }
.ribbon__graduation { top: 16cqw; font: 400 clamp(11px, 1.8cqw, 13px)/1.02 var(--font-serif-heading); }
.ribbon__dream { top: 49cqw; font: 400 clamp(8px, 1.1cqw, 10px)/1.55 var(--font-serif-heading); letter-spacing: .12em; }
.ribbon__dream::before { margin-top: -.3cqw; margin-bottom: 1.4cqw; }

.details__logo-frame { width: 20.8cqw; height: 20.8cqw; margin: 0 auto; }
.details .details__logo { width: 100%; height: 100%; max-height: none; margin: 0; object-fit: contain; mix-blend-mode: multiply; }
.details .details__school { width: 64cqw; max-width: none; margin: calc(1.2cqw + 6px) auto 0; font: 600 clamp(14px, 2.4cqw, 18px)/1.5 var(--font-serif-heading); color: #0c1828; text-transform: uppercase; }
.details__school-rule { width: 28cqw; height: 1.7cqw; margin: calc(1cqw + 4px) auto 0; gap: 1.2cqw; }
.details__school-rule span { flex: 1; width: auto; border-color: #68717b; }
.details__school-rule b, .details__ceremony-rule b, .details__closing-rule b { width: 1.5cqw; height: 2.4cqw; flex-basis: 1.5cqw; }
.details__slogan { margin: calc(1.4cqw + 4px) auto 0; max-width: 66cqw; font: 400 clamp(10px, 1.4cqw, 11px)/1.5 var(--font-serif-heading); letter-spacing: .2em; }
.details .details__cap { width: 31.5cqw; margin: -2.8cqw auto 0; }

.details__ceremony { margin: -.8cqw auto 0; width: 74cqw; color: #071220; font: 400 clamp(38px, 6.5cqw, 52px)/1 var(--font-serif-heading); letter-spacing: -.02em; }
.details__ceremony-line { display: block; white-space: nowrap; }
.details__ceremony-line--second { margin-top: 4px; font-size: clamp(28px, 5cqw, 40px); line-height: 1; letter-spacing: -.02em; }
.ceremony-initial { font-family: var(--font-script); font-size: 1.1em; line-height: 0; letter-spacing: -.06em; }
.details__ceremony-line:first-child .ceremony-initial { font-family: var(--font-serif-heading); font-size: 1.1em; letter-spacing: -.04em; }
.details__ceremony-rule { width: 23cqw; height: 1.6cqw; margin: calc(1.2cqw + 6px) auto 0; gap: 1.2cqw; }
.details__ceremony-rule span { flex: 1; width: auto; border-color: #68717b; }
.details .details__name { width: 90cqw; margin: calc(2cqw + 8px) auto 0; font: 400 clamp(46px, 9cqw, 64px)/1.15 var(--font-script); color: #071220; }
.details__invitation { margin: calc(1cqw + 14px) auto 0; font: italic 400 clamp(13px, 2cqw, 14.5px)/1.6 var(--font-serif-body); letter-spacing: .02em; }

.details .info-card--location { width: 86cqw; max-width: none; padding: 0; margin: calc(3cqw + 8px) auto 0; }
.details .details__location-label { display: flex; flex-direction: row; justify-content: center; align-items: center; gap: 1.5cqw; width: 50cqw; margin-bottom: calc(1.2cqw + 6px); }
.details__location-label i { display: block; flex: 1; height: 1px; background: #69727d; }
.details__location-label svg { width: 2cqw; height: 2.5cqw; }
.details .details__location-label small { margin: 0; font: 700 12px/1.3 var(--font-serif-heading); letter-spacing: .12em; white-space: nowrap; }
.details__location-label small::before, .details__location-label small::after { display: none; }
.details .info-card--location strong { margin: 0; font: 700 clamp(15px, 2.4cqw, 17px)/1.3 var(--font-serif-display); text-transform: uppercase; letter-spacing: .03em; }
.details .info-card--location > div > span { margin: calc(.4cqw + 4px) 0 0; color: #151b25; font: 400 clamp(13px, 2cqw, 14.5px)/1.6 var(--font-serif-body); }
.details .info-card--location a.details__directions {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: auto;
  min-width: 140px;
  min-height: 40px;
  margin: 2.2cqw 0 0;
  padding: 9px 24px;
  border: 1.5px solid #d4af37;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(180deg, #162b45 0%, #0d1a29 100%);
  font: 600 13px/1.2 var(--font-serif-body);
  letter-spacing: .03em;
  box-shadow: 0 4px 14px rgba(16, 34, 56, 0.28), 0 0 10px rgba(212, 175, 55, 0.2);
  text-decoration: none;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease;
}
.details .info-card--location a.details__directions:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(16, 34, 56, 0.35), 0 0 14px rgba(212, 175, 55, 0.3);
}
.details .details__directions svg { width: 16px; height: 16px; flex-shrink: 0; fill: currentColor; }
.details .details__directions span { color: #fff; font: inherit; margin: 0; }
.details .details__directions::after { content: none; }

/* Contact and extra details */
.details .info-card--contact { width: 86cqw; max-width: none; padding: 0; margin: 2.5cqw auto 0; }
.details .info-card--contact small { display: block; color: #0c1828; font: 700 12px/1.5 var(--font-serif-heading); letter-spacing: .12em; margin-bottom: 4px; }
.details .info-card--contact strong { display: block; font: 700 17px/1.3 var(--font-number); color: #0c1828; letter-spacing: .06em; font-variant-numeric: lining-nums tabular-nums; }
.details .info-card--contact a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1.5px solid #d4af37;
  border-radius: 999px;
  background: linear-gradient(180deg, #162b45 0%, #0d1a29 100%);
  color: #fff;
  padding: 8px 24px;
  margin-top: 10px;
  font: 600 13px/1.2 var(--font-serif-body);
  letter-spacing: .03em;
  box-shadow: 0 4px 14px rgba(16, 34, 56, 0.28), 0 0 10px rgba(212, 175, 55, 0.2);
  text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease;
}
.details .info-card--contact a:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(16, 34, 56, 0.35), 0 0 14px rgba(212, 175, 55, 0.3);
}

.details__extras { width: 82cqw; margin: 0 auto; padding: 2.5cqw 0 20px; border-top: 1px solid #c9c2b5; }
.details__extras:not([open]) { padding: 0 0 14px; border: 0; }
.details__extras summary { width: max-content; margin: 0 auto 16px; padding: 6px 14px; color: #68717b; font: 500 13.5px/1.5 var(--font-serif-body); cursor: pointer; }
.details__extras summary:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.details__extras .class-pill { font-size: 14px; }
.details__extras .intro { margin: 8px 0 14px; }
@media (max-width: 420px) {
  .details .details__school { font-size: 14px; }
  .details__extras .info-card strong { font-size: 15px; }
}
