/* Shared type scale: display → section → card → body → interface. */
:root {
  --headline: 'Stack Sans Headline', Arial, sans-serif;
  --sans: 'Inter', Arial, sans-serif;
  --serif: var(--headline);
  --type-display: clamp(40px, 5vw, 68px);
  --type-section: clamp(30px, 3.6vw, 48px);
  --type-card: clamp(24px, 2.4vw, 30px);
  --type-body: clamp(14px, 1.2vw, 16px);
}
body { font-family: var(--sans); }
button, input, select, textarea { font-family: var(--sans); }
h1, h2, h3, h4, h5, h6 {
  font-family: var(--headline);
  font-weight: 500;
  letter-spacing: -.025em;
  text-wrap: balance;
}
h1 em, h2 em, h3 em, .hero-statement em, .application-intro h1 em { font-style: normal; }
.portal-copy h1, .edital-title-row h1 {
  font-family: var(--headline);
  font-size: var(--type-display);
  font-weight: 500;
  line-height: 1.06;
  letter-spacing: -.035em;
}
.hero-statement, .application-intro h1, .wait-copy h1 {
  font-family: var(--headline);
  font-size: clamp(30px, 3vw, 42px);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -.025em;
}
h2, .faq-grid h2, .closing-inner h2 {
  font-size: var(--type-section);
  line-height: 1.12;
}
.vacancy-card h3, .panel-heading h2, .success-panel h2,
.login-panel h1, .dashboard-heading h1, .application-dialog h2, .delete-dialog h2,
.doc-section-title h2, .document-end h2 {
  font-family: var(--headline);
  font-size: var(--type-card);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -.02em;
}
.learning-item h3, .coordination-grid h3, .faculty-unit h3,
.portal-cta strong, .admin-user-form h3 {
  font-family: var(--headline);
  font-size: clamp(18px, 1.7vw, 22px);
  font-weight: 500;
  line-height: 1.3;
}
.hero-description, .portal-description, .program-copy>p,
.calendar-intro>p:not(.eyebrow), .wait-copy>p:not(.eyebrow) {
  font-size: var(--type-body);
  line-height: 1.75;
}
.program-copy .lead { font-size: clamp(18px, 2vw, 22px); line-height: 1.5; }
.eyebrow, .meta-label { font-family: var(--sans); font-weight: 600; }
.button, .desktop-nav a, .field-label { font-family: var(--sans); }
.button { letter-spacing: 0; }
.application-panel input:not([type=checkbox]):not([type=radio]):not([type=file]),
.application-panel textarea, .application-panel select, .admin-page input {
  font-family: var(--sans);
}
.countdown-unit strong, .vacancy-count, .vacancy-seal strong {
  font-family: var(--headline);
  font-variant-numeric: tabular-nums;
}
/* Keep controls and dialog headings compact instead of inheriting display sizes. */
.registration-control h2 { font-family: var(--sans); font-size: 14px; line-height: 1.5; letter-spacing: 0; }
.toc-apply h2 { font-size: 26px; }
@media (max-width: 760px) {
  .portal-copy h1 { font-size: clamp(38px, 10vw, 52px); }
  .hero-statement { font-size: clamp(28px, 7.5vw, 34px); }
  .hero-description { max-width: 36ch; }
  .application-panel input:not([type=checkbox]):not([type=radio]):not([type=file]),
  .application-panel textarea, .application-panel select, .admin-page input { font-size: 16px; }
}
@media print {
  .edital-title-row h1 { font-size: 29pt; }
  .doc-section-title h2 { font-size: 19pt; }
  .faculty-unit h3 { font-size: 13pt; }
}
