/* Compact edition; each heading remains paired with its own language. */
.compact-intro .opening-title,.compact-intro .intro-heading{top:92mm}
.compact-intro .opening-title h2,.compact-intro .intro-heading h2{font-size:25px;line-height:1.3;margin:3mm 0 2mm}
.compact-intro .opening-title .english-name,.compact-intro .degree{font-size:24px;line-height:1.2}
.compact-intro .opening-copy,.compact-intro .features{top:133mm;left:16mm;right:16mm;margin:0;padding:4mm 0;background:rgba(248,250,252,.94)}
.compact-copy .zh,.compact-copy .en{font-size:15px;line-height:1.6}
.compact-copy .compact-objective-heading{font-size:15px;line-height:1.4;margin:5mm 0 2mm}
.compact-copy p.compact-objective{margin-top:2mm}
.compact-intro .facts{bottom:23mm}
.page p[data-number]::before{content:attr(data-number) ". ";font-family:var(--mono);font-weight:600;color:var(--number-color)}
.compact-directions .page-content{top:47mm}
.compact-directions h2{font-size:28px;line-height:1.3;margin-top:5mm}
.compact-directions .subtitle{margin-top:2mm}
.direction-draft{display:inline-block;margin-top:4mm;font-size:10px;letter-spacing:.4px;color:#56636f}
.direction-list{margin-top:7mm;background:rgba(248,250,252,.94)}
.direction-row{display:grid;grid-template-columns:7mm 1fr 1fr;gap:5mm;border-top:1px solid var(--line);padding:5mm 0;min-height:29mm}
.direction-number{font:14px var(--mono);color:var(--number-color);padding-top:1mm}
.direction-row h3{font-size:17px;line-height:1.4;margin-bottom:2mm}
.direction-row p{font-size:15px;line-height:1.6}
.compact-directions .curriculum{bottom:26mm}
.compact-pathways .page-content{top:47mm}
.compact-pathways h2{font-size:32px;line-height:1.2;margin-top:5mm}
.compact-pathways .subtitle{margin-top:2mm}
.compact-career-list{margin-top:8mm}
.compact-career-card{background:rgba(248,250,252,.94);padding:3mm 0;margin-top:4mm;border-top:1px solid var(--ink)}
.compact-career-label{display:flex;gap:4mm;align-items:baseline;margin-bottom:2mm;font-size:17px}
.compact-career-label>span{font:12px var(--mono);color:var(--number-color)}
.compact-career-card .copy-language-heading{border:0;padding:0;min-height:0;margin-bottom:2mm}
.compact-career-card .zh,.compact-career-card .en,.compact-study .zh,.compact-study .en{font-size:14px;line-height:1.65}
.compact-study{margin-top:6mm;padding-top:3mm;border-top:2px solid var(--orange);background:rgba(248,250,252,.94)}
.compact-study h3{font-size:17px;margin-bottom:3mm}
.compact-study h3 span{font-size:13px;font-weight:400;margin-left:4mm}
.project-table{width:100%;border-collapse:collapse;background:#f8fafbf5;font-size:10pt;line-height:1.4}
.project-table th{text-align:left;font-size:9pt;color:#52616e;font-weight:400;padding:0 0 2mm;border-bottom:1px solid var(--line)}
.project-table td{padding:3mm 0;border-bottom:1px solid var(--line)}
.project-table th:last-child,.project-table td:last-child{text-align:right;width:14mm}
.project-table td:last-child{font:700 18pt var(--mono);color:var(--strength-accent)}
.honor-project-name{white-space:nowrap;font-size:8pt;line-height:1.4;margin-top:2mm;color:#dce3e9}
.honor-project-count{font:700 15pt var(--mono);margin-top:2mm}
.strength-grad .honor-awards{grid-template-columns:1fr 1fr}
.strength-grad .honor-lead{padding:3mm 4mm}
.strength-grad .honor-lead h4{margin-top:3mm;font-size:17pt}
.strength-grad .honor-class{font-size:23pt}
.strength-grad .scientist-honor{margin-top:4mm}
.strength-ug .honor-awards{grid-template-columns:1fr 1fr;gap:4mm}
.strength-ug .honor-lead{display:block;padding:1.5mm 3mm}
.strength-ug .honor-class{float:left;margin-right:4mm;font-size:18pt}
.strength-ug .honor-lead h4{font-size:12pt}
.strength-ug .honor-lead small{display:inline;margin-left:1mm}
.strength-ug .honor-project-name{clear:both;font-size:8pt;line-height:1.2;margin-top:1mm}
.strength-ug .honor-project-count{font-size:11pt;margin-top:.7mm}
.strength-ug .project-table{font-size:9pt;line-height:1.3}
.strength-ug .project-table th{padding-bottom:.7mm}
.strength-ug .project-table td{padding:.8mm 0}
.strength-ug .project-table td:last-child{font-size:13pt}
@media screen{
 body.reading-mode .direction-row{grid-template-columns:24px 1fr}
 body.reading-mode .direction-row .en{grid-column:2}
 body.reading-mode .compact-pathways .page-content{position:static}
 body.reading-mode .compact-intro .facts{position:static}
 body.reading-mode .project-table{font-size:12px}
}

.compact-pathways .page-content{position:absolute;left:16mm;right:16mm;top:47mm}
.compact-pathways .subtitle span{display:block;font-size:11px;margin-top:1mm}
.strength-ug .honor-lead{padding:1mm 3mm}
.strength-ug .project-table td{padding:.5mm 0}

/* Lead with the complete Category A project name. */
.academic-strength .honor-awards{grid-template-columns:3fr 2fr;gap:4mm}
.academic-strength .honor-lead{display:flex;flex-direction:column;justify-content:space-between;padding:3mm;min-width:0}
.academic-strength .honor-project-name{font-size:11pt;font-weight:750;line-height:1.4;color:#fff;margin:0;white-space:nowrap;letter-spacing:0}
.academic-strength .honor-project-person{display:flex;align-items:baseline;justify-content:space-between;gap:3mm;margin-top:3mm}
.academic-strength .honor-lead h4{font-size:13pt;margin:0}
.academic-strength .honor-lead small{display:inline;font-size:10pt;margin-left:2mm}
.academic-strength .honor-project-count{font-size:13pt;margin:0;color:#dce3e9}
.strength-ug .honor-lead{padding:2mm 3mm}
.strength-ug .honor-project-name{font-size:10.5pt}
.strength-ug .project-table{font-size:8pt;line-height:1.2}
.strength-ug .project-table th:last-child,.strength-ug .project-table td:last-child{width:8mm}
@media screen{
 body.reading-mode .academic-strength .honor-awards{grid-template-columns:1fr}
 body.reading-mode .academic-strength .honor-lead{flex-direction:column;align-items:stretch}
 body.reading-mode .academic-strength .honor-project-name{font-size:12px}
}

/* Keep the project title and professor together without stretching the card. */
.academic-strength .honor-lead{justify-content:center;align-items:stretch;align-self:center;gap:3mm;padding:4mm 3mm}
.academic-strength .honor-project-person{margin-top:0}
.strength-ug .honor-lead{gap:2mm;padding:2mm 3mm}

/* Graduate research projects: featured A project above the other projects. */
.academic-strength.strength-grad .honor-awards{grid-template-columns:1fr;gap:3mm}
.academic-strength.strength-grad .honor-lead{padding:3mm 4mm;gap:2mm;align-self:stretch}
.strength-grad .project-table th{padding:0 4mm 1mm}
.strength-grad .project-table td{padding:1.5mm 4mm}
.strength-grad .project-table td:last-child{font-size:15pt}

/* Emphasize the percentage within the title rather than repeating it. */
.academic-strength .scientist-banner h3{display:flex;align-items:baseline;gap:2mm;line-height:1.15}
.academic-strength .scientist-percent{font:800 26pt/1 var(--mono);letter-spacing:-.6px}
.strength-ug .scientist-percent{font-size:17pt}

/* Project name takes priority over the recipient's name. */
.academic-strength .honor-project-name{font-size:16pt;font-weight:800}
.academic-strength .honor-lead h4{font-size:11pt;font-weight:600}
.academic-strength .honor-lead small{font-size:9pt}
.strength-ug .honor-project-name{font-size:12pt}
@media screen{
 body.reading-mode .academic-strength .honor-project-name{font-size:13px}
}

/* Keep the research section clear of the footer after widening the artwork. */
.strength-grad .project-table td{padding:1mm 4mm}

/* Three honor rows retain the label-first, names-second format. */
.strength-grad .scientist-rankings>article{padding:1mm 0}
.strength-grad .project-table td{padding:1mm 4mm}
.strength-ug .scientist-rankings>article{padding:.3mm 0}
.strength-ug .project-table td:last-child{font-size:11pt}

.strength-grad .scientist-honor{margin-top:2mm}
.strength-grad .scientist-banner{padding:2mm 4mm}
.strength-grad .scientist-rankings{padding:1mm 4mm}
.strength-ug .scientist-banner{padding:.5mm 3mm}
.strength-ug .scientist-rankings>article{padding:.2mm 0}

/* Use the space released by the third row to improve legibility. */
.strength-grad .scientist-rankings>article{padding:1.6mm 0}
.strength-grad .scientist-rankings h4{font-size:10pt}
.strength-grad .scientist-members b{font-size:12pt}
.strength-grad .scientist-members small{font-size:10pt}
.strength-ug .scientist-rankings>article{padding:1mm 0}
.strength-ug .scientist-rankings h4{font-size:10pt}
.strength-ug .scientist-members b{font-size:11pt}
.strength-ug .scientist-members small{font-size:10pt}

/* Reading sizes for the shortened edition; dense academic-strength data stays compact. */
.compact-copy .copy-language-heading{font-size:15px}
.compact-directions .subtitle{font-size:17px}
.compact-directions .subtitle span{font-size:14px}
.compact-directions .direction-draft{font-size:11px}
.compact-career-card .copy-language-heading{font-size:14px}

/* Restrained reading surfaces: keep photography continuous around text. */
:root{--reading-surface:rgba(248,250,252,.92)}
.page .cover-copy,.page .cover-bottom,.page .footer,.page .facts,
.page .overview-bottom,.page .curriculum{background:transparent}
.page .opening-copy,.page .features,.page .direction-list,
.page .compact-career-card,.page .compact-study,.page .contact-card,
.page .overview-card,.page .project-table,.page .scientist-rankings{
 background:var(--reading-surface);
}
/* A fading wash protects headings without creating another hard-edged card. */
.page .intro-heading,.page .opening-title,.page .contact-heading{
 background:linear-gradient(90deg,rgba(248,250,252,.96) 0%,rgba(248,250,252,.92) 66%,rgba(248,250,252,0) 100%);
 box-shadow:none;
}
.page .apply-qr{background:var(--reading-surface)}
.page .curriculum img{background:#fff}

/* One continuous wash behind the research heading and bilingual course name. */
.compact-directions .direction-heading{
 padding:3mm 0;margin:-3mm 0;
 background:linear-gradient(90deg,rgba(248,250,252,.96) 0%,rgba(248,250,252,.92) 66%,rgba(248,250,252,0) 100%);
}
