/* Kalshi's Ronde case study. Shared foundations: ronde-project.css. */
.ks-hero { align-items: center; gap: 0; }
.ks-hero .pr-title { max-width: 13ch; font-size: clamp(44px, 6vw, 76px); }
.ks-hero .pr-hero__text { flex: 1 1 58%; }
.ks-eyebrow { font-size: 14px; color: var(--rh-muted); margin-bottom: 20px; }
.ks-art { flex: 1 1 42%; width: 42%; aspect-ratio: 1; }
.ks-art canvas { width: 100%; height: 100%; display: block; color: var(--rh-ink); }
.ks-action { margin-top: 28px; }
.ks-cover { height: clamp(230px, 34vw, 400px); }
.pr-main > .ks-cover { margin-top: 48px; }
.ks-cover img { object-position: center; }
.ks-stat-accent { background: linear-gradient(130deg, #d7eda9, #f4f8e9); color: #111214; }
.ks-stat-accent .pr-stat__label { color: rgba(17,18,20,.65); }
.ks-stat-accent small { color: inherit; }
#model { scroll-margin-top: 36px; }
.pr-about .rh-lab + .pr-h2 { margin-top: 16px; }
.ks-results { display: grid; grid-template-columns: 1.25fr 1fr; gap: 16px; }
.prediction-chart { padding: 32px; border-radius: 32px; background: var(--rh-card); box-shadow: var(--rh-panel-shadow); min-width: 0; }
.prediction-chart__label { color: var(--rh-text-2); font-size: 16px; }
.ks-result-stack { display: grid; gap: 16px; }
.ks-number { display: block; font-size: clamp(48px, 6vw, 72px); font-weight: 300; letter-spacing: -.04em; margin: 24px 0; line-height: 1; }
.ks-number small { font-size: .55em; color: var(--rh-muted); }
.ks-result-foot { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; color: var(--rh-muted); }
.ks-confidence-track { height: 6px; background: var(--rh-fill); border-radius: 8px; }
.ks-confidence-track i { display: block; width: 84%; height: 100%; background: var(--rh-ink); border-radius: inherit; }
.prediction-calendar__tally { display: flex; gap: 32px; margin: 30px 0 24px; }
.prediction-calendar__tally strong { font-size: 52px; font-weight: 300; letter-spacing: -.04em; }
.prediction-calendar__tally small { color: var(--rh-muted); margin-left: 8px; font-size: 14px; }
.prediction-calendar__losses { color: var(--rh-muted); }
.prediction-calendar { display: grid; grid-template-columns: repeat(13, minmax(0, 1fr)); gap: 6px; }
.prediction-game { aspect-ratio: 1; border: 0; border-radius: 50%; background: var(--rh-ink); min-width: 0; transition: transform .15s; }
.prediction-game--loss { background: var(--rh-fill); box-shadow: inset 0 0 0 1px var(--rh-line-strong); }
.prediction-game:hover, .prediction-game:focus-visible { transform: scale(1.18); }
.prediction-calendar__tooltip { font-size: 13px; color: var(--rh-muted); margin-top: 16px; }
.prediction-calendar__detail { display: none; margin-top: 16px; }
.prediction-calendar__detail.is-active { display: grid; gap: 8px; }
.prediction-calendar__detail span, .prediction-calendar__detail small { color: var(--rh-text-2); font-size: 13px; }
.prediction-calendar__detail strong { font-size: 17px; font-weight: 500; }
.has-active-game .prediction-calendar__tooltip { display: none; }
.prediction-calendar__ratio { display: flex; align-items: baseline; gap: 12px; margin-top: 24px; }
.prediction-calendar__ratio strong { font-size: 48px; font-weight: 300; }
.prediction-calendar__ratio small { color: var(--rh-muted); }
.ks-steps { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.ks-steps li { display: flex; gap: 24px; padding: 32px; background: var(--rh-card); border-radius: 28px; }
.ks-step-number { font-size: 16px; color: var(--rh-muted); padding-top: 4px; }
.ks-steps h3 { font-size: 23px; font-weight: 500; letter-spacing: -.02em; }
.ks-steps p, .ks-evaluation p { margin-top: 16px; color: var(--rh-text-2); font-size: 17px; line-height: 1.65; }
.ks-evaluation { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.ks-evaluation article { border-radius: 28px; background: var(--rh-card); padding: 32px; }
.ks-evaluation h3 { font-size: clamp(30px, 4vw, 44px); font-weight: 400; letter-spacing: -.025em; margin-top: 20px; }
@media (max-width: 960px) {
    .ks-hero { flex-direction: row; }
    .ks-art { width: 38%; flex-basis: 38%; }
}
@media (max-width: 760px) {
    .ks-hero { position: relative; padding-top: 48px; }
    .ks-hero .pr-hero__text { position: relative; z-index: 1; }
    .ks-hero .pr-title { font-size: clamp(44px, 8vw, 60px); }
    .ks-art { position: absolute; right: -2px; top: 25px; width: 112px; opacity: .8; }
    .ks-hero .pr-lede { max-width: 30ch; }
    .ks-hero .pr-back { margin-bottom: 30px; }
    .ks-results, .ks-steps, .ks-evaluation { grid-template-columns: 1fr; }
    .prediction-chart, .ks-evaluation article, .ks-steps li { padding: 24px; border-radius: 24px; }
    .ks-steps li { gap: 16px; }
    .pr-section-head { align-items: flex-start; flex-direction: column; gap: 12px; }
    .prediction-calendar { gap: 6px; }
}
@media (prefers-color-scheme: dark) {
    .ks-stat-accent { background: linear-gradient(130deg, #34442b, #1c251b); color: var(--rh-ink); }
    .ks-stat-accent .pr-stat__label { color: var(--rh-text-2); }
}
@media (prefers-reduced-motion: reduce) { .prediction-game { transition: none; } }

/* Kalshi's second pass: a green odds lab and a compact, moving process. */
:root { --ks-green: #216b4b; --ks-lime: #d5f582; }
.ks-hero { gap: 40px; padding-bottom: 0; }
.ks-hero .pr-title { font-size: clamp(56px, 7vw, 88px); }
.ks-hero .pr-title em { font-style: normal; color: var(--ks-green); }
.ks-art { position: relative; flex: 0 1 42%; width: 42%; min-height: 0; aspect-ratio: 1; isolation: isolate; }
.ks-art::before { content: ""; position: absolute; inset: 8%; z-index: -1; border-radius: 50%; background: radial-gradient(circle at 45% 40%, rgba(213,245,130,.35), rgba(213,245,130,.12) 52%, transparent 72%); }
.ks-art canvas { position: relative; width: 100%; height: 100%; color: var(--rh-ink); }
.ks-model { display: grid; grid-template-columns: .9fr 1.1fr; gap: 64px; align-items: center; scroll-margin-top: 32px; }
.ks-model-intro > p { margin: 24px 0; color: var(--rh-text-2); font-size: 19px; line-height: 1.5; max-width: 36ch; }
.ks-comparison { padding: 32px; background: var(--rh-card); border-radius: 32px; box-shadow: var(--rh-panel-shadow); }
.ks-comparison-head { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 32px; }
.ks-prob-row { display: grid; grid-template-columns: 56px 1fr 55px; gap: 16px; align-items: center; margin: 24px 0; font-size: 15px; }
.ks-prob-row strong { font-size: 28px; font-weight: 400; text-align: right; }
.ks-prob-row small { font-size: 16px; }
.ks-prob-track { height: 12px; background: var(--rh-fill); border-radius: 20px; overflow: hidden; }
.ks-prob-track i { display: block; height: 100%; border-radius: inherit; background: var(--rh-ink); transition: width .18s; }
.ks-prob-row--model .ks-prob-track i { background: var(--ks-green); }
#ks-probability { width: 100%; accent-color: var(--ks-green); cursor: ew-resize; margin: 12px 0 24px; }
.ks-edge-readout { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: 14px; }
.ks-edge-readout strong { display: block; font-size: 36px; font-weight: 400; margin-top: 8px; }
#ks-signal { border-radius: 999px; background: var(--ks-lime); color: #23402a; padding: 10px 14px; }
#ks-signal.is-below { background: var(--rh-fill); color: var(--rh-text-2); }
.ks-hint { font-size: 13px; margin-top: 24px; color: var(--rh-muted); }
.ks-pipeline { list-style: none; display: grid; grid-template-columns: repeat(3,1fr); gap: 32px; }
.ks-pipeline li { position: relative; padding: 24px 0 36px; border-bottom: 1px solid var(--rh-line-strong); }
.ks-pipeline-number { display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--ks-lime); color: #23402a; margin-bottom: 24px; }
.ks-pipeline h3 { font-size: 24px; font-weight: 500; }
.ks-pipeline p { font-size: 16px; color: var(--rh-text-2); margin-top: 12px; }
.ks-flow-dot { position: absolute; bottom: -4px; left: 0; width: 7px; height: 7px; border-radius: 50%; background: var(--ks-green); }
.ks-method.is-in-view .ks-flow-dot { animation: ks-travel 3s ease-in-out both; }
.ks-method.is-in-view li:nth-child(2) .ks-flow-dot { animation-delay: .6s; }
.ks-method.is-in-view li:nth-child(3) .ks-flow-dot { animation-delay: 1.2s; }
@keyframes ks-travel { from { left: 0; } to { left: calc(100% - 7px); } }
.ks-details { margin-top: 32px; }
.ks-details summary { display: flex; align-items: center; justify-content: space-between; cursor: pointer; padding: 20px 0; list-style: none; font-size: 17px; }
.ks-details summary::-webkit-details-marker { display: none; }
.ks-details[open] summary .icon { transform: rotate(90deg); }
.ks-details-body > section { margin: 40px 0; }
.ks-status-note { max-width: 65ch; font-size: 14px; color: var(--rh-muted); line-height: 1.5; margin-top: 12px; }
.ks-replay { display: flex; align-items: center; gap: 10px; padding: 10px 16px; border: 1px solid var(--rh-line-strong); border-radius: 999px; background: transparent; }
.ks-profit { position: relative; overflow: hidden; background: #d5f582; color: #16291b; }
.ks-profit .prediction-chart__label, .ks-profit .ks-result-foot { color: #35543d; }
.ks-profit .ks-number { margin-bottom: 12px; }
.ks-multiplier { display: block; font-size: 14px; margin-bottom: 24px; }
.ks-deposit { position: absolute; right: 32px; top: 28px; border-radius: 999px; padding: 8px 12px; background: rgba(255,255,255,.5); opacity: 0; }
.ks-profit.is-animating .ks-deposit { animation: ks-deposit 1s ease-in both; }
@keyframes ks-deposit { 0% { opacity: 0; transform: translateY(-36px); } 25%,60% { opacity: 1; } 100% { opacity: 0; transform: translateY(90px) scale(.7); } }
.ks-gauge { position: relative; max-width: 250px; margin: 24px auto 0; }
.ks-gauge svg { width: 100%; display: block; overflow: visible; }
.ks-gauge path { fill: none; stroke-width: 12; stroke-linecap: round; }
.ks-gauge-bg { stroke: var(--rh-fill); }
.ks-gauge-fill { stroke: var(--ks-green); stroke-dasharray: 84 100; }
.ks-gauge .ks-number { position: absolute; bottom: -8px; left: 0; right: 0; text-align: center; margin: 0; font-size: 54px; }
.prediction-game--win { background: var(--ks-green); }
.ks-results.is-animating .prediction-game { animation: ks-dot-in .4s both; animation-delay: calc(var(--ks-index) * 10ms); }
@keyframes ks-dot-in { from { opacity: .1; transform: scale(.3); } to { opacity: 1; transform: scale(1); } }
@media (max-width: 960px) { .ks-hero { gap: 24px; } .ks-art { min-height: 0; } .ks-model { gap: 32px; } }
@media (max-width: 760px) {
    .ks-hero { display: grid; grid-template-columns: 1fr; }
    .ks-hero .pr-title { font-size: clamp(56px, 12vw, 76px); }
    .ks-art { position: relative; width: 220px; height: 220px; min-height: 0; top: auto; right: auto; opacity: 1; justify-self: center; }
    .ks-art canvas { width: 100%; height: 100%; }
    .ks-model { grid-template-columns: 1fr; gap: 24px; }
    .ks-comparison { padding: 24px; }
    .ks-comparison-head { flex-direction: column; gap: 8px; }
    .ks-prob-row { gap: 10px; }
    .ks-pipeline { grid-template-columns: 1fr; gap: 8px; }
    .ks-pipeline li { padding: 20px 0 24px 66px; }
    .ks-pipeline-number { position: absolute; left: 0; top: 20px; }
    .ks-gauge { max-width: 220px; }
}
@media (prefers-color-scheme: dark) { :root { --ks-green: #a8d96a; } .ks-art::before { background: radial-gradient(circle, rgba(168,217,106,.12), transparent 70%); } }
@media (prefers-reduced-motion: reduce) {
    .ks-method.is-in-view .ks-flow-dot, .ks-profit.is-animating .ks-deposit, .ks-results.is-animating .prediction-game { animation: none; }
    .ks-prob-track i { transition: none; }
}
.ks-multiplier { transition: opacity .25s; }
.ks-profit.is-animating .ks-multiplier { opacity: 0; }
@media (prefers-reduced-motion: reduce) { .ks-multiplier { transition: none; } }
