/* Small notebook page; the simulation uses the same BOZOS colours. */
:root { --paper:#fbfaf6; --ink:#34383a; --navy:#233b50; --red:#90574a; --muted:#626660; --line:#d8d7ce; --wash:#f1efe8; --green:#476757; --sans:Arial,Helvetica,sans-serif; --serif:Georgia,'Times New Roman',serif; color-scheme:light; }
* { box-sizing:border-box; }
html { scroll-padding-top:16px; }
body { margin:0; background:var(--paper); color:var(--ink); font:17px/1.65 var(--serif); }
a { color:var(--navy); text-underline-offset:3px; text-decoration-thickness:1px; }
a:hover { color:var(--red); }
button,input,select { font:14px/1.4 var(--sans); color:var(--ink); }
button,a,input,select,summary { touch-action:manipulation; }
button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,summary:focus-visible { outline:2px solid var(--red); outline-offset:4px; }
button,input,select { border:1px solid #a6a69c; background:#fffdf8; border-radius:2px; min-height:36px; }
button { cursor:pointer; padding:7px 12px; }
button:hover { background:var(--wash); }
button:disabled { opacity:.45; cursor:default; }
input[type=number] { padding:6px 8px; width:96px; }
input[type=range] { min-height:30px; width:100%; accent-color:var(--navy); margin:0; }
select { padding:6px 28px 6px 8px; max-width:100%; min-width:185px; }
.shell { width:min(900px,calc(100% - 48px)); margin:auto; }
.masthead { display:flex; align-items:baseline; gap:24px; padding:24px 0 14px; border-bottom:1px solid var(--line); font:13px/1.6 var(--sans); }
.masthead>a { font:600 18px/1.4 var(--serif); }
.masthead nav { display:flex; flex-wrap:wrap; gap:8px 18px; }
.intro { max-width:710px; padding:23px 0 18px; }
h1,h2,h3 { font-family:var(--serif); color:var(--navy); font-weight:400; line-height:1.3; }
h1 { font-size:29px; margin:0 0 12px; }
h2 { font-size:23px; margin:0 0 12px; }
h3 { font-size:20px; margin:0 0 8px; }
p { margin:0 0 14px; }
.intro p { margin-bottom:10px; }
.intro-note { font-size:14px; color:var(--muted); }
.experiment { border-top:1px solid var(--line); padding-top:16px; }
.experiment-top,.section-head { display:flex; align-items:baseline; justify-content:space-between; gap:16px; }
.experiment-top h2,.section-head h2 { margin:0; }
.annotation,.section-head>span { font:12px/1.5 var(--sans); color:var(--muted); }
.controls { display:flex; flex-wrap:wrap; gap:10px; align-items:end; padding:13px 0 9px; font-family:var(--sans); }
.controls>label:not(.toggle) { display:flex; flex-direction:column; gap:3px; font-size:12px; }
.toggle { margin-left:auto; display:flex; align-items:center; gap:7px; font-size:12px; min-height:36px; cursor:pointer; }
.toggle input { width:16px; height:16px; min-height:16px; accent-color:var(--navy); }
.scenario-description { font:12px/1.6 var(--sans); color:var(--muted); margin:0 0 13px; }
.error { font:13px/1.6 var(--sans); color:#8d3827; margin:0; }
.error:not(:empty) { padding:6px 0 12px; }
.markets { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); border-top:1px solid var(--line); border-bottom:1px solid var(--line); }
.market { padding:16px 18px 12px; min-width:0; font-family:var(--sans); }
.market-free { border-right:1px solid var(--line); }
.treatment { display:block; font-size:11px; color:var(--muted); margin-bottom:4px; }
.market-heading h3 { margin-bottom:4px; }
.market-heading p { font-size:12px; color:var(--muted); margin:0; }
.score-block { margin:15px 0 9px; }
.metric-label { font-size:11px; color:var(--muted); }
.score { font:normal 35px/1.25 var(--serif); color:var(--red); font-variant-numeric:tabular-nums; }
.score span { font-size:.6em; margin-left:2px; }
.market-rule .score { color:var(--navy); }
.score-detail { font-size:11px; color:var(--muted); font-variant-numeric:tabular-nums; }
.market-scene { width:100%; height:200px; }
.market-scene svg,.plot svg { width:100%; height:100%; overflow:visible; }
.trade-note { border-top:1px solid var(--line); padding:10px 0 8px; min-height:78px; font-size:12px; line-height:1.6; }
.trade-note strong { font-weight:600; }
.trade-note .profit { font-size:11px; color:var(--muted); }
.trade-note .loss { color:var(--red); }
.plot { height:114px; width:100%; }
.playback { display:flex; gap:8px; align-items:center; margin:12px 0 14px; }
.scrub-label { flex:1; min-width:80px; display:flex; flex-direction:column; margin:0 9px; font:11px/1.3 var(--sans); color:var(--muted); }
.replay-caption { font:12px/1.6 var(--sans); color:var(--muted); margin:10px 0 0; }
.score-explainer { max-width:740px; font-size:15px; line-height:1.7; margin:0 0 12px; }
.horizon-comparison { width:100%; border-collapse:collapse; margin:18px 0 0; font:13px/1.6 var(--sans); font-variant-numeric:tabular-nums; }
.horizon-comparison caption { text-align:left; font:normal 19px/1.5 var(--serif); color:var(--navy); margin-bottom:8px; }
.horizon-comparison th,.horizon-comparison td { border-bottom:1px solid var(--line); padding:9px 10px 9px 0; text-align:left; }
.horizon-comparison th { font-weight:400; }
.horizon-comparison thead { color:var(--muted); }
.horizon-comparison td { white-space:nowrap; }
.finding { max-width:740px; margin:30px 0 23px; }
.finding-copy p:last-child { font-size:14px; color:var(--muted); }
.batch-section { margin-bottom:24px; }
.batch-head,.batch-row { display:grid; grid-template-columns:1.35fr .75fr .75fr 1fr; gap:14px; align-items:center; }
.batch-head { font:12px/1.5 var(--sans); color:var(--muted); padding:14px 0 8px; border-bottom:1px solid var(--line); }
.batch-row { width:100%; border:0; border-bottom:1px solid var(--line); border-radius:0; padding:12px 0; text-align:left; min-height:66px; background:transparent; }
.batch-row.selected { background:var(--wash); }
.batch-name { font-weight:600; text-decoration:underline; text-underline-offset:3px; }
.batch-name small { display:block; font-size:11px; color:var(--muted); font-weight:400; margin-top:3px; text-decoration:none; }
.batch-number { font:normal 21px var(--serif); color:var(--navy); font-variant-numeric:tabular-nums; }
.batch-number.free { color:var(--red); }
.batch-range { font-size:12px; color:var(--muted); }
.footnote { font:12px/1.7 var(--sans); color:var(--muted); margin:12px 0; }
.important-note { font-size:15px; line-height:1.7; margin:18px 0; }
.price-section { margin-bottom:26px; }
details { border-top:1px solid var(--line); padding:12px 0; }
details:last-child { border-bottom:1px solid var(--line); }
summary { font:14px/1.6 var(--sans); cursor:pointer; color:var(--navy); }
details>p { font-size:15px; margin:15px 0 10px; }
.price-plots { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); gap:26px; }
.price-plots svg { width:100%; display:block; overflow:visible; }
.method-grid { max-width:740px; padding:7px 0 16px; }
.method-grid h3 { font-size:19px; margin:15px 0 5px; }
.method-grid p { font-size:16px; margin:0 0 12px; }
.method-detail { font-size:15px; line-height:1.75; max-width:740px; }
.method-detail h4 { font:600 13px/1.5 var(--sans); margin:18px 0 7px; }
.method-detail p { margin:14px 0; }
.schedules { font:12px/1.8 'Courier New',monospace; overflow-wrap:anywhere; background:var(--wash); padding:10px 12px; }
.download-row { display:flex; gap:12px 18px; flex-wrap:wrap; align-items:center; margin:20px 0; font:13px/1.6 var(--sans); }
.download-row button { font-size:13px; }
.sources { font-size:15px; line-height:1.75; padding-left:23px; }
.sources li { margin:14px 0; }
footer { border-top:1px solid var(--line); margin-top:28px!important; padding:18px 0 28px; font:12px/1.7 var(--sans); color:var(--muted); }
footer p { margin:0 0 7px; }
.sr-only { position:absolute; width:1px; height:1px; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; }
.skip { position:absolute; top:-100px; left:15px; background:var(--navy); color:white; padding:8px; z-index:9; }
.skip:focus { top:8px; }
@media(max-width:700px) {
 .shell { width:calc(100% - 32px); }
 .controls .toggle { margin-left:0; }
 .section-head { align-items:start; flex-direction:column; gap:5px; }
 .batch-head,.batch-row { gap:10px; }
 .market { padding:14px 12px 10px; }
}
@media(max-width:560px) {
 body { font-size:16px; }
 .masthead { gap:20px; padding-top:18px; }
 .masthead nav { gap:6px 13px; font-size:12px; }
 h1 { font-size:27px; }
 .intro { padding:20px 0 13px; }
 .experiment-top { flex-direction:column; gap:5px; }
 .controls>label:first-child { flex:1; min-width:150px; }
 select { min-width:0; width:100%; }
 .seed-label input { width:80px; }
 .toggle { flex-basis:100%; }
 .markets { grid-template-columns:1fr; }
 .market { padding:14px 12px 12px; }
 .market-free { border-right:0; border-bottom:1px solid var(--line); }
 .playback { flex-wrap:wrap; gap:8px; }
 .playback button { flex:1; white-space:nowrap; padding:8px; font-size:12px; }
 .scrub-label { order:4; flex-basis:100%; margin:7px 0 0; }
 .batch-head,.batch-row { grid-template-columns:1.3fr .9fr .9fr; }
 .batch-head span:last-child { display:none; }
 .batch-row { gap:5px 10px; }
 .batch-range { grid-column:2/4; font-size:11px; }
 .batch-range::before { content:'No-loss middle 90%: '; }
 .batch-name { font-size:12px; grid-row:1/3; }
 .batch-name small { font-size:10px; }
 .batch-number { font-size:20px; }
 .price-plots { grid-template-columns:1fr; gap:18px; }
}

.read-next { margin: 36px 0; padding-top: 22px; border-top: 1px solid var(--line); max-width: 640px; }
.read-next h2 { font-size: 18px; }
