/* Item view */

.item-content {
  text-align: left;
  font-family: Roboto Mono, monospace;
  padding: 30px;
}

.item-content h3 {
  background: none;
  text-align: left;
}

.item-content pre {
  white-space: pre-wrap;
  white-space: -moz-pre-wrap;
  white-space: -pre-wrap;
  white-space: -o-pre-wrap;
  word-wrap: break-word;
  word-break: break-word;
}

.item-meta-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1.5em;
}

.item-meta-table th,
.item-meta-table td {
  padding: 0.6em 1em;
  text-align: left;
  border: 1px solid var(--valhalla-gold);
  line-height: 1.4;
}

.item-meta-table th {
  font-weight: bold;
  color: var(--valhalla-gold-light);
  font-size: 0.9em;
}

.item-meta-table td {
  color: var(--valhalla-gold);
}

.item-meta-table tr:nth-child(even) {
  background-color: rgba(35, 0, 0, 0.3);
}

@media (max-width: 600px) {
  .item-meta-table,
  .item-meta-table tbody,
  .item-meta-table tr {
    display: block;
  }

  .item-meta-table tr {
    border-bottom: 1px solid var(--valhalla-gold);
    padding: 0.5em 0;
  }

  .item-meta-table tr:last-child {
    border-bottom: none;
  }

  .item-meta-table th,
  .item-meta-table td {
    display: block;
    border: none;
    padding: 0.2em 0 0.2em 0;
  }

  .item-meta-table th {
    font-size: 0.85em;
    padding-bottom: 0;
  }

  .item-meta-table td {
    padding-top: 0.1em;
    padding-bottom: 0.5em;
    border-bottom: 1px dashed rgba(255, 191, 0, 0.3);
  }

  .item-meta-table td:last-child {
    border-bottom: none;
  }

  .item-meta-table tr:nth-child(even) {
    background-color: transparent;
  }

  .item-meta-table tr:nth-child(odd) {
    background-color: rgba(35, 0, 0, 0.2);
  }

  .item-row--description .item-description {
    max-width: 100%;
  }
}

.item-row--description {
  display: flex;
  flex-direction: column;
  margin-bottom: 1em;
}

.item-description-heading {
  font-size: 1.1em;
  font-weight: bold;
  margin: 0 0 0.5em 0;
  padding-bottom: 0.35em;
  border-bottom: 1px dashed var(--valhalla-gold);
}

.item-row--description .item-description {
  margin: 0;
  line-height: 1.6;
  max-width: 65ch;
}

.item-blueprint {
  margin-top: 1.5em;
}

.item-blueprint summary {
  cursor: pointer;
  font-size: 1.05em;
  font-weight: bold;
  padding: 0.5em 0;
}

.item-blueprint-fields {
  margin: 0.5em 0 0 0;
  padding: 0;
}

.item-blueprint-fields dt {
  font-weight: bold;
  color: var(--valhalla-gold-light);
  font-size: 0.9em;
  margin-top: 0.6em;
}

.item-blueprint-fields dt:first-of-type {
  margin-top: 0;
}

.item-blueprint-fields dd {
  margin: 0.25em 0 0 0;
  padding: 0;
  color: var(--valhalla-gold);
}
