/* How risky is crowdfunding, compared (2 Dec 2026, templates/v2/pages/risk_compared.html). The scale's bar moved here
   from the home block (#443): numbered markers above the line, the types' icons under it (shape and number, not
   colour); the zones' tints are the risk-level tints of tokens.css, as on the home block. */
.ci-zone--z1 { --ci-zone: var(--ci-zone-1-tint); --ci-zone-ink: var(--ci-zone-1-text); }
.ci-zone--z2 { --ci-zone: var(--ci-zone-2-tint); --ci-zone-ink: var(--ci-zone-2-text); }
.ci-zone--z3 { --ci-zone: var(--ci-zone-3-tint); --ci-zone-ink: var(--ci-zone-3-text); }
.ci-zone-chip { display: inline-block; width: max-content; max-width: 100%; padding: 4px 7px; border-radius: var(--ci-r-pill); background: var(--ci-zone); color: var(--ci-zone-ink); font: 600 11px/1.1 var(--ci-sans); }
.ci-risk:has(.ci-jump) { --ci-jump-h: calc(44px + 4 * var(--ci-s1) + 1px); }
.ci-risk .ci-risk__sec { margin-top: var(--ci-s6); scroll-margin-top: calc(var(--ci-jump-h, 0px) + var(--ci-s4)); }
.ci-risk .ci-jump { margin: 0; }

/* The scale */
.ci-ways__bar { padding: var(--ci-s3); border: 1px solid var(--ci-line); border-radius: var(--ci-r-field); background: var(--ci-white); }
.ci-ways__ends { display: flex; justify-content: space-between; font: 600 12px/1.3 var(--ci-sans); color: var(--ci-muted); text-transform: uppercase; letter-spacing: .04em; }
.ci-ways__plot { position: relative; margin: 6px 12px 0; height: calc(34px + 30px * var(--ci-ways-lanes, 1)); }
.ci-ways__track { position: absolute; left: -12px; right: -12px; top: 26px; height: 4px; border-radius: 2px; background: var(--ci-line); }
.ci-ways__mark { position: absolute; top: 0; transform: translateX(-50%); width: 22px; height: 22px; display: grid; place-items: center;
    border: 1.5px solid var(--ci-ink); border-radius: 50%; background: var(--ci-white); font: 700 12px/1 var(--ci-sans); color: var(--ci-ink); }
.ci-ways__mark::after { content: ""; position: absolute; left: 50%; top: 20px; width: 1.5px; height: 8px; background: var(--ci-ink); }
.ci-ways__pin { position: absolute; top: calc(36px + 30px * var(--ci-ways-lane, 0)); transform: translateX(-50%); width: 24px; height: 24px; display: grid; place-items: center;
    border-radius: var(--ci-r-small, 6px); background: var(--ci-moss); color: var(--ci-forest); }
.ci-ways__pin .ci-icon { width: 18px; height: 18px; }
/* The familiar assets */
.ci-ways__list { display: grid; gap: var(--ci-s2); margin: 0; padding: 0; list-style: none; }
.ci-ways__item { display: flex; gap: var(--ci-s2); align-items: flex-start; padding: var(--ci-s3); border: 1px solid var(--ci-line); border-radius: var(--ci-r-field); background: var(--ci-surface); font: 400 14px/1.45 var(--ci-sans); color: var(--ci-ink); }
.ci-ways__item strong { display: block; }
.ci-ways__num { flex: 0 0 24px; height: 24px; display: grid; place-items: center; border: 1.5px solid var(--ci-ink); border-radius: 50%; font: 700 12px/1 var(--ci-sans); }
.ci-ways__figure { color: var(--ci-muted); }

/* The types by zone */
.ci-risk__zline { margin: calc(-1 * var(--ci-s2)) 0 var(--ci-s3); color: var(--ci-muted); font: var(--ci-small); }
.ci-risk__types { display: grid; gap: var(--ci-s2); }
.ci-risk__type { border: 1px solid var(--ci-line); border-radius: var(--ci-r-field); background: var(--ci-surface); }
.ci-risk__type summary { display: flex; align-items: center; gap: var(--ci-s2); min-height: 52px; padding: var(--ci-s2) var(--ci-s3); cursor: pointer; list-style: none; }
.ci-risk__type summary::-webkit-details-marker { display: none; }
.ci-risk__type summary:focus-visible { outline: none; box-shadow: var(--ci-focus-ring); border-radius: var(--ci-r-field); }
.ci-risk__type summary .ci-icon { flex: none; width: 22px; height: 22px; color: var(--ci-forest); }
.ci-risk__name { font: 600 15px/1.3 var(--ci-sans); color: var(--ci-ink); }
.ci-risk__arrow { margin-left: auto; color: var(--ci-muted); font-size: 20px; line-height: 1; transition: transform .15s; }
.ci-risk__type[open] .ci-risk__arrow { transform: rotate(90deg); }
.ci-risk__body { display: grid; gap: var(--ci-s2); padding: 0 var(--ci-s3) var(--ci-s3); }
.ci-risk .ci-risk__body p { margin: 0; }
.ci-risk__place { font: 600 14px/1.4 var(--ci-sans); color: var(--ci-ink); }
.ci-risk__term { font: var(--ci-small); color: var(--ci-muted); }
.ci-risk__lines { display: grid; gap: var(--ci-s2); margin: 0; }
.ci-risk__lines div { font: 400 14px/1.5 var(--ci-sans); color: var(--ci-ink); }
.ci-risk__lines dt { display: inline; font-weight: 600; }
.ci-risk__lines dt::after { content: ": "; }
.ci-risk__lines dd { display: inline; margin: 0; }
.ci-risk__go .ci-btn { white-space: normal; text-align: left; }
.ci-risk__src, .ci-risk__risk { margin: var(--ci-s5) 0 0; color: var(--ci-muted); font: var(--ci-caption); max-width: 760px; }
@media (prefers-reduced-motion: reduce) { .ci-risk__arrow { transition: none; } }
@media (min-width: 900px) {
    .ci-ways__bar { padding: var(--ci-s4); }
    .ci-ways__list { grid-template-columns: 1fr 1fr; }
}
