/* =========================================================
   SATINE X — RESPONSIVE SAFETY NET
   Prevents horizontal overflow / page widening on small screens.
   Kept intentionally conservative so desktop layouts are untouched.
   Uses `overflow-x: clip` (with `hidden` fallback) so position:sticky
   headers keep working.
   ========================================================= */

html,
body {
    max-width: 100%;
}

body {
    overflow-x: hidden;
    overflow-x: clip;
    overflow-wrap: break-word;
}

img,
video,
iframe,
embed,
object,
canvas {
    max-width: 100%;
}

video,
iframe,
embed,
object,
canvas {
    height: auto;
}

pre {
    max-width: 100%;
    overflow-x: auto;
}

/* Long unbroken strings (addresses, hashes, links) must not widen the page */
a,
p,
span,
td,
th,
li,
h1,
h2,
h3,
h4,
h5,
h6 {
    overflow-wrap: break-word;
}

/* Flex/grid children default to min-width:auto which can force overflow.
   Allow them to shrink instead. */
.flex > *,
[class*="grid"] > * {
    min-width: 0;
}
