/* IMPERIAL | unified logo-matched stone, no tiling */
:root{--imperial-stone:#0a0a0a;--imperial-header-glass:rgba(8,8,8,.82)}
/* One unique high-resolution stone image anchored once at the top, never wallpaper. */
html{background-color:#090a0a!important;background-image:url('./imperial-monolith-desktop-3840.webp')!important;background-position:center top!important;background-repeat:no-repeat!important;background-size:100% auto!important;background-attachment:scroll!important}
body{background-color:transparent!important;background-image:none!important;background-attachment:initial!important}
body::before{content:none!important;display:none!important}
.site-header,.imperial-header{background:var(--imperial-header-glass)!important;background-image:none!important;-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px)}
.site-header .header-content,.imperial-header .header-inner{min-height:99px}
.site-header .brand,.imperial-header .brand{min-width:0;max-width:none!important;gap:0}
.site-header .brand>span,.imperial-header .brand>.brand-type{display:none!important}
.site-header .brand img.brand-emblem,.imperial-header .brand>img{display:block;width:213px!important;height:96px!important;max-width:none!important;max-height:none!important;object-fit:contain;object-position:left center;opacity:1;border:0;border-radius:0;box-shadow:none;filter:drop-shadow(0 2px 3px rgba(0,0,0,.42))!important;-webkit-mask-image:none!important;mask-image:none!important}
.hero .hero-wordmark{display:block;width:min(100%,820px)!important;height:auto!important;object-fit:contain;mix-blend-mode:normal!important;-webkit-mask-image:none!important;mask-image:none!important;filter:drop-shadow(0 5px 12px #0009)!important}
.product-copy{background:linear-gradient(110deg,rgba(6,6,6,.95),rgba(8,7,6,.9))!important}
.detail-frame,.doc-banner{background:linear-gradient(125deg,rgba(8,8,8,.96),rgba(13,10,9,.95))!important}
@media(max-width:899px){.site-header .header-content,.imperial-header .header-inner{min-height:76px;padding-top:4px;padding-bottom:4px}.site-header .brand img.brand-emblem,.imperial-header .brand>img{width:165px!important;height:74px!important}.hero .hero-wordmark{width:100%!important}}
@media(max-width:599px){.site-header .header-content,.imperial-header .header-inner{min-height:69px}.site-header .brand img.brand-emblem,.imperial-header .brand>img{width:145px!important;height:66px!important}}
@media(prefers-reduced-transparency:reduce){.site-header,.imperial-header{background:rgba(8,8,8,.95)!important;-webkit-backdrop-filter:none;backdrop-filter:none}}

/* Article, glossary and encyclopedia: the same background and approved logo. */
.header.header{background:var(--imperial-header-glass)!important;background-image:none!important;-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px)}
.header.header .identity,.header.header .brand{display:flex;align-items:center;min-width:0;max-width:none!important;gap:0}
.header.header .identity>span,.header.header .brand>span{display:none!important}
.header.header .identity img,.header.header .brand>img{display:block;width:213px!important;height:96px!important;min-width:0!important;max-width:none!important;max-height:none!important;object-fit:contain;object-position:left center;filter:drop-shadow(0 2px 3px #0008)!important;border:none!important;background:none!important}
.header.header .header-inner,.header.header .headin{min-height:99px}
@media(max-width:899px){
 .header.header .identity img,.header.header .brand>img{width:165px!important;height:74px!important}
 .header.header .header-inner,.header.header .headin{min-height:76px}
}
@media(max-width:599px){
 .header.header .identity img,.header.header .brand>img{width:145px!important;height:66px!important}
 .header.header .header-inner,.header.header .headin{min-height:69px}
}

/* Article mobile headers: retain every link, no clipped navigation or off-screen labels. */
@media(max-width:599px){
 .header.header .header-inner,.header.header .headin{
  display:flex!important;flex-wrap:wrap!important;align-items:center!important;
  justify-content:center!important;row-gap:3px!important;min-height:0!important;
  padding:6px 12px 10px!important;
 }
 .header.header .identity,.header.header .brand{
  flex:0 0 100%!important;justify-content:center!important;min-width:0!important
 }
 .header.header .identity img,.header.header .brand>img{
  width:174px!important;height:79px!important;object-position:center!important
 }
 .header.header .nav,.header.header .headnav{
  display:flex!important;flex:0 0 100%!important;max-width:100%!important;
  width:100%!important;justify-content:center!important;align-items:center!important;
  flex-wrap:wrap!important;gap:4px 16px!important;margin:0!important;
  overflow:visible!important
 }
 .header.header .nav a,.header.header .headnav a{
  display:inline-block!important;max-width:100%!important;
  white-space:normal!important;line-height:1.3!important;
  font-size:12px!important;padding:5px 1px!important
 }
}

/* Quiet, continuous body: only the page root carries the stone image. */
body{background-color:transparent!important;background-image:none!important;background-attachment:initial!important}
body::before,body::after{content:none!important;display:none!important}
.site-header,.imperial-header,.header.header{background-image:none!important;background-color:rgba(8,8,8,.87)!important}
#directions,#featured,#collection,#journal,.directions,.featured,.archive,.journal{background-image:none!important}
#cover,.imperial-intro{background-image:none!important}
#craft,.craft,#contacts,.final-invite{background-image:none!important}
/* All article backgrounds continue on dark neutral panels, not on reused stone tiles. */
@media(max-width:700px){
 html{background-image:url('./imperial-monolith-mobile-1440.webp')!important;
      background-size:100% auto!important;background-position:center top!important;
      background-repeat:no-repeat!important;background-attachment:scroll!important}
}

/* Background audit v2: no inherited tiled stone inside any content panel.
   One actual stone asset is painted only by html. Panels use matte glazing. */
.documents,.article-dialog{
 background-color:rgba(8,8,8,.97)!important;
 background-image:none!important;
 background-repeat:no-repeat!important;
}
.archive-item:not([data-concept="true"]) .archive-photo,
#collection .archive-item:not([data-concept="true"]) .archive-photo{
 background-color:#141311!important;
 background-image:radial-gradient(ellipse at 48% 46%,#24211d 0%,#121110 73%,#0b0b0a 100%)!important;
 background-repeat:no-repeat!important;
 background-size:cover!important;
}
.feature-tile .feature-image,
#featured .feature-image{
 background-image:radial-gradient(ellipse at 50% 48%,#25221e 0%,#0b0b0a 80%)!important;
 background-repeat:no-repeat!important;
}
.hero,.craft,.final-invite,.site-header,.imperial-header,.header.header{
 background-image:none!important;
}
/* Avoid hard corners and second marble panels on full-page article views. */
.article-dialog{box-shadow:0 30px 75px #000e!important}

/* Detach the invisible former marble pseudo-layer too, not only its content. */
html body::before,html body::after{
 content:none!important;
 display:none!important;
 background:none!important;
 background-image:none!important;
}

/* V3 site-wide editorial navigation: only approved corrected icon-set artwork. */
.header.header .nav a,.header.header .headnav a{
 display:inline-flex!important;align-items:center!important;justify-content:center;
 gap:7px!important;text-decoration:none}
.header.header .nav a::before,.header.header .headnav a::before{
 content:"";width:20px;height:20px;flex:0 0 20px;display:inline-block;
 background-position:center;background-repeat:no-repeat;background-size:contain;
 background-image:url('./icons-transparent/icon-gallery.webp')}
.header.header .nav a[href*="index.html#collection"]::before,
.header.header .headnav a[href*="index.html#collection"]::before{background-image:url('./icons-transparent/icon-catalog.webp')}
.header.header .nav a[href*="index.html#craft"]::before,
.header.header .headnav a[href*="index.html#craft"]::before{background-image:url('./icons-transparent/icon-about.webp')}
.header.header .nav a[href*="encyclopedia.html"]::before,
.header.header .headnav a[href*="encyclopedia.html"]::before{background-image:url('./icons-transparent/icon-journal.webp')}
.header.header .headnav a[href*="obrazy-naslediya.html"]::before{background-image:url('./icons-transparent/icon-gallery.webp')}
@media(max-width:599px){
 .header.header .nav a::before,.header.header .headnav a::before{height:17px;width:17px;flex-basis:17px}
 .header.header .nav a,.header.header .headnav a{gap:4px!important}
}
