/* AIFIT approved shared system — 2026-10-03. Loaded after page styles. */
:root{--navy:#082851;--blue:#082851;--red:#cc1736;--paper:#f7f4ee;--font-sans:'AIFIT Sans','Microsoft YaHei','PingFang SC',sans-serif}
body{font-family:var(--font-sans);font-size:18px;line-height:1.8;color:var(--navy)}
h1,h2,h3,button,input,select{font-family:var(--font-sans)}h1,h2,h3{font-weight:700}h2{font-size:32px;line-height:1.45}
a:focus-visible,button:focus-visible,summary:focus-visible{outline:3px solid var(--red);outline-offset:4px}a:hover{color:var(--red)}
.section-heading h2,.sectionHead h2,.school-intro h2,.detail-section h2,.contact h2{border-left:7px solid var(--red);padding-left:18px}
.red-rule,.miniDiamond,.service-title .number,.option-top .number,.journey{display:none}
.text-link:after,.option-link:after,.primary-button:after{display:none!important}
.intro-copy,.intro-copy .subtle,.service-card p,.school-intro>p:not(.eyebrow),.steps p,.contact p:not(.eyebrow),.aboutBox p,.desc,.card p,.detail-section>p,.detail-section li,.card-copy{font-size:18px;line-height:1.8}
.text-link,.service-card .text-link,.detail-link,.source-items a,.sources-list a,.official-link{font-size:17px;text-decoration:underline;text-underline-offset:5px;white-space:normal}
.primary-button,.consult .button.primary,button[data-consult],#email-draft,.nav-contact,.btn[href="#contact"]{border-radius:999px;background:var(--red);color:white;padding:12px 26px;width:fit-content;max-width:100%;min-height:48px;font-weight:700}
.primary-button:hover,.consult .button.primary:hover,button[data-consult]:hover,#email-draft:hover{background:#ad1430;color:white}
.service-photo{aspect-ratio:1.75;clip-path:none!important;border-radius:0}.service-photo:before,.service-photo:after{display:none!important}.service-photo img{width:100%;height:100%;object-fit:cover}
.process,.consult,.detail-aside,.quote,.detail-brand .panel:not(.red),.detail-brand .contact{background-color:var(--navy);background-image:url('dark-brand-geometry.svg');background-position:right center;background-size:auto 100%;background-repeat:no-repeat;color:white}
.detail-aside h2,.detail-aside a,.detail-aside p,.process h2,.consult h2{color:white}.detail-aside{position:static;margin-top:28px;padding:32px;border:0}.detail-aside .primary{margin:20px 0}.detail-layout{display:block}
.detail-hero{position:relative;isolation:isolate;overflow:hidden;border:0;padding:58px 36px 32px;background:#eaf6ff url('school-hero-geometry.svg') center/cover no-repeat}
.detail-hero>.card-top,.detail-hero>.summary,.detail-hero>.tags{position:relative;z-index:1;max-width:76%}.detail-hero .school-monogram{display:none}.detail-hero h1{font-size:clamp(32px,4.5vw,60px)}.detail-hero .english-name{font-size:clamp(18px,2.4vw,28px);color:var(--navy)}
.detail-hero .hero-art,.school-header .hero-art{position:absolute;right:0;top:0;width:250px;height:270px;z-index:0;background-image:radial-gradient(#08285160 1px,transparent 1px);background-size:12px 12px}
.hero-art i{position:absolute;width:300px;height:300px;right:-155px;top:-166px;transform:rotate(45deg);background:var(--navy)}.hero-art b{position:absolute;width:110px;height:110px;right:15px;top:62px;transform:rotate(45deg);background:var(--red)}
.detail-quick{position:relative;background:#ffffffd9;padding:20px;margin-top:28px;gap:24px}.detail-quick strong,.facts dt,.card-facts dt{font-size:18px;font-weight:700;color:var(--navy)}
.detail-section{padding:38px 30px;margin-bottom:16px;background:white}.detail-section h2{font-size:32px}.detail-section#fees{background:#edf3f8}.detail-section#admissions{background:#f7f4ee}
.section-tabs{background:white;position:sticky;top:0;z-index:4;gap:24px;padding:10px 12px;overflow-x:auto;flex-wrap:nowrap}.section-tabs a{display:flex;align-items:center;min-height:44px;white-space:nowrap;font-weight:700;font-size:17px}
.campus,.campus-card{min-width:0}.campus-address{max-width:100%;overflow-x:auto;white-space:nowrap;word-break:normal}.school-email,.school-email a{font-size:17px}.source-inline{font-size:16px}.source-items a{min-height:44px;padding:7px 0}
.facts>div,.card-facts>div{min-width:0}.card-facts dd{font-size:17px}.tag,.type-label,.coverage span,.filter-help,.data-note,.card-bottom>span,.small{font-size:14px}
.contact-details{grid-template-columns:max-content minmax(0,1fr);font-size:16px}.contact-details dt{min-width:6em}.contact-details dd{overflow-wrap:anywhere;white-space:normal}.footer-motto{display:block}.footer-motto p{white-space:normal;word-break:normal;text-wrap:balance}.contact h2{white-space:normal!important}
.site-company-footer{max-width:1240px;margin:auto;padding:32px 28px;display:grid;grid-template-columns:1fr 2fr;gap:32px;background:#f7f4ee;font-size:16px}.site-company-footer dl{display:grid;grid-template-columns:max-content minmax(0,1fr);gap:6px 18px;margin:0}.site-company-footer dt{font-weight:700}.site-company-footer dd{margin:0;overflow-wrap:anywhere}.site-company-footer a{text-decoration:underline}
@media(max-width:750px){body{font-size:17px}h2,.detail-section h2{font-size:26px}.intro-copy,.intro-copy .subtle,.service-card p,.school-intro>p:not(.eyebrow),.steps p,.contact p:not(.eyebrow),.aboutBox p,.desc,.card p,.detail-section>p,.detail-section li,.card-copy{font-size:17px}.detail-hero{padding:34px 20px 22px}.detail-hero>.card-top,.detail-hero>.summary,.detail-hero>.tags{max-width:85%}.detail-hero h1{font-size:32px}.detail-hero .hero-art,.school-header .hero-art{width:80px;height:140px}.hero-art i{width:135px;height:135px;right:-85px;top:-77px}.hero-art b{width:48px;height:48px;right:-2px;top:33px}.detail-quick{padding:15px;gap:16px}.detail-quick strong,.facts dt{font-size:16px}.detail-section{padding:28px 18px}.section-tabs{gap:8px;justify-content:space-between}.section-tabs a{font-size:13px}.source-items{flex-direction:column;align-items:flex-start}.site-company-footer{grid-template-columns:1fr;padding:26px 20px;gap:20px}.site-company-footer dl{font-size:15px}.footer-motto{border:0;padding:20px 0 0}.campus-grid,.entry-points{grid-template-columns:1fr}.wrap{width:calc(100% - 32px)}.info{padding:20px}.contactGrid{gap:24px}}
.fee-table{font-size:18px}.fee-table thead th{font-size:16px;font-weight:700}.fee-table small,.fee-period span{font-size:14px}.fee-group h3{font-size:22px}.fee-table th:first-child{width:62%}.fee-period strong{font-size:17px}.sources-list time{font-size:14px}.filter-help,.reset,#filters>label:not(.checkbox-label),.results-heading>span{font-size:14px}.filter-title h2,.results-heading h2{font-size:20px}
@media(max-width:750px){.fee-table{font-size:17px}.fee-table th:first-child{width:55%}.fee-table thead th,.fee-table tbody th,.fee-table tbody td{padding:12px 8px}.fee-table small{font-size:14px}.fee-table td strong{font-size:16px}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*{transition:none!important}}
.hero-actions .primary,.detail-aside .primary{width:fit-content;max-width:100%;font-size:17px}.hero-actions>a{margin:0;font-size:17px;text-decoration:underline}.detail-aside .official-link{display:table;width:auto;border:0;padding:8px 0;text-align:left;text-decoration:underline;font-size:17px}.detail-aside p{font-size:17px;color:#edf3f8}.detail-aside h2{font-size:28px}.detail-aside .small,.detail-aside .aside-note{font-size:15px}
/* Preserve the approved footer phrase breaks and compact carousel capsule. */
.footer-motto p{white-space:nowrap;word-break:keep-all;overflow-wrap:normal;text-wrap:initial}
.footer-inner{grid-template-columns:170px minmax(0,1fr) 230px}
.carousel-bar>a[data-i="consult"]{font-size:13px;padding:8px 20px;min-height:40px;gap:14px}
@media(max-width:1200px){.footer-inner{grid-template-columns:170px minmax(0,1fr)}.footer-motto{grid-column:1/-1;border:0;padding:10px 0}}
@media(max-width:850px){.footer-inner{grid-template-columns:minmax(0,1fr)}}
@media(max-width:540px){.carousel-bar>a[data-i="consult"]{font-size:11px;padding:8px 16px;gap:10px}}
/* Latest review: softer hero blue and clean, unruled links. */
.detail-hero,.school-header{background-color:#F4F9FC}
a,a:hover,a:focus,.text-link,.detail-link,.resource-link,.source-link,.source-items a,.sources-list a,.official-link,.hero-actions>a,.detail-aside .official-link,.site-company-footer a,.school-email a{ text-decoration:none!important;border-bottom:0!important;box-shadow:none!important }
.sources-list li,.sources li{border-bottom:0!important;border-top:0!important}
.source-inline a,.source-items a{border:0!important}
a:hover{color:var(--red)}
/* Compact three-column school facts; verification remains in official sources. */
.detail-quick{display:grid;grid-template-columns:1.4fr 1fr 1fr;gap:24px;align-items:start}
.detail-quick>div{min-width:0;font-size:16px;line-height:1.7}
.detail-quick strong{font-size:18px;white-space:nowrap}
@media(max-width:750px){.detail-quick{grid-template-columns:1.4fr 1fr 1fr;gap:10px;padding:16px 12px}.detail-quick>div{font-size:13px;overflow-wrap:break-word}.detail-quick strong{font-size:14px;margin-bottom:6px}}
@media(max-width:380px){.detail-quick{gap:8px;padding:14px 8px}.detail-quick strong{font-size:13px}.detail-quick>div{font-size:12px}}

/* Responsive proportion pass: coherent mobile scale without shrinking the whole page. */
html{-webkit-text-size-adjust:100%;text-size-adjust:100%}
@media(max-width:850px){
  .header-inner{min-height:68px;padding:10px 0;gap:10px}
  .brand img{width:clamp(110px,30vw,150px)}
  .showcase-stage{aspect-ratio:16/9;width:100%}
  .showcase figure img{object-fit:contain}
}
@media(max-width:750px){
  body{font-size:16px;line-height:1.75}
  .container{width:calc(100% - 32px)}
  h1,.detail-hero h1,.school-header h1{font-size:clamp(25px,6.7vw,36px);line-height:1.4}
  h2,.detail-section h2,.contact h2,.consult h2,.detail-aside h2{font-size:clamp(22px,5.8vw,28px);line-height:1.45}
  .intro-copy,.intro-copy .subtle,.service-card p,.school-intro>p:not(.eyebrow),.steps p,.contact p:not(.eyebrow),.aboutBox p,.desc,.card p,.detail-section>p,.detail-section li,.card-copy,.detail-aside p{font-size:16px;line-height:1.75}
  .section-heading h2,.sectionHead h2,.school-intro h2,.detail-section h2,.contact h2{border-left-width:5px;padding-left:12px}
  .intro,.school-section,.process{padding:32px 0}
  .services,.contact{padding-top:32px;padding-bottom:32px}
  .section-heading{margin-bottom:22px;gap:16px}
  .intro-grid,.school-grid{gap:22px}
  .service-grid{gap:26px}.service-title{margin:12px 0 8px}.service-title h3,.steps h3,.school-option strong{font-size:20px;line-height:1.5}
  .service-card p{min-height:0}
  .text-link,.service-card .text-link,.detail-link,.source-items a,.sources-list a,.official-link,.hero-actions>a,.school-email,.school-email a{font-size:15px;line-height:1.7}
  .primary-button,.consult .button.primary,button[data-consult],#email-draft,.hero-actions .primary{font-size:15px;min-height:44px;padding:10px 20px}
  .school-option{padding:20px;min-height:0}.school-icon{width:36px;height:36px}
  .detail-hero{padding:28px 16px 20px}.detail-hero>.card-top,.detail-hero>.summary,.detail-hero>.tags{max-width:90%}
  .detail-hero .english-name,.school-header .english{font-size:clamp(16px,4.5vw,22px);line-height:1.5}
  .detail-hero .summary{font-size:15px;line-height:1.75}
  .detail-section,.panel,.sources{padding:24px 16px}
  .detail-quick{margin-top:20px;padding:14px 10px;gap:8px}
  .detail-quick strong{font-size:clamp(12px,3.4vw,15px)}.detail-quick>div{font-size:clamp(12px,3.2vw,14px)}
  .hero-actions{gap:12px;flex-wrap:wrap}.hero-actions>a{overflow-wrap:anywhere}
  .fee-table{font-size:15px}.fee-table td strong{font-size:15px}.fee-table small{font-size:13px}.fee-group h3{font-size:20px}
  .detail-aside{padding:24px 18px}.site-company-footer{padding:24px 16px}.site-company-footer dl,.contact-details{font-size:14px}
  .footer-inner img{width:140px}.contact-details dt{min-width:0}.contact-details{grid-template-columns:4em minmax(0,1fr)}
  .footer-motto p{white-space:normal}.phone{font-size:20px}
}
@media(max-width:540px){
  .steps{margin-top:28px}.steps article{grid-template-columns:56px minmax(0,1fr);column-gap:16px;padding-bottom:26px}
  .step-icon{width:56px;height:56px}.step-icon img{width:28px;height:28px}
  .steps .step-number{font-size:20px;margin-bottom:6px}
  .steps article:not(:last-child):after{left:28px;top:68px;bottom:12px}
  .carousel-bar{width:calc(100% - 24px);height:auto;min-height:56px;gap:8px;flex-wrap:wrap;padding:8px 0}
  .carousel-controls{gap:3px}.carousel-controls .count{margin:0 3px}
  .section-heading>.text-link{font-size:14px;margin-top:12px}
}
/* Fee evidence matches the adjacent small-print note, including mobile spacing. */
.detail-section .source-inline{font-size:12px;line-height:1.75;gap:8px;margin-top:12px;align-items:baseline}
.detail-section .source-items{gap:4px 16px;align-items:baseline}
.detail-section .source-items a{font-size:inherit;font-weight:400;line-height:inherit;min-height:0;padding:0;margin:0}
@media(min-width:751px){.detail-section .source-inline{line-height:1.8}}
