/* The explorer has fixed sections, each with its own small scroll rail. */
#profile.profile-locked{display:flex;flex-direction:column;gap:0;height:100%;min-height:0;width:100%;margin:0;padding:0;overflow:hidden;mask-image:none;scroll-behavior:auto}
#profile.profile-locked .country-photo{flex:0 0 auto;min-height:var(--profile-photo-height);height:var(--profile-photo-height);margin:0 0 10px}
#profile.profile-locked .country-photo img,#profile.profile-locked .photo-space{height:100%;min-height:0}
#profile.profile-locked .profile-top{flex:0 0 auto;min-height:0}
#profile.profile-locked .tabs{flex:0 0 auto;margin:10px 0 8px;gap:12px}
#profile.profile-locked .country-tab-list{display:flex;min-width:0;gap:16px}
#profile.profile-locked .tabs .country-detail-toggle{display:flex;align-items:center;justify-content:center;flex:0 0 24px;width:24px;margin-left:auto;padding:0;border:0;background:transparent;color:#999}
.country-detail-toggle svg{width:12px;height:12px;fill:none;stroke:currentColor;stroke-width:1.2;stroke-linecap:round;stroke-linejoin:round;transform:rotate(90deg);transition:transform 240ms var(--motion-ease,cubic-bezier(.22,1,.36,1))}
.country-detail-toggle[aria-expanded=false] svg{transform:rotate(0)}
#profile.profile-locked.profile-details-collapsed #detail{flex:0 0 0;height:0;opacity:0;visibility:hidden;pointer-events:none}
#profile.profile-locked #detail{display:flex;flex-direction:column;flex:1 1 0;min-height:0;overflow:hidden}
#profile.profile-locked #detail>.stat-wheel{flex:0 0 var(--fixed-figure-height,180px);height:var(--fixed-figure-height,180px);min-height:0;margin:0}
#profile.profile-locked #detail.detail-languages .language-list{display:block;flex:1 1 0;min-height:0;overflow:hidden;margin:0}
#profile.profile-locked #detail.detail-languages .language-wheel{height:100%;margin:0;min-height:0}
#profile.profile-locked #detail.detail-languages .language-wheel .language-slide{transform-origin:left top}
#profile.profile-locked #detail.detail-languages .language-wheel{mask-image:linear-gradient(#000 0%,#000 97%,transparent)}
.profile-reading{position:relative;display:flex;flex-direction:column;flex:1 1 0;min-height:0;margin:0;border:0;border-radius:0;background:none;color:#aaa;overflow:hidden}
.profile-reading>h3{flex:0 0 auto;margin:0 0 13px 20px;font-size:14px;font-weight:500;line-height:1.4;letter-spacing:0;color:#d7d7d7}
.profile-reading-body{position:relative;flex:1 1 0;min-height:0}
.profile-reading-viewport{height:100%;min-height:0;padding:0 0 5px 20px;overflow-x:hidden;overflow-y:auto;overscroll-behavior:contain;touch-action:pan-y;scrollbar-width:none;scroll-behavior:smooth;outline-offset:-1px}
.profile-reading-viewport::-webkit-scrollbar{width:0;height:0}
.profile-reading-viewport:focus-visible{outline:1px solid #888}
.profile-reading .reading-scroll-track{left:0;top:0;bottom:0;height:auto;transform:none;z-index:2}
.profile-reading .reading-scroll-track[hidden]{display:none}
.profile-reading:hover .reading-scroll-track>span{background:#ededed}
.profile-reading .country-news{border:0;margin:0;padding:0;background:none}
.profile-reading .country-action{margin:20px 0 0;padding:16px 0 12px;border-top:1px solid #ffffff18}
.profile-reading .country-action h3{margin:0 0 9px;font-size:12px;line-height:1.4}
.country-life{margin-top:13px;padding-top:15px;border-top:1px solid #ffffff18}
.profile-estimate{flex:0 0 150px;margin:8px 0}
.profile-estimate .reach-estimate{margin:0;padding:0;border:0}
#profile.profile-locked .profile-estimate .reach-estimate,
#profile.profile-locked .profile-estimate .reach-estimate :is(strong,p,small,a){color:#e0e6e3}
.history-reading{margin-top:16px}
.history-reading .history-status{margin:0 0 16px;font-size:24px}
.history-reading .history-return{width:100%;margin:14px 0 0;min-height:40px}
@media(min-width:761px) and (max-height:780px){
 #profile.profile-locked .country-photo{--profile-photo-height:90px}
 #profile.profile-locked .carousel-header .country-dial{height:90px}
 #profile.profile-locked .tabs{margin-top:6px;margin-bottom:7px}
 .country-life{margin-top:8px;padding-top:12px}
}
@media(max-width:760px), (max-width:1000px) and (max-height:500px){
 #profile.profile-locked{display:grid;grid-template-columns:minmax(0,1fr) 104px;grid-template-rows:86px 34px minmax(0,1fr);column-gap:14px;padding:0;overflow:hidden}
 #profile.profile-locked .country-photo{grid-column:2;grid-row:1;float:none;width:104px;min-height:70px;height:70px;margin:5px 0 0}
 #profile.profile-locked .profile-top{grid-column:1;grid-row:1;width:100%;min-height:0}
 #profile.profile-locked .tabs{grid-column:1/-1;grid-row:2;margin:0 0 7px}
 #profile.profile-locked .country-tab-list{gap:12px}
 #profile.profile-locked .tabs .country-detail-toggle{display:none}
 #profile.profile-locked #detail{grid-column:1/-1;grid-row:3;width:100%;min-height:0}
 #profile.profile-locked .country-life{display:none}
 #profile.profile-locked.profile-history{display:flex}
 #profile.profile-locked.profile-history .country-photo{display:none}
 #profile.profile-locked.profile-history .history-reading{margin-top:8px}
 .profile-estimate{flex:1 1 0;margin:0}
 .mobile-panel-expanded #profile.profile-locked{display:flex;flex-direction:column}
 .mobile-panel-expanded #profile.profile-locked .country-photo{float:none;display:block;width:100%;--profile-photo-height:120px;min-height:120px;height:120px;margin:0 0 6px}
 .mobile-panel-expanded #profile.profile-locked .profile-top{width:100%;min-height:96px}
 .mobile-panel-expanded #profile.profile-locked .tabs{margin:4px 0 8px}
 .mobile-panel-expanded #profile.profile-locked #detail{flex:1 1 0}
 .mobile-panel-expanded #profile.profile-locked .country-life{display:flex;margin-top:8px;padding-top:12px}
 .mobile-panel-expanded #profile.profile-locked .profile-estimate{flex:0 0 110px}
 .profile-reading>h3{font-size:13px;margin-bottom:10px}
 .profile-reading .country-news p,.profile-reading .country-action p{font-size:12px;line-height:1.6}
 .profile-reading .country-news h4{font-size:14px}
}
@media(max-width:1000px) and (max-height:500px) and (orientation:landscape){
 #profile.profile-locked{grid-template-columns:minmax(0,1fr) 70px;grid-template-rows:70px 32px minmax(0,1fr);column-gap:12px}
 #profile.profile-locked .country-photo{width:70px;height:55px;min-height:55px}
 .mobile-panel-expanded #country-panel,.mobile-panel-expanded.in-history #country-panel{overflow:hidden}
 .mobile-panel-expanded #profile.profile-locked{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);grid-template-rows:70px minmax(0,1fr);gap:10px 26px;overflow:hidden}
 .mobile-panel-expanded #profile.profile-locked .country-photo{grid-column:1;grid-row:1;width:90px;height:60px;min-height:60px;margin:0}
 .mobile-panel-expanded #profile.profile-locked .profile-top{grid-column:1;grid-row:1;min-height:70px;width:calc(100% - 102px);margin-left:102px}
 .mobile-panel-expanded #profile.profile-locked .tabs{grid-column:1;grid-row:2;margin:0;align-self:start}
 .mobile-panel-expanded #profile.profile-locked #detail{grid-column:2;grid-row:1/-1;display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:90px minmax(0,1fr);gap:8px}
 .mobile-panel-expanded #profile.profile-locked #detail.detail-languages,
 .mobile-panel-expanded #profile.profile-locked #detail.detail-pray{display:flex}
 .mobile-panel-expanded #profile.profile-locked #detail>.stat-wheel{height:90px}
 .mobile-panel-expanded #profile.profile-locked .country-life{margin:0;padding-top:8px}
 .mobile-panel-expanded #profile.profile-locked.profile-history{display:flex}
 .mobile-panel-expanded #profile.profile-locked.profile-history .country-photo{display:none}
 .mobile-panel-expanded #profile.profile-locked.profile-history .profile-top{width:100%;margin:0}
 .mobile-panel-expanded.in-history #country-panel{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);grid-template-rows:30px minmax(0,1fr);column-gap:26px}
 .mobile-panel-expanded.in-history .mobile-panel-toggle{grid-column:1/-1;grid-row:1;position:relative}
 .mobile-panel-expanded.in-history .mobile-history-host{grid-column:1;grid-row:2;min-height:0;align-self:start}
 .mobile-panel-expanded.in-history #profile.profile-locked{grid-column:2;grid-row:2;flex:1 1 0;min-height:0;height:100%;overflow:hidden}
}
@media(max-width:760px) and (max-height:650px) and (orientation:portrait){
 .mobile-panel-expanded #profile.profile-locked{display:grid;grid-template-columns:minmax(0,1fr) 84px;grid-template-rows:80px 44px minmax(0,1fr);column-gap:14px}
 .mobile-panel-expanded #profile.profile-locked .country-photo{grid-column:2;grid-row:1;width:84px;--profile-photo-height:64px;min-height:64px;height:64px;margin:5px 0 0}
 .mobile-panel-expanded #profile.profile-locked .profile-top{min-height:80px}
 .mobile-panel-expanded #profile.profile-locked .tabs{margin:0 0 7px}
 .mobile-panel-expanded #profile.profile-locked.profile-history{display:flex}
 .mobile-panel-expanded #profile.profile-locked.profile-history .country-photo{display:none}
 .mobile-panel-expanded #profile.profile-locked .country-dial{height:80px}
 .mobile-panel-expanded #profile.profile-locked .stat-wheel:not(.language-wheel):not(.overview-figures) .stat-slide{top:50%}
 .mobile-panel-expanded #profile.profile-locked .stat-wheel:not(.language-wheel):not(.overview-figures) .stat-slide dd{font-size:36px}
 .mobile-panel-expanded #profile.profile-locked .stat-wheel:not(.language-wheel):not(.overview-figures) .stat-slide.stat-medium dd{font-size:30px}
 .mobile-panel-expanded #profile.profile-locked .stat-wheel:not(.language-wheel):not(.overview-figures) .stat-slide.stat-long dd{font-size:26px}
 .mobile-panel-expanded #profile.profile-locked .stat-slide dt{font-size:10px;margin-top:4px}
 .mobile-panel-expanded #profile.profile-locked .profile-estimate{flex-basis:90px}
 .profile-reading>h3{font-size:12px;margin-bottom:8px}
}
@media(prefers-reduced-motion:reduce){.profile-reading-viewport{scroll-behavior:auto}}

/* Overview is a complete, static list; News and Pray have separate reading tabs. */
#profile.profile-locked #detail>.overview-figures{flex:1 1 0;height:auto;min-height:0;margin:0;padding:4px 0 0;perspective:none;mask-image:none;cursor:auto;touch-action:auto;user-select:text;overflow:hidden}
#profile.profile-locked .overview-figures .stat-stack{position:static;display:grid;grid-template-columns:minmax(0,1fr);align-content:start;gap:var(--overview-gap,16px);height:auto;width:100%;margin:0;transform:none}
#profile.profile-locked .overview-figures .stat-slide{position:static;display:flex;flex-direction:column;left:auto;right:auto;top:auto;min-width:0;transform:none!important;opacity:1!important;will-change:auto;cursor:auto;color:#dedede}
#profile.profile-locked .overview-figures .stat-slide dd{order:1;font-size:var(--overview-number-size,56px);line-height:1.03;letter-spacing:-.045em;margin:0;max-width:100%;font-weight:650;color:#e2e8e5}
#profile.profile-locked .overview-figures .stat-slide:not(:first-child) dd{font-size:clamp(14px,calc(var(--overview-number-size,56px) * .38),22px);font-weight:550;letter-spacing:-.025em;color:#aaa}
#profile.profile-locked .overview-figures .stat-slide:not(:first-child).stat-long dd{font-size:clamp(14px,calc(var(--overview-number-size,56px) * .36),21px)}
#profile.profile-locked .overview-figures .stat-slide dd small{margin-top:3px;font-size:calc(var(--overview-label-size,12px) + 1px);line-height:1.2;letter-spacing:0;font-weight:400;color:#969696}
#profile.profile-locked .overview-figures .stat-slide dt{order:2;margin:5px 0 0;max-width:none;font-size:var(--overview-label-size,12px);line-height:1.35;font-weight:400;color:#a9a9a9}
#profile.profile-locked #detail.detail-news .country-life,
#profile.profile-locked #detail.detail-pray .country-prayer{display:flex;flex:1 1 0;margin:4px 0 0;padding-top:0;border:0}
#profile.profile-locked #detail.detail-news .country-life>h3,
#profile.profile-locked #detail.detail-pray .country-prayer>h3{margin-top:0;margin-left:0}
#profile.profile-locked #detail.detail-news .profile-reading-viewport,
#profile.profile-locked #detail.detail-pray .profile-reading-viewport{padding-left:0;padding-right:18px}
#profile.profile-locked #detail.detail-news .reading-scroll-track,
#profile.profile-locked #detail.detail-pray .reading-scroll-track{left:auto;right:0}
#profile.profile-locked #detail.detail-pray .country-action{margin:0;padding:0 0 5px;border:0}
@media(min-width:761px) and (min-height:501px) and (max-height:650px), (min-width:1001px) and (max-height:650px){
 #profile.profile-locked .overview-figures .stat-stack{grid-template-columns:repeat(2,minmax(0,1fr));column-gap:14px}
}
@media(max-width:760px), (max-width:1000px) and (max-height:500px){
 #profile.profile-locked .overview-figures .stat-stack{grid-template-columns:repeat(2,minmax(0,1fr));column-gap:14px}
 #profile.profile-locked .overview-figures .stat-slide:nth-child(n+3){display:none}
 .mobile-panel-expanded #profile.profile-locked .overview-figures .stat-slide:nth-child(n+3){display:flex}
 #profile.profile-locked .overview-figures .stat-slide dt{margin-top:4px}
 .mobile-panel-expanded #profile.profile-locked #detail.detail-overview,
 .mobile-panel-expanded #profile.profile-locked #detail.detail-news,
 .mobile-panel-expanded #profile.profile-locked #detail.detail-pray{display:flex}
}

#profile.profile-locked .country-prayer .country-action p{margin:0 0 12px}
#profile.profile-locked .country-prayer .prayer-source{display:block;width:fit-content;max-width:100%;margin:0 0 20px;font-size:10px;line-height:1.5;color:#a9a9a9;border-bottom:0}
#profile.profile-locked .country-prayer .prayer-source:hover{color:#fff}
#profile.profile-locked .country-prayer .prayer-context-note{display:block;margin-top:14px;color:#888;font-size:9px;line-height:1.5}

#profile.profile-locked .language-wheel .language-slide:not([hidden]) a{cursor:pointer;pointer-events:auto}
#profile.profile-locked .language-wheel .language-slide a:hover{color:#fff}
#profile.profile-locked .language-wheel .language-slide[hidden]{display:none}
#profile.profile-locked .language-wheel .language-slide a:focus-visible{outline:1px solid #e0e6e3;outline-offset:4px}

#profile.profile-locked .country-prayer .prayer-background{margin:18px 0 0;border-top:1px solid #ffffff24;padding-top:12px}
#profile.profile-locked .country-prayer .prayer-background>summary{cursor:pointer;color:#b8b8b8;font-size:11px;line-height:1.5;margin-bottom:12px}
#profile.profile-locked .country-prayer .prayer-background>summary:focus-visible{outline:1px solid #aaa;outline-offset:3px}
#profile.profile-locked .country-prayer .prayer-summary{margin:0 0 16px}
#profile.profile-locked .country-prayer .prayer-points{margin:0 0 16px;padding:0 0 0 15px;color:#d5d5d5;font-size:12px;line-height:1.6}
#profile.profile-locked .country-prayer .prayer-points li{margin:0 0 10px;padding-left:3px}
#profile.profile-locked .country-prayer .prayer-points li:last-child{margin-bottom:0}
#profile.profile-locked .country-prayer .prayer-points li::marker{color:#597f99}
#profile.profile-locked .country-prayer .prayer-sources{margin:0 0 18px}
#profile.profile-locked .country-prayer .prayer-sources>summary{width:fit-content;min-height:24px;display:flex;align-items:center;cursor:pointer;color:#a9a9a9;font-size:10px;line-height:1.5;list-style:none}
#profile.profile-locked .country-prayer .prayer-sources>summary::-webkit-details-marker{display:none}
#profile.profile-locked .country-prayer .prayer-sources>summary:focus-visible{outline:1px solid #597f99;outline-offset:3px}
#profile.profile-locked .country-prayer .prayer-sources[open]>summary{margin-bottom:8px}
#profile.profile-locked .country-prayer .prayer-sources .prayer-source{margin:0 0 10px}

/* Shared Scripture progress palette for desktop and mobile language lists. */
#profile .language-wheel .language-slide[data-scripture-progress="complete"] dt{color:#63ac80}
#profile .language-wheel .language-slide[data-scripture-progress="testament"] dt{color:#597f99}
#profile .language-wheel .language-slide[data-scripture-progress="portions"] dt{color:#b77a7e}
#profile .language-wheel .language-slide[data-scripture-progress="none"] dt{color:#bd4c52}
#profile .language-wheel .language-slide[data-scripture-progress="unknown"] dt{color:#8b8e92}
