/* ==========================================================================
   PCIe switch family pages (pcie4-switch-family.html / pcie5-switch-family.html)
   Light layout shared by the PCIe 4.0 and PCIe 5.0 product pages: red banner
   and product overview band, rounded key features card, a text/figure split
   row and a two column applications grid.
   Artwork is supplied separately and lives at:
     ../image/products/p3-banner.jpg            (PCIe 4.0 banner, also on mobile)
     ../image/products/p3-block-diagram.png
     ../image/products/p3-port-configuration.png
     ../image/products/p4-banner.jpg            (PCIe 5.0 banner, also on mobile)
     ../image/products/p4-block-diagram.png
     ../image/products/p4-example-application.jpg
   ========================================================================== */

body.pcie-page {
  background: #fff;
}

.pcie-container {
  width: min(1000px, calc(100% - 48px));
  margin-inline: auto;
}

/* ---------- banner ---------- */
.pcie-hero {
  display: flex;
  align-items: center;
  min-height: 420px;
  background: linear-gradient(100deg, #7b0c15 0%, #70000e 48%, #0d0e12 100%);
}
.pcie-hero--pcie4 {
  background:
    url("../image/products/p3-banner.jpg") center / cover no-repeat,
    linear-gradient(100deg, #7b0c15 0%, #70000e 48%, #0d0e12 100%);
}
.pcie-hero--pcie5 {
  background:
    url("../image/products/p4-banner.jpg") center / cover no-repeat,
    linear-gradient(100deg, #8c0a13 0%, #5d0009 52%, #140a0c 100%);
}
.pcie-hero__title {
  margin: 0;
  color: #fff;
  font-size: 40px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.01em;
}

/* ---------- product overview ---------- */
.pcie-overview {
  padding: 56px 0 344px;
  background: #70000e;
  color: #fff;
}
.pcie-overview--compact {
  padding: 56px 0;
}
.pcie-overview__grid {
  display: grid;
  grid-template-columns: 1fr;
}
.pcie-overview__body p {
  margin: 0;
  font-size: 16px;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.92);
}
.pcie-overview__body p + p {
  margin-top: 1.15em;
}

/* ---------- key features ---------- */
.pcie-features {
  position: relative;
  z-index: 1;
  margin-top: -276px;
}
.pcie-features--compact {
  margin-top: -36px;
}
.pcie-features__card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 440px;
  column-gap: 56px;
  align-items: start;
  padding: 56px 48px 56px 64px;
  border-radius: 36px;
  background: #eee;
}
.pcie-features__card--stacked {
  grid-template-columns: 1fr;
  row-gap: 40px;
  padding: 56px 64px;
}
.pcie-features__title {
  margin: 0 0 24px;
  color: #a70811;
  font-size: 34px;
  font-weight: 700;
  line-height: 1.3;
}
.pcie-features__list {
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.85;
  color: #3d3d3d;
}
.pcie-features__list--cols {
  columns: 2;
  column-gap: 56px;
}
.pcie-features__list li {
  position: relative;
  padding-left: 16px;
  break-inside: avoid;
}
.pcie-features__list li::before {
  content: "";
  position: absolute;
  left: 1px;
  top: 0.82em;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #3d3d3d;
}
.pcie-features__list b {
  color: #000;
  font-weight: 500;
}

/* ---------- figure cards ---------- */
.pcie-figure {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 240px;
  margin: 0;
  padding: 20px 20px 18px;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
  text-align: center;
}
.pcie-figure img {
  display: block;
  width: 100%;
  height: auto;
  background: #fafafa;
}
.pcie-figure figcaption {
  margin-top: 12px;
  color: #1a1a1a;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.4;
}
.pcie-features__card:not(.pcie-features__card--stacked) .pcie-figure {
  margin-top: 68px;
}
.pcie-features__card--stacked .pcie-figure {
  width: min(100%, 770px);
  margin-inline: auto;
}

/* ---------- text / figure rows ---------- */
.pcie-split {
  display: grid;
  grid-template-columns: 1fr 440px;
  column-gap: 80px;
  align-items: start;
}
.pcie-split--wide {
  grid-template-columns: 1fr 500px;
}
.pcie-section-title {
  margin: 0 0 20px;
  color: #a70811;
  font-size: 34px;
  font-weight: 700;
  line-height: 1.3;
}
.pcie-text {
  margin: 0;
  max-width: 430px;
  font-size: 16px;
  line-height: 1.75;
  color: #3d3d3d;
}
.pcie-port {
  padding: 122px 0 60px;
}
.pcie-example {
  padding: 92px 0 122px;
}

/* ---------- applications ---------- */
.pcie-apps {
  padding: 56px 0 88px;
  background: #eee;
  scroll-margin-top: 108px;
}
.pcie-apps__title {
  margin: 0 0 32px;
  color: #111;
  font-size: 30px;
  font-weight: 700;
  line-height: 1.3;
}
.pcie-apps__grid {
  display: grid;
}
.pcie-app {
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.pcie-app__body {
  display: flex;
  flex-direction: column;
  padding: 36px 40px;
  background: #fff;
}
.pcie-app__body h3 {
  margin: 0 0 16px;
  color: #a70811;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.35;
}
.pcie-app__body p {
  margin: 0;
  font-size: 15px;
  line-height: 1.7;
  color: #3d3d3d;
}
.pcie-app__img {
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: 2 / 1;
  object-fit: cover;
}
.pcie-app:nth-child(even) .pcie-app__body {
  order: 2;
}

@media (max-width: 991px) {
  .pcie-hero {
    min-height: 260px;
  }
  .pcie-hero--pcie4 {
    background:
      url("../image/products/p3-banner.jpg") center / cover no-repeat,
      linear-gradient(120deg, #7b0c15 0%, #70000e 55%, #0d0e12 100%);
  }
  .pcie-hero--pcie5 {
    background:
      url("../image/products/p4-banner.jpg") center / cover no-repeat,
      linear-gradient(120deg, #8c0a13 0%, #5d0009 58%, #140a0c 100%);
  }
  .pcie-hero__title {
    font-size: 26px;
  }
  .pcie-overview,
  .pcie-overview--compact {
    padding: 48px 0;
  }
  .pcie-overview__body p {
    font-size: 15px;
    line-height: 1.75;
  }
  .pcie-features,
  .pcie-features--compact {
    margin-top: 40px;
  }
  .pcie-features__card,
  .pcie-features__card--stacked {
    grid-template-columns: 1fr;
    row-gap: 32px;
    padding: 40px 28px;
    border-radius: 24px;
  }
  .pcie-features__card:not(.pcie-features__card--stacked) .pcie-figure {
    margin-top: 0;
  }
  .pcie-features__list--cols {
    columns: 1;
  }
  .pcie-features__title,
  .pcie-section-title {
    font-size: 28px;
  }
  .pcie-port,
  .pcie-example {
    padding: 64px 0 48px;
  }
  .pcie-split,
  .pcie-split--wide {
    grid-template-columns: 1fr;
    row-gap: 32px;
  }
  .pcie-apps {
    padding: 48px 0 64px;
  }
  .pcie-apps__title {
    font-size: 26px;
    margin-bottom: 24px;
  }
  .pcie-app {
    grid-template-columns: 1fr;
  }
  .pcie-app:nth-child(even) .pcie-app__body {
    order: 0;
  }
  .pcie-app__body {
    padding: 28px 24px;
  }
}
