/* This file changes only entry framing, not the preserved module layouts. */
html[data-site-runtime="home"],html[data-site-runtime="home"] body{height:auto;overflow:auto;background:var(--cosmos-bg);color:var(--cosmos-text);color-scheme:dark}
html[data-site-runtime="home"] body>.app,html[data-site-runtime="home"] body>.skip{display:none!important}
#stellar-wave .sw-brand small{display:block;font-size:9px;line-height:1.4;letter-spacing:.15em;color:#c8bda9}
html[data-site-runtime="archive"] #homeButton .brand-symbol{display:none}
html[data-site-runtime="archive"] #homeButton .brand-name{font-size:24px}
@media(max-width:700px){#stellar-wave .sw-brand small{font-size:8px}html[data-site-runtime="archive"] #homeButton .brand-name{font-size:20px}}

/* Reading remains paper-sized on touch screens across the preserved readers. */
@media(max-width:760px){
 html[data-site-runtime="stellar"] #stellar-wave .sw-reader .sw-reading .sr-section-text p,
 html[data-site-runtime="stellar"] #stellar-wave .sw-reader .sw-reading .sw-story-body p,
 html[data-site-runtime="stellar"] #stellar-wave .sw-reader .sw-reading .sw-deep p{font-size:18px;line-height:1.95}
 html[data-site-runtime="archive"] #civilization-deep-cosmos .cu-body p,
 html[data-site-runtime="archive"] #civilization-deep-cosmos .cu-deep-body p{font-size:18px;line-height:1.95}
}

/* Full research stays inside the existing map/learning card, so location and quizzes survive. */
html[data-site-runtime="archive"] #civilization-deep-cosmos .cu-research-full{color:#d3cec2;font-family:"Daguan Serif","Songti SC",serif;font-size:17px;line-height:1.95}
html[data-site-runtime="archive"] #civilization-deep-cosmos .cu-research-full p{font:inherit;color:inherit;margin:0 0 1.25em}
html[data-site-runtime="archive"] #civilization-deep-cosmos .cu-research-full h3{font:300 25px/1.55 "Daguan Serif","Songti SC",serif;color:#efe3ce;margin:14px 0 20px}
html[data-site-runtime="archive"] #civilization-deep-cosmos .cu-research-full h4{font:300 23px/1.55 "Daguan Serif","Songti SC",serif;color:#e7d4b5;margin:12px 0 20px}
html[data-site-runtime="archive"] #civilization-deep-cosmos .cu-research-full h5{font:400 14px/1.7 "Daguan Serif","Songti SC",serif;color:#dbc394;margin:16px 0 8px}
.cu-research-opening>span,.cu-research-number{font:11px/1.8 var(--sans);letter-spacing:.08em;color:#b7a47d}.cu-research-chapter{border-top:1px solid #b8a27842;margin-top:25px;padding-top:25px}.cu-research-evidence{border-top:1px solid #b8a27833;margin-top:22px;padding-top:14px}.cu-research-evidence summary{cursor:pointer;color:#b8a681;font:12px/1.8 var(--sans)}.cu-research-evidence ol{padding-left:20px}.cu-research-evidence a{color:#d9bd8c;text-underline-offset:4px}.cu-research-evidence li{margin-top:14px}.cu-research-evidence li p{font-size:13px!important;color:#9e9c91;margin-top:8px!important}
@media(max-width:760px){html[data-site-runtime="archive"] #civilization-deep-cosmos .cu-research-full{font-size:18px;line-height:1.95}}

/* Recoverable network failure while loading the current route. */
.site-load-error{position:fixed;z-index:10000;inset:auto 20px 24px;max-width:460px;margin:auto;padding:24px;border:1px solid rgb(var(--g-light)/.3);border-radius:24px;background:rgb(var(--g-tint)/.96);color:var(--g-ink);box-shadow:var(--g-shadow);font:14px/1.7 system-ui,sans-serif}.site-load-error h1{font-size:20px;margin:0 0 8px}.site-load-error button{padding:10px 20px;border:1px solid rgb(var(--g-light)/.3);border-radius:20px;background:rgb(var(--g-light)/.12);color:inherit;cursor:pointer}
