/* Home product catalogue: hierarchy, evidence and responsive product navigation. */
.products {
  padding-bottom: 104px;
}

.product-explorer,
.product-family {
  width: var(--page);
  margin-inline: auto;
}

.product-explorer {
  position: sticky;
  z-index: 80;
  top: 58px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid var(--line);
  background: rgba(239, 239, 235, .97);
}

.product-explorer a {
  position: relative;
  min-width: 0;
  min-height: 86px;
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  grid-template-rows: auto auto;
  align-content: center;
  gap: 5px 10px;
  padding: 14px 16px;
  border-right: 1px solid var(--line);
  color: var(--ink);
  text-decoration: none;
}

.product-explorer a:last-child {
  border-right: 0;
}

.product-explorer a::before {
  content: "";
  position: absolute;
  inset: -1px -1px auto;
  height: 3px;
  background: transparent;
}

.product-explorer a.is-active {
  background: var(--ink);
  color: var(--white);
}

.product-explorer a.is-active::before {
  background: var(--blue-light);
}

.product-jump-index {
  grid-row: 1 / 3;
  align-self: start;
  color: var(--gray-500);
  font-size: 10px;
}

.product-explorer a.is-active .product-jump-index {
  color: var(--blue-light);
}

.product-explorer strong {
  overflow: hidden;
  font-size: 12px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.product-explorer small {
  color: var(--gray-500);
  font-size: 9px;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.product-explorer a.is-active small {
  color: rgba(255, 255, 255, .58);
}

.product-jump-short {
  display: none;
}

.product-family {
  min-height: 66px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 52px;
  border-top: 1px solid var(--ink);
  color: var(--gray-700);
  font-size: 10px;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.product-family strong {
  color: var(--gray-500);
  font-size: 9px;
  font-weight: 500;
}

.products .product-row {
  position: relative;
  min-height: 560px;
  margin-bottom: 18px;
  overflow: clip;
  border: 1px solid var(--line);
  border-top: 3px solid var(--ink);
  background: #f8f8f5;
}

.products .product-radar,
.products .product-control {
  border-top-color: var(--blue);
}

.products .product-order {
  padding: 26px 16px;
  background: rgba(8, 9, 10, .025);
}

.products .product-description {
  min-width: 0;
  justify-content: center;
  padding: 38px 42px;
}

.products .product-state {
  margin-bottom: 34px;
}

.products .product-description h3 {
  text-wrap: balance;
}

.products .product-description > p:not(.product-state) {
  line-height: 1.55;
}

.products .product-description > a {
  width: min(100%, 360px);
  min-height: 50px;
  margin-top: 30px;
}

.products .product-evidence,
.products .product-instrument {
  margin: 28px 28px 28px 14px;
}

.product-evidence-link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.evidence-open {
  position: absolute;
  right: 12px;
  bottom: 12px;
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  padding: 0 11px;
  border: 1px solid rgba(255, 255, 255, .3);
  background: rgba(8, 9, 10, .9);
  color: var(--white);
  font-size: 10px;
  font-weight: 700;
}

.evidence-open-light {
  border-color: rgba(8, 9, 10, .18);
  background: rgba(255, 255, 255, .94);
  color: var(--ink);
}

.product-evidence-link:hover .evidence-open,
.product-evidence-link:focus-visible .evidence-open {
  border-color: var(--blue-light);
}

.product-evidence-link:focus-visible,
.product-explorer a:focus-visible {
  outline: 3px solid var(--blue-light);
  outline-offset: -3px;
}

.products .product-row-compact {
  min-height: 430px;
}

.products .product-row-compact .product-description {
  min-height: 0;
  padding-block: 34px;
}

.products .product-row-compact .product-instrument {
  min-height: 286px;
  margin-block: 28px;
}

.products .product-capabilities {
  margin-top: 38px;
  background: rgba(255, 255, 255, .35);
}

.product-row,
.product-family {
  scroll-margin-top: 158px;
}

@media (max-width: 900px) {
  .products {
    padding: 72px 0 78px;
  }

  .products-head {
    width: calc(100% - 28px);
  }

  .product-explorer {
    top: 58px;
    width: 100%;
    border-right: 0;
    border-left: 0;
  }

  .product-explorer a {
    min-height: 58px;
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
    justify-items: center;
    gap: 4px;
    padding: 8px 4px;
    text-align: center;
  }

  .product-jump-index {
    grid-row: auto;
    align-self: auto;
    font-size: 9px;
  }

  .product-explorer strong,
  .product-explorer small {
    display: none;
  }

  .product-jump-short {
    display: block;
    max-width: 100%;
    overflow: hidden;
    font-size: 10px;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .product-family {
    width: calc(100% - 24px);
    min-height: 58px;
    margin-top: 42px;
  }

  .products .product-row {
    width: calc(100% - 24px);
    min-height: 0;
    grid-template-columns: minmax(0, 1fr);
    margin-bottom: 14px;
    padding: 0;
  }

  .products .product-order {
    grid-row: auto;
    min-height: 50px;
    flex-direction: row;
    align-items: center;
    padding: 12px 14px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .products .product-order strong {
    display: block;
    max-width: none;
    color: var(--gray-700);
    font-size: 9px;
    text-align: right;
  }

  .products .product-description,
  .products .product-row-compact .product-description {
    min-height: 0;
    padding: 30px 18px 32px;
  }

  .products .product-state {
    max-width: 100%;
    margin: 0 0 30px;
    font-size: 10px;
    line-height: 1.45;
  }

  .products .product-description h3,
  .products .product-row-compact .product-description h3 {
    font-size: clamp(46px, 14vw, 62px);
    line-height: .92;
  }

  .products .product-description > p:not(.product-state),
  .products .product-row-compact .product-description > p:not(.product-state) {
    max-width: none;
    margin-top: 22px;
    font-size: 15px;
    line-height: 1.55;
  }

  .products .product-description > a,
  .products .product-row-compact .product-description > a {
    width: 100%;
    min-height: 52px;
    margin-top: 28px;
    gap: 18px;
  }

  .products .product-evidence,
  .products .product-instrument,
  .products .product-row-compact .product-instrument {
    grid-column: 1;
    min-height: 0;
    margin: 0;
    border-right: 0;
    border-bottom: 0;
    border-left: 0;
  }

  .products .evidence-frame {
    aspect-ratio: 16 / 10;
    border-right: 0;
    border-left: 0;
  }

  .products .evidence-badge {
    top: 8px;
    right: auto;
    left: 8px;
    max-width: calc(100% - 108px);
    min-height: 28px;
    padding-inline: 8px;
    font-size: 8px;
    text-align: left;
  }

  .products .evidence-open {
    right: 8px;
    bottom: 8px;
    min-height: 30px;
    padding-inline: 8px;
    font-size: 9px;
  }

  .products .evidence-flow {
    min-height: 82px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0;
    padding: 0;
    border-right: 0;
    border-bottom: 0;
    border-left: 0;
  }

  .products .evidence-flow span {
    min-width: 0;
    height: 100%;
    display: grid;
    grid-template-columns: 1fr;
    align-content: center;
    gap: 5px;
    padding: 10px 8px;
    border-right: 1px solid rgba(255, 255, 255, .14);
    font-size: 9px;
    line-height: 1.25;
    white-space: normal;
  }

  .products .evidence-flow-control span {
    border-color: var(--line);
  }

  .products .evidence-flow span:last-child {
    border-right: 0;
  }

  .products .evidence-flow b {
    display: none;
  }

  .products .instrument-head {
    min-height: 66px;
    display: grid;
    align-content: center;
    justify-content: stretch;
    gap: 5px;
    padding: 10px 14px;
  }

  .products .instrument-head strong {
    font-size: 10px;
    line-height: 1.35;
  }

  .products .command-map {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1px;
    padding: 10px;
    background: rgba(255, 255, 255, .08);
  }

  .products .command-map span,
  .products .product-row-compact .command-map span {
    width: auto;
    height: 78px;
    grid-template-columns: 1fr;
    justify-items: start;
    align-content: center;
    gap: 7px;
    padding: 10px;
    background: #121518;
  }

  .products .command-map b {
    display: none;
  }

  .products .command-instrument > p,
  .products .product-row-compact .command-instrument > p {
    padding: 11px 14px;
    font-size: 8px;
    line-height: 1.4;
    text-align: left;
  }

  .products .hecho-sequence,
  .products .product-row-compact .hecho-sequence {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1px;
    padding: 10px;
  }

  .products .hecho-sequence span,
  .products .product-row-compact .hecho-sequence span {
    min-height: 88px;
    padding: 12px;
  }

  .products .hecho-sequence span::after {
    display: none;
  }

  .products .product-capabilities {
    width: calc(100% - 24px);
    margin-top: 38px;
    padding: 24px 0;
  }

  .product-row,
  .product-family {
    scroll-margin-top: 128px;
  }
}

@media (max-width: 430px) {
  .products-head h2 {
    font-size: clamp(44px, 12.6vw, 54px);
  }

  .product-family span {
    font-size: 9px;
  }

  .products .product-description h3,
  .products .product-row-compact .product-description h3 {
    font-size: clamp(44px, 13vw, 56px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .product-explorer a,
  .product-evidence-link .evidence-open {
    transition: none;
  }
}
