/* Look follows method.ovchinnikov.co */
* {box-sizing:border-box}
:root {--bg:#f6f7f9;--ink:#202b3b;--muted:#64748b;--line:#e3e7ed;--soft:#e9edf2;--accent:#188477;
  --s1:#2a78d6;--s2:#eb6834;--s3:#1baf7a;--s4:#eda100;--s5:#e87ba4;--base:#52514e;--grey:#b7c2ce}
body {margin:0;background:var(--bg);color:var(--ink);font-family:Inter,system-ui,sans-serif}
main {max-width:1250px;margin:auto;padding:30px 28px 60px}
h1 {font-size:clamp(34px,4vw,48px);font-weight:650;letter-spacing:-1.2px;margin:10px 0 24px;line-height:1.15}
h2 {font-size:clamp(26px,3vw,34px);line-height:1.25;margin:48px 0 18px}
h3 {font-size:22px;margin:26px 0 10px}
p {font-size:clamp(18px,1.8vw,21px);line-height:1.6}
a {color:var(--accent)}
.eyebrow {font-size:12px;letter-spacing:2px;color:var(--accent);font-weight:700;text-transform:uppercase}
.intro {color:var(--muted);max-width:860px;margin-bottom:22px}

/* tabs */
.tabbar {position:sticky;top:0;z-index:40;background:var(--bg);border-bottom:1px solid var(--line)}
.tabbar-inner {max-width:1250px;margin:auto;padding:10px 28px;display:flex;align-items:center;gap:16px;flex-wrap:wrap}
.tabbar .site {font-weight:700;font-size:14px;color:var(--muted);margin-right:8px}
.tabs {display:flex;gap:4px;background:var(--soft);border-radius:10px;padding:5px;flex-wrap:wrap}
.tabs a {padding:9px 16px;border-radius:7px;font-size:15px;color:var(--ink);text-decoration:none}
.tabs a.active {background:white;box-shadow:0 1px 4px #ccd2da;font-weight:650}
.tab {display:none} .tab.active {display:block}

/* controls */
.controls {display:flex;gap:18px;flex-wrap:wrap;margin:22px 0;align-items:flex-end}
.control {flex:1;min-width:min(160px,100%);max-width:250px}
.control.wide {max-width:330px}
.control label {display:block;font-size:12px;font-weight:650;margin-bottom:7px;color:var(--muted)}
select {width:100%;height:38px;border:1px solid var(--grey);border-radius:7px;background:white;font:inherit;font-size:15px;padding:0 10px;color:var(--ink)}
.switch-row {display:flex;align-items:center;gap:12px;margin:18px 0 12px;flex-wrap:wrap}
.switch {display:flex;gap:4px;background:var(--soft);border-radius:10px;padding:5px;flex-wrap:wrap}
.switch label {padding:9px 14px;border-radius:7px;cursor:pointer;font-size:14px}
.switch label:has(input:checked) {background:white;box-shadow:0 1px 4px #ccd2da;font-weight:650}
.switch input {margin-right:8px;accent-color:var(--accent)}
.switch-row .sw-label {font-size:12px;font-weight:650;color:var(--muted)}
.seed-controls {display:flex;gap:8px;align-items:flex-end;flex-wrap:wrap}
.seed-controls button {height:38px;min-width:40px;border:1px solid var(--grey);border-radius:7px;background:white;font-size:20px;cursor:pointer;color:var(--ink)}
.seed-controls button:disabled {opacity:.4;cursor:default}
.check {display:flex;align-items:center;gap:8px;font-size:15px;height:38px}
.check input {accent-color:var(--accent);width:18px;height:18px}

/* help tooltips */
.help {position:relative;display:inline-block}
.help button {border:1px solid var(--grey);border-radius:50%;background:white;width:34px;height:34px;font-size:18px;cursor:help;color:var(--muted)}
.tooltip {display:none;position:absolute;z-index:30;left:0;top:38px;width:min(560px,90vw);background:var(--ink);color:white;
  padding:20px 24px;border-radius:12px;font-size:15px;box-shadow:0 8px 30px #0002;line-height:1.6}
.tooltip p {font-size:inherit;margin:0 0 10px} .tooltip p:last-child {margin:0}
.tooltip.right {left:auto;right:0}
.headline {display:grid;grid-template-columns:repeat(auto-fit,minmax(min(300px,100%),1fr));gap:16px;margin:0 0 14px;max-width:1000px}
.tile {display:flex;flex-direction:column;gap:4px;text-align:left;font:inherit;color:var(--ink);background:white;border:1px solid var(--line);border-radius:10px;padding:14px 18px;cursor:pointer}
.tile:hover,.tile:focus-visible {border-color:var(--accent)}
.tile .lab {font-size:13px;font-weight:650;color:var(--muted)}
.tile .big {font-size:30px;font-weight:650;line-height:1.25}
.tile .sub {font-size:14px;color:var(--muted)}
.keyline {font-size:17px;line-height:1.6;max-width:1000px;margin:0 0 12px}
.tile:not(button) {cursor:default}
.tile.link {cursor:pointer}
.formula {font-family:ui-monospace,Menlo,monospace;font-size:15px;background:white;border:1px solid var(--line);border-radius:8px;padding:10px 14px;display:inline-block;margin:4px 0 8px}
.note a {color:var(--accent)}
footer.agents {max-width:1250px;margin:0 auto;padding:0 28px 40px;font-size:13px}
footer.agents a {color:var(--muted)}
.hist-pick {display:flex;align-items:center;gap:6px}
.hist-pick .hp-label {font-size:12px;font-weight:650;color:var(--muted);margin-right:2px}
.hist-pick select {width:auto;min-width:150px;height:36px;font-size:14px}
.hist-pick button {height:36px;min-width:36px;border:1px solid var(--grey);border-radius:7px;background:white;font-size:18px;cursor:pointer;color:var(--ink)}
.hist-pick button:disabled {opacity:.4;cursor:default}
ol.findings {max-width:1000px;padding-left:24px;margin:8px 0 14px}
ol.findings li {margin:0 0 12px;line-height:1.6}
.footnotes {font-size:13px;line-height:1.55;color:var(--muted);border-top:1px solid var(--line);margin:36px 0 0;padding:12px 0 0 18px;max-width:1000px}
.footnotes li {margin-bottom:8px}
th sup a, .footnotes a {color:var(--accent);text-decoration:none}
.howto {font-size:15px;line-height:1.6;max-width:1000px;background:white;border:1px solid var(--line);border-radius:10px;padding:12px 18px;margin:0 0 8px}
.label-row {display:flex;align-items:center;gap:7px;margin-bottom:7px}
.label-row label {margin-bottom:0}
.help.mini button {width:19px;height:19px;font-size:12px;line-height:1;padding:0}
.help.mini .tooltip {top:25px}
@media(max-width:650px) {.help.mini .tooltip {top:20vh}}
.help:hover .tooltip,.help:focus-within .tooltip {display:block}
@media(max-width:650px) {.tooltip {position:fixed;left:5vw!important;right:auto;top:20vh;max-height:70vh;overflow:auto}}

/* panels */
.observer {display:grid;grid-template-columns:minmax(0,1fr) 400px;background:white;border:1px solid var(--line);border-radius:14px;overflow:hidden}
.observer .plot {min-height:440px}
.metrics {padding:18px 16px;border-left:1px solid var(--soft)}
.panel {background:white;border:1px solid var(--line);border-radius:14px;padding:10px 14px;margin-top:14px}
.grid2 {display:grid;grid-template-columns:1fr 1fr;gap:14px}
.grid2 .panel {margin-top:0}
.plot {width:100%;min-height:380px}
.plot.short {min-height:300px}
table {width:100%;border-collapse:collapse;font-size:14px;font-variant-numeric:tabular-nums}
th,td {text-align:right;padding:9px 6px;border-bottom:1px solid #edf0f4;vertical-align:top}
th:first-child,td:first-child {text-align:left}
th {font-weight:650;font-size:12px;color:var(--muted)}
.metrics table {font-size:15px}
.metrics td.v {font-weight:600}
.swatch {display:inline-block;width:12px;height:3px;border-radius:2px;margin-right:7px;vertical-align:middle}
.swatch.dash {background:repeating-linear-gradient(90deg,var(--base) 0 4px,transparent 4px 7px)!important}
.takeaway {border-left:3px solid var(--accent);padding:4px 18px;margin-top:20px;font-size:clamp(18px,1.9vw,22px);line-height:1.6;max-width:1000px}
.note {font-size:15px;color:var(--muted);line-height:1.6;margin:8px 0}
.caption {font-size:13px;color:var(--muted);line-height:1.5;margin:6px 2px 4px}
.info-note {background:#e6f3f1;color:var(--ink);padding:16px 22px;border-radius:10px;margin:18px 0;font-size:16px;line-height:1.6}
.info-note p {margin:0 0 8px;font-size:inherit} .info-note p:last-child {margin:0}
.warn-note {background:#fff4e0;border-radius:10px;padding:14px 20px;margin:14px 0;font-size:15px;line-height:1.6}
.limits li {font-size:15px;line-height:1.6;color:var(--ink);margin-bottom:6px}
.pos {color:#0f7a3a} .neg {color:#b4372f}
.tag {display:inline-block;font-size:12px;padding:2px 8px;border-radius:6px;background:var(--soft);color:var(--muted);margin-left:6px}
.scroll {overflow-x:auto}
.loading {color:var(--muted);font-size:15px;padding:20px}

/* ablations */
.chips {display:flex;flex-wrap:wrap;gap:8px;margin:10px 0 24px}
.chips a {font-size:14px;padding:7px 12px;border-radius:8px;background:white;border:1px solid var(--line);color:var(--ink);text-decoration:none}
.chips a:hover {border-color:var(--accent)}
.block {background:white;border:1px solid var(--line);border-radius:14px;padding:6px 22px 18px;margin:26px 0;scroll-margin-top:70px}
.block h2 {margin:22px 0 6px;font-size:clamp(24px,2.6vw,30px)}
.block .question {font-size:19px;color:var(--muted);margin:0 0 10px}
.block .controls {margin:12px 0}
.block .panel {border:0;padding:0;margin-top:6px}
.meta-dl {display:grid;grid-template-columns:110px 1fr;gap:4px 14px;font-size:13px;line-height:1.5;color:var(--muted);margin:10px 0}
.meta-dl dt {font-weight:650}
.meta-dl dd {margin:0;overflow-wrap:anywhere}
details {margin-top:10px}
details summary {cursor:pointer;font-size:14px;font-weight:650;color:var(--accent);padding:6px 0}
.datatable {max-height:460px;overflow:auto;border:1px solid var(--soft);border-radius:8px;margin-top:8px}
.datatable table {font-size:12px}
.datatable th {position:sticky;top:0;background:white;z-index:1}
.datatable td,.datatable th {padding:6px 8px;white-space:nowrap}
.notes li {font-size:14px;line-height:1.55;margin-bottom:5px;color:var(--ink)}
.disc {border-left:3px solid #c98500;padding:2px 14px;margin:10px 0;font-size:15px;line-height:1.55}

@media(max-width:850px) {.observer,.grid2 {grid-template-columns:1fr}.metrics {border-left:0;border-top:1px solid var(--soft)}
  main {padding:20px 16px 40px}.tabbar-inner {padding:8px 16px}.block {padding:4px 14px 14px}}

/* ablations: the four changes and the test matrix */
.changes {display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin:8px 0 18px}
.change {background:white;border:1px solid var(--line);border-radius:12px;padding:14px 16px;display:flex;flex-direction:column;gap:4px;font-size:15px;line-height:1.45}
.change .num {font-size:12px;font-weight:700;color:var(--accent)}
.change b {font-size:17px}
.change span:last-child {color:var(--muted)}
table.matrix {font-size:15px}
table.matrix th {font-size:12px}
table.matrix td, table.matrix th {padding:10px 8px}
table.matrix .c {text-align:center}
table.matrix td.on {color:var(--accent);font-weight:700}
table.matrix td.off {color:#b7c2ce}
#concl-table .sel {background:var(--soft)}
#concl-table th.sel {color:var(--ink)}
table.matrix .uses {display:block;font-size:13px;color:var(--muted);margin-top:2px}
.muted {color:var(--muted)}
@media(max-width:850px) {.changes {grid-template-columns:1fr 1fr}}
h2.chapter {border-top:2px solid var(--line);padding-top:26px;margin-top:44px;font-size:24px}
