/* Townline city edition repair — shared by every /townline/<city>/ page.
   Masthead uses the existing mountain lockup on the dark ground it was drawn for.
   Does not invent artwork. Kelowna keeps its approved banner strip. */

html[data-tl-city="nelson"]{--tl-photo:url("/townline/assets/towns/nelson-hero.jpg")}
html[data-tl-city="kamloops"]{--tl-photo:url("/townline/assets/towns/kamloops-hero.jpg")}
html[data-tl-city="kelowna"]{--tl-photo:url("/townline/assets/towns/kelowna-hero.jpg")}
html[data-tl-city="vancouver"]{--tl-photo:url("/townline/assets/towns/vancouver-hero.jpg")}
html[data-tl-city="vernon"]{--tl-photo:url("/townline/assets/towns/vernon-hero.jpg")}
html[data-tl-city="penticton"]{--tl-photo:url("/townline/assets/towns/penticton-hero.jpg")}
html[data-tl-city="chilliwack"]{--tl-photo:url("/townline/assets/towns/chilliwack-hero.jpg")}
html[data-tl-city="salmon-arm"]{--tl-photo:url("/townline/assets/towns/salmon-arm-hero.jpg")}
html[data-tl-city="revelstoke"]{--tl-photo:url("/townline/assets/towns/revelstoke-hero.jpg")}
html[data-tl-city="golden"]{--tl-photo:url("/townline/assets/towns/golden-hero.jpg")}
html[data-tl-city="hope"]{--tl-photo:url("/townline/assets/towns/hope-hero.jpg")}
html[data-tl-city="merritt"]{--tl-photo:url("/townline/assets/towns/merritt-hero.jpg")}
html[data-tl-city="lake-country"]{--tl-photo:url("/townline/assets/towns/lake-country-hero.jpg")}
html[data-tl-city="armstrong"]{--tl-photo:url("/townline/assets/towns/armstrong-hero.jpg")}
html[data-tl-city="summerland"]{--tl-photo:url("/townline/assets/towns/summerland-hero.jpg")}
html[data-tl-city="peachland"]{--tl-photo:url("/townline/assets/towns/peachland-hero.jpg")}
html[data-tl-city="victoria"]{--tl-photo:url("/townline/assets/towns/victoria-hero.jpg")}

html[data-tl-city],html[data-tl-city] body{overflow-x:clip}
html[data-tl-city] .arqs-collection-top{background:#071722!important;color:#f4efe3!important;padding:6px max(16px,4vw)!important;border-bottom:1px solid rgba(217,180,93,.28)!important}
html[data-tl-city] .arqs-collection-top img{width:56px!important;height:auto!important;max-height:36px;object-fit:contain}
html[data-tl-city] .top{background:#0b1f31!important;color:#f4efe3!important;border-bottom:1px solid rgba(217,180,93,.35)!important}
html[data-tl-city] .top .nav{min-height:74px;flex-wrap:wrap;row-gap:8px;padding-top:8px;padding-bottom:8px}
html[data-tl-city] .brand{gap:10px;min-width:0}
html[data-tl-city] .brand img{height:58px;width:auto;max-width:min(220px,46vw)}
html[data-tl-city] .brand b{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
html[data-tl-city] .top .links{flex-wrap:wrap;max-width:100%;min-width:0}
html[data-tl-city] .top .links a{color:#f4efe3!important}
html[data-tl-city] .top .links a.join{color:#10231c!important;background:#e6c46e}
html[data-tl-city] .top .cityswitch{color:#f4efe3!important;border-color:rgba(244,239,227,.35);background:rgba(255,255,255,.06)}
html[data-tl-city] .top .cs-label{color:#d9c49a!important}
html[data-tl-city] .top .iconbtn{color:#f4efe3;border-color:rgba(244,239,227,.35)}
html[data-tl-city]:not([data-tl-city="kelowna"]) body::before{content:"";display:block;height:132px;background:#0b1f31 url("/townline/assets/brand/townline-banner-top.webp") center 42%/cover no-repeat}
html[data-tl-city="kelowna"] .kelowna-masthead img{display:block;width:100%;height:132px;max-height:132px;object-fit:cover;object-position:center 42%}

html[data-tl-city] .ticker{max-height:40px;overflow:hidden}
html[data-tl-city] .track{max-height:40px;overflow:hidden}
html[data-tl-city] .track ul{display:flex;flex-direction:row;flex-wrap:nowrap;white-space:nowrap;width:max-content}

html[data-tl-city]:has(#tlCityHero) .hero{min-height:0!important}
html[data-tl-city]:has(#tlCityHero) .hero .wrap{padding-top:36px}
html[data-tl-city] .hero h1{font-size:clamp(48px,7vw,92px)!important;line-height:.92}
html[data-tl-city] .hero:after{background:linear-gradient(180deg,rgba(7,23,34,.28),rgba(7,23,34,.12) 42%,rgba(7,23,34,.72))!important}
html[data-tl-city] .hero :is(h1,p,.tagline,.greet){color:#f7f3ea!important;text-shadow:0 2px 16px rgba(0,0,0,.45)}
html[data-tl-city] .hero .btn.ghost{color:#f7f3ea!important;background:rgba(8,24,32,.45)!important;border-color:rgba(247,243,234,.7)!important}
html[data-tl-city] .hero .btn.primary{color:#10231c!important}
html[data-tl-city] .hero .wrap{grid-template-columns:minmax(0,1fr) auto;align-items:end;padding-top:88px;padding-bottom:36px}
html[data-tl-city] .wx{width:220px!important;max-width:100%;padding:10px 12px!important;border-radius:18px!important;justify-self:end;background:linear-gradient(145deg,#0f6e62 0%,#14324a 70%,#8d641c)!important;color:#fffaf1!important;border:1px solid rgba(240,210,140,.5)!important;box-shadow:0 12px 28px rgba(0,0,0,.28)!important}
html[data-tl-city] .wx .temp{font-size:34px!important;line-height:1!important;margin-top:2px!important;color:#fffaf1!important}
html[data-tl-city] .wx .sym{font-size:26px!important}
html[data-tl-city] .wx :is(.lbl,.cond,.chip,small){color:#f3e6c4!important}
html[data-tl-city] .bento>.tlsp-card{grid-column:1 / -1!important}
html[data-tl-city] .tlsp-list{display:grid;gap:8px;margin:0;padding:0;list-style:none;min-width:0}
html[data-tl-city] .tlsp-list li,html[data-tl-city] .tlsp-list a{display:block;width:auto;max-width:100%;min-width:0;height:auto;writing-mode:horizontal-tb!important;white-space:normal!important;word-break:normal!important;overflow-wrap:anywhere;text-orientation:mixed!important}
html[data-tl-city] .wx .meta{display:flex;gap:12px;margin-top:8px}
html[data-tl-city] .wx .meta>div:nth-child(n+2){display:none}
html[data-tl-city] .wx .meta b{font-size:13px;color:#fff!important}
html[data-tl-city] .wx .chip{background:rgba(8,24,32,.35)!important}

html[data-tl-city] .msn-front{background:transparent;padding:0 0 12px}
html[data-tl-city] .msn-hero{position:relative;min-height:420px;width:100%;border-radius:8px;overflow:hidden}
html[data-tl-city] .stories:has(#tlCityHero){background:transparent!important;border:0!important;padding:0!important;box-shadow:none!important}
html[data-tl-city] .tl-offers{margin:28px auto;width:min(1200px,calc(100% - 32px));color:#1c140c}
html[data-tl-city] .tl-offers-note{font-size:13px;letter-spacing:0;text-transform:none;color:#f0eadc}
html[data-tl-city] footer .word,
html[data-tl-city] footer h4,
html[data-tl-city] footer .tagline,
html[data-tl-city] footer p{color:#f4f1e8!important}
html[data-tl-city] footer .fbot{display:flex;flex-wrap:wrap;gap:8px 16px;align-items:center}
html[data-tl-city] footer .fbot a{margin-left:8px}
html[data-tl-city] .arqs-collection-footer,
html[data-tl-city] .arqs-collection-footer .collection-powered,
html[data-tl-city] .arqs-collection-footer .collection-discipline{color:#f4f1e8!important}
html[data-tl-city] .tl-offer-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
html[data-tl-city] .tl-offer-grid article{background:#14262c;color:#f7f2e8;border:1px solid rgba(217,180,93,.35);border-radius:8px;padding:14px}
html[data-tl-city] .tl-offer-grid h3{font:600 18px/1.25 Georgia,serif;margin:0 0 8px;color:#f6e7c1}
html[data-tl-city] .tl-offer-grid p{margin:0 0 10px;font-size:14px;line-height:1.45}
html[data-tl-city] .tl-offer-grid a{color:#f0d292;font-weight:700;display:inline-block;margin:8px 10px 0 0}
html[data-tl-city] .tl-offer-grid img{display:block;width:100%;height:132px;object-fit:cover;border-radius:4px;margin:0 0 8px}
@media(max-width:800px){html[data-tl-city] .tl-offer-grid{grid-template-columns:1fr 1fr}html[data-tl-city] .msn-hero{min-height:280px}}
@media(max-width:520px){html[data-tl-city] .tl-offer-grid{grid-template-columns:1fr}}
html[data-tl-city] #today{background:linear-gradient(180deg,rgba(7,23,34,.5),rgba(7,23,34,.82)),var(--tl-photo) center 30%/cover;color:#f7f2e8}
html[data-tl-city] #today :is(h2,p,.more){color:#f7f2e8!important}
html[data-tl-city] #today .kicker{color:#e6c46e!important}
html[data-tl-city] .bento>.card{background:linear-gradient(165deg,rgba(10,28,36,.9),rgba(16,42,48,.84)),var(--tl-photo) center/cover!important;color:#f7f2e8!important;border-color:rgba(217,180,93,.32)!important}
html[data-tl-city] .bento>.card :is(h2,h3,p,b,small,li){color:#f7f2e8!important}
html[data-tl-city] .bento>.card .kicker,html[data-tl-city] .bento>.card a{color:#f0d292!important}
html[data-tl-city] .bento>.card .empty{background:transparent!important;color:#f7f2e8!important}
html[data-tl-city] .stories .archive-label{list-style:none;border-top:1px solid rgba(244,239,227,.2);padding-top:8px;letter-spacing:.08em;text-transform:uppercase;font-size:12px}
html[data-tl-city] .place.spot{background:#12262c!important;color:#f7f2e8!important}
html[data-tl-city] .place.spot :is(b,small,.go){color:#f7f2e8!important}
html[data-tl-city] .spotimg{height:168px;object-fit:cover}

html[data-tl-city] .tl-feature-grid{width:min(1200px,calc(100% - 32px))}
html[data-tl-city] .tl-feature-grid>*{min-width:0}
html[data-tl-city] .tl-feature-grid :is(h2,p,a,li,summary,small){writing-mode:horizontal-tb!important;text-orientation:mixed!important;word-break:normal!important;overflow-wrap:break-word!important;white-space:normal!important}
html[data-tl-city] .tl-feature-grid>.sc-network{display:flex!important;flex-direction:column;padding:0!important;background:#102e32!important;color:#f6f1e6!important}
html[data-tl-city] .tl-feature-grid>.sc-network:before{height:210px;margin:0!important;width:100%}
html[data-tl-city] .tl-feature-grid .sc-network-inner{padding:14px 16px 16px}
html[data-tl-city] .tl-feature-grid .sc-network h2{color:#f6e7c1!important;font-size:clamp(22px,2.4vw,30px)!important;margin:0 0 8px!important}
html[data-tl-city] .tl-feature-grid .sc-network :is(p,.sc-eyebrow,.sc-network-note,nav a){color:#f4e0b5!important}
html[data-tl-city] .tl-feature-grid .sc-network nav{display:flex;flex-wrap:wrap;gap:6px 12px}
html[data-tl-city] .tl-feature-grid .sc-network nav a{white-space:nowrap!important;min-height:36px}
html[data-tl-city] .tl-feature-grid>.election-feature{background:#f4efe6!important;color:#1c140c!important}
html[data-tl-city] .tl-feature-grid>.election-feature:before{background-image:var(--tl-photo)!important;height:160px}
html[data-tl-city] .tl-feature-grid>.election-feature :is(h2,p,a,small,td,th){color:#1c140c!important}

html[data-tl-city] #whats-on .wo,html[data-tl-city] #whats-on .wo-links a{background:rgba(18,38,44,.92)!important;color:#f7f2e8!important;border-color:rgba(217,180,93,.35)!important}
html[data-tl-city] #whats-on .wo small,html[data-tl-city] #whats-on .wo .go{color:#f0d292!important}

@media(max-width:1100px){
  html[data-tl-city] .hero .wrap{grid-template-columns:minmax(0,1fr)}
  html[data-tl-city] .wx{justify-self:start}
  html[data-tl-city] .top .links{flex-basis:100%}
}
@media(max-width:760px){
  html[data-tl-city] .brand img{height:48px}
  html[data-tl-city] .top .nav{padding-top:6px;padding-bottom:6px}
  html[data-tl-city] .wx{width:min(220px,100%)!important}
  html[data-tl-city] .hero{min-height:0}
  html[data-tl-city] .tl-feature-grid{grid-template-columns:minmax(0,1fr)}
  html[data-tl-city] .tl-feature-grid>.sc-network:before{height:180px}
  html[data-tl-city] .cityswitch select{max-width:10rem!important}
  html[data-tl-city]:not([data-tl-city="kelowna"]) body::before,html[data-tl-city="kelowna"] .kelowna-masthead img{height:88px}
}
@media(max-width:390px){
  html[data-tl-city] .cityswitch select{max-width:7.5rem!important}
}
html[data-tl-city] .election-table{display:block;max-width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch}
html[data-tl-city] .election-table table{min-width:36rem}
html[data-tl-city] .cal,html[data-tl-city] .calgrid,html[data-tl-city] .calgrid>*{min-width:0;max-width:100%}
html[data-tl-city] #tlCityHero,html[data-tl-city] .msn-front{max-width:100%}
