.ladder{--ink:#132e30;--line:#cbd7ce;--lime:#d6f587;width:94%;max-width:1900px;margin:1.5rem auto 4rem;color:var(--ink);font-family:system-ui,sans-serif}
.ladder *{box-sizing:border-box}.ladder a{color:#075545;text-underline-offset:.2em}.ladder h1,.ladder h2,.ladder h3{color:inherit;letter-spacing:-.035em;line-height:1.04;margin:0}
.ladder h1{font-size:clamp(2.8rem,5.7vw,6.9rem);max-width:14ch}.ladder h2{font-size:clamp(1.6rem,2.2vw,2.7rem)}
.ladder p{line-height:1.55;max-width:70ch}.ladder .mast{background:#123938;color:white;display:grid;grid-template-columns:3fr 1fr;overflow:hidden}.ladder .mast>div{padding:clamp(1.25rem,3vw,4rem)}.ladder .mast p{color:#e5eee4;font-size:1.1rem}.ladder figure{margin:0;position:relative;min-height:200px}.ladder figure img{width:100%;height:100%;position:absolute;object-fit:cover;object-position:50% 32%}.ladder figcaption{position:absolute;bottom:0;background:#102522ed;color:white;padding:.45rem .65rem;font-size:.75rem}.ladder figcaption a{color:white}
.ladder .mast small{display:block;color:var(--lime);font-weight:700;margin-bottom:.75rem}.ladder .layout{display:grid;grid-template-columns:minmax(0,1.25fr) minmax(0,1fr);gap:clamp(1rem,2vw,3rem);align-items:start;padding-top:1.4rem}.ladder .box{border:1px solid var(--line);padding:clamp(1rem,2vw,2.4rem);background:#fff;color:var(--ink);margin-bottom:1rem}.ladder .race{background:#f0f5e7;border-top:5px solid #387653}.ladder .options{display:flex;gap:.65rem;flex-wrap:wrap;margin:.8rem 0}.ladder .options label{flex:1;min-width:0}.ladder label{display:block;font-size:.88rem;font-weight:650}.ladder :is(input,select,button){font:inherit;max-width:100%;border:1px solid #8a9b92;border-radius:.35rem;background:white;color:#183638;min-height:44px;padding:.45rem .65rem}.ladder label :is(input,select){width:100%;display:block;margin:.3rem 0 .55rem}.ladder button{cursor:pointer;font-size:.88rem;font-weight:700}.ladder button:hover{background:#ddf2bb}.ladder :focus-visible{outline:3px solid #a85b00;outline-offset:2px}
.ladder table{width:100%;border-collapse:collapse;font-variant-numeric:tabular-nums}.ladder :is(th,td){text-align:left;font-size:clamp(.85rem,1vw,1.12rem);padding:.72rem .5rem;border-bottom:1px solid var(--line)}.ladder thead th{background:#173b38;color:white}.ladder td:nth-child(n+3){white-space:nowrap}.ladder th[scope=row]{font-weight:650}.ladder #race-chart div{margin:.45rem 0}.ladder #race-chart i{display:block;background:#267768;height:.7rem;border-radius:.1rem}.ladder #race-chart div+div i{background:#915034}.ladder output{display:block;font-weight:750}.ladder [hidden]{display:none!important}.ladder .result{background:#173b38;color:#fff;padding:1rem}.ladder .jump{display:flex;gap:1rem;padding:.75rem 0;flex-wrap:wrap}.ladder .jump a{font-weight:bold}
@media(max-width:800px){.ladder .layout{display:flex;flex-direction:column}.ladder .layout>*{width:100%}.ladder .sheet{order:2}.ladder .mast{grid-template-columns:1fr 25%}.ladder figure{min-height:0}.ladder .mast small{font-size:.75rem}.ladder .mast p{font-size:.93rem}.ladder figcaption{font-size:.64rem}.ladder :is(th,td){padding:.5rem .22rem}.ladder .options label{flex-basis:44%}.ladder .jump{font-size:.85rem}}
@media(max-width:450px){.ladder .mast{display:block}.ladder figure{display:none}.ladder th:nth-child(4),.ladder td:nth-child(4){display:none}}
.ladder .jump{background:#f5f8ee;padding:.85rem 1rem}.ladder .jump a{color:#104b3d}.ladder #race-target{margin:1rem 0;font-weight:700;line-height:1.48}.ladder #worlds-ledger{border-top:5px solid #986445}.ladder #worlds-ledger table{margin:.8rem 0}.ladder #worlds-ledger details{margin-top:1rem}.ladder #worlds-ledger summary{cursor:pointer;font-weight:bold}.ladder #race-chart{margin-top:1rem}
@media(max-width:800px){.ladder .sheet{order:0}.ladder .sheet tbody{display:table-row-group}.ladder .sheet{max-height:62vh;overflow:auto}.ladder .sheet thead{position:sticky;top:0}.ladder .options:has(#race-player){display:block}.ladder #world-moves td:last-child,.ladder #worlds-ledger th:last-child{display:table-cell}}
.ladder{background:#f0f3eb}.ladder .layout{padding:clamp(.65rem,1.3vw,1.5rem);gap:clamp(.75rem,1.6vw,2rem)}.ladder .layout.lower{padding-top:0}.ladder .sheet{max-height:clamp(640px,80vh,1050px);overflow:auto}.ladder .sheet thead{position:sticky;top:0}.ladder .sheet:has(#ladder-search:not(:placeholder-shown)){max-height:none}.ladder #race-chart i{height:.45rem}.ladder #race-chart span{font-variant-numeric:tabular-nums}
@media(max-width:800px){.ladder .sheet{max-height:62vh}.ladder .layout{display:grid;grid-template-columns:minmax(0,1fr)}.ladder .sheet:has(#ladder-search:not(:placeholder-shown)){max-height:62vh}.ladder .layout.lower{padding-top:0}}
.ladder .race label,.ladder .race #selected-exposure,.ladder .race p{color:#193c36}.ladder .race label{font-size:1rem}.ladder .race output{font-size:clamp(1.03rem,1.2vw,1.35rem)}.ladder .race .result{background:#103c33;color:white}
.ladder #race-chart i{height:.8rem}.ladder #race-chart span{display:block;margin-bottom:.2rem}.ladder #race-chart{border-bottom:1px solid #bacbb7;padding-bottom:.6rem}.ladder #rival-balance{margin-bottom:.5rem}.ladder #race-target{border-left:4px solid #43834a;padding:.6rem .9rem;background:white}
