/* =========================================================
   Live-site review fixes (21 Oct 2026). Loads last.
   ========================================================= */
/* 1) forms at 1024-1180px: grid columns could not shrink below the form's intrinsic width,
      so the Careers / Contact form ran off the right edge (clipped by overflow-x:clip) */
.split>*,.form .row>*,.field{min-width:0}
.field input,.field select,.field textarea{width:100%;min-width:0;box-sizing:border-box}
/* 2) Capabilities mini-stats: "180–900T" broke after the dash; keep numbers on one line, let tiles size to content */
.mini-stats b:not(.txt){white-space:nowrap}
.mini-stats div{flex:1 1 auto}
/* 3) long words in narrow tiles on small phones (Quality shop-floor tiles, Capabilities lab cards) */
.tile h3,.card .body h3,.pcard h3{overflow-wrap:break-word;hyphens:auto}
@media (max-width:400px){
  .grid-3[style*="repeat(5"]{grid-template-columns:1fr !important}
  .grid-3[style*="repeat(5"] .tile:last-child:nth-child(odd){grid-column:auto}
  .card .body h3[style*="font-size:18px"]{font-size:15.5px !important}
}
/* 4) Products: "Specs to be supplied" pill wrapped onto two lines inside a fully rounded pill on phones */
@media (max-width:560px){
  .pill-ph{white-space:nowrap;font-size:11.5px;padding:4px 9px;max-width:100%}
}
/* 5) footer wordmark: show "GROUP OF INDUSTRIES" on phones too (matches the header) */
.site-footer .brand .wm span{display:block}
/* 6) phone menu: slightly tighter rows so all links + Enquire + cert line fit a 390x844 screen without scrolling */
@media (max-width:560px){
  .main-nav a{min-height:48px;padding:12px 0}
  .main-nav .m-cta{margin-top:14px}
  .main-nav .m-util{padding-top:16px}
}
@media (max-width:400px){
  .pill-ph{white-space:normal;border-radius:8px;line-height:1.3}
}
/* mini-stats on phones: keep the two-up layout, numbers a touch smaller so "180–900T" fits on one line */
@media (max-width:560px){
  .mini-stats div{flex:1 1 50%}
  .mini-stats b:not(.txt){font-size:28px}
}
@media (max-width:400px){.mini-stats b:not(.txt){font-size:25px}}
