.kicker {
  margin: 0 0 0.45rem;
  color: var(--accent-ink);
  font-size: 0.82rem;
  font-weight: 650;
  letter-spacing: 0.06em;
}

.lead {
  font-size: 1.14rem;
  line-height: 1.85;
  max-width: 40rem;
}

.section {
  margin-top: 2.75rem;
}

.section:first-child {
  margin-top: 0;
}

.section > * + * {
  margin-top: 1.15rem;
}

.section h2,
.callout h2 {
  font-size: 1.42rem;
  font-weight: 680;
  line-height: 1.45;
  overflow-wrap: break-word;
}

.section.is-title h2 {
  margin-bottom: 0;
}

.section.is-title + .section {
  margin-top: 1.6rem;
}

.section h3,
.callout h3,
.flow-node h3,
.case-card h3,
.steps h3,
.points h3,
.split h3 {
  font-size: 1.05rem;
  font-weight: 650;
  line-height: 1.45;
}

.bars {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 1.15rem;
}

.bar-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: 0.4rem;
}

.bar-label {
  font-weight: 500;
}

.bar.is-emphasis .bar-label,
.bar-value {
  font-weight: 680;
}

.bar-value {
  color: var(--accent-ink);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.bar-track {
  height: 10px;
  background: #e6e0d6;
  border-radius: 999px;
  overflow: hidden;
}

.bar-fill {
  height: 100%;
  background: var(--accent);
  border-radius: inherit;
  opacity: 0.38;
  min-width: 6px;
}

.bar.is-emphasis .bar-fill {
  opacity: 1;
}

.callout {
  background: var(--accent-soft);
  border-left: 3px solid var(--accent);
  border-radius: 14px;
  padding: 1rem 1.15rem 1.05rem;
}

.callout-lead {
  color: var(--accent-ink);
  margin-bottom: 0.35rem;
}

.callout p {
  margin: 0;
}

.flow {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  gap: 0.75rem;
  align-items: stretch;
}

.flow-node {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1.05rem 0.9rem 1.1rem;
  text-align: center;
  box-shadow: var(--shadow);
}

.flow-node p {
  margin-top: 0.3rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.flow-edge {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-width: 5.6rem;
  max-width: 7.2rem;
  text-align: center;
  color: var(--accent-ink);
  font-size: 0.82rem;
  line-height: 1.45;
}

.flow-edge::before {
  content: "";
  width: 100%;
  height: 1px;
  background: var(--accent);
}

.card-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.case-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 1.15rem 1.15rem 0.35rem;
  box-shadow: var(--shadow);
}

.case-card h3 {
  margin-bottom: 0.35rem;
}

.props div {
  display: grid;
  grid-template-columns: 6.6rem minmax(0, 1fr);
  gap: 0.65rem;
  padding: 0.72rem 0;
  border-top: 1px solid var(--line);
}

.props dt {
  color: var(--muted);
  font-weight: 500;
}

.props dd {
  margin: 0;
}

.table-scroll {
  overflow-x: auto;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.98rem;
  line-height: 1.65;
}

table.fixed {
  table-layout: fixed;
}

th {
  text-align: left;
  font-weight: 650;
  color: var(--accent-ink);
  background: var(--accent-soft);
  padding: 0.7rem 0.9rem;
  vertical-align: top;
}

td {
  padding: 0.85rem 0.9rem;
  border-top: 1px solid var(--line);
  vertical-align: top;
  overflow-wrap: break-word;
}

.points,
.steps {
  list-style: none;
  padding: 0;
}

.points li,
.steps li {
  padding: 0.95rem 0;
  border-top: 1px solid var(--line);
}

.points li:first-child,
.steps li:first-child {
  border-top: 0;
  padding-top: 0.15rem;
}

.points h3,
.steps h3 {
  margin-bottom: 0.15rem;
}

.steps li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.85rem;
  align-items: start;
}

.step-index {
  width: 1.75rem;
  height: 1.75rem;
  margin-top: 0.12rem;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-ink);
  font-size: 0.85rem;
  font-weight: 680;
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.9rem;
}

.split section {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1.05rem 1.1rem 1.15rem;
}

.split h3 {
  margin-bottom: 0.7rem;
  color: var(--accent-ink);
}

.split ul {
  margin: 0;
  padding-left: 1.15rem;
}

.split li + li {
  margin-top: 0.4rem;
}

.prose {
  max-width: 40rem;
}

.cell-list {
  margin: 0;
  padding-left: 1.15rem;
}

.cell-list li + li {
  margin-top: 0.35rem;
}

.case-card.has-quotes {
  padding-bottom: 1rem;
}

.quotes {
  list-style: none;
  padding: 0;
  margin: 0.45rem 0 0;
}

.quotes li + li {
  margin-top: 0.55rem;
  padding-top: 0.55rem;
  border-top: 1px solid var(--line);
}

.quote {
  margin: 0;
}

.quote q {
  quotes: "“" "”";
  font-style: normal;
}

.quote q::before {
  content: open-quote;
}

.quote q::after {
  content: close-quote;
}

.formulas {
  background: var(--accent-soft);
  border-radius: 16px;
  padding: 1.05rem 1.15rem 0.45rem;
}

.formulas-lead {
  color: var(--accent-ink);
  margin-bottom: 0.75rem;
}

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

.formula-list li {
  background: var(--paper);
  border-radius: 12px;
  padding: 0.8rem 0.95rem 0.85rem;
  margin-bottom: 0.7rem;
  box-shadow: var(--shadow);
}

.formula-name {
  margin: 0 0 0.2rem;
  color: var(--accent-ink);
  font-size: 0.95rem;
  font-weight: 650;
}

.formula-text {
  margin: 0;
}

.slot {
  color: var(--accent-ink);
  font-weight: 650;
  background: #e5f3f1;
  border-bottom: 1px dashed var(--accent);
  padding: 0 0.12em;
}

@media (max-width: 720px) {
  .flow,
  .card-grid,
  .split {
    grid-template-columns: 1fr;
  }

  .flow-edge {
    max-width: none;
    min-width: 0;
    flex-direction: row;
    justify-content: flex-start;
    gap: 0.55rem;
    padding: 0.15rem 0.2rem 0.15rem 0.35rem;
  }

  .flow-edge::before {
    width: 1px;
    height: 1.35rem;
    flex: 0 0 auto;
  }

  .table-scroll table,
  .table-scroll tbody,
  .table-scroll tr,
  .table-scroll td {
    display: block;
    width: auto;
  }

  .table-scroll table.fixed {
    table-layout: auto;
  }

  .table-scroll {
    background: transparent;
    border: 0;
  }

  .table-scroll thead {
    display: none;
  }

  .table-scroll tr {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 14px;
    margin-bottom: 0.75rem;
    padding: 0.35rem 0.95rem 0.75rem;
  }

  .table-scroll td {
    border: 0;
    padding: 0.55rem 0 0;
  }

  .table-scroll td::before {
    content: attr(data-label);
    display: block;
    color: var(--muted);
    font-size: 0.78rem;
    line-height: 1.4;
    margin-bottom: 0.12rem;
  }
}

@media (max-width: 420px) {
  .props div {
    grid-template-columns: 1fr;
    gap: 0.15rem;
  }
}
