/* Owner-approved immersive municipal scrolling; no local data or routing changes. */
@media screen {
 body.representative-lookup.hub-ready,body.immersive-bristol-hub{isolation:isolate;position:relative;min-height:100vh}
 body.representative-lookup.hub-ready::before,body.immersive-bristol-hub::before{content:"";position:fixed;inset:0;z-index:-1;pointer-events:none;background:linear-gradient(#032d3338,#032d3366),var(--municipal-scene,url('/connecticut-universal-immersive-desktop.webp')) center/cover no-repeat}
 body.representative-lookup.hub-ready:has(.bristol-clock),body.immersive-bristol-hub{--municipal-scene:url('/bristol-immersive-desktop.webp')}
 body.representative-lookup.hub-ready > header,body.immersive-bristol-hub #hubScroll > header{position:sticky;top:0;z-index:20;background:#032329;border-bottom:1px solid #ba9c50;box-shadow:0 3px 10px #0005}
 html:has(body.representative-lookup.hub-ready),html:has(body.immersive-bristol-hub){scroll-padding-top:6rem}
 body.immersive-bristol-hub #hubScroll{scroll-padding-top:6rem}
 body.representative-lookup.hub-ready main.finder-page{background:transparent}
}
@media screen and (max-width:700px){
 body.representative-lookup.hub-ready:has(.bristol-clock),body.immersive-bristol-hub{--municipal-scene:url('/bristol-immersive-mobile.webp')}
}
@media screen and (prefers-reduced-motion:reduce){
 body.representative-lookup.hub-ready::before,body.immersive-bristol-hub::before{position:absolute;bottom:auto;height:100vh}
}

@media screen {
 body.representative-lookup.hub-ready[data-immersive-town="wolcott"]{--municipal-scene:url('/wolcott-immersive-desktop.webp')}
 body.representative-lookup.hub-ready[data-immersive-town="new-britain"]{--municipal-scene:url('/new-britain-immersive-desktop.webp')}
}
@media screen and (max-width:700px){
 body.representative-lookup.hub-ready:not(:has(.bristol-clock)){--municipal-scene:url('/connecticut-universal-immersive-mobile.webp')}
 body.representative-lookup.hub-ready[data-immersive-town="wolcott"]{--municipal-scene:url('/wolcott-immersive-mobile.webp')}
 body.representative-lookup.hub-ready[data-immersive-town="new-britain"]{--municipal-scene:url('/new-britain-immersive-mobile.webp')}
}

/* Let stationary artwork serve as the hero; retain original assets and live controls. */
@media screen {
 body.representative-lookup.hub-ready main.finder-page > .results-hero,
 body.immersive-bristol-hub #hubScroll .hero {
   background:transparent;box-shadow:none;border-color:transparent;
   text-shadow:0 1px 4px #032329,0 2px 8px #032329;
 }
 body.representative-lookup.hub-ready main.finder-page > .results-hero::before,
 body.representative-lookup.hub-ready main.finder-page > .results-hero::after,
 body.immersive-bristol-hub #hubScroll .hero::before,
 body.immersive-bristol-hub #hubScroll .hero::after {background-image:none}
 body.representative-lookup.hub-ready .results-hero h1,
 body.representative-lookup.hub-ready .results-hero #resultScope,
 body.immersive-bristol-hub .hero h1 {text-shadow:0 2px 5px #032329,0 3px 12px #032329}
}

/* Compact shared service navigation: one framed strip, not separate cards. */
@media screen {
 body.town-front-ready .results-hero .guide-topics,
 body.immersive-bristol-hub .hero .hub-services {
   display:flex;flex-wrap:wrap;align-items:stretch;gap:0;
   width:fit-content;max-width:100%;padding:.15rem .35rem;
   background:linear-gradient(110deg,#062d32f2,#123e42ed);
   border:1px solid #b99a60;border-radius:6px;
   box-shadow:0 2px 6px #001a2038;
 }
 body.town-front-ready .results-hero .guide-topics .guide-tile,
 body.immersive-bristol-hub .hero .hub-services a {
   display:flex;flex-direction:row;align-items:center;justify-content:center;
   gap:.35rem;min-height:44px;min-width:0;padding:.4rem .65rem;
   background:transparent;border:0;border-radius:0;box-shadow:none;
   color:#fff0d1;font:600 .85rem/1.2 system-ui,sans-serif;
   text-align:center;text-decoration:none;overflow-wrap:normal;
 }
 body.town-front-ready .results-hero .guide-topics .guide-tile + .guide-tile,
 body.immersive-bristol-hub .hero .hub-services a + a {border-left:1px solid #b99a6055}
 body.town-front-ready .results-hero .guide-topics .guide-icon {width:1.2rem;height:1.2rem;flex:none}
 body.immersive-bristol-hub .hero .hub-services .pub-icon {--size:1.2rem;flex:none}
 body.town-front-ready .results-hero .guide-topics a:hover,
 body.immersive-bristol-hub .hero .hub-services a:hover {background:#ffffff0d;color:#ffda89}
 body.town-front-ready .results-hero .guide-topics a:focus-visible,
 body.immersive-bristol-hub .hero .hub-services a:focus-visible {outline:2px solid #ffda89;outline-offset:-3px}
}
@media screen and (max-width:700px) {
 body.town-front-ready .results-hero .guide-topics {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));width:100%;padding:.1rem .25rem}
 body.town-front-ready .results-hero .guide-topics .guide-tile {flex-direction:row;grid-column:auto;gap:.25rem;padding:.35rem .2rem;font-size:.76rem}
 body.town-front-ready .results-hero .guide-topics .guide-tile:nth-child(3n+1){border-left:0}
 body.town-front-ready .results-hero .guide-topics .guide-tile:nth-child(n+4){border-top:1px solid #b99a6055}
 body.town-front-ready .results-hero .guide-topics .guide-tile:last-child{grid-column:1/-1;border-left:0}
 body.immersive-bristol-hub .hero .hub-tools{flex-wrap:wrap;align-items:center;justify-content:flex-start}
 body.immersive-bristol-hub .hero .hub-services{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));width:100%;flex:1 1 100%}
 body.immersive-bristol-hub .hero .hub-services a{padding:.35rem .15rem;font-size:.82rem}
}

/* Editorial civic directory, distinct from generic navigation buttons. */
@media screen {
.civic-essentials{box-sizing:border-box;width:min(100%,35rem);margin:.8rem 0 .45rem;padding:.65rem .8rem .45rem;background:linear-gradient(110deg,#062e33f5,#123b3ff5);border-block:3px double #c4a66d;color:#f5e7c8;text-align:center;text-shadow:none}
.civic-essentials .essentials-title{display:flex;align-items:center;gap:.65rem;margin:0 0 .4rem;color:#efd29a;font:700 clamp(1.05rem,2vw,1.35rem)/1.2 Georgia,serif;letter-spacing:.045em}
.essentials-title::before,.essentials-title::after{content:"";flex:1;height:1px;background:#b99a60}
body.immersive-bristol-hub .hero .civic-essentials .essentials-services,.civic-essentials .essentials-services{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));width:100%;padding:0;gap:0;border:0;background:none;box-shadow:none}
body.immersive-bristol-hub .hero .civic-essentials .essential-link,.civic-essentials .essential-link{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:.25rem;min-height:70px;padding:.3rem .2rem;color:#fff1d4;background:none;border:0;border-radius:0;font:700 clamp(.8rem,1.5vw,1rem)/1.2 Georgia,serif;text-decoration:none}
body.immersive-bristol-hub .hero .civic-essentials .essential-link+.essential-link,.civic-essentials .essential-link+.essential-link{border-left:1px solid #b99a6066}
.essential-emblem{display:block;width:2.6rem;height:2.6rem;border:3px double #c4a66d;border-radius:50%;background-position:center;background-repeat:no-repeat;background-size:72%;box-sizing:border-box}
.essential-link:hover .essential-emblem{background-color:#ffffff12}
.essential-link:focus-visible,.essentials-secondary a:focus-visible{outline:2px solid #ffda89;outline-offset:2px}
.civic-essentials .essentials-note{margin:.35rem 0 0;padding-top:.35rem;border-top:1px solid #b99a6066;color:#e6cfa6;font:italic .8rem/1.3 Georgia,serif}
.essentials-secondary{display:flex;flex-wrap:wrap;gap:.25rem 1rem;margin:.35rem 0}
.essentials-secondary a{color:#fff1d4;font:600 .85rem/1.3 Georgia,serif;min-height:44px;display:flex;align-items:center;text-decoration:underline;text-underline-offset:4px}
body.immersive-bristol-hub .hero .hub-tools{flex-wrap:wrap;align-items:center}
body.immersive-bristol-hub .hero .civic-essentials{margin:0;min-width:0}
.essential-link[data-service="voting"] .essential-emblem{background-image:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2032%2032%22%20fill%3D%22none%22%20stroke%3D%22%23efd29a%22%20stroke-width%3D%221.5%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M5%2013h22v15H5zM9%2013l3-5h8l3%205M12%2019l3%203%206-7%22%2F%3E%3C%2Fsvg%3E")}
.essential-link[data-service="dmv"] .essential-emblem{background-image:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2032%2032%22%20fill%3D%22none%22%20stroke%3D%22%23efd29a%22%20stroke-width%3D%221.5%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M5%2019l3-8h16l3%208v7H5zM8%2019h16M8%2026v3m16-3v3M9%2022h2m10%200h2%22%2F%3E%3C%2Fsvg%3E")}
.essential-link[data-service="emissions"] .essential-emblem{background-image:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2032%2032%22%20fill%3D%22none%22%20stroke%3D%22%23efd29a%22%20stroke-width%3D%221.5%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M8%2026C4%2013%2014%205%2026%205c0%2013-7%2023-18%2021zm0%200L22%2011M13%2021v-7m0%207h7%22%2F%3E%3C%2Fsvg%3E")}
}
@media screen and (max-width:700px){.civic-essentials{width:100%;padding:.45rem .4rem}.essential-emblem{width:2.2rem;height:2.2rem}.essentials-secondary{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 .5rem}.essentials-secondary a{font-size:.8rem}body.immersive-bristol-hub .hero .civic-essentials{flex:1 1 100%}}

/* Municipal leadership: compact editorial portrait row, no forced equal-height columns. */
@media screen {
.town-front-ready .guide-panels{align-items:start}
.town-front-ready #guide-leaders .local-cards{grid-auto-flow:row;grid-template-columns:repeat(2,minmax(0,1fr));flex:none;gap:.55rem}
.town-front-ready #guide-leaders .guide-lead{grid-column:1/-1;display:grid;grid-template-columns:clamp(76px,12vw,112px) minmax(0,1fr);grid-template-rows:auto auto auto;align-items:center;justify-content:start;column-gap:.85rem;row-gap:.25rem;text-align:left;padding:.65rem;min-height:0}
.town-front-ready #guide-leaders .guide-lead img,.town-front-ready #guide-leaders .guide-lead .guide-icon{grid-column:1;grid-row:1/4;width:100%;height:clamp(92px,14vw,132px);object-fit:contain;object-position:center;margin:0;border-radius:5px;background-color:#082d33}
.town-front-ready #guide-leaders .guide-lead .card-title,.town-front-ready #guide-leaders .guide-lead .card-detail,.town-front-ready #guide-leaders .guide-lead .guide-action{grid-column:2;min-width:0;overflow-wrap:anywhere}
.town-front-ready #guide-leaders .guide-lead .card-detail{font-size:1rem}
.town-front-ready #guide-leaders .guide-lead .guide-action{justify-self:start;margin:.15rem 0 0}
.town-front-ready #guide-leaders .local-cards .guide-card:not(.guide-lead){min-height:0;justify-content:center;padding:.5rem .3rem}
.town-front-ready #guide-leaders .local-cards .guide-card:not(.guide-lead) .guide-icon{width:1.8rem;height:1.8rem;margin:0}
.town-front-ready #guide-leaders .local-cards .guide-card:not(.guide-lead):last-child:nth-child(2){grid-column:1/-1}
}
@media screen and (max-width:600px){
.town-front-ready #guide-leaders .guide-lead{grid-template-columns:82px minmax(0,1fr);column-gap:.65rem;padding:.5rem}
.town-front-ready #guide-leaders .guide-lead img,.town-front-ready #guide-leaders .guide-lead .guide-icon{height:104px}
.town-front-ready #guide-leaders .guide-lead .card-detail{font-size:.92rem}
}
