/* Mobile visual refinement: shared across the production page templates. */
.mobile-hero-cta{display:none}
@media (max-width:640px){
  .site-header{gap:8px}
  .site-nav.is-open{max-height:calc(100dvh - 104px);overflow-y:auto;overscroll-behavior:contain;align-content:start}
  .site-nav.is-open>a,.site-nav .proof-nav-trigger{min-height:44px}
  .hero-content{padding-top:108px}
  .hero-message{gap:16px}
  #hero-title.fashion-title-manufacturer{font-size:clamp(30px,8.7vw,36px);line-height:1.07}
  .hero-message>.hero-copy{max-width:34ch;margin:0 auto;font-size:clamp(15px,4.1vw,17px);line-height:1.45}
  .mobile-hero-cta{display:inline-flex;align-items:center;justify-content:center;gap:18px;justify-self:center;min-height:48px;padding:0 24px;border-radius:999px;background:#f2c94c;color:#101214;font-size:14px;font-weight:750;text-decoration:none}
  .mobile-hero-cta:focus-visible{outline:3px solid white;outline-offset:4px}
  .hero-stats{gap:14px 16px}
  .hero-stats dd{line-height:1.25}
  .section{padding-block:56px}
  .section-inner{width:calc(100% - 32px)}
  .sample-detail-hero{padding-inline:16px}
  .sample-detail-hero-copy{order:2;padding:24px 20px}
  .sample-proof-directory{order:3;padding:18px}
  .sample-detail-hero h1{line-height:1.08;overflow-wrap:break-word}
  .sample-detail-main-image{height:min(65svh,480px);min-height:300px}
  .sample-detail-grid{column-gap:12px}
  .sample-library-grid{gap:18px}
  .gallery-board.process-board{column-count:2;column-gap:12px}
  .gallery-board.process-board>a{break-inside:avoid;margin-bottom:12px}
  .article-body{line-height:1.75;overflow-wrap:break-word}
  .article-body img{max-width:100%;height:auto}
  .article-body table{display:block;max-width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch}
  .contact-form input,.contact-form textarea,.contact-form select{font-size:16px}
  .contact-form button,.contact-form input[type=submit]{min-height:48px}
  .footer-inner,.footer-bottom,.footer-legal{width:calc(100% - 32px)}
  .whatsapp-float{bottom:max(14px,env(safe-area-inset-bottom));right:max(14px,env(safe-area-inset-right))}
  .cookie-consent{bottom:max(76px,calc(env(safe-area-inset-bottom) + 68px));max-height:calc(100dvh - 100px);overflow-y:auto;overscroll-behavior:contain}
}
@media (max-width:640px){
  .gallery-sample-carousel .gallery-strip{overflow-x:auto;overscroll-behavior-inline:contain;-webkit-overflow-scrolling:touch;mask-image:none;-webkit-mask-image:none}
  .gallery-sample-carousel .gallery-strip-track{animation:none;transform:none;gap:12px}
}

.mobile-sample-cta{display:none}
@media (max-width:640px){
  .mobile-sample-cta{display:inline-flex;align-items:center;justify-content:center;align-self:flex-start;gap:18px;min-height:48px;margin-top:22px;padding:0 24px;border-radius:999px;background:#f2c94c;color:#101214;font-size:14px;font-weight:750;text-decoration:none}
  .mobile-sample-cta:focus-visible{outline:3px solid white;outline-offset:4px}
  .contact-form .form-button{min-height:48px}
}
@media (max-width:640px){
  /* Stray markup text in older cards inherits zero size; card content keeps its own readable type. */
  .blog-card{font-size:0}
  .blog-card>div{font-size:16px}
  .blog-card h3{font-size:clamp(23px,6.5vw,28px);line-height:1.12;letter-spacing:-.02em}
  .article-body h2{font-size:clamp(26px,7.5vw,32px);line-height:1.15;letter-spacing:-.025em}
  .article-body h3{line-height:1.22}
  .footer-links{grid-template-columns:repeat(2,minmax(0,1fr));gap:24px 16px}
  .footer-column.footer-contact{grid-column:1/-1}
}

/* Phase 2: keep article reading width fluid on phones. */
@media (max-width:640px){
  .timeline-wrap.article-feature-wrap{grid-template-columns:minmax(0,1fr);column-gap:0}
  .timeline-feature-intro h1{font-size:clamp(30px,8.5vw,38px);line-height:1.12;overflow-wrap:break-word}
  .craft-hero .craft-note{font-size:12px;line-height:1.5}
}
@media (max-width:640px){
  .blog-hero-grid{grid-template-columns:minmax(0,1fr);gap:28px}
  .blog-hero h1{font-size:clamp(34px,9vw,42px);line-height:1.08;letter-spacing:-.025em;overflow-wrap:normal}
  .craft-hero h1,.craft-hero h1.csp-product-22c5f41b46.csp-product-22c5f41b46{font-size:clamp(29px,8.5vw,37px);line-height:1.08;overflow-wrap:normal;word-break:normal}
}

/* Keep WhatsApp in the fixed phone header, clear of article text and controls. */
@media (max-width:640px){
  .site-header{display:grid;grid-template-columns:minmax(0,1fr) 44px 44px 58px;gap:6px}
  .site-header .brand{min-width:0;width:auto}
  .site-header .brand img{max-width:100%;height:auto}
  .site-header .whatsapp-float{position:static;inset:auto;width:44px;height:44px;min-width:44px;min-height:44px;transform:none;transition:none}
}
