/* Shared pieces used by the solution pages added in the 2026-10-01 coverage pass.
   One stylesheet for all of them rather than a file per page, so the gallery,
   related-links and simple list patterns stay identical across the set. */

/* Photo gallery. auto-fit so any photo count tiles without leaving an orphan. */
.sx-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: clamp(14px, 1.5vw, 26px);
}

.sx-gallery figure {
  margin: 0;
}

.sx-gallery img {
  width: 100%;
  height: clamp(220px, 19vw, 320px);
  object-fit: cover;
}

.sx-gallery figcaption {
  margin-top: 11px;
  color: var(--muted);
  font-size: .93rem;
  line-height: 1.5;
}

/* Related-solution links. Every page in this set uses six, so the columns are
   fixed at 3 / 2 / 1 rather than auto-fit, which would leave an orphan at the
   widths where six items do not divide evenly. */
.sx-related {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 1.8vw, 28px);
  align-items: start;
}

@media (max-width: 1100px) {
  .sx-related {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .sx-related {
    grid-template-columns: minmax(0, 1fr);
  }
}

.sx-related a {
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding: 22px 24px 24px;
  background: var(--soft);
  transition: background .2s ease, transform .2s ease;
}

.sx-related a:hover {
  background: #e4ebee;
  transform: translateY(-2px);
}

.sx-related strong {
  font-size: 1.11rem;
  font-weight: 600;
  line-height: 1.3;
}

.sx-related small {
  color: var(--muted);
  font-size: .97rem;
  line-height: 1.55;
}

/* Plain feature / option cards where a page does not warrant a bespoke grid. */
.sx-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: clamp(20px, 2.2vw, 38px);
  align-items: start;
}

.sx-cards article > span {
  color: var(--orange-dark);
  font-size: .84rem;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.sx-cards h3 {
  margin: 12px 0 11px;
  font-size: 1.2rem;
  line-height: 1.3;
}

.sx-cards p {
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.7;
}

.sx-cards ul {
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}

.sx-cards li {
  position: relative;
  padding-left: 15px;
  margin-bottom: 7px;
  color: var(--muted);
  font-size: .97rem;
  line-height: 1.55;
}

.sx-cards li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .62em;
  width: 5px;
  height: 5px;
  background: var(--orange);
}

/* Dark variant for the same cards on a navy band. */
.sx-dark .sx-cards h3 {
  color: #fff;
}

.sx-dark .sx-cards p,
.sx-dark .sx-cards li {
  color: #adc0ca;
}

.sx-dark .sx-cards article > span {
  color: #ff8b4e;
}

/* Specification rows. */
.sx-specs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: clamp(18px, 2vw, 32px);
  margin: 0;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}

.sx-specs div {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.sx-specs dt {
  color: #5a6b74;
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.sx-specs dd {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.45;
}

.sx-note {
  margin-top: clamp(24px, 2.4vw, 38px);
  padding: 24px 28px;
  background: var(--soft);
  color: #3d505c;
  font-size: 1.02rem;
  line-height: 1.7;
}

.sx-note strong {
  display: block;
  margin-bottom: 6px;
  color: var(--ink);
}
