/* HF17: editorial illustrations, no controls or data changed. Only light theme. */
html:root[data-theme="light"][data-vega-accent] { --hf17-crown:url(../assets/images/underground/hf17-crown-ink.svg); --hf17-arrow:url(../assets/images/underground/hf17-arrow-ink.svg); --hf17-tactics:url(../assets/images/underground/hf17-tactics-ink.svg); --hf17-ball:url(../assets/images/underground/hf17-ball-ink.svg); --hf17-city:url(../assets/images/underground/hf17-city-stencil.svg); --hf17-net:url(../assets/images/underground/hf17-goal-net.svg); }
/* Header stencils placed in empty outer areas, below existing brands. */
html:root[data-theme="light"][data-vega-accent] .site-sticky-shell>.topbar::after{background-image:url(../assets/images/underground/mast-tag.svg),var(--hf17-city),var(--hf17-city)!important;background-size:auto 140%,168px auto,136px auto!important;background-position:center,left 3% bottom,right 6% bottom!important;background-repeat:no-repeat!important;opacity:.32!important;}
/* Route-dependent artwork: reserve real title space; keep typography and old brush underneath. */
html:root[data-theme="light"][data-vega-accent] #main:is(.page,.mc173-route) :is(.page-title,.mc173-head){--hf17-art:url(../assets/images/underground/hf17-scarf-sketch.svg);--hf17-small:var(--hf17-crown);}
html:root[data-theme="light"][data-vega-accent] #main:has(.mc173-head) .mc173-head{--hf17-art:var(--hf17-ball);--hf17-small:var(--hf17-tactics);}
html:root[data-theme="light"][data-vega-accent] #main:has(.team-grid):not(:has(.hero-carousel)) .page-title{--hf17-art:url(../assets/images/underground/supporters.svg);--hf17-small:var(--hf17-crown);}
html:root[data-theme="light"][data-vega-accent] #main:has(.news-page-list) .page-title{--hf17-art:url(../assets/images/underground/hf17-scarf-sketch.svg);--hf17-small:var(--hf17-arrow);}
html:root[data-theme="light"][data-vega-accent] #main:has(.media-grid) .page-title{--hf17-art:url(../assets/images/underground/hf17-camera-sketch.svg);--hf17-small:var(--hf17-crown);}
html:root[data-theme="light"][data-vega-accent] #main:has(.history-timeline) .page-title{--hf17-art:url(../assets/images/underground/hf12-engraved-cup.svg);--hf17-small:var(--hf17-city);}
html:root[data-theme="light"][data-vega-accent] #main:has(.vega-contacts-showcase) .page-title{--hf17-art:url(../assets/images/underground/hf17-map-sketch.svg);--hf17-small:var(--hf17-arrow);}
html:root[data-theme="light"][data-vega-accent] #main:has(.vk-club-article) .page-title{--hf17-art:url(../assets/images/underground/hf17-pitch-sketch.svg);--hf17-small:var(--hf17-tactics);}
html:root[data-theme="light"][data-vega-accent] #main:has(.players-grid) .page-title{--hf17-art:url(../assets/images/underground/strike.svg);--hf17-small:var(--hf17-tactics);}
html:root[data-theme="light"][data-vega-accent] #main:has(.calendar-v2-heading) .calendar-v2-heading{background-image:url(../assets/images/underground/hf17-calendar-sketch.svg),var(--hf17-arrow);background-position:right 8px center,right 110px center;background-size:94px auto,48px auto;background-repeat:no-repeat;padding-right:166px;min-width:0;}
html:root[data-theme="light"][data-vega-accent] #main:is(.page,.mc173-route):not(:has(.vega-dash)) :is(.page-title,.mc173-head),
html:root[data-theme="light"][data-vega-accent] #main:has(.team-grid):not(:has(.hero-carousel)) .page-title{background-image:var(--hf17-art),var(--hf17-small)!important;background-position:right 16px center,right 152px center!important;background-size:128px auto,65px auto!important;background-repeat:no-repeat!important;padding-right:230px!important;min-height:112px!important;}
/* Home section headings: graphic within heading group, not over the right link. */
html:root[data-theme="light"][data-vega-accent] #main .home-match-center :is(.section-head,.section-heading)>div:first-child{background:var(--hf17-tactics) right center/62px auto no-repeat;padding-right:80px;}
html:root[data-theme="light"][data-vega-accent] #main .news-priority .section-heading>div:first-child{background:var(--hf17-crown) right center/58px auto no-repeat;padding-right:75px;}
/* Outer wall: artwork confined to the free gutters, no scrolling overlay or DOM. */
@media(min-width:1400px){
html:root[data-theme="light"][data-vega-accent] body:has(#main){--hf17-left:var(--hf17-city);--hf17-right:var(--hf17-net);--hf17-third:var(--hf17-crown);--hf17-fourth:var(--hf17-ball);--hf17-gutter:clamp(75px,calc((100vw - 1220px)/2),235px);background-image:var(--hf17-left),var(--hf17-right),var(--hf17-third),var(--hf17-fourth),var(--concrete)!important;background-repeat:no-repeat,no-repeat,no-repeat,no-repeat,repeat!important;background-size:var(--hf17-gutter) auto,var(--hf17-gutter) auto,calc(var(--hf17-gutter)*.63) auto,var(--hf17-gutter) auto,800px auto!important;background-position:calc(50% - 596px - var(--hf17-gutter)/2) 385px,calc(50% + 596px + var(--hf17-gutter)/2) 630px,calc(50% - 596px - var(--hf17-gutter)/2) 765px,calc(50% + 596px + var(--hf17-gutter)/2) 1020px,center top!important;}
html:root[data-theme="light"][data-vega-accent] body:has(#main .mc173-head){--hf17-left:url(../assets/images/underground/hf12-engraved-cup.svg);--hf17-right:var(--hf17-net);--hf17-third:var(--hf17-city);--hf17-fourth:var(--hf17-tactics);}
html:root[data-theme="light"][data-vega-accent] body:has(#main .team-grid):not(:has(#main .hero-carousel)){--hf17-left:url(../assets/images/underground/hf17-scarf-sketch.svg);--hf17-right:url(../assets/images/underground/strike.svg);--hf17-third:var(--hf17-crown);--hf17-fourth:var(--hf17-city);}
html:root[data-theme="light"][data-vega-accent] body:has(#main .media-grid){--hf17-left:url(../assets/images/underground/hf17-camera-sketch.svg);--hf17-right:url(../assets/images/underground/supporters.svg);--hf17-third:var(--hf17-tactics);}
html:root[data-theme="light"][data-vega-accent] body:has(#main .news-page-list){--hf17-left:var(--hf17-city);--hf17-right:url(../assets/images/underground/hf17-scarf-sketch.svg);--hf17-third:var(--hf17-arrow);}
html:root[data-theme="light"][data-vega-accent] body:has(#main .calendar-page){--hf17-left:url(../assets/images/underground/hf17-calendar-sketch.svg);--hf17-right:url(../assets/images/underground/hf17-pitch-sketch.svg);}
html:root[data-theme="light"][data-vega-accent] body:has(#main .vega-contacts-showcase){--hf17-left:url(../assets/images/underground/hf17-map-sketch.svg);--hf17-right:var(--hf17-city);}
}
@media(max-width:760px){
html:root[data-theme="light"][data-vega-accent] .site-sticky-shell>.topbar::after{background-image:url(../assets/images/underground/mast-tag.svg)!important;background-size:auto 140%!important;background-position:center!important;}
html:root[data-theme="light"][data-vega-accent] #main:is(.page,.mc173-route):not(:has(.vega-dash)) :is(.page-title,.mc173-head),html:root[data-theme="light"][data-vega-accent] #main:has(.team-grid):not(:has(.hero-carousel)) .page-title{background-image:var(--hf17-art)!important;background-size:66px auto!important;background-position:right 2px center!important;padding-right:76px!important;min-height:74px!important;}
html:root[data-theme="light"][data-vega-accent] #main:has(.calendar-v2-heading) .calendar-v2-heading{background-image:none;padding-right:0;}
html:root[data-theme="light"][data-vega-accent] #main .home-match-center :is(.section-head,.section-heading)>div:first-child,html:root[data-theme="light"][data-vega-accent] #main .news-priority .section-heading>div:first-child{background-size:30px auto;padding-right:36px;}
}
@media(max-width:360px){html:root[data-theme="light"][data-vega-accent] #main:is(.page,.mc173-route):not(:has(.vega-dash)) :is(.page-title,.mc173-head),html:root[data-theme="light"][data-vega-accent] #main:has(.team-grid):not(:has(.hero-carousel)) .page-title{background-image:none!important;padding-right:0!important;min-height:0!important;}}

/* Additional ink fragments in the wall; footer ornaments stay behind existing contrast panels. */
html:root[data-theme="light"][data-vega-accent] #app>footer::after{background-image:url(../assets/images/underground/mast-tag.svg),var(--wall-spray),var(--hf17-city),var(--hf17-crown)!important;background-size:min(58%,520px) auto,80% 100%,158px auto,76px auto!important;background-position:88% 88%,left bottom,right 1% bottom,left 1% bottom!important;background-repeat:no-repeat!important;}
@media(min-width:1400px){html:root[data-theme="light"][data-vega-accent] body:has(#main){background-image:var(--hf17-left),var(--hf17-right),var(--hf17-third),var(--hf17-fourth),url(../assets/images/underground/hf17-wall-ink.svg),url(../assets/images/underground/hf17-wall-ink.svg),var(--concrete)!important;background-repeat:no-repeat,no-repeat,no-repeat,no-repeat,no-repeat,no-repeat,repeat!important;background-size:var(--hf17-gutter) auto,var(--hf17-gutter) auto,calc(var(--hf17-gutter)*.63) auto,var(--hf17-gutter) auto,var(--hf17-gutter) auto,var(--hf17-gutter) auto,800px auto!important;background-position:calc(50% - 596px - var(--hf17-gutter)/2) 385px,calc(50% + 596px + var(--hf17-gutter)/2) 630px,calc(50% - 596px - var(--hf17-gutter)/2) 765px,calc(50% + 596px + var(--hf17-gutter)/2) 1020px,calc(50% - 596px - var(--hf17-gutter)/2) 370px,calc(50% + 596px + var(--hf17-gutter)/2) 600px,center top!important;}}
@media (min-width:761px) and (max-width:1000px){html:root[data-theme="light"][data-vega-accent] #main:is(.page,.mc173-route):not(:has(.vega-dash)) :is(.page-title,.mc173-head),html:root[data-theme="light"][data-vega-accent] #main:has(.team-grid):not(:has(.hero-carousel)) .page-title{background-size:90px auto,45px auto!important;background-position:right 8px center,right 106px center!important;padding-right:160px!important;min-height:90px!important;}}
@media(max-width:760px){html:root[data-theme="light"][data-vega-accent] #app>footer::after{background-image:url(../assets/images/underground/mast-tag.svg),var(--wall-spray)!important;background-size:95% auto,100% 100%!important;background-position:center bottom,left bottom!important;}}
