/* Shared navigation: readable labels, explicit mobile menu and quick paths. */
.site-utility{font-size:12px;letter-spacing:0;color:#655c56}
.site-utility>.container{padding-top:7px;padding-bottom:7px;align-items:center}
.site-utility a{display:inline-flex;align-items:center;min-height:30px}
.header-inner{min-height:104px;gap:26px}
.desktop-nav{gap:22px}
.desktop-nav a{font:500 14px/1.7 var(--sans);padding:12px 0}
.header-apply{font:600 13px/1.6 var(--sans);gap:10px}
.header-actions{gap:8px;padding-left:20px}
.mobile-menu-toggle{width:auto;gap:6px;padding:8px}
.mobile-menu-toggle span{font:600 12px/1.5 var(--sans)}
.mobile-quick-nav{display:none}
#menuDialog{max-height:calc(100dvh - 28px);overflow:auto;background:var(--paper);border:1px solid #d8c8b4;border-radius:16px}
#menuDialog nav{gap:0}
#menuDialog nav a{font:500 18px/1.6 var(--sans);min-height:46px;display:flex;align-items:center;padding:10px 8px;border-bottom:1px solid #e5d9ca}
#menuDialog nav a[aria-current="page"]{color:var(--wine);background:#eee4d6;border-radius:6px;font-weight:700}
#menuDialog .dialog-head{margin-bottom:16px}
#menuDialog .menu-account{font-size:13px;gap:12px 22px;margin-top:20px;padding-top:16px}
#menuDialog .menu-account a{padding:8px 0}
@media(max-width:1280px){.desktop-nav{display:none}.mobile-menu-toggle{display:inline-flex}.header-actions{border:0;padding-left:0}.header-inner{min-height:94px}}
@media(max-width:767px){
 .site-utility>.container{padding-top:3px;padding-bottom:3px}
 .site-utility .container>span{display:none}
 .site-utility .container>div{width:100%;justify-content:space-between;font-size:12px;gap:16px}
 .header-inner{min-height:82px;gap:12px}
 .brand img{width:94px;height:56px}
 .header-apply{display:none}
 .header-actions{gap:3px}
 .header-actions .icon-button{width:38px;height:44px;padding:7px}
 .header-actions .mobile-menu-toggle{width:auto;padding:7px 0 7px 5px;gap:3px}
 .header-actions .mobile-menu-toggle svg{width:22px}
 .mobile-quick-nav{display:flex;justify-content:space-between;gap:12px;border-bottom:1px solid var(--rule);padding-top:0;padding-bottom:10px}
 .mobile-quick-nav a{display:inline-flex;align-items:center;min-height:40px;font:600 13px/1.6 var(--sans);border-bottom:1px solid transparent;padding:5px 0}
 .mobile-quick-nav a[aria-current="page"]{color:var(--wine);border-color:var(--wine)}
 .site-header:after{display:none}
}
@media(max-width:359px){.brand img{width:84px}.header-inner{gap:7px}.header-actions{gap:0}.header-actions .icon-button{width:36px}.mobile-menu-toggle span{font-size:11px}.mobile-quick-nav a{font-size:12px}}

/* Sticky header stays small when reading; utility strip scrolls away. */
html{scroll-padding-top:100px}
.site-header{position:sticky;top:0;z-index:30;background:var(--ivory);border-bottom:1px solid transparent}
.header-inner{min-height:96px;transition:min-height .18s ease}
.desktop-nav a{font-size:15.5px}
.brand img{transition:width .18s ease,height .18s ease}
.site-header.is-compact{border-bottom-color:#dfd2c1;box-shadow:0 4px 16px #402a1910}
.site-header.is-compact .header-inner{min-height:64px}
.site-header.is-compact .brand img{width:88px;height:50px}
body.admin-bar .site-header{top:32px}
@media(max-width:782px){body.admin-bar .site-header{top:46px}}
@media(max-width:767px){.header-inner{min-height:82px}.site-header.is-compact .header-inner{min-height:58px}.site-header.is-compact .brand img{width:74px;height:43px}.site-header.is-compact .mobile-quick-nav{display:none}html{scroll-padding-top:80px}}
@media(max-width:600px){body.admin-bar .site-header{top:0}}
@media(prefers-reduced-motion:reduce){.header-inner,.brand img{transition:none}}

/* Following panels must clear the compact header and the WordPress toolbar. */
body{--dk-admin-bar-height:0px}body.admin-bar{--dk-admin-bar-height:32px}
.catalog-page .filter-sidebar,body.admin-bar .catalog-page .filter-sidebar{top:calc(88px + var(--dk-admin-bar-height));max-height:calc(100vh - 112px - var(--dk-admin-bar-height));max-height:calc(100svh - 112px - var(--dk-admin-bar-height))}
.publishing-preparation,body.admin-bar .publishing-preparation{top:calc(88px + var(--dk-admin-bar-height))}
@media(max-width:782px){body.admin-bar{--dk-admin-bar-height:46px}}
@media(max-width:600px){body.admin-bar{--dk-admin-bar-height:0px}}

.product-page .author-intro,body.admin-bar .product-page .author-intro{top:calc(88px + var(--dk-admin-bar-height))}
@media(min-width:951px){.publishing-preparation{max-height:calc(100svh - 112px - var(--dk-admin-bar-height));overflow-y:auto}}
@media(min-width:768px){.product-page .author-intro{max-height:calc(100svh - 112px - var(--dk-admin-bar-height));overflow-y:auto}}
