/* Weierken 1.4.0 — reviewed source library and buyer-guide layouts */
.content-library-section {
  background: #f5f1e9;
}

.gallery-followup {
  margin-top: 1.25rem;
}

.content-route-grid,
.content-fact-grid,
.content-step-list,
.guide-grid {
  display: grid;
  gap: clamp(1rem, 2vw, 1.75rem);
}

.content-route-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.content-route-grid article,
.content-fact-grid article,
.content-step-list article {
  padding: clamp(1.35rem, 2.4vw, 2rem);
  border: 1px solid rgba(17, 45, 37, .15);
  background: #fff;
}

.content-route-grid article > span,
.content-step-list article > b {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.35rem;
  height: 2.35rem;
  margin-bottom: 1.2rem;
  border: 1px solid #166a54;
  border-radius: 50%;
  color: #166a54;
  font-size: .76rem;
  letter-spacing: .08em;
}

.content-route-grid h3,
.content-fact-grid h3,
.content-step-list h3 {
  margin: 0 0 .65rem;
  color: #102d25;
}

.content-route-grid p,
.content-route-grid li,
.content-fact-grid p,
.content-step-list p {
  color: #455a54;
}

.content-route-grid ul {
  margin: 1rem 0 0;
  padding-left: 1.15rem;
}

.content-route-grid li + li {
  margin-top: .45rem;
}

.content-step-list {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  counter-reset: step;
}

.content-fact-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.content-timeline {
  display: grid;
  gap: 0;
  max-width: 930px;
  margin: 0 auto;
  padding: 0;
  list-style: none;
  border-left: 1px solid #98a8a2;
}

.content-timeline li {
  position: relative;
  padding: 0 0 2.1rem 2.1rem;
  color: #41564f;
}

.content-timeline li::before {
  content: '';
  position: absolute;
  left: -6px;
  top: .45rem;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #166a54;
  box-shadow: 0 0 0 5px #f5f1e9;
}

.content-timeline strong {
  display: block;
  margin-bottom: .25rem;
  color: #102d25;
  font-size: 1.1rem;
}

.source-gallery {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(.75rem, 1.5vw, 1.25rem);
}

.source-gallery-item {
  overflow: hidden;
  margin: 0;
  border: 1px solid rgba(17, 45, 37, .12);
  background: #fff;
}

.source-gallery-item img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: #e8ece9;
  transition: transform .45s ease;
}

.source-gallery-item:hover img {
  transform: scale(1.035);
}

.source-gallery-item figcaption {
  min-height: 3.5rem;
  padding: .85rem 1rem;
  color: #223b34;
  font-size: .84rem;
  font-weight: 600;
  line-height: 1.45;
}

.source-gallery-certification .source-gallery-item img {
  aspect-ratio: 3 / 4;
  object-fit: contain;
  padding: .75rem;
  background: #fff;
}

.guide-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.guide-card {
  overflow: hidden;
  border: 1px solid rgba(17, 45, 37, .14);
  background: #fff;
}

.guide-card-image {
  display: block;
  overflow: hidden;
  background: #dfe7e3;
}

.guide-card-image img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  transition: transform .5s ease;
}

.guide-card:hover .guide-card-image img {
  transform: scale(1.035);
}

.guide-card-copy {
  padding: clamp(1.25rem, 2.2vw, 1.8rem);
}

.guide-card-copy h2,
.guide-card-copy h3 {
  margin: .55rem 0 .75rem;
  color: #102d25;
  font-size: clamp(1.25rem, 2vw, 1.65rem);
  line-height: 1.2;
}

.guide-card-copy h2 a,
.guide-card-copy h3 a {
  color: inherit;
  text-decoration: none;
}

.guide-card-copy > p:not(.micro) {
  color: #52645f;
}

.guide-source-note {
  margin-top: 3rem;
  padding: 1rem 1.2rem;
  border-left: 3px solid #166a54;
  background: #f5f1e9;
  color: #41564f;
  font-size: .9rem;
}

.spec-to-confirm {
  color: #53645f !important;
  font-style: italic;
}

.prose h2,
.prose h3,
.prose p,
.prose li,
.product-hero-copy h1,
.product-hero-copy .lede,
.product-hero-copy .eyebrow,
.product-parameter-list dt,
.product-parameter-list dd {
  opacity: 1;
}

.product-hero-copy h1 {
  color: #f7f3e9 !important;
}

.product-hero-copy .lede,
.product-hero-copy .eyebrow,
.product-hero-copy .breadcrumbs,
.product-hero-copy .breadcrumbs a,
.product-hero-copy .check-list li {
  color: #dbe9e3 !important;
}

@media (max-width: 980px) {
  .content-route-grid,
  .guide-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .content-step-list,
  .source-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .content-route-grid,
  .content-fact-grid,
  .content-step-list,
  .guide-grid {
    grid-template-columns: 1fr;
  }

  .source-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .source-gallery-item figcaption {
    min-height: auto;
    padding: .7rem .8rem;
    font-size: .76rem;
  }
}
