/* Shared inset: surface edges follow the 16mm page guide; text sits 5mm inside. */
:root{--card-inset:5mm}
.page .intro-heading,.page .opening-title,.page .contact-heading{
 padding:4mm var(--card-inset);margin-top:0;
}
.page .intro-heading .eyebrow{padding:0;background:none}
.page .opening-copy,.page .features{padding:4mm var(--card-inset)}
.page .compact-copy{grid-template-columns:1fr 1fr}
.page .direction-heading{padding:3mm var(--card-inset)}
.page .direction-row{padding-left:var(--card-inset);padding-right:var(--card-inset)}
.page .compact-career-card,.page .compact-study,
.page .contact-card,.page .overview-card,.page .apply-qr{
 padding-left:var(--card-inset);padding-right:var(--card-inset);
}
.page .cover-copy,.page .cover-bottom,.page .facts,.page .curriculum,
.page .overview-bottom,.page .strength-title,.page .strength-section-label,
.page .strength-destination-heading>p,.page .strength-school-grid{
 padding-left:var(--card-inset);padding-right:var(--card-inset);
}
.page .overview .page-content{padding:0}
.overview .page-content>.eyebrow,.overview .page-content>h2,.overview .page-content>.subtitle,
.compact-pathways .page-content>.eyebrow,.compact-pathways .page-content>h2,.compact-pathways .page-content>.subtitle{
 padding-left:var(--card-inset);padding-right:var(--card-inset);
}
.page.academic-strength .honor-lead,.page .scientist-banner,.page .scientist-rankings{
 padding-left:var(--card-inset);padding-right:var(--card-inset);
}
.page .project-table th:first-child,.page .project-table td:first-child{padding-left:var(--card-inset)}
.page .project-table th:last-child,.page .project-table td:last-child{padding-right:var(--card-inset)}
/* Reading mode uses the same inset without stacking card and column padding. */
@media screen{
 body.reading-mode .page{--card-inset:18px}
 body.reading-mode .page .intro-heading,body.reading-mode .page .opening-title,
 body.reading-mode .page .contact-heading,body.reading-mode .page .features,
 body.reading-mode .page .opening-copy{padding:16px var(--card-inset)}
}

/* Keep the count heading on one line inside the common right inset. */
.page .project-table th:last-child,.page .project-table td:last-child{width:13mm;white-space:nowrap}

/* Leave a clear seam above the fixed body position after adding title padding. */
.page.compact-intro .intro-heading,.page.compact-intro .opening-title{top:90mm}
/* Dense undergraduate honours keep the shared horizontal inset. */
.page.strength-ug .scientist-rankings>article{padding-top:.4mm;padding-bottom:.4mm}

/* Bilingual Category A award and full programme names on the cover. */
.honor-project-en{font-size:10pt;line-height:1.25;color:#e1e7ed}
.honor-person-en{font:400 9pt/1.3 var(--sans);margin-left:3mm}
.page.strength-ug .honor-lead{gap:1mm;padding-top:1.5mm;padding-bottom:1.5mm}
.strength-ug .honor-project-en{font-size:8pt}
.strength-ug .honor-person-en{font-size:8pt;margin-left:2mm}
.cover .cover-bottom{grid-template-columns:1fr 1.8fr}
.cover .index-item{margin-bottom:2mm}

.cover .cover-bottom{top:222mm}

/* Three bilingual facts, without an extra label row. */
.page .facts{grid-template-columns:1.65fr 1fr .9fr;gap:5mm}
.page .fact strong{font:600 15px/1.45 var(--sans);color:var(--ink);white-space:nowrap}
.page .fact span{font:400 11px/1.5 var(--sans);margin-top:2mm;white-space:nowrap}
@media screen and (max-width:600px){
 body.reading-mode .page .facts{grid-template-columns:1fr!important}
 body.reading-mode .page .fact strong,body.reading-mode .page .fact span{white-space:normal}
}
