/* sw-library.css: the SiteWise gallery, /articles/sitewise/. Added 4 November 2026 (01S step 0.5).
   The card and hero styles are copied from the TemperatureWise gallery's inline <style>
   (dist/articles/temperaturewise/index.html), so both libraries look the same; that page is
   hand-built and keeps its own copy. Built by templates/build_gallery.py. */

.tw-lib-hero h1 {
  max-width: 58rem;
  margin: 0;
  color: #fff;
  font-size: clamp(3rem, 6.5vw, 5.5rem);
  font-weight: 500;
  letter-spacing: -.05em;
  line-height: .99;
}

.tw-lib-hero .answer {
  max-width: 46rem;
  margin: 2rem 0 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
}

.tw-lib-hero .answer p {
  margin: 0 0 .9rem;
  color: #c6d3cd;
  font-size: 1.15rem;
  line-height: 1.65;
}

.tw-lib-hero .answer p:last-child { margin-bottom: 0; }

.tw-lib-section { padding: 6rem 5%; background: #f8f8f3; }
.tw-lib-container { width: 100%; max-width: 80rem; margin: 0 auto; }

.tw-lib-heading {
  display: flex;
  justify-content: flex-start;
  gap: 2rem;
  align-items: end;
  margin-bottom: 2.5rem;
}

.tw-lib-heading h2 {
  max-width: 42rem;
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.25rem);
  font-weight: 500;
  letter-spacing: -.04em;
  line-height: 1.05;
}


.tw-lib-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem; align-items: start; }

.tw-lib-card {
  display: block;
  padding: clamp(1.75rem, 3.5vw, 2.75rem);
  border: 1px solid #d8e2dd;
  border-radius: 1.25rem;
  background: #fff;
  color: inherit;
  text-decoration: none;
  box-shadow: 0 1rem 3rem rgba(0, 26, 13, .06);
  transition: transform .25s ease, box-shadow .25s ease;
}

.tw-lib-card:hover { transform: translateY(-.4rem); box-shadow: 0 1.4rem 4rem rgba(0, 26, 13, .11); }

.tw-lib-tag {
  display: inline-block;
  margin-bottom: 1.25rem;
  padding: .4rem .65rem;
  border-radius: .4rem;
  background: #eef5f1;
  color: #14663d;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.tw-lib-card h3 {
  margin: 0;
  color: #101512;
  font-size: clamp(1.6rem, 2.6vw, 2.3rem);
  font-weight: 500;
  letter-spacing: -.035em;
  line-height: 1.08;
}

.tw-lib-card > p { margin: 1.1rem 0 0; color: #59645e; font-size: 1.02rem; line-height: 1.65; }

.tw-lib-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 1.9rem;
  padding-top: 1.4rem;
  border-top: 1px solid #d8e2dd;
}

.tw-lib-stat { padding-right: 1rem; }
.tw-lib-stat + .tw-lib-stat { padding-left: 1rem; border-left: 1px solid #d8e2dd; }
.tw-lib-stat strong { display: block; color: #14663d; font-size: 1.35rem; font-weight: 600; line-height: 1; }
.tw-lib-stat span {
  display: block;
  margin-top: .4rem;
  color: #758079;
  font-size: .66rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.tw-lib-link { display: inline-flex; gap: .5rem; align-items: center; margin-top: 1.75rem; color: #14663d; font-weight: 700; }



.tw-lib-cta { padding: 5.5rem 5%; background: #0a0e0c; color: #fff; }

.tw-lib-cta-inner {
  display: flex;
  justify-content: space-between;
  gap: 3rem;
  align-items: center;
  max-width: 80rem;
  margin: 0 auto;
}

.tw-lib-cta h2 {
  max-width: 47rem;
  margin: 0;
  color: #fff;
  font-size: clamp(2.25rem, 4.5vw, 3.75rem);
  font-weight: 500;
  letter-spacing: -.04em;
  line-height: 1.05;
}

@media screen and (max-width: 767px) {
  .tw-lib-section { padding-top: 4rem; padding-bottom: 4rem; }
  .tw-lib-heading { align-items: start; flex-direction: column; }
  .tw-lib-grid { grid-template-columns: 1fr; }
  .tw-lib-cta-inner { align-items: flex-start; flex-direction: column; }
}

@media screen and (max-width: 479px) {
  .tw-lib-hero h1 { font-size: 2.75rem; }
  .tw-lib-stats { grid-template-columns: 1fr; gap: 1rem; }
  .tw-lib-stat + .tw-lib-stat { padding-top: 1rem; padding-left: 0; border-top: 1px solid #d8e2dd; border-left: 0; }
}

/* SiteWise: the closing band with the import offer, the app button and the store badges */
.sw-lib-cta .tw-lib-cta-inner { align-items: flex-end; }
.sw-lib-cta_text { max-width: 47rem; }
.sw-lib-cta_text p { margin: 1.25rem 0 0; color: #c6d3cd; font-size: 1.1rem; line-height: 1.6; }
.sw-lib-cta_text p a { color: var(--green-light, #00ff80); }
.sw-lib-cta_actions { display: flex; flex-direction: column; align-items: flex-start; gap: 1rem; flex: 0 0 auto; }
.sw-lib-cta_actions .button { white-space: nowrap; }
.tw-lib-card .tw-lib-link.is-quiet { color: #59645e; }
@media screen and (max-width: 767px) {
  .sw-lib-cta .tw-lib-cta-inner { align-items: flex-start; }
}
