/* Shared product photography and a compact configuration selection flow. */
.catalog-photo--product{background:#fff;border-bottom:1px solid #e5ece8;isolation:isolate}
.catalog-photo--product .catalog-photo__subject{padding:18px 20px 38px;box-sizing:border-box;mix-blend-mode:normal;filter:none}
.catalog-photo--product .catalog-photo__watermark{right:18px;bottom:12px;width:21%;max-width:125px;opacity:.75;mix-blend-mode:normal}
.catalog-detail-top .catalog-photo--product{border:1px solid #dce7df;border-radius:12px}
.catalog-detail-top .catalog-photo--product .catalog-photo__subject{padding:24px 24px 48px}
.product-figure{margin:0;min-width:0}
.product-image-link{display:block;position:relative;color:#173e30;text-decoration:none;border-radius:12px}
.product-image-link:focus-visible{outline:3px solid #00744a;outline-offset:5px}
.product-image-link__hint{position:absolute;top:12px;right:12px;border:1px solid #d5e0d8;border-radius:20px;background:rgba(255,255,255,.95);padding:5px 10px;font-size:12px;font-weight:500;line-height:1.4}
.catalog-configuration-link{display:inline-flex;gap:12px;align-items:center;font-size:13px;text-decoration:none;border-bottom:1px solid #b8cebf;color:#00744a;padding:3px 0}
.catalog-baseline{border-top:1px solid #d4e1d8;margin-top:28px;padding-top:18px}
.catalog-baseline>summary{font-weight:600;cursor:pointer;padding:12px 0;color:#173e30}
.catalog-baseline[open]>summary{margin-bottom:12px}
.v3-configurations.catalog-detail-section{border:0;padding:0;margin:24px 0}
.v3-config-picker{display:grid;gap:8px;margin:24px 0;max-width:680px;font-size:14px;font-weight:600}
.v3-config-picker select{min-height:48px;width:100%;max-width:100%;padding:10px 36px 10px 12px;border:1px solid #a3baab;border-radius:4px;background:#fff;color:#173e30;font:inherit;text-overflow:ellipsis}
.v3-config-picker select:focus-visible{outline:3px solid #00744a;outline-offset:3px}
.v3-config{border-radius:8px;scroll-margin-top:115px}
.v3-config[open]{border-color:#6a987f}
.v3-config>summary{position:relative;padding-right:48px;list-style:none;min-height:64px}
.v3-config>summary::-webkit-details-marker{display:none}
.v3-config>summary:after{content:'+';position:absolute;right:20px;top:18px;font-size:23px;font-weight:400;color:#00744a;line-height:1}
.v3-config[open]>summary:after{content:'−'}
.v3-config>summary>span{font-size:14px;color:#52685c;font-weight:400}
.v3-config>summary:focus-visible,.v3-record-list>summary:focus-visible,.catalog-baseline>summary:focus-visible{outline:3px solid #00744a;outline-offset:3px}
.v3-image-config{display:inline-block;padding:7px 12px;background:#f0f6f2;color:#245d41;font-size:13px;border-radius:3px}
.v3-record-list{margin:20px 0 24px;border-top:1px solid #dce7df;padding-top:8px}
.v3-record-list>summary{padding:12px 0;font-size:14px;font-weight:600;cursor:pointer;color:#176b56}
.v3-product{padding:0;border:1px solid #cbd9d0;border-radius:8px;overflow:hidden;display:flex;flex-direction:column;transition:border-color .18s,box-shadow .18s}
.v3-product .catalog-photo{width:100%;flex:none}
.v3-product-copy{display:flex;flex-direction:column;flex:1;padding:22px}
.v3-product-copy h3{line-height:1.5;margin:0 0 12px}
.v3-product-copy p{margin:0 0 20px;color:#52685c;font-size:14px}
.v3-product-copy>span{margin-top:auto;font-size:14px}
.v3-product:hover{background:#fff;box-shadow:0 7px 24px rgba(23,62,48,.07)}
.product-image-dialog{padding:52px 16px 16px;border:0;border-radius:12px;background:#fff;width:min(1000px,94vw);max-width:94vw;max-height:90vh;overflow:auto}
.product-image-dialog::backdrop{background:rgba(13,34,24,.8)}
.product-image-dialog .catalog-photo{max-height:72vh;border:0;aspect-ratio:auto;height:72vh}
.product-image-dialog .catalog-photo__subject{padding:12px 12px 40px;width:100%;height:100%;object-fit:contain}
.product-image-dialog__close{position:absolute;right:16px;top:12px;border:1px solid #cbd9d0;background:#fff;border-radius:4px;color:#173e30;font:600 14px/1.5 var(--font-primary);padding:6px 12px;cursor:pointer}
.product-image-dialog__close:focus-visible{outline:3px solid #00744a;outline-offset:3px}
@media(max-width:600px){.v3-product{padding:0}.v3-product-copy{padding:20px}.v3-config>summary{display:flex}.v3-config>summary strong{font-size:15px}.v3-config>summary>span{flex-basis:100%}.v3-config-picker{margin:20px 0}.catalog-detail-top .catalog-photo--product .catalog-photo__subject{padding:18px 18px 42px}.product-image-link__hint{font-size:11px;top:9px;right:9px}.product-image-dialog{padding:48px 8px 8px}.product-image-dialog .catalog-photo{height:60vh}}
@media(prefers-reduced-motion:reduce){.v3-product{transition:none}}

.catalog-detail:has(.v3-configurations) .catalog-fast-specs--baseline{display:none}
.v3-records{width:100%;min-width:900px;table-layout:fixed}
.v3-records th,.v3-records td{width:auto;vertical-align:top;font-size:14px;line-height:1.6;overflow-wrap:anywhere}
.v3-records th:nth-child(1){width:24%}
.v3-records th:nth-child(2){width:17%}
.v3-records th:nth-child(3){width:17%}
.v3-records th:nth-child(4){width:20%}
.v3-records th:nth-child(5){width:22%}

/* The catalogue and homepage share the same 3:2 photo and watermark layout. */
#main .catalog-photo--product,
#main .catalog-photo--identity,
.product-image-dialog .catalog-photo--product {
  background: #f2f5f3;
}
#main .catalog-photo--product .catalog-photo__subject,
.product-image-dialog .catalog-photo--product .catalog-photo__subject {
  width: 100%;
  height: 100%;
  padding: 0;
  object-fit: contain;
  mix-blend-mode: normal;
}
#main .catalog-photo--product .catalog-photo__watermark,
.product-image-dialog .catalog-photo--product .catalog-photo__watermark {
  right: 5%;
  bottom: 6%;
  width: 17%;
  max-width: 84px;
}
.page-products #main > .hero.hero--compact {
  background: #f2f5f3 url('/assets/images/products/catalog-covers-v2/gn-vd-ms368.webp') right 6% center / auto 125% no-repeat;
}
@media(max-width:767px) {
  .page-products #main > .hero.hero--compact { background-image: none; }
}

/* Match card widths across both directory grids and the series pages. */
#main :is(.catalog-index .catalog-series-grid, .catalog-product-grid, .v3-product-grid) {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: 1fr;
  gap: clamp(14px, 1.5vw, 22px);
}
#main :is(.catalog-index .catalog-series-card, .catalog-product-card, .v3-product) {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
#main :is(.catalog-index .catalog-series-card__copy, .catalog-product-card > span:not(.catalog-photo), .v3-product-copy) {
  flex: 1;
  min-width: 0;
  min-block-size: 235px;
  padding: clamp(16px, 1.5vw, 22px);
  overflow-wrap: anywhere;
}
#main :is(.catalog-index .catalog-series-card, .catalog-product-card, .v3-product) > .catalog-photo {
  width: 100%;
  flex: none;
  aspect-ratio: 3 / 2;
}
@media (max-width: 1023px) {
  #main :is(.catalog-index .catalog-series-grid, .catalog-product-grid, .v3-product-grid) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 600px) {
  #main :is(.catalog-index .catalog-series-grid, .catalog-product-grid, .v3-product-grid) {
    grid-template-columns: minmax(0, 1fr);
    grid-auto-rows: auto;
  }
  #main :is(.catalog-index .catalog-series-card__copy, .catalog-product-card > span:not(.catalog-photo), .v3-product-copy) {
    min-block-size: auto;
  }
}
