/* YOGNE body readability: one final, shared layer.
   Only reading text and small controls are adjusted. Existing typefaces,
   headings, display statistics, chapter deck and development-route design stay owned by their templates. */
:root{--rb-body:18px;--rb-note:17px;--rb-label:14px;--rb-control:16px;--rb-leading:1.75}

/* Plain reading text. Exclusions are deliberate: these paragraphs are labels,
   display typography, statistics or the separately approved route/hero layouts. */
body:not([data-readability-skip]) main p:not(:is(.eyebrow,.section-label,.chapter-label,.core-kicker,.core-subtitle,.cd-id,.cd-display,.dr-number,.dr-image-copy,.small,.enquiry-privacy,.enquiry-status,.diagram-note,.cd-note,.material-note,.cd-project-note,.fc-reference-label,.colour-label,.use,.variant-use,.preview-state,.core-disclaimer,.development-status,.form-note,.proposal-status,.core-hero-note,.chapter-definition,.home-business-definition)):not(:where(.chapter-card *,.hero-stage *,.dr-visual *,.pending-image *,.direct-answer *)),
body:not([data-readability-skip]) main :is(ul,ol)>li:not(:where(.breadcrumbs *,.article-toc *,.chapter-card *,.dr-visual *,.yc-card *)),
body:not([data-readability-skip]) main dd:not(:where(.project-metrics *,.case-stats *,.cd-case-stats *,.dr-visual *)){
 font-size:max(var(--rb-body),1em);line-height:var(--rb-leading);font-weight:400;color:inherit;
}
body:not([data-readability-skip]) main :is(.article-content,.article-body) p:not(.eyebrow):not(:where(.direct-answer *)){font-size:max(var(--rb-body),1em);line-height:inherit}
body main :is(.article-content,.article-body)>p{max-width:68ch}
/* Retain existing larger introductory copy; the body target is a floor. */
body:not([data-readability-skip]) main .chapter-text p:not(.eyebrow){font-size:max(var(--rb-body),clamp(17px,1.4vw,21px))}
body:not([data-readability-skip]) main .media-story-copy p:not(.eyebrow){font-size:19px;line-height:1.7}
body:not([data-readability-skip]) main .guide-context p{font-size:20px;line-height:1.7}
body:not([data-readability-skip]) main :is(#buyer-downloads,#project-reading)>p{font-size:20px;line-height:1.7}
body:not([data-readability-skip]) main #buyer-downloads>p+p{font-size:18px}
body main :is(.article-content,.article-body)>:is(ul,ol){max-width:68ch}

/* Reading abstracts have template-specific small overrides; retain display
   subtitles only in the Core hero, not these ordinary page summaries. */
body:not([data-readability-skip]) main :is(.page-intro,.guide-hero) p.lead{font-size:max(var(--rb-body),1em);line-height:1.75;font-weight:400;color:inherit}
body:not([data-readability-skip]) main .page-heading p.intro{font-size:max(var(--rb-body),clamp(18px,1.55vw,22px));line-height:1.7;font-weight:400;color:inherit}

/* Captions, supporting explanations and material/structure notes. */
body:not([data-readability-skip]) main :is(.small,figcaption,.diagram-note,.material-note,.cd-note,.core-disclaimer,.development-status,.fc-note,.form-note,.pair-note,.review-output,.attachment-next,.saved-summary p,.list-card p,.saved-card p,.article-meta p):not(:where(.chapter-card *,.hero-stage *,.dr-visual *)){
 font-size:var(--rb-note);line-height:1.7;font-weight:400;color:inherit;opacity:1;
}
body main .cd-project .cd-project-note,
body main .yogne-enquiry-form .enquiry-privacy,
body .yg-customisation .yc-note{font-size:16px!important;line-height:1.7;color:inherit;opacity:1;font-weight:400}
body .yg-customisation :is(.yc-status,.yc-form-status),
body main .yogne-enquiry-form .enquiry-status{font-size:17px!important;line-height:1.7}
body main :is(.detail-copy,.material-state) dd{font-size:var(--rb-body);line-height:1.7}
body main .cd-look-notes{font-size:var(--rb-note);line-height:1.7;color:inherit}
body main :is(.library-card p,.pending-card p,.detail-copy .core-disclaimer,.product-summary .small,.product-lower .small){font-size:var(--rb-note);line-height:1.7}

/* Small labels: regular body text is not globally boldened. */
body:not([data-readability-skip]) main :is(.eyebrow,.section-label,.chapter-label,.core-kicker,.cd-id,.colour-label,.variant-use,.use,.fc-reference-label,.variant-code,.project-card-category):not(:where(.chapter-card *,.hero-stage *,.dr-visual *)){
 font-size:var(--rb-label);line-height:1.6;font-weight:500;color:inherit;opacity:1;
}
body main :is(.specs dt,.spec-list dt,.detail-copy dt,.material-state dt,.depth-decisions dt,.depth-record dt,.review-panel dt,.sample-service-list dt,.core-overview-grid strong,.project-metrics dt,.detail-strip span){
 font-size:var(--rb-label);line-height:1.6;font-weight:500;color:inherit;
}
body main .cd-look-notes dt{font-size:var(--rb-label);line-height:1.6;font-weight:500}
body main :is(.specs>div,.spec-list>div,.source-specs,.case-stats span,.cd-case-stats dd,.route-unit){font-size:var(--rb-note);line-height:1.65}
body main :is(.specs,.spec-list) dd{min-width:0;overflow-wrap:anywhere}
body .article-meta{font-size:16px;line-height:1.7}
body main .article-toc :is(a,summary){font-size:16px;line-height:1.6}
body .breadcrumbs{font-size:14px;line-height:1.6}
body main :is(.breadcrumb,.cd-breadcrumb,.cd-breadcrumb a){font-size:14px;line-height:1.6}

/* Tables retain their existing semantic markup and scroll wrappers. No new
   global table width is imposed; specification values are never reduced to fit. */
body:not([data-readability-skip]) main table{font-size:17px;line-height:1.7}
body:not([data-readability-skip]) main :is(th,td){font-size:17px;line-height:1.7}
body:not([data-readability-skip]) main thead th{font-size:16px;line-height:1.6;font-weight:500;letter-spacing:.015em}
body:not([data-readability-skip]) main caption{font-size:16px;line-height:1.65;color:inherit}
body main :is(.table-scroll,.cd-table-wrap){max-width:100%;overscroll-behavior-inline:contain}
body main .about-review #about-ordering .route-unit{font-size:17px}
/* The company evidence caption is an existing display title. */
body.about-review main #evidence caption{font-size:30px}

/* Body CTA and choice controls, not wordmarks, menu headings, chapter numbers
   or the circle plus icons. Wrap choices instead of shrinking them. */
body:not([data-readability-skip]) main :is(.text-link,.link,.btn,.button,.cd-link,.cd-button,.download-link,.fc-links a,.fc-nav a,.fc-source-links a,.core-primary,.core-secondary,.core-edit-link,.card-actions button,.card-colours button,.colour-swatch,.gallery-controls button,.gallery-tabs button,.filter,.cd-select,.yc-tabs button,.yc-toolbar button,.yc-optional summary,.review-expand-all,.review-faq-link,.saved-card button,.saved-card a,.list-card button,.piece-views summary):not(:where(.chapter-card *,.hero-stage *,.dr-visual *,.related-reading .text-link,.resource-links .text-link)){
 font-size:var(--rb-control);line-height:1.5;
}
body main :is(.card-colours button,.colour-swatch,.gallery-controls button,.gallery-tabs button,.cd-select,.btn,.core-primary,.core-secondary){white-space:normal;overflow-wrap:anywhere}
body main .cd-select{max-width:100%;min-width:0}
body main .cd-top-options .cd-select{max-width:100%}
body main .angle-tabs button{font-size:14px;line-height:1.5;letter-spacing:.035em}
body main .variant-card .choose{font-size:16px;line-height:1.5}
body .yg-customisation .yc-card ul{font-size:16px;line-height:1.65}
body .yg-customisation :is(.yc-flow,.yc-label-preview,.yc-dimension){font-size:17px;line-height:1.7}
body .yg-customisation .yc-card .text-link{font-size:16px}
body main .project-card-summary{font-size:var(--rb-body);line-height:1.75}

/* Shared and template-specific forms use the existing fields and API. */
body main form :is(label,legend),body .yg-customisation .yc-form label,body .yg-customisation .yc-brief label{font-size:16px;line-height:1.6;font-weight:500}
body main form :is(input,select,textarea),body .yg-customisation :is(input,select,textarea){font-size:17px;line-height:1.65}
body main form :is(.check span,.field small){font-size:16px;line-height:1.65}
body main #fc-status,body main #fc-status p{font-size:17px;line-height:1.7;font-weight:400;color:inherit}
body main [data-enquiry-context-summary] li{font-size:17px;line-height:1.7}
body main [data-enquiry-context-summary] .small{font-size:16px}
body :is(.list-card p,.core-saved-line p,.core-saved-actions button,.core-saved-actions a){font-size:16px;line-height:1.65}
body main .cd-project-note{font-size:16px}

/* Browser-reviewed exceptions inside the protected deck and Core preview. */
body.home .home-definition-card .home-card-description{font-size:18px;line-height:1.7;font-weight:400}
body.home .chapter-card .chapter-copy .eyebrow{font-size:13px;line-height:1.6;font-weight:500}
body.core-page main .preview-state{font-size:17px;line-height:1.7;font-weight:400}

/* Footer metadata stays secondary yet legible. Navigation geometry is intact. */
/* Compact secondary navigation and the shared saved-selection dialog. */
body main .core-nav a{font-size:14px;line-height:1.5}
body #selection :is(.small,.list-card p,.saved-card p){font-size:17px;line-height:1.7;color:inherit}
body #selection :is(.btn,.link,.dialog-head button,.list-card button){font-size:16px;line-height:1.5}
body #selection :is(input,select,textarea){font-size:17px;line-height:1.65}
body .footer-bottom{font-size:14px;line-height:1.65}
body footer small{font-size:14px;line-height:1.65}

@media(max-width:700px){
 body:not([data-readability-skip]) main .media-story-copy p:not(.eyebrow){font-size:17px}
 body:not([data-readability-skip]) main .guide-context p{font-size:18px}
}
@media(max-width:650px){
 :root{--rb-body:17px;--rb-note:17px}
 body.home .home-definition-card .home-card-description{font-size:17px}
 body.home .chapter-card .chapter-copy .eyebrow{font-size:12px}
 body:not([data-readability-skip]) main :is(th,td){font-size:16px;line-height:1.7}
 body:not([data-readability-skip]) main :is(thead th,caption){font-size:16px}
 body.about-review main #about-ordering .route-unit{font-size:17px}
 body.about-review main #evidence caption{font-size:28px}
 body main .cd-piece-actions{flex-wrap:wrap;align-items:flex-start;gap:10px}
 body main .cd-piece-actions .cd-select{flex-basis:auto;max-width:100%}
 body main .cd-table-wrap table{font-size:16px}
}

/* Mobile procurement records: keep every field readable in source order. */
@media(max-width:650px){
 body:not([data-readability-skip]) main table:is(.mobile-records,.mobile-pairs){display:block;width:100%;min-width:0;table-layout:auto}
 body main table:is(.mobile-records,.mobile-pairs) colgroup{display:none}
 body main table:is(.mobile-records,.mobile-pairs) caption{display:block;width:100%;text-align:left;margin-bottom:18px}
 body main table:is(.mobile-records,.mobile-pairs) thead{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
 body main table:is(.mobile-records,.mobile-pairs) tbody{display:block;width:100%}
 body main table:is(.mobile-records,.mobile-pairs) tbody tr{display:block;width:100%;border-top:1px solid currentColor;padding:18px 0;margin:0}
 body:not([data-readability-skip]) main table:is(.mobile-records,.mobile-pairs) tbody tr>:is(th,td),
 body:not([data-readability-skip]) main table:is(.mobile-records,.mobile-pairs) tbody tr>:is(th,td):first-child{display:block;width:100%;min-width:0;max-width:none;padding:8px 0;border:0;font-size:17px;line-height:1.7;overflow-wrap:anywhere}
 body main table.mobile-records tbody [data-label]::before{content:attr(data-label);display:block;font-size:16px;line-height:1.5;font-weight:600;margin:0 0 6px;color:inherit}
 body main table.mobile-pairs tbody tr>:first-child{font-weight:600}
 body main table.mobile-matrix{min-width:580px}
 body main :is(.table-scroll,.cd-table-wrap):has(>.mobile-matrix)::before{content:"Swipe horizontally to compare sizes →";display:block;position:sticky;left:0;width:calc(100vw - 48px);max-width:100%;font-size:16px;line-height:1.6;padding:0 0 12px}
 body.page-depth main .depth-section dd{font-size:17px;line-height:1.75}
 body .yg-customisation .yc-card ul{font-size:17px}
 .collection-dev .cd-piece-grid{grid-template-columns:1fr}
}
@media(max-width:650px){body.about-review main #about-ordering>p{font-size:17px}}
@media(max-width:650px){
 body main table.mobile-matrix{width:660px;min-width:660px;table-layout:fixed}
 body main table.mobile-matrix caption{display:table-caption;caption-side:top;position:static;width:auto;max-width:none;white-space:normal;overflow-wrap:normal}
 body main .mobile-matrix-caption{display:block;position:sticky;left:0;width:calc(100vw - 44px);max-width:calc(100vw - 44px)}
 body main table.mobile-matrix tr>:first-child{width:210px;min-width:210px;overflow-wrap:normal;word-break:normal}
}
@media(max-width:650px){body.page-depth main .depth-section li{font-size:17px;line-height:1.75}}
@media(max-width:650px){
 body.about-review main :is(#evidence,#documentation-support) table.mobile-pairs tbody tr>:is(th,td),
 body.about-review main :is(#evidence,#documentation-support) table.mobile-pairs tbody tr>:is(th,td):first-child{width:100%;max-width:none;min-width:0;padding:8px 0;border:0;font-size:17px;line-height:1.7}
 body.about-review main :is(#evidence,#documentation-support) table.mobile-pairs td,
 body.about-review main :is(#evidence,#documentation-support) table.mobile-pairs td a{font-weight:400}
}
