/* ============================================================
   tspipe.css -- project fixes applied on top of the original
   stylesheet.  Loaded AFTER style.css on every page, so every
   rule here wins without touching the downloaded assets.

   Kept in its own file (rather than appended to style.css) so a
   re-fetch of the original assets can never overwrite it.
   ============================================================ */

/* --- 1. carousel clipping ------------------------------------
   The original markup marks the carousel container
   ".swiper-container", but the bundled swiper.min.css clips the
   slides with ".swiper{overflow:hidden}".  Swiper 6 does not add
   the ".swiper" class to the element it initialises, so nothing
   ever clipped the slides: they ran past the right edge of the
   page and gave every page a horizontal scrollbar on a phone.
   Restoring the clip is exactly what the original stylesheet
   intended. */
.swiper-container{overflow:hidden;}

/* --- 2. no horizontal scrollbar -------------------------------
   Belt and braces: a decorative element (a wide table, a long
   unbroken token, a third-party badge) must never be able to
   widen the page.  The site uses no position:sticky, so clipping
   the x-axis costs nothing. */
html,body{max-width:100%;overflow-x:hidden;}

/* --- 3. long unbroken strings ---------------------------------
   Technical copy is full of long tokens (alloy grades, standards
   numbers, URL paths).  Without this they can push a column past
   the viewport on a narrow screen. */
p,li,td,th,h1,h2,h3,h4,div,span{overflow-wrap:break-word;word-wrap:break-word;}

/* --- 4. tables inside article bodies -------------------------
   Spec tables are wider than a phone.  Let them scroll inside
   their own box instead of widening the page. */
table{max-width:100%;}
table[border]{display:block;overflow-x:auto;-webkit-overflow-scrolling:touch;}
