/* Shared discovery layout; detail pages keep their existing presentation. */
body[data-page="home"] #solutions > .home-page-container { height: auto; max-height: none; }
body[data-page="home"] #solutions .home-solutions-stage { flex: none; grid-template-columns: minmax(220px, 23%) minmax(0, 1fr); grid-template-rows: 48px var(--solution-showcase-height,clamp(420px,34vw,580px)); gap: 24px 0; }
body[data-page="home"] #solutions .home-solutions-tabs { grid-template-columns: repeat(var(--solution-category-count,5), minmax(0, 1fr)); }
body[data-page="home"] #solutions .home-solution-item-tabs { justify-content: flex-start; overflow: auto; }
body[data-page="home"] #solutions .home-solution-item-tabs button { min-height:64px; flex:0 0 calc(var(--solution-showcase-height,clamp(420px,34vw,580px)) / 6); padding:16px 24px; }
body[data-page="home"] #solutions .home-solution-workspace { height: 100%; min-height: 0; }
body[data-page="home"] #solutions .home-solution-preview { z-index: 0; }
body[data-page="home"] #solutions .home-solution-preview a { display: block; position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; padding: 0; border: 0; border-radius: 0; background: none; }
body[data-page="home"] #solutions .home-solution-preview img { display: block; width: 100%; height: 100%; object-fit: cover; padding: 0; border: 0; border-radius: 0; }
body[data-page="home"] #solutions .home-solution-preview::after { display: block; content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, #071c3540, transparent 85%); pointer-events: none; }
body[data-page="home"] #solutions .home-solution-copy { pointer-events: none; padding: 40px clamp(40px,5vw,86px); }
body[data-page="home"] #solutions .home-solution-copy a { pointer-events: auto; color: inherit; }
body[data-page="home"] #solutions .home-solution-copy h3 { font-size: clamp(28px, 2.6vw, 44px); }
body[data-page="home"] #solutions .home-solution-tags { display: grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:18px; }
body[data-page="home"] #solutions .home-solution-tags i::before { display: block; }
.solution-catalog-nav { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); }
#solutionCatalog { border-top: 0; }
#solutionCatalogGrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
#solutionCatalogGrid .solution-list-card { min-width: 0; min-height: 0; }
#solutionCatalogGrid .solution-list-card[hidden], #solutionCatalogEmpty[hidden] { display: none; }
#solutionCatalogGrid .solution-list-card figure { aspect-ratio: 16 / 9; }
#solutionCatalogGrid .solution-list-card figure img { width: 100%; height: 100%; object-fit: contain; background: #edf4fb; }
#solutionCatalogGrid .solution-list-copy h3 { font-size: 22px; line-height: 1.4; min-height: 2.8em; }
#solutionCatalogGrid .solution-list-copy h3 { word-break: normal; overflow-wrap: anywhere; }
#solutionCatalogGrid .solution-list-copy p { font-size: 15px; line-height: 1.75; min-height: 3.5em; }
#solutionCatalogGrid .solution-list-copy > div { flex-wrap: wrap; }
#solutionCatalogGrid .solution-list-card:focus-visible { outline: 3px solid #087bff; outline-offset: 4px; }
@media (max-width: 980px) {
  #solutionCatalogGrid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
}
@media (max-width: 900px) {
  body[data-page="home"] #solutions .home-solutions-stage { display: flex; flex-direction: column; gap: 16px; }
  body[data-page="home"] #solutions .home-solutions-tabs { display: flex; overflow-x: auto; max-width: 100%; }
  body[data-page="home"] #solutions .home-solutions-tabs button { flex: 0 0 auto; min-width: 110px; }
  body[data-page="home"] #solutions .home-solution-item-tabs { flex-direction: row; max-width: 100%; }
  body[data-page="home"] #solutions .home-solution-item-tabs button { flex: 0 0 auto; min-height: 64px; }
  body[data-page="home"] #solutions .home-solution-workspace { height: auto; min-height: 400px; }
  body[data-page="home"] #solutions .home-solution-copy { padding: 28px; }
  .solution-catalog-nav { display: flex; overflow-x: auto; justify-content: flex-start; }
  .solution-catalog-nav a { flex: 0 0 auto; min-width: 110px; }
}
@media (max-width: 600px) {
  #solutionCatalogGrid { grid-template-columns: minmax(0, 1fr); }
  #solutionCatalogGrid .solution-list-copy h3 { min-height: 0; }
  body[data-page="home"] #solutions .home-solution-copy { padding: 24px; }
}
body[data-page="home"] #solutions .home-solution-copy h3 a { display: inline; padding: 0; margin: 0; min-width: 0; border: 0; border-radius: 0; background: none; box-shadow: none; font: inherit; letter-spacing: inherit; text-align: inherit; }
body[data-page="home"] #solutions .home-solution-copy h3 a span { font: inherit; color: inherit; }
/* English spaces must remain line-break opportunities between semantic spans. */
body.locale-en #solutions .solution-word { white-space: normal; word-break: normal; }
body[data-page="home"] #solutions .home-solution-copy > :is(h3,p) { min-width: 0; max-width: 100%; }
body[data-page="home"] #solutions .home-solution-tags i { min-width: 0; overflow-wrap: break-word; }
.locale-en .solution-catalog-nav a > b { white-space: normal; text-wrap: wrap; line-height: 1.35; }
.locale-en .solution-catalog-nav a { padding: 10px 12px; min-width: 0; }
#solutionCatalogGrid [data-solution-category="mining"] figure img { object-fit: cover; }
#solutionCatalogGrid .solution-list-card { display: flex; flex-direction: column; }
#solutionCatalogGrid .solution-list-card figure { display: block; width: 100%; flex: 0 0 auto; margin: 0; }
#solutionCatalogGrid .solution-list-copy { width: 100%; min-width: 0; flex: 1 1 auto; }
#solutionCatalogGrid .solution-list-card[hidden] { display: none; }

@media (min-width: 1101px) {
 body[data-page="home"] #solutions { min-height:calc(100svh - 76px); padding-block:40px 32px; }
 body[data-page="home"] #solutions > .home-page-container { width:min(var(--container),calc(100% - 80px)); max-width:none; }
}
@media (max-width: 600px) {
 body[data-page="home"] #solutions .home-solution-tags { grid-template-columns:repeat(2,minmax(0,1fr)); }
}

/* Keep the selector and preview equally rounded, with a clear seam. */
body[data-page="home"] #solutions .home-solutions-stage { column-gap: 12px; }
body[data-page="home"] #solutions .home-solution-item-tabs { border-radius: 18px; overflow: auto; }
body[data-page="home"] #solutions .home-solution-copy > a {
  width: fit-content; min-width: 0; min-height: 46px; padding: 12px 24px;
  justify-content: center; font-size: 16px; line-height: 1.4; font-weight: 600;
  border-radius: 10px; margin-top: 12px;
}

#solutions .home-solution-item-tabs button[data-home-solution-item-tab="mining-construction"]::before { mask-image: url("../shared/solution-icons/mining-pick.svg"); }
#solutions .home-solution-item-tabs button[data-home-solution-item-tab="mining-operation"]::before { mask-image: url("../shared/solution-icons/mining-cart.svg"); }

/* Match the compact navigation: 64px toolbar plus its 1px border.
   Keep this measure stable during the header transition to avoid moving snap targets. */
body[data-page="home"] { --home-header-height:65px; }
body[data-page="home"] :is(.home-product-cards-section,#technology,#solutions) {
  scroll-margin-top: var(--home-header-height,76px);
}
@media (min-width:1101px) and (min-height:700px) {
 body[data-page="home"] :is(.home-product-cards-section,#technology,#solutions) {
  box-sizing:border-box; height:calc(100svh - var(--home-header-height,76px));
  min-height:calc(100svh - var(--home-header-height,76px)); max-height:none;
 }
 body[data-page="home"] :is(#technology,#solutions) > .home-page-container {
  height:100%; min-height:0; max-height:none; display:flex; flex-direction:column;
 }
 body[data-page="home"] #solutions .home-solutions-stage {
  flex:1; min-height:0; grid-template-rows:48px minmax(0,1fr);
 }
 body[data-page="home"] #solutions .home-solution-item-tabs button { flex:0 0 calc(100% / 6); }
}
