#living-earth{margin:1.7rem 0 2rem;scroll-margin-top:1rem}
#living-earth [hidden]{display:none!important}
#living-earth h2{margin:0 0 .4rem}#living-earth .field-intro{margin:.4rem 0 1rem;max-width:76ch}
.field-controls,.field-seek{display:flex;align-items:center;gap:.65rem;flex-wrap:wrap}
.field-controls{margin:0 0 .6rem}.field-controls label,.field-seek output{font-weight:650}
#living-earth button,#living-earth select{min-height:43px;font:inherit;padding:.5rem .8rem;border:1px solid var(--line,#66766f);border-radius:6px;color:var(--ink);background:var(--panel);cursor:pointer}
#living-earth button:focus-visible,#living-earth select:focus-visible,.field-stage canvas:focus-visible{outline:3px solid #48bda5;outline-offset:2px}
#living-earth #field-play{background:#1b5144;color:#fff;border-color:#327a66}
.field-stage{position:relative;isolation:isolate;overflow:hidden;background:#07151c;border:1px solid var(--line,#3b514a);border-radius:12px;aspect-ratio:1.92}
.field-stage canvas,.field-stage img{display:block;width:100%;height:100%;object-fit:contain}
.field-stage canvas{touch-action:pan-y;cursor:grab}.field-stage canvas:active{cursor:grabbing}
.field-stage img{position:absolute;inset:0;background:#091419}
.field-caption{position:absolute;left:0;bottom:0;width:100%;box-sizing:border-box;padding:1.8rem 3% 2.3%;color:#fff;pointer-events:none;background:linear-gradient(transparent,rgba(4,15,21,.87))}
.field-caption>span,.field-caption>strong{display:block}.field-caption h3{color:white!important;font-size:clamp(1.08rem,2.5vw,1.8rem)!important;margin:.1rem 0 .35rem!important;line-height:1.12}
#field-place{font-size:clamp(.78rem,1.6vw,.98rem);line-height:1.22;color:#daeee7}
#field-date,#field-reading{display:inline;font-variant-numeric:tabular-nums;font-size:clamp(.95rem,1.8vw,1.22rem)}
#field-reading:not(:empty)::before{content:' · '}
#field-plot{position:absolute;right:3%;bottom:4%;width:28%;height:auto;background:#0a1e25e8;border-radius:7px}
.field-stage:has(#field-plot:not([hidden])) .field-caption{padding-right:33%}
.field-seek{flex-wrap:nowrap}.field-seek label{min-width:65px;flex:1;display:flex;flex-direction:column;gap:2px}
.field-seek input{width:100%;accent-color:#3b9079;cursor:pointer}.field-seek output{text-align:center;font-size:.85rem}
#living-earth .field-key{display:flex;flex-wrap:wrap;align-items:center;gap:.35rem 1rem;font-size:.91rem;margin:.55rem 0}
.field-key span{display:inline-flex;align-items:center;gap:.4rem}.field-key i{width:.85em;height:.85em;border-radius:2px;display:inline-block;border:1px solid #637067}
#field-note,#field-source{font-size:.95rem;margin:.5rem 0}#living-earth details{border-bottom:1px solid var(--line);padding:.65rem 0}
.field-table{max-height:19rem;overflow:auto}.field-table table{width:100%;border-collapse:collapse}.field-table td,.field-table th{text-align:left;padding:.35rem;border-bottom:1px solid var(--line)}.field-credits li{margin:.8rem 0}.field-credits p{margin:.25rem 0!important}
@media(max-width:600px){.field-controls select{flex:1;min-width:0;max-width:100%}.field-controls label{width:100%}.field-controls{gap:.35rem}.field-stage{aspect-ratio:1.22}.field-stage:has(#field-plot:not([hidden])) .field-caption{padding-right:3%}#field-plot{right:3%;top:3%;bottom:auto;width:31%}.field-seek button{padding:.4rem!important}.field-caption{padding-bottom:4%}.field-stage img{object-fit:contain}}
#field-zoom{position:absolute;top:2.5%;left:2%;display:flex;gap:.25rem}
#living-earth #field-zoom button{background:#09232bdd;color:#fff;border:1px solid #5f7f7b;min-width:35px;min-height:35px;padding:.15rem .5rem}
#living-earth{padding:0;border-top:0}#living-earth .field-table button{font-size:.94rem;min-height:36px}#living-earth .field-table td:last-child{min-width:14ch}
.field-views{display:flex;gap:.4rem;flex-wrap:wrap;margin:0 0 .65rem}
#living-earth .field-views button{min-height:36px;font-size:.92rem}
#living-earth .field-views button[aria-pressed=true]{border-color:var(--ink);font-weight:650}
.field-key .field-stipple{background:radial-gradient(circle,#121212 1.3px,transparent 1.4px) 0 0/4px 4px,#899585}

.field-topics{display:flex;flex-wrap:wrap;gap:.4rem;margin:0 0 .65rem}
#living-earth .field-topics button{min-height:38px;border-radius:20px;padding:.3rem .8rem}
#living-earth .field-topics button[aria-pressed=true]{background:#234b40;color:#fff;border-color:#5a8c75}
#field-note{font-size:1.02rem;max-width:70ch}

#earth-film-video{display:block;width:100%;height:auto;aspect-ratio:16/9;max-height:76svh;object-fit:contain;border-radius:12px;background:#09151b;color:#fff}
#earth-film-controls{margin:.65rem 0}
#earth-film-facts h4{font-size:1.04rem;margin:1.1rem 0 .4rem}
#earth-film-facts ul{margin:.35rem 0;padding-inline-start:1.3rem}
#earth-film-facts li{margin:.45rem 0}
#earth-film-facts details>ul{max-height:18rem;overflow:auto}
.earth-film-photos{display:flex;gap:.65rem;flex-wrap:wrap;margin-top:1rem}
.earth-film-photos figure{margin:0;flex:1 1 15rem;max-width:28rem}
.earth-film-photos img{max-width:100%;height:auto;max-height:15rem}.earth-film-photos figcaption{font-size:.85rem}
#field-explorer[open]>summary{margin-bottom:.7rem}
#living-earth #earth-film-play{background:#205441;color:#fff;border-color:#205441;min-width:7.3em;font-weight:650}
#earth-film-controls label{width:auto}#earth-film-controls select{flex:0 1 auto}
#earth-film-caption{position:static;display:block;clear:both;max-width:78ch;margin:.7rem 0 .5rem;font-weight:600;line-height:1.45}
#earth-film-caption:empty{display:none}
#earth-turn{aspect-ratio:16/9;max-height:76svh}#earth-turn canvas{width:100%;height:100%}
.turn-zoom{position:absolute;right:.65rem;top:.65rem;display:flex;gap:.3rem}
#living-earth .turn-zoom button{background:#10292e;color:white;border:1px solid #638383}
#turn-year{position:absolute;bottom:.5rem;left:.75rem;background:#09191fde;border-radius:4px;padding:.1rem .45rem;color:white;font:600 clamp(1.5rem,4vw,2.9rem)/1.2 system-ui;pointer-events:none}
.earth-key{list-style:none;padding:0}.earth-key li{display:flex;align-items:baseline;gap:.6rem;margin:.4rem 0}
.earth-key i{display:inline-block;flex:0 0 .8em;height:.8em;background:var(--mark);border:1px solid #51605b;border-radius:2px}
@media(max-width:600px){#earth-turn{aspect-ratio:1.65}#earth-film-controls{gap:.35rem}#living-earth #earth-film-controls button,#living-earth #earth-film-controls select{padding:.45rem .6rem}}

#earth-film-controls .film-speed{display:inline-flex;align-items:center;gap:.4rem}

.earth-pair,.earth-readings{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:clamp(.45rem,1.5vw,1.25rem)}
.earth-pair figure{min-width:0;margin:0;border:1px solid #344b4b;border-radius:9px;overflow:hidden;background:#09191f;color:#fff}
.earth-pair figcaption{min-height:2rem;display:flex;flex-wrap:wrap;align-items:baseline;gap:.25rem .6rem;padding:.5rem .8rem;color:#bbd3cd;font:500 clamp(.8rem,1.1vw,1rem)/1.4 system-ui}
.earth-pair figcaption strong{font-size:clamp(1.2rem,2.6vw,2rem);line-height:1.1;color:#fff}
.earth-pair .earth-map-total{display:block;flex-basis:100%;font-size:inherit;color:#e4efeb}
.earth-pair canvas{width:100%;height:auto;aspect-ratio:2/1;display:block;touch-action:pan-y;cursor:crosshair}
.earth-pair canvas:focus-visible{outline:3px solid #48bda5;outline-offset:-3px}
#earth-comparison{border-block:1px solid var(--line);padding:.75rem 0}
#earth-comparison h3{font-size:1.05rem;margin:0 0 .55rem}
.earth-readings p,#earth-local-evidence{margin:.2rem 0;line-height:1.45}
#earth-local-evidence{margin-top:.65rem;color:var(--muted);font-size:.92rem}
@media(max-width:600px){.earth-pair figcaption{display:block;min-height:2.65rem;padding:.35rem .45rem;font-size:.71rem}.earth-pair figcaption strong{display:block;font-size:1.2rem}.earth-pair canvas{aspect-ratio:1.25}.earth-readings{font-size:.9rem}.earth-pair{gap:.35rem}}

#earth-film{box-sizing:border-box;width:min(96vw,1760px);max-width:none;margin-inline:calc((100% - min(96vw,1760px))/2)}
#earth-film [hidden]{display:none!important}
#earth-film .earth-pair{grid-template-columns:minmax(0,1fr)}
#earth-film .earth-pair.is-comparing{grid-template-columns:repeat(2,minmax(0,1fr))}
#earth-film .earth-pair figure{display:flex;flex-direction:column}
#earth-film .earth-pair canvas{height:clamp(240px,39vw,65svh);width:100%;flex:1 1 auto;min-height:0;aspect-ratio:auto}
@media(min-width:701px){#earth-film .earth-pair.is-comparing canvas{height:auto;aspect-ratio:2.05;flex:none}}
#earth-transport{display:flex;align-items:center;gap:1rem;margin:.65rem 0;padding:.35rem 0}
#earth-transport label{white-space:nowrap;font-weight:600}
#earth-film-scrub{flex:1;min-width:0;min-height:36px;accent-color:#286e55}
#earth-warnings{margin:.65rem 0 1rem}
#earth-warnings label{display:block;font-weight:650;margin-bottom:.3rem}
#earth-warning-list{width:100%;max-width:44rem;min-height:44px;font:inherit;color:var(--ink);background:var(--bg);border:1px solid var(--line);border-radius:6px;padding:.4rem}
#earth-warning-detail{border-inline-start:4px solid #eeb338;background:var(--panel);padding:.65rem 1rem;margin:.5rem 0;max-width:76ch}
#earth-warning-detail h3,#earth-warning-detail p{margin:0 0 .4rem}
#earth-warning-detail button{display:block;margin:.35rem 0}
#earth-film .earth-warning-key{background:#ffd04c;color:#261b10;text-align:center;font:700 .8rem/1.1 system-ui;clip-path:polygon(50% 0,100% 100%,0 100%);flex-basis:1.1rem;height:1.1rem;padding-top:.22rem}
#earth-compare[aria-pressed=true],#earth-land-change[aria-pressed=true]{font-weight:700;border-color:currentColor}
#earth-land-change-key{margin-bottom:.2rem}
.earth-farm-gain{background:#f78764}
.earth-farm-loss{background:#63dad9}
.earth-key .earth-nature-loss{background:#f57c45}
@media(max-width:700px){
  #earth-film{width:calc(100vw - 1rem);margin-inline:calc((100% - 100vw + 1rem)/2)}
  #earth-film .earth-pair.is-comparing{grid-template-columns:minmax(0,1fr)}
  #earth-film .earth-pair.is-comparing #earth-baseline-panel{order:1}
  #earth-film .earth-pair canvas{height:clamp(200px,55vw,340px)}
  #earth-film .earth-pair.is-comparing canvas{height:clamp(185px,52vw,300px)}
}
