/* Twior: content-width guard
   Loaded last. One shared content width, and nothing is allowed to
   push past it (long words, wide media, tables, code, embeds, grids). */

:root{
	--content:1280px;      /* the one content width (header, sections, footer) */
	--gutter:3rem;         /* total side space on desktop */
}
@media (max-width:600px){:root{--gutter:2rem}}

/* ---- One width everywhere ------------------------------------------ */
.wrap,
.home .wrap,
.alignwide{
	width:min(var(--content),100% - var(--gutter));
	max-width:100%;
	margin-inline:auto;
}
/* Header bar: same width as the content on desktop; the mobile bar
   (offcanvas.css, <=1080px) keeps its own full-width layout. */
@media (min-width:1081px){
	.site-header .site-header__inner{width:min(var(--content),100% - var(--gutter));max-width:100%;margin-inline:auto}
}
.wrap--narrow{width:min(780px,100% - var(--gutter))}
.wrap--table{width:min(980px,100% - var(--gutter))}
.wrap--faq,
.home .wrap--faq{width:min(800px,100% - var(--gutter))}
.alignfull{width:100%;max-width:100%;margin-inline:0}

/* ---- Safety net: never a sideways scrollbar ------------------------ */
html,body{max-width:100%;overflow-x:clip}
.site-main,.site-footer{max-width:100%;overflow-x:clip}

/* ---- Media, embeds ------------------------------------------------- */
img,video,svg,canvas,picture,iframe,embed,object,
.wp-block-image img,.wp-caption,.wp-block-embed,.wp-block-video{max-width:100%}
img,video,picture{height:auto}
iframe,embed,object{border:0}
.wp-caption,figure{max-width:100%;margin-inline:0}
.prose iframe,.prose video,.wp-block-embed iframe{width:100%;aspect-ratio:16/9;height:auto}

/* ---- Text never runs out of its box -------------------------------- */
:where(h1,h2,h3,h4,h5,h6,p,li,dt,dd,blockquote,figcaption,label,td,th,summary,.btn,.pill,.chip,.tag){
	overflow-wrap:break-word;
	word-wrap:break-word;
	min-width:0;
}
:where(a,code,kbd,samp){overflow-wrap:anywhere}
.btn,.link-play{white-space:normal;text-align:center;max-width:100%}

/* ---- Code and tables scroll inside their own box ------------------- */
.prose pre,.wp-block-code,.wp-block-preformatted{max-width:100%;overflow-x:auto;white-space:pre-wrap;word-break:break-word}
.prose table,.wp-block-table table{display:block;max-width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch}
.wp-block-table{max-width:100%;overflow-x:auto}
.cmp{max-width:100%;overflow-x:auto}

/* ---- Grid and flex children may shrink (the usual cause of blowouts) */
.hm-hero__grid>*,.hero__grid>*,.pg-hero__grid>*,.split>*,.bento>*,.grid>*,
.trig>*,.who>*,.steps>*,.plans>*,.feat>*,.ft-grid>*,.site-footer__grid>*,
.strip__row>*,.appwin__body>*,.contact-grid>*,.dodont>*,.faq-layout>*,
.svc-grid>*,.plug-grid>*,.mini-grid>*,.check-grid>*,.works>*,.zig>*,
.pipe>*,.facts__row>*,.about-card__facts>*,.cmp__row>*,.cmp__head>*,
.section__head>*,.site-header__inner>*,.nav-actions>*,.hm-hero__cta>*,
.hm-cta__btns>*,.card>*,.b>*,.plan>*,.row>*,.live__row>*,.timeline__item>*{
	min-width:0;
}

/* ---- Home hero mockups stay inside the column ---------------------- */
.mock{max-width:100%}
.appwin{max-width:100%}

/* ---- Fixed-width pieces on small screens --------------------------- */
@media (max-width:600px){
	.live{width:min(250px,100%)}
	.comment-list .children{padding-left:.75rem}
}
