/* Operations manual: the report screens' cards, with reading-sized text. */
.manual-note {
  max-width: 44rem;
  margin: 1.25rem 0 0;
  color: #45544c;
  line-height: 1.7;
}

.manual-section {
  scroll-margin-top: 1rem;
}

.manual-section h2 {
  margin: 0;
  font-size: 1.35rem;
}

.manual-section code {
  overflow-wrap: anywhere;
  font-size: 0.85em;
}

.manual-problem {
  color: #7a291d;
}

.manual-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
}

.manual-status {
  display: inline-flex;
  gap: 0.3rem;
  align-items: center;
  padding: 0.15rem 0.6rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 700;
  white-space: nowrap;
}

.manual-status--running,
.manual-status--settled {
  color: #0d593a;
  background: #dcf7e9;
}

.manual-status--manual,
.manual-status--candidate {
  color: #6b4a00;
  background: #fdecc4;
}

.manual-status--disconnected {
  color: #7a291d;
  background: #ffe4df;
}

.manual-status--retired {
  color: #68736d;
  background: #e9e7df;
}

.manual-unknown {
  color: #637068;
}

.manual-table {
  width: 100%;
  margin-top: 1rem;
  border-collapse: collapse;
  line-height: 1.6;
}

.manual-table th,
.manual-table td {
  padding: 0.7rem 0.6rem;
  border-bottom: 1px solid rgba(21, 37, 31, 0.1);
  text-align: left;
  vertical-align: top;
  overflow-wrap: anywhere;
}

.manual-table th {
  color: #5d6d64;
  font-size: 0.8rem;
  white-space: nowrap;
}

.manual-table small {
  display: block;
  margin-top: 0.2rem;
  color: #637068;
  font-size: 0.82rem;
}

.manual-table tr:target {
  background: rgba(255, 189, 89, 0.2);
}

.manual-counts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
  gap: 1rem;
  margin: 1rem 0;
}

.manual-counts div {
  padding: 1rem;
  border: 1px solid rgba(21, 37, 31, 0.1);
  border-radius: 0.8rem;
}

.manual-counts dt {
  color: #5d6d64;
  font-size: 0.85rem;
  font-weight: 700;
}

.manual-counts dd {
  margin: 0.3rem 0 0;
  font-size: 1.5rem;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
}

.manual-counts dd.hint {
  font-size: 0.85rem;
  font-weight: 400;
}

.manual-document {
  max-width: 46rem;
  margin-top: 1rem;
  line-height: 1.8;
  overflow-wrap: anywhere;
}

.manual-document h1,
.manual-document h2,
.manual-document h3,
.manual-document h4 {
  max-width: none;
  margin: 1.6rem 0 0.5rem;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.4;
}

.manual-document h1 { font-size: 1.5rem; }
.manual-document h2 { font-size: 1.25rem; }
.manual-document h3 { font-size: 1.1rem; }
.manual-document h4 { font-size: 1rem; }

.manual-document pre {
  padding: 0.8rem;
  overflow-x: auto;
  border: 1px solid rgba(21, 37, 31, 0.14);
  border-radius: 0.5rem;
  background: rgba(255, 255, 255, 0.6);
  font-size: 0.85rem;
  line-height: 1.6;
}

.manual-document table {
  display: block;
  max-width: 100%;
  overflow-x: auto;
  border-collapse: collapse;
}

.manual-document th,
.manual-document td {
  padding: 0.45rem 0.6rem;
  border: 1px solid rgba(21, 37, 31, 0.14);
  text-align: left;
  vertical-align: top;
}

.manual-document blockquote {
  margin: 1rem 0;
  padding-left: 1rem;
  border-left: 3px solid rgba(21, 37, 31, 0.2);
  color: #45544c;
}

@media (max-width: 42rem) {
  .manual-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
  }

  .manual-table,
  .manual-table tbody,
  .manual-table tr,
  .manual-table td {
    display: block;
  }

  .manual-table tr {
    padding: 0.8rem 0;
    border-bottom: 1px solid rgba(21, 37, 31, 0.14);
  }

  .manual-table td {
    padding: 0.25rem 0;
    border: 0;
  }

  .manual-table td::before {
    display: block;
    color: #5d6d64;
    font-size: 0.75rem;
    font-weight: 700;
    content: attr(data-label);
  }
}
