/* How it works: a narrow reading column, numbered steps, a glossary, folds with navy marks. UX2: "On this page" first. */
.onpage.onpage-how { margin: 24px 0 0; }
.how, .hero-how .hero-inner { max-width: 900px; }
.how.figs > .section:first-of-type { margin-top: 28px; }
.steps { list-style: none; counter-reset: step; margin: 0; padding: 0; display: grid; gap: 16px; }
.steps > li { counter-increment: step; display: grid; grid-template-columns: 36px 1fr; gap: 14px; }
.steps > li::before {
  content: counter(step); width: 36px; height: 36px; border-radius: 50%; background: var(--brand-navy); color: #fff;
  font-family: var(--font); font-size: 20px; font-weight: 600; display: flex; align-items: center; justify-content: center; font-variant-numeric: lining-nums;
}
.steps strong { display: block; font-size: 16px; }
.steps p { color: var(--ink-2); margin-top: 2px; }
.state-list { display: grid; gap: 6px; margin-top: 8px; }
.state-list > div { display: grid; grid-template-columns: 150px 1fr; gap: 10px; align-items: baseline; }
.state-list .name { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; white-space: nowrap; }
.glossary { display: grid; grid-template-columns: 220px 1fr; gap: 0; margin: 14px 0 0; padding: 0; overflow: hidden; }
.glossary dt { font-weight: 600; padding: 12px 16px 12px 20px; border-bottom: 1px solid var(--hairline); background: var(--tint); }
.glossary dd { margin: 0; padding: 12px 20px 12px 16px; border-bottom: 1px solid var(--hairline); color: var(--ink-2); }
.glossary dt:last-of-type, .glossary dd:last-of-type { border-bottom: 0; }
details.fold { background: var(--surface); color: var(--ink); border: 1px solid var(--hairline); border-radius: var(--radius); margin-top: 10px; }
details.fold > summary {
  cursor: pointer; padding: 14px 20px; font-weight: 600; font-size: 16px; min-height: 52px; display: flex; align-items: center; gap: 12px; list-style: none;
}
details.fold > summary::-webkit-details-marker { display: none; }
details.fold > summary::before { content: "+"; width: 24px; height: 24px; border-radius: 50%; background: var(--brand-navy); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; flex: none; line-height: 1; }
details.fold[open] > summary::before { content: "–"; }
/* an open fold has a navy head, like every other panel on the site */
details.fold[open] > summary { background: var(--brand-navy); color: #fff; border-bottom: 2px solid var(--brand-green); border-radius: 3px 3px 0 0; --focus: var(--brand-green); }
details.fold[open] > summary::before { background: #ffffff; color: var(--brand-navy); }
details.fold { border-top: 3px solid var(--brand-navy); }
details.fold .body { padding: 14px 20px 18px 56px; color: var(--ink); }
details.fold .body p, details.fold .body ul { margin: 0 0 10px; max-width: 72ch; }
details.fold .body ul { padding-left: 20px; }
details.fold .body li { margin: 4px 0; }
.formula { background: var(--surface-2); border-left: 3px solid var(--brand-navy); border-radius: 0 var(--radius-s) var(--radius-s) 0; padding: 12px 14px; margin: 0 0 10px; }
.src { font-size: 14px; color: var(--ink-2); }
code { font-size: 0.92em; background: var(--surface-2); padding: 1px 5px; border-radius: 4px; }
@media screen and (max-width: 719px) {
  .state-list > div { grid-template-columns: 1fr; gap: 0; }
  .glossary { grid-template-columns: 1fr; }
  .glossary dt { border-bottom: 0; padding: 10px 14px 2px; background: none; }
  .glossary dd { padding: 0 14px 10px; }
  details.fold > summary { padding: 12px 14px; }
  details.fold .body { padding: 12px 14px 14px; }
  table.data.stack.block td { display: block; text-align: left; }
  table.data.stack.block td::before { display: block; font-size: 13px; margin-top: 6px; max-width: none; }
}
