/* Atlas: keep the data engine; replace the second permanent rail with a branch drawer. */
.g-kind-tree{height:100dvh!important;overflow:hidden!important}.g-kind-tree .g-page{height:100dvh;min-height:0;overflow:hidden}.g-kind-tree #app{height:calc(100dvh - var(--g-bar));display:flex;position:relative;overflow:hidden;min-width:0}.g-kind-tree #app>.main{width:100%;padding:0;max-width:none;margin:0;min-width:0}.g-kind-tree #sidebar{position:absolute;top:10px;bottom:10px;left:12px;width:264px;height:auto;z-index:80;transform:translateX(-110%);transition:transform .2s ease;background:#f1f3e9;border:1px solid #cbd5c0;border-radius:8px;box-shadow:0 12px 50px #18372b25;padding-top:22px;visibility:hidden}.g-kind-tree #app.show-side #sidebar{transform:translateX(0);visibility:visible}.g-kind-tree #app #sidebar-shade{position:absolute;inset:0;z-index:75;display:none;background:#213e3030;backdrop-filter:blur(2px)}.g-kind-tree #app.show-side #sidebar-shade{display:block}.g-kind-tree #sidebar>.brand{display:none}.g-kind-tree #sidebar .side-tools{padding-top:2px}.g-kind-tree .main>.topbar{height:54px;padding:0 28px;background:#f1f3e9;position:relative;z-index:60;border-bottom:1px solid var(--g-line)}.g-kind-tree .topbar .breadcrumb>span,.g-kind-tree .topbar .breadcrumb>i{display:none}.g-kind-tree .topbar .breadcrumb b{font-size:11px;color:#647a5e;font-weight:500}.g-kind-tree .topbar .breadcrumb{gap:8px}.g-kind-tree #menu{border:1px solid #cbd5bf;background:#fbfcf5}.g-kind-tree .topbar .global-search{background:#fcfdf7;width:310px;height:32px}.g-kind-tree .topbar .global-search kbd{display:none}.g-kind-tree .topbar .search-results{z-index:90}.g-kind-tree .intro{padding:24px 30px 15px}.g-kind-tree .intro h1{font:34px/1.2 var(--g-serif);letter-spacing:0;margin-top:10px}.g-kind-tree .intro p{font-size:11px;margin-top:8px}.g-kind-tree .intro .eyebrow{font-size:8px;letter-spacing:1.8px}.g-kind-tree .metrics{gap:32px}.g-kind-tree .metrics strong{font:28px var(--g-serif)}.g-kind-tree .metrics small{font-size:9px}.g-kind-tree .stage{margin:0 20px;border-radius:8px;box-shadow:none}.g-kind-tree .legend{padding:13px 30px;font-size:9px}.g-kind-tree .geo-bar{padding-inline:30px}.g-kind-tree .geo-chip{font-size:10px}.g-kind-tree .side-bottom{font-size:9px}.g-kind-tree #app.side-hidden{grid-template-columns:none}.g-kind-tree #drawer{max-width:36%;min-width:290px}.g-kind-tree .modal-shell{z-index:15500}.g-kind-tree .modal{color:var(--g-ink)}.g-kind-tree .g-dialog{z-index:30000}.g-kind-tree .g-dialog .g-dialog-input{width:auto}.g-kind-tree .g-dialog .g-ico{stroke-width:1.6}.g-kind-tree .g-search-tabs button{padding:7px 13px}
@media(max-width:1050px){.g-kind-tree .metrics{gap:22px}.g-kind-tree .intro h1{font-size:30px}.g-kind-tree .main>.topbar{padding-inline:20px}.g-kind-tree .intro{padding:21px 23px 12px}.g-kind-tree #drawer{max-width:45%}.g-kind-tree .legend{font-size:8px;padding-inline:23px}}
@media(max-width:760px){.g-kind-tree .main>.topbar{height:48px;padding:0 15px;gap:10px}.g-kind-tree .topbar .global-search{width:200px;height:31px}.g-kind-tree .topbar .top-actions{gap:5px}.g-kind-tree .topbar .breadcrumb b{display:none}.g-kind-tree .intro{padding:17px 18px 9px;gap:12px}.g-kind-tree .intro h1{font-size:27px;margin-top:6px;letter-spacing:0}.g-kind-tree .intro .eyebrow{font-size:7px}.g-kind-tree .intro p{font-size:10px;max-width:330px}.g-kind-tree .metrics{gap:19px}.g-kind-tree .metrics strong{font-size:21px}.g-kind-tree .metrics small{font-size:8px}.g-kind-tree .stage{margin-inline:10px}.g-kind-tree .legend{padding:10px 18px;gap:8px;font-size:8px}.g-kind-tree #drawer{max-width:none;width:100%;min-width:0}.g-kind-tree .geo-bar{padding-inline:18px}.g-kind-tree #sidebar{left:8px;top:6px;bottom:6px}.g-kind-tree .topbar .search-results{right:-69px;width:min(355px,calc(100vw - 24px))}.g-kind-tree .canvas-heading{max-width:calc(100% - 42px)}.g-kind-tree .stage .canvas-heading h2{font-size:22px}}
@media(max-width:440px){.g-kind-tree .topbar .global-search{width:182px}.g-kind-tree .topbar #directory-btn{display:none}.g-kind-tree .intro h1{font-size:25px}.g-kind-tree .metrics{display:none}.g-kind-tree .legend{font-size:7px}}
/* Y-DNA: persistent site navigation + one horizontal, scrollable tool strip. */
html:has(.g-kind-dna){color-scheme:light;--bg:#f5f4ed;--surface:#fdfcf7;--surface2:#f0f2e8;--surface3:#e7eddf;--top:#f5f4ed;--text:#243f35;--muted:#61725f;--dim:#7b8972;--border:#dce0d4;--border2:#b8c8ab;--accent:#2b5d43;--accent-ink:#fcfdf4;--accent-soft:#e7eedc;--amber:#966b32;--amber-soft:#f5eedf;--blue:#3c6c8d;--blue-soft:#e9eff1;--red:#a25041;--red-soft:#f7eae2;--shadow:0 12px 40px #24392b08;--serif:Georgia,'Times New Roman',serif;--sans:-apple-system,BlinkMacSystemFont,'Segoe UI',Arial,sans-serif;--radius:7px}
.g-kind-dna .g-page>.topbar{height:44px;min-height:0;position:relative;top:auto;justify-content:flex-end;padding:0 35px;border:0;background:#eef1e5;z-index:40}.g-kind-dna .g-page>.topbar>.brand{display:none}.g-kind-dna .g-page>.topbar .snapshot{font-size:10px;margin-right:4px}.g-kind-dna .g-page>.topbar .snapshot i{background:#a78958;width:4px;height:4px}.g-kind-dna #theme-button,.g-kind-dna #menu-button{display:none}.g-kind-dna .g-page>.topbar .button{min-height:29px;font-size:10px;padding:4px 9px;background:transparent}.g-kind-dna .app-layout{display:block;max-width:none;margin:0}.g-kind-dna #sidebar{position:sticky!important;top:var(--g-bar)!important;height:auto;min-height:0;padding:0 28px;display:block;border:0;border-bottom:1px solid var(--g-line);background:var(--g-paper);overflow:visible;z-index:45;width:auto;transform:none;visibility:visible;box-shadow:none}.g-kind-dna #sidebar>.sidebar-title,.g-kind-dna #sidebar>.sidebar-reference,.g-kind-dna #sidebar>.sidebar-bottom{display:none}.g-kind-dna #sidebar .main-nav{display:flex;gap:3px;align-items:stretch;overflow-x:auto;scrollbar-width:thin;scrollbar-color:#cad5bf transparent;padding:6px 0;white-space:nowrap}.g-kind-dna #sidebar .main-nav a{display:flex;align-items:center;flex-shrink:0;gap:6px;font-size:11px;padding:11px 12px;border-radius:4px}.g-kind-dna #sidebar .main-nav a>span{display:none}.g-kind-dna .app-layout>main{width:auto;max-width:1340px;margin:auto;padding:30px 38px 40px}.g-kind-dna .page-meta{margin-bottom:25px}.g-kind-dna .page-meta .eyebrow{font-size:9px}.g-kind-dna .journey-hero{column-gap:35px}.g-kind-dna .journey-hero h1{font:400 clamp(41px,4.5vw,65px)/1.09 var(--g-serif);letter-spacing:0}.g-kind-dna .hero h1{font-family:var(--g-serif)}.g-kind-dna .journey-deck{font-family:var(--g-serif)}.g-kind-dna .hero .lede,.g-kind-dna .journey-intro{font-size:14px;line-height:1.85}.g-kind-dna .page-title{font-family:var(--g-serif)}.g-kind-dna .page-title h1{font-weight:400}.g-kind-dna .story-chapter{scroll-margin-top:135px}.g-kind-dna .chapter-jumps{top:calc(var(--g-bar) + 56px)}.g-kind-dna #sidebar-backdrop{display:none!important}.g-kind-dna .footer{max-width:none;border-color:var(--g-line)}.g-kind-dna .g-page .button{font-size:12px}.g-kind-dna .g-footer{margin-top:0!important}.g-kind-dna .view{min-height:calc(100vh - 260px)}
@media(max-width:1050px){.g-kind-dna .app-layout>main{padding:25px 27px 36px}.g-kind-dna .journey-hero{grid-template-columns:1.15fr 1fr;gap:25px}.g-kind-dna .journey-hero h1{font-size:47px}.g-kind-dna .journey-deck{font-size:20px}.g-kind-dna .journey-hero .journey-overview{padding:23px}.g-kind-dna #sidebar{padding-inline:20px}}
@media(max-width:760px){.g-kind-dna .g-page>.topbar{padding:0 18px;height:38px}.g-kind-dna .g-page>.topbar .desktop-only{display:inline-flex}.g-kind-dna #sidebar{padding:0 11px}.g-kind-dna #sidebar .main-nav a{font-size:10px;padding:10px}.g-kind-dna .app-layout>main{padding:21px 18px 28px}.g-kind-dna .journey-hero{grid-template-columns:1fr;gap:27px}.g-kind-dna .journey-hero h1{font-size:47px;letter-spacing:0}.g-kind-dna .journey-hero .journey-overview{padding:23px}.g-kind-dna .page-meta{gap:15px}.g-kind-dna .page-meta .text-link{font-size:10px}.g-kind-dna .page-meta .eyebrow{font-size:8px}.g-kind-dna .chapter-jumps{top:calc(var(--g-bar) + 50px)}.g-kind-dna .hero-actions{gap:15px}.g-kind-dna .g-footer{margin-top:0!important}}
/* Deep timeline: evidence and narrative remain separate, in the same visual language. */
html:has(.g-kind-timeline){--bg-void:#f5f4ed;--bg-panel:#fdfcf7;--text-primary:#2c4739;--text-secondary:#687a66;--text-tertiary:#819376;--gold:#9b743b;--gold-dim:#eee5d4;--gold-glow:transparent;--blue:#49799a;--blue-dim:#e7eef0;--blue-glow:transparent;--danger:#a65543;--danger-dim:#f2e7df;--danger-glow:transparent;--purple:#7d7595;--purple-dim:#edebf1;--purple-glow:transparent;--green:#567943;--green-dim:#e9efdf;--border-base:#d8dfce;--card-radius:7px;--font-display:Georgia,'Times New Roman',serif;--font-body:-apple-system,BlinkMacSystemFont,'Segoe UI',Arial,sans-serif;--font-data:ui-monospace,SFMono-Regular,Consolas,monospace}
.g-kind-timeline .g-page{padding-bottom:40px}.g-kind-timeline .g-page>header{margin:0;padding:48px 35px 20px;text-align:left;max-width:1250px;margin-inline:auto;overflow:visible}.g-kind-timeline .g-page>header:before{display:none}.g-kind-timeline .g-page>header h1{font:400 clamp(38px,4.8vw,62px)/1.12 var(--g-serif);letter-spacing:0;color:var(--g-ink);background:none;-webkit-text-fill-color:currentColor;text-transform:none;text-shadow:none;margin:15px 0 18px}.g-kind-timeline .subtitle{font:10px/1.7 var(--g-sans);letter-spacing:1.6px;color:#7c8b71;margin-bottom:18px}.g-kind-timeline .intro-container{max-width:1180px;margin:10px auto 25px;padding:20px 0 25px;border:0;border-bottom:1px solid var(--g-line);background:none}.g-kind-timeline .intro-bio{font:14px/1.9 var(--g-sans);max-width:870px;margin:0 0 24px}.g-kind-timeline .legend-bar{justify-content:flex-start;padding-top:15px;gap:19px}.g-kind-timeline .legend-item{font:10px var(--g-sans);letter-spacing:0;text-transform:none}.g-kind-timeline .dot{box-shadow:none!important}.g-kind-timeline .g-timeline-jumps{display:flex;align-items:center;gap:6px;padding:9px 30px;position:sticky;top:var(--g-bar);border-block:1px solid var(--g-line);background:var(--g-paper);z-index:40;overflow-x:auto;white-space:nowrap;scrollbar-width:thin}.g-kind-timeline .g-timeline-jumps>span{font:9px var(--g-sans);letter-spacing:1.5px;text-transform:uppercase;color:#879578;margin-right:15px}.g-kind-timeline .g-timeline-jumps a{padding:8px 12px;border:1px solid transparent;border-radius:4px;font:11px var(--g-sans);color:#617855;text-decoration:none}.g-kind-timeline .g-timeline-jumps a:hover{border-color:#cbd9bd;background:#ebf0e1}.g-kind-timeline .timeline-container{width:calc(100% - 64px);max-width:1250px;padding:35px 0 0;margin:auto}.g-kind-timeline .timeline-row{scroll-margin-top:145px;opacity:1;transform:none;gap:22px}.g-kind-timeline .snp-id{font-family:var(--g-serif);text-shadow:none;font-size:33px;font-weight:400;letter-spacing:0}.g-kind-timeline .era-title{font-family:var(--g-serif);font-weight:400;text-transform:none;letter-spacing:0}.g-kind-timeline .data-card,.g-kind-timeline .narrative-card{box-shadow:none;background:var(--g-surface)}.g-kind-timeline .narrative-card p{font-size:13px;line-height:1.9}.g-kind-timeline .col-left,.g-kind-timeline .col-right{min-width:0}.g-kind-timeline .scroll-progress{top:var(--g-bar);left:var(--g-rail);height:2px;max-width:calc(100% - var(--g-rail));background:#8ca875;box-shadow:none;z-index:14500}.g-kind-timeline .timeline-dot{box-shadow:0 0 0 5px var(--g-paper)}.g-kind-timeline .nav-btn{font:11px var(--g-sans);letter-spacing:0;text-transform:none;padding:10px 14px;box-shadow:none}.g-kind-timeline .nav-btn:hover{background:#e6ecd9;color:var(--g-ink);box-shadow:none}.g-kind-timeline .g-footer{margin-top:50px!important}.g-kind-timeline .mobile-header .mob-title{font-family:var(--g-serif);text-transform:none}.g-kind-timeline .mobile-tabs button{font:11px var(--g-sans);text-transform:none}.g-kind-timeline .timeline-row .evidence-tag{font-family:var(--g-sans);text-transform:none}
@media(max-width:1450px) and (min-width:1200px){.g-kind-timeline .timeline-row{grid-template-columns:1fr 48px 1fr;gap:15px}.g-kind-timeline .col-left,.g-kind-timeline .col-right{padding:0}.g-kind-timeline .timeline-container{width:calc(100% - 54px)}}
@media(max-width:760px){.g-kind-timeline .g-page>header{padding:29px 18px 17px}.g-kind-timeline .g-page>header h1{font-size:42px;margin-bottom:20px}.g-kind-timeline .subtitle{font-size:8px;letter-spacing:1.2px;line-height:2}.g-kind-timeline .intro-container{padding:12px 0 18px;margin-bottom:10px}.g-kind-timeline .intro-bio{font-size:12px;line-height:1.9}.g-kind-timeline .legend-bar{gap:12px}.g-kind-timeline .legend-item{font-size:9px}.g-kind-timeline .g-timeline-jumps{padding:8px 12px;gap:3px}.g-kind-timeline .g-timeline-jumps>span{display:none}.g-kind-timeline .g-timeline-jumps a{font-size:10px;padding:7px 10px}.g-kind-timeline .timeline-container{width:calc(100% - 30px);padding-top:22px}.g-kind-timeline .timeline-row{margin-bottom:36px}.g-kind-timeline .snp-id{font-size:30px}.g-kind-timeline .g-page>header .nav-btn{font-size:10px}}
/* Family map: all floating panels are constrained below the common header. */
.g-kind-map{height:100dvh!important;overflow:hidden!important}.g-kind-map .g-page{height:100dvh;min-height:0;overflow:hidden}.g-map-workspace{position:relative;height:calc(100dvh - var(--g-bar));width:100%;overflow:hidden;background:#edf1e4}.g-kind-map #location-panel{position:absolute!important;top:0;bottom:0;left:0;right:auto;width:320px;background:#f5f6ee;border-right:1px solid #ccd6c1;box-shadow:4px 0 18px #264e3220;z-index:1200;font:11px/1.5 var(--g-sans);padding-inline:17px}.g-kind-map:not(.sidebar-collapsed) .folium-map{left:320px!important;width:calc(100% - 320px)!important}.g-kind-map.sidebar-collapsed .folium-map{left:0!important;width:100%!important}.g-kind-map .sidebar-head{background:#eef2e5;color:var(--g-ink);padding:19px 17px;margin:0 -17px 15px;box-shadow:none;border-bottom:1px solid var(--g-line)}.g-kind-map .sidebar-head h3{color:var(--g-ink)!important;font:28px var(--g-serif);margin:8px 0 9px!important}.g-kind-map .sidebar-head p{color:#708066;font-size:10px;line-height:1.8}.g-kind-map .sidebar-eyebrow{color:#7c8d70;font:8px var(--g-sans);letter-spacing:1.6px}.g-kind-map .project-links{display:none}.g-kind-map .sidebar-close{background:#dfe7d4;color:#638051;font-weight:400;font-size:20px;width:28px;height:28px;border-radius:4px;right:13px;top:16px}.g-kind-map #sidebar-open{position:absolute;left:13px;top:13px;background:#2d5746;color:#fffdf2;height:39px;min-width:80px;border-radius:5px;font:11px var(--g-sans);box-shadow:var(--g-shadow);z-index:1190}.g-kind-map #details-panel{position:absolute!important;right:12px;top:12px;width:min(475px,calc(100% - 24px));max-height:calc(100% - 24px);z-index:1250;border:1px solid #b6c5a8;border-radius:7px;background:#fdfef8;box-shadow:0 15px 55px #193b2b33;padding:20px;font:12px/1.7 var(--g-sans)}.g-kind-map #details-panel h2{font:28px var(--g-serif);color:var(--g-ink)}.g-kind-map #research-table-panel{position:absolute;inset:0 0 0 320px;background:var(--g-paper);z-index:1100;padding:18px}.g-kind-map.sidebar-collapsed #research-table-panel{left:0}.g-kind-map .view-switch,.g-kind-map .display-switch{border-radius:5px;background:#e6ecdd;border-color:#cdd8c2}.g-kind-map .view-switch button,.g-kind-map .display-switch button{font-size:11px;font-weight:500;color:#5d7952}.g-kind-map .view-switch button.active,.g-kind-map .display-switch button.active{background:#fdfef8;border-color:#adc098;color:#2d5746;box-shadow:none}.g-kind-map .region-choice span{border-radius:4px;font-weight:500;font-size:11px;min-height:33px;border-color:#ccd7bf}.g-kind-map .region-choice input:checked+span{background:#e4eed8;border-color:#9ab582;color:#3c6231;box-shadow:inset 0 0 0 1px #aec798}.g-kind-map .section-label{font:9px var(--g-sans);letter-spacing:1.3px;color:#829574;margin-top:17px}.g-kind-map .extent-actions button,.g-kind-map .region-actions button{font:10px var(--g-sans);border-radius:4px;border-color:#cfdbc4;color:#59714e;background:#fbfdf6}.g-kind-map .filter-section,.g-kind-map #year-filter-card{border-radius:5px;border-color:#cdd9c2;background:#fdfef8}.g-kind-map .filter-section>summary{font-weight:550;color:#57794a;padding:10px}.g-kind-map .tool-box{background:#fdfef8;border-color:#d5dfcc}.g-kind-map input[type=search],.g-kind-map input[type=number],.g-kind-map select{background:#fdfef8;color:#34552c;border:1px solid #bfceb0;border-radius:4px}.g-kind-map input[type=checkbox]{accent-color:#47773b}.g-kind-map .table-head{background:#2d5746;box-shadow:none;border-radius:5px}.g-kind-map .table-head strong{font-weight:500}.g-kind-map .table-toolbar,.g-kind-map .table-search{background:#f3f5eb;border-color:#d3ddc8;box-shadow:none}.g-kind-map .leaflet-container{font-family:var(--g-sans);background:#e7eddf}.g-kind-map .leaflet-control-zoom a{color:#4d6f3c;background:#f9fcf2;border-color:#d4dfc8}.g-kind-map .leaflet-popup-content-wrapper{background:#fdfef8;color:var(--g-ink);border:1px solid #bccaac;border-radius:6px;box-shadow:0 12px 35px #1e4b222b}.g-kind-map .leaflet-popup-content{font-family:var(--g-sans)}.g-kind-map .location-popup{min-width:0}.g-kind-map .g-map-offline{position:absolute;bottom:18px;left:340px;right:18px;max-width:550px;z-index:1050;background:#fdfcf7;border:1px solid #c4cfb6;border-radius:6px;box-shadow:var(--g-shadow);padding:20px 23px;color:#496443;font:12px/1.8 var(--g-sans)}.g-kind-map.sidebar-collapsed .g-map-offline{left:18px}.g-kind-map .g-map-offline strong{display:block;font:23px var(--g-serif);margin-bottom:10px}.g-kind-map .g-map-offline a{color:var(--g-forest);font-weight:500}.g-kind-map .g-map-offline p{margin:0 0 10px}
@media(max-width:950px){.g-kind-map #location-panel{width:285px}.g-kind-map:not(.sidebar-collapsed) .folium-map{left:285px!important;width:calc(100% - 285px)!important}.g-kind-map #research-table-panel{left:285px}.g-kind-map .g-map-offline{left:300px}}
@media(max-width:700px){.g-kind-map #location-panel{width:min(315px,calc(100% - 35px))}.g-kind-map:not(.sidebar-collapsed) .folium-map{left:0!important;width:100%!important}.g-kind-map #research-table-panel{left:0;padding:10px}.g-kind-map #details-panel{top:auto!important;bottom:10px;right:10px;width:calc(100% - 20px);max-height:67%;padding:17px}.g-kind-map .table-head{align-items:start}.g-kind-map .table-heading{min-width:0}.g-kind-map .table-actions{flex-wrap:wrap}.g-kind-map .g-map-offline{left:15px;right:15px;bottom:15px;z-index:1150}.g-kind-map .location-popup{min-width:0;max-height:50dvh}.g-kind-map .leaflet-popup-content{max-width:calc(100vw - 60px);margin:14px}.g-kind-map .table-toolbar{max-height:130px;overflow:auto}}
/* Map controls also retain the house style while CDN styles are unavailable. */
.g-kind-map #location-panel a,.g-kind-map #details-panel a,.g-kind-map #research-table-panel a{color:var(--g-forest);text-underline-offset:3px}.g-kind-map .g-map-workspace button{font-family:var(--g-sans);border-radius:4px}.g-kind-map #location-panel button:not([class]){padding:5px 8px;margin:2px 2px 2px 0;font-size:11px;color:var(--g-ink);background:var(--g-surface);border:1px solid var(--g-line)}.g-kind-map #location-panel button:not([class]):hover{background:var(--g-soft);border-color:#afbe9f}
