/* Journal-home-only fusion: eLife navigation and content with a Frontiers-style masthead. */
.ef-mast{position:relative;min-height:230px;color:#fff;background:#18384b;overflow:hidden}
.ef-mast-image{position:absolute;inset:0}
.ef-mast-image::after{content:'';position:absolute;inset:0;background:rgba(7,31,47,.59)}
.ef-mast-image img{width:100%;height:100%;object-fit:cover;object-position:50% 50%}
.ef-mast-inner{position:relative;width:min(1184px,calc(100% - 96px));margin:auto;padding:56px 0 105px}
.ef-mast h1{max-width:850px;color:#fff;font:700 32px/1.25 ElifeNoto,Arial,sans-serif;letter-spacing:-.015em;overflow-wrap:anywhere}
.ef-mast-facts{position:absolute;right:0;bottom:0;display:flex;align-items:stretch;color:#fff}
.ef-mast-facts>span{display:flex;flex-direction:column;justify-content:center;min-width:145px;padding:10px 16px;background:rgba(14,42,56,.94)}
.ef-mast-facts>span:nth-child(2){background:rgba(25,61,73,.94)}
.ef-mast-facts strong{font:700 14px/1.35 ElifeNoto,Arial,sans-serif}
.ef-mast-facts small{font:400 12px/1.4 ElifeNoto,Arial,sans-serif;color:#dbe8ef}
.ef-mast-facts>a{display:flex;align-items:center;justify-content:center;gap:12px;min-width:205px;padding:15px 24px;background:#0878bc;color:#fff;font-size:14px;font-weight:700}
.ef-mast-facts>a:hover{background:#075a93;color:#fff}
.ef-mast-facts>a svg{width:18px;height:18px}
.bilpub-theme .ef-discover .related{display:grid;grid-template-columns:1fr;gap:17px;margin:0}
.bilpub-theme .ef-discover .related a{display:grid;grid-template-columns:44px minmax(0,1fr) 17px;gap:12px;align-items:center;color:#174e80}
.bilpub-theme .ef-discover .related img{width:44px;height:60px;object-fit:contain;background:#f3f6f7}
.bilpub-theme .ef-discover .related strong{font:700 14px/1.45 ElifeNoto,Arial,sans-serif;overflow-wrap:anywhere}
.bilpub-theme .ef-discover .related a:hover strong{text-decoration:underline;text-underline-offset:3px}
.bilpub-theme .ef-discover .related svg{width:17px;height:17px}
.bilpub-theme .ef-volumes-list{display:grid;gap:0}
.bilpub-theme .ef-volume-row{display:flex;align-items:baseline;justify-content:space-between;gap:12px;padding:11px 0;border-bottom:1px solid #e3e7ea}
.bilpub-theme .ef-volume-row:first-child{padding-top:0}
.bilpub-theme .ef-volume-name{font:700 14px/1.45 ElifeNoto,Arial,sans-serif;color:#263b49;white-space:nowrap}
.bilpub-theme .ef-volume-issues{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:4px 14px}
.bilpub-theme .ef-volume-issues a{font:400 14px/1.5 ElifeNoto,Arial,sans-serif;color:#0878bc;white-space:nowrap}
.bilpub-theme .ef-volume-issues a:hover{text-decoration:underline;text-underline-offset:3px}
.bilpub-theme .ef-volumes>.plain-link{margin-top:16px}
@media(min-width:1051px){
 .el-journal-info>.right-rail{position:sticky;top:var(--ef-rail-top,24px);align-self:start}
 .el-journal-info>.main-column.ef-short-content{position:sticky;top:var(--ef-content-top,24px);align-self:start}
}
@media(max-width:900px){
 .ef-mast-inner{width:calc(100% - 64px)}
 .ef-mast h1{font-size:29px}
 .ef-mast-facts>span{min-width:130px;padding:10px 13px}
 .ef-mast-facts>a{min-width:175px;padding:15px 18px}
}
@media(max-width:720px){
 .ef-mast{min-height:0}
 .ef-mast-inner{width:calc(100% - 36px);padding:42px 0 48px}
 .ef-mast h1{font-size:27px;line-height:1.3}
 .ef-mast-facts{position:relative;right:auto;bottom:auto;flex-wrap:wrap}
 .ef-mast-facts>span{flex:1 1 0;min-width:0;padding:11px 10px}
 .ef-mast-facts>span:nth-child(2){flex-grow:1.3}
 .ef-mast-facts strong{font-size:13px}
 .ef-mast-facts small{font-size:11px}
 .ef-mast-facts>a{flex:1 0 100%;min-height:44px;padding:12px 18px}
 .bilpub-theme .ef-discover .related{max-width:380px}
}

/* Image-first announcement cards use existing journal imagery. */
.bilpub-theme .ef-news-list .news-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,220px),1fr));gap:28px 22px;margin-top:24px}
.bilpub-theme .ef-news-list .news-item{display:flex;flex-direction:column;min-width:0;padding:0;border:0}
.bilpub-theme .ef-news-list .news-item:only-child{max-width:380px}
.bilpub-theme .ef-news-list .ef-news-image{display:block;width:100%;height:190px;background:#eaf1f4;overflow:hidden}
.bilpub-theme .ef-news-list .ef-news-image img{width:100%;height:100%;object-fit:contain;object-position:center}
.bilpub-theme .ef-news-list .news-item .meta{display:flex;flex-direction:row;align-items:center;flex-wrap:wrap;gap:7px 10px;margin:15px 0 10px;font:400 12px/1.45 ElifeNoto,Arial,sans-serif;color:#6a7d87}
.bilpub-theme .ef-news-list .news-item .meta span{display:inline-block;padding:3px 7px;background:#edf5f8;color:#26607c;font-weight:700}
.bilpub-theme .ef-news-list .news-item h3{margin:0 0 10px;font-size:17px;line-height:1.42}
.bilpub-theme .ef-news-list .news-item .summary{margin:0;color:#566972;font-size:14px;line-height:1.6}
.bilpub-theme .ef-news-list .news-item .read-link{align-self:flex-start;margin-top:auto;padding-top:13px;font-size:13px;font-weight:700}

/* Give the editor profile and current issue different, complementary treatments. */
.bilpub-theme .ef-editor-card{padding:20px;background:#eef5f8;border:0;margin-bottom:30px}
.bilpub-theme .ef-editor-card h2{margin-bottom:16px}
.bilpub-theme .ef-editor-card .chief-profile{display:flex;flex-direction:column;align-items:stretch;gap:14px}
.bilpub-theme .ef-editor-card .chief-profile img{width:108px;height:108px;max-width:100%;max-height:none;object-fit:cover;object-position:center 25%;background:#0086b2;border:3px solid #fff;border-radius:50%;flex:none;align-self:center}
.bilpub-theme .ef-editor-card .chief-profile>div{min-width:0}
.bilpub-theme .ef-editor-card .chief-profile strong{font-size:14px;line-height:1.4;margin:0 0 6px}
.bilpub-theme .ef-editor-card .chief-profile p{font-size:13px;line-height:1.55}
.bilpub-theme .ef-editor-card>.plain-link{margin-top:15px}
.bilpub-theme .ef-current-issue .side-issue{display:flex;align-items:flex-start;gap:14px;padding:16px;border:1px solid #dce6eb;background:#fff}
.bilpub-theme .ef-current-issue .side-issue>img{order:2;flex:0 0 76px;width:76px;max-height:108px;object-fit:contain;object-position:top}
.bilpub-theme .ef-current-issue .side-issue>div{order:1;flex:1;min-width:0}
.bilpub-theme .ef-current-issue .side-issue strong{font-size:15px;line-height:1.4;margin:0 0 8px}
.bilpub-theme .ef-current-issue .side-issue p{font-size:13px;line-height:1.5;color:#667982}
.bilpub-theme .ef-current-issue .side-issue .plain-link{margin-top:13px}
@media(max-width:720px){
 .bilpub-theme .ef-news-list .news-grid{gap:28px}
 .bilpub-theme .ef-news-list .ef-news-image{height:210px}
}
