:root{--paper:#f7f5ed;--red:#b8322d;--ink:#252a24;--line:#dfded5;--muted:#686d65}*{box-sizing:border-box}body{margin:0;background:var(--paper);color:var(--ink);font:16px/1.7 system-ui,-apple-system,sans-serif}a{color:inherit}button,input,select{font:inherit}button,a,select{touch-action:manipulation}button{cursor:pointer}header{position:sticky;top:0;z-index:5;display:flex;align-items:center;justify-content:space-between;gap:20px;background:#f7f5edf5;border-bottom:1px solid var(--line);padding:18px max(24px,calc((100vw - 1200px)/2))}header .brand{font-size:16px;font-weight:850;text-decoration:none;white-space:nowrap}header .brand span{color:var(--red)}nav{display:flex;gap:22px;font-size:13px}nav a{text-decoration:none}nav a[aria-current]{color:var(--red);font-weight:750}main{max-width:1200px;margin:auto;padding:0 24px}.hero{display:grid;grid-template-columns:1.5fr 1fr;gap:24px;align-items:center;padding:55px 0;border-bottom:1px solid var(--line)}.eyebrow{font-size:11px;letter-spacing:2px;color:var(--red);font-weight:700}h1{font:700 clamp(40px,6vw,68px)/1.15 Georgia,serif;letter-spacing:-2px;margin:15px 0 20px}h2{font-size:28px;line-height:1.4;margin:4px 0}.hero p:not(.eyebrow){color:var(--muted);font-size:18px}.hero-mark{background:#e5ead8;border-radius:50% 50% 18px 18px;color:var(--red);font:100px/1.5 serif;text-align:center;padding:20px}.hero-mark span{display:block;font:12px/2 system-ui;letter-spacing:4px}.tags{display:flex;flex-wrap:wrap;gap:8px;margin-top:22px}.tags span,.badge{border:1px solid var(--line);border-radius:99px;padding:5px 10px;font-size:11px;background:#fff}.section-title{display:flex;justify-content:space-between;gap:16px;align-items:end;margin:35px 0 20px}.muted,.help{font-size:13px;color:var(--muted)}.tools{display:flex;gap:12px;align-items:center;margin-bottom:16px}.tools label{display:flex;align-items:center;gap:8px;flex:1;background:white;border:1px solid var(--line);border-radius:8px;padding:9px 12px}.tools input{width:100%;border:0;background:none;min-width:0;outline-offset:5px}select{max-width:100%;padding:10px;border:1px solid var(--line);border-radius:8px;background:white}.help{max-width:900px}.grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:22px;margin:26px 0 55px}.uni-card{background:#fffdf8;border:1px solid var(--line);border-radius:14px;overflow:hidden;display:flex;flex-direction:column}.uni-card .photo{height:180px;background:var(--uni);overflow:hidden}.photo img{width:100%;height:100%;object-fit:cover}.photo-fallback{height:100%;display:flex;align-items:center;justify-content:center;color:white;font-size:34px}.uni-card .body{padding:20px;flex:1;display:flex;flex-direction:column}.uni-card h3{font-size:19px;line-height:1.3;margin:8px 0;min-height:48px}.uni-card .zh{font-size:20px;font-family:serif;color:var(--uni)}.uni-card .city{font-size:12px;color:var(--muted)}.uni-card p{font-size:13px}.uni-card .cost{margin-top:auto;border-top:1px solid var(--line);padding-top:15px}.uni-card .cost strong{font-size:20px;display:block}.uni-card .open{margin-top:18px;border:0;background:var(--uni);color:white;padding:11px;border-radius:7px;text-decoration:none;text-align:center;font-size:13px}.badge.confirmed{color:#146449;background:#e8f4ea;border-color:#cae7d0}.badge.reference{color:#785420;background:#fff6e4;border-color:#ead6b2}.back{display:inline-block;margin:25px 0 20px;color:var(--red);text-decoration:none}.detail-hero{position:relative;background:var(--uni);color:white;border-radius:18px;overflow:hidden;min-height:300px;display:flex;align-items:end}.detail-hero>img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}.detail-hero:after{content:'';position:absolute;inset:0;background:linear-gradient(90deg,#001026dc,#00102630)}.detail-hero .text{position:relative;z-index:1;padding:35px;max-width:800px}.detail-hero h1{font:700 clamp(26px,5vw,46px)/1.15 Georgia,serif;letter-spacing:-1px}.detail-hero .zh{font-size:28px}.detail-hero .badge{color:var(--ink)}.detail-tabs{display:flex;flex-wrap:wrap;gap:8px;padding:20px 0}.detail-tabs a{padding:9px 16px;text-decoration:none;border-radius:99px;border:1px solid var(--line);font-size:13px;background:white}.detail-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px}.panel{background:white;border:1px solid var(--line);border-radius:13px;padding:24px;scroll-margin-top:110px}.panel h2{font-size:21px;color:var(--uni);margin-bottom:20px}.panel h3{font-size:16px;margin:20px 0 8px}.row{display:flex;gap:20px;justify-content:space-between;align-items:baseline;border-bottom:1px solid #eee;padding:13px 0}.row strong{text-align:right}.small{font-size:12px;color:var(--muted);margin:6px 0}.notice{border-left:3px solid #c49a56;background:#fff8e9;padding:12px 16px;font-size:13px;margin:18px 0}.span2{grid-column:1/-1}.room-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:15px}.room{padding:18px;border:1px solid var(--line);border-radius:9px;background:#fbfaf7}.room h3{margin:0 0 8px}.room .price{font-size:20px;color:var(--uni);font-weight:750}.gallery{display:grid;grid-template-columns:1fr 1fr;gap:15px;margin-top:20px}figure{margin:0}figure img{width:100%;height:250px;object-fit:cover;border-radius:8px}figcaption{font-size:11px;color:var(--muted);padding:6px 0}.posters img{height:auto;object-fit:contain;max-height:800px;background:#eee}.posters a{display:block}.sources{padding-left:20px;font-size:13px;overflow-wrap:anywhere}.sources li{margin:9px 0}.contact{display:block;background:var(--uni);color:white;border-radius:8px;padding:13px;text-align:center;text-decoration:none}.detail-brand{font-weight:850;font-size:19px;color:var(--uni)}footer{text-align:center;border-top:1px solid var(--line);padding:36px 24px;font-size:13px}footer strong{font-size:18px;color:var(--red)}[hidden]{display:none!important}:focus-visible{outline:3px solid #d0a44e;outline-offset:3px}#detail{margin-bottom:50px}.print-button{background:white;border:1px solid var(--line);padding:9px 16px;border-radius:99px;font-size:13px}@media(max-width:850px){header{align-items:start;flex-direction:column;gap:8px;padding:12px 20px}nav{flex-wrap:wrap;gap:12px}.grid{grid-template-columns:1fr 1fr}.hero{grid-template-columns:1fr 160px}.hero-mark{font-size:70px}.tools{flex-wrap:wrap}.tools label{flex-basis:100%}.detail-grid{grid-template-columns:1fr}.span2{grid-column:auto}.section-title{align-items:start;flex-direction:column}}@media(max-width:560px){main{padding:0 16px}.hero{grid-template-columns:1fr;padding:30px 0}.hero-mark{display:none}.grid{grid-template-columns:1fr;gap:16px}.uni-card .photo{height:205px}.uni-card h3{min-height:0}.detail-hero .text{padding:25px 20px}.detail-grid{gap:14px}.panel{padding:18px}.row{gap:12px;font-size:14px}.room-grid,.gallery{grid-template-columns:1fr}.tools select{flex:1;font-size:13px;min-width:0}.posters img{max-height:none}}@media print{header,footer,.back,.detail-tabs,#directory,.hero{display:none!important}#detail[hidden]{display:block!important}body{background:white}main{max-width:none;padding:0}.panel{break-inside:avoid}.detail-hero{-webkit-print-color-adjust:exact;print-color-adjust:exact}.posters{display:none}.detail-grid{display:block}.panel{margin-bottom:14px}}

.tools{flex-wrap:wrap}.tools label{flex-basis:100%}.tools select{flex:1;min-width:140px}.help a{text-underline-offset:3px}

.scholarship-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.scholarship-card{border:1px solid var(--line);border-radius:10px;padding:20px;background:#fffdf8;min-width:0}.scholarship-card h3{margin:0 0 12px;color:var(--uni,var(--red));font-size:19px}.scholarship-card h4{margin:22px 0 8px;font-size:14px}.scholarship-card p,.scholarship-card li{font-size:13px;overflow-wrap:anywhere}.scholarship-card ul,.scholarship-card ol{padding-left:20px}.scholarship-card li{margin:7px 0}.scholarship-deadline{border-top:1px solid var(--line);border-bottom:1px solid var(--line);padding:14px 0}.scholarship-deadline p{margin:5px 0;font-weight:650}.scholarship-actions{display:flex;flex-wrap:wrap;gap:10px}.scholarship-actions a{background:var(--uni,var(--red));color:white;border-radius:6px;padding:8px 12px;font-size:12px;text-decoration:none}.scholarship-guide{border:1px solid var(--line);border-radius:10px;padding:18px;margin:20px 0;background:#f9f8f1}.scholarship-guide summary{cursor:pointer;font-weight:650;font-size:14px}.scholarship-guide p,.scholarship-guide li{font-size:13px}.scholarship-guide h3{font-size:16px}.scholarship-badges{display:flex;flex-wrap:wrap;gap:5px;margin-top:10px}.scholarship-badges .badge{font-size:10px}.scholarship-card .notice{padding:9px 12px}.scholarship-card .notice ul{margin:0}.directory-guide{--uni:var(--red)}@media(max-width:850px){.scholarship-grid{grid-template-columns:1fr}}@media print{.scholarship-card{break-inside:avoid}.scholarship-grid{display:block}.scholarship-card{margin:10px 0}.scholarship-guide{display:none}}

.intake-panel{border-top:4px solid var(--uni);}.intake-panel .badge{margin:0 0 8px}.intake-apply{display:inline-block;padding:10px 16px;border-radius:10px;background:var(--uni);color:white;text-decoration:none;margin:8px 0}.intake-help{line-height:1.7}

#schools-section{margin-bottom:40px}.school-fee-item{padding:8px 0;border-bottom:1px solid var(--line)}.school-fee-item:last-child{border-bottom:0}.school-fee-item .small{margin-top:2px}.school-fees .row{gap:20px;align-items:start}@media(max-width:600px){.school-fees .row{grid-template-columns:1fr;display:grid;gap:4px}}

/* Keep the Guanghua tower roofs visible in the Fudan card on all screens. */
.uni-card .photo img[src="/study-images/fudan-guanghua-campus.jpg"]{object-position:center top}

.audit-table-wrap{overflow-x:auto;margin:20px 0}.audit-table{width:100%;border-collapse:collapse;text-align:left;font-size:13px}.audit-table caption{text-align:left;font-weight:700;margin-bottom:12px}.audit-table th,.audit-table td{padding:14px 12px;vertical-align:top;border-bottom:1px solid var(--line)}.audit-table thead{background:#f8f6ef}.audit-table th:first-child{min-width:110px}.audit-table td:nth-child(2){min-width:190px}.audit-table td:last-child{min-width:240px}.audit-table p{margin:0 0 7px}.audit-table a{display:inline-block;margin:4px 10px 0 0}#courses details summary{cursor:pointer;font-size:13px}@media(max-width:560px){.audit-table{font-size:12px}.audit-table th,.audit-table td{padding:12px 8px}}

.uni-card .photo img[src="/study-images/hit-main-building.jpg"],.detail-hero>img[src="/study-images/hit-main-building.jpg"]{object-position:center 45%}
.uni-card .photo img[src="/study-images/tsinghua-campus-gate.jpg"],.detail-hero>img[src="/study-images/tsinghua-campus-gate.jpg"]{object-position:center 50%}

/* Readable study information, including narrow phones and enlarged text. */
body{line-height:1.8;-webkit-text-size-adjust:100%;text-size-adjust:100%}
header .brand{white-space:normal;min-width:0;line-height:1.5}
.hero>div,.detail-grid>*,.panel,.room,.scholarship-card{min-width:0}
.detail-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
h1,.detail-hero h1{letter-spacing:normal;line-height:1.45;font-family:system-ui,-apple-system,sans-serif;overflow-wrap:break-word}
h2,h3,h4{line-height:1.6;letter-spacing:normal;overflow-wrap:break-word}
.panel p,.panel li,.panel strong,.room .price,.uni-card .cost strong{overflow-wrap:break-word;word-break:normal}
.panel ul,.panel ol{padding-inline-start:1.4em}.panel li{margin-block:8px}
.row{display:grid;grid-template-columns:minmax(100px,1fr) minmax(0,2fr);gap:16px;align-items:start}
.row>span{color:var(--muted)}.row strong{text-align:left;font-weight:650}
.panel h2{margin:0 0 18px}.panel h3{margin:24px 0 10px}
.small,.notice,.sources,.scholarship-card p,.scholarship-card li,.scholarship-guide p,.scholarship-guide li{font-size:14px;line-height:1.85}
.badge{display:inline-block;max-width:100%;white-space:normal;line-height:1.7}
.room .price{font-size:18px;line-height:1.8}.detail-tabs a,.print-button{line-height:1.6}
.search-page main .hero>div{width:100%;min-width:0}
.search-page main h1{font-size:clamp(28px,4vw,44px);line-height:1.5;letter-spacing:normal;overflow-wrap:break-word}
.search-page main h2{margin:32px 0 14px;font-size:24px}
.search-page main td,.search-page main th{line-height:1.85;word-break:normal;overflow-wrap:break-word}
@media(max-width:850px){.detail-grid{grid-template-columns:minmax(0,1fr)}}
@media screen and (max-width:760px){
 header{position:static;padding:14px 16px;gap:12px}header nav{gap:8px 16px;line-height:1.7;font-size:14px}
 main{padding-inline:16px}.hero{padding-block:28px}.hero p:not(.eyebrow){font-size:16px}
 h1{font-size:30px}.detail-hero h1{font-size:28px}.detail-hero .zh{font-size:25px;line-height:1.6}
 .detail-hero .text{padding:24px 20px;width:100%}.detail-hero .eyebrow{letter-spacing:.5px;line-height:1.8}
 .detail-tabs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;padding:18px 0}.detail-tabs a,.print-button{text-align:center;font-size:14px;padding:10px 8px;border-radius:10px}
 .panel{padding:20px 18px;scroll-margin-top:20px}.panel h2{font-size:21px}.panel h3{font-size:17px}
 .row,.school-fees .row{grid-template-columns:minmax(0,1fr);gap:5px;font-size:16px;padding:16px 0}.row>span{font-size:14px}.row strong{text-align:left;line-height:1.85}
 .room-grid,.gallery{grid-template-columns:minmax(0,1fr)}.notice{padding:14px;line-height:1.85}.tags span{font-size:12px;line-height:1.7}
 .audit-table-wrap{overflow:visible;margin:20px 0}
 .audit-table,.search-page main table{display:block;width:100%;font-size:15px;border-collapse:separate}
 .audit-table caption,.search-page main table caption{display:block;margin-bottom:12px;line-height:1.8}
 .audit-table thead,.search-page main table thead{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
 .audit-table tbody,.search-page main table tbody{display:block}
 .audit-table tr,.search-page main table tr{display:block;border:1px solid var(--line);border-radius:10px;padding:16px;margin:0 0 14px;background:#fffdf8}
 .audit-table th,.audit-table td,.audit-table th:first-child,.audit-table td:nth-child(2),.audit-table td:last-child,.search-page main table th,.search-page main table td{display:block;width:auto;min-width:0;padding:5px 0;border:0;text-align:left;font-size:15px;line-height:1.85;overflow-wrap:break-word}
 .audit-table tr>th:first-child,.search-page main table tr>:first-child{font-weight:700;font-size:16px;padding:0 0 10px;color:var(--ink)}
 .audit-table td[data-label]::before,.search-page main table td[data-label]::before{content:attr(data-label);display:block;font-size:13px;font-weight:500;color:var(--muted);margin-bottom:3px}
 .audit-table .small{font-size:14px}.audit-table a{margin:6px 12px 0 0;text-underline-offset:3px}
 .search-page main .hero{padding-top:24px}.search-page main h1{font-size:28px}.search-page main h2{font-size:22px;line-height:1.6}
 .sources a{overflow-wrap:anywhere}.tools select{flex-basis:calc(50% - 12px)}
}
