/* Shared spacing rhythm. Keep related content close and separate new sections. */
:root{--ts-space-section:72px;--ts-space-heading:48px;--ts-space-grid:32px;--ts-space-copy:16px}
.tsp-product,.tsp-catalogue{padding-top:48px;padding-bottom:var(--ts-space-section)}
.tsp-catalogue-intro{margin:16px auto 48px;max-width:780px}
.tsp-catalogue-intro h1{margin:16px 0 24px}
.tsp-catalogue-intro .tsp-lead{max-width:680px;margin-inline:auto;line-height:1.6}
.tsp-catalogue-intro>p:last-child{margin:28px 0 0}
.tsp-catalogue-intro .tsp-button{margin-top:0}
.tsp-filters{gap:10px;margin-bottom:40px}
.tsp-grid{column-gap:var(--ts-space-grid);row-gap:40px}
/* WordPress can insert empty paragraphs around shortcode markup. */
:is(.tsp-card,.tsp-card>div,.tsp-grid,.tsp-hero,.tsp-section)>p:empty{display:none}
.tsp-card>div{padding:28px;gap:0}
.tsp-card h3{margin:0 0 12px}
.tsp-card p{margin:0 0 24px}
.tsp-card>div>p:last-child{margin-top:auto;margin-bottom:0}
.tsp-card>a{display:block;line-height:0}
.tsp-catalogue .tsp-pagination{margin-top:40px}
.tsp-hero{margin-bottom:var(--ts-space-section)}
.tsp-hero .tsp-lead{margin-bottom:0}
.tsp-actions{margin-top:28px;gap:16px 24px}
.tsp-tags{margin:24px 0 0}
.tsp-product .wp-block-post-content>h2{margin-top:var(--ts-space-heading);margin-bottom:20px}
.tsp-product .wp-block-post-content>p{margin-top:0;margin-bottom:var(--ts-space-copy)}
.tsp-section{margin-top:var(--ts-space-section)}
.tsp-section h2{margin:0 0 28px}
.tsp-section>.tsp-eyebrow{margin-bottom:12px}
.tsp-gallery{gap:var(--ts-space-grid)}
.tsp-cta{margin-top:var(--ts-space-section);padding:48px;gap:32px}
.tsp-cta .tsp-eyebrow{margin:0 0 12px}
.tsp-cta h2{margin:0 0 16px}
.tsp-cta p:last-child{margin-bottom:0}
.ts-page .ts-page-hero,.ts-page .ts-about-hero{margin-bottom:var(--ts-space-section)}
.ts-article>h2{margin-top:var(--ts-space-heading);margin-bottom:20px}
.ts-article>h3{margin-top:32px;margin-bottom:12px}
.ts-article>p{margin-top:0;margin-bottom:var(--ts-space-copy);line-height:1.7}
.ts-article>:first-child{margin-top:0}
.ts-article>.wp-block-image{margin-block:32px}
.ts-article .ts-page-cta{margin-top:var(--ts-space-heading);padding:32px}
.ts-home26 .ts26-services,.ts-home26 .ts26-projects{padding-block:var(--ts-space-section)}
.ts-home26 .ts26-section-heading{margin-bottom:40px}
.ts-home26 .ts26-service-grid{gap:var(--ts-space-grid)}
.ts-home26 .ts26-service-body p:last-child{margin-bottom:0}
@media(max-width:760px){
 :root{--ts-space-section:48px;--ts-space-heading:36px;--ts-space-grid:24px}
 .tsp-product,.tsp-catalogue{padding-top:28px}
 .tsp-catalogue-intro{margin:8px auto 32px}
 .tsp-catalogue-intro h1{margin:12px 0 20px}
 .tsp-catalogue-intro>p:last-child{margin-top:24px}
 .tsp-filters{gap:8px;margin-bottom:32px}
 .tsp-grid{row-gap:28px}
 .tsp-card>div{padding:24px}
 .tsp-cta{padding:28px}
 .ts-home26 .ts26-section-heading{margin-bottom:28px}
 .ts-article .ts-page-cta{padding:24px}
}
.ts-contact-strip>p{margin-block:0}
.ts-design-pilot .ts-home26 :is(.ts26-services,.ts26-projects){padding-block:var(--ts-space-section)}
.ts-design-pilot .ts-home26 .ts26-service-grid{gap:var(--ts-space-grid)}

/* Subtle shared corners: smaller than the former 10px product cards. */
body:is(.ts-design-pilot, .home, .page, .single, .archive) :is(.ts26-service-card,.tsp-card,.tsp-cta,.tsp-documents,.tsp-demo-section,.ts-page-hero,.ts-about-hero,.ts-reference-hero,.ts-project-filter-panel,.ts-detail-card,.ts-page-cta){border-radius:5px!important}
body:is(.ts-design-pilot, .home, .page, .single, .archive) :is(.ts26-service-card,.tsp-card,.ts-page-hero,.ts-about-hero){overflow:hidden}
body:is(.ts-design-pilot, .home, .page, .single, .archive) :is(.ts26-project img,.tsp-hero img,.tsp-gallery img,.ts-project-gallery img,.ts-article>.wp-block-image img){border-radius:5px!important}
/* Images meeting a card's text panel keep a straight shared edge. */
body:is(.ts-design-pilot, .home, .page, .single, .archive) .ts26-service-card>.wp-block-image img,body:is(.ts-design-pilot, .home, .page, .single, .archive) .tsp-card>a img{border-radius:5px 5px 0 0!important}
body:is(.ts-design-pilot, .home, .page, .single, .archive) :is(.wp-block-button__link,.tsp-button,.ts-reference-button,.ts-solid-link,.ts-header-cta,.ts26-header-contact){border-radius:4px!important}

/* Mobile: photograph first, then a readable introduction and two service tiles. */
@media(max-width:600px){
 body .ts-home26 .ts26-hero{min-height:0;background:var(--ts26-paper);color:#123a2e}
 body .ts-home26 .ts26-hero .ts26-hero-photo{position:relative;inset:auto;z-index:auto;height:auto;width:100%;margin:0;aspect-ratio:1.6}
 body .ts-home26 .ts26-hero-photo img{height:100%;object-position:center;aspect-ratio:1.6}
 body .ts-home26 .ts26-hero::after{display:none}
 body .ts-home26 .ts26-hero-inner{padding:28px 0 32px}
 body .ts-home26 .ts26-hero h1{color:#123a2e;font-size:44px;margin:12px 0 18px}
 body .ts-home26 .ts26-hero-copy>p:not(.ts26-kicker){color:#47574f}
 body .ts-home26 .ts26-hero .ts26-kicker{color:#a93800;font-size:10px}
 body .ts-home26 .ts26-hero .ts26-outline .wp-block-button__link{color:#123a2e;border-color:#123a2e}
 body .ts-home26 .ts26-hero .ts26-actions{display:grid;grid-template-columns:1fr 1fr;gap:10px}
 body .ts-home26 .ts26-actions :is(.wp-block-buttons,.wp-block-button){width:100%}
 body .ts-home26 .ts26-actions .wp-block-button__link{width:100%;padding:13px 8px;font-size:14px;text-align:center}
 body .ts-home26 .ts26-hero .ts26-proofs{margin-top:28px;gap:16px}
 body .ts-home26 .ts26-hero .ts26-proof p{color:#47574f}
 body.ts-design-pilot .ts-home26 .ts26-service-grid,body .ts-home26 .ts26-service-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:16px 12px}
 body.ts-design-pilot .ts-home26 .ts26-service-body,body .ts-home26 .ts26-service-body{padding:16px 12px;display:flex;flex-direction:column}
 body.ts-design-pilot .ts-home26 .ts26-service-body h3,body .ts-home26 .ts26-service-body h3{font-size:23px;line-height:1.15;overflow-wrap:anywhere;margin-bottom:10px}
 body .ts-home26 .ts26-service-body .ts26-icon{display:none}
 body.ts-design-pilot .ts-home26 .ts26-service-body p,body .ts-home26 .ts26-service-body p{font-size:14px;line-height:1.45;margin-bottom:16px}
 body .ts-home26 .ts26-service-body .ts26-more{margin-top:auto;margin-bottom:0}
 body .ts-home26 .ts26-service-card>.wp-block-image img{aspect-ratio:1.25}
}
@media(max-width:360px){body.ts-design-pilot .ts-home26 .ts26-service-body h3,body .ts-home26 .ts26-service-body h3{font-size:17px}}
