.api-resource-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 28px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.api-resource-links a {
  min-width: 0;
  padding: 20px 22px;
  color: var(--ink);
  text-decoration: none;
}

.api-resource-links a + a {
  border-left: 1px solid var(--line);
}

.api-resource-links strong,
.api-resource-links span {
  display: block;
}

.api-resource-links strong {
  font-size: 16px;
}

.api-resource-links span {
  margin-top: 5px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.api-resource-links a:hover strong,
.api-resource-links a:focus-visible strong {
  color: var(--cyan);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.api-dataset-downloads {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.api-landscape-facts {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.api-landscape-table {
  min-width: 960px;
}

.api-landscape-table caption {
  padding: 0 0 16px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.5;
  text-align: left;
}

.api-landscape-table tbody th {
  width: 14%;
}

.api-landscape-table th small,
.api-landscape-table td strong,
.api-landscape-table td span {
  display: block;
}

.api-landscape-table th small {
  margin-top: 7px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.4;
}

.api-landscape-table td strong,
.api-landscape-table td span {
  font-size: 13px;
  line-height: 1.5;
}

.api-landscape-table td strong {
  color: var(--ink);
  font-weight: 700;
}

.api-landscape-table td span {
  margin-top: 9px;
}

.api-source-list {
  margin: 22px 0 30px;
  border-top: 2px solid var(--night);
  border-bottom: 1px solid var(--line);
}

.api-source-record + .api-source-record {
  border-top: 1px solid var(--line);
}

.api-source-record summary {
  display: flex;
  min-height: 56px;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  cursor: pointer;
  color: var(--ink);
  font-weight: 800;
}

.api-source-record summary small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.api-source-record p,
.api-source-record ul {
  max-width: 760px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.api-source-record ul {
  margin: 0;
  padding: 0 0 22px 20px;
}

.api-source-record li + li {
  margin-top: 7px;
}

.api-example-tabs {
  margin: 28px 0;
  overflow: hidden;
  border: 1px solid #2f3040;
  border-radius: 8px;
  background: #171726;
}

.api-example-tablist {
  display: flex;
  min-height: 48px;
  border-bottom: 1px solid #38394a;
  background: #202031;
}

.api-example-tablist button {
  min-width: 128px;
  min-height: 48px;
  padding: 0 20px;
  border: 0;
  border-right: 1px solid #38394a;
  border-radius: 0;
  background: transparent;
  color: #aeb2c4;
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.api-example-tablist button[aria-selected="true"] {
  background: #171726;
  color: #fff;
  box-shadow: inset 0 3px 0 var(--cyan);
}

.api-example-tablist button:focus-visible {
  position: relative;
  z-index: 1;
  outline: 2px solid #fff;
  outline-offset: -4px;
}

.api-example-tabs [role="tabpanel"][hidden] {
  display: none;
}

.api-example-tabs .api-code {
  margin: 0;
  border: 0;
  border-radius: 0;
}

@media (max-width: 760px) {
  .api-resource-links {
    grid-template-columns: 1fr;
  }

  .api-landscape-facts {
    grid-template-columns: 1fr;
  }

  .api-resource-links a {
    padding: 17px 0;
  }

  .api-resource-links a + a {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .api-example-tablist button {
    min-width: 0;
    flex: 1 1 50%;
    padding: 0 12px;
  }

  .api-example-tabs .api-code {
    margin-right: 0;
  }

  .api-landscape-table {
    min-width: 0;
  }

  .api-landscape-table caption {
    display: block;
    width: 100%;
  }

  .api-landscape-table tbody th {
    width: 100%;
  }

  .api-landscape-table td strong,
  .api-landscape-table td span {
    font-size: 14px;
  }

  .api-source-record summary {
    min-height: 62px;
  }
}
