/* GEXYRAL DPP B03 / 2026-11-05
   Five public solutions pages only. Loaded after B02 baseline and page CSS.
   No impact on homepage, vendor, admin, PID/DPP business logic or APIs.
*/

/* Common content alignment: use the navbar's exact 1280px outer edges.
   The B02 side gutter is preserved at each device breakpoint. */
body.gx-solutions-index-page .gx-solutions-index .gx-solutions-container,
body.gx-sol-ecommerce-page .gx-sol-ecommerce .gx-ec-container,
body.gx-sol-factory-page .gx-factory .gx-factory-container,
body.gx-brand-solution-page .gx-brand-solution .gx-brand-container,
body.gx-seller-solution-page .gx-seller-solution .gx-seller-container {
  box-sizing: border-box;
  width: min(var(--gx-public-frame, 1280px), calc(100% - var(--gx-public-gutter, 40px)));
  max-width: none;
  margin-inline: auto;
}

/* Keep desktop hero composition balanced after widening the canvas. */
body.gx-solutions-index-page .gx-solutions-hero__grid,
body.gx-sol-ecommerce-page .gx-ec-hero__grid,
body.gx-sol-factory-page .gx-factory-hero__grid,
body.gx-brand-solution-page .gx-brand-hero__grid,
body.gx-seller-solution-page .gx-seller-hero__grid {
  column-gap: clamp(24px, 3.4vw, 52px);
}
:is(.gx-solutions-index, .gx-sol-ecommerce, .gx-factory, .gx-brand-solution, .gx-seller-solution)
:is(.gx-solutions-hero__copy, .gx-ec-hero__copy, .gx-factory-hero__copy,
    .gx-brand-hero__copy, .gx-seller-hero__copy) {
  min-width: 0;
}

/* Cards use the existing palette, but share consistent visual rhythm. */
:is(.gx-solutions-index, .gx-sol-ecommerce, .gx-factory, .gx-brand-solution, .gx-seller-solution)
:is(.gx-solutions-board, .gx-ec-hero-card, .gx-factory-panel, .gx-brand-board, .gx-seller-board) {
  border-color: rgba(37, 99, 235, .14);
  box-shadow: 0 24px 64px rgba(15, 23, 42, .10);
}
:is(.gx-solutions-index, .gx-sol-ecommerce, .gx-factory, .gx-brand-solution, .gx-seller-solution)
:is(.gx-solutions-pain-grid, .gx-solutions-scenario-grid, .gx-solutions-flow-grid,
    .gx-ec-pain-grid, .gx-ec-module-grid, .gx-ec-flow-grid,
    .gx-factory-pain-grid, .gx-factory-card-grid,
    .gx-brand-pain-grid, .gx-brand-cap-grid, .gx-brand-flow,
    .gx-seller-pain-grid, .gx-seller-cap-grid, .gx-seller-flow) > * {
  min-width: 0;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
:is(.gx-solutions-index, .gx-sol-ecommerce, .gx-factory, .gx-brand-solution, .gx-seller-solution)
:is(.gx-solutions-pain-grid, .gx-solutions-scenario-grid, .gx-solutions-flow-grid,
    .gx-ec-pain-grid, .gx-ec-module-grid, .gx-ec-flow-grid,
    .gx-factory-pain-grid, .gx-factory-card-grid,
    .gx-brand-pain-grid, .gx-brand-cap-grid, .gx-brand-flow,
    .gx-seller-pain-grid, .gx-seller-cap-grid, .gx-seller-flow) > * :is(h3, p, span) {
  overflow-wrap: break-word;
}
@media (hover: hover) and (pointer: fine) {
  :is(.gx-solutions-index, .gx-sol-ecommerce, .gx-factory, .gx-brand-solution, .gx-seller-solution)
  :is(.gx-solutions-pain-grid, .gx-solutions-scenario-grid, .gx-solutions-flow-grid,
      .gx-ec-pain-grid, .gx-ec-module-grid, .gx-ec-flow-grid,
      .gx-factory-pain-grid, .gx-factory-card-grid,
      .gx-brand-pain-grid, .gx-brand-cap-grid, .gx-brand-flow,
      .gx-seller-pain-grid, .gx-seller-cap-grid, .gx-seller-flow) > *:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 46px rgba(15, 23, 42, .10);
    border-color: rgba(37, 99, 235, .24);
  }
}

/* Avoid narrow, four-column cards between tablet and laptop widths. */
@media (min-width: 721px) and (max-width: 1100px) {
  body.gx-solutions-index-page .gx-solutions-scenario-grid,
  body.gx-solutions-index-page .gx-solutions-pain-grid,
  body.gx-solutions-index-page .gx-solutions-flow-grid,
  body.gx-sol-ecommerce-page .gx-ec-module-grid,
  body.gx-sol-ecommerce-page .gx-ec-pain-grid,
  body.gx-sol-ecommerce-page .gx-ec-flow-grid,
  body.gx-sol-factory-page .gx-factory-pain-grid,
  body.gx-sol-factory-page .gx-factory-card-grid,
  body.gx-brand-solution-page .gx-brand-pain-grid,
  body.gx-brand-solution-page .gx-brand-cap-grid,
  body.gx-seller-solution-page .gx-seller-pain-grid,
  body.gx-seller-solution-page .gx-seller-cap-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  /* The B02 gutter stays authoritative at 720px and below. */
  :is(.gx-solutions-hero__grid, .gx-ec-hero__grid,
      .gx-factory-hero__grid, .gx-brand-hero__grid, .gx-seller-hero__grid) {
    row-gap: 24px;
  }
  :is(.gx-solutions-index, .gx-sol-ecommerce, .gx-factory, .gx-brand-solution, .gx-seller-solution)
  :is(.gx-solutions-scenario-grid, .gx-solutions-pain-grid, .gx-solutions-flow-grid,
      .gx-ec-module-grid, .gx-ec-pain-grid, .gx-ec-flow-grid,
      .gx-factory-pain-grid, .gx-factory-card-grid,
      .gx-brand-pain-grid, .gx-brand-cap-grid, .gx-brand-flow,
      .gx-seller-pain-grid, .gx-seller-cap-grid, .gx-seller-flow) {
    grid-template-columns: minmax(0, 1fr);
  }
}
@media (prefers-reduced-motion: reduce) {
  :is(.gx-solutions-index, .gx-sol-ecommerce, .gx-factory, .gx-brand-solution, .gx-seller-solution)
  :is(.gx-solutions-pain-grid, .gx-solutions-scenario-grid, .gx-solutions-flow-grid,
      .gx-ec-pain-grid, .gx-ec-module-grid, .gx-ec-flow-grid,
      .gx-factory-pain-grid, .gx-factory-card-grid,
      .gx-brand-pain-grid, .gx-brand-cap-grid, .gx-brand-flow,
      .gx-seller-pain-grid, .gx-seller-cap-grid, .gx-seller-flow) > * {
    transition: none;
  }
}
