/* Shared page geometry for the institute's editorial pages. */
.inst {
  --inst-navy: #072e5a;
  --inst-mist: #e9f1f6;
  --inst-space: clamp(54px, 6vw, 98px);
}
.inst-shell {
  width: min(1216px, calc(100% - 2 * var(--gutter)));
  margin-inline: auto;
}
.inst-cover {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(36px, 6vw, 96px);
  padding-block: clamp(36px, 4.3vw, 72px);
}
.inst-hero { background: var(--inst-mist); color: var(--blue); }
.inst-lead { min-width: 0; }
.inst-cover.inst-cover-text { display: flex; justify-content: center; text-align: center; }
.inst-cover-text .inst-lead > p { margin-inline: auto; }
.inst-cover-text .inst-actions { justify-content: center; }
.inst-lead h1 {
  font-size: clamp(3.65rem, 6.3vw, 6.75rem);
  line-height: .98;
  letter-spacing: -.065em;
}
.inst-lead > p {
  max-width: 46ch;
  margin-top: 22px;
  font-size: clamp(1.04rem, 1.4vw, 1.26rem);
  line-height: 1.6;
  color: #354d63;
}
.inst-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 26px; margin-top: 28px; }
.inst-link {
  display: inline-flex; align-items: center; min-height: 44px;
  color: var(--blue); font-size: .95rem; font-weight: 750;
  text-decoration: underline; text-underline-offset: .27em; text-decoration-thickness: 1px;
}
.inst-link:hover { text-decoration-thickness: 2px; }
.inst-photo { position: relative; isolation: isolate; min-width: 0; }
.inst-photo img { width: 100%; height: clamp(320px, 29vw, 450px); object-fit: cover; }
.inst-why-us .inst-lead { text-align: center; }
.inst-why-us .inst-lead > p { margin-inline: auto; }
.inst-why-us .inst-actions { justify-content: center; }
.inst-why-us .inst-cover { gap: clamp(24px, 4vw, 70px); padding-bottom: 0; }
.inst-why-us .inst-lead { padding-bottom: 38px; }
.inst-why-us .inst-photo { align-self: end; overflow: hidden; }
.inst-why-us .inst-photo::before {
  content: ""; position: absolute; z-index: -1; height: 88%; aspect-ratio: 1;
  bottom: 5%; left: 50%; transform: translateX(-50%);
  background: var(--light-gold); border-radius: 50%;
  box-shadow: 0 0 0 14px var(--inst-mist), 0 0 0 15px #b6cad8;
}
.inst-why-us .inst-photo img { height: clamp(315px, 31vw, 465px); object-fit: contain; object-position: center bottom; }
.inst-financial-aid .inst-hero, .inst-history .inst-hero { background: var(--inst-navy); color: #fff; }
.inst-financial-aid .inst-lead > p, .inst-history .inst-lead > p { color: #e1ecf6; }
.inst-financial-aid .inst-actions .button, .inst-history .inst-actions .button { color: var(--inst-navy); background: var(--light-gold); border-color: var(--light-gold); }
.inst-financial-aid .inst-actions .button:hover, .inst-history .inst-actions .button:hover { background: #ffd379; }
.inst-financial-aid .inst-actions .inst-link, .inst-history .inst-actions .inst-link { color: #fff; }
.inst-financial-aid .inst-hero :focus-visible, .inst-history .inst-hero :focus-visible { outline-color: var(--light-gold); }
.inst-financial-aid .inst-photo img { height: clamp(360px, 34vw, 480px); object-position: center 64%; }
.inst-contacts {
  display: flex; align-items: center; flex-wrap: wrap; gap: 18px 28px; margin: 24px 0 0;
  padding-block: 17px; border-block: 1px solid #ffffff4d;
}
.inst-contacts dt, .inst-contacts small { display: block; font-size: .84rem; color: #d3e0ef; }
.inst-contacts dd { margin: 3px 0 0; }
.inst-contacts > div:first-child dd { color: var(--light-gold); font: 650 clamp(1.8rem, 2.7vw, 2.7rem)/1 var(--display); letter-spacing: .01em; }
.inst-contacts a { color: white; font-weight: 650; text-decoration: underline; overflow-wrap: anywhere; }
.inst-about-us .inst-photo img { object-position: 50% 44%; }
.inst-about-us .inst-photo { border-bottom: 6px solid var(--light-gold); }
.inst-history .inst-photo { padding-bottom: 15px; }
.inst-history .inst-photo img { object-position: center 53%; }
.inst-history .inst-photo figcaption {
  display: grid; gap: 4px; position: absolute; left: -24px; bottom: 0;
  background: var(--light-gold); color: var(--inst-navy); padding: 14px 23px 16px;
}
.inst-history figcaption strong { font: 650 clamp(2.8rem, 4.2vw, 4.8rem)/.95 var(--display); letter-spacing: -.07em; }
.inst-history figcaption span { font-size: .85rem; }
.inst-body h2 { color: var(--blue); font-size: clamp(1.9rem, 3.3vw, 3.55rem); }
.inst-body h3 { color: var(--inst-navy); }
.inst-body p { font-weight: 480; line-height: 1.72; }
.inst-body p + p { margin-top: .9em; }
.inst-intro { max-width: 800px; margin-inline: auto; padding-block: var(--inst-space); text-align: center; }
.inst-intro p { margin: 18px auto 0; }
.inst-reasons, .inst-students { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: clamp(32px, 5.5vw, 86px); }
.inst-reasons { padding-bottom: var(--inst-space); }
.inst-reasons figure img { width: 100%; height: auto; }
.inst-reasons h2 { margin-bottom: 22px; }
.inst-reason { border-top: 1px solid #b8c9d8; }
.inst-reason:last-child { border-bottom: 1px solid #b8c9d8; }
.inst-reason summary, .inst-mobile-index summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between;
  gap: 16px; min-height: 52px; padding-block: 14px; font-weight: 700; color: var(--blue);
}
.inst-reason summary { font-family: var(--display); font-size: clamp(1.08rem, 1.5vw, 1.4rem); }
.inst-reason summary::-webkit-details-marker, .inst-mobile-index summary::-webkit-details-marker { display: none; }
.inst-reason summary::after, .inst-mobile-index summary::after { content: "+"; font: 400 1.55rem/1 var(--display); }
.inst-reason[open] summary::after, .inst-mobile-index[open] summary::after { content: "−"; }
.inst-reason > div { padding: 0 0 20px; }
.inst-wash { background: var(--inst-mist); }
.inst-stories { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(26px, 4vw, 64px); padding-block: var(--inst-space); }
.inst-stories article img { aspect-ratio: 1.89; height: auto; object-fit: cover; }
.inst-stories h2 { margin-block: 24px 12px; font-size: clamp(1.75rem, 2.5vw, 2.7rem); }
.inst-stories .inst-link, .inst-students .inst-link, .inst-about-part .inst-link { margin-top: 10px; }
.inst-students { padding-block: var(--inst-space); }
.inst-students h2 { margin-bottom: 16px; }
.inst-students .video-embed { margin: 0; }
.inst-students iframe { display: block; width: 100%; aspect-ratio: 16 / 9; height: auto; border: 0; }
.inst-guide { display: grid; grid-template-columns: minmax(195px, 252px) minmax(0, 760px); gap: clamp(30px, 5.5vw, 94px); justify-content: center; align-items: start; padding-block: var(--inst-space); }
.inst-guide > * { min-width: 0; }
.inst-index { position: sticky; top: 20px; padding: 16px 22px; background: var(--inst-mist); border-top: 4px solid var(--blue); }
.inst-index p { font-weight: 750; color: var(--inst-navy); margin-bottom: 8px; }
.inst-index a, .inst-mobile-index a { display: block; padding-block: 7px; line-height: 1.4; font-size: .94rem; color: var(--blue); }
.inst-index a:hover, .inst-mobile-index a:hover { text-decoration: underline; }
.inst-mobile-index { display: none; }
.inst-chapter { scroll-margin-top: 24px; }
.inst-chapter + .inst-chapter { margin-top: 56px; padding-top: 40px; border-top: 1px solid var(--line); }
.inst-chapter h2 { margin-bottom: 16px; font-size: clamp(1.95rem, 3vw, 3.1rem); }
.inst-chapter h3 { margin: 28px 0 10px; font-size: 1.3rem; }
.inst-chapter ul, .inst-chapter ol, .inst-timeline article ul { padding-left: 1.45em; color: var(--muted); }
.inst-chapter li + li { margin-top: .38em; }
.inst-chapter a { color: var(--blue); text-decoration: underline; overflow-wrap: anywhere; }
.inst-table { overflow-x: auto; margin-block: 16px; }
.inst-table table { border-collapse: collapse; width: 100%; min-width: 32rem; color: var(--ink); font-size: .94rem; }
.inst-table th, .inst-table td { padding: 12px; text-align: left; border: 1px solid var(--line); }
.inst-table th { background: var(--inst-mist); color: var(--inst-navy); }
.inst-mission { background: var(--blue); padding-block: var(--inst-space); text-align: center; }
.inst-about-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 0 25px; border-bottom: 1px solid var(--line); padding-block: 9px; }
.inst-about-nav a { display: flex; align-items: center; min-height: 44px; color: var(--blue); font-size: .9rem; font-weight: 700; }
.inst-about-nav a:hover { text-decoration: underline; }
.inst-mission h2 { color: var(--light-gold); }
.inst-mission p { margin: 20px auto 0; max-width: 53ch; font-size: clamp(1.2rem, 2vw, 1.8rem); color: white; line-height: 1.5; }
.inst-about-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px clamp(32px, 5vw, 80px); padding-block: var(--inst-space); }
.inst-about-grid section { border-top: 2px solid #b8cadb; padding-top: 20px; }
.inst-about-grid h2 { font-size: clamp(1.7rem, 2.5vw, 2.7rem); margin-bottom: 12px; }
.inst-timeline { max-width: 940px; margin-inline: auto; padding-block: var(--inst-space); }
.inst-timeline > header { max-width: 760px; margin: 0 auto 54px; text-align: center; }
.inst-timeline header p { margin: 18px auto 0; }
.inst-timeline ol { list-style: none; margin: 0; padding: 0; }
.inst-timeline ol > li { display: grid; grid-template-columns: minmax(145px, .34fr) minmax(0, 1fr); }
.inst-era { font: 650 clamp(1.25rem, 2.3vw, 2.2rem)/1.3 var(--display); color: var(--blue); letter-spacing: -.04em; }
.inst-timeline article { position: relative; padding: 0 0 40px clamp(25px, 3vw, 50px); border-left: 2px solid #c6d4df; }
.inst-timeline article::before { content: ""; position: absolute; top: .5em; left: -7px; width: 12px; height: 12px; border-radius: 50%; background: var(--light-gold); box-shadow: 0 0 0 3px white; }
.inst-timeline li:last-child article { padding-bottom: 0; }
.inst-timeline article h3 { font-size: clamp(1.4rem, 2.3vw, 2.1rem); margin-bottom: 12px; }
.inst-body > :not(.inst-shell, .inst-wash, .inst-mission) { max-width: min(800px, calc(100% - 2 * var(--gutter))); margin: 24px auto; }
@media (max-width: 820px) {
  .inst-cover { gap: 28px; }
  .inst-contacts { gap: 12px 20px; }
  .inst-guide { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .inst-index { display: none; }
  .inst-mobile-index { display: block; background: var(--inst-mist); padding: 0 18px; }
  .inst-mobile-index nav { padding-bottom: 15px; }
}
@media (max-width: 680px) {
  .inst-cover { grid-template-columns: 1fr; padding-block: 34px 24px; gap: 24px; }
  .inst-lead { text-align: center; }
  .inst-lead h1 { font-size: clamp(3.1rem, 12vw, 4.6rem); }
  .inst-lead > p { margin: 14px auto 0; }
  .inst-actions { justify-content: center; margin-top: 20px; gap: 8px 20px; }
  .inst-why-us .inst-lead { padding-bottom: 0; }
  .inst-why-us .inst-photo { width: min(100%, 370px); margin: 0 auto; }
  .inst-why-us .inst-photo img { height: clamp(206px, 60vw, 290px); }
  .inst-photo img, .inst-financial-aid .inst-photo img { height: clamp(190px, 56vw, 315px); }
  .inst-contacts { margin-top: 16px; padding-block: 12px; justify-content: center; }
  .inst-history .inst-photo figcaption { left: 0; padding: 10px 16px; }
  .inst-reasons, .inst-stories, .inst-students, .inst-about-grid { grid-template-columns: minmax(0, 1fr); }
  .inst-reasons figure { max-width: 430px; margin-inline: auto; }
  .inst-intro { padding-block: 48px; }
  .inst-timeline > header { margin-bottom: 34px; }
  .inst-timeline ol > li { position: relative; display: block; border-left: 2px solid #c6d4df; padding: 0 0 30px 23px; }
  .inst-timeline ol > li::before { content: ""; position: absolute; top: .55em; left: -6px; width: 10px; height: 10px; border-radius: 50%; background: var(--light-gold); }
  .inst-timeline article { border: 0; padding: 0; }
  .inst-timeline article::before { content: none; }
  .inst-era { margin-bottom: 5px; }
}
@media (max-width: 550px) {
  .inst-actions .inst-link { display: none; }
}
