/* Type and text color pass (2026-12-04): only font sizes and text colors change here; section grounds, panels,
   buttons, outlines and the 3D universe keep their earlier colors, and the layout stays exactly as it is. */

/* ---------- 1. type scale ---------- */
html body main h1{font-size:64px;line-height:72px;text-wrap:balance}
html body main h2:not(.rd-chart h2){font-size:44px;line-height:52px;text-wrap:balance}
html body main h3:not(:is(.rd-chart,.pa-engine,.pv-product-stage,.pd-workspace-front,.pd-knowledge-back,.service-grid,.pa-role-map,.rs-engine,.pv-signal-card) h3){font-size:24px;line-height:32px;text-wrap:balance}
html[lang=zh-Hant] body main :is(h1,h2,h3){letter-spacing:0}
/* lede under each first-screen title */
html body main :is(.page-mast .intro,.concrete-lede){font-size:18px;line-height:30px}
html body main :is(.page-mast .intro,.concrete-lede):not(.pd-small-label):not(:is(.dark,.rs-engine,.rd-scope,.md-cover,.md-cadence,.pv-shared-output,.pv-product-stage,.team-flow header,.pv-universe) *){color:var(--ink)}
/* explanatory copy: 16/26 ink (it was 12-15px grey in many places); text inside the navy panels and bands keeps its light color, and labels such as .pd-small-label keep their own color */
html body main :is(.intro,.section-head p:not(.eyebrow),.card p,.contact p:not(.eyebrow),.split p:not(.eyebrow),.faq details>p,.md-page details p,.pv-work-lane p:not(.eyebrow),.md-card-body>p,.md-section article>p,.pv-layer p,.pa-role-next p,.pa-role-detail article>p:not(.pa-kicker,.pa-role-evidence),.deliverables p,.ax-explore-steps p,.team-flow li p,.rd-lanes article>p,.rd-scope p,.rd-handoff p,.ax-inspector section p,.pd-closeup>p,.pv-evidence-popover p:not(.eyebrow,.quiet),.service-grid article>p:not(.eyebrow),.rs-intro>p,.md-original>p){font-size:16px;line-height:26px}
html body main :is(.intro,.section-head p:not(.eyebrow),.card p,.contact p:not(.eyebrow),.split p:not(.eyebrow),.faq details>p,.md-page details p,.pv-work-lane p:not(.eyebrow),.md-card-body>p,.md-section article>p,.pv-layer p,.pa-role-next p,.pa-role-detail article>p:not(.pa-kicker,.pa-role-evidence),.deliverables p,.ax-explore-steps p,.team-flow li p,.rd-lanes article>p,.rd-scope p,.rd-handoff p,.ax-inspector section p,.pd-closeup>p,.pv-evidence-popover p:not(.eyebrow,.quiet),.service-grid article>p:not(.eyebrow),.rs-intro>p,.md-original>p):not(.pd-small-label):not(:is(.dark,.rs-engine,.rd-scope,.md-cover,.md-cadence,.pv-shared-output,.pv-product-stage,.team-flow header,.pv-universe) *){color:var(--ink)}
html body main :is(.contact-action p,.concrete-copy>.quiet,.ax-base-note,.pv-focus-footer,.team-loop,.pd-next,.pd-role,.rd-cooperation>.rd-foot,.pv-contract-strip>span,.pv-evidence-list li,.rs-volume p,.rs-answers p,.rs-stats>div>span,.ax-home-story p:not(.eyebrow),.pa-role-evidence,.md-check-row,.team-diagrams>.quiet){font-size:15px;line-height:24px}
html body main :is(.contact-action p,.concrete-copy>.quiet,.ax-base-note,.pv-focus-footer,.team-loop,.pd-next,.pd-role,.rd-cooperation>.rd-foot,.pv-contract-strip>span,.pv-evidence-list li,.rs-volume p,.rs-answers p,.rs-stats>div>span,.ax-home-story p:not(.eyebrow),.pa-role-evidence,.md-check-row,.team-diagrams>.quiet):not(.pd-small-label):not(:is(.dark,.rs-engine,.rd-scope,.md-cover,.md-cadence,.pv-shared-output,.pv-product-stage,.team-flow header,.pv-universe) *){color:var(--ink)}
/* real data notes and caveats stay small and muted: body-sm 13/20 ink-muted */
html body main :is(.rd-foot,.interface-shot figcaption,.rs-note,.pa-disclaimer,.ra-disclaimer,.pd-caption,.md-note,.pv-evidence-popover .quiet,.ax-exploration .quiet,.pv-signal-board+.quiet,.pd-screen figcaption){font-size:13px;line-height:20px}
html body main :is(.rd-foot,.interface-shot figcaption,.rs-note,.pa-disclaimer,.ra-disclaimer,.pd-caption,.md-note,.pv-evidence-popover .quiet,.ax-exploration .quiet,.pv-signal-board+.quiet,.pd-screen figcaption):not(.pd-small-label):not(:is(.dark,.rs-engine,.rd-scope,.md-cover,.md-cadence,.pv-shared-output,.pv-product-stage,.team-flow header,.pv-universe) *){color:var(--ink-muted)}
html body main .rd-cooperation>.rd-foot{font-size:15px;line-height:24px}
html body main .rd-cooperation>.rd-foot:not(.pd-small-label):not(:is(.dark,.rs-engine,.rd-scope,.md-cover,.md-cadence,.pv-shared-output,.pv-product-stage,.team-flow header,.pv-universe) *){color:var(--ink)}
@media (min-width:760px) and (max-width:1000px){
  html body main h1{font-size:48px;line-height:56px}
  html body main h2:not(.rd-chart h2){font-size:36px;line-height:44px}
}
@media (max-width:759px){
  html body main h1{font-size:36px;line-height:44px}
  html body main h2:not(.rd-chart h2){font-size:28px;line-height:36px}
  html body main h3:not(:is(.rd-chart,.pa-engine,.pv-product-stage,.pd-workspace-front,.pd-knowledge-back,.service-grid,.pa-role-map,.rs-engine,.pv-signal-card) h3){font-size:20px;line-height:28px}
  html body main :is(.page-mast .intro,.concrete-lede){font-size:16px;line-height:26px}
  html body main :is(.intro,.section-head p:not(.eyebrow),.card p,.contact p:not(.eyebrow),.split p:not(.eyebrow),.faq details>p,.md-page details p,.pv-work-lane p:not(.eyebrow),.md-card-body>p,.md-section article>p,.pv-layer p,.pa-role-next p,.pa-role-detail article>p:not(.pa-kicker,.pa-role-evidence),.deliverables p,.ax-explore-steps p,.team-flow li p,.rd-lanes article>p,.rd-scope p,.rd-handoff p,.ax-inspector section p,.pd-closeup>p,.pv-evidence-popover p:not(.eyebrow,.quiet),.service-grid article>p:not(.eyebrow),.rs-intro>p,.md-original>p){font-size:15px;line-height:24px}
}

/* ---------- 2. text contrast and fit fixes ---------- */
/* work role map: unselected nodes were faded to 62% (text 2.8-4.4:1); they now stay at full opacity.
   The selected node keeps its brand outline and tint ring, so the state still shows. */
html body .pa-role-node:not(.pa-is-active){opacity:1}
/* methods anatomy fields: the third line overflowed the fixed-height box; same box size, tighter inner spacing */
html body .md-detail .pd-field{padding-top:4px;padding-bottom:4px;row-gap:2px}
/* the navy two-services band: its link's brand-colored focus ring was invisible on navy (1:1, already so before this pass); honey reaches 9.2:1 */
html body .dark :is(a,button):focus-visible{outline-color:var(--honey)}

/* ---------- 3. brand spectrum (leaf -> sage -> honey -> amber -> coral): the header bar on every page, plus two or three thin 3px uses a page ---------- */
/* full-width section tops: home universe and two-services bands, services two-services band, about source band */
html body :is(.pv-universe.pv-section,.dark,.pv-source-band){position:relative}
html body :is(.pv-universe.pv-section,.dark,.pv-source-band)::after{content:"";position:absolute;left:0;right:0;top:0;height:3px;background:linear-gradient(90deg,var(--leaf),var(--sage),var(--honey),var(--amber),var(--coral));pointer-events:none}
/* key card tops: home 200,000+ panel, services scope strip, work evidence focus card and better-prepared decision card, methods cover and cadence strip, about claim card */
html body :is(.rs-engine,.rd-scope,body:has(.pa-role-lens) .pv-focus,.pv-sweet-result,.md-cover,.md-cadence,.pv-source-band .split>div:first-child){background-image:linear-gradient(90deg,var(--leaf),var(--sage),var(--honey),var(--amber),var(--coral));background-size:100% 3px;background-repeat:no-repeat;background-position:top}
html body :is(.pv-sweet-result,.pv-source-band .split>div:first-child){border-top-color:transparent;background-origin:border-box}

/* ---------- 4. tap targets on phones: summaries and the bridge links reach 44px through inner padding offset by a negative margin, so nothing moves ---------- */
@media (max-width:759px){
  html body main :is(.faq details>summary,.md-page details>summary){padding-block:12px;margin-block:-12px}
  html body main .pd-bridge .pd-next a{padding-block:10px;margin-block:-5px}
}
