/* Modest type and contrast adjustments, shared by both language versions. */
:root{--muted:#5d5665;--soft:#71667b;--reading-secondary:#685d74;--reading-green:#426c59;--font:-apple-system,BlinkMacSystemFont,"SF Pro Display","Helvetica Neue","Segoe UI",Arial,"PingFang SC","Microsoft YaHei","Noto Sans CJK SC",sans-serif}
body{font-size:18px}
.hero-subtitle{color:#5e5668}
/* Uni³Sim identity and a balanced four-card system overview. */
.wordmark .uni3-wordmark{font-size:18px;font-weight:550;letter-spacing:-.045em}
.uni3-wordmark sup,.uni3-brand sup{position:relative;top:-.05em;font-size:.53em;line-height:0;vertical-align:super;margin-inline:.035em}
html[lang] .hero .uni3-title{font-size:clamp(36px,4.2vw,60px);line-height:1.12;letter-spacing:-.045em;max-width:1100px;margin-inline:auto}
.uni3-title .uni3-brand{display:block;font-size:1.07em;letter-spacing:-.055em;margin-bottom:.17em;color:#574269}
.hero .uni3-title .hero-title-line{display:block}
/* Keep the gradient paint box clear of font descenders such as g, p and y. */
.hero .uni3-title .hero-title-line.gradient-text{display:block;width:fit-content;max-width:100%;margin:0 auto;padding:.04em .1em .2em;line-height:1.24;overflow:visible}
html[lang] .hero .uni3-summary{max-width:830px;font-size:18px;line-height:1.8;margin-top:22px;text-wrap:pretty}
.hero-dimensions{font-weight:550;color:#624a77}
.hero-actions .repository-link{gap:8px}
.repository-link svg{width:17px;height:17px;flex:none;fill:currentColor}
.hero-eyebrow{margin-bottom:24px}
.hero-figure{width:min(1120px,100%);margin-top:27px}
@media(min-width:601px){.hero{padding-top:114px}.hero-foot{margin-top:2px}}
@media(max-width:800px) and (min-width:601px){html[lang] .hero .uni3-title{font-size:clamp(32px,4.5vw,38px)}}
@media(max-width:600px){
  html[lang] .hero .uni3-title{font-size:clamp(25px,6.4vw,37px);line-height:1.2;letter-spacing:-.035em}
  .uni3-title .uni3-brand{font-size:1.28em;margin-bottom:.22em}
  html[lang] .hero .uni3-summary{font-size:15px;line-height:1.75;margin-top:19px;max-width:360px}
  .hero .hero-figure{width:100%;max-width:380px;margin:24px auto 0}
  .hero .hero-foot{margin-top:10px}
  .hero-actions .repository-link{padding-inline:12px;gap:6px}
  .hero-eyebrow{margin-bottom:22px}
  .wordmark .uni3-wordmark{font-size:17px}
}
.section-heading .section-lead,html[lang=en] .section-heading .section-lead{font-size:19px}
.hero-eyebrow,.hero-foot,.micro-label,.small-tag,.scale-tabs small,.focus-list li,
.figure-note,.figure-caption p,.kernel-readouts small,.kernel-readouts span,
.kernel-readouts strong em,.step-counter,.figure-legend,.metrics-row article>span,
.module-card summary,.module-card li,.research-direction p,.about-top>div>p:not(.eyebrow),
.footer-brand,footer,.pool-nav,.pool-nav a span,.pool-legend,.pool-placement,
.pool-placement>b,.pool-section .micro-label,.pool-settings-body,.pool-takeaways p,
.pool-operator-detail summary,.pool-settings summary,.diagram-hint{color:var(--reading-secondary)}
.scale-copy>p:not(.micro-label),.gap-summary p,.metrics-row p,.module-card>p:not(.micro-label),
.model-principle p,.pool-header>p,.pool-section-title p,.pool-flow-intro{color:var(--muted)}
.micro-label,.hero-foot,.figure-note,.small-tag,.kernel-readouts span{font-size:12px}
.hero-eyebrow{font-size:11px}
.scale-copy>p:not(.micro-label){font-size:16px}
.focus-list li{font-size:13px}
.scale-tabs small,html[lang=en] .scale-tabs small{font-size:13px}
html[lang=en] .scale-tabs strong{font-size:16px}
.stage-tabs button,.segmented button{color:var(--reading-secondary)}
.figure-caption strong{font-size:16px}
.figure-caption p{font-size:14px;line-height:1.8}
.figure-heading,.figure-legend{flex-wrap:wrap;row-gap:10px}
.figure-legend{font-size:12px}
.compact-tabs button{font-size:13px;white-space:normal;line-height:1.65}
html[lang=en] .compact-tabs button{font-size:12px}
.compact-tabs button span,.stage-tabs .step-number{font-size:11px;opacity:1}
.kernel-readouts>div{min-width:0}
.kernel-readouts small{font-size:12px}
.kernel-readouts strong em{font-size:13px}
.step-counter{font-size:11px}
.gap-summary p,.model-principle p,.research-direction p{font-size:15px}
.model-principle strong{font-weight:500;color:#544461}
.module-card>p:not(.micro-label){font-size:16px}
.module-card summary,.module-card li{font-size:13px}
.metrics-row p{font-size:14px}
.metrics-row article>span{font-size:12px}
.about-top>div>p:not(.eyebrow){font-size:13px}
.team-signature p{font-size:12px!important;color:var(--reading-secondary)!important}
html[lang] .team-signature p{max-width:none}
.team-signature .team-authors{display:flex;align-items:baseline;justify-content:flex-end;gap:.55em;white-space:normal}
.team-signature p span{display:inline-block;margin:0;font:inherit;color:inherit;white-space:nowrap}
.team-signature .author-notes{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:0 1em}
.team-signature .author-group+.author-group::before{content:"·";margin-right:.55em}
@media(min-width:1000px){
  html[lang=en] .about-top{grid-template-columns:minmax(0,1.4fr) max-content}
}
@media(max-width:999px){
  .team-signature .team-authors{flex-direction:column;align-items:flex-end;gap:2px}
  .team-signature .author-group+.author-group::before{content:none}
}
@media(max-width:600px){
  .team-signature .team-authors{align-items:flex-start}
  .team-signature .author-notes{justify-content:flex-start}
}
footer p,footer>span,.footer-brand{font-size:11px}
.language-toggle{font-size:12px;color:#654b7e}
.site-header nav a{color:#534b5e}
.dark-section .section-lead{color:#c1bacd}
.constraint-options>button>span,.constraint-visual p,.dark-insight p{color:#bdb4ca}
.constraint-options p{font-size:15px;color:#b6afc1}
.constraint-options>button[aria-pressed=true] p{color:#d0c5df}
.constraint-visual p{font-size:14px}
.dark-insight p{font-size:18px}

.memory-case{--pool:#386e5c;--pool-dark:#2f5e50}
.pool-kicker,.pool-metrics span,.pool-metrics small,.pool-badges span,
.pool-placement .has-pool,.pool-placement em,.pool-takeaways b{color:var(--reading-green)}
.pool-header>p{font-size:17px}
.pool-kicker{font-size:12px}
.pool-badges span{font-size:12px}
.pool-metrics span{font-size:14px;line-height:1.65}
.pool-metrics small{font-size:12px;line-height:1.7}
.pool-nav{font-size:13px}
.pool-nav a span{font-size:11px}
.pool-section-title p{font-size:15px;line-height:1.85}
.pool-legend,.pool-flow-demo .figure-legend{font-size:12px}
.pool-flow-intro{font-size:16px}
.pool-flow-intro strong{font-weight:600;color:#52405f}
.pool-placement{font-size:13px}
.pool-placement>b{font-size:12px}
.pool-mode-buttons button{font-size:14px}
.pool-mode-buttons button[aria-pressed=false]{color:var(--reading-secondary)}
.pool-operator-detail summary,.pool-settings summary{font-size:14px}
.pool-settings-body,.pool-settings-grid p,.pool-settings .metric-definition{font-size:14px}
.pool-settings-grid h5{font-size:15px;color:#604874}
.pool-settings table{font-size:13px}
.pool-settings th{color:#604874}
.pool-settings code{font-size:12px;color:#604874}
.pool-takeaways b{font-size:14px}
.pool-takeaways p{font-size:13px}

/* Keep dense figure labels at a readable scale inside their existing scrollers. */
#framework-demo .diagram-scroll svg,#kernel-panel .diagram-scroll svg,
#serving-demo .diagram-scroll svg,.pool-flow-demo .diagram-scroll svg{min-width:960px}
.pool-comparison-scroll img{min-width:960px}
.pool-operator-detail img{min-width:1000px}

@media(min-width:1000px){.site-header nav a{font-size:13px}}
@media(max-width:650px){
  .pool-header>p{font-size:15px}
  .pool-kicker,.pool-badges span{font-size:10px}
  .pool-metrics span,html[lang=en] .pool-metrics span{font-size:11px}
  .pool-metrics small,html[lang=en] .pool-metrics small{font-size:10px}
  .pool-nav,html[lang=en] .pool-nav{font-size:11px;gap:12px 18px}
  .pool-nav a span{font-size:9px}
  .pool-section-title p{font-size:14px}
  .pool-flow-intro{font-size:14px}
  .pool-legend,.pool-flow-demo .figure-legend{font-size:10px}
  .pool-placement{font-size:11px}
  .pool-placement>b{font-size:10px}
  .pool-mode-buttons button{font-size:12px}
  .pool-flow-demo .compact-tabs button{font-size:11px}
  .pool-operator-detail summary,.pool-settings summary{font-size:13px}
  .pool-settings-body,.pool-settings-grid p,.pool-settings .metric-definition{font-size:13px}
  .pool-settings-grid h5{font-size:14px}
  .pool-settings table{font-size:12px}
  .pool-settings code{font-size:11px}
  .pool-takeaways b,html[lang=en] .pool-takeaways b{font-size:13px}
  .pool-takeaways p,html[lang=en] .pool-takeaways p{font-size:12px}
}
@media(max-width:600px){
  .hero-subtitle,html[lang=en] .hero-subtitle{font-size:15px}
  .hero-eyebrow{font-size:9px}
  .hero-foot,html[lang=en] .hero-foot{font-size:10px}
  .site-header nav a{font-size:14px}
  .language-toggle{font-size:11px}
  .section-lead,.section-heading .section-lead,html[lang=en] .section-heading .section-lead{font-size:16px}
  .micro-label,.small-tag,html[lang=en] .figure-heading .small-tag{font-size:10px}
  .scale-tabs small{font-size:11px}
  html[lang=en] .scale-tabs strong{font-size:12px}
  html[lang=en] .scale-tabs small{font-size:10px}
  .scale-copy>p:not(.micro-label){font-size:15px}
  .focus-list li{font-size:12px}
  .figure-note{font-size:11px}
  .figure-caption strong{font-size:14px}
  .figure-caption p{font-size:13px}
  .compact-tabs button,html[lang=en] .compact-tabs button{font-size:11px}
  .compact-tabs button span,.stage-tabs .step-number{font-size:9px}
  .model-tabs button,html[lang=en] .model-tabs button{font-size:12px}
  .kernel-readouts small{font-size:10px}
  .kernel-readouts strong{font-size:19px}
  .kernel-readouts strong em{font-size:10px}
  .kernel-readouts span{font-size:11px}
  .step-counter{font-size:10px}
  .figure-legend{font-size:10px}
  .constraint-options p{font-size:14px}
  .constraint-visual p{font-size:13px}
  .dark-insight p{font-size:15px}
  .gap-summary p,.model-principle p,.research-direction p{font-size:13px}
  .module-card>p:not(.micro-label){font-size:15px}
  .module-card summary,.module-card li,.metrics-row p{font-size:13px}
  .metrics-row article>span{font-size:10px}
  .about-top>div>p:not(.eyebrow){font-size:12px}
  .team-signature p{font-size:11px!important}
  footer p,footer>span,.footer-brand{font-size:10px}
  .diagram-hint{font-size:10px;color:var(--reading-secondary)}
  .scale-body .scale-svg{min-width:620px!important}
}
