.math-figure-body {
  max-width: 53rem;
  margin: .5rem auto 1rem;
}
.math-plate-note {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin: .3rem 0 .85rem;
  color: #005650;
  font-weight: 720;
}
.math-plate-note img { width: 3.8rem; height: auto; flex: none; }
.math-table {
  width: 100%;
  border-collapse: collapse;
  font-variant-numeric: tabular-nums;
  text-align: center;
}
.math-table :is(th, td) { padding: .5rem .28rem; border-block-end: 1px solid #c0b397; }
.math-table thead th { background: #fff0b8; }
.math-table tbody th { text-align: start; }
.math-table tfoot { background: #e7f1df; }
.math-cohort-table { margin-top: .65rem; }
.math-cohort-table tbody th { text-align: center; }
.math-cell-amber { background: #fff0b8; }
.math-cell-mint { background: #d6eddf; }
.math-sample-strip {
  display: flex;
  border: 2px solid #24231e;
  border-radius: .3rem;
  overflow: hidden;
  margin-block: .15rem;
}
.math-sample-strip span { flex: var(--share); padding: .28rem .25rem; text-align: center; white-space: nowrap; }
.math-sample-strip span + span { border-inline-start: 2px solid #24231e; }
.math-cohort-row { display: grid; grid-template-columns: 4.5rem minmax(0, 1fr); align-items: center; gap: .5rem; }
.math-ranks {
  display: grid;
  align-items: center;
  grid-template-columns: minmax(0, 1fr) 5.5rem minmax(0, 1fr);
  gap: .7rem;
}
.math-ranks ol { list-style: none; padding: 0; margin: 0; }
.math-ranks li {
  display: grid;
  grid-template-columns: 3em 1fr auto;
  gap: .4rem;
  align-items: center;
  border-block-end: 1px solid #c0b397;
  padding: .48rem .7rem;
}
.math-ranks li:first-child:not(.math-before) { background: #fff0b8; }
.math-ranks .math-before { grid-template-columns: 1fr auto; }
.math-ranks small { display: block; text-align: center; }
.math-direction { display: grid; justify-items: center; gap: .25rem; color: #005650; font-weight: 740; }
.math-direction [data-diagram-arrow="right"]::before { width: 2.6rem; height: 1.1rem; background-color: #005650; }
.math-table-title { margin: 0 0 .35rem; color: #005650; font-size: 1rem; font-weight: 760; }
.math-result-line { margin-block: .65rem 0; text-align: center; }
.math-plot {
  display: block;
  width: 100%;
  height: auto;
  background: #fffcf2;
  border: 1px solid #c8bda4;
  border-radius: .55rem;
}
.math-plot text { fill: #24231e; font-family: inherit; font-size: 18px; }
.math-plot .math-graph-key { fill: #005650; font-weight: 760; }
.math-plot .math-graph-alert { fill: #902d46; font-weight: 760; }
.math-axis, .math-guide, .math-curve, .math-tangent, .math-shift {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.math-axis { stroke: #24231e; stroke-width: 2.5; }
.math-guide { stroke: #92856c; stroke-width: 1.5; stroke-dasharray: 5 5; }
.math-curve { stroke: #005650; stroke-width: 4; }
.math-tangent { stroke: #902d46; stroke-width: 3; }
.math-shift { stroke: #005650; stroke-width: 3; }
.math-dot { fill: #ffe06b; stroke: #24231e; stroke-width: 2.5; }
.math-open { fill: #fffcf2; stroke: #902d46; stroke-width: 2.5; }
.math-fill { fill: #bde7d0; }
.math-product {
  display: grid;
  grid-template-columns: minmax(0, 2fr) auto minmax(0, 1fr) auto minmax(0, 1.4fr);
  align-items: center;
  gap: .7rem;
}
.math-product .math-table th { text-align: center; }
.math-product .math-operator { font-size: 1.4rem; font-weight: 760; }
.math-product .math-table-title { text-align: center; }
.math-product-line { margin-top: .8rem; display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; text-align: center; }
.math-product-line span { padding: .32rem; border-block-end: 2px solid #ae9c79; }
.math-graph-pair { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; }
.math-graph-pair h4 { margin: 0 0 .4rem; color: #005650; }
@media (max-width: 710px) {
  .math-graph-pair, .math-product-line { grid-template-columns: 1fr; }
  .math-product { gap: .45rem; font-size: .88rem; }
  .math-product :is(th, td) { overflow-wrap: anywhere; }
  .math-ranks { grid-template-columns: 1fr; }
}
