/* /stats/ and /legal/. Builds on site.css tokens; no new colours except a blue ramp for ranges. */
:root { --b0: #d9e8fb; --b1: #a9cdf5; --b2: #6fa8ee; --b3: #2f86e8; --b4: #0a58b0; --ink-soft: #3a3a3f; }
.st-hero { padding-bottom: var(--s5); }
.st-hero h1 { max-width: 14em; margin-left: auto; margin-right: auto; }
.st-when { margin: var(--s3) 0 0; }
.st-caveat { max-width: 36em; margin: var(--s2) auto 0; font-size: 17px; color: var(--ink-soft); }
.st-when .chip { font-weight: 600; background: #fff; border-color: transparent; box-shadow: var(--shadow-soft); }

/* the five steps */
.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(--surface); border-radius: 24px; padding: var(--s4) var(--s3) var(--s3); display: flex; flex-direction: column; gap: 8px; min-height: 220px; }
.sec.gray .stf li { background: #fff; }
.stf li::before { content: counter(stf); width: 36px; height: 36px; border-radius: 50%; background: var(--ink); color: #fff; font-weight: 600; 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(--line); }
.stf .stf-end::before { background: var(--o-right); }
.stf b { font-size: 20px; line-height: 1.2; letter-spacing: -0.02em; }
.stf span { font-size: 16px; line-height: 1.4; color: var(--mute-2); }

/* the three rules */
.stg { margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s3); }
.stg-tile { background: #fff; border-radius: 24px; padding: var(--s3); display: flex; flex-direction: column; gap: 8px; box-shadow: var(--shadow-soft); }
.stg-tile h3 { margin: var(--s2) 0 0; }
.stg-tile p { margin: 0; font-size: 16px; line-height: 1.4; color: var(--mute-2); }
.stg figcaption { grid-column: 1 / -1; margin-top: var(--s1); }
.stg-art { height: 96px; border-radius: 16px; position: relative; display: grid; place-items: center; overflow: hidden; }
.stg-hide { background: repeating-linear-gradient(135deg, #f0f0f3 0 8px, #e2e2e8 8px 16px); border: 2px dashed var(--line); }
.stg-count { background: var(--t-up); border: 2px solid var(--o-up); }
.stg-count span { font-weight: 650; font-size: 28px; letter-spacing: -0.03em; color: #0a58b0; }
.stg-split { background: var(--surface); padding: 0 var(--s2); display: block; }
.stg-split i { position: absolute; left: 16px; right: 16px; top: 38px; height: 20px; border-radius: 10px; background: linear-gradient(90deg, var(--o-right) 0 34%, var(--o-up) 34% 71%, var(--p-y) 71% 100%); }
.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: 12px; font-weight: 600; 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%"; }

/* the timeline */
.stt { margin: 0; }
.stt-row { display: grid; grid-template-columns: 3fr 1fr 2fr; gap: 6px; }
.stt-seg { border-radius: 20px; padding: var(--s3); display: flex; flex-direction: column; gap: 4px; min-height: 150px; justify-content: flex-end; }
.stt-seg b { font-size: clamp(22px, 1rem + 0.8vw, 30px); letter-spacing: -0.03em; line-height: 1.1; }
.stt-seg span { font-size: 16px; color: var(--ink-soft); }
.stt-collect { background: var(--t-up); } .stt-collect b { color: #0a58b0; }
.stt-wait { background: repeating-linear-gradient(135deg, #f0f0f3 0 8px, #e2e2e8 8px 16px); }
.stt-pub { background: var(--t-right); } .stt-pub b { color: #1f7a38; }

/* cells */
.stc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 420px), 1fr)); gap: var(--s3); }
.stc { background: var(--surface); border-radius: 24px; padding: var(--s3); display: flex; flex-direction: column; gap: var(--s2); min-width: 0; }
.sec.gray .stc { background: #fff; }
.stc header { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.stc h3 { font-size: 22px; max-width: 14em; }
.stc .chip { font-size: 14px; padding: 4px 12px; white-space: nowrap; }
.stc-dim h4 { margin: 0 0 6px; font-size: 14px; font-weight: 600; color: var(--mute-2); letter-spacing: 0; }
.stc-bar { display: block; width: 100%; height: 22px; border-radius: 11px; overflow: hidden; background: var(--hair); }
.stc-bar rect.v-right { fill: var(--o-right); } .stc-bar rect.v-over { fill: var(--o-over); } .stc-bar rect.v-up { fill: var(--o-up); } .stc-bar rect.v-limit { fill: var(--o-limit); }
.stc-bar rect.b0 { fill: var(--b0); } .stc-bar rect.b1 { fill: var(--b1); } .stc-bar rect.b2 { fill: var(--b2); } .stc-bar rect.b3 { fill: var(--b3); } .stc-bar rect.b4 { fill: var(--b4); }
.stc-leg { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 14px; color: var(--ink-soft); }
.stc-leg b { font-weight: 650; color: var(--ink); }
.sw { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; }
.v-right { background: var(--o-right); } .v-over { background: var(--o-over); } .v-up { background: var(--o-up); } .v-limit { background: var(--o-limit); }
.b0 { background: var(--b0); } .b1 { background: var(--b1); } .b2 { background: var(--b2); } .b3 { background: var(--b3); } .b4 { background: var(--b4); }
.stc-note { margin: 0; color: var(--mute-2); font-size: 16px; }
.st-dl { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--s2); }
.st-dl a { display: inline-block; background: var(--surface); border-radius: 980px; padding: 12px 24px; font-weight: 600; }

/* legal */
.lg-card { background: #fff; border-radius: 24px; padding: var(--s4); box-shadow: var(--shadow-soft); 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; border-top: 1px solid var(--hair); }
.lg-rows dt:first-of-type, .lg-rows dd:first-of-type { border-top: 0; }
.lg-rows dt { color: var(--mute-2); font-size: 16px; }
.lg-rows dd { font-size: 19px; font-weight: 500; }
.lg-onreq { display: inline-block; font-size: 15px; font-weight: 600; color: var(--mute-2); background: var(--surface); border: 1px dashed var(--line); border-radius: 980px; padding: 2px 12px; }
.lg-map { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: var(--s3); }
.lg-item { background: #fff; border-radius: 24px; padding: var(--s3); display: flex; flex-direction: column; gap: 8px; }
.sec:not(.gray) .lg-item { background: var(--surface); }
.lg-item h3 { margin: 0; }
.lg-item p { margin: 0; font-size: 16px; line-height: 1.4; color: var(--mute-2); }
.lg-item .lg-basis { font-size: 14px; font-weight: 600; color: var(--ink-soft); }
.lg-ret { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s2); max-width: 960px; }
.lg-ret li { display: grid; grid-template-columns: minmax(150px, 0.45fr) minmax(0, 1fr); gap: var(--s2); align-items: center; }
.lg-ret b { font-size: 17px; }
.lg-bar { display: grid; gap: 6px; }
.lg-bar span { font-size: 15px; color: var(--ink-soft); }
.lg-track { position: relative; height: 18px; border-radius: 9px; background: var(--surface); overflow: hidden; }
.sec.gray .lg-track { background: #fff; }
.lg-track i { position: absolute; left: 0; top: 0; bottom: 0; background: var(--o-up); border-radius: 9px; min-width: 8px; }
.lg-track i.open { background: linear-gradient(90deg, var(--o-up), var(--b1)); }
.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: #fff; }

@media (max-width: 1000px) {
  .stf { grid-template-columns: 1fr; gap: var(--s2); }
  .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; border-top: 1px solid var(--hair); }
  .lg-rows dd { border-top: 0; padding-top: 2px; }
  .lg-rows dt:first-of-type { border-top: 0; }
  .lg-card { padding: var(--s3); }
}
