/* Shared first view for the eight main inner pages. HOME remains independent. */
.subpage-hero,
.study-page-content .study-hero.subpage-hero,
.foundation-page .foundation-hero.subpage-hero {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 300px;
  margin: 0;
  padding: clamp(56px, 6vw, 82px) 0;
  border: 0;
  border-radius: 0;
  background: linear-gradient(112deg, #17468f 0%, #225baa 58%, #2d6cb8 100%);
  color: #fff;
}
.subpage-hero .subpage-hero-inner,
.foundation-page .foundation-hero .foundation-hero-copy {
  display: block;
  width: min(1200px, calc(100% - 96px));
  max-width: none;
  margin: 0 auto;
  padding: 0;
  background: transparent;
  color: #fff;
}
.subpage-hero h1,
.foundation-page .foundation-hero h1 {
  max-width: 1100px;
  margin: 0 0 18px;
  color: #fff;
  font-family: var(--sans);
  font-size: clamp(36px, 3.65vw, 52px);
  font-weight: 750;
  line-height: 1.34;
  letter-spacing: .025em;
}
.subpage-hero .subpage-hero-description,
.foundation-page .foundation-hero .subpage-hero-description {
  max-width: 810px;
  margin: 0;
  color: #f5f9ff;
  font-size: clamp(16px, 1.4vw, 18px);
  font-weight: 500;
  line-height: 1.85;
}
.subpage-hero .button {
  margin: 24px 0 0;
  border-color: #fff;
  background: #fff;
  color: #173e7d;
  font-size: 14px;
}
.subpage-hero .button:hover { background: #eaf2ff; color: #173e7d; }
.subpage-hero :is(a, button):focus-visible { outline-color: #fff; }

/* Existing long introductions continue below the shared first view. */
.study-page-content .study-hero.subpage-hero { border-bottom: 0; }
.study-page-content .study-hero-copy > p.subpage-hero-description { max-width: 810px; color: #f5f9ff; font-size: clamp(16px, 1.4vw, 18px); }
.study-intro { padding-block: 36px 44px; }
.study-intro p { max-width: 850px; margin-bottom: 12px; color: #263f68; font-size: 16px; line-height: 1.85; }
.study-intro .study-hero-label { color: #1b5199; }
.seminar-page-content .seminar-hero { color: #fff; }
.seminar-page-content .seminar-intro { padding: 38px 0 48px; max-width: 1200px; }
.seminar-page-content .seminar-intro p { max-width: 850px; }

/* Page specific original content, now placed in the common hero rhythm. */
.about-page main > .about-page-heading {
  width: 100%;
  max-width: none;
  min-height: 300px;
  margin: 0;
  padding: clamp(56px, 6vw, 82px) 0;
  border-radius: 0;
  background: linear-gradient(112deg, #17468f 0%, #225baa 58%, #2d6cb8 100%);
}
.about-page .about-page-heading .eyebrow { display: none; }
.about-page .about-page-heading h1 {
  margin: 0 0 18px;
  color: #fff;
  font-family: var(--sans);
  font-size: clamp(36px, 3.65vw, 52px);
  font-weight: 750;
  line-height: 1.34;
}
.about-page .about-hero-prose { max-width: 850px; margin: 0; }
.about-page .about-hero-prose p { color: #f5f9ff; line-height: 1.85; }
.about-page .about-hero-prose p:last-child { margin-bottom: 0; }
.about-page main > .about-hero-prose { max-width: 1200px; margin-inline: auto; padding-block: 43px 0; }
.about-page main > .about-hero-prose p { max-width: 850px; color: #263f68; }
.foundation-page .foundation-index {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  align-items: stretch;
  margin: 28px auto 12px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #173e7d;
}
.foundation-page .foundation-index a {
  min-height: 66px;
  padding: 10px 14px;
  border: 1px solid #b8cce9;
  border-radius: 5px;
  background: #fff;
  color: #173e7d;
  font-size: 13px;
}
.foundation-page .foundation-index a:last-child { border: 1px solid #b8cce9; }
.foundation-page .foundation-index a.foundation-index-app { margin: 0; padding: 10px 14px; border-top: 1px solid #b8cce9; }
.foundation-page .foundation-index a:is(:hover,:focus-visible) { background: #eaf2ff; }
.foundation-page .foundation-index a span,
.foundation-page .foundation-index a::after,
.foundation-page .foundation-index .foundation-index-app-icon { color: #225baa; }
@media (max-width: 800px) {
  .foundation-page .foundation-index { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .subpage-hero,
  .study-page-content .study-hero.subpage-hero,
  .foundation-page .foundation-hero.subpage-hero { min-height: 0; padding: 49px 0 53px; }
  .subpage-hero .subpage-hero-inner,
  .foundation-page .foundation-hero .foundation-hero-copy { width: calc(100% - 40px); }
  .subpage-hero h1,
  .foundation-page .foundation-hero h1 { font-size: clamp(31px, 8.5vw, 38px); line-height: 1.36; }
  .subpage-hero .subpage-hero-description,
  .foundation-page .foundation-hero .subpage-hero-description,
  .study-page-content .study-hero-copy > p.subpage-hero-description { font-size: 15px; line-height: 1.8; }
  .subpage-hero .button { width: 100%; margin-top: 22px; font-size: 13px; }
  .about-page main > .about-page-heading { min-height: 0; padding: 49px 0 53px; }
  .about-page .about-page-heading h1 { font-size: clamp(31px, 8.5vw, 38px); }
  .about-page .about-hero-prose p { font-size: 15px; line-height: 1.8; }
  .about-page main > .about-hero-prose { padding-block: 28px 0; }
  .study-intro { padding-block: 26px 33px; }
  .study-intro p { font-size: 14px; }
  .seminar-page-content .seminar-intro { padding: 27px 0 40px; }
  .foundation-page .foundation-index { grid-template-columns: 1fr; gap: 8px; margin-top: 18px; }
  .foundation-page .foundation-index a { min-height: 54px; }
}
