* {
  box-sizing: border-box;
}

body {
  font-family: "Open Sans", sans-serif;
  margin: clamp(1rem, 4vw, 2rem);
  line-height: 1.5;
  word-break: keep-all;
}

h1,
h2,
h3 {
  line-height: 1.25;
}

img,
svg {
  max-width: 100%;
  height: auto;
}

.data-table {
  width: 100%;
  margin-bottom: 2em;
  overflow: hidden;
  border: 1px solid #ccc;
  border-radius: 5px;
}

.data-title {
  padding: 10px 14px;
  border-bottom: 1px solid #ccc;
  background-color: #f4f4f4;
  font-weight: 700;
}

.data-row {
  display: grid;
  grid-template-columns: minmax(12rem, 24%) minmax(0, 1fr);
}

.data-label,
.data-value {
  min-width: 0;
  padding: 10px 14px;
  border-bottom: 1px solid #ccc;
  overflow-wrap: anywhere;
  vertical-align: top;
}

.data-label {
  border-right: 1px solid #ccc;
  font-weight: 600;
}

.data-row:last-child > .data-label,
.data-row:last-child > .data-value {
  border-bottom: 0;
}

.vocabulary-heading,
.vocabulary-table .data-row {
  grid-template-columns: minmax(0, 1.3fr) minmax(5rem, 0.5fr) minmax(0, 2fr);
}

.vocabulary-heading {
  background-color: #f4f4f4;
  font-weight: 700;
}

.vocabulary-heading > div,
.vocabulary-table .data-row > div {
  min-width: 0;
  padding: 10px 14px;
  border-right: 1px solid #ccc;
  border-bottom: 1px solid #ccc;
  overflow-wrap: anywhere;
}

.vocabulary-heading > div:last-child,
.vocabulary-table .data-row > div:last-child {
  border-right: 0;
}

.vocabulary-table .data-row:last-child > div {
  border-bottom: 0;
}

.index {
  margin-bottom: 1.2em;
  margin-right: 0.4em;
}

.index-section {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6em;
}

.entity {
  background-color: #d6ffea;
  border: 1px solid #00a651;
  border-radius: 0px;
  color: #000000;
  padding: 0.6em;
  text-decoration: none;
  font-size: 90%;
  border-radius: 4px;
}

.metadata {
  background-color: #cfeeff;
  border: 1px solid #007dc3;
  border-radius: 0px;
  color: #000000;
  padding: 0.6em;
  text-decoration: none;
  font-size: 90%;
  border-radius: 4px;
}

.term {
    background-color: #ffffff;
  border: 0px none;
  border-radius: 0px;
  color: #000000;
  font-family: 'Courier New', Courier, monospace;
  padding: 0.6em;
  margin-left: 0.4em;
  text-decoration: none;
  font-size: 90%;
  border-radius: 4px;
  font-weight: 100;
}

.externalTerm {
  background-color: #f4f4f4;
  border: 1px solid #b4b4b4;
  border-radius: 0px;
  color: #000000;
  padding: 0.6em;
  text-decoration: none;
  font-size: 90%;
  border-radius: 4px;
}

code {
  overflow-wrap: anywhere;
}

.entity a {
    text-decoration: none;
    color: #000000;
}

.externalTerm a {
    text-decoration: none;
      color: #000000;
}

.entityHead {
  background-color: #d6ffea;
}

.metadataHead {
  background-color: #cfeeff;
}

@media (max-width: 768px) {
  body {
    margin: 1.25rem;
  }

  .data-row {
    grid-template-columns: minmax(10rem, 32%) minmax(0, 1fr);
  }

  .data-label,
  .data-value,
  .vocabulary-heading > div,
  .vocabulary-table .data-row > div {
    padding: 9px 10px;
  }
}

@media (max-width: 600px) {
  body {
    margin: 0.85rem;
    font-size: 0.95rem;
  }

  h1 {
    font-size: 1.65rem;
  }

  h2 {
    font-size: 1.35rem;
  }

  .data-table {
    border-radius: 6px;
  }

  .data-title {
    padding: 10px;
  }

  .data-row,
  .vocabulary-table .data-row {
    display: block;
    border-bottom: 1px solid #ccc;
  }

  .data-row:last-child,
  .vocabulary-table .data-row:last-child {
    border-bottom: 0;
  }

  .data-label,
  .data-value {
    padding: 8px 10px;
    border-right: 0;
  }

  .data-label {
    padding-bottom: 2px;
    border-bottom: 0;
    background-color: #f4f4f4;
  }

  .data-value {
    padding-top: 2px;
  }

  .vocabulary-heading {
    display: none;
  }

  .vocabulary-table .data-row > div {
    padding: 6px 10px;
    border-right: 0;
    border-bottom: 0;
  }

  .vocabulary-table .data-row > div::before {
    display: block;
    color: #555;
    content: attr(data-label);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
  }

  .index {
    margin-bottom: 0.5rem;
    margin-right: 0;
  }

  .entity,
  .metadata,
  .externalTerm {
    display: inline-block;
    max-width: 100%;
    overflow-wrap: anywhere;
  }

  .term {
    padding: 0.2em;
    margin-left: 0;
    overflow-wrap: anywhere;
  }
}