:root{font-family:Arial,Helvetica,sans-serif;color:#193f3c;background:#f3f2ec;font-synthesis:none}*{box-sizing:border-box}body{margin:0}button,select,input{font:inherit}button,select{color:inherit}button{border:1px solid #ccd5cc;background:#fafaf6;padding:9px 13px;border-radius:6px;cursor:pointer}button:hover{background:#e1e9dd}button:focus-visible,select:focus-visible,input:focus-visible{outline:3px solid #b9833c;outline-offset:3px}header{height:84px;display:flex;align-items:center;justify-content:space-between;padding:0 32px;border-bottom:1px solid #d8ded4;background:#fafaf7}.brand{display:flex;gap:12px;align-items:center;text-decoration:none;color:inherit;font-size:17px;letter-spacing:2px}.brand small{display:block;font-size:8px;letter-spacing:1.8px;margin-top:5px}.mark{display:grid;place-items:center;border:1px solid #526d58;border-radius:50%;width:42px;height:42px;font:19px Georgia;letter-spacing:-2px}.header-note{font-size:10px;letter-spacing:2px;color:#708179}header button{font-size:12px;background:transparent}main{display:grid;grid-template-columns:308px 1fr;min-height:calc(100vh - 84px)}aside{padding:27px 27px 22px;background:#fafaf7;border-right:1px solid #d8ded4;max-height:calc(100vh - 84px);overflow:auto}.eyebrow{font-size:9px;letter-spacing:2px;font-weight:600;color:#778777;margin:0 0 13px}h1{font:42px/1.02 Georgia,serif;letter-spacing:-1.5px;margin:0 0 16px}p{line-height:1.55}.intro{font-size:12px;color:#62776e;margin:0 0 22px}.tabs{display:flex;background:#e9ede5;padding:4px;border-radius:7px;gap:2px}.tabs button{flex:1;padding:8px 0;font-size:11px;border:0;background:transparent}.tabs button.active{background:#244e45;color:#fff;box-shadow:0 2px 6px #193b3922}section{padding:19px 0;border-bottom:1px solid #dde3d8}h2{font-size:12px;margin:0 0 15px;font-weight:600}.field{font-size:11px;display:block}.field select{margin-top:8px;width:100%}select{border:1px solid #d3dccf;border-radius:5px;background:#fff;padding:9px;font-size:11px;max-width:100%}.range{display:block;font-size:11px;margin-top:15px}.range output{float:right;font-weight:bold}.range input{display:block;width:100%;margin:12px 0 0;accent-color:#315f4d;height:4px}.hint{font-size:10px;color:#778477;line-height:1.5;margin:10px 0}.check{font-size:11px;display:flex;gap:8px;align-items:center;margin:11px 0}.check input{accent-color:#315f4d}.playrow{display:flex;gap:7px;margin-top:16px}.primary{background:#244e45;color:#fff;flex:1;font-size:11px}.primary:hover{background:#356957}#detail{font-size:11px;color:#69796f}#detail strong{color:#294c3d;font-size:18px}#detail p{margin:10px 0}.study-link{display:block;font-size:11px;margin:20px 0 0;color:#315f4d}.workspace{position:relative;display:flex;flex-direction:column;min-width:0;height:calc(100vh - 84px);background:radial-gradient(ellipse at 50% 36%,#f8f8f0,#e7e9df)}.scene-header{display:flex;justify-content:space-between;position:absolute;z-index:2;top:24px;left:28px;right:28px;pointer-events:none;align-items:center;font-size:10px;color:#778276}.pill{background:#fff9;border:1px solid #d1dbca;padding:9px 11px;border-radius:20px;font-size:8px;letter-spacing:1px;color:#557052}.pill i{display:inline-block;width:5px;height:5px;border-radius:50%;background:#73926b;margin-right:7px}#viewport{position:relative;flex:1;min-height:390px;overflow:hidden;touch-action:none}canvas{display:block;width:100%;height:100%}#loading{position:absolute;top:45%;width:100%;text-align:center;font:20px Georgia;z-index:3}#labels-layer{position:absolute;inset:0;pointer-events:none;overflow:hidden}.map-label{position:absolute;pointer-events:auto;white-space:nowrap;font-size:10px;border:1px solid #c5cebd;border-radius:4px;padding:5px 8px;background:#fffef5e8;box-shadow:0 2px 5px #29442a0a;transform:translate(-50%,-100%)}.map-label::after{content:'';position:absolute;left:50%;top:100%;height:8px;border-left:1px solid #6d8062}.map-label.selected{background:#214c43;color:#fff;z-index:4}.view-controls{position:absolute;left:26px;top:76px;z-index:3;display:flex;gap:4px}.view-controls button{background:#fffffff0;font-size:11px;padding:7px 10px}.legend{position:absolute;right:28px;bottom:210px;width:177px;background:#fafaf7df;border:1px solid #d7dfd0;border-radius:6px;padding:13px;pointer-events:none;font-size:8px;letter-spacing:1px}#ramp{height:7px;border-radius:2px;margin:10px 0 5px;background:linear-gradient(90deg,#3e7764,#86a170,#c7bd78,#ba8452)}#ticks{display:flex;justify-content:space-between;font-size:9px}.scene-foot{display:flex;justify-content:space-between;padding:0 28px 12px;font-size:9px;color:#71826e;gap:15px}#north{font-weight:bold;font-size:14px}.evidence-note{background:#e4e9dd;border-top:1px solid #d5ddcf;padding:10px 28px;font-size:10px;color:#5a715c;min-height:36px}.profile{display:flex;gap:30px;background:#fafaf7;padding:18px 28px;border:0;min-height:152px}.profile>div:first-child{width:210px;flex-shrink:0}.profile label{font:17px Georgia;display:block;margin-bottom:9px}.profile select{width:100%;font-size:10px}.profile-chart{flex:1;min-width:0}.profile svg{width:100%;height:105px;display:block}.profile-chart p{font-size:9px;color:#768070;margin:0}dialog{max-width:640px;width:calc(100% - 36px);border:1px solid #bbc9b6;border-radius:12px;padding:34px;background:#fafaf7;color:#264d42;box-shadow:0 15px 80px #17342f33}dialog::backdrop{background:#203b3266;backdrop-filter:blur(3px)}dialog h2{font:30px Georgia}.close{float:right}dialog p,dialog li,dialog a{font-size:13px;line-height:1.65}dialog a{color:#315f4d}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}#tooltip{position:absolute;background:#183f38;color:#fff;padding:9px;border-radius:5px;font-size:11px;pointer-events:none}#water-controls{display:none}body[data-mode=water] #water-controls,body[data-mode=underground] #water-controls{display:block}@media(min-width:1500px){main{grid-template-columns:345px 1fr}aside{padding:32px}h1{font-size:50px}}@media(max-width:900px){.header-note{display:none}main{grid-template-columns:250px 1fr}aside{padding:20px}h1{font-size:36px}.profile{gap:12px;padding:15px}.profile>div:first-child{width:155px}.scene-header{left:16px;right:16px}#view-title{display:none}.view-controls{left:16px}.legend{right:15px;width:146px}.view-controls span{display:none}}@media(max-width:640px){header{height:66px;padding:0 16px}.brand{font-size:13px}.brand small{font-size:7px}header button{font-size:10px;padding:8px}main{display:flex;flex-direction:column}.workspace{order:-1;height:70vh;min-height:540px}aside{max-height:none;border:0;padding:25px;display:block}h1 br{display:none}h1{font-size:33px}.intro{max-width:420px}#viewport{min-height:320px}.scene-header{top:12px}.view-controls{top:53px}.legend{bottom:206px;width:132px;padding:10px}.profile{min-height:137px}.profile>div:first-child{width:127px}.profile .eyebrow{font-size:7px}.profile label{font-size:15px}.profile-chart p{font-size:8px}.scene-foot{font-size:8px;padding:0 15px 10px}.scene-foot>span:last-child{display:none}.evidence-note{padding:9px 16px;font-size:9px}.map-label{font-size:8px;padding:4px}.pill{font-size:7px}.profile svg{height:94px}#pointer-readout{max-width:75%}}

.water-key{display:grid;gap:6px;font-size:10px;margin:14px 0;color:#526e64}.water-key span:nth-child(1){color:#177c89}.water-key span:nth-child(2){color:#916021}.water-key span:nth-child(3){color:#78528e}.evidence-card{border-top:1px solid #dae1d4;padding:10px 0}.evidence-card h3{font-size:11px;margin:0 0 7px}.evidence-card p{font-size:10px;margin:7px 0}.evidence-card b{display:block;color:#315d48}.evidence-card .assumption b{color:#916021}.evidence-card small{font-size:9px;color:#748170}.profile .profile-toggle{font:10px Arial;margin:9px 0 0;color:#a74332;display:flex}.profile-chart p{line-height:1.5}

.mechanism{font-size:11px;border:1px solid #cad6c8;border-radius:6px;padding:10px;margin:12px 0}.mechanism summary{cursor:pointer;font-weight:bold}.mechanism p,.mechanism a{font-size:10px}.mechanism a{color:#315f4d}
.cut-launch{width:100%;margin-top:12px;text-align:left;font-size:12px;background:#e3eadd;border-color:#bacbb6}.cut-open{overflow:hidden}#casino-dialog{width:calc(100% - 32px);max-width:1100px;max-height:calc(100dvh - 28px);padding:24px;overflow:auto}.cut-heading{display:flex;align-items:start;justify-content:space-between;gap:15px}.cut-heading h2{margin:0;font:28px Georgia}.cut-heading button{font-size:24px;padding:2px 12px}.cut-heading .eyebrow{margin-bottom:8px}.cut-intro{color:#6a7b6d;font-size:12px!important;margin:12px 0}.cut-toolbar{display:flex;gap:10px;align-items:center;margin:15px 0}.cut-toolbar .primary{flex:0 0 auto}.cut-toolbar button{font-size:11px}.cut-toolbar span{font-size:11px;color:#6b7c70}.cut-scroll{overflow-x:auto;border:1px solid #d9dfd1;border-radius:12px}.cut-scroll svg{width:100%;min-width:680px;display:block;font-family:Arial,sans-serif}.cut-evidence{display:grid;grid-template-columns:1fr 1fr;gap:24px;margin:17px 0 0}.cut-evidence h3{font-size:12px;margin:0;color:#315e48}.cut-evidence>div:last-child h3{color:#805394}.cut-evidence p{font-size:11px;margin:5px 0}.cut-source{font-size:10px!important;color:#75816f;margin-bottom:0}.cut-source a{font-size:10px}#casino-dialog a{color:#315f4d}@media(max-width:640px){#casino-dialog{padding:16px;width:calc(100% - 16px)}.cut-heading h2{font-size:22px}.cut-toolbar{flex-wrap:wrap}.cut-toolbar span{width:100%}.cut-evidence{grid-template-columns:1fr;gap:12px}.cut-scroll::after{content:'Desliza para ver el corte completo ↔';display:block;padding:8px;font-size:10px;color:#657b69;position:sticky;left:0}}

body:not([data-mode="underground"]) .underground-only{display:none}

.storage-guide button{display:block;width:100%;margin:8px 0;text-align:left;font-size:11px;background:#f3ecdd;border-color:#d2b782}.storage-label{background:#fff0cd;border:1.5px solid #b78030;font-weight:bold;display:flex;gap:5px;align-items:center}.tank-icon{display:inline-block;width:15px;height:12px;border:2px solid #a37430;border-top:0;border-radius:0 0 3px 3px;background:linear-gradient(to top,#60b3bd 0 65%,transparent 65%);flex-shrink:0}.storage-label::after{border-color:#b78030}.storage-label.selected{background:#875d28;color:white}

#touch-pan{display:none;min-height:44px}#touch-pan[aria-pressed=true]{background:#244e45;color:#fff;border-color:#244e45}#viewport{cursor:grab}#viewport:active{cursor:grabbing}
@media(any-pointer:coarse),(max-width:640px){#touch-pan{display:inline-block}.view-controls{align-items:center}.view-controls button{min-height:44px}.view-controls{gap:3px}}

.supply-field{margin-top:15px}.scenario-note{background:#ece8f0;color:#664c77;padding:10px 14px;border-radius:6px;font-size:12px!important}.project-credit{flex-shrink:0;text-align:center;padding:9px 16px;background:#fafaf7;border-top:1px solid #dde3d8;font-size:11px;color:#536d60}.scene-foot>div{flex:1}#gesture-hint{display:block;font-size:11px;line-height:1.45;color:#365c4f}#pointer-readout{display:block;margin-top:3px;font-size:10px}.cut-toolbar{flex-wrap:wrap}@media(max-width:640px){#gesture-hint{font-size:10px}.project-credit{font-size:10px}}

/* Interpretive garden-style overlay; restricted to relief mode. */
.style-legend{display:flex;align-items:center;flex-wrap:wrap;gap:8px 18px;padding:9px 25px;color:#526354;font-size:11px;border-top:1px solid #dce3d6;background:#f4f5ed}.style-legend[hidden]{display:none}.style-legend span{display:flex;align-items:center;gap:6px;font-weight:600}.style-legend i{width:11px;height:11px;border-radius:3px;display:inline-block}.style-legend .french{background:#c1ade2}.style-legend .italian{background:#e5b68f}.style-legend .english{background:#94c7ba}.style-legend small{font-size:10px;flex-basis:100%;color:#667664}.garden-label{pointer-events:none!important;border:1px solid var(--zone-color)!important;border-left:4px solid var(--zone-color)!important;background:#fffffff0!important;font-weight:700!important;color:#34473f!important;letter-spacing:.01em;box-shadow:0 2px 8px #223b2520}.garden-label:before{display:none!important}@media(max-width:640px){.style-legend{padding:8px 12px;gap:6px 12px}.garden-label{font-size:10px!important}}

#style-control[hidden]{display:none}

/* Mobile uses normal document flow: no controls, legend or footer over the scene. */
@media(max-width:640px){
 main{min-height:0}
 .workspace{height:auto;min-height:0;overflow:visible}
 .workspace> *{flex-shrink:0}
 .scene-header{position:static;margin:14px 16px 0;min-height:28px}
 #viewport{flex:none;width:100%;height:clamp(300px,88vw,480px);min-height:0}
 .view-controls{position:static;display:flex;flex-wrap:wrap;gap:6px;padding:10px 14px;margin:0;border-top:1px solid #d8ded4;background:#f4f5ed}
 .view-controls button{min-width:44px;min-height:44px;padding:9px 10px;font-size:12px}
 .view-controls #touch-pan,.view-controls #motion{flex:1;white-space:nowrap}
 .legend{position:static;width:auto;margin:0;padding:12px 16px;border:0;border-radius:0;background:#f4f5ed;letter-spacing:.8px}
 #ramp{margin-top:8px}
 .scene-foot{padding:4px 16px 12px;align-items:center;gap:10px;background:#f4f5ed}
 .scene-foot>div{min-width:0}
 #gesture-hint{font-size:11px;line-height:1.5;white-space:normal}
 #pointer-readout{max-width:none}
 #north{flex-shrink:0}
 .evidence-note{min-height:0;line-height:1.55}
 .profile{display:block;min-height:0;padding:20px 16px}
 .profile>div:first-child{width:100%}
 .profile .eyebrow{font-size:9px}
 .profile label{font-size:20px}
 .profile select{min-height:44px;font-size:12px}
 .profile .profile-toggle{font-size:12px;min-height:36px;margin:6px 0}
 .profile-chart{width:100%;margin-top:8px}
 .profile svg{height:115px}
 .profile-chart p{font-size:10px}
 .project-credit{position:static}
 aside{position:static;max-height:none;overflow:visible;padding:28px 22px;border-top:1px solid #d8ded4}
 h1{font-size:33px;line-height:1.12;overflow-wrap:normal;margin-bottom:16px}
 .intro{font-size:13px}
}
@media(max-width:360px){
 header{height:auto;min-height:66px;padding:10px 12px;gap:10px}
 .view-controls{display:grid;grid-template-columns:repeat(6,minmax(0,1fr))}
 .view-controls button{grid-column:span 2}
 .view-controls #touch-pan,.view-controls #motion{grid-column:span 3}
}

@media(max-width:640px){.scene-header{flex-wrap:wrap;gap:6px}#view-title{display:block;font-size:9px;color:#627568}}
@media(min-width:641px){.scene-foot{padding-right:220px}}
