/* Forest green, aged gold and restrained page decoration. */
:root{--bg:#111211;--panel:#181a18;--text:#eee9dc;--muted:#bcbdb3}
html{min-height:100%}
body{min-height:100vh;min-height:100svh;display:flex;flex-direction:column;background:#111211}
body>main{flex:1 0 auto}
.site-header{flex-shrink:0;background:linear-gradient(110deg,#181f19,#101711);box-shadow:0 4px 24px #0005,inset 0 1px #bda36810}
.site-header .nav{gap:clamp(12px,1.6vw,27px)}
.site-header .brand-title{font-size:clamp(22px,2vw,34px)}
.site-footer,.live-map-page .site-footer{width:100%;max-width:none;margin:auto 0 0;display:grid;grid-template-columns:1fr auto 1fr;gap:10px 32px;align-items:center;padding:12px clamp(22px,3.5vw,64px);background:linear-gradient(110deg,#151a15,#111511);border-top:1px solid #3d3c2c;color:#989b90;font-size:11px;flex-shrink:0}
.site-footer .footer-credit{grid-column:1;line-height:1.7}
.site-footer>.studio-credit{grid-column:2;justify-self:center;text-align:center;font-size:11px}
.site-footer .studio-credit strong{color:#d9bd81}
.site-footer .footer-links{grid-column:3;justify-self:end;justify-content:flex-end;gap:12px 20px}
.site-footer .imagery-note{grid-column:1/-1;margin:0;font-size:10px;color:#91a08f}
.page-banner{position:relative;isolation:isolate;background:linear-gradient(#0c110bbc,#0c110bf2),url('hero.jpg') center 52%/cover}
.detail-panel{background:#191d17;border-color:#49432e}
.feature-bar{background:linear-gradient(135deg,#1d201b,#121411)}
.library-hub{overflow:hidden}
.detail-panel .hub-image{width:calc(100% + 56px);max-width:none;height:150px;object-fit:cover;aspect-ratio:auto;margin:-28px -28px 24px;border-bottom:1px solid #70603b}
.library-hub .button{margin-top:auto;align-self:flex-start}
.library-hub{display:flex;flex-direction:column}
.library-hub .library-number{margin:18px 0}
.story-layout{width:min(1160px,calc(100% - 44px));display:grid;grid-template-columns:minmax(0,1.6fr) minmax(250px,1fr);gap:54px;align-items:start}
.story-layout .prose{max-width:none}
.story-layout .steps{margin-top:0}
.page-aside{position:sticky;top:26px;border:1px solid #4c4c32;background:linear-gradient(145deg,#1d2219,#141912);overflow:hidden}
.page-aside img{width:100%;aspect-ratio:1.2;object-fit:cover}
.page-aside>div{padding:24px}
.page-aside h2{font-size:26px}
.page-aside p:not(.eyebrow){font-size:14px;line-height:1.8}
.page-aside .text-link{display:block;font-size:13px;margin-top:16px}
.library-tools input,.library-tools select{background:#141912;border-color:#434735}
.library-tools{scroll-margin-top:20px}
#library-results{scroll-margin-top:20px}
.feature-mod-list{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));column-gap:34px}
.feature-mod-link{display:flex;justify-content:space-between;align-items:center;gap:14px;padding:13px 5px;border-bottom:1px solid #30372b;color:#d2dac9;font-size:14px;min-width:0}
.feature-mod-link span:first-child{overflow-wrap:anywhere}
.feature-mod-link span:last-child{font-size:12px;color:#ac945e}
.feature-mod-link:hover{color:var(--bright);background:#1d24174f}
.server-enhancements{position:relative}
.server-enhancements:before{content:'';display:block;width:50px;height:2px;background:var(--gold);margin-bottom:20px}
.enhancement-list{gap:23px 40px}
.library-pagination{display:flex;justify-content:center;flex-wrap:wrap;gap:12px;margin:24px 0}
.library-page-numbers{display:flex;justify-content:center;flex-wrap:wrap;gap:6px}
.library-pagination button{min-width:35px;min-height:35px;padding:6px 10px;border-color:#45553a;font-size:12px}
.library-pagination [aria-current=page]{border-color:var(--gold);background:#2b3520;color:var(--bright)}
.wiki-iframe.is-softened{filter:brightness(.80)}
.wurmpedia-page .live-map-heading{flex-wrap:wrap}
.wurmpedia-page .live-map-heading>div{margin-right:auto}
.wiki-dim-toggle{min-height:33px;padding:6px 10px;font:11px var(--sans);text-transform:none;letter-spacing:0;border-color:#48583b}
.wiki-dim-toggle[aria-pressed=true]{background:#232b1c;color:var(--bright)}
.map-frame-caption{background:linear-gradient(115deg,#24271e,#151a13)}
@media(max-width:1250px){.site-header{gap:14px;padding-inline:25px}.site-header .brand-title{font-size:26px}.site-header .nav{gap:14px;font-size:10px}.site-footer,.live-map-page .site-footer{gap:16px 20px}.site-footer .footer-links{gap:10px 14px}}
@media(max-width:1050px){.site-footer,.live-map-page .site-footer{grid-template-columns:1fr 1fr}.site-footer .footer-credit{grid-column:1}.site-footer>.studio-credit{grid-column:2;justify-self:end}.site-footer .footer-links{grid-column:1/-1;justify-self:center;justify-content:center}.story-layout{gap:30px}.feature-mod-list{column-gap:22px}}
@media(max-width:960px){.site-header .nav{gap:0;font-size:13px;background:#0c2419}.site-header .brand-title{font-size:26px}.story-layout{grid-template-columns:1fr}.page-aside{position:static;display:grid;grid-template-columns:1fr 1fr}.page-aside img{height:100%;aspect-ratio:auto}.feature-mod-list{grid-template-columns:1fr 1fr}}
@media(max-width:600px){.site-header .brand-title{font-size:21px}.site-footer,.live-map-page .site-footer{grid-template-columns:1fr;padding:14px 20px;gap:10px;text-align:center}.site-footer .footer-credit,.site-footer>.studio-credit,.site-footer .footer-links{grid-column:1;justify-self:center}.site-footer .footer-links{gap:12px 16px}.page-aside{display:block}.page-aside img{height:auto;aspect-ratio:1.7}.feature-mod-list{grid-template-columns:1fr}.feature-mod-link{padding:13px 3px}.library-pagination{gap:8px}.library-pagination button{min-width:32px;padding:6px 8px}.story-layout{width:calc(100% - 32px)}.detail-panel .hub-image{height:135px}}

body>.imagery-note{flex:0 0 auto;width:100%;margin:0;text-align:center;padding:8px clamp(22px,3.5vw,64px);font-size:10px;line-height:1.6;color:#93998c;background:transparent}

/* The standalone viewer keeps its controls within the map frame. */
.live-map-iframe:not(.wiki-iframe){height:clamp(540px,75svh,1000px);min-height:540px}
@media(max-width:600px){.live-map-iframe:not(.wiki-iframe){height:72svh;min-height:490px}.map-standalone-link{font-size:12px}}
