.gs-cards-grid {
  background: rgba(var(--bg-c), 1);
  color: rgba(var(--cl-d), 1);
  padding: clamp(64px, 8vw, 104px) 0;
}

.gs-cards-grid__header {
  max-width: 820px;
  margin: 0 auto clamp(40px, 5vw, 56px);
  text-align: center;
}

.gs-cards-grid__eyebrow {
  margin-bottom: 20px;
  color: rgba(var(--cl-f), 1);
  font: 700 15px/1.1 var(--font-family);
  letter-spacing: .14em;
  text-transform: uppercase;
}

.gs-cards-grid__heading {
  margin: 0;
  color: rgba(var(--cl-d), 1);
  font: 700 clamp(40px, 3.6vw, 52px)/1.1 var(--font-family2);
  letter-spacing: -.035em;
}

.gs-cards-grid__description {
  max-width: 820px;
  margin: 20px auto 0;
  color: rgba(var(--cl-d), .9);
  font: 400 18px/1.5 var(--font-family);
}

.gs-cards-grid__cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.gs-cards-grid--columns-2 .gs-cards-grid__cards {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.gs-cards-grid--columns-4 .gs-cards-grid__cards {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.gs-cards-grid__card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--br-a);
  border-radius: 24px;
  background: rgba(var(--bg-a), 1);
  color: rgba(var(--cl-d), 1);
  text-decoration: none;
}

a.gs-cards-grid__card:hover,
a.gs-cards-grid__card:focus-visible {
  box-shadow: 0 12px 24px rgba(var(--cl-d), .1);
}

.gs-cards-grid__image {
  height: 240px;
  margin: 12px 12px 0;
  overflow: hidden;
  border-radius: 16px;
}

.gs-cards-grid__image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gs-cards-grid__card--illustration .gs-cards-grid__image {
  height: 180px;
  margin: 36px 28px 4px;
  border-radius: 0;
}

.gs-cards-grid__card--illustration .gs-cards-grid__image img {
  object-fit: contain;
}

.gs-cards-grid__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  margin: 28px 28px 0;
  border-radius: 50%;
  background: rgba(var(--bg-h), 1);
  color: rgba(var(--cl-f), 1);
}

.gs-cards-grid__icon svg,
.gs-cards-grid__icon img {
  display: block;
  width: 36px;
  height: 36px;
  object-fit: contain;
}

.gs-cards-grid__icon svg {
  fill: none;
}

.gs-cards-grid__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
  padding: 24px 28px 28px;
}

.gs-cards-grid__card--none .gs-cards-grid__body {
  padding-top: 28px;
}

.gs-cards-grid__card--illustration .gs-cards-grid__body {
  padding-top: 18px;
  padding-bottom: 24px;
}

.gs-cards-grid__title-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
  width: 100%;
}

.gs-cards-grid__title {
  margin: 0;
  color: rgba(var(--cl-d), 1);
  font: 600 21px/1.25 var(--font-family);
}

.gs-cards-grid__badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 4px 9px;
  border-radius: 999px;
  background: rgba(var(--bg-f), 1);
  color: rgba(var(--cl-a), 1);
  font: 600 12px/1.2 var(--font-family);
  white-space: nowrap;
}

.gs-cards-grid__card-description {
  margin-top: 16px;
  color: rgba(var(--cl-d), .82);
  font: 400 16px/1.5 var(--font-family);
}

.gs-cards-grid__card--illustration .gs-cards-grid__title {
  font-size: 20px;
  line-height: 26px;
}

.gs-cards-grid__card--illustration .gs-cards-grid__badge {
  min-height: 22px;
  padding: 0 8px;
  font-size: 11px;
  line-height: 16px;
}

.gs-cards-grid__card--illustration .gs-cards-grid__card-description {
  margin-top: 18px;
  font-size: 15px;
  line-height: 23px;
}

.gs-cards-grid__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  width: 100%;
  margin: auto 0 0;
  padding: 24px 0 0;
  list-style: none;
}

.gs-cards-grid__tag {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  min-height: 28px;
  padding: 6px 10px;
  border-radius: 99px;
  background: rgba(var(--bg-c), 1);
  box-shadow: inset 0 0 0 1px var(--br-a);
  color: #314059;
  font: 500 13px/16px var(--font-family);
  overflow-wrap: anywhere;
}

.gs-cards-grid__link-text {
  display: inline-flex;
  align-items: center;
  margin-top: auto;
  padding-top: 28px;
  color: rgba(var(--cl-f), 1);
  font: 600 15px/1.25 var(--font-family);
}

.gs-cards-grid__tags + .gs-cards-grid__link-text {
  margin-top: 0;
}

a.gs-cards-grid__card:hover .gs-cards-grid__title,
a.gs-cards-grid__card:focus-visible .gs-cards-grid__title {
  color: rgba(var(--cl-f), 1);
}

@media (max-width: 1100px) {
  .gs-cards-grid--columns-4 .gs-cards-grid__cards,
  .gs-cards-grid--columns-3 .gs-cards-grid__cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  .gs-cards-grid {
    padding: 52px 0 56px;
  }

  .gs-cards-grid__header {
    margin-bottom: 34px;
  }

  .gs-cards-grid__heading {
    font-size: 40px;
  }

  .gs-cards-grid__description {
    font-size: 16px;
  }

  .gs-cards-grid__cards,
  .gs-cards-grid--columns-2 .gs-cards-grid__cards,
  .gs-cards-grid--columns-3 .gs-cards-grid__cards,
  .gs-cards-grid--columns-4 .gs-cards-grid__cards {
    grid-template-columns: 1fr;
  }

  .gs-cards-grid__card {
    border-radius: 20px;
  }

  .gs-cards-grid__image {
    height: 220px;
  }

  .gs-cards-grid__card--illustration .gs-cards-grid__image {
    margin-right: 20px;
    margin-left: 20px;
  }

  .gs-cards-grid__icon {
    margin: 24px 20px 0;
  }

  .gs-cards-grid__body {
    padding: 22px 20px 24px;
  }
}

/* T10: hardware cards from WooCommerce. Category pills above the cards, a button under them, and the compact
   product-card look (3 to 6 across) when any card has a product. Classes below appear only when those fields are set. */
.gs-cards-grid__pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: 0 0 40px;
  padding: 0;
  list-style: none;
}

.gs-cards-grid__pills li {
  margin: 0;
  padding: 0;
}

.gs-cards-grid__pills li::before,
.gs-cards-grid__pills li::marker {
  content: none;
}

.gs-cards-grid__pill {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 8px 16px;
  border-radius: 99px;
  background: rgba(var(--bg-a), 1);
  box-shadow: inset 0 0 0 1px var(--br-a);
  color: rgba(var(--cl-d), 1);
  font: 600 14px/18px var(--font-family);
  text-decoration: none;
}

.gs-cards-grid__pill:hover,
.gs-cards-grid__pill:focus-visible {
  box-shadow: inset 0 0 0 2px rgba(var(--cl-f), 1);
  color: rgba(var(--cl-f), 1);
}

.gs-cards-grid__more {
  display: flex;
  justify-content: center;
  margin-top: 40px;
}

.gs-cards-grid--products .gs-cards-grid__cards {
  gap: 12px;
}

.gs-cards-grid.gs-cards-grid--products-3 .gs-cards-grid__cards {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.gs-cards-grid.gs-cards-grid--products-4 .gs-cards-grid__cards {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.gs-cards-grid.gs-cards-grid--products-5 .gs-cards-grid__cards {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.gs-cards-grid.gs-cards-grid--products-6 .gs-cards-grid__cards {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.gs-cards-grid--products .gs-cards-grid__card {
  gap: 14px;
  padding: 14px;
  border-radius: 24px;
}

.gs-cards-grid--products .gs-cards-grid__image {
  height: auto;
  aspect-ratio: 1;
  margin: 0;
  border-radius: 16px;
  background: #fff;
  box-shadow: inset 0 0 0 1px var(--br-a);
}

.gs-cards-grid--products .gs-cards-grid__image img {
  object-fit: contain;
  padding: 12px;
}

.gs-cards-grid--products .gs-cards-grid__body,
.gs-cards-grid--products .gs-cards-grid__card--none .gs-cards-grid__body {
  gap: 6px;
  padding: 4px 8px 6px;
}

/* the title row lets its badge (a manual card's price text) line up with the product price, under the description */
.gs-cards-grid--products .gs-cards-grid__title-row {
  display: contents;
}

.gs-cards-grid--products .gs-cards-grid__title {
  font-size: 16px;
  line-height: 22px;
}

.gs-cards-grid--products .gs-cards-grid__card-description {
  margin-top: 0;
  font-size: 14px;
  line-height: 20px;
}

.gs-cards-grid--products .gs-cards-grid__badge,
.gs-cards-grid__price {
  order: 1;
  color: rgba(var(--cl-d), .82);
  font: 400 15px/20px var(--font-family);
}

.gs-cards-grid--products .gs-cards-grid__badge {
  display: block;
  min-height: 0;
  padding: 0;
  border-radius: 0;
  background: none;
  white-space: normal;
}

.gs-cards-grid__price del {
  opacity: .7;
}

.gs-cards-grid__price ins {
  text-decoration: none;
}

.gs-cards-grid--products .gs-cards-grid__tags {
  order: 1;
  padding-top: 8px;
}

.gs-cards-grid--products .gs-cards-grid__link-text {
  order: 2;
  margin-top: auto;
  padding-top: 6px;
  font-size: 14px;
  line-height: 20px;
}

@media (max-width: 1023px) {
  .gs-cards-grid.gs-cards-grid--products .gs-cards-grid__cards {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  /* phones: the pills stay on one line and scroll sideways inside their own row (the review site's select, without script) */
  .gs-cards-grid__pills {
    flex-wrap: nowrap;
    justify-content: flex-start;
    margin-bottom: 28px;
    padding-bottom: 4px;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .gs-cards-grid__pills::-webkit-scrollbar {
    display: none;
  }

  .gs-cards-grid__pills li {
    flex: none;
  }

  .gs-cards-grid__pill {
    white-space: nowrap;
  }

  .gs-cards-grid.gs-cards-grid--products .gs-cards-grid__cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .gs-cards-grid--products .gs-cards-grid__card {
    gap: 10px;
    padding: 10px;
    border-radius: 16px;
  }

  .gs-cards-grid--products .gs-cards-grid__image {
    height: auto;
    border-radius: 10px;
  }

  .gs-cards-grid--products .gs-cards-grid__body,
  .gs-cards-grid--products .gs-cards-grid__card--none .gs-cards-grid__body {
    gap: 4px;
    padding: 0 2px 2px;
  }

  .gs-cards-grid--products .gs-cards-grid__title {
    font-size: 14px;
    line-height: 19px;
  }

  .gs-cards-grid__more {
    margin-top: 28px;
  }
}

/* Review round 2 (Mathieu 2 Dec 2026) · system_layout "c" / "b" / "cb": railing system cards with a system icon (the review
   site's .sys-grid / .sys-card). C: 2 per row, the icon in a box beside the text. B: 3 per row, the icon beside the title and
   a thin line under it. CB: the first two cards C, the rest B, all the same width on desktop (a 6-column grid, the two C cards
   at columns 2–3 and 4–5). Photos 4:3, cover; image_focus "center bottom" keeps the bottom of the photo in the frame.
   These classes appear only with a system layout, so other cards look as before. */
.gs-cards-grid__systems {
  display: grid;
  gap: 24px;
}

.gs-cards-grid__systems--c {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.gs-cards-grid__systems--b {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.gs-cards-grid__systems--cb {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.gs-cards-grid__systems--cb .gs-cards-grid__sys {
  grid-column: span 2;
}

.gs-cards-grid__systems--cb .gs-cards-grid__sys--c:nth-child(1) {
  grid-column: 2 / span 2;
}

.gs-cards-grid__systems--cb .gs-cards-grid__sys--c:nth-child(2) {
  grid-column: 4 / span 2;
}

.gs-cards-grid__sys {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
  box-sizing: border-box;
  padding: 14px;
  border: 1px solid #ece6d6;
  border-radius: 28px;
  background: #fff;
  color: rgba(var(--cl-d), 1);
  text-decoration: none;
}

a.gs-cards-grid__sys:hover,
a.gs-cards-grid__sys:focus-visible {
  border-color: rgba(var(--cl-f), 1);
}

.gs-cards-grid__sys-photo {
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 20px;
  background: rgba(var(--bg-j), 1);
}

.gs-cards-grid__sys-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.gs-cards-grid__sys-photo--bottom img {
  object-position: center bottom;
}

.gs-cards-grid__sys-title {
  margin: 0;
  color: #314059;
  font: 700 21px/26px var(--font-family2);
  letter-spacing: -.01em;
}

.gs-cards-grid__sys-label {
  color: #c2410c;
  font: 600 13px/17px var(--font-family);
}

.gs-cards-grid__sys-body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  min-width: 0;
}

.gs-cards-grid__sys-chip {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 8px;
  border-radius: 99px;
  background: rgba(var(--bg-f), 1);
  color: #fff;
  font: 600 11px/16px var(--font-family);
  white-space: nowrap;
}

.gs-cards-grid__sys-text {
  color: #5b6474;
  font: 400 15px/1.6 var(--font-family);
}

.gs-cards-grid__sys-link {
  margin-top: auto;
  color: rgba(var(--cl-f), 1);
  font: 600 15px/1.25 var(--font-family);
}

/* C: the icon in a box beside the text */
.gs-cards-grid__sys-row {
  display: grid;
  flex: 1;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 18px;
  padding: 0 6px 6px;
}

.gs-cards-grid__sys-row > .gs-cards-grid__sys-body:only-child {
  grid-column: 1 / -1;
}

.gs-cards-grid__sys-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  align-self: start;
  gap: 4px;
  box-sizing: border-box;
  width: 104px;
  padding: 12px 8px;
  border-radius: 18px;
  background: #f8f6f1;
  text-align: center;
}

.gs-cards-grid__sys-box .gs-cards-grid__sys-svg {
  display: block;
  width: 84px;
  height: auto;
}

.gs-cards-grid__sys--c .gs-cards-grid__sys-title {
  font-size: 25px;
  line-height: 30px;
}

.gs-cards-grid__sys--c .gs-cards-grid__sys-text {
  font-size: 15.5px;
}

/* B: the icon beside the title, a thin line under it */
.gs-cards-grid__sys-head {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0 6px 14px;
  border-bottom: 1px solid #f1ede3;
}

.gs-cards-grid__sys-icon {
  flex: 0 0 auto;
}

.gs-cards-grid__sys-icon .gs-cards-grid__sys-svg {
  display: block;
  width: 58px;
  height: auto;
}

.gs-cards-grid__sys-head-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.gs-cards-grid__sys--b .gs-cards-grid__sys-body {
  flex: 1;
  padding: 0 6px 6px;
}

/* CB: the C cards are as wide as the B cards, so their type and icon box are a little smaller */
.gs-cards-grid__systems--cb .gs-cards-grid__sys--c .gs-cards-grid__sys-title {
  font-size: 21px;
  line-height: 26px;
}

.gs-cards-grid__systems--cb .gs-cards-grid__sys--c .gs-cards-grid__sys-text {
  font-size: 15px;
}

.gs-cards-grid__systems--cb .gs-cards-grid__sys-box {
  width: 92px;
}

.gs-cards-grid__systems--cb .gs-cards-grid__sys-box .gs-cards-grid__sys-svg {
  width: 72px;
}

@media (max-width: 1023px) {
  .gs-cards-grid__systems--b,
  .gs-cards-grid__systems--cb {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .gs-cards-grid__systems--cb .gs-cards-grid__sys,
  .gs-cards-grid__systems--cb .gs-cards-grid__sys--c:nth-child(1),
  .gs-cards-grid__systems--cb .gs-cards-grid__sys--c:nth-child(2) {
    grid-column: span 1;
  }
}

@media (max-width: 767px) {
  /* phones: one card per row; C keeps the icon box beside the text */
  .gs-cards-grid__systems--c,
  .gs-cards-grid__systems--b,
  .gs-cards-grid__systems--cb {
    grid-template-columns: minmax(0, 1fr);
  }

  .gs-cards-grid__sys-box,
  .gs-cards-grid__systems--cb .gs-cards-grid__sys-box {
    width: 88px;
  }

  .gs-cards-grid__sys-box .gs-cards-grid__sys-svg,
  .gs-cards-grid__systems--cb .gs-cards-grid__sys-box .gs-cards-grid__sys-svg {
    width: 68px;
  }

  .gs-cards-grid__sys--c .gs-cards-grid__sys-title {
    font-size: 21px;
    line-height: 26px;
  }
}
