/* Shared type roles. Loaded after page CSS, including generated news/partner pages.
   Keep display headings and product/brand marks intact; do not globally scale the UI. */
:root{--text-min:12px;--text-caption:13px;--text-ui:14px;--text-body:15px;--text-reading:16px;--title-primary:clamp(34px,4.4vw,48px);--title-section:clamp(30px,3vw,36px);--title-card:clamp(18px,1.8vw,22px)}
html{-webkit-text-size-adjust:100%;text-size-adjust:100%}
body[data-page]{font-size:var(--text-body)}
/* Natural wrapping is the shared default. Legacy cached wrappers are inline. */
.text-unit,.text-phrase{display:inline;white-space:normal;text-wrap:wrap}
body[data-page] :is(h1,h2,h3,h4,h5,h6,p,dt,dd,figcaption,.news-latest-title,.news-neighbor strong){
  white-space:normal;word-break:normal;overflow-wrap:break-word;text-wrap:wrap;
}

/* Labels and dates may be quieter, never smaller than 12px. */
body[data-page] :is(.eyebrow,.section-no,.kicker,.hero-foot,.news-eyebrow,.cp-eyebrow,.design-index,.ch-card-tag,.ct-card-tag,.ct-company-tag,.news-rows time,.about-fact>span,.ct-company-en){font-size:var(--text-min);font-weight:500;line-height:1.6}
body[data-page] :is(.eyebrow,.section-no,.kicker,.news-eyebrow,.cp-eyebrow){letter-spacing:.12em}
body[data-page] :is(.news-meta,.news-count,.news-neighbor>span,.news-main figcaption,.news-source,.caption,.about-fact,.message-signature,.portfolio-caption,.portfolio-logo-board figcaption,.ch-card-qr>span,.ch-note-tag,.ct-card-pending,.ct-fact dt,.ct-office-map figcaption,.cp-source-note,.cp-policy-note,.cp-preview-note,.cp-preview-note .cp-application-hint,.cp-form-actions>span,.cp-error,.cp-form-status,.cp-optional,.cp-fact-prefix,.cp-facts dt){font-size:var(--text-caption);font-weight:400;line-height:1.8}
body[data-page] .cp-main .cp-optional{font-size:var(--text-caption)}
body[data-page] .cp-facts dd>span{font-size:var(--text-caption)}
body[data-page] .cp-facts dt{max-width:none;text-wrap:wrap}
body[data-page] .news-meta{flex-wrap:wrap;gap:4px 16px}

/* Main explanatory text: 15px throughout; long-form articles use 16px. */
body[data-page] :is(.section .lead,.hero .sub,.band-inner p,.panel p,.intro-copy>p,.about-section .history-entry p,.about-design .design-point p,.portfolio-heading>p,.history-heading>p,.ch-section-head>p,.ch-card-meta p,.ch-note p,.ch-offline p,.ct-section-head>p,.ct-card-meta p,.ct-map-intro p,.news-card p,.news-article-summary,.cp-head-note,.cp-section-head>p,.cp-section-intro>p,.cp-markets p,.cp-advantages-grid p,.cp-model p,.cp-process p,.cp-summary>p){font-size:var(--text-body);font-weight:400;line-height:1.95;text-wrap:wrap}
body[data-page] :is(.news-article-section p,.news-article-head .news-article-summary){font-size:var(--text-reading);font-weight:400;line-height:2}
body[data-page] .news-article-section p{text-wrap:wrap}
body[data-page] :is(.ct-fact dd,.news-facts>div,.cp-summary dl>div){font-size:var(--text-ui);line-height:1.9}

/* Explicit interactive roles; keep the touch box independent from the glyph size. */
body[data-page] :is(.nav,.lang-option,.menu-toggle,.btn,.text-link,.ch-card-link,.ch-card-soon,.ch-text-link,.ct-card-mail,.news-read,.news-source a,.news-back,.news-related-heading>a,.news-filters button,.cp-text-link,.cp-model-action,.cp-button,.cp-choice,.cp-field>label,.cp-field>legend){font-size:var(--text-ui);font-weight:400;line-height:1.6}
body[data-page] .nav a{font-size:var(--text-ui)}
body[data-page] .nav a.is-active{font-weight:500}
body[data-page] :is(input:not([type=radio]),select,textarea,.fr-select-trigger){font-size:var(--text-reading)}
body[data-page] .fr-select-panel{font-size:var(--text-ui)}
body[data-page] .fr-select-group-title{font-size:var(--text-min)}
body[data-page] .fr-select-option{font-size:var(--text-ui)}
body[data-page] .cp-field :is(input::placeholder,textarea::placeholder){font-size:var(--text-ui)}
body[data-page] :is(.text-link,.ch-card-link,.ch-text-link){min-width:44px;min-height:44px;display:inline-flex;align-items:center}

/* Homepage has legacy mode-specific type rules; scope to the real scene region. */
body[data-page=home] #scenes .scene .body h3 span{font-size:var(--text-caption);font-weight:400;line-height:1.6;letter-spacing:.08em}
body[data-page=home] #scenes .scene .body p{font-size:var(--text-body);line-height:1.9;font-weight:400;text-wrap:wrap}
body[data-page=home] #scenes .scene .body h3 b{font:inherit;letter-spacing:inherit}
body[data-page=home] :is(.keywords span,.channel-rows a,.news-rows b){font-size:var(--text-body)}
body[data-page=home] .channel-rows a small{font-size:var(--text-caption)}
/* CJK closing punctuation may hang half a glyph beyond a line; reserve that space. */
body[data-page=home] .news-rows b{min-width:0;padding-inline-end:.5em;overflow-wrap:anywhere;text-wrap:wrap}
body[data-page=home] .hero-foot{font-size:var(--text-min)}
/* Forced single-line display copy must still work when readers enlarge text. */
body[data-page=home] .hero h1{white-space:normal;text-wrap:wrap}
body[data-page=home] #home-partner-title span{max-width:100%;white-space:normal}
body[data-page] :is(.cp-model p,.ct-company-item h3){overflow-wrap:anywhere}

/* Shared footer: actual reading information, not decorative micro-type. */
body[data-page] .footer :is(p,a){font-size:var(--text-ui);line-height:1.9;font-weight:400}
body[data-page] .footer-bottom{font-size:var(--text-min);line-height:1.8;letter-spacing:.04em;color:var(--footer-muted)}
body[data-page] .footer-social-link::after{top:calc(100% + 4px);bottom:auto;width:max-content;max-width:min(240px,calc(100vw - 40px));font-size:var(--text-min);line-height:1.5;white-space:nowrap;text-align:center}

/* Geography labels stay legible without changing city coordinates. */
body[data-page] .ct-map-place span:not(.ct-map-dot){font-size:var(--text-min);letter-spacing:.06em}
body[data-page] .ct-map-place strong{font-size:var(--text-caption)}
body[data-page] .about-history .history-heading h2{max-width:none}

/* Shared three-level title scale. Body, lead, navigation and labels keep their own roles. */
body[data-page] main :is(.hero h1,.about-hero--split h1,.ch-head h1,.ct-head h1,.cp-head h1,.news-head h1){font-size:var(--title-primary)!important}
body[data-page] main h2{font-size:var(--title-section)!important}
body[data-page] main h3{font-size:var(--title-card)!important}
body[data-page] .footer h2{font-size:var(--title-section)!important}

/* Article and card titles sit one level below the page/section heading. */
body[data-page=news] main .news-article-head h1{font-size:clamp(28px,2.8vw,40px)!important}
body[data-page=news] main :is(.news-card h2,.news-card h3,.news-article-section h2,.news-related-heading h2){font-size:var(--title-card)!important}
body[data-page=home] main .home-partner h3{font-size:clamp(34px,3.2vw,42px)!important}
body[data-page=about] main .about-design .design-point h3{font-size:20px!important}
body[data-page=cooperation] main .cp-markets h3{font-size:18px!important}
body[data-page=about] main .about-belief-motto{font-size:var(--title-card)!important}
body[data-page=channels] main .ch-offline h2{font-size:clamp(24px,2.4vw,34px)!important}

/* Explanatory copy follows natural line flow at every width. */
body[data-page] :is(.narrow>.lead,.band-inner p,.intro-copy>p,.panel p,.ch-section-head>p,.ch-card-meta p,.ch-notes-lead,.ch-note p,.ch-offline p,.ct-section-head>p,.ct-card-meta p,.ct-map-intro p,.cp-section-head>p,.cp-section-intro>p,.cp-advantages-grid p,.cp-model p,.cp-source-note,.cp-policy-note,.cp-preview-note p,.news-card p,.news-rows b,.history-heading>p,.about-section .history-entry p,.about-design .design-point p,.portfolio-heading>p,.home-partner p){text-wrap:wrap}

@media(max-width:900px){
  body[data-page] .nav a{font-size:16px}
  body[data-page] .nav a.is-active{font-size:18px}
}
@media(max-width:640px){
  :root{--title-primary:clamp(32px,5.3vw,34px);--title-section:clamp(24px,4.375vw,28px);--title-card:clamp(17px,3vw,18px)}
  body[data-page] :is(.fr-select-panel,.fr-select-option){font-size:var(--text-body)}
  /* Labels wrap at word boundaries instead of shrinking to 8px in half-width cards. */
  body[data-page] .cp-model .cp-eyebrow{white-space:normal;overflow:visible;overflow-wrap:normal;letter-spacing:.06em;font-size:var(--text-min)}
  body[data-page] .cp-model h3{font-size:21px}
  body[data-page] .cp-model p{font-size:var(--text-ui)}
  body[data-page] .ct-map-place>div{padding:6px 8px}
  body[data-page] .ch-card-tag{white-space:normal;letter-spacing:.04em}
  body[data-page] .ch-note-tag{letter-spacing:.04em}
  body[data-page] .cp-facts>div{padding-inline:8px}
  body[data-page] .cp-facts>div:first-child{padding-left:0}
  body[data-page] .cp-facts dd{display:grid;grid-template-columns:minmax(0,1fr);gap:0;align-items:start}
  body[data-page] .cp-facts .cp-fact-prefix{display:block;min-height:23px;line-height:23px}
  body[data-page] .cp-facts .cp-fact-value{gap:3px;line-height:1.4}
  body[data-page] .cp-facts strong{font-size:clamp(24px,7vw,40px)}
  body[data-page=news] main .news-article-head h1{font-size:clamp(24px,4.375vw,28px)!important}
  body[data-page=home] main .home-partner h3{font-size:clamp(30px,8vw,34px)!important}
  body[data-page=about] main .about-design .design-point h3{font-size:17px!important}
  body[data-page=cooperation] main .cp-markets h3{font-size:16px!important}
}
/* Very narrow partner cards need room for a six-character business phrase;
   recover four pixels per side instead of shrinking the customer's copy. */
@media(max-width:360px){body[data-page=cooperation] .cp-model{padding-inline:12px}}
