/* Science uses the same one-screen workspace with independently scoped controls. */
#science-view{height:100%;min-height:0;min-width:0;display:grid;grid-template-rows:42px clamp(112px,18dvh,190px) 64px minmax(0,1fr);gap:8px;--science:#6651bb;--science-soft:#f1edff}
#science-view[hidden],#science-view [hidden]{display:none!important}
#science-nav{white-space:nowrap}
.science-mobile-topics{display:none}
.science-toolbar{display:grid;grid-template-columns:minmax(0,1fr) 140px 180px 190px;gap:8px;min-width:0}
.science-era-list{display:flex;gap:6px;min-width:0;overflow:auto;scrollbar-width:none}
.science-era-list button{flex:1 0 88px;white-space:nowrap;border:1px solid #d3d9ec;border-radius:9px;background:var(--science-tile-soft,#f6f3ff);color:var(--science-tile,#5b4d94);font-size:12px;padding:5px 9px;min-height:36px}
.science-era-list button[aria-pressed=true]{background:var(--science-tile,var(--science));color:#fff;border-color:var(--science-tile,var(--science))}
.science-filter{min-width:0;display:flex;align-items:center;gap:5px}
.science-filter>span{font-size:12px;color:#5d6d88;white-space:nowrap}
.science-filter select,.science-timeline select{width:100%;min-width:0;border:1px solid #d4dcec;border-radius:8px;background:#fff;color:#374b68;font-size:12px;min-height:36px;padding:5px 24px 5px 9px}
.science-cover{position:relative;border-radius:12px;overflow:hidden;isolation:isolate;background:#201d4d;color:white;min-height:0}
.science-cover .science-cover-image{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;opacity:.84;transition:opacity .28s}
.science-cover:after{content:'';position:absolute;inset:0;background:linear-gradient(90deg,#181b42f5 0%,#24224ac9 32%,#24224a00 67%);z-index:-1}
.science-cover-image{z-index:-2}
.science-cover-copy{height:100%;display:flex;flex-direction:column;justify-content:center;padding:18px 26px;max-width:570px}
.science-cover p{margin:0;line-height:1.6}.science-cover .science-kicker{font-size:11px;letter-spacing:.06em;color:#d1caff}.science-cover h1{font:600 clamp(23px,2.5vw,37px)/1.2 var(--serif);margin:6px 0}.science-cover .science-intro{font-size:12px;max-width:440px;color:#e2e3f3}
.science-art-open{position:absolute;bottom:12px;right:14px;padding:6px 9px;border:1px solid #bdc9e980;border-radius:7px;background:#1c2546bb;color:white;font-size:11px}
.science-timeline{display:grid;grid-template-columns:minmax(135px,1fr) minmax(200px,4fr) auto 70px;align-items:center;gap:12px;padding:8px 12px;border-radius:12px;background:var(--science-soft);border:1px solid #dcd1f1;min-width:0}
.science-timeline>div:first-child{min-width:0}
.science-date{display:block;background:transparent;border:0;padding:2px 0;text-align:left;color:#354564;font-weight:650;font-size:13px;min-height:24px;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.science-timeline .science-mode{min-height:25px;font-size:10px;max-width:145px;padding:3px 20px 3px 6px}
.science-axis{position:relative;height:34px;--timeline-progress:0%}
.science-axis input{position:absolute;inset:0 0 10px;width:100%;height:20px;opacity:0;z-index:2;cursor:pointer;touch-action:pan-y}
.science-axis:before{content:'';position:absolute;left:0;right:0;top:11px;height:4px;border-radius:4px;background:#d2c9e9}.science-axis:after{content:'';position:absolute;left:0;width:var(--timeline-progress);top:11px;height:4px;background:var(--science);border-radius:4px}
.science-axis .science-thumb{position:absolute;left:var(--timeline-progress);top:6px;width:14px;height:14px;background:var(--science);border:2px solid white;outline:1px solid var(--science);border-radius:50%;transform:translateX(-50%)}
.science-axis:focus-within{outline:2px solid #6651bb;outline-offset:4px;border-radius:3px}
.science-axis .science-tick{position:absolute;top:4px;width:1px;height:7px;background:#8b7eb4}.science-years{position:absolute;left:0;right:0;bottom:-1px;display:flex;justify-content:space-between;color:#697693;font-size:10px}
.science-play{min-height:36px;min-width:95px;background:transparent;color:var(--science);border:1px solid transparent;border-radius:7px;font-size:12px;font-weight:650;white-space:nowrap}.science-play:hover{background:#e5ddff}
.science-pane-tabs{display:none}
.science-workspace{display:grid;grid-template-columns:minmax(180px,.7fr) minmax(280px,2fr) minmax(280px,1.2fr);gap:10px;min-height:0;min-width:0}
.science-panel{background:#fff;border:1px solid #d9e1ed;border-radius:13px;min-width:0;min-height:0;overflow:hidden}
.science-list{display:grid;grid-template-rows:34px 40px minmax(0,1fr)}
.science-list-head{display:flex;align-items:center;justify-content:space-between;padding:6px 11px;font-size:12px;color:#5f6d85}.science-list-head strong{color:#344660}
.science-search-wrap{display:flex;gap:4px;padding:0 8px 6px}.science-search-wrap input{width:100%;min-width:0;border:1px solid #ced8e9;border-radius:6px;padding:5px 8px;font-size:12px}.science-search-wrap button{width:30px;border:0;background:transparent;color:var(--science);font-size:20px;flex-shrink:0}
.science-event-list{overflow:auto;min-height:0;padding:3px 6px 8px;scrollbar-width:thin;scrollbar-color:#d7ddeb transparent}
.science-card{display:block;text-align:left;border:1px solid transparent;background:#fff;border-radius:9px;width:100%;padding:10px;margin:0 0 4px;color:#354864}.science-card>small{display:block;color:#7865ad;font-size:10px;line-height:1.5}.science-card strong{display:block;font-size:13px;line-height:1.5;margin:4px 0}.science-card p{font-size:11px;line-height:1.6;color:#677894;margin:4px 0}.science-card[aria-pressed=true]{background:var(--science-soft);border-color:#c3afe6;box-shadow:inset 3px 0 var(--science)}
.science-map{position:relative;display:grid;grid-template-rows:minmax(0,1fr) auto;background:#152233;color:#edf3fe;border-color:#152233}
.science-map-stage{position:relative;min-height:0;overflow:hidden}.science-map svg{display:block;width:100%;height:100%;touch-action:none}.science-map-title{position:absolute;left:12px;top:10px;margin:0;font-size:12px;pointer-events:none;font-weight:600}
.science-map-tools{position:absolute;right:9px;top:8px;display:flex;gap:4px}.science-map-tools button{border:1px solid #7b91b0;background:#23364e;color:#fff;border-radius:6px;min-width:28px;min-height:30px;font-size:12px;padding:4px 7px}.science-map-tools button:focus-visible{outline:2px solid #ffe08c;outline-offset:2px}
.science-map-foot{padding:9px 12px;background:#101b2b;border-top:1px solid #35455b;min-height:60px;font-size:11px;line-height:1.6}.science-map-foot strong{display:block;color:#ffe0a0;font-size:12px;margin-bottom:2px}.science-map-foot p{margin:0;color:#c0cce0}
.science-map-error{position:absolute;bottom:8px;left:8px;right:8px;background:#23364eea;border-radius:7px;padding:7px;font-size:11px}.science-marker{cursor:pointer;outline:none}.science-marker:focus circle,.science-marker[aria-pressed=true] circle{stroke:#fff3b0;stroke-width:3}.science-marker circle{transition:r .16s,fill .16s}
.science-story{display:grid;grid-template-rows:minmax(0,1fr) 46px;border-top:3px solid var(--science)}
.science-reading{overflow:auto;min-height:0;padding:19px 20px 24px;scrollbar-width:thin;scrollbar-color:#d7ddeb transparent}.science-reading .science-story-meta{display:flex;flex-wrap:wrap;gap:6px;font-size:10px;color:#74629c;margin-bottom:12px}.science-story-date{font-size:12px;color:var(--science);font-weight:650;margin:0 0 10px}.science-reading h2{font:600 23px/1.5 var(--serif);margin:0 0 14px;color:#2d3b52;overflow-wrap:anywhere}.science-reading p{font-size:14px;line-height:1.95;color:#5e6e86;margin:12px 0}.science-reading .science-context{background:var(--science-soft);border-left:3px solid #e0bd66;padding:10px 13px;border-radius:0 9px 9px 0;margin:16px 0}.science-context strong{font-size:12px;color:var(--science)}
.science-reading .science-evidence{font-size:10px;color:#667a94;line-height:1.7}.science-reading .science-location{border:1px solid #dfe6ef;padding:10px;border-radius:7px;font-size:11px}.science-reading .science-location p{font-size:12px;margin:4px 0}.science-reference-list{padding-left:17px;color:#66768a;font-size:11px;line-height:1.8;overflow-wrap:anywhere}
.science-actions{display:flex;flex-wrap:wrap;gap:7px;margin-top:15px}.science-actions>a,.science-actions>button{background:#f9f7ff;border:1px solid #d8cdee;border-radius:7px;color:var(--science);font-size:11px;min-height:32px;padding:6px 9px;text-decoration:none}
.science-story-foot{display:flex;justify-content:space-between;align-items:center;padding:5px 12px;border-top:1px solid #e1e6ef;font-size:11px;color:#6e7e96}.science-story-foot button{width:32px;height:32px;border-radius:50%;border:1px solid #ded6ed;background:var(--science-soft);color:var(--science);font-size:20px}.science-story-foot button:disabled{opacity:.35;cursor:default}
.science-empty{padding:24px;color:#6c7c95;font-size:13px;line-height:1.8}.science-empty button{color:var(--science);background:white;border:1px solid #cdc2e2;border-radius:7px;padding:8px 12px}
.science-dialog{width:min(680px,calc(100% - 24px));max-height:calc(100dvh - 24px);padding:0;border-radius:14px;border:1px solid #d5d0e1}.science-dialog-head{position:sticky;top:0;background:#fff;display:flex;justify-content:space-between;align-items:center;gap:10px;padding:12px 16px;border-bottom:1px solid #e4deef;z-index:1}.science-dialog h2{font-size:16px;margin:0;line-height:1.6}.science-dialog-head button{flex-shrink:0;width:44px;height:44px;border:0;border-radius:50%;background:#f2eff8;color:#53627a;font-size:25px}.science-dialog-body{padding:18px;max-height:calc(100dvh - 130px);overflow:auto}.science-dialog-body p{font-size:14px;line-height:1.9}.science-dialog-body img{width:100%;height:auto;display:block}.science-dialog-body>button{display:block;width:100%;text-align:left;padding:12px;border:1px solid #e1daed;background:#f9f7fd;border-radius:8px;margin-bottom:8px;font-size:13px;color:#40516e}
#science-view[data-expanded=true]{grid-template-rows:42px 64px minmax(0,1fr)}#science-view[data-expanded=true] .science-cover{display:none}#science-view[data-expanded=true] .science-workspace{grid-template-columns:1fr}#science-view[data-expanded=true] .science-list,#science-view[data-expanded=true] .science-story{display:none}
@media(min-width:1600px){#science-view{grid-template-rows:42px 200px 64px minmax(0,1fr)}}
@media(max-width:900px){
 .atlas-app.science-enabled #explore{display:grid;grid-template-rows:32px minmax(0,1fr);gap:5px}.atlas-app.science-enabled #world-view,#science-view{grid-row:2;grid-column:1}.science-mobile-topics{display:flex;gap:5px;min-width:0;grid-row:1;grid-column:1}.science-mobile-topics a{flex:1;display:flex;align-items:center;justify-content:center;text-decoration:none;min-width:0;padding:4px 7px;border:1px solid #d4dceb;border-radius:7px;background:#fff;font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:#52617b}.science-mobile-topics a[aria-current=page]{background:#6651bb;color:white;border-color:#6651bb}.atlas-app.science-enabled .site-header #world-nav,.atlas-app.science-enabled .site-header #science-nav{display:none!important}
 #science-view{grid-template-rows:76px 72px 76px 32px minmax(0,1fr);gap:6px}.science-toolbar{grid-template-columns:repeat(3,minmax(0,1fr));grid-template-rows:36px 34px;gap:5px}.science-era-list{grid-column:1/-1}.science-era-list button{flex:1 0 auto;font-size:12px;min-height:32px;padding:4px 12px}.science-filter select{min-height:32px;font-size:11px}.science-filter>span{font-size:10px}.science-cover-copy{padding:8px 12px;max-width:65%}.science-cover h1{font-size:21px;margin:3px 0}.science-cover .science-intro{display:none}.science-cover .science-kicker{font-size:10px}.science-art-open{bottom:9px;right:9px;max-width:32%;font-size:10px}
 .science-timeline{grid-template-columns:minmax(0,1fr) auto 66px;grid-template-rows:25px 25px;padding:7px 10px;gap:4px 9px}.science-axis{grid-row:2;grid-column:2/-1;height:26px}.science-axis .science-years{font-size:8px;bottom:-6px}.science-date{grid-column:1;grid-row:1;font-size:12px}.science-mode{grid-column:1;grid-row:2;max-width:135px!important}.science-play{grid-column:2;grid-row:1;min-height:26px;font-size:11px;min-width:78px}.science-speed{grid-column:3;grid-row:1}.science-timeline .science-speed{min-height:27px;font-size:11px}
 .science-pane-tabs{display:flex;gap:5px}.science-pane-tabs button{flex:1;background:white;border:1px solid #cfd9ea;border-radius:7px;min-width:0;color:#647491;font-size:12px;line-height:18px;padding:3px 4px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.science-pane-tabs button[aria-selected=true]{background:var(--science);color:white;border-color:var(--science)}.science-workspace{display:block;height:100%;min-height:0}.science-panel{height:100%}.science-panel[hidden]{display:none!important}.science-reading{padding:16px 17px 22px}.science-map-tools button{min-height:30px;font-size:10px}.science-map-title{font-size:11px;max-width:40%}.science-story h2{font-size:23px}.science-list{grid-template-rows:34px 42px minmax(0,1fr)}.science-card{padding:12px;border-color:#e1e7ef;margin-bottom:7px}.science-card strong{font-size:16px}.science-card p{font-size:13px}.science-card>small{font-size:11px}
 #science-view[data-expanded=true]{grid-template-rows:76px 76px 32px minmax(0,1fr)}
}
@media(max-width:360px){.science-pane-tabs button{font-size:11px}}
@media(max-height:700px) and (max-width:900px){#science-view{grid-template-rows:66px 48px 68px 30px minmax(0,1fr);gap:4px}.science-toolbar{grid-template-rows:30px 30px}.science-era-list button{min-height:28px;font-size:11px}.science-filter select{min-height:28px}.science-cover h1{font-size:18px;margin:0}.science-cover .science-kicker{font-size:9px}.science-cover-copy{padding:5px 10px}.science-art-open{bottom:7px;font-size:9px}.science-timeline{padding:4px 8px}.science-map-foot{padding:6px 9px;font-size:10px;min-height:48px}.science-map-foot strong{font-size:11px}#science-view[data-expanded=true]{grid-template-rows:66px 68px 30px minmax(0,1fr)}}
@media(prefers-reduced-motion:reduce){.science-cover-image,.science-marker circle{transition:none}}

.science-cover .chapter-copy{max-width:50%;padding:18px 24px}.science-cover .chapter-title{font-size:clamp(23px,2.5vw,37px)}.science-cover .chapter-intro{font-size:12px;line-height:1.7;max-width:440px}.science-cover .chapter-subtitle{font-size:14px}.science-cover .chapter-image{object-fit:cover;object-position:center}.science-cover .chapter-illustration:after{background:linear-gradient(90deg,#171c45fa,#22204bd9 35%,transparent 72%)}
@media(max-width:900px){.science-cover .chapter-copy{max-width:70%;padding:8px 12px}.science-cover .chapter-title{font-size:21px}.science-cover .chapter-subtitle,.science-cover .chapter-intro{display:none}.science-cover .chapter-meta{font-size:9px;margin-bottom:4px}.science-cover .chapter-number{display:none}.science-cover .chapter-image{object-position:70% center}}
@media(max-width:900px) and (max-height:700px){.science-cover .chapter-title{font-size:18px}.science-cover .chapter-meta{margin-bottom:2px}}

@media(max-width:900px){.science-timeline>div:first-child{display:contents}.science-cover .chapter-copy{padding:6px 12px;max-width:100%;width:calc(100% - 90px)}.science-cover .chapter-title{font-size:18px;line-height:1.2;margin:0}.science-cover .chapter-meta{margin-bottom:3px}.science-art-open{max-width:78px;font-size:9px;line-height:1.2;white-space:normal}.science-timeline{grid-template-columns:minmax(0,1fr) auto 66px}}
@media(max-width:900px) and (max-height:700px){.science-cover .chapter-copy{padding:4px 10px;width:calc(100% - 82px)}.science-cover .chapter-meta{display:none}.science-cover .chapter-title{font-size:15px;line-height:1.2;margin:0}.science-art-open{right:6px;top:5px;bottom:5px;width:72px;max-width:72px;padding:3px 4px;font-size:9px}}

/* Explicitly scope language sizing: long Spanish titles must fit the short cover. */
html .atlas-app #science-view .science-cover .chapter-copy{padding:14px 24px;max-width:52%;width:52%}
html .atlas-app #science-view .science-cover .chapter-meta{font-size:11px;line-height:15px;margin:0 0 4px}
html .atlas-app #science-view .science-cover .chapter-title{font-size:clamp(24px,2.2vw,30px);line-height:1.2;margin:0 0 4px}
html .atlas-app #science-view .science-cover .chapter-subtitle{font-size:13px;line-height:18px;margin:0 0 4px}
html .atlas-app #science-view .science-cover .chapter-intro{font-size:12px;line-height:18px;margin:0;max-height:36px;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden}
@media(max-width:900px){html .atlas-app #science-view .science-cover .chapter-copy{padding:6px 12px;max-width:100%;width:calc(100% - 90px)}html .atlas-app #science-view .science-cover .chapter-title{font-size:18px;line-height:22px;margin:0}html .atlas-app #science-view .science-cover .chapter-meta{font-size:9px;line-height:12px;margin:0 0 3px}html .atlas-app #science-view .science-cover .chapter-subtitle,html .atlas-app #science-view .science-cover .chapter-intro{display:none}}
@media(max-width:900px) and (max-height:700px){html .atlas-app #science-view .science-cover .chapter-copy{padding:4px 10px;width:calc(100% - 82px)}html .atlas-app #science-view .science-cover .chapter-meta{display:none}html .atlas-app #science-view .science-cover .chapter-title{font-size:15px;line-height:18px;margin:0}}

/* Reserve the image area even if its catalogue is temporarily unavailable. */
.science-image-status{display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:180px;margin:6px 0 18px;padding:16px;border:1px solid #e4e0d9;border-radius:11px;background:#f4f3f0;text-align:center}
.science-image-status p{font-size:12px;line-height:1.7;margin:0 0 10px}
.science-image-status button{padding:7px 14px;border:1px solid #d8cdee;border-radius:7px;background:white;color:var(--science);font-size:12px}
@media(max-width:600px){.science-image-status{min-height:190px}}
@media(max-height:700px){.science-image-status{min-height:140px}}

.science-topic-tags{display:flex;flex-wrap:wrap;gap:5px;margin:0 0 10px}.science-topic-tags span{font-size:10px;line-height:1.5;padding:3px 7px;border:1px solid #ded5ed;background:#f7f4fc;border-radius:5px;color:#665286}
@media(max-width:900px){.science-filter{position:relative}.science-filter>span{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}.science-filter select{padding-left:7px;padding-right:20px}}
