.article figure {
  max-width: 850px;
  margin: 26px 0;
  padding: 16px;
  border: 1px solid var(--line);
  background: #f5f5f3;
}
.article figure img {
  display: block;
  width: 100%;
  height: auto;
}
.article figure figcaption {
  padding: 12px 4px 0;
  color: #59605c;
  font-size: 12px;
}
.article figure.tall {
  max-width: 650px;
}
.formula {
  max-width: 850px;
  margin: 18px 0;
  padding: 17px 20px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  background: var(--surface);
  color: var(--accent-soft);
  font:
    21px/1.6 Georgia,
    "Times New Roman",
    serif;
}
.law-grid,
.comparison-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 22px 0;
  max-width: 850px;
}
.law-grid article,
.comparison-grid article {
  padding: 20px;
  border: 1px solid var(--line);
  background: var(--surface);
}
.law-grid article > div {
  margin: 8px 0;
  color: var(--accent);
  font: 20px Georgia;
}
.law-grid p,
.comparison-grid p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 14px;
}
.comparison-grid h3,
.worked-example h3 {
  margin: 4px 0;
  color: var(--accent-soft);
  font:
    21px Georgia,
    "Noto Serif SC",
    serif;
}
.concept-strip {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  max-width: 850px;
  margin: 22px 0;
}
.concept-strip span {
  padding: 9px 12px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--accent-soft);
}
.concept-strip b {
  color: var(--accent);
}
.worked-example {
  max-width: 850px;
  margin: 24px 0;
  padding: 22px;
  border: 1px solid var(--line);
  background: var(--surface);
}
.worked-example .formula {
  margin: 16px 0;
}
.paren {
  white-space: nowrap;
}
.check-list {
  max-width: 850px;
  padding-left: 1.4em;
}
.check-list li {
  margin: 12px 0;
  padding-left: 0.35em;
  color: var(--muted);
}
@media (max-width: 620px) {
  .law-grid,
  .comparison-grid {
    grid-template-columns: 1fr;
  }
  .article figure {
    padding: 8px;
  }
  .formula {
    overflow-x: auto;
    font-size: 18px;
  }
  .concept-strip b {
    transform: rotate(90deg);
  }
}
.formula-compare {
  max-width: 1050px;
  margin: 22px 0;
  border: 1px solid var(--line);
  overflow-x: auto;
}
.formula-compare > div {
  display: grid;
  grid-template-columns: minmax(190px, 1.05fr) minmax(210px, 1.15fr) minmax(
      210px,
      1.2fr
    ) minmax(240px, 1.35fr);
  min-width: 900px;
  border-bottom: 1px solid var(--line);
}
.formula-compare > div:last-child {
  border-bottom: 0;
}
.formula-compare > div > * {
  padding: 13px 15px;
  border-right: 1px solid var(--line);
}
.formula-compare > div > *:last-child {
  border-right: 0;
}
.formula-compare-head {
  background: color-mix(in srgb, var(--accent) 13%, var(--surface));
  color: var(--accent-soft);
}
.formula-compare > div:not(.formula-compare-head):nth-child(odd) {
  background: color-mix(in srgb, var(--surface) 82%, transparent);
}
.math-cell {
  font-family: Georgia, "Times New Roman", "Noto Serif SC", serif;
  font-style: italic;
  color: var(--accent-soft);
}
.formula-map {
  max-width: 1050px;
  margin: 24px 0;
  padding: 24px;
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface) 88%, transparent);
}
.map-root {
  width: min(360px, 90%);
  margin: 0 auto 42px;
  padding: 17px 20px;
  border: 2px solid var(--accent);
  text-align: center;
  background: var(--surface);
  position: relative;
}
.map-root::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 100%;
  height: 43px;
  border-left: 2px solid var(--accent);
}
.map-root > * {
  display: block;
}
.map-root .math-cell {
  margin: 7px 0;
  font-size: 22px;
}
.map-root small {
  color: var(--muted);
}
.map-branches {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.map-branches article {
  position: relative;
  padding: 18px;
  border: 1px solid var(--line);
  background: var(--surface);
}
.map-branches article::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 100%;
  height: 16px;
  border-left: 1px solid var(--accent);
}
.map-branches h3 {
  margin: 0 0 14px;
  color: var(--accent);
  font:
    20px Georgia,
    "Noto Serif SC",
    serif;
}
.map-step {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  margin: 9px 0;
  padding: 11px 12px;
  border-left: 2px solid var(--line);
  background: color-mix(in srgb, var(--surface) 68%, var(--bg));
}
.map-step > * {
  display: block;
}
.map-step.accent {
  border-left-color: var(--accent);
  background: color-mix(in srgb, var(--accent) 10%, var(--surface));
}
.map-split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 9px 0;
}
.map-split > div {
  padding: 10px;
  border: 1px solid var(--line);
}
.map-split span,
.map-split b {
  display: block;
}
.map-split .math-cell {
  margin-top: 6px;
}
@media (max-width: 760px) {
  .map-branches {
    grid-template-columns: 1fr;
  }
  .map-branches article::before {
    display: none;
  }
  .formula-map {
    padding: 14px;
  }
  .map-step {
    align-items: flex-start;
    flex-direction: column;
  }
  .map-split {
    grid-template-columns: 1fr;
  }
}
