/* Shared public layout: 1370px content, centered on every route.
 * At a 1907px viewport this gives 268.5px on either side.
 * Keep small screens usable rather than reserving desktop-sized margins.
 */
html body.gx-body {
  --gx-site-width: 1370px;
  --gx-site-gutter: 16px;
}
html body.gx-body .gx-shell {
  width: 100% !important;
  max-width: none !important;
  min-width: 0;
  margin-left: 0 !important;
  margin-right: 0 !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  box-sizing: border-box;
}
html body.gx-body .gx-shell > .gx-page,
html body.gx-body .gx-shell > .gx-footer {
  width: 100%;
  min-width: 0;
  margin-left: 0 !important;
  margin-right: 0 !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}
html body.gx-body .gx-shell > .gx-page > .gx-container,
html body.gx-body .gx-shell > .gx-footer > .gx-container {
  width: calc(100% - var(--gx-site-gutter) * 2) !important;
  max-width: var(--gx-site-width) !important;
  min-width: 0;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  box-sizing: border-box;
}
/* Align actual panels with the container, without Bootstrap's outer gutters. */
html body.gx-body .gx-shell > .gx-page > .gx-container > .gx-row {
  width: 100%;
  min-width: 0;
  margin-left: 0 !important;
  margin-right: 0 !important;
}
html body.gx-body .gx-shell > .gx-page > .gx-container > .gx-row > [class*="col-"] {
  min-width: 0;
  padding-left: 0 !important;
  padding-right: 0 !important;
  box-sizing: border-box;
}
/* Remove the shop's old, additional 210px margins inside the shared frame. */
html body.gx-body .gx-shell > .gx-page > .gx-container > .gx-row > .col-lg-9:has(:is(.gx-shop-hub,.gx-cases-store,.gx-anew,.gx-pshop)) {
  flex: 0 0 100% !important;
  width: 100% !important;
  max-width: 100% !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}
/* Keep the homepage's two columns and their internal spacing. */
@media (min-width: 992px) {
  html:not(.gx-wide-site) body.gx-body .gx-shell > .gx-page > .gx-container > .gx-row > .col-lg-9 {
    padding-right: 12px !important;
  }
  html:not(.gx-wide-site) body.gx-body .gx-shell > .gx-page > .gx-container > .gx-row > .col-lg-3 {
    padding-left: 12px !important;
  }
}
/* Header background spans the viewport; its contents share the same edges. */
html body.gx-body .gx-shell > .gx-topbar {
  width: 100%;
  max-width: none !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  padding-left: max(var(--gx-site-gutter), calc((100% - var(--gx-site-width)) / 2)) !important;
  padding-right: max(var(--gx-site-gutter), calc((100% - var(--gx-site-width)) / 2)) !important;
  box-sizing: border-box;
}
/* Ranking is a bare table: remove its extra outer inset to match other panels. */
html body.gx-body .gx-shell .gx-rating-page.gx-stats {
  padding-left: 0 !important;
  padding-right: 0 !important;
}
@media (max-width: 991.98px) {
  html body.gx-body { --gx-site-gutter: 12px; }
}
@media (max-width: 575.98px) {
  html body.gx-body { --gx-site-gutter: 10px; }
}
