/* Shared mobile typography. Desktop styles are deliberately outside this layer.
 * Articles: title 26 / section 22 / card 20 / body remains 16.
 * Marketing pages retain their hero and section hierarchy; nested subheads use 22. */
@media(max-width:750px){
 html body #main#main#main .n30-article-top h1{font-size:26px!important;line-height:1.5!important;letter-spacing:0!important}
 html body #main#main#main :is(.n30-body h2,.n30-related h2,.n30-library h2,.n30-bottom h2,.kw68-related-services h2){font-size:22px!important;line-height:1.6!important;letter-spacing:0!important}
 html body #main#main#main :is(.n30-card h3,.n30-feature-copy h2){font-size:20px!important;line-height:1.6!important;letter-spacing:0!important}
 html body #main#main#main .kw21-heading{white-space:normal!important;text-wrap:wrap!important;word-break:normal!important;overflow-wrap:break-word!important}
 html body #main#main#main .kw21-heading .kw129-desktop{display:contents!important}
 html body #main#main#main .kw21-heading .kw129-mobile{display:none!important}
 html body #main#main#main .kw21-heading br{display:none!important}
 html body #main#main#main .kw21-heading br.kw19-break{display:block!important}
 /* A full card title must remain readable when a semantic break uses three lines. */
 html body #main#main#main .n30-related .n30-card h3{display:block!important;-webkit-line-clamp:unset!important;line-clamp:unset!important;overflow:visible!important}
 html body #main#main#main :is(.a105-connect-caption h3,.a105-deployment h3,.r62-subhead h3){font-size:22px!important;line-height:1.6!important;letter-spacing:0!important}
}

/* Explicit editorial breaks apply to mobile only; desktop article layout is unchanged. */
@media(max-width:750px){
 html body #main#main#main .kw68-related-services h2{white-space:nowrap!important}
 html body #main#main#main .kw68-related-services h2 br{display:none!important}
 html body #main#main#main br.kw22-mobile-break{display:block!important}
}
@media(min-width:751px){
 html body #main#main#main br.kw22-mobile-break{display:none!important}
}

/* The success message has the same explicit sentence break on every screen. */
html body #main#main#main .r23-receipt-intro > br{display:block!important}

/* Desktop component roles: card 22 / content panel 24 / reading text 16 / note 14.
 * Keep hero, section, article, FAQ, form and illustrative UI typography intact.
 * Component selectors also cover new content rendered by the existing templates. */
@media(min-width:1024px){
 html body #main#main#main :is(
  .r16-adv-card,.a27-principles,.a27-capabilities,.a27-ai-note,.a28-moment-grid,
  .a105-governance,.a105-layers,.a105-delivery,.r24-steps,.r63-editorial,
  .r69-cap-groups,.k56-pain,.k56-module-copy,.r62-readiness,.zt-fit-ledger
 ) h3{
  font-size:22px!important;line-height:1.55!important;font-weight:600!important;
 }
 html body #main#main#main :is(
  .need-result,.a28-view-copy,.a27-phase-copy,.a27-tech,.a105-demo-copy,
  .a105-connect-caption,.a106-editorial,.a105-deployment,.r25-panel,
  .r71-editorial,.r64-demo-intro,.r70-stage-heading,.r58-depth-head,
  .r58-panel,.k56-ai,.r92-story,.r95-photo-story,.r70-scope-head,.zt-handover-ledger
 ) h3{
  font-size:24px!important;line-height:1.55!important;font-weight:600!important;
 }
 html body #main#main#main .process-overview h3{
  font-size:20px!important;line-height:1.55!important;font-weight:600!important;
 }
 html body #main#main#main :is(
  .need-result,.r16-adv-card,.process-overview,.news-card,
  .a27-principles,.a27-capabilities,.a27-ai-note,.a28-view-copy,.a27-phase-copy,
  .a28-moment-grid,.a27-feature-story,.a27-reading,.a28-invite-grid,
  .a105-app-card,.a106-editorial,.a105-governance,.a105-delivery,
  .r24-steps,.r25-panel-intro,.r25-invite-copy,
  .k56-pain,.k56-module-copy,.r58-depth-head,.r58-panel,.r92-story,
  .r64-case-facts,.r70-scope-head,.k56-step
 ) > p:not(.r25-example):not(.r62-safe):not(.r80-label){
  font-size:16px!important;line-height:1.8!important;text-wrap:pretty!important;
 }
 html body #main#main#main :is(
  .process-overview,.a27-principles,.a27-capabilities,.a28-moment-grid,.a27-feature-story,
  .a27-reading,.a28-invite-grid,.a106-editorial,.a105-governance,.a105-delivery,
  .r24-steps,.r64-case-facts
 ) > :is(article,a,li,div) > p{
  font-size:16px!important;line-height:1.8!important;text-wrap:pretty!important;
 }
 html body #main#main#main :is(
  .a105-layers > article > p,.a105-deployment > div > p,
  .contact-aside > p,.r25-panel-intro,.r25-panel-details > div > p:not(.r25-example),
  .k56-ai > p
 ){
  font-size:16px!important;line-height:1.8!important;text-wrap:pretty!important;
 }
 html body #main#main#main :is(
  .a27-note,.a28-moments-note,.a28-perspective-note p,
  .a28-conversation p,.r24-process-note,.r25-assessment-note,
  .r25-rail > p,.r25-example,.r25-brief-example p,.r62-safe
 ){
  font-size:14px!important;line-height:1.8!important;
 }
}
