/* F2A V45–V47. Loaded only for main-host production and construction. */

/* V45: the eight actual results share a readable, content-sized list. */
.solution-detail-production .solution-results > .list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 27em), 1fr));
  gap: 12px 28px;
}
.solution-detail-production .solution-results .li { min-width: 0; overflow-wrap: anywhere; }

/* Confirmed compact-list surfaces:
   production: industry problems (the section after the results wrapper), scenarios;
   construction: problems, quality checks (p-only grids), scenarios.
   Roles, editorial articles, related links and the accepted outcome/price pair KEEP. */
.solution-detail-production > div:has(> .solution-results) + .spacer-24 + section > .grid,
.solution-detail-production > section:has(> .spacer-12 + .grid) > .grid,
.solution-detail-construction > section:has(> .section-sub + .spacer-16 + .grid > .service-card > p:only-child) > .grid,
.solution-detail-construction > section:has(> .spacer-12 + .grid) > .grid {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 26em), 1fr));
  gap: 0 28px;
}
.solution-detail-production > div:has(> .solution-results) + .spacer-24 + section > .grid > .service-card,
.solution-detail-production > section:has(> .spacer-12 + .grid) > .grid > .service-card,
.solution-detail-construction > section:has(> .section-sub + .spacer-16 + .grid > .service-card > p:only-child) > .grid > .service-card,
.solution-detail-construction > section:has(> .spacer-12 + .grid) > .grid > .service-card {
  display: block;
  height: auto;
  padding: 14px 0;
  border: 0;
  border-top: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  transform: none;
  overflow-wrap: anywhere;
}
.solution-detail-production > div:has(> .solution-results) + .spacer-24 + section > .grid > .service-card > p,
.solution-detail-production > section:has(> .spacer-12 + .grid) > .grid > .service-card > p,
.solution-detail-construction > section:has(> .section-sub + .spacer-16 + .grid > .service-card > p:only-child) > .grid > .service-card > p,
.solution-detail-construction > section:has(> .spacer-12 + .grid) > .grid > .service-card > p { margin: 0; }

/* An odd final item uses the remaining row, not a decorative empty cell. */
.solution-detail-production > div:has(> .solution-results) + .spacer-24 + section > .grid > .service-card:last-child:nth-child(odd),
.solution-detail-production > section:has(> .spacer-12 + .grid) > .grid > .service-card:last-child:nth-child(odd),
.solution-detail-construction > section:has(> .section-sub + .spacer-16 + .grid > .service-card > p:only-child) > .grid > .service-card:last-child:nth-child(odd),
.solution-detail-construction > section:has(> .spacer-12 + .grid) > .grid > .service-card:last-child:nth-child(odd) { grid-column: 1 / -1; }
/* V47: measured 320px/text200 defects in construction only. Normal desktop KEEP. */
@media (max-width: 600px) {
  .solution-detail-construction > .solution-outcome-grid > section { min-width: 0; }
  .solution-detail-construction .solution-results .li,
  .solution-detail-construction .solution-launch p,
  .solution-detail-construction .landing-card-grid article > span {
    overflow-wrap: anywhere;
  }
  .solution-detail-construction .landing-bullets > div {
    min-width: 0;
    grid-template-columns: 24px minmax(0, 1fr);
  }
  .solution-detail-construction .landing-bullets p { min-width: 0; overflow-wrap: anywhere; }
  .solution-detail-construction > section:has(> .meta) .chip { min-width: 0; max-width: 100%; white-space: normal; overflow-wrap: anywhere; }
  .solution-detail-construction .solution-role-list .chip { min-width: 0; max-width: 100%; white-space: normal; overflow-wrap: anywhere; }
  .solution-detail-construction > section:has(> .grid > .service-card > .solution-role-list) .service-card :is(h3, .li) { overflow-wrap: anywhere; }
  .solution-detail-construction .steps .step > div:last-child { min-width: 0; overflow-wrap: anywhere; }
}
/* V47 Linux CI: the team-artifact list inherits an automatic min-content track.
   Keep the track inside its real parent; break an oversized compound word naturally. */
@media (max-width: 600px) {
  .solution-detail-construction > section:has(> .section-sub + .spacer-16 + .list) > .section-sub {
    overflow-wrap: anywhere;
  }
  .solution-detail-construction > section:has(> .section-sub + .spacer-16 + .list) > .list {
    grid-template-columns: minmax(0, 1fr);
  }
  .solution-detail-construction > section:has(> .section-sub + .spacer-16 + .list) > .list > .li {
    min-width: 0;
    overflow-wrap: anywhere;
  }
}
