:root{--bg:#0b1115;--panel:#10191e;--panel2:#152027;--line:#263239;--text:#e5e9e8;--muted:#9aa9ae;--gold:#d2b784;--teal:#75c8b6;--red:#de8b82;--green:#8ecb9c;--white:#d7d8ed;--sidebar:244px}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--text);font:14px/1.6 'DM Sans',Arial,sans-serif}button,input,select,textarea{font:inherit}button,a,select{touch-action:manipulation}button{cursor:pointer;color:inherit}a{color:inherit;text-decoration:none}button{border:1px solid var(--line);background:var(--panel);border-radius:5px;padding:9px 14px}button:hover{border-color:var(--gold);background:#1b282e}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:2px solid var(--teal);outline-offset:3px}input,select,textarea{background:#0d151a;color:var(--text);border:1px solid var(--line);border-radius:5px;padding:10px 12px}input::placeholder,textarea::placeholder{color:#819298}h1,h2,h3,h4,p{margin-top:0}h1,h2,.serif{font-family:Georgia,'Times New Roman',serif;font-weight:400}h1{font-size:52px;line-height:1.12;letter-spacing:-1.8px}h2{font-size:30px;line-height:1.25;letter-spacing:-.4px}h3{font-size:17px;line-height:1.35;font-weight:500}p{color:var(--muted)}.skip{position:fixed;top:-100px;background:var(--gold);color:#111;padding:12px;z-index:100}.skip:focus{top:0}#sidebar{width:var(--sidebar);position:fixed;inset:0 auto 0 0;border-right:1px solid var(--line);background:#0d1519;z-index:30;display:flex;flex-direction:column;padding:30px 20px}.brand{display:flex;gap:11px;align-items:center;font-size:11px;font-weight:600;letter-spacing:1.1px;line-height:1.5}.brand small{display:block;color:var(--muted);font-size:9px;letter-spacing:1.7px;font-weight:400}.sigil{font-size:39px;color:var(--gold);line-height:1}.side-label{display:flex;justify-content:space-between;font-size:9px;letter-spacing:1.8px;color:#6f838c;margin:48px 10px 14px}.side-label span{color:var(--gold)}nav{display:grid;gap:5px}nav a{padding:11px 12px;display:flex;align-items:center;gap:12px;color:var(--muted);font-size:12px;border-radius:4px;border:1px solid transparent}nav a span{width:19px;color:#71858b;font-size:17px;text-align:center}nav a.active{background:#1b272b;border-color:#35413c;color:var(--gold)}nav a.active span{color:var(--gold)}nav a:hover{background:var(--panel2);color:var(--text)}.side-bottom{margin-top:auto;border-top:1px solid var(--line);padding:24px 10px 0;font-size:9px;letter-spacing:1.1px;color:var(--teal)}.side-bottom p{font-size:11px;line-height:1.7;letter-spacing:0;margin-top:13px}.status-light{display:inline-block;width:5px;height:5px;border-radius:50%;background:var(--teal);margin-right:6px}.text-btn{padding:0;background:none;border:none;color:var(--muted);font-size:11px}.text-btn:hover{background:none;color:var(--gold)}#shell{margin-left:var(--sidebar)}header{height:76px;display:flex;align-items:center;gap:25px;padding:0 40px;border-bottom:1px solid var(--line);background:#0b1115ed;position:sticky;top:0;z-index:20;backdrop-filter:blur(12px)}.breadcrumb{font-size:10px;letter-spacing:1.4px;color:#8b9aa1}.breadcrumb span{padding:0 14px;color:#44565e}.breadcrumb b{color:#d1d9dc;font-weight:400;letter-spacing:.4px}.search-trigger{margin-left:auto;display:flex;align-items:center;gap:10px;font-size:11px;background:none;color:var(--muted);border:0}.search-trigger span{font-size:23px}.search-trigger kbd{border:1px solid var(--line);padding:0 7px;color:#86969d;margin-left:38px}.header-mark{font-size:8px;letter-spacing:1.2px;border-left:1px solid var(--line);padding-left:22px;color:#788991}#menu{display:none}main{max-width:1700px;margin:0 auto;padding:36px 40px 64px;min-height:calc(100vh - 130px)}footer{border-top:1px solid var(--line);padding:22px 40px;display:flex;justify-content:space-between;color:#697f89;font-size:9px;letter-spacing:.9px}.eyebrow{font-size:10px;font-weight:500;letter-spacing:2px;color:var(--gold);text-transform:uppercase;margin-bottom:20px}.hero{min-height:355px;border:1px solid #34403d;position:relative;overflow:hidden;padding:42px 38px;background:#081013 url('assets/cover-paw-v348/cover.avif') center/cover;border-radius:5px}.hero:before{content:'';position:absolute;inset:0;background:linear-gradient(90deg,#081013ed 0%,#081013bb 32%,#08101300 75%)}.hero-content{position:relative;max-width:485px}.hero h1{font-size:50px;margin-bottom:20px}.hero p{font-size:13px;max-width:365px;color:#b9c6c9;line-height:1.8}.hero .eyebrow{font-size:9px}.hero-credit{position:absolute;right:18px;bottom:13px;font-size:8px;letter-spacing:1px;color:#b7b8b4}.actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:25px}.primary{background:var(--gold);color:#172124;border-color:var(--gold);font-weight:500}.primary:hover{background:#e1c99e;color:#102025}.primary .arrow{margin-left:24px}.ghost{background:#101a1d99;color:#d1d9dc}.stats{display:grid;grid-template-columns:repeat(4,1fr);border:1px solid var(--line);margin-top:20px;border-radius:5px}.stat{padding:18px 24px;border-right:1px solid var(--line);display:flex;align-items:baseline;gap:12px}.stat:last-child{border-right:0}.stat strong{font:30px Georgia;color:var(--gold)}.stat span{font-size:10px;color:var(--muted);letter-spacing:.6px}.section-heading{display:flex;align-items:end;justify-content:space-between;gap:16px;margin:34px 0 18px}.section-heading h2{font-size:25px;margin:0}.section-heading p{margin:4px 0 0;font-size:12px}.section-heading a,.section-heading button{font-size:11px;color:var(--gold)}.section-heading button{border:none;background:none;padding:0}.entry-grid{display:grid;grid-template-columns:1.35fr 1fr 1fr;gap:16px}.entry{background:var(--panel);border:1px solid var(--line);border-radius:5px;padding:24px;position:relative;overflow:hidden}.entry:hover{border-color:#687365}.entry .icon{color:var(--gold);font-size:30px;margin-bottom:26px;line-height:1}.entry h3{margin-bottom:9px}.entry p{font-size:12px;margin-bottom:16px}.entry small{font-size:10px;color:var(--gold)}.entry .number{position:absolute;right:22px;top:24px;color:#54666e;font-size:10px}.mini-path{display:flex;gap:0;padding:10px 0 22px;overflow:auto}.mini-milestone{min-width:150px;flex:1;border-top:1px solid #3b4c50;padding:22px 16px 0 0;position:relative;text-align:left;background:none;border-radius:0;border-left:0;border-right:0;border-bottom:0}.mini-milestone:before{content:'';position:absolute;width:7px;height:7px;top:-4px;left:0;border-radius:50%;background:var(--gold);box-shadow:0 0 0 4px var(--bg)}.mini-milestone:hover{background:none;border-top-color:var(--gold)}.mini-milestone strong{font-size:12px;color:var(--gold);display:block}.mini-milestone span{font-size:11px;display:block;margin-top:8px;line-height:1.5;max-width:120px;color:var(--muted)}.two-col{display:grid;grid-template-columns:1.3fr 1fr;gap:20px}.panel{border:1px solid var(--line);border-radius:5px;background:var(--panel);padding:25px}.panel h3{margin-bottom:15px}.finding{padding:15px 0;border-bottom:1px solid var(--line);display:block;width:100%;text-align:left;background:none;border-radius:0;border-left:0;border-right:0;border-top:0}.finding:last-child{border-bottom:0;padding-bottom:0}.finding b{display:block;font-size:12px;font-weight:500;margin:6px 0}.finding p{font-size:11px;margin:0}.badge{font-size:9px;letter-spacing:.5px;text-transform:uppercase;color:var(--teal);background:#75c8b611;padding:4px 7px;border:1px solid #75c8b629;border-radius:3px;white-space:nowrap;display:inline-block}.badge.notes{color:var(--gold);background:#d2b78411;border-color:#d2b78433}.badge.open{color:var(--red);background:#de8b8211;border-color:#de8b8233}.page-top{display:flex;justify-content:space-between;align-items:end;gap:20px;margin-bottom:28px}.page-top h1{font-size:39px;margin-bottom:12px}.page-top .eyebrow{margin-bottom:12px}.page-top p{max-width:760px;margin-bottom:0;font-size:13px}.toolbar{display:flex;gap:10px;align-items:center;flex-wrap:wrap;padding:16px 0;border-top:1px solid var(--line);border-bottom:1px solid var(--line);margin-bottom:24px}.toolbar input{min-width:190px;flex:1;max-width:340px}.tabs{display:flex;gap:4px;flex-wrap:wrap}.tabs button{border:1px solid transparent;background:none;font-size:11px;padding:7px 11px;color:var(--muted)}.tabs button.active{color:var(--gold);border-color:#d2b78444;background:#d2b7840b}.count{margin-left:auto;font-size:11px;color:var(--muted)}.timeline{position:relative}.era-title{color:var(--gold);font-size:10px;letter-spacing:2px;text-transform:uppercase;margin:32px 0 20px 174px}.timeline-row{display:grid;grid-template-columns:150px 1fr;gap:24px;position:relative}.timeline-date{text-align:right;padding:22px 0;font-family:Georgia;font-size:19px;line-height:1.3;color:var(--gold)}.timeline-card{border-left:1px solid #42504c;position:relative;padding:0 0 15px 25px}.timeline-card:before{content:'';width:8px;height:8px;border:1px solid var(--gold);background:var(--bg);position:absolute;left:-5px;top:27px;transform:rotate(45deg)}.event-btn{display:block;width:100%;text-align:left;border-radius:5px;padding:18px 20px;background:var(--panel);border:1px solid var(--line)}.event-top{display:flex;align-items:center;justify-content:space-between;gap:12px}.event-btn h3{margin:0;font-size:16px}.event-btn p{font-size:12px;margin:9px 0 12px;max-width:850px}.tags{display:flex;gap:6px;flex-wrap:wrap}.tag{font-size:9px;color:#9cb2ba;background:#1c2a31;padding:3px 7px;border-radius:3px}.muted{color:var(--muted)}.small{font-size:11px}.cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.research-card{text-align:left;background:var(--panel);border:1px solid var(--line);padding:23px;border-radius:5px;position:relative;display:flex;flex-direction:column;min-height:220px}.research-card .group{font-size:9px;letter-spacing:1.3px;text-transform:uppercase;color:var(--gold);margin-bottom:22px}.research-card h3{font-size:19px;font-family:Georgia;line-height:1.3}.research-card p{font-size:12px;line-height:1.75;margin-bottom:16px}.research-card .card-foot{margin-top:auto;color:var(--gold);font-size:10px;display:flex;justify-content:space-between}.research-card[data-group="Red"]{border-top-color:#a3645a}.research-card[data-group="Green"]{border-top-color:#76a684}.research-card[data-group="White"]{border-top-color:#bcc4d6}.research-card[data-group="Host"]{border-top-color:#60a89e}.research-card[data-group="Bourgha"]{border-top-color:#9976b2}.orb{width:44px;height:44px;border-radius:50%;border:1px solid currentColor;display:flex;align-items:center;justify-content:center;margin-bottom:24px;font-size:25px;color:var(--teal);box-shadow:0 0 30px #75c8b60a}.tech-card .group{margin-bottom:13px}.tech-card{min-height:280px}.map-layout{border:1px solid var(--line);border-radius:6px;overflow:hidden;background:#0b151a}.map-top{display:flex;justify-content:space-between;gap:14px;padding:14px 18px;background:#111e24;border-bottom:1px solid var(--line);align-items:center}.map-tools{display:flex;gap:6px}.map-tools button{padding:5px 10px;font-size:12px}.map-frame{height:640px;overflow:hidden;position:relative;background:radial-gradient(ellipse at 50% 45%,#182c3144,transparent 70%),radial-gradient(#667f852b 1px,transparent 1px);background-size:auto,24px 24px}.map-frame svg{width:100%;height:100%;touch-action:none;cursor:grab}.map-frame svg:active{cursor:grabbing}.map-node{cursor:pointer;outline:none}.map-node rect{fill:#17232b;stroke:#53666c;stroke-width:1}.map-node:hover rect,.map-node:focus rect{fill:#26383e;stroke:var(--gold);stroke-width:2}.map-node text{font-family:'DM Sans',Arial,sans-serif;fill:#e5e9e8;font-size:12px;pointer-events:none}.map-node .node-sub{font-size:9px;fill:#93a7b1}.map-line{stroke:#455f66;stroke-width:1.3;fill:none}.map-line.takeover{stroke:#b47770;stroke-dasharray:5 4}.map-line.descent{stroke:#b29b70}.map-label{font:8px Arial;fill:#92a5ad;paint-order:stroke;stroke:#0b151a;stroke-width:4;stroke-linejoin:round}.map-bottom{padding:12px 18px;display:flex;gap:20px;font-size:10px;color:var(--muted);border-top:1px solid var(--line);flex-wrap:wrap}.legend-line{width:20px;height:1px;background:var(--gold);display:inline-block;vertical-align:middle;margin-right:7px}.legend-line.alliance{background:#657e88}.legend-line.takeover{background:var(--red)}.callout{background:#132127;border-left:2px solid var(--gold);padding:16px 20px;margin:20px 0;font-size:12px;color:#aebdc2}.callout b{color:var(--text);font-weight:500}.source-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.source-card{padding:22px;text-align:left;min-height:195px;display:flex;flex-direction:column}.source-card h3{margin-top:15px}.source-card .source-meta{font-size:10px;color:var(--muted);margin-top:auto}.book-icon{width:32px;height:40px;border:1px solid #786b50;border-left:3px solid #bcaa80;display:flex;justify-content:center;align-items:center;font:13px Georgia;color:var(--gold);background:#d2b78407}.source-toolbar{display:flex;gap:10px;align-items:center;flex-wrap:wrap;margin-bottom:16px}.source-toolbar select{max-width:330px}.source-toolbar input{width:95px}.reader-layout{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:20px;align-items:start}.reader-text{white-space:pre-wrap;font:13px/1.8 'DM Sans',Arial,sans-serif;background:var(--panel);padding:25px;border:1px solid var(--line);border-radius:4px;overflow-wrap:anywhere;max-height:80vh;overflow:auto;margin:0}.reader-image{width:100%;display:block;background:#fff;border-radius:4px}.image-wrap{position:sticky;top:94px}.image-wrap a{font-size:11px;color:var(--gold);display:block;margin-bottom:10px}.no-image{padding:40px;border:1px dashed var(--line);border-radius:4px;color:var(--muted);font-size:12px;line-height:1.8}.doc-search{margin:20px 0;display:flex;gap:10px}.doc-search input{flex:1;max-width:600px}.doc-hits{display:grid;gap:8px;margin:15px 0}.doc-hit{text-align:left;font-size:12px}.doc-hit span{display:block;color:var(--muted);margin-top:5px}.reconcile-card{border:1px solid var(--line);padding:25px;background:var(--panel);border-radius:5px}.reconcile-card h3{font-family:Georgia;font-size:22px;margin:16px 0 12px}.reconcile-card p{font-size:12px;line-height:1.8}.ref-btn{font-size:10px;color:var(--gold);border:1px solid #d2b78433;background:transparent;padding:6px 9px;margin:3px 5px 3px 0;max-width:100%;text-align:left;overflow-wrap:anywhere}#overlay{position:fixed;inset:0;background:#0009;z-index:60;backdrop-filter:blur(3px)}#drawer{position:fixed;right:0;top:0;bottom:0;width:min(740px,96vw);background:#111b21;z-index:61;border-left:1px solid #45514f;overflow-y:auto;padding:32px}.drawer-top{display:flex;justify-content:space-between;align-items:center;margin-bottom:25px}.drawer-top .eyebrow{margin:0}.drawer-top button{border:0;background:none;font-size:18px;padding:5px 10px}#drawer h2{font-size:33px;margin:14px 0 20px}#drawer .detail-summary{font-size:14px;line-height:1.85;color:#b6c4c8}.detail-label{margin-top:30px;padding-top:20px;border-top:1px solid var(--line);font-size:10px;letter-spacing:1.5px;color:var(--gold);text-transform:uppercase}.quote-card{margin:14px 0;background:#0b1419;padding:18px;border:1px solid var(--line);border-radius:5px}.quote-card blockquote{margin:0 0 13px;font:16px/1.6 Georgia;color:#d5dbd9;white-space:pre-line}.quote-card .ref-btn{margin:0;border:0;padding:0}.detail-related{display:flex;flex-wrap:wrap;gap:7px;margin-top:12px}.detail-related button{font-size:11px}#search-dialog{background:#111b21;color:var(--text);border:1px solid #45514f;border-radius:8px;width:min(760px,95vw);padding:0;max-height:80vh}#search-dialog::backdrop{background:#000b;backdrop-filter:blur(5px)}.search-head{display:flex;padding:17px;border-bottom:1px solid var(--line);gap:10px}.search-head input{flex:1;min-width:0;border:0;background:none;font-size:16px}.search-head button{border:0;background:none}#search-results{padding:14px;max-height:60vh;overflow:auto}.search-item{display:block;width:100%;text-align:left;margin:5px 0;background:none;border-color:transparent}.search-item small{display:block;color:var(--gold);font-size:9px;text-transform:uppercase;letter-spacing:1px}.search-item p{margin:5px 0;font-size:11px}.search-item b{font-weight:500}.journal-layout{display:grid;grid-template-columns:1fr 1fr;gap:24px}.journal-form input,.journal-form textarea{width:100%;margin:10px 0}.journal-form label{font-size:11px;color:var(--gold)}.journal-form textarea{min-height:250px;resize:vertical}.journal-entry{border:1px solid var(--line);border-radius:5px;background:var(--panel);padding:20px;margin-bottom:13px}.journal-entry .body{white-space:pre-wrap;color:#b8c5cb;font-size:12px}.journal-entry small{color:var(--muted);font-size:10px}.journal-entry button{float:right;padding:3px 8px;font-size:10px}.bookmarks{display:grid;gap:8px}.bookmark{text-align:left;font-size:12px}.bookmark small{color:var(--gold);display:block}.empty{padding:40px 20px;text-align:center;color:var(--muted);border:1px dashed var(--line);font-size:13px}.media-stage{position:relative;min-height:440px;background:#071016 url('assets/precision-v137/cover.webp') center/cover;border:1px solid #45514f;border-radius:6px;overflow:hidden;display:flex;align-items:end;padding:35px}.media-stage:before{content:'';position:absolute;inset:0;background:linear-gradient(0deg,#071016 0%,#071016cc 25%,#07101600 90%)}.media-copy{position:relative;max-width:640px}.media-copy h2{font-size:38px;margin-bottom:15px}.media-copy p{color:#bfcccf}.media-date{font:25px Georgia;color:var(--gold);margin-bottom:13px}.media-label{position:absolute;top:22px;left:25px;font-size:10px;letter-spacing:2px;color:var(--gold)}.orbit-ring{position:absolute;width:330px;height:330px;border:1px solid #d2b78433;border-radius:50%;right:12%;top:4%;transform:rotateX(55deg);box-shadow:0 0 70px #75c8b617;pointer-events:none}.orbit-ring:after{content:'';position:absolute;width:7px;height:7px;background:#d2b784;border-radius:50%;left:160px;top:-4px;box-shadow:0 0 20px #d2b784}.playing .orbit-ring{animation:orbit 18s linear infinite}@keyframes orbit{to{transform:rotateX(55deg) rotate(360deg)}}.media-controls{display:flex;gap:10px;align-items:center;margin:16px 0}.media-controls input{flex:1;accent-color:var(--gold)}.chapters{display:grid;grid-template-columns:repeat(4,1fr);gap:10px}.chapter{font-size:11px;text-align:left;color:var(--muted)}.chapter.active{border-color:var(--gold);color:var(--gold)}.chapter small{display:block;font-size:9px;color:#748c96}.reading-rules li{margin:12px 0;color:var(--muted);font-size:13px}.reading-rules strong{color:var(--text);font-weight:500}.matrix-cards{display:grid;grid-template-columns:repeat(2,1fr);gap:14px;margin-top:20px}.matrix-card{padding:20px;border:1px solid var(--line);border-radius:5px;background:var(--panel)}.matrix-card h3{font-size:14px}.matrix-card p{font-size:12px}.matrix-card code{font-size:10px;color:var(--gold);white-space:normal}#toast{position:fixed;bottom:25px;left:50%;transform:translateX(-50%);background:#244238;border:1px solid #6fa78b;padding:10px 20px;z-index:100;border-radius:5px;display:none;font-size:12px}.loading{padding:50px;color:var(--muted)}mark{background:#d2b78444;color:var(--text)}[hidden]{display:none!important}.media-caption{font-size:11px;color:var(--muted);margin:14px 0}.review-note{font-size:11px;color:var(--muted);border-top:1px solid var(--line);padding-top:15px;margin-top:20px}.source-warning{font-size:10px;color:var(--muted);margin:8px 0 15px}.compact-list{display:grid;gap:9px}.compact-list button{text-align:left;font-size:12px}.compact-list button small{display:block;color:var(--muted);font-size:10px}.evidence-meta{font-size:10px;color:var(--muted);margin-bottom:10px}
@media(min-width:1550px){.hero{min-height:420px;padding:54px}.hero h1{font-size:62px}.hero p{font-size:14px}.hero-content{max-width:550px}}
@media(max-width:1200px){:root{--sidebar:215px}main{padding:28px}header{padding:0 28px}.header-mark{display:none}.cards,.source-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.entry-grid{grid-template-columns:1fr 1fr 1fr}.entry{padding:19px}.stat{padding:16px;gap:8px}.stat strong{font-size:26px}.stat span{font-size:9px}}
@media(max-width:900px){:root{--sidebar:190px}#sidebar{padding:25px 13px}.brand{font-size:9px}.brand small{font-size:8px}.side-label{margin-top:30px}nav a{font-size:11px;padding:10px 8px;gap:8px}.two-col{grid-template-columns:1fr}.entry-grid{grid-template-columns:1fr}.entry .icon{margin-bottom:16px}.entry{min-height:130px}.hero{padding:30px}.hero h1{font-size:42px}.stats{grid-template-columns:1fr 1fr}.stat:nth-child(2){border-right:0}.stat:nth-child(-n+2){border-bottom:1px solid var(--line)}.reader-layout,.journal-layout{grid-template-columns:1fr}.image-wrap{position:static}.timeline-row{grid-template-columns:95px 1fr;gap:14px}.timeline-date{font-size:16px}.era-title{margin-left:109px}.event-top{align-items:start;flex-direction:column}.breadcrumb{display:none}.search-trigger{margin-left:0}.search-trigger kbd{margin-left:10px}.chapters{grid-template-columns:1fr 1fr}.page-top h1{font-size:33px}.matrix-cards{grid-template-columns:1fr}}
@media(max-width:640px){:root{--sidebar:230px}#sidebar{transform:translateX(-100%);transition:transform .2s}body.menu-open #sidebar{transform:translateX(0);box-shadow:20px 0 100px #000c}#shell{margin-left:0}#menu{display:block;background:none;border:0;font-size:20px;padding:4px}header{height:60px;padding:0 17px;gap:12px}.search-trigger{margin-left:auto;font-size:11px}.search-trigger kbd{display:none}main{padding:22px 16px 45px}.hero{padding:30px 25px;min-height:365px}.hero:before{background:linear-gradient(90deg,#081013ee,#08101377)}.hero h1{font-size:42px}.hero p{font-size:12px}.hero-credit{display:none}.cards,.source-grid{grid-template-columns:1fr}.research-card{min-height:190px}.entry-grid{gap:12px}.page-top{display:block}.page-top .actions{margin-top:18px}.page-top h1{font-size:34px}.toolbar{gap:12px}.toolbar input{max-width:none;min-width:100%;width:100%}.count{margin-left:0}.timeline-row{grid-template-columns:1fr;gap:0}.timeline-date{text-align:left;padding:12px 0 12px 23px}.timeline-card{padding-left:23px;margin-left:3px}.timeline-card:before{top:-27px}.era-title{margin-left:0}.event-btn{padding:16px}.event-btn p{font-size:12px}.map-frame{height:530px}.map-top{align-items:start;flex-direction:column}.map-bottom{gap:9px}.map-label{font-size:9px}.map-tools{width:100%;justify-content:end}.reader-toolbar{gap:6px}.source-toolbar select{max-width:100%;width:100%}.media-stage{min-height:400px;padding:24px}.media-copy h2{font-size:31px}.media-copy p{font-size:12px}.orbit-ring{right:-15%}.media-date{font-size:21px}footer{padding:20px 16px;display:block;font-size:8px}footer span{display:block;margin:5px 0}#drawer{padding:23px}.two-col{gap:14px}.section-heading h2{font-size:23px}.section-heading a{font-size:10px}.mini-milestone{min-width:135px}}
@media(prefers-reduced-motion:reduce){*{animation:none!important;scroll-behavior:auto!important;transition:none!important}}@media print{#sidebar,header,footer,.toolbar,#drawer,#overlay{display:none!important}#shell{margin:0}body{background:white;color:black}main{padding:0}.research-card,.panel,.event-btn{background:white;color:black;break-inside:avoid}p{color:#333}.hero{background:none;color:black}.hero:before{display:none}}
/* Edition 02: source-led study rooms */
#sidebar{display:flex;flex-direction:column}#nav{overflow-y:auto;min-height:0}.side-bottom{position:static;margin-top:auto;padding-top:18px;flex-shrink:0}.side-bottom p{display:none}#nav a{padding-top:11px;padding-bottom:11px}.study-intro{display:flex;align-items:center;justify-content:space-between;gap:30px;padding:30px 40px;background:linear-gradient(120deg,#142522,#111b23);border:1px solid var(--line);margin-bottom:26px}.study-intro>div:first-child{max-width:650px}.study-intro p,.topic-article p,.panel p{line-height:1.85}.orbit-art{position:relative;width:180px;height:180px;flex-shrink:0;display:grid;place-items:center}.orbit-art i{position:absolute;border:1px solid #749b8866;border-radius:50%;inset:0}.orbit-art i:nth-child(2){inset:25px;border-color:#c9ad7366}.orbit-art i:nth-child(3){inset:50px}.orbit-art b{font-size:60px;color:var(--gold);font-weight:normal}.study-card{display:flex;flex-direction:column;text-decoration:none}.study-card .card-foot{margin-top:auto;padding-top:18px}.topic-layout{display:grid;grid-template-columns:210px minmax(0,1fr);gap:40px}.topic-index{align-self:start;position:sticky;top:100px;border-top:1px solid var(--line);padding-top:20px}.topic-index>button{display:block;text-align:left;margin:10px 0;border:0;background:none;font-size:12px;line-height:1.5;color:var(--muted)}.topic-index button span{color:var(--gold);margin-right:8px}.topic-index p{font-size:11px;color:var(--muted);line-height:1.8;margin-top:25px}.topic-article{min-width:0;max-width:1000px}.topic-article h2{font-size:30px}.prose-section{padding:20px 0 28px;scroll-margin-top:95px}.prose-section p{font-size:15px;max-width:78ch}.topic-refs{display:flex;gap:7px;flex-wrap:wrap;margin:16px 0}.topic-refs .ref-btn{font-size:10px;max-width:100%;text-align:left;white-space:normal}.chart-card{margin:0 0 30px;background:#132026;border:1px solid #2d3b42;border-radius:6px;overflow:hidden}.chart-image{display:block;background:#e9e5db;text-align:center;padding:12px}.chart-image img{display:block;width:100%;max-height:680px;object-fit:contain}.chart-card figcaption{padding:24px}.chart-card h3{margin:8px 0 10px}.chart-card p{font-size:13px;color:var(--muted);line-height:1.8}.diagram-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:22px}.compact-chart{margin:0}.compact-chart .chart-image{height:250px}.compact-chart img{height:100%;width:100%;object-fit:contain}.compact-chart figcaption{padding:18px}.compact-chart h3{font-size:20px}.compact-chart .eyebrow{font-size:8px}.diagram-controls{display:flex;align-items:center;gap:12px;flex-wrap:wrap;padding:15px;background:#142026;border:1px solid var(--line)}.diagram-controls label{font-size:12px}.diagram-controls input{max-width:220px;accent-color:#bbac7c}.diagram-stage{background:#262b2c;border:1px solid #455252;height:75vh;overflow:auto;margin:18px 0 28px;overscroll-behavior:contain}.diagram-stage img{display:block;width:100%;max-width:none;transform-origin:center}.diagram-stage #diagram-canvas{min-height:100%;padding:30px}.study-link{display:block;padding:14px 0;color:var(--gold);border-bottom:1px solid var(--line)}.density-buttons{display:grid;grid-template-columns:repeat(5,1fr);gap:7px}.density-buttons button{font-size:13px}.density-buttons small{display:block;font-size:10px;margin-top:6px}.density-buttons .active{background:#37564f;border-color:#82b8a6;color:white}.density-detail{display:grid;grid-template-columns:repeat(3,1fr);gap:20px;padding:25px 0}.density-detail div:last-child{grid-column:1/-1}.density-detail small{font-size:9px;letter-spacing:1.2px;color:var(--muted);display:block;margin-bottom:9px}.density-detail strong{font-size:23px;font-family:Georgia,serif;font-weight:normal}.density-detail p{margin:0}.mission-track{margin-top:35px}.mission-step{display:grid;grid-template-columns:60px minmax(0,1fr);gap:24px;position:relative;padding-bottom:35px}.mission-step:before{content:'';position:absolute;left:29px;top:55px;bottom:0;width:1px;background:#496357}.mission-step:last-child:before{display:none}.mission-marker{border:1px solid #557466;border-radius:50%;width:58px;height:58px;display:grid;place-items:center;color:var(--gold);font-family:Georgia,serif;font-size:24px}.mission-pair{display:grid;grid-template-columns:1fr 1fr;gap:30px;border-top:1px solid var(--line);padding-top:20px;margin-top:22px}.mission-pair h3{font-size:17px}.mission-pair p{font-size:13px}.mission-step details{border-top:1px solid var(--line);padding-top:15px}.mission-step summary{cursor:pointer;font-size:12px;color:var(--gold)}.mission-links{display:flex;gap:10px;flex-wrap:wrap}.mission-links a{border:1px solid var(--line);padding:12px;font-size:12px;color:var(--gold)}.practice-list{display:grid;grid-template-columns:1fr 1fr;gap:25px}.practice-list li{line-height:1.8;font-size:13px;margin:12px 0}.practice-list h3{font-size:18px}.topic-article .cards{grid-template-columns:1fr}.topic-article .research-card{min-height:0}.topic-article .research-card p{font-size:13px}
@media(max-width:1200px){.diagram-grid{grid-template-columns:1fr 1fr}.topic-layout{grid-template-columns:170px minmax(0,1fr);gap:25px}}@media(max-width:800px){.topic-layout{display:block}.topic-index{position:static;margin-bottom:25px;display:flex;flex-wrap:wrap;gap:7px}.topic-index>button{border:1px solid var(--line);padding:8px;margin:0}.topic-index>p,.topic-index>.eyebrow{display:none}.study-intro{padding:22px}.orbit-art{display:none}.mission-pair{grid-template-columns:1fr;gap:10px}.practice-list{grid-template-columns:1fr}.mission-step{grid-template-columns:35px minmax(0,1fr);gap:12px}.mission-marker{width:34px;height:34px;font-size:17px}.mission-step:before{left:17px;top:37px}.diagram-stage{height:65vh}.diagram-controls{gap:8px}.density-detail{gap:12px}.density-detail strong{font-size:19px}}@media(max-width:560px){.diagram-grid{grid-template-columns:1fr}.density-buttons button{padding:8px 2px;font-size:11px}.chart-card figcaption{padding:17px}.prose-section p{font-size:14px}.diagram-stage #diagram-canvas{padding:8px}.mission-step .panel{padding:18px}.toolbar .tabs{overflow:auto;flex-wrap:nowrap;max-width:100%}}

.diagram-stage #diagram-canvas{position:relative;padding:0;margin:20px;min-height:0}.diagram-stage #diagram-full{position:absolute;top:0;left:0}

/* One checked reading orientation in every source-image surface. */
.upright-frame{display:block;position:relative;overflow:hidden;width:100%;max-width:calc(650px * var(--page-ratio));margin:auto;background:white}.upright-frame .upright-raster{position:absolute;top:50%;left:50%;max-width:none!important;max-height:none!important;object-fit:fill!important;transform-origin:center}.chart-image{display:flex;align-items:center;justify-content:center}.compact-chart .upright-frame{max-width:calc(226px * var(--page-ratio))}.image-wrap .upright-frame{max-width:100%}.diagram-notes{font-size:12px;line-height:1.8;border-top:1px solid var(--line);padding-top:12px;margin-top:15px}.diagram-notes summary{cursor:pointer;color:var(--gold)}.diagram-notes ol{padding-left:20px}.topic-index{max-height:calc(100vh - 130px);overflow-y:auto}.prose-section p{white-space:pre-line}@media(max-width:800px){.topic-index{max-height:none}}

/* Detailed race and chronology reading panels */
.record-section{padding:20px 0 8px;border-bottom:1px solid var(--line)}
.record-section:last-child{border-bottom:0}
#drawer .record-section h3{font:23px/1.3 Georgia,serif;color:var(--text);margin:0 0 13px}
.record-section p{font-size:14px;line-height:1.85;color:#b6c4c8;margin:0 0 15px;overflow-wrap:anywhere}
.record-section blockquote{margin:18px 0;padding:14px 18px;border-left:2px solid var(--gold);font:17px/1.65 Georgia,serif;background:#0b1419}
.record-section blockquote .ref-btn{display:block;margin-top:10px}
.record-study-links{display:flex;flex-wrap:wrap;margin-top:14px;gap:5px}
.record-diagrams{display:grid;gap:16px;margin-top:18px}
/* Edition 05 · spatial atlas and visual evidence */
.stargate-intro,.atlas-entry{display:flex;align-items:center;justify-content:space-between;gap:24px;padding:25px 30px;margin:22px 0;border:1px solid #46625e;background:linear-gradient(110deg,#1a3338,#111d29);border-radius:7px}.stargate-intro p,.atlas-entry p{font-size:13px;max-width:780px}.stargate-intro h2,.atlas-entry h2{font-size:29px;margin:10px 0}.stargate-intro .ref-btn,.atlas-entry .ref-btn{flex-shrink:0}.gate-frame{height:auto;aspect-ratio:5/3;min-height:350px;max-height:760px}.gate-filter-bar{display:flex;gap:18px;align-items:center;padding:15px 20px;border-bottom:1px solid var(--line);flex-wrap:wrap}.gate-filter-bar input[type=text],.gate-filter-bar input:not([type]){min-width:240px;flex:1}.gate-filter-bar label{font-size:11px;display:flex;gap:7px;align-items:center}.gate-filter-bar input[type=checkbox]{accent-color:var(--teal)}.gate-layer-controls{display:flex;flex-wrap:wrap;gap:7px;padding:12px 20px}.gate-layer-controls button{font-size:10px;padding:6px 10px;opacity:.5}.gate-layer-controls button.active{opacity:1;border-color:var(--layer-color)}.gate-layer-controls i{display:inline-block;width:7px;height:7px;margin-right:6px;border-radius:50%;background:var(--layer-color)}.gate-description{padding:0 20px 17px;font-size:11px;line-height:1.7;color:var(--muted);max-width:1000px}.earth-land{fill:#233f43;stroke:#64817b;stroke-width:.5}.map-graticule path{stroke:rgba(121,157,161,.13);stroke-width:.6;fill:none}.map-caption{font:9px Arial,sans-serif;fill:#88a5ae;letter-spacing:1.3px}.gate-connection{stroke:rgba(215,186,120,.53);stroke-width:1.1;stroke-dasharray:4 3;fill:none}.gate-node:hover circle,.gate-node:focus circle{fill:#41696b;stroke-width:3}.gate-node:focus{outline:none}.gate-node .gate-place{font:11px Arial,sans-serif;fill:#e8e8d9;paint-order:stroke;stroke:#0c1b23;stroke-width:4px;stroke-linejoin:round}.gate-node text{pointer-events:none}.gate-node .gate-number{font-family:Arial,sans-serif;font-weight:bold}.orbital-guides ellipse{stroke:rgba(124,172,165,.17);stroke-width:1;fill:none}.cosmic-center{font:18px Georgia;fill:#d6d6bd;letter-spacing:5px}.gate-records{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px}.gate-record{display:flex;align-items:center;gap:12px;text-align:left;padding:12px;background:var(--panel);min-width:0}.gate-record b{font-size:12px;font-weight:500}.gate-record small{display:block;font-size:9px;margin-top:5px;color:var(--muted)}.gate-chip{flex:0 0 30px;width:30px;min-height:30px;border:1px solid;border-radius:50%;display:grid;place-items:center;font-size:10px}.gate-networks{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:9px}.network-card{text-align:left;font-size:12px;background:var(--panel);padding:15px}.network-card small{display:block;color:var(--muted);font-size:10px;margin-top:8px}.table-scroll{overflow:auto}.gate-table{width:100%;border-collapse:collapse;min-width:650px}.gate-table th,.gate-table td{text-align:left;padding:12px;border:1px solid var(--line);font-size:11px;vertical-align:top}.gate-table th{background:#1a2a31;color:var(--gold)}.gate-table td{background:var(--panel)}.gate-table .text-btn{display:block;text-align:left;font-size:11px;line-height:1.7;margin:0 0 5px}.reference-map{display:block;max-width:100%;height:auto;margin:18px 0}.diagram-context{font-size:12px;line-height:1.7;color:var(--gold);padding:12px 15px;background:#20312f;border-radius:4px}.appearance-panel p{font-size:13px;line-height:1.8}.likeness-figure{margin:18px 0}.likeness-figure img{display:block;width:100%;max-height:450px;object-fit:contain;background:#091219;border:1px solid var(--line);border-radius:6px}.likeness-figure figcaption{font-size:10px;color:var(--gold);padding:10px 0}.likeness-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:22px}.likeness-card h2{font-size:27px;margin:13px 0}.likeness-card .appearance-panel>.detail-label{display:none}.likeness-card .likeness-figure img{max-height:540px}.art-brief{margin-top:15px;font-size:11px;color:var(--muted)}.art-brief p{font-size:11px}.reference-sheets{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px;margin-bottom:24px}.reference-sheets figure{margin:0}.reference-sheets img{width:100%;height:460px;object-fit:contain;background:#0a1217;margin-top:18px}.reference-sheets figcaption{font-size:12px}.reference-sheets li{margin:7px 0}.race-thumb{height:180px;width:100%;object-fit:cover;object-position:center 24%;border-radius:4px;margin-bottom:20px}.race-quicklinks{display:flex;flex-wrap:wrap;gap:13px;margin:0 0 23px}.race-quicklinks a{font-size:12px;color:var(--gold);border-bottom:1px solid var(--line);padding-bottom:7px}.comparison-preview{margin:25px 0;padding:23px;background:#1c2937;border-left:3px solid #a6b5d4;border-radius:5px}.comparison-preview h3{font:23px Georgia;margin:10px 0}.comparison-preview p{font-size:13px;line-height:1.8}.comparison-cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}.comparison-cards h2{font-size:27px;margin:14px 0}.comparison-cards p{font-size:13px;line-height:1.85}.comparison-quote{padding:32px;margin:25px 0;background:#1a2d31;border:1px solid #45625e}.comparison-quote blockquote{font:30px/1.4 Georgia;color:#e0d6b9;margin:0 0 20px}.comparison-quote p{font-size:13px}.comparison-sequence{max-width:950px}.comparison-sequence article{display:flex;gap:22px;border-left:1px solid #49655f;padding:0 0 28px 22px;margin-left:20px}.sequence-number{border:1px solid #a6aa82;background:#15292d;min-width:35px;height:35px;border-radius:50%;display:grid;place-items:center;margin-left:-40px;color:var(--gold)}.comparison-sequence h3{margin:10px 0;font:24px Georgia}.comparison-sequence p{font-size:14px;line-height:1.85}
@media(max-width:1000px){.gate-records{grid-template-columns:repeat(2,minmax(0,1fr))}.gate-networks{grid-template-columns:repeat(3,minmax(0,1fr))}.reference-sheets,.comparison-cards{grid-template-columns:repeat(2,minmax(0,1fr))}.stargate-layout .map-top{flex-direction:column;align-items:stretch}.stargate-layout .map-tools{justify-content:flex-end}.stargate-layout .tabs{flex-wrap:wrap}}
@media(max-width:640px){.likeness-grid,.reference-sheets,.comparison-cards{grid-template-columns:1fr}.gate-networks,.gate-records{grid-template-columns:repeat(2,minmax(0,1fr))}.gate-record{padding:10px;gap:7px}.gate-record b{font-size:10px}.gate-chip{flex-basis:24px;width:24px;min-height:24px;font-size:8px}.gate-frame{min-height:310px}.stargate-intro,.atlas-entry{padding:20px;display:block}.stargate-intro h2,.atlas-entry h2{font-size:25px}.gate-filter-bar{padding:12px;gap:12px}.gate-layer-controls{padding:12px}.gate-filter-bar input:not([type]){min-width:100%}.comparison-quote{padding:20px}.comparison-quote blockquote{font-size:24px}.reference-sheets img{height:auto;max-height:650px}}
/* Edition 06 · consistent artwork throughout the research paths */
.card-art{display:block;width:100%;height:175px;object-fit:cover;object-position:center;border-radius:4px;margin-bottom:20px;background:#0a151c}
.race-thumb{height:auto;aspect-ratio:1;object-fit:contain;object-position:center}
.event-btn{display:grid;grid-template-columns:116px minmax(0,1fr);gap:20px;align-items:start}
.timeline-art{width:116px;height:100px;object-fit:cover;object-position:center 30%;border-radius:4px;background:#0a151c}
.event-copy{min-width:0}.event-copy p{max-width:none}
.context-art{margin:22px 0 30px;padding:0;max-width:100%}.context-art img{width:100%;height:290px;object-fit:cover;object-position:center 35%;display:block;border-radius:6px;background:#0a151c}
.context-art figcaption{font-size:10px;line-height:1.8;color:var(--muted);padding:10px 0}.context-art figcaption strong{font-weight:500;color:var(--gold)}
#drawer .context-art img{height:300px;object-fit:contain}#drawer .likeness-figure img{max-height:480px}
.mission-art{display:block;width:100%;height:155px;object-fit:cover;border-radius:4px;margin:15px 0 20px}.practice-art{display:block;width:100%;height:180px;object-fit:cover;border-radius:4px;margin-bottom:20px}
.network-art{width:100%;height:92px;object-fit:cover;border-radius:3px;margin-bottom:12px;display:block}
.scene-gallery{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}.scene-gallery .context-art img{height:240px}.scene-gallery .context-art{margin:15px 0}.likeness-card .eyebrow{letter-spacing:1px;line-height:1.7}
@media(max-width:1000px){.event-btn{grid-template-columns:90px minmax(0,1fr);gap:14px}.timeline-art{width:90px;height:90px}}
@media(max-width:640px){.event-btn{grid-template-columns:1fr}.timeline-art{width:100%;height:150px}.race-thumb{height:220px}.card-art{height:190px}.context-art img{height:190px}.scene-gallery{grid-template-columns:1fr}.mission-art{height:130px}}
/* Keep both alternate forms and full dragon anatomy visible. */
img[src*="-dragon-revision.webp"]{object-fit:contain!important;object-position:center!important;background:#0a1217}
.branch-family{margin-bottom:28px}.branch-family-head{display:grid;grid-template-columns:1fr 1.4fr;gap:26px;align-items:center}.branch-family h2{font:30px Georgia;margin:15px 0}.branch-family figure{margin:0}.branch-family img{width:100%;aspect-ratio:3/2;object-fit:contain;background:#091117;border-radius:5px}.branch-family figcaption{font-size:11px;line-height:1.7;color:var(--muted);margin:10px 0 20px}.branch-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.branch-card{text-align:left;white-space:normal;min-width:0;background:#101e27;padding:18px;border:1px solid var(--line);border-radius:5px}.branch-card h3{font:19px/1.4 Georgia;overflow-wrap:anywhere;margin:10px 0}.branch-card p{font-size:12px;line-height:1.7}.branch-card small{font-size:10px;color:var(--gold)}.branch-card:hover{border-color:var(--gold)}.branch-card .eyebrow{font-size:9px}.elohei-cards{grid-template-columns:1fr 1fr;margin-bottom:24px}.lineage-portrait{width:100%;height:360px;object-fit:contain;background:#091117}.lineage-steps li{padding:10px 0;line-height:1.8}#branch-family{max-width:320px}#branch-search{min-width:220px;flex:1}@media(max-width:1000px){.branch-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.branch-family-head{grid-template-columns:1fr}}@media(max-width:640px){.branch-grid,.elohei-cards{grid-template-columns:1fr}.lineage-portrait{height:280px}#branch-family{max-width:100%;width:100%}}

img[src*="assets/voyagers/"]{object-fit:contain!important;object-position:center!important;background:#091117}

.branch-portrait{display:block;width:100%;aspect-ratio:1;object-fit:contain;background:#07121b;border-radius:8px;margin-bottom:18px}.branch-card:has(.branch-portrait){padding:16px}.additional-form-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}.additional-form-grid .likeness-figure img{aspect-ratio:1;object-fit:contain}.branch-card small{display:block;margin-top:12px}@media(max-width:1050px){.additional-form-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:650px){.additional-form-grid{grid-template-columns:1fr}}

/* Readable, source-led context directly on deep-time cards. */
.timeline-facts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px 24px;padding:13px 0 15px;margin:0 0 12px;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}
.timeline-fact{display:flex;flex-direction:column;gap:5px;font-size:12px;line-height:1.65;color:#b5c5cb;min-width:0}.timeline-fact strong{font-size:10px;font-weight:600;letter-spacing:.7px;text-transform:uppercase;color:var(--gold)}.timeline-fact:last-child:nth-child(odd){grid-column:1/-1}.timeline-evidence{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-top:13px;font-size:10px;color:var(--muted);line-height:1.5}.timeline-evidence>span{color:var(--gold)}
@media(max-width:800px){.timeline-facts{grid-template-columns:1fr;gap:11px}.timeline-fact:last-child:nth-child(odd){grid-column:auto}}
/* Earth atlas workbench */
.atlas-levels{margin-bottom:18px;gap:8px}.atlas-workbench{border:1px solid var(--line);border-radius:8px;background:#0c161b;overflow:hidden}.atlas-command{display:flex;align-items:end;gap:14px;padding:20px;border-bottom:1px solid var(--line);flex-wrap:wrap}.atlas-command label{display:grid;gap:6px;font-size:10px;letter-spacing:.8px;color:var(--gold)}.atlas-command select{max-width:340px;font-size:12px;letter-spacing:0}.atlas-command button{font-size:12px}.atlas-workbench .gate-filter-bar{margin:0;padding:14px 20px;flex-wrap:wrap}.atlas-workbench .map-tools{margin-left:auto}.atlas-body{display:grid;grid-template-columns:280px minmax(0,1fr);align-items:start}.atlas-body.legend-closed{grid-template-columns:1fr}.atlas-body.legend-closed .atlas-legend{display:none}.atlas-legend{border-right:1px solid var(--line);padding:18px;max-height:850px;overflow:auto;background:#111c22}.legend-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:8px}.legend-head .eyebrow{font-size:9px;margin:0}.atlas-legend details{border-top:1px solid var(--line);padding:13px 0}.atlas-legend summary{cursor:pointer;font-size:12px;color:var(--gold);margin-bottom:10px}.atlas-layer{display:flex;align-items:flex-start;gap:8px;padding:8px 0;cursor:pointer;font-size:11px;line-height:1.45}.atlas-layer input{accent-color:var(--teal);margin:2px 0 0;flex-shrink:0}.atlas-layer i{width:8px;height:8px;border-radius:50%;margin-top:5px;flex-shrink:0}.atlas-layer small{display:block;font-size:9px;color:#839aa3;margin-top:3px}.atlas-key{display:block;border:0;border-radius:0;background:none;text-align:left;padding:7px 0;font-size:10px;width:100%;color:var(--muted)}.atlas-key b{color:var(--gold);margin-right:5px}.atlas-marker-key{display:grid;gap:7px;border-top:1px solid var(--line);padding-top:15px;font-size:10px;color:var(--muted)}.atlas-canvas{min-width:0}.atlas-canvas .gate-description{min-height:60px;font-size:11px;padding:15px 20px}.atlas-canvas .gate-frame{height:670px;min-height:400px;max-height:80vh;border-top:1px solid var(--line);border-bottom:1px solid var(--line);background:#091317}.atlas-canvas svg{width:100%;height:100%;touch-action:none}.atlas-alignments{stroke-width:.6;stroke-dasharray:3 4;opacity:.55}.source-hotspot{opacity:.5}.source-hotspot:hover,.source-hotspot:focus{opacity:1}.source-hotspot:hover circle,.source-hotspot:focus circle{fill:#d1aa54aa;stroke:#19262a;stroke-width:3}.gate-node .gate-place{paint-order:stroke;stroke:#0c151b;stroke-width:3px;stroke-linejoin:round;font-size:9px;fill:#eee}.atlas-sheets{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin-bottom:30px}.atlas-sheets a{border:1px solid var(--line);background:var(--panel);padding:9px;border-radius:5px}.atlas-sheets img{width:100%;height:145px;object-fit:contain;background:#e7e5dd}.atlas-sheets span{display:block;font-size:11px;color:var(--gold);padding-top:10px}.atlas-unlocated{margin:24px 0}.atlas-unlocated summary,.atlas-correspondences summary{cursor:pointer;color:var(--gold);font-size:14px}.atlas-unlocated .gate-records{margin-top:15px}.atlas-correspondences{margin:24px 0}.atlas-source-note{border-top:1px solid var(--line);padding:24px 0;font-size:12px;line-height:1.8}.atlas-command select:disabled{opacity:.4}.atlas-command #legend-toggle{margin-left:auto}.atlas-workbench .map-bottom{flex-wrap:wrap;gap:8px}.atlas-legend .small{font-size:10px}.atlas-workbench .gate-connection{stroke-dasharray:4 4;opacity:.65}
@media(max-width:1150px){.atlas-body{grid-template-columns:230px minmax(0,1fr)}.atlas-command select{max-width:280px}.atlas-sheets{grid-template-columns:repeat(2,minmax(0,1fr))}.atlas-canvas .gate-frame{height:580px}}
@media(max-width:760px){.atlas-body{display:flex;flex-direction:column}.atlas-legend{width:100%;max-height:300px;border-right:0;border-bottom:1px solid var(--line)}.atlas-canvas{width:100%}.atlas-command{padding:14px;gap:10px}.atlas-command label{width:100%}.atlas-command select{width:100%;max-width:none}.atlas-command #legend-toggle{margin-left:0}.atlas-canvas .gate-frame{height:460px;min-height:300px}.atlas-workbench .gate-filter-bar{padding:12px}.atlas-workbench .map-tools{margin-left:0}}

/* Interactive Amenti map: numbered markers remain legible; names emerge on zoom. */
#map-frame .atlas-place-label{display:none;font-size:5px}#map-frame.atlas-detailed .atlas-place-label{display:block}#map-frame .gate-node:hover .atlas-place-label,#map-frame .gate-node:focus .atlas-place-label{display:block;font-size:7px}.atlas-pin-leader{stroke:#b8cccd;stroke-width:.55;opacity:.7;fill:none}.atlas-alignments{opacity:.25}
/* Wide atlas with the complete legend below the map. */
.atlas-body,.atlas-body.legend-closed{display:flex;flex-direction:column}.atlas-canvas{width:100%}.atlas-legend{width:100%;border-right:0;border-top:1px solid var(--line);max-height:none;overflow:visible;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px 24px}.atlas-legend>.legend-head,.atlas-legend>p,.atlas-legend>.atlas-network-legend,.atlas-legend>.atlas-marker-key{grid-column:1/-1}.atlas-legend details{min-width:0}.atlas-network-toggles{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px 20px}.atlas-legend-symbol{width:18px;height:18px;flex:0 0 18px;background:#1b2b30;border-radius:2px}.atlas-canvas .gate-frame{height:auto;aspect-ratio:1136/628;min-height:400px;max-height:none}.atlas-alignments{opacity:.65}.atlas-edge-label{font-size:5px;fill:#d9d7bb;stroke:none}.atlas-edge-families{fill:#b8cbd0;font-size:7px;stroke:none;letter-spacing:.3px}.atlas-marker-code{paint-order:stroke;stroke:#0c151b;stroke-width:1.5px;pointer-events:none}.atlas-hit{stroke:none!important}.atlas-network-shape{cursor:pointer;opacity:.8;outline:none}.atlas-network-shape:hover,.atlas-network-shape:focus{opacity:1;filter:drop-shadow(0 0 3px var(--network-color))}.atlas-network-shape path{pointer-events:stroke}.atlas-network-shape:focus path{stroke-width:4}.atlas-network-history,.atlas-history-index{margin:24px 0}.network-history-card{display:grid;grid-template-columns:2fr 1fr;gap:24px;margin:16px 0}.network-history-card img{width:100%;height:280px;object-fit:contain;background:#e9e9e4}.network-history-card p{font-size:13px;line-height:1.8}.network-history-card blockquote{margin:14px 0;padding-left:14px;border-left:2px solid var(--gold);color:var(--gold)}.network-history-card blockquote small{display:block;color:var(--muted);font-size:10px}.network-history-card .ref-btn{display:inline-block;margin:6px 0}.atlas-legend .atlas-marker-key{display:block}.atlas-marker-key span{margin-right:20px}.atlas-canvas .source-hotspot{opacity:.8}#map-frame .atlas-place-label{font-size:5px}#map-frame .gate-node:hover .atlas-place-label,#map-frame .gate-node:focus .atlas-place-label{font-size:6px}
@media(max-width:900px){.atlas-legend{grid-template-columns:repeat(2,minmax(0,1fr))}.atlas-network-toggles{grid-template-columns:repeat(2,minmax(0,1fr))}.network-history-card{grid-template-columns:1fr}.atlas-canvas .gate-frame{min-height:330px}}
@media(max-width:600px){.atlas-legend,.atlas-network-toggles{grid-template-columns:1fr}.atlas-canvas .gate-frame{aspect-ratio:1.25;min-height:300px}.atlas-network-legend{grid-column:auto}}
/* Compact controls keep the map and its toggles together on screen. */
.atlas-workbench{overflow-anchor:none}.atlas-workbench .atlas-legend{display:block;padding:10px 14px;max-height:none;overflow:visible}.compact-legend-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 0 8px}.compact-legend-tabs{display:flex;gap:6px;flex-wrap:wrap}.compact-legend-tabs button{padding:5px 10px;font-size:11px;line-height:1.4;background:transparent;color:var(--muted)}.compact-legend-tabs button.active{color:var(--gold);background:#22302f;border-color:#5a6450}.compact-legend-tabs button span{display:inline-block;margin-left:4px;font-size:9px;opacity:.75}.compact-legend-head>.text-btn{white-space:nowrap;font-size:10px}.compact-legend-panel{display:flex;flex-wrap:wrap;align-content:flex-start;gap:6px;height:108px;overflow:auto;overscroll-behavior:contain;scrollbar-width:thin;padding:1px 3px 4px 1px}.atlas-legend .compact-layer{display:inline-flex;align-items:center;gap:6px;padding:5px 8px;margin:0;border:1px solid #2c3b40;border-radius:5px;background:#101b20;font-size:11px;line-height:18px;white-space:nowrap;min-height:30px}.atlas-legend .compact-layer.is-on{background:#1e302f;border-color:#4c6a60;color:#e6eee8}.atlas-legend .compact-layer:hover{border-color:var(--gold)}.atlas-legend .compact-layer input{margin:0;width:12px;height:12px}.atlas-legend .compact-layer .atlas-legend-symbol{width:14px;height:14px;flex-basis:14px}.compact-help{width:100%;font-size:11px;line-height:1.5;margin:0 0 4px}.atlas-legend .compact-key{width:auto;display:inline-block;padding:4px 8px;border:1px solid var(--line);border-radius:4px;font-size:10px}.atlas-workbench .atlas-command{padding:10px 14px;gap:10px}.atlas-command label{gap:3px}.atlas-command select{padding:6px 9px}.atlas-command button{padding:7px 10px}.atlas-workbench .gate-filter-bar{padding:8px 14px;gap:12px}.atlas-workbench .gate-filter-bar input[type=search]{padding:6px 9px}.atlas-canvas .gate-description{min-height:0;padding:6px 14px;font-size:10px;line-height:1.4}.atlas-canvas .gate-frame{height:clamp(220px,calc(100dvh - 420px),620px);min-height:220px;max-height:none;aspect-ratio:auto}.atlas-workbench .map-bottom{padding:5px 14px;font-size:9px;line-height:1.5}.atlas-legend .compact-layer:focus-within{outline:2px solid var(--teal);outline-offset:1px}
@media(max-width:700px){.atlas-workbench .atlas-command label{width:auto;flex:1 1 160px}.atlas-command select{max-width:100%}.atlas-canvas .gate-frame{height:36dvh;min-height:220px}.compact-legend-panel{height:126px}.compact-legend-tabs button{font-size:10px;padding:5px 7px}.atlas-workbench .atlas-legend{padding:8px}.atlas-legend .compact-layer{font-size:10px;padding:5px 7px}.atlas-canvas .gate-description{display:none}}

/* Fit follows the geographic rectangle; captions no longer consume SVG space. */
.atlas-canvas .gate-frame{height:auto;min-height:0;aspect-ratio:1000 / 506;max-height:none}.atlas-canvas .gate-frame svg{display:block;width:100%;height:100%}.atlas-alignments .atlas-edge-label{font-size:4.5px;paint-order:stroke;stroke:#0b202a;stroke-width:1.4px;fill:#c7d9b7}.atlas-alignments path{fill:none;stroke-width:.45;opacity:.55;vector-effect:non-scaling-stroke}.atlas-canvas .gate-description{font-size:9px;padding:4px 12px}.atlas-workbench .compact-legend-panel{height:108px}

.atlas-group-buttons{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;width:100%}.atlas-group-buttons button{text-align:left;padding:6px 10px;font-size:11px}.atlas-group-buttons button small{display:block;font-size:9px;color:var(--muted)}.atlas-group-buttons button.active{border-color:var(--gold);background:#29332d}.atlas-source-hotspots .atlas-network-shape{opacity:1}.atlas-source-hotspots rect,.atlas-source-hotspots circle{fill:transparent;stroke:transparent;pointer-events:all}.atlas-source-hotspots .atlas-network-shape:hover>*:not(title),.atlas-source-hotspots .atlas-network-shape:focus>*:not(title){stroke:#268aaf;stroke-width:2;fill:#40a8c51a}.atlas-group-citation{font-size:12px}@media(max-width:600px){.atlas-group-buttons{grid-template-columns:repeat(2,minmax(0,1fr))}}

.photo-legend-panel{display:grid!important;grid-template-columns:1.45fr 1fr;gap:12px!important;height:auto!important;max-height:230px;overflow:auto}.photo-legend-group{min-width:0;border:1px solid #485852;border-radius:5px;padding:7px}.photo-legend-group h4{font-size:9px;color:var(--gold);letter-spacing:.06em;margin:0 0 5px}.photo-legend-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:2px 5px}.photo-legend-grid .compact-layer{white-space:normal!important;font-size:9px!important;line-height:1.25!important;padding:3px 2px!important;border:0!important;background:transparent!important;min-height:24px!important;gap:4px!important}.photo-legend-grid .compact-layer input{width:10px;height:10px;flex:0 0 10px}.photo-legend-grid .compact-layer:not(.is-on){opacity:.5}.photo-legend-grid .atlas-legend-symbol{width:13px!important;flex-basis:13px!important}@media(max-width:900px){.photo-legend-panel{grid-template-columns:1fr;max-height:210px}.photo-legend-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}

/* Compact source-style tags stay inside the geographic frame. */
.atlas-edge-tag{cursor:help;opacity:.82}.atlas-edge-tag rect{fill:#122329;fill-opacity:.94;stroke:var(--grid-color);stroke-width:.45;stroke-dasharray:none}.atlas-edge-tag text{font-size:5.3px;font-weight:600;letter-spacing:.08px;fill:#e3e9de;stroke:none;paint-order:normal;pointer-events:none}.atlas-labelled-line:hover .atlas-edge-tag{opacity:1}.atlas-alignments .atlas-labelled-line:hover .atlas-grid-stroke{stroke-width:1.5;opacity:1}.atlas-labelled-line:hover .atlas-edge-tag rect{fill:#263b3c;stroke-width:.8}.atlas-grid-stroke{pointer-events:none}
.atlas-alignments{opacity:1}.atlas-alignments .atlas-grid-stroke{opacity:.35}

/* Expanded atlas keeps the map and its compact legend together in the viewport. */
body:has(.atlas-expanded){overflow:hidden}
.atlas-workbench.atlas-expanded{position:fixed;inset:0;z-index:45;background:var(--bg);border-radius:0;margin:0;padding:8px;display:flex;flex-direction:column;height:100dvh;overflow:hidden}
.atlas-expanded .atlas-command,.atlas-expanded .gate-filter-bar{flex-shrink:0;padding:6px 10px}
.atlas-expanded .atlas-body{flex:1;min-height:0;display:flex;flex-direction:column;overflow:hidden}
.atlas-expanded .atlas-canvas{flex:1;min-height:100px;display:flex;flex-direction:column;overflow:hidden}
.atlas-expanded .atlas-canvas .gate-frame{flex:1;min-height:0;height:0;aspect-ratio:auto!important}
.atlas-expanded .atlas-legend{flex:none;max-height:30dvh;overflow:auto;margin:0}
.atlas-expanded .map-bottom{padding:3px 10px;flex-shrink:0}
.atlas-expanded .gate-description{flex-shrink:0}
.atlas-expanded .legend-closed .atlas-legend{display:none}
@media(max-width:650px){.atlas-expanded .atlas-command{flex-wrap:wrap}.atlas-expanded .atlas-legend{max-height:35dvh}.atlas-expanded .gate-filter-bar{flex-wrap:wrap}}

.atlas-geography{pointer-events:none}
.atlas-geography-name{font-family:Arial,sans-serif;font-size:5.6px;fill:#c5d5d8;stroke:#10232b;stroke-width:1.8px;paint-order:stroke;stroke-linejoin:round;letter-spacing:.25px}
.atlas-geography-name.geography-continent{font-size:8px;letter-spacing:1.8px;fill:#a6bdc4;font-weight:600;text-transform:uppercase}
.atlas-geography-name.geography-ocean{font-size:7px;letter-spacing:1.4px;fill:#88aab9;font-style:italic}
.atlas-geography-name.geography-island,.atlas-geography-name.geography-place{font-size:4.8px}

.atlas-closeup-place{display:none}.atlas-detailed .atlas-closeup-place{display:inline}

.atlas-pin-leader{stroke:#ead184;stroke-width:1.2;vector-effect:non-scaling-stroke;fill:none;opacity:.9;pointer-events:none}

/* Map gestures select sites, never text; detail panels remain copyable. */
.atlas-workbench .map-frame,.atlas-workbench .map-frame *{-webkit-user-select:none;user-select:none;-webkit-user-drag:none}

/* Creation scale study */
.scale-intro{padding:32px;border:1px solid var(--gold,#d2b784);border-radius:8px;margin-bottom:24px;background:linear-gradient(120deg,#182b30,#101820)}.scale-total{font-size:clamp(36px,6vw,72px);color:var(--gold,#d2b784);line-height:1.2;margin:14px 0;font-variant-numeric:tabular-nums}.scale-intro p{max-width:750px}.scale-levels{display:grid;gap:7px}.scale-levels button{display:flex;justify-content:space-between;align-items:center;text-align:left;gap:12px;padding:13px;border:1px solid #374448;border-radius:4px;background:#111c22;color:#e4e7df;width:100%}.scale-levels button.active{border-color:#75c8b6;background:#203a3d}.scale-levels small{display:block;color:#aab9b8;margin-top:5px}.scale-levels strong{color:#d2b784;white-space:nowrap}.scale-toggle{display:flex;align-items:center;gap:10px;margin:20px 0}.scale-toggle input{width:18px;height:18px}.scale-block{margin-top:24px}.scale-block p{line-height:1.75}.scale-block a{color:#8ed6c6}.scale-table{overflow-x:auto}.scale-table table{width:100%;border-collapse:collapse;min-width:560px}.scale-table td,.scale-table th{text-align:left;vertical-align:top;padding:15px 12px;border-bottom:1px solid #374448}.scale-bar-row{margin:18px 0}.scale-bar-row span{font-size:12px;display:block;margin-bottom:8px}.scale-bar-row div{height:9px;background:linear-gradient(90deg,#75c8b6,#d2b784);border-radius:6px}.scale-block details{padding:16px 0}.scale-block summary{cursor:pointer;color:#d2b784}#scale-estimate{display:block;width:100%;margin:12px 0;padding:12px}#scale-ratio{min-height:70px}
/* Timestamped lecture corpus */
.lecture-results{display:grid;gap:10px;margin:18px 0;max-height:520px;overflow:auto}.lecture-results a{color:var(--text);text-decoration:none}.lecture-reader-controls{display:flex;justify-content:space-between;align-items:center;gap:12px;position:sticky;top:64px;background:var(--bg,#0b1115);padding:12px 0;z-index:3}.lecture-segment{display:grid;grid-template-columns:150px 1fr;gap:20px;padding:14px 10px;border-bottom:1px solid #ffffff12;scroll-margin-top:140px}.lecture-segment>a{color:var(--gold);font-size:11px;font-variant-numeric:tabular-nums}.lecture-segment p{margin:0;line-height:1.75}.lecture-segment.selected{background:#d2b78415;border-left:3px solid var(--gold)}.lecture-reader-controls span{font-size:12px;color:var(--muted)}@media(max-width:650px){.lecture-segment{grid-template-columns:1fr;gap:6px}.lecture-reader-controls{top:56px}}

.lecture-table{overflow-x:auto;margin:18px 0}.lecture-table table{border-collapse:collapse;width:100%;font-size:13px}.lecture-table td,.lecture-table th{padding:12px;border:1px solid var(--line);text-align:left;vertical-align:top}blockquote small{display:block;font:11px sans-serif;text-transform:uppercase;letter-spacing:.06em;margin-bottom:10px;opacity:.7}.prose-section>p{white-space:pre-line}

/* Cosmic reading environment: Hubble's Carina Nebula, with a bundled fallback. */
body{background:#060c18;isolation:isolate}
body::before{content:'';position:fixed;inset:0;z-index:-1;pointer-events:none;background-image:linear-gradient(90deg,rgba(4,10,23,.88),rgba(5,12,27,.72) 45%,rgba(5,10,24,.62)),url('https://science.nasa.gov/wp-content/uploads/2023/04/eta-carinae-hubble20thpic-jpg.webp'),url('assets/cosmic-archive.webp');background-size:cover;background-position:center,center 40%,center;background-repeat:no-repeat}
#sidebar{background:rgba(7,15,26,.94);border-right-color:#344355}
header{background:rgba(7,14,26,.89)}
footer{background:rgba(7,14,26,.85);flex-wrap:wrap;gap:10px}
footer .space-credit{color:#aebdcd;font-size:9px;text-decoration:underline;text-underline-offset:3px}
.stats,.topic-index{background:rgba(10,20,32,.9)}
.prose-section,.lecture-reader{background:rgba(9,18,30,.88);border-radius:6px}
.prose-section{padding:24px}
.lecture-segment{background:rgba(9,18,30,.9)}
.page-top p{color:#bac7d2}
@media(max-width:650px){.prose-section{padding:18px}body::before{background-position:center,60% center,center}}
@media print{body::before{display:none}}
.relationship-atlas .map-top{flex-wrap:wrap;gap:12px}.relationship-atlas .tabs{flex-wrap:wrap}.relationship-atlas .map-frame{height:650px;max-height:75vh;min-height:380px}.relationship-atlas svg{touch-action:none;user-select:none}.relation-filters{display:flex;flex-wrap:wrap;gap:12px;align-items:end;padding:16px 20px;background:#101b25}.relation-filters label{display:grid;gap:5px;font-size:11px;color:#c0ccd4}.relation-filters select{max-width:290px;padding:8px;font-size:12px}.relation-filters #relation-count{margin-left:auto;font-size:12px;color:var(--gold)}.relation-description{margin:0;padding:12px 20px;background:#101b25;color:#acbdca;font-size:12px}.relation-edge{cursor:pointer;outline:none}.relation-hit{fill:none;stroke:transparent;stroke-width:20;pointer-events:stroke}.relation-stroke{fill:none;stroke-width:2;pointer-events:none}.relation-edge:hover .relation-stroke,.relation-edge:focus .relation-stroke{stroke-width:4}.relation-edge:focus circle{stroke:#fff;stroke-width:3}.relation-node rect{fill:#14232f;stroke:#526777;stroke-width:1.5}.relation-node:hover rect,.relation-node:focus rect{fill:#203645;stroke:var(--gold);stroke-width:2}.relation-node text{fill:#e6ecee}.relation-node{outline:none}.relation-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.relation-list-scroll{padding:20px;height:100%;overflow:auto;align-content:start}.relation-card{display:flex;text-align:left;align-items:start;gap:12px;padding:16px;background:#111d29;border:1px solid #314657;border-radius:7px;width:100%}.relation-card strong,.relation-card span,.relation-card small{display:block}.relation-card strong{font-size:13px;line-height:1.5;color:#e0e8ed}.relation-card span{font-size:12px;color:var(--gold);margin-top:5px}.relation-card small{font-size:11px;color:#aebdca;margin-top:5px}.relation-card .relation-number{border:1px solid #6b7c89;border-radius:50%;min-width:25px;height:25px;text-align:center;line-height:23px;margin:0}.relation-status{color:var(--gold);font-size:12px;margin:14px 0}.relation-empty{padding:50px;text-align:center}.relationship-atlas .map-bottom svg{vertical-align:middle;margin-right:7px}#drawer .relation-list{grid-template-columns:1fr}@media(max-width:760px){.relation-list{grid-template-columns:1fr}.relation-filters label{width:100%}.relation-filters select{max-width:100%;width:100%}.relationship-atlas .map-frame{height:480px;min-height:300px}.relationship-atlas .map-top .tabs button{font-size:11px;padding:8px}}

.atlas-detail-gallery{display:grid;grid-template-columns:repeat(auto-fit,minmax(190px,1fr));gap:14px;margin:20px 0}.atlas-detail-gallery figure{margin:0;padding:10px;background:#0b1620;border:1px solid #324653;border-radius:8px}.atlas-detail-gallery img{width:100%;height:260px;object-fit:contain;display:block}.atlas-detail-gallery figcaption{font-size:11px;color:#afc0cc;line-height:1.5;margin-top:10px}.atlas-detail-section{padding:22px 0;border-bottom:1px solid #30404c}.atlas-detail-section h3{margin:12px 0;font-size:18px}.atlas-detail-section p{line-height:1.8}.atlas-qualification{font-size:12px;border-left:2px solid #b7a57d;padding-left:12px}.atlas-milestones{display:grid;gap:8px;margin:16px 0}.atlas-milestones button{text-align:left;display:grid;gap:5px}.atlas-milestones strong{color:var(--gold)}.atlas-milestones span{font-size:12px;color:var(--muted)}

/* Spacious, width-first lineage workspace */
main:has(.relationship-atlas){max-width:none;padding-left:22px;padding-right:22px}.relationship-atlas .map-frame{height:80vh;max-height:none;min-height:560px}.relationship-atlas .relation-description{padding:8px 16px}.relationship-atlas .relation-filters{padding:10px 16px}.relationship-atlas .map-tools{flex-wrap:wrap}@media(max-width:760px){main:has(.relationship-atlas){padding-left:10px;padding-right:10px}.relationship-atlas .map-frame{height:72vh;min-height:430px}}

/* Reduce chrome above the tree so more branches appear on arrival. */
main:has(.relationship-atlas)>.page-top{margin-bottom:18px}
.relationship-atlas .map-top{padding:10px 14px;gap:8px}
.relationship-atlas .tabs{gap:3px}
.relationship-atlas .tabs button{padding:7px 9px;font-size:11px}
.relationship-atlas .map-tools button{padding:6px 9px}

.uir-source-heading{font-family:var(--serif,Georgia,serif);font-size:clamp(24px,3vw,34px);color:var(--gold);margin:36px 0 20px;line-height:1.25}.uir-field{margin:18px 0}.uir-field h3{font-size:18px;margin:16px 0 12px}.uir-field details{margin-bottom:16px}.branch-card h4{font-size:17px;line-height:1.4;margin:10px 0}.uir-source-section{scroll-margin-top:30px}

/* Paired Necromiton interpretations: retain the original asset, focus its centre panel. */
.family-art-pair{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:16px;align-items:start}
.family-art-pair figure{min-width:0}.family-full-form,.companion-form-image{display:block;background:#091117;border-radius:5px;overflow:hidden}
.family-art-pair .family-full-form img{height:390px;aspect-ratio:auto;object-fit:contain}
.companion-form-image.center-third{aspect-ratio:1/2;max-height:390px;width:auto;max-width:100%;margin:auto}
.branch-family .companion-form-image.center-third img,#drawer .context-art .companion-form-image.center-third img{width:300%;max-width:none;height:auto;aspect-ratio:3/2;object-fit:contain;transform:translateX(-33.333333%);border-radius:0;display:block}
.companion-form{padding-top:20px;margin-top:20px;border-top:1px solid var(--line)}
@media(max-width:640px){.family-art-pair{gap:10px}.family-art-pair .family-full-form img{height:290px}.family-art-pair .companion-form-image.center-third{max-height:290px}.family-art-pair figcaption{font-size:10px}}

.plasma-priority{display:grid;grid-template-columns:minmax(0,1fr) 230px;gap:24px;border-color:#75c8b6;margin:22px 0;background:linear-gradient(120deg,rgba(36,85,87,.35),rgba(15,19,32,.9))}.plasma-priority h2{margin:10px 0}.plasma-links{display:flex;flex-wrap:wrap;gap:8px;margin-top:14px}.plasma-portrait{align-self:center;text-decoration:none}.plasma-portrait img{width:100%;border-radius:12px}.plasma-portrait span{display:block;margin-top:8px}@media(max-width:700px){.plasma-priority{grid-template-columns:1fr}.plasma-portrait{display:none}}

.original-work-credit p{margin:8px 0 12px}.support-intro{border-color:#9c8b61}.support-sites{margin:22px 0}.support-sites .panel{display:flex;flex-direction:column;align-items:flex-start}.support-sites .ref-btn{margin-top:auto}#nav a[href="#support"]{border-top:1px solid #39443f;margin-top:14px;padding-top:17px;color:#dec997}
.rod-alignment,.rod-diamond-network{cursor:pointer;outline:none}.rod-alignment:hover,.rod-alignment:focus,.rod-diamond-network:hover,.rod-diamond-network:focus{filter:drop-shadow(0 0 2px #dfecc3)}.rod-alignment text{paint-order:stroke;stroke:#0b202a;stroke-width:1.4px;pointer-events:none}
/* Reveal a suppressed place name on keyboard focus or hover; codes remain packed. */
.gate-node:hover .atlas-place-label,.gate-node:focus .atlas-place-label{opacity:1!important;paint-order:stroke;stroke:#081820;stroke-width:3px}.atlas-pin-leader{pointer-events:none}
.earth-land path,.map-graticule path,.gate-connection{vector-effect:non-scaling-stroke}

/* Compact, quiet callouts retain geographic anchor tips. */
.atlas-pin-leader{stroke-width:.75;opacity:.62}

/* Technology artwork: preserve the complete composition at every card size. */
.tech-card .card-art{height:auto;aspect-ratio:3/2;object-fit:contain}

/* Shared technology imagery across timeline and study records. */
.technology-context{margin:24px 0;padding:18px;border:1px solid var(--line,#30424a);border-radius:6px}.technology-context h3{margin:0 0 8px}.technology-art-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(190px,1fr));gap:14px;margin-top:14px}.technology-art-link{display:flex;flex-direction:column;gap:8px;padding:10px;background:#0b171e;border-radius:5px;color:var(--gold,#d1b77d);text-decoration:none}.technology-art-link img{width:100%;height:auto;aspect-ratio:3/2;object-fit:contain;border-radius:4px}.technology-art-link small{font-size:10px;color:var(--muted)}.technology-art-link:hover{outline:1px solid var(--gold,#d1b77d)}.timeline-art,.study-card .card-art,.mission-art{object-fit:contain}.technology-context summary{cursor:pointer;color:var(--gold,#d1b77d);padding:8px 0}

/* Full-width UIR family lineups; headings stay outside the image. */
.branch-family-head{display:block!important}.family-panorama{width:100%;margin:24px 0}.family-panorama>a{display:block}.branch-family .family-panorama img{display:block;width:100%;height:auto;aspect-ratio:auto;max-height:none;object-fit:contain;border-radius:6px;background:#09131a}.family-panorama figcaption{font-size:11px;line-height:1.7;color:var(--muted);padding:12px 0}.panorama-branches{display:flex;flex-wrap:wrap;gap:7px}.panorama-branches a{font-size:11px;padding:7px 9px;border:1px solid var(--line,#34454e);border-radius:4px;color:var(--gold,#d1b77d)}.previous-family-art{margin-bottom:20px}.previous-family-art summary{cursor:pointer;color:var(--gold,#d1b77d)}.previous-family-art img{display:block;max-width:100%;max-height:420px;object-fit:contain;margin:16px auto}.previous-family-art figcaption{font-size:11px;color:var(--muted)}

/* Shared character viewports retain full-height portraits across the archive. */
svg.race-art-frame{display:block;width:100%;overflow:hidden;background:#080e17;border-radius:8px}
svg.branch-portrait.race-art-frame,svg.race-thumb.race-art-frame,svg.card-art.race-art-frame{height:280px;max-height:none;aspect-ratio:auto}
svg.detail-race-art.race-art-frame{height:420px;max-height:65vh}
img.detail-race-art{display:block;width:100%;height:auto;object-fit:contain}
@media(max-width:600px){svg.branch-portrait.race-art-frame,svg.race-thumb.race-art-frame{height:240px}}

svg.lineage-portrait.race-art-frame{height:320px}

/* Consistent gallery spacing; preserve complete artwork in every image area. */
#race-cards .research-card{justify-content:flex-start;gap:0}
#race-cards .race-thumb{display:block;width:100%;height:auto;aspect-ratio:1;object-fit:contain;object-position:center;background:transparent;border-radius:6px;margin:0 0 22px;flex:none}
#race-cards .research-card .group{margin-bottom:14px}
#race-cards .research-card h3{margin-bottom:16px}
#race-cards .research-card .card-foot{padding-top:22px}

/* Other shared artwork cards also retain the full source composition. */
.card-art{object-fit:contain}

/* UIR gallery: edge-to-edge square card framing; full originals remain in profiles. */
.branch-grid{gap:20px;margin-top:20px;align-items:stretch}
.branch-grid .branch-card{display:flex;flex-direction:column;padding:0;overflow:hidden;border-radius:10px;transition:border-color .18s,box-shadow .18s;background:linear-gradient(160deg,#14242d,#0d1922)}
.branch-grid .branch-card:hover{box-shadow:0 8px 24px #0003;border-color:#bba16d}
.branch-grid .branch-card:focus-visible{outline:2px solid var(--gold);outline-offset:4px}
.branch-card-media{position:relative;isolation:isolate;display:grid;place-items:center;aspect-ratio:1;width:100%;overflow:hidden;background:#0a141d;border-bottom:1px solid var(--line)}
.branch-family .branch-card-media .branch-portrait{display:block;position:absolute;inset:0;width:100%;height:100%;max-height:none;aspect-ratio:auto;object-fit:cover;object-position:center;margin:0;border-radius:0;background:transparent}
.branch-grid .branch-card h4{font:600 18px/1.4 Georgia,serif;margin:20px 20px 10px;overflow-wrap:anywhere}
.branch-grid .branch-card p{margin:0 20px 18px;line-height:1.75;color:var(--muted)}
.branch-grid .branch-card small{margin:auto 20px 20px;padding-top:8px;font-size:10px;letter-spacing:.025em}
.uir-field>h3{margin-top:28px;margin-bottom:14px}
@media(min-width:1700px){.branch-grid{gap:24px}}
@media(max-width:640px){.branch-grid{gap:20px}.branch-grid .branch-card h4{margin-top:18px}}

/* Source-linked anatomical context, edition 75 */
.race-context{display:grid;gap:1px;background:var(--line,#26383e);border:1px solid var(--line,#26383e);margin:20px 0;border-radius:6px;overflow:hidden}.race-context>div{display:grid;grid-template-columns:100px 1fr;gap:15px;padding:13px 15px;background:#101e25}.race-context dt{color:#d2b784;font-size:.72rem;letter-spacing:.08em;text-transform:uppercase}.race-context dd{margin:0;font-size:.88rem;line-height:1.6}.race-related-links{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:20px}.race-card-context{font-size:.74rem!important;line-height:1.6!important;border-top:1px solid #27343c;padding-top:10px}.race-card-context b{color:#c9b68c;font-weight:500}.prose-section .context-art{margin:18px 0 24px}.prose-section .context-art img{max-height:650px;object-fit:contain;width:100%}@media(max-width:600px){.race-context>div{grid-template-columns:1fr;gap:4px}}

/* Races & Alliances: one full-width square image stage for every source ratio. */
#race-cards .research-card{overflow:hidden}
#race-cards .race-card-media{display:block;position:relative;isolation:isolate;width:calc(100% + 46px);aspect-ratio:1;margin:-23px -23px 24px;overflow:hidden;background:#0b1620;flex:none;border-bottom:1px solid var(--line)}
#race-cards .race-card-backdrop{position:absolute;inset:-24px;z-index:-1;filter:blur(22px);opacity:.45;pointer-events:none}
#race-cards .race-card-backdrop .race-backdrop-image{display:block;width:100%;height:100%;object-fit:cover;max-height:none;border-radius:0}
#race-cards .race-card-media .race-thumb{position:absolute;inset:0;display:block;width:100%;height:100%;max-height:none;aspect-ratio:auto;object-fit:contain;object-position:center;margin:0;border-radius:0;background:transparent}

/* Uniform artwork, not merely uniform containers: no letterboxing on race cards. */
#race-cards .race-card-media .race-thumb{object-fit:cover;object-position:50% 35%}
#race-cards .race-card-media svg.race-thumb{overflow:hidden}

/* Card framing overrides older per-file contain rules; square replacements need no crop. */
#race-cards .race-card-media img.race-thumb{object-fit:cover!important;object-position:center top!important}

/* Timeline-exclusive event scenes: larger, uncropped landscape previews. */
.timeline .event-btn{grid-template-columns:clamp(180px,23vw,270px) minmax(0,1fr);gap:24px;padding:20px}
.timeline .timeline-art{display:block;width:100%;height:auto;aspect-ratio:3/2;object-fit:contain;object-position:center;border-radius:6px;background:#0b1115;border:1px solid #35434b}
.timeline .event-top{flex-wrap:wrap}
.timeline .event-copy{min-width:0}
@media(min-width:1400px){.timeline .event-btn{grid-template-columns:300px minmax(0,1fr)}}
@media(max-width:1100px){.timeline .event-btn{grid-template-columns:180px minmax(0,1fr);gap:18px}.timeline .timeline-facts{grid-template-columns:1fr}}
@media(max-width:760px){.timeline .event-btn{grid-template-columns:1fr}.timeline .timeline-art{max-width:none;aspect-ratio:3/2}.timeline .event-btn{padding:16px}.timeline-row{grid-template-columns:1fr;gap:0}.timeline-date{text-align:left;padding:12px 0 12px 23px}.timeline-card{padding-left:23px;margin-left:3px}.timeline-card:before{top:-27px}}

/* Unified source library */
.library-tabs{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 24px;border-bottom:1px solid var(--line);padding-bottom:12px}
.library-tabs a{display:inline-flex;align-items:center;padding:12px 18px;border:1px solid var(--line);border-radius:8px;color:var(--muted);text-decoration:none;background:rgba(8,18,26,.6)}
.library-tabs a.active{border-color:var(--gold);color:var(--gold);background:rgba(197,166,109,.12)}
.library-tabs a:focus-visible,.library-card-actions a:focus-visible{outline:2px solid var(--gold);outline-offset:3px}
.lecture-library-card{display:flex;flex-direction:column}.lecture-library-card h3 a{color:inherit;text-decoration:none}.library-card-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:auto;padding-top:14px}

.scale-structure{margin:18px 0 24px;padding:18px;border:1px solid #3b6267;border-radius:12px;background:radial-gradient(ellipse at center,#18343e,#0c1922 80%)}.scale-structure svg{display:block;width:100%;max-height:390px;margin:8px auto;font-family:inherit}.scale-structure figcaption{font-size:13px;line-height:1.65}.scale-structure figcaption p{color:#d4b778;margin:8px 0}.scale-structure .ref-btn{display:inline-block;margin:14px 8px 0 0}.scale-structure .eyebrow{color:#8ddac8}

.scale-source-toolbar{display:flex;gap:7px;flex-wrap:wrap;margin:12px 0}.scale-source-toolbar .ref-btn{margin:0}.scale-source-view{background:#fff;border-radius:6px;overflow:hidden;margin:14px 0}.scale-source-figure .scale-source-svg{width:100%;max-height:none;margin:0;display:block}.scale-source-figure figcaption p{color:var(--text,#d6e6e3)}.scale-source-dialog{width:min(1100px,94vw);max-width:94vw;max-height:94vh;overflow:auto;padding:24px;background:#101d26;color:#e4e7df;border:1px solid #6b8e91;border-radius:12px}.scale-source-dialog::backdrop{background:#020910d9}.scale-dialog-header{display:flex;align-items:center;justify-content:space-between;gap:15px;position:sticky;top:-24px;background:#101d26;padding:14px 0;z-index:2}.scale-dialog-header h2{font-size:22px;margin:0}.scale-source-dialog .scale-source-figure{margin:0}.scale-source-dialog .scale-source-view{max-width:850px;margin:14px auto}

/* v95: complete source charts retain their natural proportions. */
.scale-full-sources{margin:32px 0}.scale-full-sources figure{margin:24px 0;padding:24px}.scale-full-sources img{display:block;width:100%;height:auto;max-height:none;object-fit:contain;background:white}.scale-full-sources figcaption{margin-top:16px;line-height:1.65}

/* Atlas point briefs: concise text first, source images available on demand. */
.gate-point-brief{margin:24px 0}.gate-brief-role{border-left:2px solid var(--gold);padding:2px 18px;background:rgba(117,200,182,.035)}
.gate-brief-role h3{font-size:18px;margin:12px 0 8px}.gate-brief-role p,.gate-brief-item p{font-size:14px;line-height:1.7;margin:8px 0 12px}
.gate-brief-facts{display:grid;gap:10px}.gate-brief-item{padding:14px 16px;border:1px solid rgba(154,183,192,.16);border-radius:8px;background:rgba(9,23,30,.42)}
.gate-brief-item h4{font-size:15px;margin:6px 0}.gate-brief-meta{font-size:10px;color:var(--gold);letter-spacing:.04em}
.gate-brief-history{display:grid;gap:12px}.gate-brief-refs{display:flex;flex-wrap:wrap;gap:5px;margin:8px 0 12px}.gate-brief-refs .ref-btn{font-size:10px;white-space:normal;text-align:left;max-width:100%}
.gate-supporting,.gate-network-history{padding:15px 0;border-top:1px solid rgba(154,183,192,.2);margin-top:16px}.gate-supporting>summary,.gate-network-history>summary{cursor:pointer;font-size:13px;color:var(--gold);padding:4px 0 10px}.gate-network-history .gate-brief-item{margin-top:10px}
.gate-evidence-limit{font-size:12px!important;color:var(--muted);line-height:1.65;margin:15px 0}.gate-supporting .photo-source-link{display:block;margin-top:16px}

/* v101: detailed location research guides */
.gate-guide-intro{padding:18px 0 8px}.gate-guide-intro p{color:var(--muted);font-size:14px;line-height:1.7}.gate-guide-nav{display:flex;flex-wrap:wrap;gap:7px;padding:10px 0 22px;border-bottom:1px solid var(--line)}.gate-guide-nav button{font-size:11px;padding:7px 10px;border-radius:20px;color:var(--gold);background:rgba(200,177,124,.05)}.gate-guide-section{scroll-margin-top:24px;margin-top:30px}.gate-guide-heading{font-size:21px!important;margin-bottom:15px!important}.gate-dossier .gate-brief-item{margin:12px 0;padding:19px 20px}.gate-dossier .gate-brief-item p{font-size:15px;line-height:1.85;white-space:normal}.gate-dossier .gate-brief-item h4{font-size:16px;line-height:1.5}.gate-linked-title{text-align:left;color:var(--gold);font-size:16px;font-weight:600;line-height:1.5}.gate-scope-note{border-left:2px solid var(--gold);padding:12px 16px;color:var(--muted);font-size:13px;line-height:1.7;margin:14px 0}.gate-related-group{padding:18px 0}.gate-related-group .ref-btn{display:inline-block;margin:5px 5px 5px 0}.gate-dossier .gate-brief-role{margin-bottom:14px}.gate-dossier .gate-brief-role h4{font-size:18px;margin:0 0 10px}.gate-guide-section .text-btn{text-align:left;line-height:1.5}@media(max-width:650px){.gate-dossier .gate-brief-item{padding:15px}.gate-guide-nav{gap:5px}.gate-guide-nav button{font-size:10px;padding:7px 9px}}

.atlas-reference-plate{margin-top:40px}.atlas-reference-plate .upright-frame{max-width:100%}.atlas-reference-plate .chart-image{padding:8px;background:white}

/* Compact timeline previews; source drawers retain their existing spacing. */
.timeline .timeline-facts{gap:9px 20px;padding:10px 0;margin-bottom:9px}.timeline .timeline-fact{gap:3px}.timeline .timeline-evidence{margin-top:10px}

/* Cinematic archive: every newly composed artwork has a complete 16:9 frame. */
.card-art[src^="art/v111/"],.context-art img[src^="art/v111/"],.likeness-figure img[src^="art/v111/"],.companion-form-image img[src^="art/v111/"],.detail-race-art[src^="art/v111/"]{width:100%;height:auto;max-height:none;aspect-ratio:16/9;object-fit:contain;object-position:center}

/* Keep square race cards; prioritize each character's face over the tail. */
#race-cards .race-card-media.race-card-media-green img.race-thumb{object-position:20% top!important}
#race-cards .race-card-media.race-card-media-inyu img.race-thumb{object-position:100% top!important}

/* Practice records retain the full native artwork composition at every viewport. */
.practice-list .practice-art{height:auto;max-height:none;aspect-ratio:auto;object-fit:contain;object-position:center}

/* Keep Mission Evolution technology cards at three-column width even for one item. */
.mission-track .technology-art-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
@media(max-width:900px){.mission-track .technology-art-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:600px){.mission-track .technology-art-grid{grid-template-columns:minmax(0,1fr)}}


/* Celestial Gold interface — 20261117. Keep source artwork colours intact. */
:root{--gold:#e5c47f;--teal:#e5c47f;--aurora-edge:#cfa857;--aurora-ink:#fff0cc;--aurora-fill:#3b2c13}
.ref-btn,.quote-card .ref-btn,.gate-brief-refs .ref-btn,.hm-ref{display:inline-flex;align-items:center;justify-content:center;gap:.4rem;min-height:44px;font-family:'DM Sans',Arial,sans-serif;font-size:15px;font-weight:600;line-height:1.45;letter-spacing:.01em;color:var(--aurora-ink);background:linear-gradient(135deg,#352b19,#241f16);border:1px solid var(--aurora-edge);border-radius:8px;padding:10px 15px;white-space:normal;overflow-wrap:anywhere;max-width:100%;text-decoration:none;transition:background .2s ease,border-color .2s ease,box-shadow .2s ease,transform .2s ease}
.archive-donation-card .ref-btn,.support-sites .ref-btn{font-size:17px;padding:12px 20px}
.ref-btn:focus-visible,a:focus-visible,button:focus-visible{outline:3px solid #ffe4a6;outline-offset:4px}
@media(hover:hover){.ref-btn:hover{color:#172124;background:linear-gradient(135deg,#efd291,#c39b49);border-color:#ffe4a6;box-shadow:0 0 18px #e6bd662e,inset 0 1px 0 #fff0c72e;transform:translateY(-2px)}nav a:hover{color:#ffe7b5;background:#352b19;border-color:#8c713e}nav a:hover span{color:#e5c47f}}
.ref-btn:active{transform:translateY(0);box-shadow:inset 0 2px 5px #0004}
nav a.active{color:#ffe7b5;background:#352d1d;border-color:#8c713e}nav a.active span{color:#e5c47f}
nav a{font-size:13px}#archive-donation-link{color:#efd49a}
.primary{background:#e5c47f;color:#241d10;border-color:#e5c47f}
.section-heading a,.section-heading button,.image-wrap a,.research-card .card-foot,.text-btn,.lecture-segment>a{font-size:13px;color:#efd49a}
.section-heading a,.image-wrap a,.lecture-segment>a,footer a{text-decoration:underline;text-decoration-color:#cfa85788;text-underline-offset:4px}
.research-card .card-foot{line-height:1.5}.topic-refs,.hm-links{row-gap:8px}
input[type=range],input[type=checkbox],input[type=radio]{accent-color:#cfa857}
@media(max-width:600px){.ref-btn,.quote-card .ref-btn,.gate-brief-refs .ref-btn{font-size:14px;padding:10px 12px}.archive-donation-card .ref-btn{width:100%;font-size:16px}}
@media(prefers-reduced-motion:reduce){.ref-btn{transition:none}.ref-btn:hover,.ref-btn:active{transform:none}}

/* Gold card interaction pass: linked cards vs reading panels. */
:root{--card-hover-edge:#d5b365;--card-hover-glow:rgba(225,190,111,.15)}
a.research-card,button.research-card,a.entry,button.source-card,a.source-card,button.relation-card,a.branch-card,a.hm-diagram-card,a.hm-source-card,a.library-card,button.library-card,a.timeline-card,button.timeline-card{cursor:pointer;transition:border-color .22s ease,box-shadow .22s ease,transform .22s ease,background-color .22s ease}
a.research-card:focus-visible,button.research-card:focus-visible,a.entry:focus-visible,button.source-card:focus-visible,a.source-card:focus-visible,button.relation-card:focus-visible,a.branch-card:focus-visible,a.hm-diagram-card:focus-visible,a.hm-source-card:focus-visible,a.library-card:focus-visible,button.library-card:focus-visible,a.timeline-card:focus-visible,button.timeline-card:focus-visible{outline:3px solid #ffe4a6;outline-offset:4px;border-color:var(--card-hover-edge);box-shadow:0 0 22px var(--card-hover-glow)}
.practice-list>article.panel,.support-sites>.panel,.archive-donation-card,article.lecture-library-card{transition:border-color .22s ease,box-shadow .22s ease,background-color .22s ease}
.practice-list>article.panel:focus-within,.support-sites>.panel:focus-within,.archive-donation-card:focus-within,article.lecture-library-card:focus-within{border-color:var(--card-hover-edge);box-shadow:0 0 20px var(--card-hover-glow)}
a.study-card .card-foot,a.entry small{transition:color .22s ease}
summary{cursor:pointer}summary:focus-visible{outline:3px solid #ffe4a6;outline-offset:4px;border-radius:4px}
@media(hover:hover) and (pointer:fine){
 a.research-card:hover,button.research-card:hover,a.entry:hover,button.source-card:hover,a.source-card:hover,button.relation-card:hover,a.branch-card:hover,a.hm-diagram-card:hover,a.hm-source-card:hover,a.library-card:hover,button.library-card:hover,a.timeline-card:hover,button.timeline-card:hover{border-color:var(--card-hover-edge);background-color:#192124;box-shadow:0 10px 26px #0004,0 0 22px var(--card-hover-glow);transform:translateY(-3px)}
 a.study-card:hover .card-foot,a.study-card:focus-visible .card-foot,a.entry:hover small{color:#ffe5a8}
 .practice-list>article.panel:hover,.support-sites>.panel:hover,.archive-donation-card:hover,article.lecture-library-card:hover{border-color:#aa915b;box-shadow:0 0 20px rgba(225,190,111,.1);background-color:#142024}
 summary:hover{color:#ffe5a8}
 .technology-art-link:hover,.atlas-sheets a:hover,.library-card-actions a:hover,.panorama-branches a:hover{border-color:var(--card-hover-edge);box-shadow:0 0 14px var(--card-hover-glow);color:#ffe5a8}
}
a.research-card:active,button.research-card:active,a.entry:active,button.source-card:active,button.relation-card:active{transform:translateY(0)}
@media(prefers-reduced-motion:reduce){
 a.research-card,button.research-card,a.entry,button.source-card,a.source-card,button.relation-card,a.branch-card,a.hm-diagram-card,a.hm-source-card,a.library-card,button.library-card,a.timeline-card,button.timeline-card,.practice-list>article.panel,.support-sites>.panel,.archive-donation-card,article.lecture-library-card,a.study-card .card-foot,a.entry small{transition:none}
 a.research-card:hover,button.research-card:hover,a.entry:hover,button.source-card:hover,a.source-card:hover,button.relation-card:hover,a.branch-card:hover,a.hm-diagram-card:hover,a.hm-source-card:hover,a.library-card:hover,button.library-card:hover,a.timeline-card:hover,button.timeline-card:hover{transform:none}
}


/* Pearl / aqualene aqua / ice-blue / champagne-gold visitor theme. */
:root:root{color-scheme:light;--bg:#edf4fa;--panel:#ffffffed;--panel2:#eaf3fa;--line:#bed0df;--text:#18344f;--muted:#4d657b;--gold:#88621d;--teal:#167579;--red:#a3354b;--green:#326549;--white:#233b58;--aurora-ink:#6e501c;--aurora-edge:#b79959;--card-hover-edge:#9b7a35;--card-hover-glow:#99c9e638}
html body{background:#edf4fa!important;color:var(--text);isolation:isolate}
html body::before{content:'';position:fixed;inset:0;z-index:-2;pointer-events:none;background-image:radial-gradient(ellipse at 8% 8%,#fff 0,transparent 45%),radial-gradient(ellipse at 85% 16%,#a6e9e8a6 0,transparent 45%),radial-gradient(ellipse at 28% 58%,#aeece759 0,transparent 46%),radial-gradient(ellipse at 15% 85%,#e4ddf17a 0,transparent 48%),radial-gradient(ellipse at 90% 92%,#f5e9ce99 0,transparent 42%),linear-gradient(145deg,#f9fbff,#e0f3f5 38%,#e1edfa 68%,#f6f8fb)!important;background-size:cover!important;opacity:1!important;filter:none!important}
html body::after{content:'';position:fixed;inset:0;z-index:-1;pointer-events:none;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='720' height='720' viewBox='0 0 720 720'%3E%3Cg fill='none' stroke='%237fabc9' stroke-opacity='.16' stroke-width='.7'%3E%3Cpath d='M-80 340 172 30 470 210 740 0M172 30 245 430 470 210 650 590 245 430-80 340M245 430 104 750M650 590 740 770M470 210 740 285'/%3E%3C/g%3E%3Cg fill='%23ffffff'%3E%3Cpath d='m172 20 2 8 8 2-8 2-2 8-2-8-8-2 8-2zm298 180 2 8 8 2-8 2-2 8-2-8-8-2 8-2zm-225 219 2 9 9 2-9 2-2 9-2-9-9-2 9-2z'/%3E%3Ccircle cx='64' cy='143' r='1.4'/%3E%3Ccircle cx='531' cy='82' r='1.7'/%3E%3Ccircle cx='353' cy='323' r='1.3'/%3E%3Ccircle cx='617' cy='481' r='1.6'/%3E%3Ccircle cx='93' cy='621' r='1.5'/%3E%3Ccircle cx='410' cy='652' r='1.1'/%3E%3C/g%3E%3Cg fill='%23b49450' fill-opacity='.46'%3E%3Ccircle cx='275' cy='176' r='1'/%3E%3Ccircle cx='578' cy='348' r='.8'/%3E%3Ccircle cx='304' cy='564' r='.9'/%3E%3C/g%3E%3C/svg%3E");background-size:720px 720px;opacity:.8}
html body #sidebar{background:linear-gradient(160deg,#fffffff7,#e9f7f8f5 70%,#f4f0e9f5)!important;border-color:#c2d2df;box-shadow:5px 0 35px #40658b0b}
html body #shell>header{background:#f9fcffed!important;border-bottom-color:#c2d2df;box-shadow:0 2px 20px #456a8a08}
html body :is(.breadcrumb,.breadcrumb b,.header-mark,.side-label,.brand small,.count,.source-meta,.small.muted){color:var(--muted)}
html body :is(.sigil,.side-label span){color:#98722b}
html body nav a{color:#435e78;font-size:13px}
html body nav a span{color:#387a87}
html body nav a.active{color:#6b4e1c;background:linear-gradient(120deg,#fff9e9,#e3f5f5)!important;border-color:#c0a56b;box-shadow:inset 0 1px 0 #fff,0 3px 15px #9bb7d020}
html body nav a.active span{color:#88621d}
html body :is(.panel,.entry,.research-card,.source-card,.relation-card,.branch-card,.library-card,.timeline-event,.event-btn,.quote-card,.reconcile-card,.hm-source-card,.hm-diagram-card,.hm-entry,.hm-event,.archive-donation-card,.lecture-library-card,.callout,.stats,.hm-stats>div){background:linear-gradient(135deg,#fffffffa,#f5f9fff2 72%,#f9f6eff0)!important;color:var(--text);border-color:#bdcfdd;border-radius:10px;box-shadow:0 5px 24px #305e7c0a,inset 0 1px 0 #fff}
html body :is(.entry,.panel,.research-card,.source-card,.hm-source-card,.hm-event,.quote-card,.library-card,.archive-donation-card,.lecture-library-card) :is(h2,h3,h4,b){color:#18344f}
html body :is(.entry,.panel,.research-card,.source-card,.hm-source-card,.hm-event,.quote-card,.library-card,.archive-donation-card,.lecture-library-card) p{color:#4d657b}
html body :is(.hm-intro,.atlas-entry){background:linear-gradient(120deg,#fffffff5,#dcf3f3f2 72%,#f8f2e7ee)!important;border-color:#bdcfdd;color:#18344f}
html body :is(.eyebrow,.era-title,.stat strong,.mini-milestone strong,.timeline-date,.timeline-fact strong,.card-foot,.entry small,.section-heading a,.section-heading button,.text-btn,.lecture-segment>a){color:#88621d}
html body :is(.badge,.tag){color:#16656b;background:#e3f5f3;border-color:#a9cfce}
html body .badge.notes{color:#76571f;background:#faf2df;border-color:#d5c18d}
html body .badge.open{color:#96374a;background:#fff0f3;border-color:#dfb8c2}
html body :is(button,input,select,textarea){color:#18344f;background-color:#f8fbff;border-color:#b6cada}
html body :is(input,textarea)::placeholder{color:#64798a}
html body :is(input[type=range],input[type=checkbox],input[type=radio]){accent-color:#8b6a2b}
html body .ref-btn,html body .ghost{color:#6e501c!important;background:linear-gradient(120deg,#fff9e9,#f3e6c8 60%,#fffdf6)!important;border:1px solid #b79959!important;box-shadow:inset 0 1px 0 #fff,0 3px 12px #866d2910;font-size:15px;font-weight:600;text-shadow:none}
html body .primary{color:#fff!important;background:linear-gradient(130deg,#375e83,#203f61)!important;border-color:#2a4b6e;box-shadow:0 4px 16px #365c8626}
html body :is(a,button,input,select,textarea,summary):focus-visible{outline:3px solid #346f9b!important;outline-offset:4px}
html body :is(.tabs button.active,.library-tabs a.active){color:#6e501c;background:#fbf3df;border-color:#c6ad72}
html body .library-tabs a{color:#435e78;background:#f4f9fd;border-color:#bdcfdd}
html body :is(#drawer,.modal,.modal-box,.modal-content,.search-modal,.search-dialog,.doc-toolbar,.doc-reader,.doc-text,.reader-toolbar){color:#18344f;background:#f7fbff!important;border-color:#bdcfdd}
html body #drawer :is(h2,h3,h4){color:#18344f}
html body #drawer p{color:#4d657b}
html body :is(.drawer-top,.drawer-head){background:#eff6fc!important;border-color:#bdcfdd}
html body :is(th,td){border-color:#c5d4df}
html body th{background:#e8f1f8;color:#284a69}
html body footer{color:#536c80;border-color:#c2d2df}
html body footer a,html body #archive-donation-link{color:#805c20}
/* Preserve contrast over the existing cinematic imagery. */
html body .hero{border-color:#bca567;box-shadow:0 12px 35px #304e6b23}
html body .hero :is(h1,h2,h3){color:#fff}
html body .hero p{color:#e4edf5}
html body .hero .eyebrow,html body .hero .hero-credit{color:#f2d9a7}
html body .chronicle-study{background:#f8fbfff5!important;border-color:#b5cbdc;box-shadow:0 10px 35px #35628115}
html body :is(.study-heading,.study-controls,.study-jump){color:#18344f;background:#f8fbff}
html body :is(#study-count,.study-note){color:#4d657b!important}
html body :is(.study-stage,.study-scene){background:#091322}
html body .study-reading-card{background:#0c1b2be8!important;color:#fff!important;border-color:#d1b775!important}
html body .study-reading-card :is(h3,p,.timeline-fact,.timeline-fact>span){color:#fff!important}
html body .study-reading-card :is(.eyebrow,.timeline-fact strong,.study-open){color:#f2d9a7!important}
html body .study-title :is(h3,p){color:#fff!important}
html body .study-title span{color:#f2d9a7!important}
html body .study-credit{color:#eef3fa}
html body audio{color-scheme:light}
@media(hover:hover){
 html body nav a:hover{color:#245c68;background:#e0f2f2!important;border-color:#adc5d9}
 html body .ref-btn:hover,html body .ghost:hover{color:#503a13!important;background:linear-gradient(120deg,#fffdf3,#e6cea0,#fff4d6)!important;border-color:#96742d!important;box-shadow:0 0 24px #8cd9d343,0 5px 18px #557e9820;transform:translateY(-2px)}
 html body .primary:hover{background:linear-gradient(130deg,#477aa5,#2e557c)!important}
 html body :is(a.research-card,button.research-card,a.entry,button.source-card,a.source-card,button.relation-card,a.branch-card,a.hm-diagram-card,a.hm-source-card,a.library-card,button.library-card,a.timeline-card,button.timeline-card):hover{border-color:#b19452;background:linear-gradient(135deg,#fff,#e5f8f6 65%,#fff7e8)!important;box-shadow:0 10px 26px #6d9ab326,0 0 22px #d6eafa80}
 html body :is(.practice-list>article.panel,.support-sites>.panel,.archive-donation-card,article.lecture-library-card):hover{border-color:#b19452;background:#fff!important}
 html body :is(summary,.text-btn):hover{color:#694b16}
}
@media(prefers-reduced-motion:reduce){html body *{scroll-behavior:auto}html body .ref-btn:hover{transform:none}}
@media print{html body::before,html body::after{display:none}html body{background:white!important}}

/* Approved aqualene / rose-quartz crystalline realm background. */
html body{background:#f3f1f7!important}
html body::before{background-image:linear-gradient(110deg,rgba(255,248,253,.14),rgba(251,253,255,.08) 50%,rgba(255,244,250,.10)),url('assets/theme-aqualene/crystalline-realms-rose.webp')!important;background-size:cover,cover!important;background-position:center,center!important;background-repeat:no-repeat!important;opacity:1!important;filter:none!important}
/* The artwork contains its own fine geometry and starlight. */
html body::after{display:none!important}
html body #sidebar{background:linear-gradient(155deg,#fffbfdf5,#eef9faf2 55%,#faedf6f2)!important}
html body #shell>header{background:linear-gradient(100deg,#fffafdF2,#f4fbfff2 60%,#fdf1f8f2)!important}
html body :is(.panel,.entry,.research-card,.source-card,.relation-card,.branch-card,.library-card,.timeline-event,.event-btn,.quote-card,.reconcile-card,.hm-source-card,.hm-diagram-card,.hm-entry,.hm-event,.archive-donation-card,.lecture-library-card,.callout,.stats,.hm-stats>div){background:linear-gradient(135deg,#fffffff5,#f5fbfdf5 62%,#fff0f8f2)!important}
html body :is(.hm-intro,.atlas-entry){background:linear-gradient(115deg,#fffafdf2,#e8f7f8f2 55%,#faeaf4ed)!important}
html body nav a.active{background:linear-gradient(120deg,#fff5e7,#f8eaf3 50%,#e6f6f5)!important}
html body .ref-btn,html body .ghost{background:linear-gradient(120deg,#fff7e7,#f7e9dc 55%,#fff0f7)!important}
html body .chronicle-study{background:linear-gradient(120deg,#fffbfef7,#f4fbfff5,#fcf0f7f5)!important}
@media(hover:hover){
 html body .ref-btn:hover,html body .ghost:hover{background:linear-gradient(120deg,#fff9ea,#ecd6b5 50%,#f8e0ef)!important;box-shadow:0 0 24px #e8b8d743,0 5px 18px #82c9cd25}
 html body :is(a.research-card,button.research-card,a.entry,button.source-card,a.source-card,button.relation-card,a.branch-card,a.hm-diagram-card,a.hm-source-card,a.library-card,button.library-card,a.timeline-card,button.timeline-card):hover{background:linear-gradient(135deg,#fff,#eaf8f7 55%,#fcebf5)!important;box-shadow:0 10px 26px #a782b122,0 0 22px #d6eafa80}
}
@media(max-width:900px){html body::before{background-position:center,70% center!important}}
@media(max-width:600px){html body::before{background-position:center,78% center!important}}
@media print{html body::before{display:none!important}}


/* Pearl clarity pass: frosted surfaces, explicit reading ink, light atlas. */
:root:root{--text:#18344f;--muted:#425b70;--line:#adc3d4;--gold:#795519;--teal:#17636b;--panel:rgba(255,255,255,.90);--panel2:#edf6fa}
html body :is(.panel,.entry,.research-card,.source-card,.relation-card,.branch-card,.library-card,.timeline-event,.event-btn,.quote-card,.reconcile-card,.hm-source-card,.hm-diagram-card,.hm-entry,.hm-event,.archive-donation-card,.lecture-library-card,.callout,.stats,.hm-stats>div){background:linear-gradient(135deg,rgba(255,255,255,.90),rgba(245,251,253,.87) 62%,rgba(255,241,249,.90))!important;color:#18344f!important;backdrop-filter:blur(5px);-webkit-backdrop-filter:blur(5px);border-color:#afc5d6}
html body :is(.event-btn,.research-card,.panel,.source-card,.library-card,.entry,.hm-event,.quote-card,.reconcile-card,.branch-card,.relation-card,.hm-source-card,.lecture-library-card,.callout) :is(p,li,dd,blockquote,figcaption){color:#344f65!important;text-shadow:none}
html body :is(.event-btn,.research-card,.panel,.source-card,.library-card,.entry,.hm-event,.quote-card,.reconcile-card,.branch-card,.relation-card,.hm-source-card,.lecture-library-card,.callout) :is(h2,h3,h4,strong,b){color:#18344f}
html body .timeline .event-btn :is(p,.timeline-fact,.timeline-fact>span){color:#344f65!important;opacity:1!important}
html body .timeline .event-btn .timeline-fact strong{color:#795519!important}
html body .timeline :is(.timeline-evidence,.timeline-evidence>span){color:#425b70!important}
html body .timeline .timeline-evidence a{color:#795519!important}
html body :is(.page-top p,.section-heading p,.relation-description,.relation-filters label,.relation-card small,.scale-levels small,.gate-description,.atlas-layer,.atlas-layer small,.atlas-key,.map-bottom,.atlas-qualification,.gate-scope-note){color:#425b70!important}
html body :is(.prose-section,.lecture-reader,.gate-brief-item,.scale-block,.scale-intro,.scale-structure,.atlas-detail-gallery figure,.race-context>div,.technology-art-link,.stargate-intro){background:rgba(250,253,255,.94)!important;color:#18344f;border-color:#adc3d4}
html body :is(.prose-section,.lecture-reader,.scale-block,.scale-intro,.scale-structure,.atlas-detail-gallery,.race-context,.gate-brief-item) :is(p,li,dd,blockquote,figcaption){color:#344f65!important}
html body :is(.prose-section,.lecture-reader,.scale-block,.scale-intro,.scale-structure,.atlas-detail-gallery,.race-context,.gate-brief-item) :is(h2,h3,h4){color:#18344f!important}
html body :is(.race-context dt,.scale-levels strong,.scale-block summary,.scale-structure .eyebrow,.scale-structure figcaption p,.card-foot,.entry small){color:#795519!important}
html body .scale-block a{color:#17636b}
html body :is(#drawer,#search-dialog,.scale-source-dialog,.scale-dialog-header,.doc-reader,.doc-text){background:#f8fcff!important;color:#18344f!important}
html body :is(#drawer,#search-dialog,.scale-source-dialog,.doc-reader,.doc-text) :is(p,li,dd,blockquote,figcaption,.small){color:#344f65!important}
html body :is(.scale-levels button,.density-buttons button,.atlas-group-buttons button){background:#f1f8fb!important;color:#294a64!important;border-color:#abc2d2}
html body :is(.scale-levels button.active,.density-buttons .active,.atlas-group-buttons button.active,.compact-legend-tabs button.active){background:#e3f2f0!important;color:#175963!important;border-color:#578f98}
html body :is(.search-item,.search-item strong,.search-item small,.relation-card strong){color:#294a64!important}
html body #nav a[href="#support"]{color:#795519}
html body #toast{background:#18344f;color:white}
/* Workbench chrome and legends are slightly more opaque than the cards. */
html body :is(.map-layout,.atlas-workbench){background:rgba(247,252,255,.96)!important;border-color:#adc3d4;color:#18344f}
html body :is(.map-top,.map-bottom,.relation-filters,.relation-description,.atlas-command,.gate-filter-bar,.atlas-legend,.compact-legend-panel,.compact-legend-head,.atlas-group-buttons){background:rgba(246,251,255,.97)!important;color:#344f65!important;border-color:#adc3d4}
html body :is(.map-top,.map-bottom,.atlas-legend,.relation-filters,.atlas-command,.gate-filter-bar,.compact-legend-panel) :is(label,span,small,p,b){color:#344f65}
html body :is(.map-top,.atlas-workbench) .tabs button{color:#425b70}
html body :is(.map-top,.atlas-workbench) .tabs button.active{color:#795519;background:#fff4da;border-color:#bba064}
html body .atlas-legend .compact-layer{background:#f7fbfd!important;color:#344f65!important;border-color:#bdced9}
html body .atlas-legend .compact-layer.is-on{background:#e2f1ef!important;color:#234f58!important;border-color:#7da7aa}
html body .atlas-layer input{accent-color:#17636b}
html body .atlas-legend-symbol{background:#edf4f7}
html body .map-frame,html body .atlas-canvas .gate-frame{background:radial-gradient(#7195a72d .8px,transparent .8px),#edf6fa!important;background-size:24px 24px,auto!important}
/* SVG colour overrides leave portraits and original source plates untouched. */
html body .map-node rect:not(.atlas-hit){fill:#f8fcff;stroke:#7d9dae}
html body .relation-node>rect{fill:#f8fcff;fill-opacity:.97;stroke:#88a4b7}
html body .map-node text,html body .relation-node text{fill:#203e56!important;text-shadow:none}
html body .map-node .node-sub{fill:#425b70!important}
html body .relation-edge circle{fill:#fffaf1;stroke-width:1.5}
html body .relation-edge text{fill:#233f58!important}
html body :is(.map-node,.relation-node):hover>rect,html body :is(.map-node,.relation-node):focus>rect{fill:#e2f4f2;stroke:#8a6a29;stroke-width:2}
html body .relation-edge:focus circle{stroke:#245f86;stroke-width:3}
html body .atlas-workbench rect[fill="#0b202a"]{fill:#e5f2f6}
html body .atlas-workbench :is(rect[fill="#12252b"],rect[fill="#16242f"]){fill:#e7f2f6;stroke:#a9c5d2}
html body .atlas-workbench #cosmic-field stop:first-child{stop-color:#effafb}
html body .atlas-workbench #cosmic-field stop:last-child{stop-color:#dcebf5}
html body .earth-land,html body .earth-land path{fill:#bedbd5;stroke:#739c97}
html body .map-graticule path{stroke:#789caa;stroke-opacity:.28}
html body .orbital-guides ellipse{stroke:#8aa9b9}
html body :is(.map-caption,.cosmic-center,.map-label){fill:#365a71;stroke:#edf6fa}
html body .atlas-geography-name{fill:#35576a;stroke:#e6f2f2;stroke-width:1.7px}
html body .atlas-geography-name.geography-continent{fill:#345966}
html body .atlas-geography-name.geography-ocean{fill:#426f83;stroke:#e5f2f6}
html body :is(.atlas-marker-code,.atlas-place-label,.gate-place){fill:#203e56!important;stroke:#f7fcff!important;stroke-width:1.8px;paint-order:stroke}
html body :is(.atlas-edge-label,.atlas-edge-families){fill:#3e5c6c;stroke:#eef8fa;paint-order:stroke}
html body .atlas-edge-tag rect{fill:#f6fcff;stroke:#7396a3}
html body .atlas-edge-tag text{fill:#294e61}
html body .atlas-labelled-line:hover .atlas-edge-tag rect{fill:#dcefed}
html body .atlas-pin-leader{stroke:#8b671e;opacity:.9}
html body #atlas-location-arrow path{fill:#8b671e}
html body .gate-connection{stroke:#917333;stroke-opacity:.75}
/* Hollow symbols need dark outlines on the light map; colours and shapes retain their meaning. */
html body [data-symbol="hollow-circle"]{stroke:#345f67}
html body [data-symbol="open-triangle"]{stroke:#79558e}
html body .atlas-source-hotspots :is(rect,circle){fill:transparent;stroke:transparent}
html body .atlas-source-hotspots .atlas-network-shape:hover>*:not(title),html body .atlas-source-hotspots .atlas-network-shape:focus>*:not(title){stroke:#247a99;fill:#40a8c51a}
/* Keep white-on-dark narration overlays legible over cinematic artwork. */
html body .study-stage .study-reading-card{background:#0c1b2be8!important;color:#fff!important;backdrop-filter:none}
html body .study-stage .study-reading-card :is(p,h3,li,.timeline-fact,.timeline-fact>span){color:#fff!important}
html body .study-stage .study-reading-card :is(.eyebrow,.timeline-fact strong,.study-open){color:#f2d9a7!important}
@media(hover:hover){html body :is(a.research-card,button.research-card,a.entry,button.source-card,a.source-card,button.relation-card,a.branch-card,a.hm-diagram-card,a.hm-source-card,a.library-card,button.library-card,a.timeline-card,button.timeline-card):hover{background:linear-gradient(130deg,#fffffff0,#eaf8f5ed,#faedf7ed)!important}html body :is(.card-foot,.entry small,.technology-art-link,.atlas-sheets a,.library-card-actions a,.panorama-branches a):hover{color:#795519!important}}
@media print{html body :is(.panel,.event-btn,.research-card){background:white!important;backdrop-filter:none}}

html body .relationship-atlas [stroke="#d2b784"]{stroke:#89651f}
html body .relationship-atlas marker [fill="#d2b784"]{fill:#89651f}

html body .relationship-atlas [stroke="#edbd80"]{stroke:#946222}
html body .relationship-atlas marker [fill="#edbd80"]{fill:#946222}

html body .relationship-atlas [stroke="#90a8c9"]{stroke:#4a6992}
html body .relationship-atlas marker [fill="#90a8c9"]{fill:#4a6992}

html body .relationship-atlas [stroke="#75c8b6"]{stroke:#227a70}
html body .relationship-atlas marker [fill="#75c8b6"]{fill:#227a70}

html body .relationship-atlas [stroke="#e18e86"]{stroke:#aa4d47}
html body .relationship-atlas marker [fill="#e18e86"]{fill:#aa4d47}

html body .relationship-atlas [stroke="#d4a4d9"]{stroke:#86548e}
html body .relationship-atlas marker [fill="#d4a4d9"]{fill:#86548e}

html body .relationship-atlas [stroke="#99b8ce"]{stroke:#47758f}
html body .relationship-atlas marker [fill="#99b8ce"]{fill:#47758f}

html body .relationship-atlas [stroke="#c5a7e7"]{stroke:#77559c}
html body .relationship-atlas marker [fill="#c5a7e7"]{fill:#77559c}

html body .relationship-atlas [stroke="#a3acb8"]{stroke:#626e7c}
html body .relationship-atlas marker [fill="#a3acb8"]{fill:#626e7c}
html body .timeline .event-btn p{font-size:14px;line-height:1.7}
html body .timeline .timeline-fact{font-size:13px;line-height:1.65}
html body .gate-node [data-symbol="circle"]{stroke:#486673}
html body .gate-node [data-symbol="inverted-triangle"]{stroke:#784765}


/* Pearl finish: readable pop-ups, lighter media mats, transparent lineage canvas. */
:root:root{--frost-card:linear-gradient(135deg,rgba(255,255,255,.86),rgba(245,251,253,.85) 62%,rgba(255,241,249,.87))}
html body :is(.panel,.entry,.research-card,.source-card,.relation-card,.branch-card,.library-card,.timeline-event,.event-btn,.quote-card,.reconcile-card,.hm-source-card,.hm-diagram-card,.hm-entry,.hm-event,.archive-donation-card,.lecture-library-card,.callout,.stats,.hm-stats>div){background:var(--frost-card)!important;backdrop-filter:blur(4px);-webkit-backdrop-filter:blur(4px)}
/* SVG node surfaces retain their own opaque reading backgrounds. */
html body .relationship-atlas,html body .relationship-atlas .map-frame,html body .relationship-atlas #atlas-svg,html body .relationship-atlas #map-world{background:transparent!important;background-image:none!important;backdrop-filter:none!important;-webkit-backdrop-filter:none!important}
html body .relationship-atlas :is(.map-top,.relation-filters,.relation-description,.map-bottom){background:rgba(249,252,255,.90)!important;backdrop-filter:blur(4px)}
/* Neutral pearl mats for contained images; original artwork pixels remain unchanged. */
html body :is(.card-art,.timeline-art,.detail-race-art,.lineage-portrait,.family-full-form,.companion-form-image,svg.race-art-frame,.context-art img,.branch-family img,.technology-art-link,.atlas-detail-gallery img,.hm-diagram-card img,.timeline .timeline-art,.likeness-figure img){background:#edf4f7!important;border-color:#b4c9d7!important}
html body :is(.chart-card,.chart-image,.upright-frame,.image-wrap,.hm-image-stage,.scale-source-view,.atlas-reference-plate .chart-image,.companion-form,.previous-family-art){background:#f3f8fb!important;color:#233f56!important;border-color:#b4c9d7}
html body :is(.chart-card,.context-art,.companion-form,.previous-family-art,.likeness-figure,.atlas-detail-gallery,.hm-diagram-card) :is(figcaption,p,small,blockquote){color:#344f65!important}
html body :is(.chart-card,.companion-form) :is(h2,h3,h4,strong){color:#18344f!important}
/* Solid reading surfaces in deep-dive panels keep long paragraphs comfortable. */
html body :is(#drawer,.scale-source-dialog,#search-dialog){background:rgba(249,252,255,.97)!important;color:#233f56!important;backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px)}
html body :is(#drawer,.scale-source-dialog,#search-dialog) :is(.detail-summary,.record-section,.record-section p,.detail-label,.small,.muted,dt,dd,li,blockquote,figcaption){color:#344f65!important}
html body :is(#drawer,.scale-source-dialog,#search-dialog) :is(h1,h2,h3,h4){color:#18344f!important}
html body :is(#drawer,.scale-source-dialog,#search-dialog) :is(.ref-btn,.ref-btn:visited,.ghost){color:#684b16!important;background:linear-gradient(120deg,#fff8e6,#f3e6d1,#fff0f7)!important;border-color:#ad8b45!important;text-shadow:none!important}
html body :is(#drawer,.scale-source-dialog,#search-dialog) :is(.ref-btn,.ghost) :is(span,b,strong,small){color:inherit!important}
html body :is(#drawer,.scale-source-dialog,#search-dialog) .text-btn{color:#795519!important}
html body :is(#drawer,.scale-source-dialog,#search-dialog) a:not(.ref-btn):not(.primary):not(.ghost){color:#17636b}
html body :is(#drawer,.scale-source-dialog,#search-dialog) a:not(.ref-btn):not(.primary):not(.ghost):hover{color:#104951;text-decoration:underline;text-underline-offset:3px}
/* Transcript quotations, their notes, and full lecture readers. */
html body :is(.lecture-reader,.lecture-segment,.lecture-results,.transcript-term-notes,.comparison-quote,.quote-card,.doc-hit,.doc-reader,.doc-text){background:rgba(249,252,255,.94)!important;color:#29465d!important;border-color:#b4c9d7}
html body :is(.lecture-reader,.lecture-segment,.lecture-results,.transcript-term-notes,.comparison-quote,.quote-card,.doc-hit,.doc-reader,.doc-text) :is(p,li,blockquote,small,span){color:#344f65!important}
html body .lecture-reader-controls{background:#eff7fc!important;color:#29465d;border-color:#b4c9d7}
html body .lecture-segment.selected{background:#e6f3f0!important;border-left-color:#487f83}
html body .lecture-segment>a{color:#765219!important;font-weight:600}
html body :is(.lecture-segment,.doc-text,.doc-reader) mark{background:#f5e3a8;color:#3e321a}
html body footer{background:linear-gradient(110deg,rgba(251,247,253,.90),rgba(237,249,250,.90),rgba(250,239,248,.90))!important;color:#425b70!important;border-color:#b4c9d7;backdrop-filter:blur(6px);-webkit-backdrop-filter:blur(6px)}
html body footer :is(span,.space-credit){color:#425b70!important}
html body footer a{color:#765219!important;text-decoration-color:#ac8f55}
/* The timeline preview itself is a single interactive event card. */
html body .timeline .event-btn{cursor:pointer;transition:transform .2s ease,border-color .2s ease,box-shadow .2s ease,background .2s ease}
html body .timeline .event-btn:focus-visible{outline:3px solid #346f9b!important;outline-offset:4px;border-color:#896a2a;box-shadow:0 8px 24px #48718a2b}
html body .timeline .event-btn:active{transform:translateY(0);box-shadow:0 2px 8px #48718a20}
@media(hover:hover) and (pointer:fine){
 html body .timeline .event-btn:hover{transform:translateY(-3px);border-color:#9b7a34;background:linear-gradient(120deg,#fffffff0,#e7f6f3ed,#faeaf5ed)!important;box-shadow:0 9px 25px #537c9628,0 0 18px #d0eee84d}
 html body .timeline .event-btn:hover h3{color:#17636b!important}
 html body :is(#drawer,.scale-source-dialog,#search-dialog) :is(.ref-btn,.ghost):hover{color:#503a10!important;background:linear-gradient(120deg,#fff9e9,#e6cea0,#f8e0ef)!important;border-color:#896a2a!important;box-shadow:0 5px 16px #a38a4325}
}
@media(prefers-reduced-motion:reduce){html body .timeline .event-btn{transition:none}html body .timeline .event-btn:hover,html body .timeline .event-btn:active{transform:none}}
@media print{html body :is(.panel,.entry,.research-card,.event-btn){background:white!important;backdrop-filter:none}html body footer{background:white!important}}


/* Final pearl-theme pass: legacy study and source components. */
html body :is(.study-intro,.diagram-context,.comparison-preview,.topic-index,.stargate-intro,.atlas-entry,.scale-intro,.scale-structure,.scale-levels button,.lecture-reader-controls,.diagram-controls,.gate-brief-item,.race-context,.race-context>div,.hm-intro){
 background:linear-gradient(125deg,rgba(250,254,255,.91),rgba(235,248,249,.89),rgba(255,239,248,.90))!important;
 color:#25465f!important;border-color:#adc3d4!important;
}
html body :is(.record-section,.prose-section,.quote-card,.comparison-quote,.panel,#drawer,.topic-layout) blockquote{
 background:linear-gradient(120deg,#f5fbfd,#f9f0f7)!important;color:#25465f!important;
 border-color:#aa7b28!important;border-radius:5px;
}
html body :is(.study-intro,.diagram-context,.comparison-preview,.topic-index,.stargate-intro,.atlas-entry,.scale-intro,.scale-structure,.hm-intro) :is(h2,h3,h4,p,small,blockquote,li,button){color:#25465f!important}
html body blockquote :is(p,small){color:#25465f!important}
html body .topic-index button{background:transparent!important;text-align:left}
html body .topic-index button:hover,html body .topic-index button:focus-visible{background:#e2f2f3!important;color:#143d55!important}
html body :is(.topic-index,.study-intro,.comparison-preview) .eyebrow{color:#795519!important}
html body :is(.diagram-stage,.reference-sheets img,.branch-portrait,.branch-card-media,.family-panorama img,.race-card-media,.atlas-detail-gallery figure){background:#eef6f9!important;border-color:#adc3d4!important}
html body img[src*="-dragon-revision.webp"],html body img[src*="assets/voyagers/"]{background:#eef6f9!important}
html body :is(.sequence-number,.library-tabs a,.atlas-legend-symbol,.compact-legend-tabs button.active,.atlas-group-buttons button.active,.atlas-legend .compact-layer,.atlas-legend .compact-layer.is-on){background:#e7f3f4!important;color:#25465f!important;border-color:#a3bdca!important}
html body .space-credit{color:#795519!important;font-weight:600}
html body .space-credit:hover{color:#174f60!important;text-decoration:underline}
html body .space-credit:focus-visible{outline:2px solid #795519;outline-offset:4px}


/* Readable hover and keyboard-focus states, including drawer buttons. */
html body button:hover,html body button:focus-visible,html body a.ref-btn:hover,html body a.ref-btn:focus-visible{
 background:linear-gradient(120deg,#e4f3f5,#fff4e0,#faeaf3)!important;color:#193d55!important;border-color:#a57a30!important;
}
html body button:hover :is(span,small,strong),html body button:focus-visible :is(span,small,strong){color:inherit!important}
html body button:focus-visible,html body .artwork-tile:focus-visible{outline:2px solid #946b24;outline-offset:3px}
.artwork-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(240px,1fr));gap:22px;margin:24px 0}
html body .artwork-tile{display:flex;flex-direction:column;gap:12px;text-align:left;padding:14px;background:rgba(250,253,255,.88);color:#25465f;border:1px solid #adc3d4;border-radius:9px;cursor:pointer}
.artwork-tile img{width:100%;height:210px;object-fit:contain;background:#edf5f8;border-radius:5px}
.artwork-tile strong{font-size:17px}.artwork-tile>span:last-child{color:#795519}
#artwork-viewer{width:min(1200px,95vw);max-height:94vh;background:#f4f9fc;color:#193d55;border:1px solid #adc3d4;border-radius:12px;padding:18px;overflow:auto}
#artwork-viewer::backdrop{background:rgba(24,52,79,.65)}#artwork-viewer>button{float:right}#artwork-viewer h2{font-size:20px;padding-right:100px}
#artwork-viewer img{display:block;width:100%;max-height:76vh;object-fit:contain;background:#edf5f8}
img{-webkit-user-drag:none}button:disabled{opacity:.5;cursor:default}
@media(prefers-reduced-motion:no-preference){.artwork-tile{transition:transform .18s,box-shadow .18s}.artwork-tile:hover{transform:translateY(-3px);box-shadow:0 8px 24px #365c8620}}

/* Mission links and fully wrapping topic navigation. */
html body .mission-links a{display:inline-flex;align-items:center;min-height:46px;padding:12px 16px;border:1px solid #b69353;border-radius:8px;background:linear-gradient(125deg,#fff8e7ee,#fceff7ee);color:#795519;font-size:15px;font-weight:600;line-height:1.45;white-space:normal;text-decoration:none}
html body .mission-links a:hover,html body .mission-links a:focus-visible{background:linear-gradient(125deg,#e4f3f5,#fff1d6)!important;color:#193d55!important;border-color:#946b24;box-shadow:0 6px 18px #375a7426;outline-offset:3px}
html body .topic-layout{grid-template-columns:minmax(220px,270px) minmax(0,1fr)}
html body .topic-index{box-sizing:border-box;min-width:0;width:100%;padding:20px 16px;overflow-x:hidden;scrollbar-gutter:stable}
html body .topic-index>button{box-sizing:border-box;width:100%;height:auto;min-height:48px;max-height:none;white-space:normal!important;overflow:visible;text-overflow:clip;overflow-wrap:anywhere;word-break:normal;line-height:1.6;padding:12px 8px;margin:6px 0}
html body .topic-index>.eyebrow,html body .topic-index>p{display:block;margin-left:8px;margin-right:8px;white-space:normal}
@media(max-width:900px){html body .topic-layout{grid-template-columns:minmax(0,1fr)}html body .topic-index{position:static;display:block;max-height:none;overflow:visible}}
@media(prefers-reduced-motion:no-preference){.mission-links a{transition:transform .18s,box-shadow .18s}.mission-links a:hover{transform:translateY(-2px)}}


/* Pearl slideshow overlays: applies to every event, intro and closing card. */
html body .study-stage .study-reading-card,
html body .study-stage .study-title,
html body .study-stage .is-cover .study-title{
 background:linear-gradient(120deg,rgba(253,254,255,.82),rgba(231,247,250,.82) 60%,rgba(255,235,245,.84))!important;
 color:#193d55!important;border:1px solid rgba(170,137,66,.7)!important;
 border-radius:8px;backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px);
 text-shadow:none!important;box-shadow:0 5px 22px rgba(37,68,87,.16);
}
html body .study-stage :is(.study-reading-card,.study-title) :is(h2,h3,p,li,small,.timeline-fact,.timeline-fact>span){color:#193d55!important;text-shadow:none!important}
html body .study-stage :is(.study-reading-card,.study-title) :is(.eyebrow,.timeline-fact strong,.study-open,.study-cover-kicker),
html body .study-stage .study-title>span{color:#745019!important;text-shadow:none!important}
html body .study-stage .study-reading-card .timeline-facts{border-color:#a9bfcb!important}
html body .study-stage .study-reading-card .study-open:hover{color:#174f60!important;text-decoration:underline}
html body #study-card-mode,html body #study-card-mode:hover,html body #study-card-mode:focus,
html body .study-controls select{color:#193d55!important;background:#eff8fb!important;border:1px solid #a7bdcd!important;color-scheme:light}
html body #study-card-mode option,html body .study-controls select option{background:#f6fbfe!important;color:#193d55!important}
html body #study-card-mode:focus-visible{outline:2px solid #946b24;outline-offset:3px}
@media(prefers-reduced-transparency:reduce){html body .study-stage :is(.study-reading-card,.study-title){background:#f2f8fb!important;backdrop-filter:none}}


/* More visible artwork beneath slideshow titles and information cards. */
html body .study-stage .study-reading-card,
html body .study-stage .study-title,
html body .study-stage .is-cover .study-title{
 background:linear-gradient(120deg,rgba(253,254,255,.64),rgba(231,247,250,.63) 60%,rgba(255,235,245,.66))!important;
 backdrop-filter:blur(4px);-webkit-backdrop-filter:blur(4px);
}
@media(prefers-reduced-transparency:reduce){
 html body .study-stage .study-reading-card,
 html body .study-stage .study-title,
 html body .study-stage .is-cover .study-title{background:#f2f8fb!important;backdrop-filter:none;-webkit-backdrop-filter:none}
}


/* Opening title sits outside the artwork, above the image stage. */
html body .study-opening-heading{padding:22px 20px;text-align:center;background:linear-gradient(120deg,#f5fbfbd9,#fceff6d9);color:#193d55;border-bottom:1px solid #b6cbd4}
html body .study-opening-heading[hidden]{display:none!important}
html body .study-opening-heading h2{font-family:Georgia,serif;font-size:clamp(28px,3.5vw,52px);line-height:1.15;margin:8px 0;color:#193d55}
html body .study-opening-heading p{color:#25465f;margin:6px 0;line-height:1.5}
html body .study-stage .is-cover .study-title{display:none!important}
html body .study-stage .is-cover img{object-fit:contain!important;object-position:center!important;transform:none!important;animation:none!important;width:100%;height:100%}
html body .study-stage:has(.is-cover[aria-hidden="false"]) .study-credit{display:none}
@media(max-width:600px){html body .study-opening-heading{padding:14px 12px}html body .study-opening-heading p{font-size:13px}}
