:root {
  --versions-ink: #102a36;
  --versions-muted: #526d78;
  --versions-line: #c9d9df;
  --versions-blue: #168fc5;
  --versions-green: #2c9b74;
  --versions-amber: #c98527;
}

.versions-page {
  background: #f4f8fa;
}

.versions-hero {
  position: relative;
  display: grid;
  min-height: 650px;
  grid-template-columns: minmax(0, 1.04fr) minmax(420px, 0.96fr);
  align-items: center;
  gap: clamp(56px, 8vw, 128px);
  overflow: hidden;
  padding: 128px max(24px, calc((100vw - 1240px) / 2)) 88px;
  border-bottom: 1px solid rgba(90, 178, 219, 0.24);
  background-color: #03111d;
  color: #eaf7fc;
}

.versions-hero::before {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(70, 181, 232, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(70, 181, 232, 0.055) 1px, transparent 1px);
  background-size: 64px 64px;
  content: "";
  mask-image: linear-gradient(to bottom, #000 20%, transparent 92%);
}

.versions-hero-copy,
.versions-editions {
  position: relative;
  z-index: 1;
}

.versions-hero-copy h1 {
  max-width: 720px;
  margin: 18px 0 24px;
  color: #ffffff;
  font-size: clamp(3.6rem, 6.7vw, 6.8rem);
  font-weight: 760;
  letter-spacing: 0;
  line-height: 0.94;
}

.versions-hero-copy h1 span {
  display: block;
  margin-top: 10px;
  color: #54c5f4;
  font-size: 0.52em;
  line-height: 1.06;
}

.versions-hero-copy > p:last-of-type {
  max-width: 680px;
  margin: 0;
  color: #a9c0cb;
  font-size: 1.06rem;
  line-height: 1.65;
}

.versions-anchor {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  margin-top: 32px;
  padding: 10px 16px;
  border: 1px solid rgba(87, 198, 247, 0.66);
  border-radius: 4px;
  color: #f5fbff;
  font-size: 0.84rem;
  font-weight: 760;
  text-decoration: none;
}

.versions-anchor:hover,
.versions-anchor:focus-visible {
  border-color: #79d5ff;
  background: rgba(35, 143, 193, 0.2);
  outline: none;
}

.versions-editions {
  border-top: 1px solid rgba(99, 192, 237, 0.34);
  border-bottom: 1px solid rgba(99, 192, 237, 0.34);
}

.versions-edition {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  align-items: center;
  gap: 18px;
  min-height: 116px;
  padding: 20px 12px;
  border-bottom: 1px solid rgba(99, 192, 237, 0.18);
}

.versions-edition > span {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(83, 195, 244, 0.56);
  border-radius: 50%;
  color: #62cdf9;
  font-size: 0.72rem;
  font-weight: 760;
}

.versions-edition strong,
.versions-edition small {
  display: block;
}

.versions-edition strong {
  color: #ffffff;
  font-size: 1.6rem;
  letter-spacing: 0;
}

.versions-edition small {
  margin-top: 5px;
  color: #9fb8c4;
  font-size: 0.84rem;
  line-height: 1.45;
}

.versions-edition.is-enterprise > span {
  border-color: rgba(91, 210, 163, 0.7);
  color: #70d6ad;
}

.versions-edition.is-enterprise strong {
  color: #70d6ad;
}

.versions-editions > p {
  margin: 0;
  padding: 18px 12px;
  color: #91aebc;
  font-size: 0.76rem;
  line-height: 1.5;
}

.versions-compare {
  padding: 92px max(24px, calc((100vw - 1320px) / 2)) 100px;
  background: #f4f8fa;
  color: var(--versions-ink);
}

.versions-compare-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 56px;
  margin-bottom: 30px;
}

.versions-compare-head h2 {
  max-width: 830px;
  margin: 14px 0 16px;
  color: var(--versions-ink);
  font-size: clamp(2.6rem, 5vw, 5rem);
  font-weight: 760;
  letter-spacing: 0;
  line-height: 0.98;
}

.versions-compare-head > div:first-child > p:last-child {
  max-width: 760px;
  margin: 0;
  color: var(--versions-muted);
  font-size: 0.98rem;
  line-height: 1.6;
}

.versions-view-switch {
  display: inline-grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 3px;
  padding: 3px;
  border: 1px solid #86afbf;
  border-radius: 6px;
  background: #e5eef2;
  box-shadow: 0 0 0 1px rgba(22, 143, 197, 0.08);
}

.versions-view-switch button {
  min-width: 148px;
  min-height: 42px;
  padding: 8px 14px;
  border: 1px solid transparent;
  border-radius: 4px;
  background: transparent;
  color: #476571;
  cursor: pointer;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 760;
}

.versions-view-switch button:hover,
.versions-view-switch button:focus-visible {
  color: #0e647f;
  outline: none;
}

.versions-view-switch button.is-current {
  border-color: #168fc5;
  background: #ffffff;
  color: #0d7199;
}

.versions-legend {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 24px;
  margin-bottom: 14px;
  color: #58727d;
  font-size: 0.74rem;
}

.versions-legend span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.versions-legend em,
.versions-badge {
  display: inline-flex;
  min-height: 19px;
  align-items: center;
  padding: 2px 6px;
  border: 1px solid #d8aa62;
  border-radius: 3px;
  background: #fff7e8;
  color: #9b6010;
  font-size: 0.58rem;
  font-style: normal;
  font-weight: 760;
  text-transform: uppercase;
}

.versions-table-tools {
  display: flex;
  align-items: center;
  gap: 18px;
  margin: 0 0 14px;
}

.versions-search-field {
  position: relative;
  width: min(520px, 100%);
}

.versions-search-field input {
  width: 100%;
  min-height: 44px;
  padding: 9px 42px;
  border: 1px solid #b9cfd8;
  border-radius: 4px;
  background: #ffffff;
  color: var(--versions-ink);
  font: inherit;
  font-size: 0.86rem;
  outline: none;
  transition: border-color 150ms ease, box-shadow 150ms ease;
}

.versions-search-field input::placeholder {
  color: #718892;
}

.versions-search-field input:hover {
  border-color: #8fb5c5;
}

.versions-search-field input:focus {
  border-color: var(--versions-blue);
  box-shadow: 0 0 0 3px rgba(22, 143, 197, 0.13);
}

.versions-search-icon {
  position: absolute;
  z-index: 1;
  top: 50%;
  left: 17px;
  width: 13px;
  height: 13px;
  border: 2px solid #4b7d91;
  border-radius: 50%;
  pointer-events: none;
  transform: translateY(-58%);
}

.versions-search-icon::after {
  position: absolute;
  right: -5px;
  bottom: -3px;
  width: 6px;
  height: 2px;
  background: #4b7d91;
  content: "";
  transform: rotate(45deg);
  transform-origin: left center;
}

.versions-results {
  margin-left: auto;
  color: #617b86;
  font-size: 0.74rem;
  font-weight: 720;
  white-space: nowrap;
}

.versions-table-shell {
  overflow: visible;
  border: 1px solid var(--versions-line);
  border-radius: 6px;
  background: #ffffff;
  box-shadow: 0 18px 46px rgba(17, 56, 73, 0.08);
}

.versions-table-shell:focus-visible {
  border-color: var(--versions-blue);
  box-shadow: 0 0 0 3px rgba(22, 143, 197, 0.13);
  outline: none;
}

.versions-table-shell table {
  width: 100%;
  min-width: 860px;
  border-collapse: collapse;
  table-layout: fixed;
}

.versions-table-shell th,
.versions-table-shell td {
  padding: 15px 17px;
  border-bottom: 1px solid #dbe6ea;
  vertical-align: middle;
  text-align: left;
}

.versions-table-shell thead th {
  position: sticky;
  z-index: 12;
  top: 78px;
  background: #eaf2f5;
  color: #3b5c69;
  font-size: 0.7rem;
  font-weight: 760;
  box-shadow: 0 1px 0 #c4d5dc;
  text-transform: uppercase;
}

.versions-table-shell thead th:nth-child(1) { width: 25%; }
.versions-table-shell thead th:nth-child(2) { width: 51%; }
.versions-table-shell thead th:nth-child(3),
.versions-table-shell thead th:nth-child(4) { width: 12%; text-align: center; }

.versions-table-shell thead th:first-child {
  z-index: 14;
}

.versions-table-shell tbody tr:not(.versions-group-row) > th:first-child {
  background: #ffffff;
}

.versions-table-shell thead th.is-enterprise {
  background: #dff1e9;
  color: #1c7556;
}

.versions-table-shell .versions-group-row th {
  padding: 12px 17px;
  border-bottom-color: rgba(82, 183, 229, 0.26);
  background: #082333;
  color: #75d1fa;
  font-size: 0.74rem;
  font-weight: 760;
  text-transform: uppercase;
}

.versions-item-name {
  color: #123341;
  font-size: 0.9rem;
  font-weight: 760;
  line-height: 1.35;
}

.versions-item-name a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: inherit;
  text-decoration: none;
}

.versions-brand-icon {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  object-fit: contain;
}

.versions-item-name a:hover,
.versions-item-name a:focus-visible {
  color: #087ca8;
  outline: none;
}

.versions-item-name .versions-badge {
  margin-left: 8px;
  vertical-align: 1px;
}

.versions-description {
  color: #58727d;
  font-size: 0.82rem;
  line-height: 1.5;
}

.versions-empty-row td {
  height: 210px;
  padding: 38px 24px;
  color: #607883;
  text-align: center;
}

.versions-empty-row strong,
.versions-empty-row span {
  display: block;
}

.versions-empty-row strong {
  color: #153b4a;
  font-size: 1rem;
}

.versions-empty-row span {
  margin-top: 7px;
  font-size: 0.8rem;
}

.versions-status-cell {
  text-align: center !important;
}

.versions-status-cell.is-enterprise {
  background: rgba(53, 161, 119, 0.045);
}

.versions-icon {
  display: inline-grid;
  width: 26px;
  height: 26px;
  place-items: center;
  border-radius: 50%;
  font-size: 0.83rem;
  font-style: normal;
  font-weight: 800;
}

.versions-icon.is-included {
  border: 1px solid #85cdb0;
  background: #e9f7f0;
  color: #247a59;
}

.versions-icon.is-excluded {
  border: 1px solid #cad6db;
  background: #f3f6f7;
  color: #879ba4;
}

.versions-note {
  max-width: 920px;
  margin: 18px 0 0;
  color: #647c86;
  font-size: 0.74rem;
  line-height: 1.55;
}

.versions-cta {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 48px;
  padding: 80px max(24px, calc((100vw - 1240px) / 2));
  border-top: 1px solid rgba(92, 179, 220, 0.22);
  background: #061925;
  color: #eaf7fc;
}

.versions-cta h2 {
  margin: 14px 0 12px;
  color: #ffffff;
  font-size: clamp(2.7rem, 5vw, 5rem);
  font-weight: 760;
  letter-spacing: 0;
  line-height: 0.98;
}

.versions-cta p:last-child {
  max-width: 680px;
  margin: 0;
  color: #9db5c0;
  line-height: 1.6;
}

.versions-cta > a {
  display: inline-flex;
  min-width: 180px;
  min-height: 48px;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  padding: 10px 16px;
  border: 1px solid #4db9e8;
  border-radius: 4px;
  background: #1488bc;
  color: #ffffff;
  font-size: 0.84rem;
  font-weight: 760;
  text-decoration: none;
}

.versions-cta > a:hover,
.versions-cta > a:focus-visible {
  border-color: #78d4fc;
  background: #1b9ace;
  outline: none;
}

.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
}

@media (max-width: 1000px) {
  .versions-hero {
    min-height: 0;
    grid-template-columns: minmax(0, 1fr);
    gap: 58px;
  }

  .versions-editions {
    width: min(720px, 100%);
  }

  .versions-compare-head {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }

  .versions-view-switch {
    justify-self: start;
  }
}

@media (max-width: 900px) {
  .versions-table-shell table,
  .versions-table-shell thead,
  .versions-table-shell tbody {
    display: block;
    width: 100%;
    min-width: 0;
  }

  .versions-table-shell thead {
    position: sticky;
    z-index: 14;
    top: 78px;
    background: #eaf2f5;
    box-shadow: 0 2px 8px rgba(17, 56, 73, 0.14);
  }

  .versions-table-shell thead tr,
  .versions-table-shell tbody tr:not(.versions-group-row) {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 76px 88px;
  }

  .versions-table-shell thead th {
    position: static;
    width: auto !important;
    min-width: 0;
    box-shadow: none;
  }

  .versions-table-shell thead th:nth-child(2) {
    display: none;
  }

  .versions-table-shell .versions-group-row,
  .versions-table-shell .versions-group-row th {
    display: block;
    width: 100%;
  }

  .versions-table-shell tbody tr:not(.versions-group-row) {
    grid-template-rows: auto auto;
    border-bottom: 1px solid #dbe6ea;
  }

  .versions-table-shell tbody tr:not(.versions-group-row) > * {
    border-bottom: 0;
  }

  .versions-item-name {
    grid-column: 1;
    grid-row: 1;
    padding-bottom: 4px !important;
  }

  .versions-description {
    grid-column: 1;
    grid-row: 2;
    padding-top: 0 !important;
  }

  .versions-status-cell {
    display: grid;
    grid-row: 1 / 3;
    place-items: center;
  }

  .versions-status-cell:not(.is-enterprise) {
    grid-column: 2;
  }

  .versions-status-cell.is-enterprise {
    grid-column: 3;
  }

  .versions-empty-row,
  .versions-empty-row td {
    display: block;
    width: 100%;
  }
}

@media (max-width: 680px) {
  .versions-hero {
    gap: 46px;
    padding: 116px 18px 64px;
  }

  .versions-hero-copy h1 {
    font-size: clamp(3.1rem, 15vw, 4.5rem);
  }

  .versions-compare {
    padding: 70px 18px 78px;
  }

  .versions-compare-head h2 {
    font-size: clamp(2.7rem, 13vw, 4rem);
  }

  .versions-view-switch {
    width: 100%;
  }

  .versions-view-switch button {
    min-width: 0;
    padding-inline: 8px;
  }

  .versions-table-tools {
    align-items: stretch;
    flex-direction: column;
    gap: 8px;
  }

  .versions-results {
    margin-left: 0;
  }

  .versions-table-shell th,
  .versions-table-shell td {
    padding-right: 13px;
    padding-left: 13px;
  }

  .versions-table-shell thead {
    top: 68px;
  }

  .versions-table-shell thead tr,
  .versions-table-shell tbody tr:not(.versions-group-row) {
    grid-template-columns: minmax(0, 1fr) 64px 72px;
  }

  .versions-cta {
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
    gap: 30px;
    padding: 66px 18px;
  }

  .versions-cta > a {
    width: 100%;
  }
}
