/* Interior atmosphere: the Balance banner is the reference. Page-owned imagery,
   data, anchors and interactive workspaces remain intact; Home never loads this. */
.site-theme:not(.home-page){--interior-width:1280px;--interior-gutter:6%;--interior-top:160px;--interior-gap:36px;--interior-surface:#102131;--interior-line:#9fbfd342;--interior-radius:10px;background:#09131f;color:#edf3f7}
.site-theme:not(.home-page) main{background:transparent}
.site-theme:not(.home-page) :is(.classes-gallery,.tools-workshop,.tierlist-content,.tierlist-method){background:transparent;box-shadow:none}
.site-theme:not(.home-page) .classes-gallery::before,.site-theme:not(.home-page) .gallery-atmosphere{display:none}
/* Full-width sections now share the same outer edge as their reading area. */
.site-theme:not(.home-page) :is(.classes-hero,.guide-hero,.tools-hero,.tierlist-hero,.profession-hero,.packs-hero){width:min(var(--interior-width),88%);max-width:var(--interior-width);margin:var(--interior-top) auto var(--interior-gap);border:1px solid var(--interior-line);border-radius:var(--interior-radius);overflow:hidden;position:relative;isolation:isolate;min-height:490px;padding:40px;background:var(--interior-surface);box-sizing:border-box}
.site-theme:not(.home-page) :is(.classes-hero,.guide-hero,.tools-hero,.tierlist-hero){display:flex;align-items:center}
.site-theme:not(.home-page) :is(.classes-hero-copy,.tools-hero-copy,.tierlist-hero-copy,.hero-inner){position:relative;z-index:2;width:100%;max-width:780px;margin:0;padding:0}
.site-theme:not(.home-page) :is(.classes-hero,.guide-hero,.tierlist-hero) > img{mask-image:none;filter:none;opacity:1}
.site-theme:not(.home-page) .guide-backdrop{opacity:1;object-position:75% 35%}
.site-theme:not(.home-page) :is(.classes-hero,.guide-hero,.tierlist-hero)::after{inset:0;background:linear-gradient(90deg,#0a1726f5 0%,#0a1726dd 35%,#0a172640 70%,#0a172610);z-index:1}
.site-theme:not(.home-page) .classes-hero::before{display:none}
.site-theme:not(.home-page) :is(.classes-hero,.tools-hero,.tierlist-hero) h1{font-size:clamp(48px,6vw,84px);line-height:1.08;margin:16px 0 24px;text-wrap:balance;overflow-wrap:anywhere}
.site-theme:not(.home-page) .guide-hero h1{font-size:clamp(42px,5vw,70px);line-height:1.08}
.site-theme:not(.home-page) :is(.breadcrumb,.tools-breadcrumb,.tierlist-breadcrumb,.guide-breadcrumb){flex-wrap:wrap;line-height:1.8;margin-bottom:26px}
.site-theme:not(.home-page) :is(.classes-subtitle,.tools-hero-subtitle,.tierlist-subtitle){font-size:clamp(24px,2.6vw,36px);line-height:1.2}
.site-theme:not(.home-page) :is(.classes-intro,.tools-hero-intro,.guide-lead){max-width:610px;font-size:16px;line-height:1.8}
.site-theme:not(.home-page) :is(.classes-gallery,.tools-workshop,.tierlist-content,.tierlist-method,.leveling-layout,.leveling-preface,.preview-note,.guide-layout,.profession-preface,.profession-facts,.profession-layout,.packs-content){width:min(var(--interior-width),88%);max-width:var(--interior-width);margin-inline:auto;padding-inline:0;box-sizing:border-box}
.site-theme:not(.home-page) .classes-gallery{margin-top:0;padding-top:12px}
.site-theme:not(.home-page) :is(.tools-workshop,.tierlist-content){padding-top:12px}
.site-theme:not(.home-page) .guide-layout{grid-template-columns:225px minmax(0,1fr)}
.site-theme:not(.home-page) .tools-hero-copy{pointer-events:auto}
.site-theme:not(.home-page) .hero-reference{inset:0;width:100%;height:100%;opacity:1;mask-image:none}
.site-theme:not(.home-page) .hero-reference img{width:100%;height:100%;object-fit:cover}
.site-theme:not(.home-page) .tools-hero::after{inset:0;background:linear-gradient(90deg,#0a1726f5,#0a1726dd 35%,#0a172640 75%);z-index:1}
/* Race portraits are kept to the right, separate from readable copy. */
.site-theme.leveling-page :is(.has-race-character,.has-skyborne-character) .classes-hero-copy{max-width:65%}
.site-theme.leveling-page .race-selection-hero .classes-hero-copy{max-width:60%}
.site-theme.leveling-page .route-hero-character{z-index:2}
/* Profession showcases stay in the header but lose the tilted overflow. */
.site-theme.profession-guide .profession-hero{grid-template-columns:minmax(0,1fr) minmax(230px,320px);gap:40px;min-height:490px}
.site-theme.profession-guide .profession-hero-scene{inset:0;width:100%;height:100%;opacity:.7;mask-image:none}
.site-theme.profession-guide .profession-hero::after{inset:0;background:linear-gradient(90deg,#0a1726f5,#0a1726cc 45%,#0a172630);z-index:-1}
.site-theme.profession-guide .profession-craft-display{transform:none;margin:0;width:100%}
.site-theme.profession-guide .profession-hero-copy{max-width:650px}
/* Already-inset editorial pages use the same width and spacing, without nesting
   another gutter inside their banners. Balance itself remains the reference. */
.site-theme:is(.news-page,.events-page,.balance-page) main{width:min(var(--interior-width),88%);max-width:var(--interior-width);margin:auto;padding:var(--interior-top) 0 70px}
.site-theme.changes-page :is(.changes-hero,.changes-catalog,.changes-details){width:min(var(--interior-width),88%);max-width:var(--interior-width)}
.site-theme.changes-page .changes-hero{padding-top:var(--interior-top);padding-bottom:var(--interior-gap)}
.site-theme:not(.home-page) :is(.news-intro-visual,.changes-banner){border:1px solid var(--interior-line);border-radius:var(--interior-radius);overflow:hidden;min-height:490px;margin-bottom:var(--interior-gap);box-sizing:border-box}
.site-theme:not(.home-page) .news-intro-visual{padding:40px;display:flex;flex-direction:column;justify-content:center}
.site-theme:not(.home-page) .news-intro-visual .news-index-heading{display:block;max-width:780px}
.site-theme:not(.home-page) .news-intro-visual .news-index-heading h1{font-size:clamp(48px,6vw,84px);line-height:1.08}
.site-theme:not(.home-page) .news-intro-visual .news-index-heading>p{margin:24px 0 0;max-width:610px}
.site-theme:not(.home-page) .changes-banner{margin-bottom:0}
/* Detail articles share the same banner surface using their existing image once.
   DOM reading order, meaningful alt text and credits are retained. */
.site-theme.news-page .news-article{display:grid;grid-template-columns:minmax(0,1fr)}
.site-theme.news-page .news-article>.news-back{grid-row:1;justify-self:start}
.site-theme.news-page .article-heading,.site-theme.news-page .article-image{grid-column:1;grid-row:2;border-radius:var(--interior-radius);overflow:hidden;margin:0 0 var(--interior-gap);min-width:0}
.site-theme.news-page .article-heading{position:relative;z-index:1;min-height:490px;max-width:none;padding:40px;border:1px solid var(--interior-line);background:linear-gradient(90deg,#0a1726f5,#0a1726dd 45%,#0a172640 85%);display:flex;flex-direction:column;justify-content:center}
.site-theme.news-page .article-heading h1{max-width:850px;font-size:clamp(36px,4.5vw,64px);line-height:1.12}
.site-theme.news-page .article-heading .news-lead{max-width:700px}
.site-theme.news-page .article-image img{width:100%;height:100%;max-height:none;object-fit:cover}
.site-theme.news-page .article-image figcaption{position:absolute;top:14px;right:14px;z-index:2;max-width:min(55%,370px);padding:6px 9px;border:1px solid #ffffff30;border-radius:5px;background:#07111bd9;color:#eef5f9;text-align:right}
.site-theme.news-page .article-image.contain{background:var(--interior-surface)}
.site-theme.news-page .article-image.contain img{object-position:right center}
.site-theme.news-page .article-layout{grid-row:3;min-width:0}
.site-theme.events-page .event-detail{display:grid;grid-template-columns:minmax(0,1fr)}
.site-theme.events-page .event-detail>header,.site-theme.events-page .event-hero{grid-column:1;grid-row:1;border-radius:var(--interior-radius);overflow:hidden;margin:0 0 var(--interior-gap);min-width:0}
.site-theme.events-page .event-detail>header{z-index:1;position:relative;max-width:none;min-height:490px;padding:40px 40px 80px;border:1px solid var(--interior-line);background:linear-gradient(90deg,#0a1726f5,#0a1726dd 45%,#0a172640);display:flex;flex-direction:column;justify-content:center;pointer-events:none}
.site-theme.events-page .event-detail>header h1{max-width:850px;font-size:clamp(36px,4.5vw,64px)}
.site-theme.events-page .event-lead{max-width:700px}
.site-theme.events-page .event-hero{position:relative;background:var(--interior-surface)}
.site-theme.events-page .event-hero img{width:100%;height:100%;max-height:none;object-fit:cover}
.site-theme.events-page .event-hero figcaption{position:absolute;z-index:2;bottom:0;left:0;right:0;padding:14px 40px;background:#09131fd9}
.site-theme.events-page .event-reading-layout{grid-row:2;min-width:0}
/* Utility pages use a compact banner to preserve the working area. */
.site-theme:not(.home-page) :is(.fm-heading,.creator-hero,.creator-application-intro,.profile-cinematic,.pending-heading){border:1px solid var(--interior-line);border-radius:var(--interior-radius);background:linear-gradient(115deg,#102131f5,#183649b8),url('/public/assets/tools/engineer-map-reference.png') center/cover;padding:32px;max-width:none;overflow:hidden}
.site-theme:not(.home-page) .packs-hero{min-height:0;background:transparent;border:0;padding:0;margin-bottom:0}
.site-theme:not(.home-page) .packs-content{padding-top:26px}
.site-theme:not(.home-page) .creator-hero{min-height:360px;display:flex;flex-direction:column;justify-content:center}
.site-theme:not(.home-page) .creator-detail-title{padding:32px;border:1px solid var(--interior-line);border-radius:var(--interior-radius);background:linear-gradient(115deg,#102131,#183649)}
@media(max-width:1000px){
 .site-theme:not(.home-page){--interior-top:180px}
 .site-theme.profession-guide .profession-hero{grid-template-columns:minmax(0,1fr);gap:28px}
 .site-theme.profession-guide .profession-craft-display{max-width:500px}
 .site-theme:not(.home-page) .guide-layout{grid-template-columns:minmax(0,1fr)}
 .site-theme:not(.home-page) .guide-sidebar{position:static}
}
@media(max-width:760px){
 .site-theme:not(.home-page){--interior-top:120px;--interior-gap:28px}
 .site-theme:not(.home-page) :is(.classes-hero,.guide-hero,.tools-hero,.tierlist-hero,.profession-hero){width:90%;min-height:0;margin-top:var(--interior-top);padding:230px 22px 28px;display:block}
 .site-theme:not(.home-page) :is(.classes-gallery,.tools-workshop,.tierlist-content,.tierlist-method,.leveling-layout,.leveling-preface,.preview-note,.guide-layout,.profession-preface,.profession-facts,.profession-layout,.packs-content){width:90%}
 .site-theme:not(.home-page) :is(.classes-hero,.guide-hero,.tierlist-hero)>img,.site-theme:not(.home-page) .guide-backdrop{height:300px;object-position:65% 35%}
 .site-theme:not(.home-page) :is(.classes-hero,.guide-hero,.tools-hero,.tierlist-hero)::after{background:linear-gradient(180deg,transparent 90px,#10213199 205px,#102131 295px)}
 .site-theme:not(.home-page) :is(.classes-hero-copy,.tierlist-hero-copy,.tools-hero-copy,.hero-inner){max-width:none}
 .site-theme:not(.home-page) :is(.classes-hero,.tools-hero,.tierlist-hero) h1{font-size:48px;line-height:1.08;overflow-wrap:anywhere}
 .site-theme:not(.home-page) .guide-hero h1{font-size:36px;overflow-wrap:anywhere}
 .site-theme:not(.home-page) :is(.classes-subtitle,.tools-hero-subtitle,.tierlist-subtitle){font-size:26px}
 .site-theme:not(.home-page) :is(.classes-intro,.guide-lead){font-size:15px}
 .site-theme:not(.home-page) :is(.breadcrumb,.guide-breadcrumb,.tools-breadcrumb,.tierlist-breadcrumb){font-size:11px;gap:8px;margin-bottom:20px}
 .site-theme:not(.home-page) .hero-reference{height:300px}
 .site-theme.leveling-page :is(.has-race-character,.has-skyborne-character,.race-selection-hero) .classes-hero-copy{max-width:none}
 .site-theme.leveling-page .route-hero-character{top:10px;bottom:auto;right:calc(50% - 105px);height:230px;width:210px}
 .site-theme.leveling-page .race-selection-hero .route-hero-character{width:280px;right:calc(50% - 140px)}
 .site-theme.profession-guide .profession-hero{padding:32px 22px;display:grid}
 .site-theme.profession-guide .profession-hero-scene{height:100%;opacity:.4}
 .site-theme:is(.news-page,.events-page,.balance-page) main{width:90%}
 .site-theme.changes-page :is(.changes-hero,.changes-catalog,.changes-details){width:90%}
 .site-theme:not(.home-page) .news-intro-visual{min-height:0;padding:230px 22px 28px}
 .site-theme:not(.home-page) .news-intro-visual .news-header-image{height:300px}
 .site-theme:not(.home-page) .news-intro-visual .news-index-heading h1{font-size:48px}
 .site-theme:not(.home-page) .news-intro-visual .news-index-heading>p{font-size:16px}
 .site-theme.news-page .article-heading,.site-theme.events-page .event-detail>header{min-height:0;padding:230px 22px 28px;background:linear-gradient(180deg,transparent 90px,#10213199 205px,#102131 295px)}
 .site-theme.events-page .event-detail>header{padding-bottom:90px}
 .site-theme.news-page .article-heading h1,.site-theme.events-page .event-detail>header h1{font-size:36px;overflow-wrap:anywhere}
 .site-theme.news-page .article-image,.site-theme.events-page .event-hero{background:var(--interior-surface)}
 .site-theme.news-page .article-image img,.site-theme.events-page .event-hero img{height:300px;object-position:65% 35%}
 .site-theme.events-page .event-hero figcaption{padding:14px 22px}
 .site-theme:not(.home-page) :is(.fm-heading,.creator-hero,.creator-application-intro,.profile-cinematic,.pending-heading){padding:22px}
 .site-theme:not(.home-page) .packs-hero{width:90%;padding:0;min-height:0}
}
/* Keep the index gradient identical to the detail banners: no visible image seam. */
.site-theme:not(.home-page) .news-intro-visual{gap:26px;box-shadow:none;background:var(--interior-surface)}
.site-theme:not(.home-page) .news-intro-visual::before{background:linear-gradient(90deg,#0a1726f5,#0a1726dd 35%,#0a172640 70%,#0a172610)}
.site-theme:not(.home-page) .hero-reference{position:absolute;left:0;top:0}
.site-theme.news-page .article-image{position:relative}
.site-theme.news-page .article-image img,.site-theme.events-page .event-hero img{position:absolute;inset:0}
.site-theme.legal-page main{width:min(var(--interior-width),88%);max-width:var(--interior-width);padding:var(--interior-top) 0 70px}
.site-theme.legal-page main h1{padding:32px;border:1px solid var(--interior-line);border-radius:var(--interior-radius);background:linear-gradient(115deg,#102131,#183649);font-size:clamp(36px,5vw,64px)}
.site-theme.legal-page main :is(p,ul,ol){max-width:78ch}
@media(max-width:760px){
 .site-theme:not(.home-page) .news-intro-visual::before{background:linear-gradient(180deg,transparent 90px,#10213199 205px,#102131 295px)}
 .site-theme.legal-page main{width:90%}
 .site-theme.legal-page main h1{padding:22px;overflow-wrap:anywhere}
}
.site-theme.profession-guide .profession-title h1{font:400 clamp(42px,5vw,70px)/1.08 var(--display);text-transform:uppercase;letter-spacing:0;text-wrap:balance}
/* Tools keep their own artwork. The hub gnome alone is mirrored; text and
   gradients remain unflipped. Never paint the generic utility art over --class-hero. */
.site-theme.tools-hub .hero-reference img{transform:scaleX(-1);object-position:center}
.site-theme:not(.home-page) :is(.calculator-heading,.route-heading,.packs-hero-inner){position:relative;isolation:isolate;overflow:hidden;border:1px solid var(--interior-line);border-radius:var(--interior-radius);background:var(--interior-surface);padding:32px}
.site-theme.talent-page .calculator-heading{margin-bottom:28px;min-height:280px;display:flex;flex-direction:column;justify-content:center}
.site-theme.talent-page .calculator-heading::before{inset:0;z-index:-1;opacity:1;background:linear-gradient(90deg,#0a1726f5,#0a1726d9 45%,#0a172635),var(--class-hero,url('/public/assets/classes/specs/warrior-arms.jpg')) right 35%/cover}
.site-theme.talent-page .calculator-heading h1{max-width:800px}
.site-theme.packs-page .packs-hero-inner{width:100%;min-height:280px;display:flex;flex-direction:column;justify-content:center;background:linear-gradient(90deg,#0a1726f5,#0a1726db 40%,#0a172630),var(--packs-hero-image,url('/public/assets/tools/addons-wheel-reference.png')) 75% center/cover}
.site-theme.routes-page .route-heading{min-height:280px;display:flex;flex-direction:column;justify-content:center;background:linear-gradient(90deg,#0a1726f5,#0a1726d9 45%,#0a172635),url('/public/assets/tools/routes/azeroth-classic.jpg') 75% center/cover}
.site-theme.routes-page .route-heading h1{font-size:clamp(42px,5vw,72px);max-width:800px}
.site-theme.routes-page .routes-main{width:min(var(--interior-width),88%);max-width:var(--interior-width);padding:var(--interior-top) 0 65px}
.site-theme.routes-page .route-breadcrumb{margin-inline:0;flex-wrap:wrap;line-height:1.8}
/* Options follow the banner in document flow; their old absolute top depended
   on the previous heading height and collided with the new shared surface. */
.site-theme.routes-page .route-layout{row-gap:24px}
.site-theme.routes-page .route-options{position:static;grid-column:1/-1;grid-row:1;justify-content:flex-end;margin:0;flex-wrap:wrap}
.site-theme.routes-page :is(.origin-panel,.destination-panel,.route-map-frame){grid-row:2}
@media(max-width:1100px){
 .site-theme.routes-page .route-options{grid-row:auto}
 .site-theme.routes-page :is(.origin-panel,.destination-panel,.route-map-frame){grid-row:auto}
}
@media(max-width:760px){
 .site-theme:not(.home-page) :is(.calculator-heading,.route-heading,.packs-hero-inner){padding:190px 22px 24px;min-height:0}
 .site-theme.talent-page .calculator-heading::before{background:linear-gradient(180deg,#10213100 65px,#102131 220px),var(--class-hero,url('/public/assets/classes/specs/warrior-arms.jpg')) 65% top/auto 260px no-repeat}
 .site-theme.packs-page .packs-hero-inner{background:linear-gradient(180deg,#10213100 65px,#102131 220px),var(--packs-hero-image,url('/public/assets/tools/addons-wheel-reference.png')) 65% top/auto 260px no-repeat,var(--interior-surface)}
 .site-theme.routes-page .route-heading{background:linear-gradient(180deg,#10213100 65px,#102131 220px),url('/public/assets/tools/routes/azeroth-classic.jpg') 65% top/auto 260px no-repeat,var(--interior-surface)}
 .site-theme.routes-page .routes-main{width:90%}
 .site-theme.routes-page .route-heading h1{font-size:40px}
 .site-theme.routes-page .route-options{justify-content:flex-start;align-items:end}
}
/* Verified Peacebloom screenshot: the whole plant stays between the copy and
   resource panel instead of enlarging the former Silverleaf bush across the page. */
.site-theme.profession-guide [data-context="herboristeria"] .profession-hero-scene{object-fit:cover;object-position:50% 60%;mask-image:linear-gradient(90deg,transparent,#000 24%);filter:none;opacity:1;inset:0 0 0 22%;width:78%;height:100%}

@media(max-width:900px){.site-theme.profession-guide [data-context="herboristeria"] .profession-hero{padding-top:250px}.site-theme.profession-guide [data-context="herboristeria"] .profession-hero-scene{inset:0;width:100%;height:340px;object-position:50% 60%;mask-image:none}.site-theme.profession-guide [data-context="herboristeria"] .profession-hero::after{background:linear-gradient(180deg,#10213100 130px,#102131bb 245px,#102131 335px)}}
/* Class art puts heads near its top edge. A centered cover crop cut foreheads;
   anchor the existing portrait at the top and show the upper torso. */
.site-theme.talent-page{--talent-banner-focus:100% 0%}
.site-theme.talent-page[data-class="guerrero"]{--talent-banner-focus:100% 8%}
.site-theme.talent-page[data-class="sacerdote"]{--talent-banner-focus:100% 2%}
.site-theme.talent-page .calculator-heading::before{background-image:linear-gradient(90deg,#0a1726f5,#0a1726d9 45%,#0a172615),var(--class-hero,url('/public/assets/classes/specs/warrior-arms.jpg'));background-size:100% 100%,cover;background-position:center,var(--talent-banner-focus);background-repeat:no-repeat}
@media(max-width:760px){
 .site-theme.talent-page .calculator-heading{padding-top:220px}
 .site-theme.talent-page .calculator-heading::before{background-image:linear-gradient(180deg,#10213100 120px,#102131 260px),var(--class-hero,url('/public/assets/classes/specs/warrior-arms.jpg'));background-size:100% 100%,auto 400px;background-position:center,right top}
}

@media(min-width:761px){.site-theme.talent-page .calculator-heading{min-height:360px}}
/* Original troll-streamer illustration, decorative rather than a real channel or
   live-status claim. Only the Forever Live directory gets this artwork. */
.site-theme.creators-page .creator-hero{position:relative;isolation:isolate;min-height:490px;background:var(--interior-surface);padding:40px;gap:0}
.site-theme.creators-page .creator-hero-image{position:absolute;inset:0;z-index:-2;display:block;width:100%;height:100%;object-fit:cover;object-position:right top}
.site-theme.creators-page .creator-hero::before{content:"";position:absolute;inset:0;z-index:-1;pointer-events:none;background:linear-gradient(90deg,#102131cc,#10213170 40%,#10213100 68%)}
.site-theme.creators-page .creator-hero h1{max-width:650px;font-size:clamp(48px,6vw,84px)}
.site-theme.creators-page .creator-hero h1 span{font-size:clamp(24px,3vw,36px)}
.site-theme.creators-page .creator-hero>p{max-width:530px;color:#d1dee6}
@media(max-width:760px){
 .site-theme.creators-page .creator-hero{min-height:0;padding:260px 22px 28px}
 .site-theme.creators-page .creator-hero-image{height:310px;object-position:85% top}
 .site-theme.creators-page .creator-hero::before{background:linear-gradient(180deg,transparent 170px,#102131aa 250px,#102131 310px)}
 .site-theme.creators-page .creator-hero h1{font-size:48px}
}

/* Clipping horizontal artwork must not create a scrolling ancestor for sticky
   reading indexes. Long desktop indexes scroll within the available viewport. */
.site-theme.classes-page{overflow-x:clip;overflow-y:visible}
@media(min-width:1001px){
 .site-theme:not(.home-page){--reading-index-top:130px}
 .site-theme:not(.home-page) :is(.guide-sidebar,.leveling-index){position:sticky;top:var(--reading-index-top);align-self:start;max-height:calc(100dvh - var(--reading-index-top) - 24px);overflow-y:auto;scrollbar-width:thin}
}
@media(min-width:901px){
 .site-theme.profession-guide .profession-index{align-self:start;max-height:calc(100dvh - 134px);overflow-y:auto;scrollbar-width:thin}
}
@media(min-width:761px) and (max-width:1100px){
 .site-theme:not(.home-page){--reading-index-top:185px}
 .site-theme.profession-guide .profession-index{max-height:calc(100dvh - 209px)}
}
