.post-body {
  margin-top: 1.75rem;
}

.post-body h2 {
  margin-top: 2.4rem;
}

.post-body h2 > a.heading-footnote-small#ref-5,
.post-body h2 > a.heading-footnote#ref-5 {
  display: inline-block;
  margin-left: 0.1rem;
  color: #777;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif !important;
  font-size: 0.68rem !important;
  font-style: normal !important;
  font-weight: 400 !important;
  line-height: 1 !important;
  opacity: 0.58;
  position: relative;
  text-decoration: none;
  top: -0.82em;
}

.post-body h3 {
  margin-top: 1.8rem;
}

.post-body p,
.post-body li {
  text-wrap: pretty;
}

.diagram-figure {
  margin: 2.1rem 0 2.4rem;
}

.diagram-svg {
  display: block;
  width: 90%;
  height: auto;
  margin: 0 auto;
}

.sandbox-figure {
  margin: 1.8rem 0 2rem;
}

.sandbox-figure img {
  display: block;
  width: 90%;
  height: auto;
  margin: 0 auto;
}

.image-caption {
  max-width: 760px;
  margin: 0.8rem auto 0;
  text-align: center;
  font-size: 0.88rem;
  color: #555;
  line-height: 1.35;
}

.metrics-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 1.7rem 0 1.9rem;
}

.auto-review-metrics {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
  border-spacing: 0;
  font-size: 0.92rem;
  line-height: 1.38;
}

.auto-review-metrics th,
.auto-review-metrics td {
  padding: 0.74rem 0;
  vertical-align: top;
  border-bottom: 1px solid #d9d9d9;
}

.auto-review-metrics tr:first-child td {
  border-top: 1px solid #1f1f1f;
}

.auto-review-metrics th:first-child,
.auto-review-metrics td:first-child {
  width: 96px;
  padding-right: 1rem;
}

.auto-review-metrics th:nth-child(2),
.auto-review-metrics td:nth-child(2) {
  width: auto;
  padding-right: 1.15rem;
}

.auto-review-metrics th:last-child,
.auto-review-metrics td:last-child {
  width: 90px;
  text-align: right;
}

.metric-pill {
  display: inline-block;
  padding-top: 0.08rem;
  border-top: 2px solid currentColor;
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.35;
}

.metric-pill-usability {
  color: #286456;
}

.metric-pill-safety {
  color: #8a5138;
}

.metric-value {
  color: #111827;
  font-size: 1rem;
  font-weight: 700;
  white-space: nowrap;
}

.metric-description {
  display: block;
  margin-top: 0.22rem;
  color: #404040;
  font-weight: 400;
}

.note {
  padding: 0.9rem 1rem;
  border-left: 4px solid rgba(17, 24, 39, 0.22);
  background: #f8fafc;
}

.note p {
  margin: 0;
}

.footnote-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footnote-list li {
  display: flex;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.footnote-marker {
  min-width: 2.5em;
  margin-right: 1em;
  text-align: right;
  flex-shrink: 0;
}

.footnote-content {
  flex: 1;
}

@media (max-width: 680px) {
  .metrics-table-wrap {
    overflow: visible;
  }

  .auto-review-metrics {
    min-width: 0;
    border-collapse: separate;
    border-spacing: 0 0.85rem;
  }

  .auto-review-metrics tbody,
  .auto-review-metrics tr,
  .auto-review-metrics td {
    display: block;
    width: 100%;
  }

  .auto-review-metrics tr {
    padding: 0.85rem 0;
    border-top: 1px solid #d9d9d9;
  }

  .auto-review-metrics tr:first-child {
    border-top: 1px solid #1f1f1f;
  }

  .auto-review-metrics td {
    box-sizing: border-box;
    padding: 0.22rem 0;
    border-bottom: 0;
    text-align: left;
  }

  .auto-review-metrics td::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 0.08rem;
    color: #777;
    font-size: 0.74rem;
    font-weight: 600;
    letter-spacing: 0;
  }

  .auto-review-metrics th:last-child,
  .auto-review-metrics td:last-child {
    width: 100%;
    text-align: left;
  }

  .metric-value {
    font-size: 1.15rem;
  }
}
