/* v5: re-based onto tokens.css and the DESIGN.md rules by a one-off rewrite of the earlier stylesheet (sizes to the six steps, two radii, no borders, no shadows but the token, verdict colours only through data-verdict markup, no custom properties). New work goes in site.css. */
.st-hero { padding-bottom: var(--sp64); }
.st-hero h1 { max-width: 14em; margin-left: auto; margin-right: auto; }
.st-when { margin: var(--sp24) 0 0; }
.st-caveat { max-width: 36em; margin: var(--sp16) auto 0; font-size: var(--fs-body); color: var(--g2); }
.st-when .chip { font-weight: var(--w-semi); background: var(--bg); }
.stf { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 40px; counter-reset: stf; }
.stf li { counter-increment: stf; position: relative; background: var(--g1); border-radius: var(--r12); padding: var(--sp32) var(--sp24) var(--sp24); display: flex; flex-direction: column; gap: 8px; min-height: 220px; }
.sec.gray .stf li { background: var(--bg); }
.stf li::before { content: counter(stf); width: 36px; height: 36px; border-radius: var(--r999); background: var(--ink); color: var(--bg); font-weight: var(--w-semi); display: grid; place-items: center; margin-bottom: 8px; }
.stf li + li::after { content: ""; position: absolute; left: -30px; top: 58px; width: 20px; height: 2px; background: var(--g1); }
.stf .stf-end::before { background: var(--g2); }
.stf b { font-size: var(--fs-body); line-height: 1.2; letter-spacing: -0.02em; }
.stf span { font-size: var(--fs-body); line-height: 1.4; color: var(--g2); }
.stg { margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--sp24); }
.stg-tile { background: var(--bg); border-radius: var(--r12); padding: var(--sp24); display: flex; flex-direction: column; gap: 8px; }
.stg-tile h3 { margin: var(--sp16) 0 0; }
.stg-tile p { margin: 0; font-size: var(--fs-body); line-height: 1.4; color: var(--g2); }
.stg figcaption { grid-column: 1 / -1; margin-top: var(--sp8); }
.stg-art { height: 96px; border-radius: var(--r12); position: relative; display: grid; place-items: center; overflow: hidden; }
.stg-hide { background: var(--g1); }
.stg-count { background: var(--g1); }
.stg-count span { font-weight: var(--w-semi); font-size: var(--fs-heading); letter-spacing: -0.03em; color: var(--ink); }
.stg-split { background: var(--g1); padding: 0 var(--sp16); display: block; }
.stg-split i { position: absolute; left: 16px; right: 16px; top: 38px; height: 20px; border-radius: var(--r12); background: var(--g1); }
.stg-split u { position: absolute; top: 24px; bottom: 24px; width: 2px; background: var(--ink); text-decoration: none; }
.stg-split u.lo { left: calc(16px + (100% - 32px) * 0.10); }
.stg-split u.hi { left: calc(16px + (100% - 32px) * 0.90); }
.stg-split u::after { position: absolute; top: -18px; left: -14px; font-size: var(--fs-small); font-weight: var(--w-semi); color: var(--ink); white-space: nowrap; width: 30px; text-align: center; }
.stg-split u.lo::after { content: "10%"; }
.stg-split u.hi::after { content: "90%"; }
.stt { margin: 0; }
.stt-row { display: grid; grid-template-columns: 3fr 1fr 2fr; gap: 6px; }
.stt-seg { border-radius: var(--r12); padding: var(--sp24); display: flex; flex-direction: column; gap: 4px; min-height: 150px; justify-content: flex-end; }
.stt-seg b { font-size: var(--fs-heading); letter-spacing: -0.03em; line-height: 1.1; }
.stt-seg span { font-size: var(--fs-body); color: var(--g2); }
.stt-collect { background: var(--g1); }
.stt-collect b { color: var(--ink); }
.stt-wait { background: var(--g1); }
.stt-pub { background: var(--g1); }
.stt-pub b { color: var(--ink); }
.stc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 420px), 1fr)); gap: var(--sp24); }
.stc { background: var(--g1); border-radius: var(--r12); padding: var(--sp24); display: flex; flex-direction: column; gap: var(--sp16); min-width: 0; }
.sec.gray .stc { background: var(--bg); }
.stc header { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.stc h3 { font-size: var(--fs-lead); max-width: 14em; }
.stc .chip { font-size: var(--fs-small); padding: 4px 12px; white-space: nowrap; }
.stc-dim h4 { margin: 0 0 6px; font-size: var(--fs-small); font-weight: var(--w-semi); color: var(--g2); letter-spacing: 0; }
.stc-bar { display: block; width: 100%; height: 22px; border-radius: var(--r12); overflow: hidden; background: var(--g1); }
.stc-bar rect.v-right { fill: var(--g2); }
.stc-bar rect.v-over { fill: var(--g2); }
.stc-bar rect.v-up { fill: var(--g2); }
.stc-bar rect.v-limit { fill: var(--g2); }
.stc-bar rect.b0 { fill: var(--g1); }
.stc-bar rect.b1 { fill: var(--g1); }
.stc-bar rect.b2 { fill: var(--g2); }
.stc-bar rect.b3 { fill: var(--g2); }
.stc-bar rect.b4 { fill: var(--g2); }
.stc-leg { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: var(--fs-small); color: var(--g2); }
.stc-leg b { font-weight: var(--w-semi); color: var(--ink); }
.sw { display: inline-block; width: 10px; height: 10px; border-radius: 0; margin-right: 6px; }
.v-right { background: var(--g2); }
.v-over { background: var(--g2); }
.v-up { background: var(--g2); }
.v-limit { background: var(--g2); }
.b0 { background: var(--g1); }
.b1 { background: var(--g1); }
.b2 { background: var(--g2); }
.b3 { background: var(--g2); }
.b4 { background: var(--g2); }
.stc-note { margin: 0; color: var(--g2); font-size: var(--fs-body); }
.st-dl { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--sp16); }
.st-dl a { display: inline-block; background: var(--g1); border-radius: var(--r999); padding: 12px 24px; font-weight: var(--w-semi); }
.lg-card { background: var(--bg); border-radius: var(--r12); padding: var(--sp32); max-width: 880px; }
.lg-rows { margin: 0; display: grid; grid-template-columns: minmax(120px, 0.4fr) 1fr; gap: 0; }
.lg-rows dt, .lg-rows dd { margin: 0; padding: 14px 0; }
.lg-rows dt { color: var(--g2); font-size: var(--fs-body); }
.lg-rows dd { font-size: var(--fs-body); font-weight: var(--w-semi); }
.lg-onreq { display: inline-block; font-size: var(--fs-body); font-weight: var(--w-semi); color: var(--g2); background: var(--g1); border-radius: var(--r999); padding: 2px 12px; }
.lg-map { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: var(--sp24); }
.lg-item { background: var(--bg); border-radius: var(--r12); padding: var(--sp24); display: flex; flex-direction: column; gap: 8px; }
.sec:not(.gray) .lg-item { background: var(--g1); }
.lg-item h3 { margin: 0; }
.lg-item p { margin: 0; font-size: var(--fs-body); line-height: 1.4; color: var(--g2); }
.lg-item .lg-basis { font-size: var(--fs-small); font-weight: var(--w-semi); color: var(--g2); }
.lg-ret { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--sp16); max-width: 960px; }
.lg-ret li { display: grid; grid-template-columns: minmax(150px, 0.45fr) minmax(0, 1fr); gap: var(--sp16); align-items: center; }
.lg-ret b { font-size: var(--fs-body); }
.lg-bar { display: grid; gap: 6px; }
.lg-bar span { font-size: var(--fs-body); color: var(--g2); }
.lg-track { position: relative; height: 18px; border-radius: var(--r12); background: var(--g1); overflow: hidden; }
.sec.gray .lg-track { background: var(--bg); }
.lg-track i { position: absolute; left: 0; top: 0; bottom: 0; background: var(--g2); border-radius: var(--r12); min-width: 8px; }
.lg-track i.open { background: var(--g1); }
.lg-track i.w2 { width: 2%; }
.lg-track i.w8 { width: 8%; }
.lg-track i.w25 { width: 25%; }
.lg-track i.w100 { width: 100%; }
.sec.gray .lg-col { background: var(--bg); }
.rp-meter { margin: var(--sp32) auto 0; max-width: 640px; }
@media (min-width: 1001px) { .st-hero .rp-lead { max-width: 36em; margin-left: auto; margin-right: auto; text-align: center; } }
.rp-meter .stc-bar { background: var(--bg); }
.rp-meter figcaption { text-align: center; margin-top: var(--sp8); font-size: var(--fs-body); color: var(--g2); }
.rp-meter figcaption b { color: var(--ink); font-weight: var(--w-semi); }
.stf.rp-levels { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--sp24); }
.stf.rp-levels li { min-height: 0; }
.stf.rp-levels li + li::after { display: none; }
.stf.rp-levels .chip { font-size: var(--fs-small); padding: 2px 12px; margin-left: 4px; }
@media (max-width: 1000px) {
  .stf.rp-levels { grid-template-columns: 1fr; }
  .stf { grid-template-columns: 1fr; gap: var(--sp16); }
  .stf li { min-height: 0; }
  .stf li + li::after { display: none; }
  .stg { grid-template-columns: 1fr; }
  .stt-row { grid-template-columns: 1fr; }
  .stt-seg { min-height: 96px; }
  .lg-ret li { grid-template-columns: 1fr; gap: 4px; }
}
@media (max-width: 600px) {
  .lg-rows { grid-template-columns: 1fr; }
  .lg-rows dt { padding-bottom: 0; }
  .lg-rows dd { padding-top: 2px; }
  .lg-card { padding: var(--sp24); }
}
.an-fig { margin: 0 0 var(--sp48); }
.an-body .all-thresholds { margin-top: 0; }
.an-body h2 { font-size: var(--fs-heading); line-height: var(--lh-heading); letter-spacing: var(--ls-heading); margin: var(--sp32) 0 var(--sp16); }
