.plot-group {
  display: flex;
  justify-content: center;
  gap: 1.5em;
  flex-wrap: wrap;
}

.plot {
  flex: 1 1 calc((100% - 1.5em) / 2);
  max-width: calc((100% - 1.5em) / 2);
  height: auto;
}

.plot.single {
  flex: 0 1 100%;
  max-width: 100%;
  display: block;
  margin: 0 auto;
}

.plot.single.plot-small {
  max-width: 70%;
}

.plot-group.equal-pair {
  flex-wrap: nowrap;
}

.image-caption {
  color: #666;
  text-align: left;
  padding: 0.25rem 0.5rem;
  line-height: 1.35;
}

p {
  text-align: justify;
  text-justify: inter-word;
  hyphens: auto;
}

.plot-figure {
  margin: 2em 0 1.6em;
}

.equation {
  text-align: center;
  margin: 1.1em 0 0.2em;
  overflow-x: auto;
}

.equation mjx-container[display="true"] {
  margin: 0 auto;
}

.equation-label {
  text-align: center;
  margin: 0 0 1.35em;
  color: #666;
  font-size: 0.92rem;
}

.rubric-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  align-items: start;
}

.rubric-card {
  border-radius: 14px;
  padding: 1rem 1.1rem;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.08);
  border: 1px solid rgba(17, 24, 39, 0.08);
}

.rubric-card h4 {
  margin: 0 0 0.65rem;
  font-size: 1.02rem;
}

.rubric-card-light {
  background: #f8faf7;
  color: #1f2937;
}

.rubric-card-dark {
  background: #f8fafc;
  color: #1f2937;
  border-color: rgba(15, 23, 42, 0.1);
}

.rubric-card-mint {
  background: #f2faf3;
  color: #1f2937;
  border-color: rgba(22, 101, 52, 0.18);
}

.rubric-section-title {
  margin: 0.45rem 0 0.45rem;
  font-size: 0.9rem;
  font-weight: 700;
}

.rubric-subsection-title {
  margin: 0.45rem 0 0.28rem;
  font-size: 0.86rem;
  font-weight: 600;
}

.rubric-list {
  margin: 0 0 0.6rem 1rem;
  padding: 0;
}

.rubric-list li {
  margin: 0.2rem 0;
}

.rubric-table-wrap {
  overflow-x: auto;
}

.rubric-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  font-size: 0.78rem;
  line-height: 1.35;
}

.rubric-table th,
.rubric-table td {
  text-align: left;
  vertical-align: top;
  padding: 0.42rem 0.5rem;
  border-bottom: 1px solid rgba(100, 116, 139, 0.25);
}

.rubric-table th {
  font-weight: 700;
}

.rubric-card-light .rubric-table th {
  background: rgba(15, 23, 42, 0.04);
}

.rubric-card-dark .rubric-table th {
  background: rgba(15, 23, 42, 0.04);
}

.rubric-card-mint .rubric-table th {
  background: rgba(22, 101, 52, 0.08);
}

.rubric-card-light .rubric-table th:first-child,
.rubric-card-light .rubric-table td:first-child {
  width: 38%;
}

.rubric-card-light .rubric-table th:nth-child(2),
.rubric-card-light .rubric-table td:nth-child(2) {
  width: 62%;
}

.rubric-card-dark .rubric-table th:first-child,
.rubric-card-dark .rubric-table td:first-child {
  width: 34%;
}

.rubric-card-dark .rubric-table th:nth-child(2),
.rubric-card-dark .rubric-table td:nth-child(2) {
  width: 66%;
}

.bias-table th:first-child,
.bias-table td:first-child {
  width: 42%;
}

.bias-table th:nth-child(2),
.bias-table td:nth-child(2) {
  width: 58%;
}

.cluster-figure {
  max-width: 730px;
  margin: 0 auto;
  border: 1px solid rgba(100, 116, 139, 0.28);
  border-radius: 12px;
  background: #fbfcff;
  box-shadow: 0 6px 14px rgba(15, 23, 42, 0.06);
  font-size: 0.85rem;
  line-height: 1.35;
}

.cluster-figure-header {
  padding: 0.56rem 0.78rem;
  border-bottom: 1px solid rgba(100, 116, 139, 0.25);
  font-weight: 700;
  color: #1f2937;
  background: rgba(59, 130, 246, 0.06);
}

.cluster-block {
  padding: 0.62rem 0.78rem 0.32rem;
}

.cluster-block + .cluster-block {
  border-top: 1px dashed rgba(100, 116, 139, 0.3);
}

.cluster-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: start;
}

.cluster-column-left {
  border-right: 1px dashed rgba(100, 116, 139, 0.3);
}

.cluster-column-right {
  display: flex;
  flex-direction: column;
}

.cluster-column-right .cluster-block {
  padding-left: 0.72rem;
}

.cluster-block h5 {
  margin: 0 0 0.3rem;
  font-size: 0.86rem;
}

.cluster-subhead {
  margin: 0.36rem 0 0.2rem;
  font-size: 0.76rem;
  font-weight: 700;
  color: #334155;
}

.cluster-lead {
  margin: 0 0 0.36rem;
  font-size: 0.74rem;
  color: #475569;
}

.cluster-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  font-size: 0.72rem;
  line-height: 1.32;
}

.cluster-table th,
.cluster-table td {
  text-align: left;
  vertical-align: top;
  padding: 0.33rem 0.38rem;
  border-bottom: 1px solid rgba(100, 116, 139, 0.24);
}

.cluster-table th {
  font-weight: 700;
  color: #1f2937;
  background: rgba(59, 130, 246, 0.05);
}

.cluster-table td code {
  font-size: 0.7rem;
}

.cluster-table-gates th:first-child,
.cluster-table-gates td:first-child {
  width: 32%;
}

.cluster-table-gates th:nth-child(2),
.cluster-table-gates td:nth-child(2) {
  width: 68%;
}

.cluster-table-tiered th:first-child,
.cluster-table-tiered td:first-child {
  width: 62%;
}

.cluster-table-tiered th:nth-child(2),
.cluster-table-tiered td:nth-child(2) {
  width: 38%;
}

.cluster-table-weights th:first-child,
.cluster-table-weights td:first-child {
  width: 38%;
}

.cluster-table-weights th:nth-child(2),
.cluster-table-weights td:nth-child(2) {
  width: 15%;
}

.cluster-table-weights th:nth-child(3),
.cluster-table-weights td:nth-child(3) {
  width: 47%;
}

.cluster-weight-rules {
  margin: 0.15rem 0 0.42rem 0.95rem;
  padding: 0;
  font-size: 0.74rem;
}

.cluster-weight-rules li {
  margin: 0.14rem 0;
}

.cluster-block-cluster3 {
  background: rgba(59, 130, 246, 0.04);
}

.cluster-block-cluster3 p {
  margin: 0.06rem 0 0.18rem;
  font-size: 0.75rem;
  color: #334155;
}


@media (max-width: 720px) {
  .plot-group.equal-pair {
    flex-wrap: wrap;
  }

  .rubric-grid {
    grid-template-columns: 1fr;
  }

  .rubric-card {
    padding: 0.9rem;
  }

  .rubric-table {
    font-size: 0.76rem;
  }

  .cluster-figure {
    font-size: 0.8rem;
  }

  .cluster-columns {
    grid-template-columns: 1fr;
  }

  .cluster-column-left {
    border-right: 0;
    border-bottom: 1px dashed rgba(100, 116, 139, 0.3);
  }

  .cluster-column-right .cluster-block {
    padding-left: 0.78rem;
  }

  .cluster-table {
    font-size: 0.7rem;
  }

  .cluster-table-gates th:first-child,
  .cluster-table-gates td:first-child,
  .cluster-table-tiered th:first-child,
  .cluster-table-tiered td:first-child,
  .cluster-table-weights th:first-child,
  .cluster-table-weights td:first-child {
    width: 44%;
  }

  .cluster-table-gates th:nth-child(2),
  .cluster-table-gates td:nth-child(2),
  .cluster-table-tiered th:nth-child(2),
  .cluster-table-tiered td:nth-child(2),
  .cluster-table-weights th:nth-child(2),
  .cluster-table-weights td:nth-child(2) {
    width: auto;
  }

  .cluster-table-weights th:nth-child(3),
  .cluster-table-weights td:nth-child(3) {
    width: auto;
  }

  .equation mjx-container[display="true"] {
    font-size: 0.85em !important;
  }
}
