/* Increase only undersized text. Existing readable text and display headings
   retain their original sizes. Reading/controls below 16px get a 16px floor;
   secondary labels below 14px get a 14px floor. Logo proportions stay unchanged.
   Guidance: https://design-system.service.gov.uk/styles/paragraphs/
   Resize: https://www.w3.org/WAI/WCAG21/Understanding/resize-text */
:root{--rc-text-control:1rem;--rc-text-small:.875rem}

/* These component rules originally used 12-15px reading text. */
html:root body :is(.pcard p,.work-sub,.work-sub p,.wd-body p,.wwd p,
 .about-lead p,.faq-item p,.contact-intro p,.roadmap-step p,.pr-note,.pr-why,
 .hero-description,.section-heading>p,.project-copy>p:not(.project-meta),
 .solutions-grid p,.expertise-copy>p:not(.eyebrow),.process-grid p,.faq details p,
 .consultation-value li,.example-copy>p:not(.eyebrow),.category-invitation,
 .development-approaches p,.mobile-proof p,.rc-related-card p,.case-facts li,
 .service-list p,.process-steps p,.technology-note>p:not(.eyebrow),.category-grid p,
 .delivery-grid p,.mobile-faq details p,.business-tools>div>p:not(.eyebrow),
 .tools-grid span,.cost-note p:not(.eyebrow),.plan li,.addons li,
 .own-vs-rent p:not(.eyebrow),.journal-card p,.lg-main p:not(.lg-updated),
 .lg-main li,.nda-card p){font-size:var(--rc-text-control)}

/* Readable controls and short content labels, without shrinking larger headings. */
html:root body :is(.btn,.button,.mobile-button,.text-link,.arrow-link,
 .pcard a,.founder-li,.project-link,.contact-email,.contact-whatsapp,.service-paths a,
 .field input,.field select,.field textarea,.field-label,.field>span,
 .subscribe-label,.subscribe-row button,.journal-filters button,
 .pg-rel-go,.pg-ring-t,.pr-what,.l-cta,.wd-sub,.wd-metric,.nf-trails a,
 .founder-role,.pg-chip b,.journal-read,.lg-toc a,.skip-link,.skip){
 font-size:var(--rc-text-control);line-height:1.5;
}
/* Small section labels may be headings, but display headings are untouched. */
html:root body .wwd-grid h3{font-size:1rem}
html body .related-services h2{font-size:1rem}
html body .project-carousel .lcap .l-title{font-size:max(1rem,clamp(.9rem,1.7vw,1.2rem))}

/* Metadata is secondary in emphasis, not microscopic. */
html:root body :is(.eyebrow,.sec-k,.plat,.wd-kicker,.wd-chips i,
 .wd-model-badge,.wd-model-hint,.founder-edu,.about-xp-k,.tech-sub,.xp-name,
 .roadmap-free-badge,.pg-crumb,.pg-sub,.pg-client,.pg-chips-note,.pr-when,
 .pg-ring-cat,.stage-caption,.hero-foot>span,.experience>p,.project-tag,
 .project-meta,.project-facts,.project-facts li,.expertise-credentials span,
 .solution-number,.process-number,.process-output,.product-screen-heading,
 .product-stage figcaption,.form-next,.form-privacy,.field-label small,
 .hero-platforms span,.example-label,.example-copy small,.case-links small,
 .tools-note,.cost-note small,.cost-benefits li,.t-who span,.t-note,
 .plan-badge,.plan-price small,.plan-time,.journal-card time,
 .journal-meta,.journal-filters small,.post-nav-link>span,.subscribe-consent,
 .nda-eyebrow,.service-paths p,.model-attribution,.pg-facts i,
 .pg-prev i,.pg-next i,.expertise-person figcaption span,.expertise-person figcaption a,
 .rc-related-card small,.related-services a span,.mobile-proof span,.service-tag,
 .process-steps li>span,.journal-num,.journal-new,.journal-topic,.showcase-heading>span,
 .nf-eyebrow,.nf-scent,.nf-trails p,.nf-hint){
 font-size:var(--rc-text-small);line-height:1.6;
}
html:root body .case-copy>.eyebrow{font-size:1rem}
html:root body :is(.pg-crumb,.pg-client,.model-attribution,.subscribe-consent) a{font-size:inherit}
html:root body :is(.post-sources p,.post-sources li,.post-meta,.post-toc,
 .post table,.post caption,.journal-foot,.case-strip figcaption span){font-size:1rem;line-height:1.6}

/* Let enlarged copy wrap naturally instead of cutting it off inside cards. */
html body :is(.btn,.button,.mobile-button,.arrow-link,.text-link){white-space:normal;text-align:center}
html body .l-result{font-size:.875rem;line-height:1.6;-webkit-line-clamp:unset;overflow:visible}
html body :is(.lcap,.pg-ring-t){height:auto;min-height:0;white-space:normal}
html body .wd-model-badge{max-width:calc(100% - 24px);white-space:normal}
html body .sec-k{white-space:normal;overflow:visible}
html body .rc-footer-credit,html body .rc-footer-credit p{font-size:.875rem!important;line-height:1.6}
html body :is(main,.lg-main,.rc-site-footer){overflow-wrap:anywhere}
html body .faq summary{overflow-wrap:anywhere}
html body :is(.xp-item,.xp-name,.journal-body){min-width:0;max-width:100%;overflow-wrap:anywhere}
html body .roadmap-free-badge{position:static;grid-column:1/-1;white-space:normal;width:fit-content;max-width:100%;margin-bottom:10px}
html body .addons li{flex-wrap:wrap}
html body .journal-foot{flex-wrap:wrap;gap:8px}
html body .journal-foot>*{min-width:0;max-width:100%;white-space:normal;overflow-wrap:anywhere}
html body .journal-meta>*{white-space:normal}
html body .rc-header-inner{flex-wrap:wrap}
html body .rc-site-header .rc-desktop-nav{flex-wrap:wrap;min-width:0}
html body .rc-site-header :is(a,summary){overflow-wrap:anywhere}
html body .rc-language-options a{white-space:normal}
html body :is(.maya-msg,.maya-book,.maya-start,.maya-chip,.maya-wa,.maya-confirm,.rc-a11y-btn,.rc-a11y-item){font-size:1rem}
html body :is(.maya-head p,.rc-a11y-statement){font-size:.875rem}
@media(max-width:600px){
 html body .hero-cta{flex-wrap:wrap;gap:16px}
 html body .pg-ring{flex-wrap:wrap}
 html body .stage-caption{position:relative;inset:auto;padding:12px;gap:8px}
 html[lang="he"] body .roadmap-step{grid-template-columns:minmax(0,1fr)}
 html[lang="he"] body .roadmap-step :is(h3,p){grid-column:1}
}
