#systems .systems-body {
  align-items: start;
}
#systems .system-figure {
  position: sticky;
  top: 26px;
  height: clamp(380px, 34vw, 660px);
  min-height: 0;
}
.system-preview-link {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  isolation: isolate;
}
.system-preview-link:focus-visible {
  outline-offset: -5px;
}
.system-preview-link::after {
  position: absolute;
  inset: 40% 0 0;
  content: "";
  background: linear-gradient(transparent, rgba(13, 22, 21, 0.57));
  pointer-events: none;
}
.preview-caption {
  position: absolute;
  inset: auto 22px 18px;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #fff;
  font-size: clamp(20px, 1.9vw, 36px);
  letter-spacing: -0.035em;
}
.preview-caption > :last-child {
  font:
    20px/1 Arial,
    sans-serif;
}
.family-list,
.family-panel ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.family-list {
  --row-height: clamp(55px, 4.85vw, 94px);
  border-top: 1px solid var(--line);
}
.family-item {
  position: relative;
  border-bottom: 1px solid var(--line);
}
.family-link {
  display: flex;
  align-items: center;
  gap: clamp(12px, 1.6vw, 32px);
  width: calc(100% - 90px);
  min-height: var(--row-height);
  padding-block: 9px;
}
.family-name {
  font-size: clamp(21px, 2.04vw, 38px);
  line-height: 1.08;
  letter-spacing: -0.042em;
}
.family-count,
.family-panel small {
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-variant-numeric: tabular-nums;
  font-size: 11px;
  color: #4e5953;
}
.family-item summary {
  position: absolute;
  top: 0;
  right: 0;
  height: var(--row-height);
  min-width: 85px;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  align-items: center;
  list-style: none;
  cursor: pointer;
}
.family-item summary::-webkit-details-marker {
  display: none;
}
.family-plus {
  display: grid;
  width: 24px;
  height: 24px;
  place-content: center;
  position: relative;
  border: 1px solid var(--line);
  border-radius: 50%;
  transition:
    color 0.2s,
    background 0.2s,
    border-color 0.2s;
}
.family-plus::before,
.family-plus::after {
  content: "";
  grid-area: 1/1;
  width: 9px;
  height: 1px;
  background: currentColor;
}
.family-plus::after {
  transform: rotate(90deg);
  transition: transform 0.25s;
}
.family-item summary:hover .family-plus,
.family-item details[open] .family-plus {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}
.family-item details[open] .family-plus::after {
  transform: rotate(0);
}
.family-panel {
  padding-left: 16px;
}
.family-panel ul {
  margin-bottom: 16px;
  border-top: 1px solid #cdd0c8;
}
.family-panel a {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 40px;
  padding: 7px 2px;
  border-bottom: 1px solid #d3d4cb;
  font-size: 14px;
  line-height: 1.22;
  letter-spacing: -0.016em;
}
.family-panel a:focus-visible {
  outline-offset: -3px;
}
.family-panel li a > span {
  text-decoration: underline;
  text-underline-offset: 0.24em;
  text-decoration-color: var(--line);
  transition: text-decoration-color var(--feedback-time) ease;
}
.family-panel li a:is(:hover, :focus-visible) > span {
  text-decoration-color: currentColor;
}
.family-panel a {
  transition: background-color var(--feedback-time) ease;
}
.family-panel a:hover {
  background: #e5e6df;
}
.family-panel small {
  margin-left: auto;
  font-size: 12px;
  letter-spacing: 0.025em;
  white-space: nowrap;
}
.family-touch-label,
.family-panel .family-overview {
  display: none;
}
@media (max-width: 740px), (hover: none) and (pointer: coarse) {
  #systems .systems-body {
    grid-template-columns: 1fr;
  }
  #systems .system-figure,
  .family-link {
    display: none;
  }
  .family-item summary {
    position: relative;
    width: 100%;
    height: auto;
    min-height: 64px;
    -webkit-tap-highlight-color: rgb(24 39 32 / 10%);
    padding-block: 12px;
    gap: 9px;
  }
  .family-touch-label {
    flex: 1;
    display: flex;
    align-items: center;
    gap: clamp(9px, 3vw, 22px);
  }
  .family-count {
    white-space: nowrap;
  }
  .family-plus {
    flex: none;
  }
  .family-panel {
    padding-left: 0;
  }
  .family-panel .family-overview {
    position: relative;
    isolation: isolate;
    display: flex;
    align-items: flex-end;
    width: 100%;
    aspect-ratio: 2.3;
    max-height: 250px;
    padding: 13px 15px;
    margin-bottom: 8px;
    overflow: hidden;
    background: var(--ink);
    color: white;
    border: 0;
  }
  .family-mobile-image {
    position: absolute;
    inset: 0;
    z-index: -2;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  .family-overview::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(transparent 22%, rgb(13 22 21 / 84%));
  }
  .family-overview-caption {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    font-size: 17px;
    line-height: 1.2;
  }
  .family-panel li a {
    min-height: 48px;
  }
  .family-name {
    font-size: clamp(20px, 5.4vw, 27px);
  }
}
