/* Public-site responsive corrections. No content or business logic changes. */
@media (max-width: 767.98px) {
  /* Keep the established mobile lead action and menu controls. */
  a.fab-button-open-marquiz {
    top:auto!important;bottom:calc(12px + env(safe-area-inset-bottom,0px));
    left:12px;right:auto;transform:none!important;clip-path:none!important;
    border-radius:6px;padding:10px 14px!important;min-height:44px;
    display:inline-flex;align-items:center;justify-content:center;
    font-size:14px!important;line-height:1.2;box-sizing:border-box;
    box-shadow:0 2px 8px #0002;
  }
  body:has(.fab-toggle-menu:checked) a.fab-button-open-marquiz {visibility:hidden;}
  .fab-header .fab-header-user-actions {gap:4px;flex-shrink:0;}
  .fab-header .fab-header-user-actions > a,
  .fab-header .fab-header-user-actions > .burger-btn {
    display:inline-flex;align-items:center;justify-content:center;
    flex:0 0 44px;width:44px;height:44px;padding:0;box-sizing:border-box;
  }
  .fab-header .burger-btn .bar {left:13px;}
  .fab-header .burger-btn .bar:nth-child(1) {top:15px;}
  .fab-header .burger-btn .bar:nth-child(2) {top:26px;bottom:auto;}
  .fab-header .fab-toggle-menu:checked ~ .burger-btn .bar:nth-child(1),
  .fab-header .fab-toggle-menu:checked ~ .burger-btn .bar:nth-child(2) {top:50%;bottom:auto;margin-top:-1.5px;}
  /* Blog pagination: preserve links and make each row fit its parent. */
  body:has(.blog-posts) .container:has(.blog-posts) {min-width:0;max-width:100%;box-sizing:border-box;}
  body:has(.blog-posts) :is(div,nav):has(> ul.pagination) {
    display:flex!important;flex-wrap:wrap!important;justify-content:center!important;
    gap:6px;min-width:0;max-width:100%;width:100%;box-sizing:border-box;
  }
  body:has(.blog-posts) ul.pagination {
    display:flex!important;flex-wrap:wrap!important;justify-content:center!important;
    flex:0 1 auto;min-width:0;max-width:100%;margin-inline:0!important;
    padding-inline:0!important;gap:3px;box-sizing:border-box;
  }
  body:has(.blog-posts) ul.pagination .page-item {min-width:0;max-width:100%;margin:0!important;}
  body:has(.blog-posts) ul.pagination .page-link {
    min-height:40px;display:inline-flex;align-items:center;justify-content:center;
    padding:7px 9px!important;white-space:normal;overflow-wrap:anywhere;box-sizing:border-box;
  }
  /* Wide editorial tables remain readable by scrolling within the table, not the page. */
  .content-html-source table.other-table {
    display:block;max-width:100%!important;width:100%!important;min-width:0!important;
    overflow-x:auto;box-sizing:border-box;overscroll-behavior-x:contain;
  }
  .content-html-source table.other-table :is(td,th) {overflow-wrap:normal;word-break:normal;}
  .content-html-source .feedback-form-label {
    min-width:0;white-space:normal!important;overflow-wrap:anywhere;
  }
  .content-html-source .feedback-form-label :is(label,span) {white-space:normal!important;overflow-wrap:anywhere;}
}
@media (max-width: 991.98px) {
  /* Preserve the original expand/collapse behavior; fix only horizontal geometry. */
  .fab-seo-block {grid-template-columns:minmax(0,1fr);min-width:0;max-width:100%;box-sizing:border-box;}
  .fab-seo-block .fab-seo-block-wrap {
    grid-template-columns:minmax(0,1fr)!important;min-width:0;max-width:100%;box-sizing:border-box;
  }
  .fab-seo-block .fab-seo-block-column {min-width:0;max-width:100%;box-sizing:border-box;}
  .fab-seo-block-columns .fab-seo-block-column {column-count:1!important;column-width:auto!important;}
  .fab-seo-block :is(h1,h2,h3,h4,p,li,a,span,div) {
    overflow-wrap:anywhere;word-break:normal;min-width:0;
  }
  .fab-seo-block :is(img,video,iframe) {max-width:100%;}
  .fab-seo-block a {white-space:normal;}
  .fab-seo-block :is(ul,ol) {max-width:100%;box-sizing:border-box;}
}

/* RosUpack: explicit, independent rows. Never stretch media to an indefinite grid height. */
@media (max-width: 991.98px) {
  .fab-grid-rosupack.fab-grid-rosupack {
    display:grid!important;grid-template-areas:"i1 i1" "i2 i3" "p p" "v v"!important;
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    grid-template-rows:repeat(4,auto)!important;grid-auto-rows:auto!important;
    align-items:start!important;align-content:start!important;gap:12px!important;
    width:100%;min-width:0;max-width:100%;height:auto!important;min-height:0;
    box-sizing:border-box;
  }
  .fab-grid-rosupack.fab-grid-rosupack > img {
    position:static!important;display:block!important;float:none!important;
    width:100%!important;max-width:100%!important;min-width:0!important;
    height:auto!important;min-height:0!important;max-height:none!important;
    aspect-ratio:4 / 3;object-fit:contain!important;object-position:center!important;
    align-self:start!important;box-sizing:border-box;margin:0!important;
    background:#f7f5f3;
  }
  .fab-grid-rosupack.fab-grid-rosupack > img:first-child {aspect-ratio:16 / 10;}
  .fab-grid-rosupack.fab-grid-rosupack > div {
    position:static!important;float:none!important;align-self:start!important;
    width:100%;min-width:0;max-width:100%;height:auto!important;min-height:0;
    box-sizing:border-box;overflow-wrap:anywhere;
  }
  .fab-grid-rosupack > div p {line-height:1.55;overflow-wrap:anywhere;}
  .fab-grid-rosupack.fab-grid-rosupack > video {
    position:static!important;display:block!important;float:none!important;
    width:100%!important;max-width:100%!important;min-width:0!important;
    height:auto!important;min-height:0!important;max-height:none!important;
    aspect-ratio:16 / 9;object-fit:contain!important;object-position:center!important;
    align-self:start!important;box-sizing:border-box;margin:0!important;background:#222;
  }
  section:has(> .fab-grid-rosupack) {min-width:0;max-width:100%;height:auto!important;}
}
/* Narrow editorial pages with wide tables: constrain the page, not the table contents. */
@media (max-width: 359.98px) {
  .content-html-source:has(table.other-table),
  .container:has(.content-html-source table.other-table),
  .container:has(.content-html-source table.other-table) > .row,
  .container:has(.content-html-source table.other-table) > .row > :has(.content-html-source table.other-table) {
    min-width:0!important;max-width:100%!important;box-sizing:border-box;
  }
  .content-html-source:has(table.other-table) :is(p,h1,h2,h3,h4,li,a,strong,b,span):not(table.other-table *) {
    min-width:0;max-width:100%;overflow-wrap:anywhere!important;white-space:normal!important;
  }
  .content-html-source:has(table.other-table) img:not(table.other-table *) {
    max-width:100%!important;height:auto!important;box-sizing:border-box;
  }
  .content-html-source:has(table.other-table) .lineorderpotri :is(input,.selectliner) {
    min-width:0!important;max-width:100%!important;box-sizing:border-box;
  }
}
