.explorer-shell{margin-top:1.3rem;background:#eef3f8;border:1px solid #d5e1ec;border-radius:10px;overflow:hidden}.explorer-placeholder{display:flex;align-items:center;justify-content:center;flex-direction:column;gap:.55rem;min-height:200px;text-align:center;padding:1.5rem}.explorer-placeholder strong{color:#294f6c;font-size:1rem}.explorer-placeholder span{font-size:.8rem;color:#6d7e82}.explorer-placeholder button{border:0;background:#dbeaf7;color:#1b4668;border-radius:6px;padding:.65rem 1rem;font-weight:700;cursor:pointer;margin-top:.4rem}.explorer-shell iframe{display:block;width:100%;height:950px;border:0;background:#eef3f8}@media(max-width:700px){.explorer-shell iframe{height:1100px}}.case-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.75rem;margin-top:1rem}.case-grid>div{padding:.85rem 1rem;border:1px solid #dfe8f1;border-radius:8px;background:#f5f8fb}.case-grid span{font:700 .68rem system-ui,sans-serif;letter-spacing:.1em;color:#4b7da4}.case-grid h3{margin:.35rem 0 0;font:700 .96rem system-ui,sans-serif;color:#254f6e}.case-grid p{font-size:.88rem;margin:.35rem 0 0}.explorer-section{padding:0 1.25rem 3rem;background:#fff}.explorer-heading{display:flex;align-items:center;justify-content:space-between;gap:1rem}.explorer-heading h2{font-size:1.35rem;font-weight:700;color:#172d37;margin:0}.explorer-heading a{font-size:.82rem;color:#316e9c}.explorer-section .explorer-shell{margin-top:.75rem}@media(max-width:700px){.case-grid{grid-template-columns:1fr}.explorer-heading{align-items:flex-start;flex-direction:column;gap:.25rem}}

.explorer-shell iframe{height:min(900px,calc(100vh - 40px));min-height:650px}
@media(max-width:700px){.explorer-shell iframe{height:min(900px,calc(100vh - 24px));min-height:650px}}

.cross-wam-heading{display:flex;align-items:center;justify-content:space-between;gap:1rem;margin-bottom:1.1rem}.cross-wam-heading h2{margin:0 0 .45rem}.cross-wam-heading p{margin:0;font-size:.88rem;color:#607283}.cross-wam-actions{display:flex;gap:.45rem;flex-shrink:0}.cross-wam-actions button{border:1px solid #c8dae9;border-radius:7px;padding:.55rem .8rem;background:#edf5fc;color:#245376;font:600 .82rem system-ui,sans-serif;cursor:pointer}.cross-wam-actions button:hover{background:#dcecf9}.cross-wam-actions button:focus-visible{outline:3px solid #2879b2;outline-offset:2px}.cross-wam-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.8rem}.cross-wam-card{margin:0;min-width:0;border:1px solid #dbe5ee;border-radius:9px;overflow:hidden;background:#f5f8fb}.cross-wam-card figcaption{display:flex;align-items:center;justify-content:space-between;gap:.35rem;padding:.8rem .7rem}.cross-wam-card h3{margin:0;font:600 .84rem system-ui,sans-serif;color:#254f6e}.cross-wam-card figcaption span{font:500 .68rem system-ui,sans-serif;color:#3b719c;background:#e5f0fa;border-radius:4px;padding:.2rem .35rem}.cross-wam-card video{display:block;width:100%;height:auto;aspect-ratio:16/9;background:#e6edf4;object-fit:contain}@media(max-width:850px){.cross-wam-grid{grid-template-columns:1fr}.cross-wam-card figcaption{padding:.75rem .85rem}.cross-wam-card h3{font-size:.92rem}}@media(max-width:550px){.cross-wam-heading{align-items:flex-start;flex-direction:column;gap:.8rem}}

.coevolution+.cross-wam{margin-top:1.8rem;padding-top:1.5rem;border-top:1px solid #dbe5ee}.coevolution-results{border:1px solid #dbe5ee;border-radius:8px;overflow:hidden;margin-bottom:1rem}.coevolution-results table{width:100%;font:.86rem/1.4 system-ui,sans-serif;border-collapse:collapse;color:#40566a}.coevolution-results th,.coevolution-results td{padding:.65rem .8rem;text-align:left;border-bottom:1px solid #e4ecf3}.coevolution-results thead{background:#edf5fc;color:#254f6e}.coevolution-results tbody th{font-weight:500}.coevolution-results tr:last-child th,.coevolution-results tr:last-child td{border-bottom:0}.coevolution-results td:last-child{font-weight:700;color:#316d9b}.coevolution-controls{display:flex;align-items:center;justify-content:space-between;gap:1rem;margin-bottom:.8rem}.coevolution-controls label{display:flex;align-items:center;gap:.5rem;font:.82rem system-ui,sans-serif;color:#607283}.coevolution select{padding:.4rem .55rem;border:1px solid #cadbea;border-radius:5px;background:white;color:#254f6e;font:.8rem system-ui,sans-serif}.coevolution select:focus-visible{outline:3px solid #2879b2;outline-offset:2px}.coevolution select:disabled{opacity:.7}.coevolution-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.8rem}.coevolution-grid .cross-wam-card h3{font-size:.88rem}@media(max-width:700px){.coevolution-grid{grid-template-columns:1fr}.coevolution-results table{font-size:.75rem}.coevolution-results th,.coevolution-results td{padding:.6rem .45rem}.coevolution-controls{gap:.6rem;flex-wrap:wrap}}@media(max-width:550px){}

.explorer-methods{display:flex;gap:0;margin:14px 0 16px;border:2px solid #85b6d8;border-radius:10px;overflow:hidden;max-width:740px}.explorer-methods button{flex:1;padding:16px 28px;border:0;background:#edf5fc;color:#28506b;font:700 24px/1.2 system-ui;cursor:pointer}.explorer-methods button+button{border-left:2px solid #85b6d8}.explorer-methods button[aria-pressed="true"]{background:#317bac;color:white}.explorer-methods button:focus-visible{outline:3px solid #163e5b;outline-offset:-5px}

.response-item+.response-item{margin-top:1.8rem;padding-top:1.5rem;border-top:1px solid #dbe5ee}.response-item ul,.response-item ol{margin:.8rem 0 .8rem 1.5rem}.response-item li{margin:.5rem 0;line-height:1.55}.response-item .coevolution-results{overflow-x:auto;margin-top:1rem}.experiment-media{margin:1.2rem 0}.experiment-media>.cross-wam-actions{justify-content:flex-end;margin-bottom:.8rem}.experiment-media .portrait-video{aspect-ratio:9/16;max-height:400px}.experiment-media .cross-wam-card h3{font-size:1rem}.response-item .coevolution-results table{font-size:.95rem}.response-item .coevolution-results p{margin:0}@media(max-width:700px){.response-item .coevolution-results table{font-size:.85rem}}@media(max-width:550px){}

@media(min-width:701px){}

.recording-toolbar{display:flex;align-items:center;flex-wrap:wrap;gap:1rem;padding:.8rem;background:#eaf3fb;border:1px solid #b9d3e8;border-radius:8px}.recording-toolbar label{display:flex;align-items:center;gap:.5rem}.experiment-media select{font-size:1rem;padding:.4rem;border:1px solid #abc8df;border-radius:5px;color:#254f6e;background:white}.experiment-media [data-recording-note]{font:500 1rem/1.5 system-ui;color:#254f6e}

.recording-rows{display:grid;gap:1rem}.trial-carousel-nav{display:flex;justify-content:flex-end;gap:.6rem;padding:0 .8rem .5rem}.trial-carousel-nav button{font-size:26px;font-weight:700;padding:.1rem 1rem;border:1px solid #94bad8;border-radius:6px;background:#e5f1fb;color:#245376;cursor:pointer}.trial-carousel-nav button:disabled{opacity:.35;cursor:default}.trial-carousel-track{display:flex;gap:12px;overflow-x:auto;scroll-snap-type:x mandatory;padding:0 .8rem .8rem}.trial-carousel-item{margin:0;flex:0 0 calc((100% - 12px)/2);min-width:0;scroll-snap-align:start}.trial-carousel-item>figcaption{font:600 1rem/1.4 system-ui;color:#254f6e;padding:.6rem 0}.trial-carousel-item video{border-radius:7px}.trial-carousel-track:focus-visible{outline:3px solid #317bac}@media(max-width:600px){.trial-carousel-item{flex-basis:100%}}

.real-to-sim-media{margin:1rem 0;padding:.8rem;border:1px solid #bfd7e9;border-radius:8px;background:#f5f9fc}.real-to-sim-media h3{font:700 1.1rem system-ui;color:#254f6e}.real-to-sim-media video{display:block;width:100%;aspect-ratio:16/9;background:#e6edf4}.real-to-sim-media figcaption{display:flex;justify-content:space-between;align-items:center}.real-to-sim-media [data-sim-speed]{padding:.3rem .7rem;font-weight:700;font-size:1rem;color:#245376;background:#dcecf9;border:1px solid #94bad8;border-radius:5px}

.affordance-equation {display:flex;align-items:center;gap:1rem;overflow-x:auto;padding:1.5rem 0;font-size:1.15em;}
.affordance-equation math {flex:1;min-width:440px;}
.equation-number {margin-left:auto;}
@media(max-width:550px){}

.trial-carousel-viewport{position:relative;}
.trial-carousel-viewport .trial-carousel-nav{position:absolute;inset:0;display:block;padding:0;pointer-events:none;z-index:2;}
.trial-carousel-viewport .trial-carousel-nav button{position:absolute;top:50%;transform:translateY(-50%);display:flex;align-items:center;justify-content:center;width:48px;height:48px;min-height:0;padding:0;border:0;border-radius:50%;background:#fff;color:#494949;box-shadow:0 2px 8px #0002;pointer-events:auto;}
.trial-carousel-nav button:first-child{left:6px;}.trial-carousel-nav button:last-child{right:6px;}
.trial-carousel-nav button span{display:block;width:0;height:0;border-top:9px solid transparent;border-bottom:9px solid transparent;}
.trial-carousel-nav button:first-child span{border-right:11px solid currentColor;margin-right:3px;}
.trial-carousel-nav button:last-child span{border-left:11px solid currentColor;margin-left:3px;}
.trial-carousel-viewport .trial-carousel-nav button:hover{background:#f5f5f5;}
.trial-carousel-viewport .trial-carousel-nav button:disabled{opacity:.4;}
@media(max-width:550px){}

.real-to-sim-media .trial-carousel-item video{aspect-ratio:auto;height:auto;width:100%;display:block;}

/* Three complete videos per carousel viewport. */
.trial-carousel-track{box-sizing:border-box;}
.trial-carousel-track>.trial-carousel-item{flex:0 0 calc((100% - 24px)/3);min-width:0;}

:is(#wam-experiments,#real-to-sim) .cross-wam-card{min-width:0;}
#real-to-sim .real-to-sim-media{margin-top:1.5rem;}

:is(#wam-experiments,#real-to-sim) .recording-rows{gap:3rem;}
:is(#wam-experiments,#real-to-sim) .cross-wam-card{border:0;background:#fff;overflow:visible;box-shadow:none;}
:is(#wam-experiments,#real-to-sim) .cross-wam-card>figcaption{background:none;border:0;justify-content:center;padding:0 0 1rem;}
:is(#wam-experiments,#real-to-sim) .cross-wam-card h3{color:#363636;font-family:inherit;text-align:center;}
:is(#wam-experiments,#real-to-sim) .trial-carousel-track{padding:0;gap:20px;scrollbar-width:none;}
:is(#wam-experiments,#real-to-sim) .trial-carousel-track::-webkit-scrollbar{display:none;}
:is(#wam-experiments,#real-to-sim) .trial-carousel-item{flex:0 0 calc((100% - 40px)/3);}
:is(#wam-experiments,#real-to-sim) .trial-carousel-item>figcaption{font-size:1rem;font-weight:400;line-height:1.5;font-family:inherit;text-align:center;color:#4a4a4a;min-height:2.7rem;padding:.4rem 0;}
:is(#wam-experiments,#real-to-sim) .trial-carousel-item video{display:block;width:100%;box-sizing:border-box;border:1px solid #bbb;border-radius:12px;}
:is(#wam-experiments,#real-to-sim) .trial-carousel-nav button:first-child{left:-8px;}
:is(#wam-experiments,#real-to-sim) .trial-carousel-nav button:last-child{right:-8px;}
.trial-carousel-dots{display:flex;justify-content:center;align-items:center;gap:8px;margin-top:1.2rem;min-height:24px;}
.trial-carousel-dots[hidden]{display:none;}
.trial-carousel-dots button{border:1.5px solid #d5d5d5;border-radius:50%;background:white;width:12px;height:12px;padding:0;cursor:pointer;box-shadow:0 2px 5px #0001;}
.trial-carousel-dots button[aria-current=true]{width:16px;height:16px;border-width:2px;}

#real-to-sim .real-to-sim-media{border:0;background:white;padding:0;}
:is(#wam-experiments,#real-to-sim) .trial-carousel-item>figcaption{font-size:1.2rem;font-weight:600;justify-content:center;gap:.7rem;}
#real-to-sim .trial-carousel-item>figcaption{min-height:3.2rem;}
#real-to-sim .trial-carousel-item video{aspect-ratio:auto;}
#wam-experiments .recording-toolbar{background:white;border:0;justify-content:center;}
#wam-experiments [data-recording-note]{text-align:center;font-family:inherit;color:#4a4a4a;}
