/* ==========================================================================
   Application scenes / installation detail / installation requirements
   Block for the root /products/ catalogue pages (556 SKU + 8 series pages).
   Colours ride the tokens those pages already resolve to:
   --c accent, --bg page, --tx text, --bd border.
   Class prefix "appx-" is unique: the legacy .effect-section rules stay in
   the page but can no longer reach this markup.
   ========================================================================== */

.appx {
  margin-top: 8px;
  border-top: 1px solid var(--bd);
}
.appx-sec {
  padding: 52px 0;
  border-bottom: 1px solid var(--bd);
}
.appx-sec:last-child { border-bottom: 0; }

/* ---- shared headings -------------------------------------------------- */
.appx-eyebrow {
  font-family: 'JetBrains Mono', ui-monospace, Menlo, monospace;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--c);
  font-weight: 500;
  margin-bottom: 10px;
}
.appx-h2 {
  font-family: Fraunces, Georgia, serif;
  font-size: 26px;
  line-height: 1.25;
  font-weight: 600;
  color: var(--tx);
  margin: 0 0 12px;
  letter-spacing: -0.01em;
}
.appx-lead {
  font-size: 15px;
  line-height: 1.65;
  color: #5f6368;
  max-width: 760px;
  margin: 0;
}

/* ---- A. application scenes -------------------------------------------- */
.appx-group { margin-top: 34px; }
.appx-group:first-of-type { margin-top: 28px; }

.appx-grouphead {
  display: flex;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
  padding-bottom: 10px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--bd);
}
.appx-groupno {
  font-family: 'JetBrains Mono', ui-monospace, Menlo, monospace;
  font-size: 11px;
  color: var(--c);
  font-weight: 500;
  letter-spacing: 0.08em;
}
.appx-grouptitle {
  font-family: Fraunces, Georgia, serif;
  font-size: 18px;
  font-weight: 600;
  color: var(--tx);
  margin: 0;
}
.appx-groupdesc {
  font-size: 13px;
  color: #5f6368;
  margin-left: auto;
}

.appx-hero {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 14px;
  align-items: stretch;
}
.appx-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px;
  margin-top: 14px;
}
/* 1-2 remaining frames: cap the track so a lone image is not blown up to
   full page width and left with a dead gap beside it */
.appx-strip--few {
  grid-template-columns: repeat(auto-fit, minmax(200px, 330px));
  justify-content: start;
}
.appx-cell {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 6px;
  background: #f1f3f4;
  border: 1px solid var(--bd);
  aspect-ratio: 4 / 3;
}
.appx-cell--hero { aspect-ratio: 16 / 9; }
.appx-cell--tall { aspect-ratio: auto; height: 100%; }
.appx-cell img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .5s ease;
}
.appx-cell:hover img { transform: scale(1.05); }
.appx-cap {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 26px 12px 9px;
  background: linear-gradient(to top, rgba(0, 0, 0, .62), rgba(0, 0, 0, 0));
  color: #fff;
  font-family: 'JetBrains Mono', ui-monospace, Menlo, monospace;
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* ---- B. installation detail ------------------------------------------- */
.appx-dwrap {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 28px;
  align-items: start;
}
.appx-dshots { display: flex; flex-direction: column; gap: 14px; }
.appx-dshot {
  border: 1px solid var(--bd);
  border-radius: 6px;
  overflow: hidden;
  background: #fff;
}
.appx-dshot .ph {
  aspect-ratio: 16 / 10;
  background: #f1f3f4;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.appx-dshot .ph img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 14px;
}
.appx-dshot figcaption {
  padding: 9px 14px;
  border-top: 1px solid var(--bd);
  font-family: 'JetBrains Mono', ui-monospace, Menlo, monospace;
  font-size: 10px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: #5f6368;
  display: flex;
  gap: 10px;
  align-items: center;
}
.appx-dshot figcaption b {
  color: var(--c);
  font-weight: 500;
  flex-shrink: 0;
}
.appx-dshot figcaption span { color: var(--tx); }

.appx-dlist {
  background: #fff;
  border: 1px solid var(--bd);
  border-radius: 6px;
  padding: 6px 22px;
}
.appx-ditem {
  padding: 18px 0;
  border-bottom: 1px solid var(--bd);
}
.appx-ditem:last-child { border-bottom: 0; }
.appx-ditem .n {
  font-family: 'JetBrains Mono', ui-monospace, Menlo, monospace;
  font-size: 11px;
  color: var(--c);
  font-weight: 500;
  letter-spacing: 0.1em;
  display: block;
  margin-bottom: 6px;
}
.appx-ditem .t {
  font-family: Fraunces, Georgia, serif;
  font-size: 16px;
  font-weight: 600;
  color: var(--tx);
  display: block;
  margin-bottom: 6px;
}
.appx-ditem .d {
  font-size: 13.5px;
  line-height: 1.6;
  color: #5f6368;
  margin: 0;
}

/* ---- C. installation requirements ------------------------------------- */
.appx-reqwrap {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  background: #fff;
  border: 1px solid var(--bd);
  border-radius: 6px;
  overflow: hidden;
}
.appx-req {
  padding: 20px 18px;
  border-left: 1px solid var(--bd);
}
.appx-req:first-child { border-left: 0; }
.appx-req .n {
  font-family: 'JetBrains Mono', ui-monospace, Menlo, monospace;
  font-size: 11px;
  color: var(--c);
  font-weight: 500;
  letter-spacing: 0.1em;
  display: block;
  margin-bottom: 8px;
}
.appx-req .t {
  font-family: Fraunces, Georgia, serif;
  font-size: 15px;
  font-weight: 600;
  color: var(--tx);
  display: block;
  margin-bottom: 7px;
}
.appx-req .d {
  font-size: 12.5px;
  line-height: 1.6;
  color: #5f6368;
  margin: 0;
}
.appx-note {
  font-size: 12.5px;
  line-height: 1.6;
  color: #80868b;
  margin: 14px 0 0;
  max-width: 860px;
}

/* ---- responsive ------------------------------------------------------- */
@media (max-width: 1000px) {
  .appx-hero { grid-template-columns: 1fr; }
  .appx-cell--tall { aspect-ratio: 4 / 3; height: auto; }
  .appx-dwrap { grid-template-columns: 1fr; }
  .appx-reqwrap { grid-template-columns: repeat(2, 1fr); }
  .appx-req { border-left: 0; border-top: 1px solid var(--bd); }
  .appx-req:nth-child(-n+2) { border-top: 0; }
  .appx-req:nth-child(even) { border-left: 1px solid var(--bd); }
}
@media (max-width: 640px) {
  .appx-sec { padding: 38px 0; }
  .appx-h2 { font-size: 22px; }
  .appx-strip { grid-template-columns: repeat(2, 1fr); }
  .appx-strip--few { grid-template-columns: repeat(2, 1fr); }
  .appx-reqwrap { grid-template-columns: 1fr; }
  .appx-req { border-left: 0 !important; border-top: 1px solid var(--bd) !important; }
  .appx-req:first-child { border-top: 0 !important; }
  .appx-groupdesc { margin-left: 0; flex-basis: 100%; }
}
