/* Small screens keep the globe and reading panel in separate, usable spaces. */
.mobile-panel-toggle{display:none}
header{gap:26px}
.header-action{display:inline-flex;align-items:center;position:relative;min-height:44px;color:#c6c6c6;text-decoration:none;white-space:nowrap;font-size:11px;font-weight:400;letter-spacing:.1px}
.header-action:after{content:"";position:absolute;left:0;right:0;bottom:9px;height:1px;background:#666;transition:background-color 240ms ease}
.header-action:hover{color:#fff}.header-action:hover:after{background:#eee}
.share-status{position:absolute;right:0;bottom:29px;white-space:nowrap;font-size:10px;color:#bbb}
.share-dialog{position:fixed;width:min(460px,calc(100vw - 32px));padding:28px;background:#111;border:1px solid #333;color:#ccc}
.share-dialog::backdrop{background:#000a}
.share-dialog h2{font-size:24px;letter-spacing:-.5px;color:#eee;margin:0 28px 16px 0}
.share-dialog p{font-size:13px;line-height:1.6}
.share-dialog label{display:block;font-size:11px;margin:18px 0 7px}
.share-dialog input{width:100%;box-sizing:border-box;padding:10px;background:#080808;border:1px solid #444;color:#ccc;font-size:12px}
.share-dialog-close{position:absolute;right:15px;top:12px;padding:4px 8px;font-size:24px;background:none;border:0;color:#aaa}
.share-dialog-copy{margin-top:14px;padding:10px 15px;background:#222;border:1px solid #555;color:#ddd;font-size:12px}
.share-dialog-status{display:block;margin-top:10px;font-size:11px;color:#999}
.country-action{margin:18px 0 10px;padding-top:16px;border-top:1px solid #ffffff16;color:#c6c6c6}
.country-action h3{margin:0 0 8px;font-size:12px;font-weight:500;color:#eee}
.country-action p{margin:0 0 9px;font-size:12px;line-height:1.6}
.country-action a{font-size:11px;line-height:1.5;color:#bbb;text-decoration:none;border-bottom:1px solid #ffffff35;padding-bottom:2px}
.country-action a:hover{color:#fff}
.site-footer .footer-share{font:400 10px/1.5 var(--atlas-grotesk);letter-spacing:0;color:#929292;padding:5px 0;margin:0;border:0;background:none}
@media(max-width:760px), (max-width:1000px) and (max-height:500px){
 :root{--mobile-panel-height:clamp(230px,30dvh,285px);--mobile-footer-height:calc(68px + env(safe-area-inset-bottom))}
 html,body.immersive-atlas{width:100%;overflow:hidden;min-height:0}
 header{height:60px;padding:0 16px;gap:12px;z-index:12}
 .header-action{font-size:10px}
 .brand,.brand:after{font-size:10px;letter-spacing:1.5px}
 .brand .mark{width:28px;height:28px;margin-right:9px}
 .mark svg{width:25px;height:25px}
 .map-toolbar{top:62px;left:50%;right:auto;transform:translateX(-50%);width:auto;z-index:10}
 .layers{width:auto;gap:18px;background:none;backdrop-filter:none;box-shadow:none}
 .layers button{padding:5px 0 8px;font-size:12px;min-height:32px}
 .title-row,.in-history .title-row{left:18px;right:18px;top:104px;width:auto;max-width:none;pointer-events:none}
 .title-row h1,.in-history .title-row h1{font-size:24px;line-height:1.06;letter-spacing:-1px;margin:0}
 .title-row h1 span{display:block;white-space:nowrap}
 .title-row .title-scripture{max-width:350px;margin:14px 0 0!important;padding:0!important;border:0;font:400 11px/1.5 var(--atlas-grotesk)!important;color:#aaa}
 .title-row .title-scripture cite{display:block;margin-top:7px!important;font:400 9px/1.4 var(--atlas-grotesk)!important}
 .in-history .title-row{display:none}
 #country-panel,.in-history #country-panel{position:fixed;top:auto;left:0;right:0;bottom:var(--mobile-footer-height);width:100%;height:var(--mobile-panel-height);max-height:none;padding:0 18px;border:0;border-top:1px solid #ffffff1a;background:linear-gradient(#070707f2,#000);box-shadow:none;display:flex;flex-direction:column;gap:0;overflow:hidden;z-index:9;transition:height 420ms var(--motion-ease,cubic-bezier(.22,1,.36,1))}
 .mobile-panel-expanded .title-row{visibility:hidden;opacity:0}
 .mobile-panel-expanded #country-panel,.mobile-panel-expanded.in-history #country-panel{background:#030303;height:calc(100dvh - 112px - var(--mobile-footer-height))}
 .mobile-panel-toggle{display:flex;align-items:center;justify-content:flex-end;position:relative;flex:0 0 30px;height:30px;width:100%;border:0;border-radius:0;background:none;color:#999;font-size:10px;padding:0;touch-action:none}
 .mobile-panel-toggle:before{content:'';position:absolute;left:50%;top:9px;transform:translateX(-50%);width:36px;height:2px;background:#aaa}
 .mobile-panel-toggle:focus-visible{outline:1px solid #aaa;outline-offset:-2px}
 #profile{display:block;flex:1;min-height:0;width:100%;height:auto;grid-template-columns:none;grid-template-rows:none;gap:0;margin:0;padding:0 0 20px;overflow:auto;overscroll-behavior:contain;mask-image:linear-gradient(#000 0%,#000 calc(100% - 12px),transparent)}
 #profile .country-photo{float:right;width:104px;max-width:none;margin:5px 0 5px 14px;min-height:70px;height:70px}
 #profile .country-photo img,#profile .country-photo .photo-space{height:70px;min-height:70px;width:100%;object-fit:cover}
 #profile .profile-top{width:calc(100% - 118px);min-height:86px;clear:none}
 .carousel-header .country-dial{height:86px}
 .carousel-header .country-name{font-size:25px;line-height:1.06;letter-spacing:-.7px;max-height:55px}
 .carousel-header .country-name.name-long{font-size:20px;letter-spacing:-.4px}
 .carousel-header .country-scroll-track{height:calc(100% - 14px)}
 #profile .tabs{clear:both;margin:0 0 4px;gap:22px}
 #profile .tabs button{padding:8px 0;font-size:12px;min-height:36px}
 #detail{display:block;clear:both}
 .stat-wheel,.stat-wheel.at-first,.stat-wheel.at-last{height:150px;min-height:140px;margin:0 0 8px}
 .stat-slide dd{font-size:42px;letter-spacing:-1.8px}
 .stat-slide.stat-medium dd{font-size:34px;letter-spacing:-1.3px}
 .stat-slide.stat-long dd{font-size:28px;letter-spacing:-.8px}
 .stat-slide dt{font-size:11px;margin-top:6px}
 .stat-wheel.at-first .stat-slide{top:38px}
 .language-wheel,.language-wheel.at-first,.language-wheel.at-last{height:300px}
 .language-wheel .stat-slide,.language-wheel.at-first .stat-slide,.language-wheel.at-last .stat-slide{top:50%}
 .language-wheel .language-slide dd{font-size:26px;line-height:1.08;letter-spacing:-.7px}
 .language-wheel .language-slide.language-long dd{font-size:22px}
 .country-news{padding-top:14px;margin-top:12px}
 .country-news h3,.country-action h3{font-size:13px}
 .country-news h4{font-size:15px;line-height:1.35}
 .country-news p,.country-action p{font-size:13px;line-height:1.65}
 .country-news small{font-size:10px;line-height:1.5}
 .mobile-panel-expanded #profile .country-photo{float:none;width:100%;height:150px;margin:0 0 6px}
 .mobile-panel-expanded #profile .country-photo img,.mobile-panel-expanded #profile .country-photo .photo-space{height:150px;min-height:150px}
 .mobile-panel-expanded #profile .profile-top{width:100%;min-height:96px}
 .mobile-panel-expanded .carousel-header .country-dial{height:96px}
 .mobile-panel-expanded .carousel-header .country-name{font-size:29px}
 .mobile-panel-expanded .carousel-header .country-name.name-long{font-size:24px}
 .mobile-panel-expanded .stat-wheel{height:190px}
 body.immersive-atlas .map-heading{background:none!important;border:0!important;border-radius:0;backdrop-filter:none!important;padding:0!important;left:18px;right:18px;bottom:calc(48px + env(safe-area-inset-bottom));font-size:8px;text-align:center;white-space:normal;z-index:10}
 body.immersive-atlas .legend{background:none!important;border:0!important;border-radius:0;backdrop-filter:none!important;padding:0!important;left:14px;right:14px;bottom:calc(33px + env(safe-area-inset-bottom));font-size:8px;line-height:1.4;gap:9px;justify-content:center;flex-wrap:wrap;z-index:10}
 body.immersive-atlas .map-heading #measure{font-size:8px}
 .legend i{width:6px;height:6px}
 .in-history{--mobile-footer-height:calc(90px + env(safe-area-inset-bottom))}
 .in-history.immersive-atlas .map-heading{bottom:calc(70px + env(safe-area-inset-bottom))}
 .site-footer{left:16px;right:16px;bottom:max(6px,env(safe-area-inset-bottom));gap:18px;justify-content:center;z-index:11}
 .site-footer #about,.site-footer .footer-context summary,.site-footer .photo-credit-footer summary,.site-footer .footer-share{font-size:10px!important;min-height:28px;padding:4px 0!important;display:flex;align-items:center}
 .site-footer .footer-context>div,.site-footer .photo-credit-footer>div{position:fixed;left:18px;right:18px;width:auto;bottom:68px;max-height:60dvh}
 dialog,#atlas-sheet{width:calc(100vw - 28px);max-width:none;max-height:calc(100dvh - 40px);padding:20px}
 #atlas-sheet{padding:0}
 .sheet-header{padding:18px}
 #sheet-content{padding:0 18px 22px}
 .context{display:block;padding:20px 0}
 .context-stat{padding:12px 0}
 .context-stat strong{font-size:30px}
 .translation-estimate{padding:16px;margin-top:16px}
 .estimate-heading{display:block}
 .estimate-heading h2{font-size:25px}
 .estimate-date{margin-top:16px}
 .countdown{gap:8px;flex-wrap:wrap}
 .countdown strong{font-size:28px}
 .action-grid{grid-template-columns:1fr}
 .action-card{padding:18px}
 .commission-passage blockquote{font-size:24px;line-height:1.35}
 .mobile-history-host{flex:0 0 auto}
 .mobile-history-host #history-timeline{position:relative;left:auto;right:auto;bottom:auto;top:auto;width:100%;margin:0 0 8px;padding:0 0 8px;background:none;border:0;border-bottom:1px solid #ffffff15;box-shadow:none;transform:none}
 .mobile-history-host .history-top{display:grid;grid-template-columns:1fr auto;gap:5px 14px;align-items:center}
 .mobile-history-host .history-top>div:first-child{display:flex;align-items:center;gap:10px}
 .mobile-history-host .history-top .eyebrow{font-size:8px}
 .mobile-history-host .history-top h2{font-size:18px;margin:0}
 .mobile-history-host .history-stats{grid-column:1/-1;grid-row:2;display:grid;grid-template-columns:1fr 1fr 1fr;gap:8px}
 .mobile-history-host .history-stats span{font-size:8px;line-height:1.3}
 .mobile-history-host .history-stats strong{font-size:13px;line-height:1.5}
 .mobile-history-host .history-stats small{font-size:8px;line-height:1.3}
 .mobile-history-host #history-method{grid-column:2;grid-row:1;font-size:9px;padding:4px 7px}
 .mobile-history-host #history-track{margin:5px 0 0}
 .mobile-history-host .history-ticks{font-size:8px}
 .mobile-history-host .history-ticks button{font-size:8px}
 .mobile-history-host .history-ticks button:nth-child(2),.mobile-history-host .history-ticks button:nth-child(8){top:12px}
 .mobile-history-host .history-focused .history-ticks button:nth-child(2){top:0}
 .mobile-history-host .history-focused .history-ticks button:nth-child(4){display:none}
 .mobile-history-host .history-bottom{font-size:8px;gap:8px;margin-top:4px}
 .mobile-history-host #history-focus{font-size:8px;padding:3px 0}
 .mobile-history-host .history-footnote{display:none}
 .in-history:not(.mobile-panel-expanded) #profile .country-photo{display:none}
 .in-history:not(.mobile-panel-expanded) #profile .profile-top{width:100%}
 .history-status{font-size:21px;margin:8px 0}
 .history-return{font-size:12px;padding:10px;min-height:40px}
 .in-history #country-panel{height:clamp(310px,42dvh,390px)}
 @media(max-height:740px){.title-row .title-scripture{display:none}.title-row{top:102px}}
 @media(prefers-reduced-motion:reduce){#country-panel{transition:none}}
}
@media(max-width:1000px) and (max-height:500px) and (orientation:landscape){
 :root{--mobile-panel-height:calc(100dvh - 124px);--mobile-footer-height:calc(28px + env(safe-area-inset-bottom))}
 .in-history{--mobile-footer-height:calc(28px + env(safe-area-inset-bottom))}
 .title-row{display:none}
 #country-panel,.in-history #country-panel{left:52%;right:0;width:48%;bottom:var(--mobile-footer-height);height:calc(100dvh - 100px - env(safe-area-inset-bottom));padding:0 12px}
 .mobile-panel-expanded #country-panel,.mobile-panel-expanded.in-history #country-panel{left:0;width:100%;height:calc(100dvh - 100px - env(safe-area-inset-bottom))}
 .map-toolbar{top:14px}
 #profile .country-photo{width:70px;height:55px;min-height:55px}
 #profile .country-photo img,#profile .country-photo .photo-space{height:55px;min-height:55px}
 #profile .profile-top{width:calc(100% - 82px);min-height:70px}
 .carousel-header .country-dial{height:70px}
 .carousel-header .country-name{font-size:20px}
 .carousel-header .country-name.name-long{font-size:17px}
 body.immersive-atlas .map-heading,body.immersive-atlas .legend{left:14px;right:52%;text-align:left;justify-content:flex-start}
 body.immersive-atlas .map-heading{bottom:calc(44px + env(safe-area-inset-bottom))}body.immersive-atlas .legend{bottom:calc(30px + env(safe-area-inset-bottom))}
 .site-footer{left:auto;right:12px;bottom:max(1px,env(safe-area-inset-bottom));gap:12px}
 .mobile-history-host .history-stats small{display:none}
 .mobile-panel-expanded.in-history #country-panel{overflow-y:auto}
 .mobile-panel-expanded.in-history #profile{flex:none;overflow:visible;mask-image:none}
 .mobile-panel-expanded.in-history .mobile-panel-toggle{position:sticky;top:0;background:#030303;z-index:2}
}

@media(max-width:390px){.brand,.brand:after{font-size:9px;letter-spacing:1.1px}.brand .mark{width:24px;height:24px;margin-right:8px}.mark svg{width:24px;height:24px}}
