/* TRIADA theme only. CSS-first full bleed; existing block JS remains fallback.
 * The verified theme centers .tri-container with symmetric inline padding.
 * cqw uses main's content width, excluding the browser's vertical scrollbar.
 * No editor, header, footer, ordinary-service blocks or content settings change.
 */
@supports (container-type: inline-size) and (width: 100cqw) {
  body.wp-theme-triada:not(.wp-admin) #tri-main.tri-site-main:has(> article > .tri-container > .tri-prose > :is(.tai, [class*="wp-block-triada-training-"])) {
    container-type: inline-size;
  }

  body.wp-theme-triada:not(.wp-admin) #tri-main.tri-site-main > article > .tri-container > .tri-prose > :is(
    .tai.alignfull:not(.aih-root),
    .aih-root[data-aih-full-width="true"],
    .th-root[data-th-full-width="true"],
    .ta-root[data-ta-full-width="true"],
    .tr-root[data-tr-full-width="true"],
    .tc-root[data-tc-full-width="true"],
    .tp-root[data-tp-full-width="true"],
    .tl-root[data-tl-full-width="true"],
    .tf-root[data-tf-full-width="true"],
    .tg-root[data-tg-full-width="true"],
    .td-root[data-td-full-width="true"],
    .tt-root[data-tt-full-width="true"],
    .tq-root[data-tq-full-width="true"],
    .tn-root[data-tn-full-width="true"]
  ) {
    width: 100cqw !important;
    max-width: none !important;
    min-width: 0 !important;
    margin-left: calc(50% - 50cqw) !important;
    margin-right: calc(50% - 50cqw) !important;
    left: 0 !important;
    right: auto !important;
    flex-shrink: 0 !important;
  }
}
