/* Shared reading and interaction refinements; each site keeps its own palette. */
.zg-refined{font-family:system-ui,-apple-system,"Segoe UI","Microsoft YaHei",sans-serif;font-size:16px;line-height:1.8;--zg-focus:#bd812d}
.zg-refined :where(h1,h2,h3){text-wrap:balance}
.zg-refined h1{line-height:1.28;letter-spacing:-.035em}
.zg-refined h2{line-height:1.45}
.zg-refined p{line-height:1.85}
.zg-refined :where(p,li,dd){overflow-wrap:break-word}
.zg-refined :where(a,button,input,select,textarea,summary):focus-visible{outline:3px solid var(--zg-focus);outline-offset:4px}
.zg-refined :where(button,input,select,textarea){font:inherit}
.zg-refined :where(button,select,input:not([type=checkbox]):not([type=radio])){min-height:44px}
.zg-refined :where(button,select){max-width:100%}
.zg-refined :where(button,.button){touch-action:manipulation}
.zg-refined :where(button:disabled){cursor:not-allowed}
.zg-refined :where(summary){min-height:44px;align-content:center}
.zg-refined :where(header nav,.topbar nav){flex-wrap:wrap;row-gap:8px}
.zg-refined :where(header nav a,.topbar nav a){padding-block:7px}
.zg-refined :where(section[id]){scroll-margin-top:100px}
.zg-refined :where(table){font-variant-numeric:tabular-nums}
.zg-refined :where(.table-wrap,.table-scroll){max-width:100%;overscroll-behavior-x:contain}
.zg-refined :where(pre){max-width:100%;font-size:14px}
.zg-refined :where(pre code){font-size:14px}
.zg-refined :where(.eyebrow,.kicker,.label){font-size:12px}
.zg-refined :where(.hint,.small,.date,footer){font-size:14px}
.zg-refined :where(.card,.panel,.console-panel,.chapter,.stage-card,.dimension-card,.analogue-card){border-radius:16px}
.zg-refined :where(.actions,.hero-actions){row-gap:12px;flex-wrap:wrap}
.zg-refined :where(.button,.primary,.text-link){text-underline-offset:5px}

/* Company pages: calm navy, warmer details and easier long-form reading. */
.zg-company .hero{padding-block:80px 64px}
.zg-company .hero h1{font-size:clamp(36px,5.5vw,68px);line-height:1.35}
.zg-company .hero p{font-size:18px;color:#e2e9f3;line-height:1.9}
.zg-company .crumb{font-size:14px;color:#d3dfed}
.zg-company .top{height:auto;min-height:76px;padding-block:12px;flex-wrap:wrap;gap:10px 24px}
.zg-company .nav{flex-wrap:wrap;gap:8px 20px}
.zg-company .layout{gap:40px;padding-block:56px}
.zg-company .side{border:1px solid #dce3ed;border-radius:14px;box-shadow:0 8px 24px #172b4d08}
.zg-company .card,.zg-company .facts>div,.zg-company details{border-radius:12px}
.zg-company .card p,.zg-company .content p,.zg-company .content li{font-size:16px}
.zg-company .facts span{font-size:14px}
.zg-company .content h2{font-size:clamp(28px,3.4vw,40px);line-height:1.45}
.zg-company .cta{border-radius:16px;padding:32px}
.zg-company .footer{font-size:14px;flex-wrap:wrap}
.zg-company-home .hero h1{font-size:clamp(34px,4.4vw,62px);line-height:1.4}
.zg-company-home .hero p{line-height:1.95}
.zg-company-home .section{padding-block:76px}
.zg-company-home .section-header h2{font-size:clamp(28px,3.5vw,42px)}
.zg-company-home :where(.about-text p,.feature-card p,.service-card p,.resource-card p,.contact-item p){font-size:16px;line-height:1.9}
.zg-company-home :where(.qualification-card,.feature-card,.resource-card,.spotlight-card){border-radius:16px}
.zg-company-home .hero-meta{gap:10px 20px;flex-wrap:wrap}
.zg-company-home :where(.hero-meta,.spotlight-label,.spotlight-tags span){font-size:14px}
.zg-company-home .logo-mark{animation:none}
.zg-medical .hero{padding-block:64px;gap:56px}
.zg-medical .identity{border-radius:20px;box-shadow:0 12px 40px #123f3a10}
.zg-medical .intro,.zg-medical .about-copy p,.zg-medical .cooperation-grid p{font-size:16px;line-height:1.95}
.zg-medical :where(.hero-note,.facts span,.profile dt,.information-note,.contact-details>div>span,.identity>p){font-size:14px}
.zg-medical .cooperation-grid article{border-radius:16px;box-shadow:0 6px 24px #123f3a05}
.zg-medical .cooperation-grid h3{margin-top:18px}
.zg-medical .section{padding-block:72px}
.zg-medical .profile dd{font-size:16px}
.zg-medical .contact{border-radius:20px 20px 0 0}

/* Guides and operations: give navigation, prose and forms distinct space. */
.zg-guide .hero{padding-block:52px 30px}
.zg-guide .intro{line-height:1.9}
.zg-guide .content{border-radius:18px;box-shadow:0 8px 28px #23384b06}
.zg-guide .content h2{margin-top:38px;font-size:25px}
.zg-guide .content p,.zg-guide .content li{font-size:16px;line-height:1.95}
.zg-guide .content code{font-size:14px}
.zg-guide :where(.date,.small){font-size:14px}
.zg-guide .nav a{padding-block:6px}
.zg-guide .content textarea{max-width:100%;font-size:15px;line-height:1.7}
.zg-local-ai .topbar,.zg-quant .topbar,.zg-games .topbar{height:auto;min-height:88px;padding-block:18px;flex-wrap:wrap}
.zg-local-ai .topbar nav,.zg-quant .topbar nav,.zg-games .topbar nav{gap:6px 20px}
.zg-local-ai .chapter p,.zg-local-ai .chapter li{font-size:16px;line-height:1.9}
.zg-local-ai .contents nav a,.zg-local-ai .resource-list strong{font-size:14px}
.zg-local-ai .chapter pre code{font-size:14px}
.zg-local-ai .copy-button{font-size:14px;min-height:34px}
.zg-local-ai .chapter .source-note,.zg-local-ai .resource-list span{font-size:14px}
.zg-local-ai .guide-hero{gap:44px;padding-block:60px 40px}
.zg-quant .console-hero{padding-block:56px 8px}
.zg-quant .console-panel{padding:30px;box-shadow:0 6px 24px #203d3407}
.zg-quant .console-panel p,.zg-quant .console-panel li{font-size:16px;line-height:1.9}
.zg-quant .console-panel .button{font-size:16px}
.zg-operations .hero{padding-top:54px}
.zg-operations .panel{padding:30px;box-shadow:0 6px 24px #19334205}
.zg-operations .panel p,.zg-operations .panel li{line-height:1.95}
.zg-operations :where(.section-head span,.metrics span){font-size:14px}
.zg-operations .metrics article{box-shadow:0 5px 20px #19334206}
.zg-operations .toc{gap:10px}
.zg-operations .toc a{font-size:14px;padding:9px 14px}
.zg-domain main{padding-top:36px}
.zg-domain .lead{max-width:820px;font-size:17px;line-height:1.95}
.zg-domain .card{padding:30px}
.zg-domain :where(.hint,.guard,.suffix){font-size:14px;line-height:1.85}
.zg-domain label{font-size:15px}
.zg-domain .actions{gap:12px}

/* Research tools: preserve chart colours, make controls and evidence readable. */
.zg-research{--zg-focus:#b6e4c8}
.zg-research header{padding-block:8px 24px}
.zg-research h1{margin-block:20px;font-size:clamp(30px,4vw,48px)}
.zg-research h2{font-size:22px}
.zg-research h3{font-size:18px}
.zg-research .card{padding:24px}
.zg-research .cards{gap:14px}
.zg-research .section{margin-top:24px}
.zg-research :where(.kpi span,.metrics-small span,.legend,.badge,.hint){font-size:14px}
.zg-research .kpi b{font-size:26px;font-variant-numeric:tabular-nums}
.zg-research table{font-size:14px}
.zg-research .notice{padding:18px 20px;line-height:1.85}
.zg-workbench{--zg-focus:#b6e4c8}
.zg-workbench main{max-width:1160px;padding:32px}
.zg-workbench header{padding-bottom:22px;border-bottom:1px solid #26394e}
.zg-workbench h1{margin-top:36px;font-size:clamp(30px,4vw,46px)}
.zg-workbench section{padding:28px;margin-block:24px;border-radius:16px}
.zg-workbench h2{font-size:23px}
.zg-workbench aside{border-radius:8px;line-height:1.9}
.zg-workbench .fields label{font-size:15px}
.zg-workbench .actions{gap:12px}
.zg-history .hero{min-height:0;padding-block:76px}
.zg-history .hero h1{font-size:clamp(34px,4.7vw,58px)}
.zg-history .topbar{height:auto;min-height:78px;gap:12px 24px;padding-block:16px;flex-wrap:wrap}
.zg-history .topbar nav{gap:8px 20px;flex-shrink:1}
.zg-history .lead{line-height:1.95}
.zg-history :where(.stage-card p,.theses p,.sources p){font-size:16px;line-height:1.9}
.zg-history .lab,.zg-history .method,.zg-history .sources{padding-block:64px}
.zg-history .pills{gap:8px}
.zg-history .pills button{padding:9px 16px;border-radius:9px}
.zg-history .theses article{border-radius:16px}
.zg-credentials{--zg-focus:#f2cf8e}
.zg-credentials .topbar{height:auto;min-height:88px;padding-block:18px;flex-wrap:wrap}
.zg-credentials .hero{gap:48px;padding-block:64px 44px}
.zg-credentials .lead{font-size:18px;line-height:1.9}
.zg-credentials :where(.edition,.brand-sub,.map-label,.route-node small,.map-foot,.stats span){font-size:14px}
.zg-credentials .hero-map{padding:30px;border-radius:20px}
.zg-credentials :where(.entry-card p,.quick-card p,.path-card p){font-size:16px;line-height:1.9}
.zg-credentials :where(.filters label,.filter-label,.card-kicker,.tag){font-size:14px}
.zg-credentials .catalog-section{scroll-margin-top:24px}

/* Download pages and games retain their existing controls and board geometry. */
.zg-network .hero{padding-block:76px 82px}
.zg-network .hero h1{font-size:clamp(34px,5.4vw,64px);line-height:1.4}
.zg-network .topbar{height:auto;min-height:76px;padding-block:16px;gap:16px;flex-wrap:wrap}
.zg-network .topbar nav{display:flex;gap:8px 20px}
.zg-network .status-row{font-size:14px}
.zg-network .card{border-radius:18px;box-shadow:0 12px 40px #0d20380a}
.zg-network .step{font-size:40px;opacity:.6}
.zg-network :where(label,dt,.network-id span,.message,.central-panel span,.guide p){font-size:14px}
.zg-network .card h2{font-size:30px}
.zg-network .button{font-size:16px;border-radius:9px}
.zg-network .password-row{border-radius:9px;overflow:hidden}
.zg-network .guide{gap:40px}
.zg-network .notice{border-radius:12px}
.zg-proxy{--zg-focus:#55d6be}
.zg-proxy header{height:auto;min-height:76px;padding-block:14px;gap:16px;flex-wrap:wrap}
.zg-proxy nav{flex-wrap:wrap;gap:8px 20px}
.zg-proxy .hero{min-height:0;padding-block:70px;gap:44px}
.zg-proxy .hero h1{font-size:clamp(36px,5.4vw,66px);line-height:1.4}
.zg-proxy .downloads article{padding:28px;border-radius:18px}
.zg-proxy .downloads p{font-size:16px;line-height:1.9}
.zg-proxy .chips span{font-size:14px}
.zg-proxy .note{border-radius:12px}
.zg-proxy footer{font-size:14px;gap:16px}
.zg-games .playground{padding-block:48px;gap:48px}
.zg-games .rich-hero{padding-block:56px}
.zg-games :where(.download-card,.step-card){border-radius:16px}
.zg-games :where(.intro,.game-help){font-size:16px;line-height:1.9}
.zg-games .button{font-size:16px}

@media(max-width:900px){
 .zg-company-home .nav-links{gap:10px;flex-wrap:wrap}
 .zg-company-home .logo{font-size:18px}
 .zg-credentials .hero,.zg-medical .hero{gap:32px}
 .zg-network .topbar nav{font-size:14px}
 .zg-operations header nav{gap:8px 16px}
}
@media(max-width:760px){
 .zg-company .nav{display:flex;flex-basis:100%;font-size:14px;gap:4px 18px}
 .zg-company .back{font-size:14px;padding:7px 12px}
 .zg-company .hero{padding:44px 6vw}
 .zg-company .hero h1{font-size:36px}
 .zg-company .layout{padding-block:32px;gap:28px}
 .zg-company .side{padding:18px;display:flex;flex-wrap:wrap;gap:8px 18px}
 .zg-company .side strong{flex-basis:100%}
 .zg-company .side a{padding:7px 0}
 .zg-company .content section{margin-bottom:36px}
 .zg-company-home .section{padding-block:48px}
 .zg-company-home .hero{padding-top:110px;padding-bottom:48px;min-height:0}
 .zg-medical .hero{padding-block:40px}
 .zg-medical .hero h1{font-size:36px}
 .zg-medical .section{padding-block:48px}
 .zg-medical .contact{padding-block:40px}
 .zg-guide .hero{padding-top:36px}
 .zg-guide .content h2{font-size:22px}
 .zg-guide .content{padding:22px}
 .zg-local-ai .guide-hero{padding-block:40px 28px;gap:24px}
 .zg-local-ai .chapter{padding:22px}
 .zg-local-ai .contents nav{gap:6px 12px}
 .zg-quant .console-panel{padding:24px}
 .zg-operations .panel{padding:22px}
 .zg-domain .card{padding:22px}
 .zg-research .card{padding:18px}
 .zg-workbench main{padding:20px 16px}
 .zg-workbench section{padding:20px}
 .zg-history .hero{padding:48px 5vw}
 .zg-history .hero h1{font-size:clamp(30px,9vw,38px)}
 .zg-history .topbar .brand{font-size:14px}
 .zg-history .topbar nav{font-size:14px}
 .zg-history .lab,.zg-history .method,.zg-history .sources{padding:44px 5vw}
 .zg-credentials .hero{padding-block:40px;gap:28px}
 .zg-credentials .hero-map{padding:24px}
 .zg-network .hero{padding-block:48px 62px}
 .zg-network .hero h1{font-size:clamp(28px,7.8vw,34px)}
 .zg-network .guide{gap:22px;margin-block:48px}
 .zg-proxy .hero{padding-block:48px;gap:24px}
 .zg-games .playground{gap:28px;padding-block:36px}
}
@media(prefers-reduced-motion:reduce){
 html{scroll-behavior:auto!important}
 .zg-refined .orb i,.zg-refined .orbit i{animation:none!important}
 .zg-refined *{scroll-behavior:auto!important;transition:none!important}
}
@media print{
 .zg-refined{font-size:12pt}
 .zg-refined .hero{padding-block:20px}
 .zg-refined :where(.card,.panel,.chapter){box-shadow:none}
 .zg-refined pre code{white-space:pre-wrap;overflow-wrap:anywhere}
}
