/* Shared structure with distinct illustrated editions. */
html[data-world]{--edition-tint:#191b20b8;--edition-header:url('db-header-portal-mondkarte.webp')}
html[data-world=patsyverse]{--edition-tint:#240e16b3;--edition-header:url('db-header-patsyverse-v1.webp')}
html[data-world=alenwenwelt]{--edition-tint:#10251caa;--edition-header:url('db-header-alenwenwelt-v1.webp')}
html[data-world=musik]{--edition-tint:#101d32ad;--edition-header:url('db-header-musik-v1.webp')}
html[data-db-landing] .newspaper{background-image:linear-gradient(var(--edition-tint),var(--edition-tint)),url('darkbats-black-parchment-v1.webp')}
html:root[data-db-landing] .site-header{background-image:var(--edition-header);background-size:cover;background-position:center;border:0}
html[data-db-landing] .site-header .masthead{height:370px;padding:16px 0}
html[data-db-landing] .site-header .masthead .brand{height:302px;width:min(800px,88%)}
html[data-db-landing] .site-header::after{height:8px;bottom:-4px;box-sizing:border-box;background:linear-gradient(#997346,#3d2418 25%,#8e6036 45%,#24160f 70%,#5a3821);border-top:1px solid #b38a50;border-bottom:1px solid #1b110b;box-shadow:0 2px 4px #0009;z-index:2}
html[data-db-landing] .db-landing-nav{bottom:0;transform:translate(-50%,50%);z-index:3}
.db-landing-more:first-child .db-landing-dropdown{right:auto;left:0}
html[data-db-landing] body:not(.home) main{padding:58px 26px 35px}
html[data-db-landing] .db-portal-focus{padding-top:62px}
html[data-db-landing] .db-world-heading{margin:0 auto 28px;text-align:center}
html[data-db-landing] .db-world-heading h1{font-size:clamp(32px,4vw,54px);margin:8px 0}
html[data-db-landing] .gazette-story{color:var(--ink);background:transparent}
html[data-db-landing] .gazette-story--lead{background:#13110f}
html[data-db-landing] .gazette-story--lead:before{background:linear-gradient(90deg,#181416 5%,#181416ed 40%,#18141600 85%)}
html[data-db-landing] :is(.gazette-title,.gazette-title a,.gazette-deck){color:var(--ink)}
html[data-db-landing] :is(.gazette-deck,.article-preview){white-space:normal;line-height:1.55}
html[data-db-landing] .article-preview{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:4;overflow:hidden}
html[data-db-landing] .story-card{display:flex;flex-direction:column}
html[data-db-landing] .story-card .story-body{display:flex;flex:1;flex-direction:column}
html[data-db-landing] .story-body .read-link{margin-top:auto}
html:root[data-db-landing] .reading-layout.db-editorial{grid-template-columns:minmax(0,1fr) 300px;gap:32px;padding:0}
html[data-db-landing] .db-editorial .prose{width:100%;max-width:none;min-width:0;font-size:18px;line-height:1.7;margin:24px 0}
html[data-db-landing] .db-editorial .prose p{margin-bottom:1em!important}
html[data-db-landing] .db-editorial .prose :is(h2,h3,h4){margin:1.2em 0 .55em!important}
html:root[data-db-landing] .edition-reading-sidebar article{grid-template-columns:76px minmax(0,1fr);gap:13px}
html[data-db-landing] .edition-reading-sidebar h3{font-size:18px;margin:0;line-height:1.3}
html[data-db-landing] .edition-reading-sidebar>h2{font-size:25px}
html[data-db-landing] .db-landing-tab{background:linear-gradient(#ffffff15,transparent),linear-gradient(var(--edition-tint),var(--edition-tint)),#201b1c}
@media(max-width:1000px){html:root[data-db-landing] .reading-layout.db-editorial{display:block}.edition-reading-sidebar{display:grid;grid-template-columns:1fr 1fr;gap:16px}.edition-reading-sidebar>:is(h2,p,a){grid-column:1/-1}}
@media(max-width:740px){html[data-db-landing] .site-header .masthead{height:270px}html[data-db-landing] .site-header .masthead .brand{height:230px;width:100%}html[data-db-landing] body:not(.home) main{padding:55px 12px 25px}html[data-db-landing] .db-portal-focus{padding-top:55px}.db-landing-tab{padding-inline:10px}.db-editorial .prose{font-size:17px}}
@media(max-width:480px){html[data-db-landing] .site-header .masthead{height:235px}html[data-db-landing] .site-header .masthead .brand{height:205px}.edition-reading-sidebar{display:block}.db-landing-nav{gap:3px}.db-landing-tab{font-size:12px;padding-inline:5px;gap:3px}.db-landing-more:nth-child(odd) .db-landing-dropdown{right:auto;left:0}.db-landing-more:nth-child(even) .db-landing-dropdown{left:auto;right:0}}
html[data-db-landing] .prose audio{width:100%;min-width:0;max-width:100%}

/* Wackelcast reading-sidebar structure: full-width image, complete title, teaser, read link. */
html:root[data-db-landing] .reading-layout.db-editorial{grid-template-columns:minmax(0,3fr) minmax(290px,1fr);gap:36px;align-items:start}
html[data-db-landing] .db-reading-sidebar{padding-left:24px;align-self:start}
html[data-db-landing] .db-reading-sidebar .pw-sidebar-widget{margin-top:0}
html[data-db-landing] .db-reading-sidebar .story-card{display:block;padding:0 0 24px;background:transparent;box-shadow:none;border:0;border-bottom:1px solid var(--rule)}
html[data-db-landing] .db-reading-sidebar .story-image{display:block;margin:0 0 14px;padding:4px;border:1px solid var(--gold)}
html[data-db-landing] .db-reading-sidebar .story-image img{display:block;width:100%;aspect-ratio:3/2;object-fit:cover}
html[data-db-landing] .db-reading-sidebar .story-body{display:block;padding:0}
html[data-db-landing] .db-reading-sidebar .story-body h3{font-size:23px;line-height:1.2;margin:0 0 12px}
html[data-db-landing] .db-reading-sidebar .sidebar-excerpt{display:block;white-space:normal;font-size:15px;line-height:1.6;margin:0 0 14px}
html[data-db-landing] .db-reading-sidebar .read-link{font-size:16px}
@media(max-width:1000px){html:root[data-db-landing] .reading-layout.db-editorial{display:block}html[data-db-landing] .db-reading-sidebar{display:block;margin-top:32px;padding:25px 0 0;border-left:0;border-top:1px solid var(--rule)}html[data-db-landing] .db-reading-sidebar .pw-recent-posts{grid-template-columns:1fr 1fr}}
@media(max-width:580px){html[data-db-landing] .db-reading-sidebar .pw-recent-posts{grid-template-columns:1fr}}

.db-world-menu .db-landing-tab{border-color:#c6a472}
@media(max-width:740px){.db-landing-nav>.db-landing-more{position:static}.db-landing-nav .db-landing-dropdown{left:0!important;right:0!important;width:100%;max-width:none;box-sizing:border-box}.db-landing-nav .db-landing-tab{white-space:normal;text-align:center;line-height:1.15;min-width:0}.db-landing-nav>a,.db-landing-nav>details{min-width:0;flex:1}}
.db-track-grid{display:grid;grid-template-columns:minmax(0,1fr);gap:24px}.db-track-grid>.wp-block-group__inner-container{display:contents}.db-track{min-width:0;border-bottom:1px solid var(--rule);padding-bottom:18px}.db-editorial .prose .db-track h3{font-size:23px;margin-top:0!important}.db-track .db-youtube{margin:12px 0!important}.db-track .db-video-stage button{padding:12px;font-size:15px}
@media(max-width:600px){.db-track-grid{grid-template-columns:1fr}}

/* Edition-specific mounts and controls, shared by archive, story and sidebar. */
html:root[data-world=portal]{--frame-metal:#a69b86;--frame-light:#ddd5c3;--frame-shadow:#57534d;--frame-ground:#17191d;--control-top:#46484b;--control-bottom:#191b21;--frame-radius:3px;--accent:#d5cbb5;--gold:#a69b86;--rule:#686762;--ink:#e9e4d9;--muted:#bdb8ae}
html:root[data-world=patsyverse]{--frame-metal:#bf8d55;--frame-light:#f1cc8b;--frame-shadow:#633141;--frame-ground:#2b111b;--control-top:#752b45;--control-bottom:#2d101d;--frame-radius:10px;--accent:#ebbe83;--gold:#bf8d55;--rule:#7b4653}
html:root[data-world=alenwenwelt]{--frame-metal:#a0ab76;--frame-light:#dce1b1;--frame-shadow:#345840;--frame-ground:#10281e;--control-top:#315b43;--control-bottom:#102c20;--frame-radius:14px;--accent:#c8d4a3;--gold:#a0ab76;--rule:#55705a}
html:root[data-world=musik]{--frame-metal:#8da9c6;--frame-light:#dfedff;--frame-shadow:#344d70;--frame-ground:#101e34;--control-top:#345478;--control-bottom:#101e38;--frame-radius:3px;--accent:#bbd5f4;--gold:#8da9c6;--rule:#4e6987}
html:root[data-world] :is(.story-image,.db-destination-art,.gazette-story--news>.gazette-media){border:4px double var(--frame-metal);padding:5px;background:linear-gradient(135deg,var(--frame-shadow),var(--frame-ground) 35%,var(--frame-ground) 65%,var(--frame-shadow));border-radius:var(--frame-radius);box-shadow:inset 0 0 0 1px var(--frame-light),0 5px 12px #0006;overflow:hidden}
html:root[data-world] .story-image img{border:0;padding:0;border-radius:max(0px,calc(var(--frame-radius) - 5px))}
html:root[data-db-landing][data-world] .single-post .full-story .prose img:not(.illustrated-icon){border:4px double var(--frame-metal)!important;padding:5px!important;background:var(--frame-ground)!important;border-radius:var(--frame-radius)!important;box-shadow:inset 0 0 0 1px var(--frame-light),0 4px 10px #0005!important}
html:root[data-world] .db-youtube{border:4px double var(--frame-metal);border-radius:var(--frame-radius);background:var(--frame-ground);box-shadow:0 5px 12px #0006}
html:root[data-world] :is(.story-card,.db-destination){border-color:var(--frame-shadow);background:linear-gradient(150deg,var(--frame-ground),#090909aa);border-radius:var(--frame-radius)}
html:root[data-world] .db-reading-sidebar .story-card{background:transparent;border:0;border-bottom:1px solid var(--rule);border-radius:0}
html:root[data-world] .db-reading-sidebar .story-image{border:4px double var(--frame-metal);padding:5px}
html:root[data-world] :is(.glass,.db-landing-tab,.db-video-stage button){color:#fff1dc;border:1px solid var(--frame-metal);background:linear-gradient(180deg,var(--control-top),var(--control-bottom));box-shadow:inset 0 0 0 3px var(--frame-ground),inset 0 0 0 4px var(--frame-metal),0 4px 10px #0007;text-shadow:0 1px 2px #000;border-radius:var(--frame-radius)}
html:root[data-world] :is(.glass,.db-landing-tab):before{display:none}
html:root[data-world] :is(.glass,.db-landing-tab,.db-video-stage button):hover{filter:brightness(1.18)}
html:root[data-world] .pw-scroll-top{min-height:44px;min-width:125px;padding:10px 18px;font-size:16px;gap:8px;border-radius:var(--frame-radius)}
html:root[data-world] .pw-scroll-top span{font-size:22px;margin:0}
html:root[data-world] :is(.glass,.db-landing-tab):focus-visible{outline:2px solid var(--frame-light);outline-offset:4px}
html:root[data-world] .db-landing-dropdown{border-color:var(--frame-metal);background:var(--frame-ground)}
html:root[data-world] .db-landing-dropdown :is(a,summary):hover{background:var(--control-top)}
html:root[data-world] .db-landing-dropdown ul{border-color:var(--rule)}
html:root[data-world] .site-header::after{background:linear-gradient(var(--frame-light),var(--frame-shadow) 25%,var(--frame-metal) 45%,var(--frame-ground) 70%,var(--frame-shadow));border-color:var(--frame-metal)}
html:root[data-world] .db-destination-copy .read-link,html:root[data-world] :is(.read-link,.prose a){color:var(--accent)}
@media(max-width:600px){html:root[data-world] .pw-scroll-top{min-width:110px;min-height:42px;font-size:14px;padding:8px 13px}}

/* A consistent disclosure arrow at every nesting level; direct links have none. */
.db-landing-dropdown summary{display:flex;align-items:center;justify-content:space-between;gap:12px;list-style:none}
.db-landing-dropdown summary::-webkit-details-marker{display:none}
.db-landing-dropdown summary::after,.db-landing-tab>span[aria-hidden]{content:"";display:inline-block;width:7px;height:7px;flex:0 0 7px;border-right:2px solid currentColor;border-bottom:2px solid currentColor;transform:rotate(45deg);font-size:0;line-height:0;margin:0 2px 4px;transition:transform .18s}
.db-landing-dropdown details[open]>summary::after,.db-landing-more[open]>.db-landing-tab>span[aria-hidden]{transform:rotate(225deg);margin-bottom:0}
@media(prefers-reduced-motion:reduce){.db-landing-dropdown summary::after,.db-landing-tab>span[aria-hidden]{transition:none}}

/* Media fills the article column, with the sidebar remaining a separate column. */
html:root[data-world] .db-editorial .full-story{min-width:0}
html:root[data-world] .db-editorial .prose :is(.db-youtube,.wp-block-embed,.wp-block-video,.wp-block-gallery,.db-compact-gallery){width:100%;max-width:none;box-sizing:border-box;margin-inline:0!important}
html:root[data-world] .db-video-stage{background:radial-gradient(ellipse at 50% 40%,var(--control-top),var(--frame-ground) 80%)}

/* Center editorial pictures and use the available width at the outer frame. */
html:root[data-db-landing] body.single-post main{padding-inline:12px}
html:root[data-world] .db-editorial .db-reading-sidebar{padding-right:0;max-width:none;width:100%;min-width:0}
html:root[data-world] .db-editorial .prose .wp-block-image{float:none!important;width:100%!important;max-width:100%!important;margin-inline:auto!important;text-align:center}
html:root[data-world] .db-editorial .prose .wp-block-image>a{display:block;width:fit-content;max-width:100%;margin-inline:auto}
html:root[data-world] .db-editorial .prose .wp-block-image img{display:block;margin-inline:auto!important}
html:root[data-world] .db-editorial .prose .wp-block-image>figure{float:none!important;margin-inline:auto!important}
html:root[data-world] .db-editorial .prose :is(.wp-block-gallery,.db-compact-gallery){justify-content:center;margin-inline:auto!important}
html:root[data-world] .db-editorial .prose .wp-block-gallery .wp-block-image{width:auto!important}

/* Quiet video frame, real local poster, compact play control. */
html:root[data-world] .db-editorial .db-youtube{padding:0;border:1px solid var(--rule);border-radius:3px;box-shadow:none;background:transparent;overflow:hidden}
html:root[data-world] .db-video-stage{position:relative;display:block;aspect-ratio:16/9;min-height:0;overflow:hidden}
html:root[data-db-landing][data-world] .single-post .full-story .prose img.db-video-poster{position:absolute;inset:0;display:block;width:100%!important;height:100%!important;max-height:none!important;max-width:none!important;object-fit:cover!important;margin:0!important;padding:0!important;border:0!important;border-radius:0!important;box-shadow:none!important}
html:root[data-world] .db-video-stage button{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);display:flex;align-items:center;gap:10px;max-width:90%;padding:12px 18px;border:1px solid #ffffff66;border-radius:6px;box-shadow:0 2px 12px #0005;background:#111b;color:#fff;font:600 16px/1.3 Arial,sans-serif;text-shadow:none;white-space:nowrap}
html:root[data-world] .db-video-stage button span{display:inline;font-size:23px}
html:root[data-world] .db-video-stage button .db-video-label{font-size:15px}
html:root[data-world] .db-video-stage button:hover{background:#111e;filter:none}
html:root[data-world] .db-video-stage iframe{position:absolute;inset:0}
html:root[data-world] .db-youtube figcaption{padding:9px 12px;font:12px/1.5 Arial,sans-serif;color:var(--ink);text-align:center}
html:root[data-world] .db-youtube figcaption a{display:inline;margin-left:8px}

/* Category pennants start at the photo mount's inner edge, never behind it. */
html:root[data-world] .gazette .gazette-media[data-headline-style] .gazette-kicker{margin-left:-5px;margin-right:0;max-width:calc(100% + 5px);white-space:normal;background:var(--frame-light);color:var(--frame-ground);border-color:var(--frame-metal)}

/* Use one edition mount in recommendation cards and sidebars, never the old paper overlay. */
html:root[data-world] .story-image .pw-photo{padding:0;border:0;border-image:none;background:none;box-shadow:none;line-height:0}
html:root[data-world] .story-image .pw-photo::before,
html:root[data-world] .story-image .pw-photo::after{display:none!important;content:none!important;background:none!important;border:0!important;border-image:none!important}
html:root[data-world] :is(.pw-related,.db-reading-sidebar) .story-image{border:4px double var(--frame-metal)!important;padding:5px!important;background:linear-gradient(135deg,var(--frame-shadow),var(--frame-ground) 35%,var(--frame-ground) 65%,var(--frame-shadow));border-radius:var(--frame-radius);box-shadow:inset 0 0 0 1px var(--frame-light),0 4px 10px #0005!important}
html:root[data-world] :is(.pw-related,.db-reading-sidebar) .story-image img{display:block;width:100%;aspect-ratio:3/2;object-fit:cover;border:0!important;padding:0!important;border-radius:max(0px,calc(var(--frame-radius) - 5px))}
html:root[data-world=portal] .db-landing-more[open]>.db-landing-tab{background:linear-gradient(#626267,#24262c);color:#fff8e9;border-color:var(--frame-light);box-shadow:inset 0 0 0 3px var(--frame-ground),inset 0 0 0 4px var(--frame-metal),0 4px 12px #0009}
html:root[data-world=portal] .db-landing-dropdown{background:#1b1e23;box-shadow:0 12px 28px #000a,inset 0 0 0 3px #292c30}
html:root[data-world=portal] :is(.db-landing-tab,.db-landing-dropdown a,.db-landing-dropdown summary){color:#e8e2d5}
html:root[data-world=portal] .db-landing-tab:focus-visible{outline-color:#ded7c9}
html:root[data-world=portal] :is(.db-portal-focus h1,.prose h2,.prose h3,.widget-title,.pw-related>h2){color:#e9e4d9}

/* Separate timber finish per world; keep the surround outside the reading surface. */
html:root[data-world=portal]{--surround-finish:grayscale(.9) sepia(.12) saturate(.6) brightness(.6);--surround-edge:#817b70}
html:root[data-world=patsyverse]{--surround-finish:sepia(.45) saturate(.85) hue-rotate(322deg) brightness(.8);--surround-edge:#aa7a53}
html:root[data-world=alenwenwelt]{--surround-finish:sepia(.85) saturate(.6) hue-rotate(46deg) brightness(.73);--surround-edge:#8d9872}
html:root[data-world=musik]{--surround-finish:grayscale(1) sepia(.45) saturate(1.1) hue-rotate(165deg) brightness(.7);--surround-edge:#829bb6}
html:root[data-world] .newspaper{--world-surround:24px;position:relative;border:var(--world-surround) solid transparent;border-image:none;outline:none;background-clip:padding-box;box-shadow:0 8px 35px #000b,inset 0 0 0 1px var(--surround-edge)}
html:root[data-world] .newspaper::before{content:"";display:block;position:absolute;inset:calc(-1 * var(--world-surround));z-index:30;pointer-events:none;border:var(--world-surround) solid transparent;border-image:url('tavernen-holzrahmen-v3-opt-q80.webp') 104 80 104 80 / var(--world-surround) / 0 stretch;filter:var(--surround-finish);background:none}
html:root[data-world=portal] .site-header .masthead .brand img.brand-taverne{transform:scale(1.15,1.24);transform-origin:center}
@media(max-width:700px){html:root[data-world=portal] .site-header .masthead .brand img.brand-taverne{transform:scaleY(1.24)}}
@media(max-width:1100px){html:root[data-world] .newspaper{--world-surround:18px}}
@media(max-width:580px){html:root[data-world] .newspaper{--world-surround:10px}}
@media print{html:root[data-world] .newspaper{border:0}html:root[data-world] .newspaper::before{display:none}}
