/* =========================================================
   Shared typography and outer alignment
   Loaded after every page-specific stylesheet.
========================================================= */

body,
button,
input,
textarea,
select {
  font-family: var(--iu-font-sans);
}

.container,
.disclosure-page > .container,
.accreditation-hero,
.accreditation-hero-inner,
.accreditation-intro-inner,
.accreditation-section > .container,
.brand-manual-intro-inner,
.brand-manual-guide-inner,
.brand-publications-inner,
.organization-shell,
.organization-quick-links__inner,
.library-shell,
.library-hero-inner {
  width: min(calc(100% - var(--iu-container-offset)), var(--iu-container-max));
  margin-inline: auto;
}

/* Keep the hero background full width; only its inner content is contained. */
.iu-page-hero {
  width: 100%;
}

.iu-page-hero h1,
.iu-page-hero--compact h1 {
  font-size: var(--iu-type-hero-title);
  font-weight: var(--iu-weight-hero-title);
  line-height: var(--iu-leading-hero-title);
}

/* Introduction pages. */
.disclosure-page h2,
.accreditation-page h2,
.brand-identity-page h2,
.organization-page h2,
.library-page h2,
.cooperation-page h2 {
  font-size: var(--iu-type-section-title);
  font-weight: var(--iu-weight-section-title);
  line-height: var(--iu-leading-section-title);
  letter-spacing: -.02em;
}

.disclosure-page h3,
.accreditation-page h3,
.brand-identity-page h3,
.organization-page h3,
.library-page h3,
.cooperation-page h3 {
  font-size: var(--iu-type-card-title);
  font-weight: var(--iu-weight-card-title);
  line-height: var(--iu-leading-card-title);
  letter-spacing: -.01em;
}

/* Admissions, graduate and undergraduate pages. */
.admissions-page h2,
.admissions-guide-page h2,
.program-directory-page h2,
.admission-quota-page h2,
.training-programs-page h2,
.admissions-contact-page h2,
.graduate-portal h2,
.undergraduate-program-page h2 {
  font-size: var(--iu-type-section-title);
  font-weight: var(--iu-weight-section-title);
  line-height: var(--iu-leading-section-title);
  letter-spacing: -.02em;
}

.admissions-page h3,
.admissions-guide-page h3,
.program-directory-page h3,
.admission-quota-page h3,
.training-programs-page h3,
.admissions-contact-page h3,
.graduate-portal h3,
.undergraduate-program-page h3,
.admissions-card__body h2,
.admissions-info-card h2 {
  font-size: var(--iu-type-card-title);
  font-weight: var(--iu-weight-card-title);
  line-height: var(--iu-leading-card-title);
  letter-spacing: -.01em;
}

@media (max-width: 900px) {
  .iu-page-hero h1,
  .iu-page-hero--compact h1 {
    font-size: 3rem;
  }
}

@media (max-width: 640px) {
  .iu-page-hero h1,
  .iu-page-hero--compact h1 {
    font-size: 2.35rem;
  }
}
