/* V2.3 shared inner-page layout — all 31 inner routes; homepage is unchanged.
   Existing typography, colours, content and interaction stay authoritative.
   Tokens below govern visible spacing; nested wrappers carry no extra padding. */
.inner-page.inner-layout{
  --space-section:clamp(48px,3vw,56px);
  --space-heading:clamp(20px,1.4vw,24px);
  --space-copy:16px;
  --space-column:clamp(32px,3.4vw,64px);
  --space-hero:clamp(40px,3.4vw,56px);
}
.inner-layout .page-hero{min-height:0;align-items:start}
.inner-layout .page-hero__inner{padding-block:var(--space-hero)}
.inner-layout .page-hero .eyebrow{margin-bottom:16px}
.inner-layout .page-hero__lede{margin-top:20px;max-width:74ch}
/* Product hero needs room for the equipment silhouette, beyond body rhythm. */
.inner-page.density-product{--space-section:clamp(32px,2.5vw,40px)}
.density-product .page-hero{min-height:clamp(500px,calc(360px + 12.5vw),600px);align-items:center}
.density-product .page-hero__inner{max-width:1800px;padding-block:clamp(56px,4.2vw,80px)}
.density-product .page-hero h1{max-width:32ch}
.density-product .page-hero__lede{max-width:74ch}
/* Quality uses one repeated title/content row, with breathing room per subject. */
.inner-page.density-quality{--space-section:clamp(48px,3vw,56px);--space-column:clamp(40px,4vw,72px)}
.inner-layout .block{padding-block:var(--space-section)}
.inner-layout .block > .wrap{display:grid;gap:var(--space-heading)}
.inner-layout .section-head{max-width:none;margin:0}
.inner-layout .section-body{min-width:0;display:flow-root}
.inner-layout .section-body > *{margin-block:0}
.inner-layout .section-body > * + *{margin-block-start:var(--space-copy)}
.inner-layout .section-body .prose{max-width:75ch}
.inner-layout .prose p + p{margin-top:var(--space-copy)}
.inner-layout .section-body > .table-scroll{max-width:none}
.inner-layout .section-head h2::before{margin-bottom:16px}
.inner-layout .section-body > :is(.table-scroll,.test-register,table):has(+ :is(.prose,p)){
  margin-block-end:1lh;
}
.inner-layout .section-body > :is(.table-scroll,.test-register,table) + :is(.prose,p){margin-block-start:0}
/* Lists carry information in parallel instead of one long narrow stack. */
.inner-layout .section-body .content-list{grid-template-columns:repeat(2,minmax(0,1fr));column-gap:28px}
.inner-layout .section-body .content-list li{padding-block:12px}
/* Tables use available space; parameter text inherits the approved 16px scale. */
.inner-layout .data-table th,.inner-layout .data-table td{padding:12px 16px}
.inner-layout .test-register th,.inner-layout .test-register td{padding-block:12px}
.inner-layout .reference-link .text-link{margin-top:0}
.inner-layout .tested-reference__title{margin-bottom:20px}
.inner-layout .tested-reference__grid{gap:24px}
.inner-layout .tested-reference__gallery{padding:12px;gap:12px}
.inner-layout .tested-reference__details{padding:20px}
.inner-layout .reference-image--photo img{max-height:360px;object-fit:contain}
.inner-layout .reference-image--nameplate img{max-height:240px;object-fit:contain}
.inner-layout .reference-specs th,.inner-layout .reference-specs td{padding-block:12px}
.inner-layout .reference-report{padding-top:20px}
.inner-layout .reference-report__status{margin-bottom:16px}
.inner-layout .reference-report dl{margin-bottom:16px}
.inner-layout .reference-report .text-link{margin-top:16px}
.inner-layout .cta-band__inner{padding-block:var(--space-section)}
.inner-layout .related{padding-block:var(--space-section)}
/* Full-width compositions stay cohesive rather than becoming three nested columns. */
.inner-layout .section-body > .split-2{gap:clamp(28px,3.4vw,56px)}
.inner-layout .split-2 > *{min-width:0}
.inner-layout .block--intro .section-body{max-width:75ch}
.inner-layout .section-head + .section-body > :is(h3,h4):first-child,
.inner-layout .article-section > :is(h2,h3) + :is(h3,h4){color:var(--accent)}
/* Product overview: image centred in the section, heading aligned to its top. */
.inner-layout .product-overview-row{display:grid;grid-template-columns:1.15fr .85fr;gap:clamp(28px,3.4vw,56px);align-items:start}
.inner-layout .product-overview-copy{min-width:0}
.inner-layout .product-overview-copy .section-head{margin-bottom:var(--space-heading)}
.inner-layout .product-overview-copy .prose{max-width:none}
.inner-layout .product-overview-row .figure{align-self:center}
.inner-layout .product-overview-row .figure img{min-height:0;height:auto}
/* Article TOC/body group and hero share the same outer left/right edges. */
.inner-page.density-article{--article-gap:clamp(28px,4vw,64px);--article-group-max:calc(300px + var(--article-gap) + var(--editorial-max))}
.density-article .page-hero__lede{max-width:var(--editorial-max)}
/* Articles keep a readable column and their existing table of contents. */
.inner-layout .article-wrap{padding-block:var(--space-section)}
.inner-layout .article-layout{gap:var(--article-gap,clamp(28px,4vw,64px));justify-content:start}
.inner-layout .article-section{padding-bottom:24px;margin-bottom:32px}
.inner-layout .article-section:last-child{padding-bottom:0;margin-bottom:0}
.inner-layout .article-section > h2{margin-bottom:var(--space-heading)}
.inner-layout .article-section > * + :is(.prose,.table-scroll,.data-list,.content-list,.process-flow,.figure,.numbered-list){margin-top:var(--space-copy)}
.inner-layout .article-section .prose p + p{margin-top:var(--space-copy)}
.inner-layout .article-section .figure{margin-bottom:var(--space-heading)}
.inner-layout .article-conclusion{margin-top:24px;padding:24px}
@media(min-width:1081px){
  .density-article .page-hero__lede{max-width:var(--article-group-max)}
  /* Wide-screen editorial paragraphs align to both edges; final lines stay left.
     Narrow layouts, headings, lists, tables and card labels retain their alignment. */
  .inner-layout :is(.prose,.page-hero__lede,.faq-answer,.article-conclusion) > p{
    text-align:justify;
    text-align-last:left;
    text-justify:inter-word;
    hyphens:auto;
    -webkit-hyphens:auto;
  }
  .inner-layout .block--labelled > .wrap{
    grid-template-columns:minmax(0,.8fr) minmax(0,2fr);
    column-gap:var(--space-column);align-items:start;
  }
}
@media(max-width:1080px){
  .inner-page.inner-layout{--space-section:36px;--space-heading:20px;--space-copy:14px;--space-column:28px;--space-hero:36px}
  .inner-page.density-product{--space-section:28px}
  .density-product .page-hero{min-height:480px}
  .density-product .page-hero__inner{padding-block:56px}
  .inner-page.density-quality{--space-section:40px}
  .inner-layout .tested-reference__details{padding:20px}
  .inner-layout .test-register td{padding-block:10px}
}
@media(max-width:900px){
  .inner-layout .product-overview-row{grid-template-columns:minmax(0,1fr)}
  .inner-layout .product-overview-row .figure{order:0}
}
@media(max-width:767px){
  .inner-page.inner-layout{--space-section:28px;--space-heading:16px;--space-copy:12px;--space-hero:28px}
  .inner-page.density-product{--space-section:24px}
  .density-product .page-hero{min-height:460px}
  .density-product .page-hero__inner{padding-block:44px}
  .inner-page.density-quality{--space-section:28px}
  .inner-layout .article-section{padding-bottom:20px;margin-bottom:24px}
  .inner-layout .article-conclusion{padding:20px}
  .inner-layout .page-hero .eyebrow{margin-bottom:12px}
  .inner-layout .page-hero__lede{margin-top:16px}
  .inner-layout .section-head h2::before{margin-bottom:12px}
  .inner-layout .section-body .content-list{grid-template-columns:minmax(0,1fr)}
  .inner-layout .tested-reference__details{padding:16px 12px}
  .inner-layout .tested-reference__grid{gap:16px}
  .inner-layout .data-table--key{min-width:0;table-layout:fixed}
  .inner-layout .data-table--key th{width:40%}
  .inner-layout .data-table th,.inner-layout .data-table td{padding:12px;overflow-wrap:anywhere}
}
