/* =========================================================
   Solution detail page (solution-detail.html?id=...)
   Uses the site palette from style.css (:root tokens) and
   the shared about.css / products.css components, so the
   page matches solutions.html. Everything is scoped to
   .sd-main so nothing leaks into other pages.
   ========================================================= */

/* ---------- Hero (banner image set from JS via --hero-bg) ---------- */
.sd-main .sd-hero {
  padding-bottom: clamp(44px, 6vw, 72px)
}

.sd-main .sd-hero h1 {
  max-width: 18ch
}

.sd-main .sd-hero__sub {
  color: #D5E0F5;
  max-width: 58ch;
  margin-top: 14px;
  font-size: clamp(14px, 1.2vw, 16.5px)
}

.sd-main .sd-hero__sub:empty {
  display: none
}

/* ---------- Overview ---------- */
.sd-main .sd-details {
  padding: clamp(56px, 7vw, 96px) 0
}

.sd-main .sd-content {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(28px, 5vw, 64px);
  align-items: center
}

.sd-main .sd-img-container {
  position: relative;
  border-radius: var(--rad);
  overflow: hidden;
  background: var(--navy3);
  box-shadow: var(--sh-lg), 0 0 0 1px var(--line)
}

.sd-main .sd-img-container img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover
}

.sd-main .sd-desc-container h2 {
  color: var(--ink);
  font-size: clamp(26px, 3vw, 38px);
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 16px
}

.sd-main .sd-description {
  color: var(--mut);
  font-size: clamp(15px, 1.15vw, 16.5px);
  line-height: 1.75;
  margin: 0 0 28px;
  max-width: 60ch
}

.sd-main .sd-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap
}

/* ---------- Recommended products ---------- */
.sd-main .sd-products {
  padding: 0 0 clamp(56px, 7vw, 96px)
}

.sd-main .sd-products .sec-head {
  margin-bottom: clamp(24px, 3vw, 40px)
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .sd-main .sd-content {
    grid-template-columns: 1fr
  }
}

@media (max-width: 560px) {
  .sd-main .sd-actions .btn {
    flex: 1 1 100%
  }
}

/* keep overview + products as one continuous soft band */
.sd-main .sd-details,
.sd-main .sd-products {
  margin-top: 0;
  margin-bottom: 0;
  border: 0;
  display: flow-root
}
