/* =====================================================================
 * Service Template layout fixes (2026-11-05). Loaded after tu-service.css
 * on Service Template pages (see inc/tu-service-template-2.php).
 * ===================================================================== */

/* An H3 card that contains a numbered list (ul.check-list) spans the whole
   row, shows all its text (no "Read more"), and the list inside becomes a
   clean numbered list in columns instead of tiny cards squeezed in a card.
   The other cards in that group sit two per row so no gap is left. */
.tusv .tusv-feats:has(>.tusv-feat .tusv-signs){grid-template-columns:repeat(2,minmax(0,1fr))}
.tusv .tusv-feats>.tusv-feat:has(.tusv-signs){grid-column:1/-1}
.tusv .tusv-feat:has(.tusv-signs)>.tusv-clamp{max-height:none!important;overflow:visible!important}
.tusv .tusv-feat:has(.tusv-signs)>.tusv-clamp::after{display:none!important}
.tusv .tusv-feat:has(.tusv-signs)>.tusv-more{display:none!important}
.tusv .tusv-feat .tusv-signs{display:grid!important;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:4px 32px;margin:12px 0 14px;padding:0;overflow:visible}
.tusv .tusv-feat .tusv-signs li{display:grid;grid-template-columns:auto minmax(0,1fr);grid-template-rows:auto 1fr;align-content:start;column-gap:12px;row-gap:4px;padding:12px 0;background:none!important;border:0;border-bottom:1px dashed var(--tu-ice-200);border-radius:0;box-shadow:none!important;transform:none!important}
.tusv .sec--ice .tusv-feat .tusv-signs li{border-bottom-color:#cfe2ec}
.tusv .tusv-feat .tusv-signs li::before{float:none;grid-row:1 / span 2;width:30px;height:30px;margin:0;font-size:.78rem}
.tusv .tusv-feat .tusv-signs h3{grid-column:2;min-height:30px;margin:0;font-size:1rem!important;display:flex;align-items:center}
.tusv .tusv-feat .tusv-signs p{grid-column:2;margin:0;color:var(--tu-ink);font-size:.92rem!important}
.tusv .tusv-feat .tusv-signs p.is-clamped{max-height:none;overflow:visible}
.tusv .tusv-feat .tusv-signs p.is-clamped::after{display:none}
.tusv .tusv-feat .tusv-signs .tusv-more{display:none!important}
@media (max-width:700px){
	.tusv .tusv-feat .tusv-signs{grid-template-columns:1fr;margin-inline:0;padding:0}
	.tusv .tusv-feat .tusv-signs>li{flex:none}
	.tusv .tusv-feats>.tusv-feat:has(.tusv-signs){flex:0 0 min(92%,420px)}
}

/* Repeated boilerplate titles are plain text, not headings (2026-11-05):
   Need a Plumber Today?, What Our Clients Say, Why Homeowners Give Us a
   Thumbs Up, the USP card titles and the VIP strip title. Same look as the
   old h2/h3 rules they used to get. */
.tusv-hx{text-wrap:balance}
.tusv .tusv-cta .tusv-hx--cta{margin:0 0 6px;font-size:clamp(1.5rem,1.1rem + 1.4vw,2.3rem)!important}
.tusv .tusv-usps .tusv-usp__t{margin:0;font:italic 400 1.05rem/1.15 var(--font-display)!important;letter-spacing:0;text-transform:none;color:var(--tu-navy);text-wrap:balance}

/* Buttons typed into the content (e.g. the Wisetack "Get Pre-Qualified" button,
   <p class="tusv-prequal"><a class="tu-btn tu-btn--primary">) keep the
   button look instead of the blue content-link style. 2026-11-05. */
.tusv .tusv-prose a.tu-btn,.tusv .tusv-prequal a.tu-btn{color:#fff!important;text-decoration:none!important;font-weight:inherit}
.tusv .tusv-prose a.tu-btn--secondary,.tusv .tusv-prose a.tu-btn--navy{color:#fff!important}
.tusv .tusv-prose p.tusv-prequal{margin-top:18px}

/* Link pills: text typed beside the link (e.g. "Providence:") shows in the
   pill in orange before the link text. 2026-11-05. */
.tusv .tusv-links .tusv-links__pre{color:var(--tu-orange);font-weight:800}

/* Link list item with 2+ links ("North Providence: Water Heater | Plumbing")
   -> one card: town name + a small button per link. 2026-11-09. */
.tusv .tusv-links:has(.tusv-links__area){max-width:none}
.tusv .tusv-links li.tusv-links__area{display:flex;align-items:center;justify-content:space-between;gap:8px 12px;padding:9px 10px 9px 14px;border-radius:12px;background:#fff;border:2px solid var(--tu-navy);box-shadow:2px 2px 0 var(--tu-navy)}
.tusv .tusv-links .tusv-links__town{display:inline-flex;align-items:center;gap:7px;min-width:0;font:800 .95rem/1.2 var(--font-sans);color:var(--tu-navy)}
.tusv .tusv-links .tusv-links__town i{flex:none;color:var(--tu-orange);font-size:14px}
.tusv .tusv-links .tusv-links__pair{display:inline-flex;flex:none;gap:6px}
.tusv .tusv-links li.tusv-links__area a{display:inline-flex;align-items:center;gap:5px;width:auto;height:auto;padding:5px 10px 5px 12px;border-radius:999px;border:2px solid var(--tu-navy);background:var(--tu-ice);box-shadow:none;font:700 .78rem/1.1 var(--font-sans);color:var(--tu-navy)!important;white-space:nowrap}
.tusv .tusv-links li.tusv-links__area a i{font-size:10px}
.tusv .tusv-links li.tusv-links__area a:first-child{background:#fff3ea;border-color:var(--tu-orange)}
.tusv .tusv-links li.tusv-links__area a:hover{background:var(--tu-navy);border-color:var(--tu-navy);color:#fff!important;transform:translateY(-1px);box-shadow:2px 2px 0 var(--tu-orange)}
.tusv .tusv-links li.tusv-links__area a:hover i{color:var(--tu-orange)}
@media (max-width:380px){
	.tusv .tusv-links li.tusv-links__area{flex-wrap:wrap}
}

/* Section photo beside the text fills its whole frame (2026-11-11). The generic
   ".tusv-band img{height:auto}" rule was beating the template's height:100%, so the
   photo kept its own height: a white gap under short photos, tall photos spilling out. */
@media (min-width:801px){
	.tusv .tusv-pic--fill .tusv-pic__img{height:100%;max-height:none}
	/* Portrait camera-inspection photo (two techs on the lawn): frame takes the photo's own
	   shape so nobody is cropped (Providence County QC, 2026-11-11). */
	.tusv .tusv-split .tusv-pic--fill:has(img[src*="thumbsupcamerainspection"]){align-self:center;justify-self:center;width:100%;max-width:340px;height:auto;aspect-ratio:768/858}
}

/* Financing with Wisetack (page 10459): show the whole "two plumbers" photo
   instead of cropping it to the text height (the shorter one was cut off). 2026-11-11. */
.page-id-10459 .tusv-split .tusv-pic--fill{align-self:center;justify-self:center;width:100%;max-width:380px;height:auto;aspect-ratio:468/454}
.page-id-10459 .tusv-split .tusv-pic--fill .tusv-pic__img{height:100%;object-fit:contain}

/* "Need a Plumber Today?" orange band: the starburst fills the whole band and fades softly into the
   orange at every edge, instead of a circle that left the sides flat and cut the rays off top and
   bottom (QC 2026-11-11). Rays run up into the orange wave above and fade out at the bottom. */
.tusv .tusv-cta{overflow:visible!important;isolation:isolate}
.tusv .tusv-cta > .sunburst{inset:-60px 0 -10px 0!important;z-index:0;clip-path:none!important;-webkit-mask-image:linear-gradient(to bottom,transparent 0,#000 70px,#000 calc(100% - 110px),transparent 100%),radial-gradient(ellipse 64% 85% at 50% 50%,#000 0%,rgba(0,0,0,.9) 40%,transparent 100%)!important;mask-image:linear-gradient(to bottom,transparent 0,#000 70px,#000 calc(100% - 110px),transparent 100%),radial-gradient(ellipse 64% 85% at 50% 50%,#000 0%,rgba(0,0,0,.9) 40%,transparent 100%)!important;-webkit-mask-composite:source-in!important;mask-composite:intersect!important}
.tusv .tusv-cta > .tu-container{position:relative;z-index:1}

/* Hero rainbow sweep runs all the way into the curved divider under the hero instead of stopping in a
   straight line above it (QC 2026-11-11): the hero grows by the divider's height and the divider
   (now transparent above its orange band) is pulled up over it. Page spacing is unchanged. */
.tusv .tusv-hero{padding-bottom:calc(clamp(26px,3vw,44px) + var(--swoosh-h))}
.tusv .tusv-hero+div[aria-hidden]{background:transparent!important;position:relative;z-index:3;margin-top:calc(-1 * var(--swoosh-h))!important}

/* Portrait (tall) photos beside the text: the frame takes the photo's own shape instead of a wide crop that
   cut people's heads and bodies off (Kitchen Plumbing QC, 2026-11-12). The class and --pic-ar are set by a
   small script in inc/tu-service-template-2.php for any photo taller than it is wide. Phones unchanged. */
@media (min-width:801px){
	.tusv .tusv-split .tusv-pic--fill.is-portrait{align-self:center;justify-self:center;width:100%;max-width:340px;height:auto;aspect-ratio:var(--pic-ar,3/4)}
}

/* Hero warranty seal sits beside Solder, not over him - same spacing as the Pricing page hero
   (.tuph__seal in tu-page-hero.css). QC 2026-11-19. */
.tusv .tusv-hero__art .tusv-hero__seal{left:auto;right:calc(100% + 6px);bottom:6%}
