:root[data-edition=bernstein] body{min-height:100vh;min-height:100dvh}

/* Decorative ivy overlaps the content, matching Live without reserving a gutter.
   Use one native border-image, without the former transformed scroll segments. */
:root[data-edition=bernstein] .newspaper{
 --pw-frame:40px;--pw-frame-outset:10px;
 position:relative;border:0;outline:0;box-shadow:none;
 background-clip:border-box;
}
:root[data-edition=bernstein] .newspaper::before{content:none}
:root[data-edition=bernstein] .newspaper::after{
 content:"";position:absolute;inset:0;z-index:30;pointer-events:none;
 border:var(--pw-frame) solid transparent;
 border-image:var(--pw-season-frame, url('bernstein-efeurahmen-v1.webp')) 150 / var(--pw-frame) / var(--pw-frame-outset) round;
 background:none;
}
/* Winter v2 uses the common 150px slices. Its longer, varied side artwork
   avoids the short repeating snow clusters without changing frame geometry. */
/* Keep outward leaves inside edge-to-edge browser layouts. */
@media(min-width:1301px) and (max-width:1536px){
 :root[data-edition=bernstein] .newspaper{--pw-frame-outset:0px}
}
@media(max-width:580px){
 /* The source image has a transparent outer margin: place its gold rail at
    the viewport edge, clip only the outward overhang, reserve no content space. */
 :root[data-edition=bernstein]{background:#e6d1a5 url('pergament-textur-opt-q80.webp') center top/1536px auto repeat}
 :root[data-edition=bernstein] .newspaper{border:0;background-clip:border-box;overflow-x:clip}
 :root[data-edition=bernstein] .newspaper::after{inset:0 -4px;border-image-outset:0}
}
:root[data-edition=bernstein] .site-header{
 margin-inline:calc(-1 * var(--cover-paper-inset));padding-inline:var(--cover-paper-inset);background:#e6d1a5 var(--pw-season-background, url('bernstein-herbst-kopf-v1-q80.webp')) center center/cover no-repeat;
 border:0;box-shadow:none;
}
:root[data-edition=bernstein] .site-header .utility-bar{
 margin:0;padding:0;gap:12px;align-items:flex-start;min-height:0;
}
:root[data-edition=bernstein] .site-header .project-credit{
 width:280px;height:54px;max-width:none;justify-content:center;gap:7px;padding:9px 20px;
 background:transparent var(--pw-season-utility, url('bernstein-schild-efeu-v1-q80.webp')) center/100% 130% no-repeat;
 border:0;border-radius:0;box-shadow:none;color:#45250e;text-shadow:none;
}
:root[data-edition=bernstein] .site-header .project-credit strong{display:block;max-width:none;font-size:15px;line-height:1.1;letter-spacing:0;text-align:left;white-space:nowrap}
:root[data-edition=bernstein] .site-header .utility-bar>.project-credit{max-width:none;flex-shrink:0}
:root[data-edition=bernstein] .site-header .project-credit small{display:block;font-size:8px;line-height:1.4;letter-spacing:.12em;text-align:left}
:root[data-edition=bernstein] .site-header .project-credit .credit-emblem{width:25px;height:25px;flex:0 0 25px}
:root[data-edition=bernstein] .site-header .header-controls{
 display:flex;flex-direction:row;flex-wrap:nowrap;gap:8px;align-items:center;justify-content:center;width:380px;height:54px;padding:9px 23px;
 background:transparent var(--pw-season-utility, url('bernstein-schild-efeu-v1-q80.webp')) center/100% 130% no-repeat;
 border:0;border-radius:0;box-shadow:none;
}
:root[data-edition=bernstein] .site-header .language-switcher{gap:2px;flex-shrink:0}
:root[data-edition=bernstein] .site-header .language-link{
 min-height:28px;padding:5px 6px;font-size:11px;line-height:1;border:0;border-radius:5px;
 background:transparent;box-shadow:none;color:#45250e;
}
:root[data-edition=bernstein] .site-header .language-link.is-current{background:#31533b;color:#fff6dc;box-shadow:inset 0 0 0 1px #bda565}
:root[data-edition=bernstein] .site-header .edition-control{padding:0;border:0}
:root[data-edition=bernstein] .site-header .edition-control select{
 min-height:26px;min-width:130px;padding:2px 19px 2px 6px;font:11px/1.3 Georgia,serif;
 border:1px solid #ab8743;border-radius:4px;background:#fff3d9;color:#45250e;
}
:root[data-edition=bernstein] .masthead .site-nav .nav-list a,
:root[data-edition=bernstein] .masthead .site-nav .nav-list button,
:root[data-edition=bernstein] .masthead .menu-toggle{
 border:0;border-radius:0;box-shadow:none;background:transparent url('bernstein-menue-herbst-v1-q80.webp') center/100% 200% no-repeat;
 color:#40220e;text-shadow:0 1px #fff6dc;letter-spacing:0;
}
:root[data-edition=bernstein] .masthead .site-nav .nav-list a:hover,
:root[data-edition=bernstein] .masthead .site-nav .nav-list a:focus-visible{
 background:transparent url('bernstein-menue-herbst-v1-q80.webp') center/100% 200% no-repeat;
 color:#681c0c!important;filter:brightness(1.08);box-shadow:none;
}
:root[data-edition=bernstein] .masthead .site-nav .current-menu-item>a{box-shadow:none;text-decoration:underline;text-underline-offset:4px}
:root[data-edition=bernstein] .masthead .nav-list .nav-icon{filter:drop-shadow(0 1px 1px #6a451b30)}
:root[data-edition=bernstein] .masthead .nav-list button:disabled{opacity:.88;filter:saturate(.5)}
:root[data-edition=bernstein] .site-header a:focus-visible,
:root[data-edition=bernstein] .site-header button:focus-visible{outline:2px solid #fff3bf;outline-offset:2px}
/* The lead meets the header divider, without a strip of empty parchment. */
:root[data-edition=bernstein] .home .gazette>.gazette-top{padding-top:0;margin-inline:calc(-1 * (var(--cover-paper-inset) + var(--cover-grid-inset)))}
:root[data-edition=bernstein] .home .gazette>.gazette-top>.gazette-story--lead{margin-inline:0}
:root[data-edition=bernstein] .home .gazette .gazette-lead-rule{border-top:3px double var(--rule);margin:0 0 10px;height:0}
:root[data-edition=bernstein] .single-post .reading-layout{border-top:0}
:root[data-edition=bernstein] .single-post #inhalt,
:root[data-edition=bernstein] .archive #inhalt,
:root[data-edition=bernstein] .page-template-page-folgen #inhalt,
:root[data-edition=bernstein] .page-template-page-zeitungsarchiv #inhalt{position:relative}
:root[data-edition=bernstein] .single-post #inhalt::before,
:root[data-edition=bernstein] .archive #inhalt::before,
:root[data-edition=bernstein] .page-template-page-folgen #inhalt::before,
:root[data-edition=bernstein] .page-template-page-zeitungsarchiv #inhalt::before{content:"";position:absolute;top:0;left:calc(-1 * var(--cover-paper-inset));right:calc(-1 * var(--cover-paper-inset));border-top:3px double var(--rule);pointer-events:none}
@media(min-width:741px){
 :root[data-edition=bernstein] .site-header .utility-bar{position:absolute;top:6px;left:0;right:0;z-index:10}
 :root[data-edition=bernstein] .site-header .masthead{height:365px;min-height:365px;margin:0;padding:0}
 :root[data-edition=bernstein] .site-header .masthead .brand{width:68.875%;height:368.125px;top:-10px;left:50%;transform:translateX(-50%);margin:0;z-index:1}
 :root[data-edition=bernstein] .site-header .masthead .brand img.brand-bernstein{width:100%;height:368.125px;max-height:none;object-fit:contain}
 :root[data-edition=bernstein] .masthead .site-nav .nav-list{left:0;right:0;top:57%;grid-template-columns:20% 1fr 20%;grid-template-rows:repeat(5,46px);gap:7px 0}
 :root[data-edition=bernstein] .masthead .site-nav .nav-list a,
 :root[data-edition=bernstein] .masthead .site-nav .nav-list button{height:46px;min-height:46px;padding:6px 29px;gap:8px;font:700 16px/1.15 Georgia,serif;justify-content:center;text-align:center}
 :root[data-edition=bernstein] .masthead .nav-list .nav-icon{width:24px;height:24px;flex:0 0 24px}
 :root[data-edition=bernstein] .masthead .site-nav .nav-list li:nth-child(n)>a,
 :root[data-edition=bernstein] .masthead .site-nav .nav-list li:nth-child(n)>button{justify-content:center;text-align:center}
 :root[data-edition=bernstein] .masthead .nav-list li:nth-child(1),:root[data-edition=bernstein] .masthead .nav-list li:nth-child(5){transform:translateX(66px)}
 :root[data-edition=bernstein] .masthead .nav-list li:nth-child(6),:root[data-edition=bernstein] .masthead .nav-list li:nth-child(10){transform:translateX(-66px)}
 :root[data-edition=bernstein] .masthead .nav-list li:nth-child(3){transform:translateX(-14px)}
 :root[data-edition=bernstein] .masthead .nav-list li:nth-child(8){transform:translateX(14px)}
}
@media(max-width:740px){
 :root[data-edition=bernstein] .single-post #inhalt::before,
 :root[data-edition=bernstein] .archive #inhalt::before,
 :root[data-edition=bernstein] .page-template-page-folgen #inhalt::before,
 :root[data-edition=bernstein] .page-template-page-zeitungsarchiv #inhalt::before{display:none}
 :root[data-edition=bernstein] .site-header{padding:8px var(--cover-paper-inset) 10px;background-position:center top}
 :root[data-edition=bernstein] .site-header .utility-bar{position:relative;inset:auto;margin-inline:calc(-1 * var(--cover-paper-inset));justify-content:space-between}
 :root[data-edition=bernstein] .site-header .masthead{height:auto;min-height:0;margin:0}
 :root[data-edition=bernstein] .site-header .masthead .brand{width:93.75%;max-width:900px;height:auto;aspect-ratio:auto;margin:-10px auto 0}
 :root[data-edition=bernstein] .site-header .masthead .brand img.brand-bernstein{width:100%;height:auto;max-height:362.5px;object-fit:contain}
 :root[data-edition=bernstein] .masthead .navigation-row{padding:0;margin-top:0;text-align:center}
 :root[data-edition=bernstein] .masthead .menu-toggle{min-height:46px;width:220px;margin:0 auto;color:#40220e;padding:8px 30px;font-size:18px}
 :root[data-edition=bernstein] .masthead .site-nav{border:0;padding:8px 0 0}
 :root[data-edition=bernstein] .masthead .site-nav .nav-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px 14px;max-width:690px;margin:auto;padding:0}
 :root[data-edition=bernstein] .masthead .site-nav .nav-list a,
 :root[data-edition=bernstein] .masthead .site-nav .nav-list button{width:100%;height:48px;min-height:48px;padding:7px 24px;font:700 16px/1.15 Georgia,serif;justify-content:center;white-space:normal}
}
@media(min-width:741px) and (max-width:1000px){
 :root[data-edition=bernstein] .site-header .project-credit{width:280px;padding-inline:19px}
 :root[data-edition=bernstein] .site-header .project-credit strong{font-size:15px}
 :root[data-edition=bernstein] .site-header .header-controls{width:375px;padding-inline:19px;gap:6px}
}
@media(max-width:740px){
 :root[data-edition=bernstein] .newspaper{--pw-frame:20px;--pw-frame-outset:4px}
 :root[data-edition=bernstein] .site-header{padding:4px var(--cover-paper-inset) 10px}
 :root[data-edition=bernstein] .site-header .utility-bar{gap:0;flex-direction:column;align-items:center;background:#fff2d7e8;border-bottom:1px solid #b28a4c66}
 :root[data-edition=bernstein] .site-header .project-credit{width:auto;height:24px;padding:2px 8px;gap:5px;background:none;border-radius:0}
 :root[data-edition=bernstein] .site-header .project-credit>span{display:flex;flex-direction:row;gap:5px;align-items:baseline}
 :root[data-edition=bernstein] .site-header .project-credit strong{font-size:11px}
 :root[data-edition=bernstein] .site-header .project-credit small{font-size:8px;letter-spacing:.05em}
 :root[data-edition=bernstein] .site-header .project-credit .credit-emblem{width:16px;height:16px;flex-basis:16px}
 :root[data-edition=bernstein] .site-header .header-controls{width:100%;height:34px;padding:1px 8px 3px;gap:7px;background:none}
 :root[data-edition=bernstein] .site-header .language-link{font-size:11px;padding:5px;min-height:28px}
 :root[data-edition=bernstein] .site-header .language-link svg{width:19px;height:13px}
 :root[data-edition=bernstein] .site-header .edition-control select{min-width:0;width:123px;min-height:28px;font-size:11px}
 :root[data-edition=bernstein] .site-header .masthead .brand{width:100%;margin:0 auto}
 :root[data-edition=bernstein] .site-header .masthead .brand img.brand-bernstein{max-height:none;height:auto}
 :root[data-edition=bernstein] .masthead .site-nav .nav-list{gap:6px 2px}
 :root[data-edition=bernstein] .masthead .site-nav .nav-list a,
 :root[data-edition=bernstein] .masthead .site-nav .nav-list button{font-size:13px;padding:6px 17px;gap:4px}
 :root[data-edition=bernstein] .masthead .site-nav .nav-icon{width:19px;height:19px;flex-basis:19px}
}
@media print{
 :root[data-edition=bernstein] .newspaper::after{display:none}
 :root[data-edition=bernstein] .site-header{background:none}
}


/* iPad only: full-bleed Bernstein paper without the problematic decorative layer.
   The early head class also handles iPadOS's desktop-style Macintosh user agent. */
html.pw-ipad[data-edition=bernstein] .newspaper{margin:0;max-width:none;width:100%;border:0;box-shadow:none}
html.pw-ipad[data-edition=bernstein] .newspaper::after{content:none;display:none}
/* Seasonal logos settle toward the issue seam without moving the header,
   menus or the foreground issue plaque. Shared by all four seasons. */
@media(min-width:741px){
 :root[data-edition=bernstein] .brand img.brand-bernstein{
  transform:translateY(clamp(12px,1.25vw,22px));
 }
}

/* This date cartouche belongs only to the desktop Bernstein front page. */
.pw-issue-seal{display:none}
@media(min-width:741px){
 html[data-edition=bernstein] .home:not(.pw-tools-page) .site-header{padding-bottom:28px}
 html[data-edition=bernstein] .pw-issue-seal{display:block;position:relative;height:0;z-index:31;pointer-events:none}
 .pw-issue-plaque{position:absolute;left:50%;top:0;transform:translate(-50%,-50%);width:212.5px;aspect-ratio:1100/367}
 html[data-edition=bernstein] .pw-issue-plaque{transform:translate(-50%,-50%) scale(1.15)}
 .pw-issue-plaque>img{width:100%;height:100%;display:block}
 .pw-issue-plaque>p{position:absolute;inset:27% 17% 27%;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:0;margin:0;text-align:center;color:#63230e;text-shadow:0 1px #fff6dc}
 .pw-issue-plaque>p>span{font:700 8.5px/1 Georgia,serif;letter-spacing:.16em;text-transform:uppercase}
 .pw-issue-plaque time{font:700 12.5px/1 Georgia,serif;font-variant-numeric:tabular-nums;white-space:nowrap}
 html[data-edition=bernstein] .home .gazette-story--lead{padding-top:45px}
}
@media print{.pw-issue-seal{display:none!important}}

/* Phone layout: omit only Bernstein's outer seasonal page ornament. */
@media(max-width:740px){
 :root[data-edition=bernstein] .newspaper::after{content:none;display:none}
}

/* iPad Bernstein front page: raise the seam and stories by 10px;
   enlarge the complete issue cartouche and its lettering by 20 percent. */
@media screen and (min-width:741px){
 html.pw-ipad[data-edition=bernstein] .home:not(.pw-tools-page) .site-header{padding-bottom:18px}
 html.pw-ipad[data-edition=bernstein] .home .pw-issue-plaque{width:255px}
 html.pw-ipad[data-edition=bernstein] .home .pw-issue-plaque>p>span{font-size:10.2px}
 html.pw-ipad[data-edition=bernstein] .home .pw-issue-plaque time{font-size:15px}
}

/* Match the category masthead seam on the desktop Bernstein front page. */
@media screen and (min-width:1181px) and (hover:hover) and (pointer:fine){
 html:not(.pw-ipad)[data-edition=bernstein] .home:not(.pw-tools-page) .site-header{padding-bottom:0}
}
