/* Preserve the lineage map on phones without clipping its second column. */
@media (max-width: 640px) {
  html, body { width: 100%; max-width: 100%; overflow-x: clip; }
  main, main * { box-sizing: border-box; min-width: 0; }
  .datasets-wrap { width: calc(100% - 28px); max-width: 100%; }
  .section-heading { width: 100%; max-width: 100%; }
  .section-heading h2 {
    max-width: 100%;
    font-size: clamp(37px, 11vw, 46px) !important;
    line-height: 1 !important;
    overflow-wrap: normal;
  }
  .dataset-system { padding-block: 84px 96px; }
  .dataset-system-map {
    width: 100%;
    max-width: 100%;
    min-height: 420px;
    grid-template-columns: minmax(0, 1fr) 72px minmax(0, 1fr);
    gap: 7px;
    align-items: center;
    padding: 28px 14px;
    overflow: hidden;
    position: relative;
  }
  .dataset-system-map::after {
    content: "";
    position: absolute;
    top: 82px;
    bottom: 48px;
    left: 50%;
    width: 1px;
    background: #b9c5bf;
    transform: translateX(-50%);
  }
  .system-column {
    width: 100%;
    height: 330px;
    grid-template-rows: 34px repeat(4, 1fr);
    gap: 0;
    position: relative;
    z-index: 2;
  }
  .system-sources { grid-column: 1; }
  .system-families { grid-column: 3; }
  .system-column small { align-self: center; }
  .system-column span { max-width: 100%; position: relative; font-size: clamp(15px, 4.4vw, 18px); line-height: 1.08; white-space: normal; }
  .system-sources span::after,
  .system-families span::before {
    content: "";
    position: absolute;
    top: 50%;
    width: 43px;
    height: 1px;
    background: #c5cfca;
  }
  .system-sources span::after { left: calc(100% + 5px); }
  .system-families span::before { right: calc(100% + 5px); }
  .system-families { padding-left: 0; text-align: right; }
  .dataset-system-map svg { display: none; }
  .system-hub {
    position: absolute;
    top: 51%;
    left: 50%;
    z-index: 3;
    width: 66px;
    height: 66px;
    display: grid;
    place-content: center;
    gap: 3px;
    border: 1px solid #aabbb2;
    border-radius: 50%;
    color: #fff;
    background: #183f30;
    box-shadow: 0 10px 28px rgba(24,63,48,.13);
    text-align: center;
    transform: translate(-50%, -50%);
  }
  .system-hub b { font-size: 14px; font-weight: 500; letter-spacing: .03em; }
  .system-hub small { color: #b9d0c5; font-size: 7px; letter-spacing: .08em; text-transform: uppercase; }
  .system-card-grid,
  .capability-grid,
  .resource-grid { grid-template-columns: minmax(0, 1fr); }
  .system-card-grid article,
  .capability-grid article { min-height: 300px; padding: 30px 24px; }
}
