/* Shared UI type scale, based on the approved project notebook (2026-10-28).
   Reading, read-aloud and authored text keep their separate font settings. */
:root{
 --project-font:"PingFang SC","Microsoft YaHei UI","Microsoft YaHei","Noto Sans CJK SC","Noto Sans SC",-apple-system,BlinkMacSystemFont,sans-serif;
 --gg-type-page:clamp(24px,2.4vw,28px);
 --gg-type-project:clamp(22px,2.2vw,26px);
 --gg-type-section:18px;
 --gg-type-subheading:16px;
 --gg-type-body:16px;
 --gg-type-meta:12px;
 --gg-type-label:13px;
 --gg-type-control:13px;
 --gg-type-brand:19px;
 --gg-type-card-title:18px;
 --gg-type-card-headline:14px;
 --gg-type-card-copy:14px;
 --gg-ui-touch:44px;
}
@media(max-width:700px){:root{--gg-type-brand:17px}}
html body.project-detail,
html body:has(.project-intro),
html.embedded-discover body,
#homeHackathonView,
#projectSpacesRoot,
.gg-project-card{font-family:var(--project-font);font-weight:400;letter-spacing:0}
html body.project-detail :is(h1,h2,h3,h4),
html body:has(.project-intro) :is(h1,h2,h3,h4),
html.embedded-discover body :is(h1,h2,h3,h4),
#homeHackathonView :is(h1,h2,h3,h4),
html .discovery-brand,
html .site-header .brand,
html .top .brand{font-family:var(--project-font);letter-spacing:0;font-weight:600}
/* The project collection and its search composer share a restrained heading scale. */
html.embedded-discover body .hero{padding-top:40px;padding-bottom:20px}
html.embedded-discover body :is(.latest-updates a,.coach-heading h2,.coach-references h2){font-family:var(--project-font);font-size:18px;font-weight:600;line-height:1.6}
html body:has(.project-intro) .project-intro h1{font-size:var(--gg-type-page);line-height:1.5}
/* Long-form details keep 16px reading text; only the formerly oversized display type shrinks. */
html body.project-detail{font-size:16px;line-height:1.8}
html body.project-detail h1,
html body.project-detail .hero h1{font-size:var(--gg-type-project);font-weight:600;line-height:1.45;letter-spacing:0}
html body.project-detail h2,
html body.project-detail .detail-section>h2,
html body.project-detail .project-story h2,
html body.project-detail .project-story .story-block>h2,
html body.project-detail .project-story .research-depth>h2{font-size:var(--gg-type-section);font-weight:600;line-height:1.6}
html body.project-detail h3,
html body.project-detail .research-question>h3,
html body.project-detail .project-story .comparison-card h3,
html body.project-detail .member h3{font-size:var(--gg-type-subheading);font-weight:600;line-height:1.65}
html body.project-detail .hero{padding:28px;gap:32px}
html body.project-detail .hero .pitch{font-size:var(--gg-type-body);line-height:1.8;margin:12px 0 16px}
html body.project-detail .meta,
html body.project-detail .hero .meta{font-size:12px;line-height:1.75}
html body.project-detail .section-nav a{font-size:14px;font-weight:600}
html body.project-detail .project-overview dd{font-size:16px;line-height:1.8}
html body.project-detail .project-overview dt{font-size:12px;font-weight:500}
html body.project-detail .project-story>p,
html body.project-detail .project-story .story-block>p,
html body.project-detail .research-question>p{font-size:16px;line-height:1.9}
html body.project-detail .project-story .story-block,
html body.project-detail .research-question{padding:24px;margin:24px 0}
html body.project-detail .project-story .story-block>h2,
html body.project-detail .project-story .research-depth>h2{margin-bottom:18px}
html body.project-detail .visual-reading-nav{padding:14px 20px;margin:28px 0;gap:8px 24px}
html body.project-detail .visual-reading-nav a{font-size:15px;font-weight:500;line-height:1.6}
html body.project-detail .project-flow figcaption,
html body.project-detail .ai-workflow figcaption{font-size:18px;font-weight:600;line-height:1.6}
html body.project-detail .ai-workflow.project-flow h3{font-size:16px;font-weight:600;line-height:1.7}
html body.project-detail .ai-workflow.project-flow p{font-size:15px;line-height:1.85}
html body.project-detail .ai-workflow.project-flow :is(.workflow-tools,.workflow-output,.workflow-hard){font-size:12px;line-height:1.8}
html body.project-detail .fact h3,
html body.project-detail .score-dimension-heading h3,
html body.project-detail .score-questions h3{font-size:14px;font-weight:600}
html body.project-detail .resource h3,
html body.project-detail .tool-item h3{font-size:16px;font-weight:600;line-height:1.65}
html body.project-detail .project-footnotes h3{font-size:16px;line-height:1.7}
html body.project-detail .share-dialog h2{font-size:var(--gg-type-brand);font-weight:600;line-height:1.5}
html body.project-detail .site-header .brand,
html .discovery-brand,
html .top .brand{font-size:var(--gg-type-brand);font-weight:600}
/* All private project inserts inherit the same type as the public archive. */
html #homeHackathonView .hackathon-section{border:1px solid rgba(60,52,44,.14);box-shadow:none}
html #homeHackathonView .hackathon-section-head h2{font-size:18px;font-weight:600;line-height:1.6}
html #homeHackathonView .hackathon-game-heading h3{font-size:var(--gg-type-project);font-weight:600;line-height:1.5}
@media(max-width:700px){
 html body.project-detail .hero{padding:20px;gap:24px}
 html body.project-detail h1,
 html body.project-detail .hero h1{font-size:var(--gg-type-project);line-height:1.45}
 html body.project-detail .hero .pitch{font-size:16px;line-height:1.85}
 html body.project-detail .project-story .story-block,
 html body.project-detail .research-question{padding:20px 18px;margin:22px 0}
 html body.project-detail .project-story .story-block>h2,
 html body.project-detail .project-story .research-depth>h2{font-size:var(--gg-type-section);line-height:1.65}
 html body.project-detail .visual-reading-nav{padding:12px 16px;gap:6px 18px}
 html body.project-detail .visual-reading-nav a{font-size:14px}
}
@media(max-width:560px){
 html.embedded-discover body .hero{padding-top:28px}
  html body:has(.project-intro) .project-intro h1{font-size:24px}
 html #homeHackathonView .hackathon-game-heading h3{font-size:var(--gg-type-project)}
 html .discovery-brand{font-size:var(--gg-type-brand)}
}
@media print{
 html body.project-detail{font-size:11pt}
 html body.project-detail .hero h1{font-size:23pt}
 html body.project-detail .project-story>p,
 html body.project-detail .project-story .story-block>p,
 html body.project-detail .project-overview dd{font-size:11pt;line-height:1.75}
}
