/* Gate 8-B Step 4-G4. Applies only to the official standalone A4 preview. */
/* 9pt body. Dense engineering tables retain their established 9px table type. */
.syllabus-preview-page[data-syllabus-font-profile="readable"] {
  --gate8b-body: 12px;
  --gate8b-basic: 11px;
  --gate8b-subject: 12.5px;
  --gate8b-heading: 14px;
  --gate8b-number: 12px;
  --gate8b-weekly: 10.5px;
  --gate8b-exam: 10.5px;
  --gate8b-free: 12px;
  --gate8b-special: 9px;
  --gate8b-hero-small: 10px;
  --gate8b-continuation: 11px;
}
/* The same font sizes are used on screen and in print. */
.syllabus-preview-page[data-syllabus-font-profile] .step7-v2-card-body {
  font-size: var(--gate8b-body) !important;
  line-height: 1.37 !important;
}
.syllabus-preview-page[data-syllabus-font-profile] .step7-v2-basic-table {
  font-size: var(--gate8b-basic) !important;
  line-height: 1.32 !important;
}
.syllabus-preview-page[data-syllabus-font-profile] .step7-v2-basic-table td.subject {
  font-size: var(--gate8b-subject) !important;
}
.syllabus-preview-page[data-syllabus-font-profile] .step7-v2-card-title h3 {
  font-size: var(--gate8b-heading) !important;
  line-height: 1.25 !important;
}
.syllabus-preview-page[data-syllabus-font-profile] .step7-v2-number {
  font-size: var(--gate8b-number) !important;
}
.syllabus-preview-page[data-syllabus-font-profile] .step7-v2-plan-table {
  font-size: var(--gate8b-weekly) !important;
  line-height: 1.3 !important;
}
.syllabus-preview-page[data-syllabus-font-profile] .step7-v2-exam-box {
  font-size: var(--gate8b-exam) !important;
}
.syllabus-preview-page[data-syllabus-font-profile] .step7-v2-free-plan {
  font-size: var(--gate8b-free) !important;
  line-height: 1.42 !important;
}
.syllabus-preview-page[data-syllabus-font-profile] .step7-v2-engineering-plan,
.syllabus-preview-page[data-syllabus-font-profile] .step7-v2-sheet .step7-a4-domain-plan table {
  font-size: var(--gate8b-special) !important;
}
.syllabus-preview-page[data-syllabus-font-profile] .step7-v2-hero > div:first-child > span,
.syllabus-preview-page[data-syllabus-font-profile] .step7-v2-hero-right small,
.syllabus-preview-page[data-syllabus-font-profile] .step7-v2-hero-right strong {
  font-size: var(--gate8b-hero-small) !important;
}
.syllabus-preview-page[data-syllabus-font-profile] .step7-v2-continuation-hero span,
.syllabus-preview-page[data-syllabus-font-profile] .step7-v2-continuation-hero strong {
  font-size: var(--gate8b-continuation) !important;
}
.syllabus-preview-page[data-syllabus-font-profile] .step7-a4-sheet::after {
  font-size: 9px !important;
}

/* The status row is outside the printed A4 sheets; does not affect pagination. */
.syllabus-preview-page .step7-a4-fit-status { flex-wrap: wrap; }
.syllabus-preview-page .step7-auto-font-result { color: #174f7f; font-size: 11px; font-weight: 800; }
.syllabus-preview-page .step7-auto-font-result.is-warning { color: #a43e32; }
