/* Liquid Alpha engineering article v5: self-contained, scoped editorial layout */
body.tfmc-article-page,body.tfmc-article-page main {background:#fff!important;background-image:none!important;color:#1c2a32}
body.tfmc-article-page .site-header{background:rgba(13,18,23,.96);color:#f2f4f2}
body.tfmc-article-page .site-footer{background:#0d1217;color:#788792}
.article-intro{padding-top:48px;padding-bottom:18px}
.article-intro h1{font-size:clamp(40px,5vw,68px);color:#172630}
.article-intro .eyebrow{color:#087787}
.article-intro .lead{color:#3d5260;margin:16px 0 26px}
.article-hero{margin:0}
.article-hero img{width:100%;height:auto;max-height:690px;object-fit:contain;border-radius:5px}
.article-hero figcaption,.editorial-photo figcaption{color:#53646d;font-size:14px;line-height:1.5;margin:8px 0 0}
.article-hero a,.article-body a:not(.btn){color:#076b7d;text-underline-offset:3px}
.article-body.article-wide{max-width:1180px;padding-top:24px;padding-bottom:70px}
.article-body p{font-size:17px;color:#253a46;line-height:1.7;margin:0 0 17px;max-width:80ch}
.article-body h2{color:#172630;font-size:clamp(30px,3.6vw,44px);margin:42px 0 21px;padding-bottom:12px;border-bottom:1px solid #d8e0e3;scroll-margin-top:95px}
.article-body h3{color:#172630;font-size:clamp(24px,2.7vw,30px);margin:35px 0 18px;scroll-margin-top:95px}
/* Feature rows use real grid columns, not tall portrait image height as a layout constraint. */
.editorial-feature{display:grid;grid-template-columns:minmax(0,1.13fr) minmax(0,.87fr);gap:clamp(24px,3vw,42px);align-items:start;margin:22px 0 34px}
.editorial-feature.image-first{grid-template-columns:minmax(0,.87fr) minmax(0,1.13fr)}
.editorial-feature.image-first .editorial-photo{grid-column:1;grid-row:1}
.editorial-feature.image-first .story-copy{grid-column:2;grid-row:1}
.editorial-feature .story-copy p:last-child{margin-bottom:0}
.editorial-photo{margin:0;min-width:0;background:none;border:0;padding:0;box-shadow:none}
.editorial-feature .editorial-photo{width:100%;max-width:430px}
.editorial-photo img{display:block;width:100%;height:auto;border-radius:4px;object-fit:cover;object-position:center center}
/* The crop is ONLY the in-article preview. The lightbox always opens the full file. */
.feature-rejected-displays .editorial-photo img{aspect-ratio:1/1;object-position:center 32%}
.feature-haptic-experiment .editorial-photo{max-width:390px}
.feature-haptic-experiment .editorial-photo img{aspect-ratio:1/1;object-position:center 43%}
.feature-original-mechanical .editorial-photo img{aspect-ratio:1/1;object-position:center 27%}
.feature-internal-assembly .editorial-photo img{aspect-ratio:1/1;object-position:center 42%}
/* Two development details, large enough to recognise without giant portrait rows. */
.editorial-pair{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:clamp(20px,3vw,44px);max-width:890px;margin:26px auto 43px;align-items:start}
.editorial-pair .editorial-photo{max-width:none}
.editorial-pair .editorial-photo img{aspect-ratio:4/5;object-fit:cover;object-position:center 34%}
.editorial-pair .editorial-photo figcaption{max-width:50ch}
.article-next{padding:28px 30px;border:1px solid #c4dce1;border-radius:14px;background:#edf6f8;margin-top:48px}
.article-next h2{font-size:30px;margin:0 0 12px;border:0;padding:0}
.article-next p{color:#2f4652;margin-bottom:20px}
.article-next .btn.primary{color:#fff!important;background:#087e8c!important;border-color:#087e8c!important;text-shadow:none!important}
.zoomable-photo{cursor:zoom-in}
.zoomable-photo:focus-visible{outline:3px solid #087e8c;outline-offset:4px}
.tfmc-lightbox{position:fixed;inset:0;max-width:none;max-height:none;width:100vw;height:100dvh;margin:0;padding:12px 22px;border:0;background:rgba(7,12,18,.97);color:#fff;overflow:auto}
.tfmc-lightbox::backdrop{background:rgba(0,0,0,.75)}
.lightbox-toolbar{display:flex;justify-content:space-between;align-items:center;max-width:1200px;margin:0 auto 10px;min-height:44px;color:#dbe4e8}
.lightbox-close,.lightbox-prev,.lightbox-next{cursor:pointer;background:rgba(255,255,255,.11);border:1px solid rgba(255,255,255,.22);border-radius:8px;color:white;font:inherit}
.lightbox-close{padding:9px 16px}.lightbox-prev,.lightbox-next{font-size:32px;width:44px;height:56px}
.lightbox-view{display:flex;align-items:center;justify-content:center;gap:12px;max-width:1400px;margin:auto}
.lightbox-image{display:block;max-width:calc(100vw - 160px);max-height:calc(100dvh - 155px);object-fit:contain}
.lightbox-caption{color:#d9e1e5;font-size:14px;text-align:center;max-width:850px;margin:12px auto}
@media(max-width:780px){
 .article-intro{padding-top:32px}.article-body p{font-size:16.5px}
 .editorial-feature,.editorial-feature.image-first{display:flex;flex-direction:column;gap:17px}
 .editorial-feature.image-first .story-copy{order:0}.editorial-feature.image-first .editorial-photo{order:1}
 .editorial-feature .editorial-photo{width:100%;max-width:460px;align-self:center}
 .editorial-pair{gap:18px;margin:24px auto 36px}
 .lightbox-image{max-width:calc(100vw - 104px)}.tfmc-lightbox{padding:8px}.lightbox-prev,.lightbox-next{width:36px;height:48px}
}
@media(max-width:500px){.editorial-pair{grid-template-columns:1fr;max-width:400px}.editorial-pair .editorial-photo img{aspect-ratio:4/5}}
@media print{
 body.tfmc-article-page,body.tfmc-article-page main{background:#fff!important;color:#182a35!important}
 body.tfmc-article-page .site-header{display:none!important;position:static!important}
 .tfmc-lightbox{display:none!important}.article-body h2,.article-body h3{break-after:avoid}
 .editorial-feature,.editorial-pair{break-inside:avoid;page-break-inside:avoid}
 .article-next{break-inside:avoid}.article-next .btn.primary{-webkit-print-color-adjust:exact;print-color-adjust:exact}
}
