/* scm6-b1 (SCM-6 batch 1, 2026-11-26): city x service pages only (/service-area/<city>/<trade>/). Reuses hub components; sizes the parts that hold fewer items than a hub. */
html body .b1-ws .b1-copy{max-width:760px;margin:0 0 28px}
html body .b1-ws .b1-copy p{margin:0 0 14px;line-height:1.6}
@media (min-width:700px){
  html body .b1-ws .lh-grid.b1-n1:not(#_){grid-template-columns:minmax(0,440px)!important}
  html body .b1-ws .lh-grid.b1-n2:not(#_){grid-template-columns:repeat(2,minmax(0,1fr))!important;max-width:920px}
}
/* One-trade services block (b1c root-cause fix, CM QA 2026-11-26).
   The hub layout at 900+ is a 3-level subgrid chain built for three trade cards side by side:
   .cy-sv-spines has 5 shared rows (auto 1fr 1fr 1fr auto); each .cy-sv-spine spans all 5 (grid-row:span 5; grid-template-rows:subgrid);
   each .cy-sv-spine-list spans the 3 middle rows (grid-row:span 3; grid-template-rows:subgrid) and its li get min-height:0 because their height
   is meant to come from those shared rows. Turning only the spine into a flexbox (b1b) cut the chain in the middle: the list kept
   grid-template-rows:subgrid with no grid parent, so its card rows were sized from the li minimum (min-height:0 = the 12px padding),
   cards became 34px, the spine (overflow:hidden) clipped their text, the parent's rows rendered 165.6/0/0/0/0 and "All ... services" sat on the icons.
   Fix: take the single trade card out of the chain at every level - plain one-column parent, flex column spine, ordinary grid list with auto
   rows and li sized by their content. city-blocks.css also forces every .cy-sv-card to height/min-height:100% (meant for the hub's own row);
   in a flex spine that made the "All ... services" link as tall as the whole card (clipped), so it is sized by its text here. */
html body #city-services .cy-sv-spines.b1-one:not(#_){grid-template-columns:minmax(0,1fr)!important;grid-template-rows:none!important;grid-auto-rows:auto!important}
html body #city-services .cy-sv-spines.b1-one .cy-sv-spine:not(#_){display:flex!important;flex-direction:column!important;grid-row:auto!important;grid-template-rows:none!important;height:auto!important}
html body #city-services .cy-sv-spines.b1-one .cy-sv-spine-list:not(#_){grid-row:auto!important;grid-template-rows:none!important;grid-auto-rows:auto!important;flex:0 0 auto!important}
html body #city-services .cy-sv-spines.b1-one .cy-sv-spine-list>li:not(#_){min-height:auto!important}
html body #city-services .cy-sv-spines.b1-one .cy-sv-spine>a.cy-sv-card:not(#_){height:auto!important;min-height:0!important;flex:0 0 auto!important}
/* Service cards: one trade, three cards side by side on wide screens */
@media (min-width:900px){
  html body .cy-sv-spines.b1-one .cy-sv-spine-list:not(#_){display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:14px!important}
  html body .cy-sv-spines.b1-one .cy-sv-spine-list>li:not(#_){margin:0!important;min-width:0}
  html body .cy-sv-spines.b1-one .cy-sv-spine-list>li>a:not(#_){height:100%;box-sizing:border-box}
}
/* Recent jobs: 3:4 portrait ServiceTitan photos are contain-fit, never wider than 810px and never upscaled */
html body .b1-jobgrid{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,300px),380px));gap:20px;margin:22px 0 26px}
html body .b1-job{margin:0;background:#fff;border:1px solid #dfe5ee;border-radius:14px;overflow:hidden;box-shadow:0 6px 18px rgba(13,27,62,.08);display:flex;flex-direction:column;min-width:0}
html body .b1-job img{display:block;width:100%;height:auto;max-width:810px;object-fit:cover;background:#e9edf3}
html body .b1-job.b1-pt img{aspect-ratio:3/4;object-fit:contain}
html body .b1-job figcaption{padding:14px 16px 16px;min-width:0}
html body .b1-job .ot{margin:0 0 6px;font-size:12px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:#5a6a85}
html body .b1-job .cap{margin:0;font-size:15px;line-height:1.5;color:#1b2740;overflow-wrap:break-word}
/* FAQ with fewer than 6 questions: same two columns as the hub FAQ at 900+ (r2.css drops the photo column for short groups; below 900 that behaviour is kept) */
@media (min-width:900px) and (max-width:1023px){html body main #faq.b1-faq .fqw:not(#_):not(#_):not(#_){grid-template-columns:minmax(0,1fr) minmax(0,1.25fr)!important}}
@media (min-width:1024px){html body main #faq.b1-faq .fqw:not(#_):not(#_):not(#_){grid-template-columns:1fr 1.5fr!important}}
@media (min-width:900px){html body main #faq.b1-faq .fqw .fql:not(#_):not(#_):not(#_){display:flex!important}}
/* Keep exploring: these link labels are longer than the hub ones; let a pill wrap instead of widening the page at 320-340px */
html body #rel .e2-svc.b1-rel>li:not(#_){max-width:100%;min-width:0}
html body #rel .e2-svc.b1-rel>li>a:not(#_){white-space:normal!important;max-width:100%;box-sizing:border-box}
/* Call d (CM 2026-11-26): 800x600 neighborhood stills used as heroes on the 8 plumbing/electrical city pages must never paint wider than 800 CSS px or upscale (go soft) at tablet/desktop. Mobile (<=699) already stacks the photo at viewport width < 800, so it is left as-is. */
@media (min-width:700px){
  html body .hero.b1-still-hero.svc-hero picture.hbg img.hero-photo:not(#_):not(#_):not(#_){
    position:absolute!important;
    inset:auto!important;
    width:auto!important;
    height:auto!important;
    max-width:min(800px,100%)!important;
    max-height:min(600px,100%)!important;
    object-fit:contain!important;
    object-position:center center!important;
    left:50%!important;
    top:50%!important;
    right:auto!important;
    bottom:auto!important;
    transform:translate(-50%,-50%)!important;
  }
  /* Solid navy already on the section is the frame; a left scrim keeps the overlaid copy readable where it meets the photo. */
  html body .hero.b1-still-hero.svc-hero:not(#_):not(#_)::before{
    content:"";
    position:absolute;inset:0;z-index:1;pointer-events:none;
    background:linear-gradient(90deg,rgba(0,5,62,.92) 0%,rgba(0,5,62,.78) 32%,rgba(0,5,62,.4) 52%,rgba(0,5,62,.12) 70%,rgba(0,5,62,0) 100%);
  }
  html body .hero.b1-still-hero .wrap.hc:not(#_){position:relative;z-index:2;}
}
/* b1c (CM QA 2026-11-26): the site-wide 700-1159px rule (bundle-site.css) clamps every hero lead to 3 lines with an ellipsis; the city x service leads are longer, so show the full text at every width. */
html body main section.hero.ab-hero p.lead:not(#_):not(#_){-webkit-line-clamp:unset!important;line-clamp:none!important;display:block!important;overflow:visible!important;max-height:none!important;text-overflow:clip!important}
