/* Shared frontend type roles. Decorative chart glyphs and primary brush buttons keep their own scale. */
.celestial-site.celestial-palace,.local-history{
 --type-text:'Microsoft YaHei','PingFang SC','Noto Sans CJK SC',sans-serif;
 --type-heading:'Palace Serif','Songti SC','SimSun',serif;
 --type-chapter:28px;--type-section:20px;--type-prose:18px;--type-control:16px;--type-data:14px;
}
@media(max-width:680px){.celestial-site.celestial-palace{--type-chapter:24px}}
.celestial-site.celestial-palace :is(.chart-analysis,.year-reading,.supplemental-reading) p:not(.field-note):not(.privacy-note),
.celestial-site.celestial-palace :is(.name-observations,.ziwei-years) li{
 font-family:var(--type-text)!important;font-size:var(--type-prose)!important;font-weight:400!important;line-height:1.8!important;letter-spacing:0!important;
}
.celestial-site.celestial-palace :is(.chart-analysis,.year-reading,.supplemental-reading) p{max-width:44rem}
.celestial-site.celestial-palace :is(.chart-analysis h3,.supplemental-reading h3,.luck-journey h4,.tianshu-entry-title){
 font-family:var(--type-heading)!important;font-size:var(--type-chapter)!important;font-weight:600!important;line-height:1.5!important;
}
.celestial-site.celestial-palace :is(.chart-analysis h4,.year-reading h4,.year-reading h5,.year-reading h6,.supplemental-reading h4,.pillar-inspector h4,.temporal-study h4,.relation-explorer h4){
 font-family:var(--type-heading)!important;font-size:var(--type-section)!important;font-weight:600!important;line-height:1.6!important;
}
.celestial-site.celestial-palace :is(.pillar-inspector,.temporal-study,.name-depth) :is(th,td),
.celestial-site.celestial-palace :is(.field-note,.name-characters small,.ziwei-palace small,.journey-dates,.privacy-note:not(.purchase-contact),.history-count){
 font-family:var(--type-text)!important;font-size:var(--type-data)!important;font-weight:400!important;line-height:1.65!important;font-variant-numeric:tabular-nums;
}
.celestial-site.celestial-palace :is(.birth-panel,.tool-controls,.name-controls,.supplement-details) :is(label,select,input),
.celestial-site.celestial-palace :is(.chart-navigation a,.tianshu-collapse,.tool-controls button),
.local-history :is(button,input,label){font-family:var(--type-text)!important;font-size:var(--type-control)!important;font-weight:400!important;line-height:1.5!important}
.celestial-site.celestial-palace :is(.ziwei-palace strong,.ziwei-majors,.ziwei-center span,.term-label){font-family:var(--type-text)!important;font-size:var(--type-data)!important;line-height:1.65!important}
.celestial-site.celestial-palace .ziwei-palace strong{font-weight:600!important}
.celestial-site.celestial-palace :is(.name-heading strong,.name-characters strong){font-family:var(--type-heading)!important;font-weight:600!important}
.celestial-site.celestial-palace #chart-years#chart-years :is(.journey-dates,.journey-current-label,.journey-current-year,.years>button>span){font-family:var(--type-text)!important;font-size:14px!important;line-height:1.5!important;font-variant-numeric:tabular-nums}
.celestial-site.celestial-palace #chart-years#chart-years .journey-rail strong{font-family:var(--type-heading)!important;font-size:24px!important;line-height:1.5!important;font-weight:600!important}
.celestial-site.celestial-palace #chart-years#chart-years .years>button b{font-family:var(--type-heading)!important;font-size:20px!important;line-height:1.4!important;font-weight:600!important}
.celestial-site.celestial-palace #chart-years#chart-years .viewing-year{font-family:var(--type-text)!important;font-size:16px!important;line-height:1.6!important}
.local-history h2{font-family:var(--type-text);font-size:20px;font-weight:600}
.local-history :is(.history-count,.history-open small){font-family:var(--type-text);font-size:14px;line-height:1.65}
.celestial-site.celestial-palace .name-five-grids{font-size:14px!important}
.celestial-site.celestial-palace #chart-years#chart-years .journey-heading{position:static!important;height:auto!important;margin:0 0 18px!important}
.celestial-site.celestial-palace #chart-years#chart-years .journey-heading h4{position:static!important;width:min(100%,420px)!important;height:64px!important;margin:0 auto!important;padding:0 14%!important;box-sizing:border-box!important;background:var(--axis-journey-title) center/100% 100% no-repeat!important;letter-spacing:0!important}
@media(max-width:680px){.celestial-site.celestial-palace #chart-years#chart-years .journey-heading h4{height:52px!important}}
.edition-images{--type-text:'Microsoft YaHei','PingFang SC','Noto Sans CJK SC',sans-serif;font-family:var(--type-text)}
.edition-images h2{font-family:var(--type-text)!important;font-size:20px!important;font-weight:600!important;line-height:1.6!important}
.edition-images :is(button,a){font-family:var(--type-text)!important;font-size:16px!important;line-height:1.5!important}
.edition-images :is(p,figcaption){font-family:var(--type-text)!important;font-size:14px!important;line-height:1.65!important}
