/* One outer content rail across Syntropy. Narrow reading columns stay narrow. */
:root {
  --syntropy-content-width: 1320px;
  --syntropy-page-gutter: 24px;
  --container-max: 1368px;
  --container-wide: 1368px;
}
body .container,
body .container-wide,
body .about-container,
body .nav-container,
body .footer-inner,
body .stats-bar-inner,
body .sv-section,
body .sv-cta-section,
body.home :is(#products, #services, #edge, #work, #testimonials),
body.home section:has(> .cta-banner),
body .waybill-v2 .wrap,
body.page-id-48 .pd-page .container,
body.page-id-48 .pd-page .hero .container {
  box-sizing: border-box;
  width: min(var(--syntropy-content-width), calc(100% - 2 * var(--syntropy-page-gutter))) !important;
  max-width: var(--syntropy-content-width) !important;
  margin-inline: auto !important;
  padding-inline: 0 !important;
}
/* Nav's own parent padding must not create a second gutter. */
body .site-header { padding-inline: 0; }
/* Standard product template sections have their own outer padding. */
body:has(.product-hero) main#main-content > section,
body:has(.product-hero) main#main-content > .section-divider {
  box-sizing: border-box;
  width: min(var(--syntropy-content-width), calc(100% - 2 * var(--syntropy-page-gutter)));
  max-width: var(--syntropy-content-width);
  margin-inline: auto;
  padding-inline: 0;
}
.syntropy-resource-hub {
  box-sizing: border-box;
  width: min(var(--syntropy-content-width), calc(100% - 2 * var(--syntropy-page-gutter)));
  max-width: var(--syntropy-content-width);
  margin: 72px auto;
  padding: 42px;
  border: 1px solid rgba(35, 92, 77, .16);
  border-radius: 24px;
  background: linear-gradient(145deg, #f7fbf9, #eef7f3);
}
.syntropy-resource-hub .syntropy-resource-eyebrow {
  margin: 0 0 10px;
  color: #087c66;
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.syntropy-resource-hub h2 { margin: 0; color: #163d34; font-size: clamp(1.7rem, 3vw, 2.4rem); }
.syntropy-resource-hub > p { max-width: 760px; margin: 12px 0 0; color: #526d65; line-height: 1.65; }
.syntropy-resource-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 28px; }
.syntropy-resource-card {
  display: block;
  padding: 24px;
  border: 1px solid rgba(35, 92, 77, .13);
  border-radius: 16px;
  color: #173d34;
  background: #fff;
  box-shadow: 0 12px 30px rgba(20, 68, 56, .06);
  text-decoration: none;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.syntropy-resource-card:hover,
.syntropy-resource-card:focus-visible { transform: translateY(-3px); border-color: #29a889; box-shadow: 0 16px 34px rgba(20, 68, 56, .11); }
.syntropy-resource-card strong { display: block; margin-bottom: 7px; color: #0c705c; font-size: 1.03rem; }
.syntropy-resource-card > .syntropy-resource-copy { color: #5d756e; font-size: .92rem; line-height: 1.5; }
.syntropy-article-trust { margin: 12px 0 24px; color: #687b75; font-size: .88rem; }
/* The Waybill template resets all direct-child sections with ID-level specificity. */
body.page-id-14 main#main-content.waybill-v2 > section.syntropy-resource-hub {
  width: min(var(--syntropy-content-width), calc(100% - 2 * var(--syntropy-page-gutter)));
  max-width: var(--syntropy-content-width);
  margin: 0 auto 72px;
  padding: 42px;
}
@media (max-width: 760px) {
  .syntropy-resource-hub { margin-block: 48px; padding: 28px 20px; }
  body.page-id-14 main#main-content.waybill-v2 > section.syntropy-resource-hub { margin: 0 auto 48px; padding: 28px 20px; }
  .syntropy-resource-grid { grid-template-columns: 1fr; }
}
@media (min-width: 1101px) {
  body.page-id-48 .pd-page .hero-3d-workspace {
    aspect-ratio: auto !important;
    height: auto !important;
    min-height: 440px !important;
  }
  body.page-id-48 .pd-page .hero-split-grid {
    grid-template-columns: minmax(0, .9fr) minmax(0, 1.7fr);
    gap: 40px;
  }
}
@media (min-width: 901px) {
  /* Keep the enlarged Waybill screenshot within the same content rail. */
  body .waybill-v2 .hero { grid-template-columns: minmax(0, .9fr) minmax(0, 1.3fr); gap: 40px; }
  body .waybill-v2 .hero-visual {
    width: 100% !important;
    margin-left: 0 !important;
    transform: none !important;
  }
}
@media (max-width: 600px) {
  :root { --syntropy-page-gutter: 16px; }
}

/* Mobile containment for long-form articles. Intrinsic image/table width must not
   expand the single-column grid beyond the viewport. */
@media (max-width: 900px) {
  body.single-post .post-layout {
    grid-template-columns: minmax(0, 1fr) !important;
    min-width: 0 !important;
    max-width: 100% !important;
  }
  body.single-post .post-content {
    box-sizing: border-box;
    min-width: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
  }
  body.single-post .post-content :is(figure, picture, img, video, iframe, pre) {
    box-sizing: border-box;
    max-width: 100% !important;
  }
  body.single-post .post-content img {
    width: auto;
    height: auto;
  }
  body.single-post .post-content table {
    display: block;
    box-sizing: border-box;
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
}

/* Keep the standard product hero readable at narrow mobile widths. */
@media (max-width: 480px) {
  body:has(.product-hero) .product-hero .hero-content {
    box-sizing: border-box;
    min-width: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
  }
  body:has(.product-hero) .product-hero h1 {
    max-width: 100% !important;
    font-size: clamp(2.25rem, 10.5vw, 3rem) !important;
    line-height: 1.02 !important;
  }
}
