/* Shared print identity. Keep this file identical across all three editions. */

.masthead{top:15mm;left:16mm;right:16mm;background:rgba(255,255,255,.9);padding:2mm 3mm;margin-left:-3mm;margin-right:-3mm}
.city-logo{width:58mm;height:15mm}.fds-logo{width:39mm;height:15mm}
.cover .cover-copy{top:149mm}.cover h1{font-size:49px;line-height:1;letter-spacing:-2px}.cover .year{top:112mm}
.cover .cover-bottom{top:228mm}.cover .cover-sub{font-size:16px}.cover .slogan{font-size:22px}
.footer{font-size:8px;border-color:rgba(16,24,32,.2)}
.toolbar{font-size:12px}.toolbar button{font-size:11px}
.contact .contact-heading{top:65mm;right:16mm}.contact h2{font-size:37px;line-height:1.05;letter-spacing:-1.5px}
.contact .welcome{font-size:18px;margin-top:5mm}.contact .welcome span{font-size:11px;margin-top:2mm}
.contact .contact-cards{top:132mm}.contact-card p{font-size:12px;line-height:1.65}.contact-card p span{font-size:11px;line-height:1.5}
.apply-qr img{width:28mm;height:28mm}.apply-qr strong{font-size:15px;line-height:1.2}.apply-qr small{font-size:9px}
@media print{.page{overflow:hidden}.masthead{background:rgba(255,255,255,.9)}}

/* Shared legible surfaces over the new photography. */
.cover:after{content:"";position:absolute;inset:0;z-index:-2;pointer-events:none;background:linear-gradient(180deg,transparent 0%,transparent 38%,rgba(244,246,248,.65) 49%,rgba(244,246,248,.94) 58%,rgba(244,246,248,.5) 100%)}
.cover .year{background:rgba(244,246,248,.8);padding:2mm 3mm;right:13mm}
.contact-heading{background:rgba(248,250,252,.93);padding:4mm;margin-left:-4mm;margin-right:-4mm}
@media(max-width:850px){.page{min-width:0}main{max-width:100%;overflow:hidden}.toolbar{width:100%;max-width:100%}}

/* Preserve the logo artwork proportions while using its useful visual area. */
.masthead{background:transparent}.city-logo{background:rgba(255,255,255,.92)}.fds-logo{width:28mm;height:23mm;object-fit:cover;object-position:center;background:rgba(255,255,255,.92);margin-top:-4mm;margin-bottom:-4mm}
/* Screen-only continuous reading; print always retains the A4 design. */
@media screen{
 body.reading-mode main{display:block;padding:20px 12px;overflow:visible}
 body.reading-mode .page{width:min(920px,100%);min-width:0;height:auto;min-height:0;margin:0 auto 24px;padding:24px;zoom:1!important;overflow:visible;display:flex;flex-direction:column;gap:22px;background:#f7f9fb}
 body.reading-mode .page:after,body.reading-mode .background,body.reading-mode .year{display:none}
 body.reading-mode .page>div,body.reading-mode .page>.apply-qr,body.reading-mode .footer{position:static!important;inset:auto!important;margin:0!important;width:auto!important;max-width:100%;padding:0;transform:none}
 body.reading-mode .masthead{height:75px;flex:none}
 body.reading-mode .cover-copy,body.reading-mode .cover-bottom,body.reading-mode .contact-heading,body.reading-mode .opening-title{background:none!important}
 body.reading-mode .cover-bottom{padding-top:20px!important}
 body.reading-mode .bilingual{grid-template-columns:1fr;gap:18px}
 body.reading-mode .zh,body.reading-mode .en{font-size:15px!important;line-height:1.8!important}
 body.reading-mode .bilingual p+p{margin-top:16px}
 body.reading-mode h1{font-size:36px!important}
 body.reading-mode h2{font-size:30px!important;letter-spacing:-.8px}
 body.reading-mode .degree,body.reading-mode .english-name{font-size:22px}
 body.reading-mode .footer{margin-top:20px!important;padding-top:10px!important;gap:12px;flex-wrap:wrap}
 body.reading-mode .reading-copy{margin-top:26px}
 body.reading-mode .section-heading{gap:12px;flex-wrap:wrap}
 body.reading-mode .facts{padding-top:16px!important}
 body.reading-mode .curriculum{padding-top:16px!important}
 body.reading-mode .contact-cards{grid-template-columns:1fr 1fr}
 body.reading-mode .topic-grid{margin-top:24px}
 body.reading-mode .eyebrow{flex-wrap:wrap;line-height:1.5}
 body.reading-mode .editorial{display:none}
 @media(max-width:600px){
  body.reading-mode .page{padding:20px 16px}
  body.reading-mode .cover-bottom,body.reading-mode .overview-grid,body.reading-mode .contact-cards{grid-template-columns:1fr!important;gap:20px}
  body.reading-mode .facts,body.reading-mode .career-grid,body.reading-mode .topic-grid,body.reading-mode .nodes{grid-template-columns:1fr 1fr!important;gap:12px}
  body.reading-mode .system-row{flex-wrap:wrap}
  body.reading-mode .system-row strong{font-size:16px}
  body.reading-mode .connection-diagram{height:auto;margin:24px 0;display:grid;grid-template-columns:1fr;gap:15px}
  body.reading-mode .connection-diagram svg,body.reading-mode .connection-center{display:none}
  body.reading-mode .connection-node{position:static;width:100%;padding:16px}
  body.reading-mode .curriculum{align-items:flex-start;gap:15px}
  body.reading-mode .city-logo{width:175px;height:55px}
  body.reading-mode .fds-logo{width:85px;height:70px}
 }
}

/* Logo variants are selected per image region. Never add a backing panel. */
.page .masthead,.page .city-logo,.page .fds-logo{background:transparent!important}

/* Unified side-by-side logo lockup; supplied artwork only, no crop or recoloring. */
.page .masthead{top:10mm;left:16mm;right:auto;width:max-content;height:31mm;display:flex;justify-content:flex-start;align-items:center;gap:6mm;margin:0;padding:0;background:transparent}
.page .masthead .city-logo{width:58mm;height:auto;max-height:none;object-fit:contain;object-position:center;margin:0;padding:0;flex:none}
.page .masthead .fds-logo{width:28mm;height:auto;max-height:none;object-fit:contain;object-position:center;margin:0;padding:0;flex:none}
@media screen and (max-width:600px){
 body.reading-mode .page .masthead{height:auto;min-height:88px;gap:16px;flex-wrap:nowrap}
 body.reading-mode .page .masthead .city-logo{width:180px;height:auto}
 body.reading-mode .page .masthead .fds-logo{width:80px;height:auto}
}

/* All full-width editorial containers share the footer's vertical guides. */
:root{--content-inset:16mm}
.page .footer,
.page .cover-copy,.page .cover-bottom,
.page .intro-heading,.page .features,.page .keywords,
.page .career-heading,.page .career-content,.page .facts,
.page .page-content,.page .opening-title,.page .opening-copy,
.page .contact-heading,.page .contact-cards,.page .curriculum{
 left:var(--content-inset);right:var(--content-inset);
 width:auto;max-width:none;margin-left:0;margin-right:0;
}
.page .career-grid,.page .systems-list,.page .career-copy{
 margin-left:0;margin-right:0;width:auto;
}
.page .year{right:var(--content-inset)}
.page .masthead,.page .apply-qr{left:var(--content-inset)}

/* Chinese-first bilingual hierarchy; each heading belongs to its own text column. */
:root{--number-color:var(--accent,var(--orange))}
.copy-language-heading{border-top:1px solid var(--ink);padding-top:3mm;margin:0 0 3mm;font:600 12px/1.4 var(--sans);text-align:left;letter-spacing:0;min-height:9mm}
.page p[data-number]::before,.page .list-number,.page .num,.page .index-item>b,.page .topic>span,.page .connection-node>span,.page .footer>b{color:var(--number-color);font-family:var(--mono);font-weight:600}
.list-number{display:inline-block;min-width:1.6em;text-align:left}
@media screen{
 body.reading-mode .copy-language-heading{font-size:15px;margin-bottom:12px;min-height:0}
}

/* Improve small supporting text where the page has room to breathe. */
.cover .index-item,.cover .index-item span{font-size:12px;line-height:1.45}
.page .fact span{font-size:11px;line-height:1.5}
.contact .welcome span{font-size:14px;line-height:1.55}
.contact-card .label{font-size:11px}
.contact .contact-card p{font-size:15px;line-height:1.65}
.contact .contact-card p span{font-size:13px;line-height:1.55}
.contact-card .website{font-size:17px}
.apply-qr small{font-size:11px;line-height:1.45}
.curriculum .qr-copy>small{font-size:12px}
.curriculum .qr-copy h3{font-size:18px}
.curriculum .qr-copy h3 span,.curriculum .qr-copy p span{font-size:12px}
