/* TLS Website Enhancements 0.1.0 — additive, scoped storefront polish. */
body.tls-enhanced-storefront {
  --tls-enhance-green: #173d2b;
  --tls-enhance-accent: #28734c;
  --tls-enhance-ease: cubic-bezier(.2,.7,.3,1);
}
/* No hidden initial state, overlay, loader, scroll observer or delayed rendering.
   Keep the hero and product images fully visible immediately. */
@keyframes tls-content-arrive {
  from { transform: translateY(3px); }
  to { transform: translateY(0); }
}
@keyframes tls-menu-arrive {
  from { opacity: .88; transform: translateY(-3px); }
  to { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: no-preference) {
  body.tls-enhanced-storefront:not(.home) main > .wp-block-post-title {
    animation: tls-content-arrive 220ms var(--tls-enhance-ease);
  }
  body.tls-enhanced-storefront .wp-block-button__link,
  body.tls-enhanced-storefront .wp-block-navigation-item__content,
  body.tls-enhanced-storefront .tls-product-cards .service-box {
    transition: background-color 180ms ease, color 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
  }
  body.tls-enhanced-storefront .wp-block-navigation__responsive-container.is-menu-open > .wp-block-navigation__responsive-close {
    animation: tls-menu-arrive 220ms var(--tls-enhance-ease);
  }
}
@media (hover: hover) and (pointer: fine) {
  body.tls-enhanced-storefront .wp-block-navigation .wp-block-navigation-item__content:hover {
    text-decoration: underline;
    text-underline-offset: 5px;
  }
  body.tls-enhanced-storefront .tls-product-cards .service-box:hover {
    box-shadow: 0 5px 18px rgba(23,61,43,.09);
  }
  body.tls-enhanced-storefront .wp-block-navigation .wp-block-navigation__submenu-container {
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(23,61,43,.12);
  }
}
/* Do not alter menu display, positioning, z-index or click handlers. */
body.tls-enhanced-storefront .wp-block-navigation a:focus-visible,
body.tls-enhanced-storefront .wp-block-navigation button:focus-visible,
body.tls-enhanced-storefront .wp-block-button__link:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 4px;
}
body.tls-enhanced-storefront main > .wp-block-post-title {
  text-wrap: balance;
  line-height: 1.2;
  letter-spacing: -.02em;
}
@media (prefers-reduced-motion: reduce) {
  body.tls-enhanced-storefront .wp-block-button__link,
  body.tls-enhanced-storefront .wp-block-navigation-item__content,
  body.tls-enhanced-storefront .tls-product-cards .service-box,
  body.tls-enhanced-storefront main > .wp-block-post-title,
  body.tls-enhanced-storefront .wp-block-navigation__responsive-close {
    animation: none !important;
    transition: none !important;
  }
}

/* 0.2.0 — scoped to the storefront, not basket, checkout or account. */
body.tls-enhanced-storefront { --tls-line:#dce5dd; --tls-paper:#fff; --tls-soft:#f2f6f2; }
body.tls-enhanced-storefront header.wp-block-template-part { background:#fff; border-bottom:1px solid var(--tls-line); box-shadow:0 3px 14px #173d2b0a; }
body.tls-enhanced-storefront header .wp-block-navigation-item__content { font-weight:600; padding:8px 10px; border-radius:7px; }
body.tls-enhanced-storefront header .wp-block-navigation-item__content:hover { background:var(--tls-soft); color:var(--tls-enhance-green); text-decoration:none; }
body.tls-enhanced-storefront header .wp-block-navigation__submenu-container { background:white; color:#173d2b; border:1px solid var(--tls-line); border-radius:10px; padding:6px; min-width:210px; box-shadow:0 12px 32px #173d2b20; }
body.tls-enhanced-storefront header .wp-block-navigation__submenu-container .wp-block-navigation-item__content { padding:11px 14px; }
body.tls-enhanced-storefront header .wp-block-navigation__responsive-container.is-menu-open { background:white; color:#173d2b; padding:24px; }
body.tls-enhanced-storefront header .wp-block-search__input { border:1px solid var(--tls-line); border-radius:8px; min-width:0; }
body.tls-enhanced-storefront header .wp-block-search__button { border-radius:8px; }
body.tls-enhanced-storefront .wp-block-post-title,body.tls-enhanced-storefront .woocommerce-products-header__title { color:var(--tls-enhance-green); font-size:clamp(30px,3vw,46px); font-weight:700; letter-spacing:-.035em; }
body.tls-enhanced-storefront .woocommerce-breadcrumb,body.tls-enhanced-storefront .wc-block-breadcrumbs { font-size:14px; color:#58685e; margin-bottom:22px; }
/* Classic and block product grids: keep original layout engine and prices. */
body.tls-shop-design :is(ul.products li.product, .wc-block-product, .wc-block-grid__product) { background:#fff; border:1px solid var(--tls-line); border-radius:14px; padding:14px; box-sizing:border-box; box-shadow:0 4px 14px #173d2b08; text-align:left; min-width:0; }
body.tls-shop-design :is(ul.products li.product, .wc-block-product, .wc-block-grid__product) :is(.woocommerce-loop-product__title,.wp-block-post-title,.wc-block-grid__product-title) { color:#173d2b; font-size:clamp(17px,1.4vw,21px); font-weight:650; line-height:1.3; margin:12px 0 8px; }
body.tls-shop-design :is(ul.products li.product a img,.wc-block-grid__product-image img,.wc-block-components-product-image img) { border-radius:9px; aspect-ratio: 4 / 3; width:100%; height:auto; object-fit:contain; background:#f6f7f5; }
body.tls-shop-design :is(.price,.wc-block-components-product-price,.wc-block-grid__product-price) { font-size:17px; font-weight:650; color:#173d2b; line-height:1.5; }
body.tls-shop-design :is(ul.products li.product .button,.wc-block-components-product-button .wp-block-button__link,.wc-block-grid__product-add-to-cart .wp-block-button__link) { background:#173d2b; color:white; border-radius:8px; padding:12px 14px; min-height:44px; width:100%; box-sizing:border-box; text-align:center; line-height:1.35; }
body.tls-shop-design .woocommerce-ordering select { padding:10px; border:1px solid var(--tls-line); border-radius:8px; background:white; max-width:100%; }
/* Product details: no changes to form structure, quantity or calculators. */
body.tls-product-design :is(.woocommerce div.product div.summary,.wp-block-woocommerce-product-summary) { box-sizing:border-box; background:white; border:1px solid var(--tls-line); border-radius:16px; padding:clamp(16px,2.5vw,30px); box-shadow:0 5px 20px #173d2b0a; }
body.tls-product-design :is(.product_title,.wp-block-post-title) { font-size:clamp(27px,3vw,43px); color:#173d2b; line-height:1.15; }
body.tls-product-design .summary > .price { font-size:clamp(20px,2vw,28px); color:#173d2b; font-weight:700; }
body.tls-product-design .woocommerce-product-gallery img { border-radius:10px; }
body.tls-product-design .woocommerce-tabs { background:white; border:1px solid var(--tls-line); border-radius:14px; padding:clamp(14px,2vw,26px); }
body.tls-product-design .single_add_to_cart_button { background:#173d2b; color:white; min-height:46px; border-radius:8px; }
/* Existing homepage blocks and footer content retained. */
body.tls-enhanced-storefront.home .tls-product-cards .service-box { border-radius:14px; overflow:visible; }
body.tls-enhanced-storefront footer.wp-block-template-part { background:#173d2b !important; background-image:none !important; color:#f5f8f5; }
body.tls-enhanced-storefront footer.wp-block-template-part .wp-block-cover { background:#173d2b !important; color:#f5f8f5; }
body.tls-enhanced-storefront footer.wp-block-template-part .wp-block-cover__image-background { visibility:hidden; }
body.tls-enhanced-storefront footer.wp-block-template-part .wp-block-cover__background { opacity:0 !important; }
body.tls-enhanced-storefront footer.wp-block-template-part .wp-block-columns { background:transparent !important; color:#f5f8f5 !important; box-shadow:none !important; }
body.tls-enhanced-storefront footer.wp-block-template-part :is(h2,h3,h4,p,a,li) { color:#f5f8f5 !important; }
body.tls-enhanced-storefront footer.wp-block-template-part a { text-underline-offset:4px; }
body.tls-enhanced-storefront footer.wp-block-template-part a:hover { color:#c4e5c8 !important; }
@media (max-width:600px) {
 body.tls-shop-design :is(ul.products li.product,.wc-block-product,.wc-block-grid__product) { padding:10px; border-radius:10px; }
 body.tls-shop-design :is(.price,.wc-block-components-product-price,.wc-block-grid__product-price) { font-size:15px; }
 body.tls-shop-design :is(ul.products li.product .button,.wc-block-components-product-button .wp-block-button__link) { font-size:14px; padding:9px 6px; }
 body.tls-product-design :is(.woocommerce div.product div.summary,.wp-block-woocommerce-product-summary) { padding:16px; }
}
@media (prefers-reduced-motion:no-preference) {
 @keyframes tls-page-enter { from { opacity:.85; transform:translateY(5px); } to { opacity:1; transform:translateY(0); } }
 body.tls-enhanced-storefront :is(.woocommerce-products-header,.woocommerce-product-gallery,.tls-home-banner) { animation:tls-page-enter 260ms ease-out; }
 body.tls-enhanced-storefront .wp-block-navigation-item:hover > .wp-block-navigation__submenu-container { animation:tls-menu-arrive 180ms ease-out; }
 body.tls-shop-design :is(ul.products li.product,.wc-block-product,.wc-block-grid__product) { transition:box-shadow .2s ease,transform .2s ease; }
 @media (hover:hover) and (pointer:fine) { body.tls-shop-design :is(ul.products li.product,.wc-block-product,.wc-block-grid__product):hover { transform:translateY(-3px); box-shadow:0 12px 28px #173d2b15; } }
}

/* 0.2.1 — restrained finishing touches; no layout or form rewrites. */
body.tls-enhanced-storefront header .wp-block-navigation__submenu-container .wp-block-navigation-item + .wp-block-navigation-item { border-top: 1px solid #edf1ed; }
body.tls-enhanced-storefront header .wp-block-navigation :is(.current-menu-item,.current-menu-ancestor) > .wp-block-navigation-item__content { color:#173d2b; background:#edf4ee; }
body.tls-enhanced-storefront .woocommerce-breadcrumb a, body.tls-enhanced-storefront .wc-block-breadcrumbs a { color:#405d4b; text-underline-offset:3px; }
body.tls-shop-design .woocommerce-products-header__title { margin-bottom: .55em; }
body.tls-shop-design .woocommerce-result-count { color:#526158; font-size:14px; }
body.tls-shop-design :is(ul.products li.product,.wc-block-product,.wc-block-grid__product) :is(.price,.wc-block-components-product-price,.wc-block-grid__product-price) { margin-block:8px 14px; }
body.tls-shop-design :is(ul.products li.product .button,.wc-block-components-product-button .wp-block-button__link,.wc-block-grid__product-add-to-cart .wp-block-button__link):hover,
body.tls-product-design .single_add_to_cart_button:hover { background:#245b3d; color:white; }
body.tls-shop-design :is(ul.products li.product a,.wc-block-product a,.wc-block-grid__product a):focus-visible,
body.tls-product-design .single_add_to_cart_button:focus-visible { outline:2px solid #28734c; outline-offset:3px; }
body.tls-product-design .summary > .woocommerce-product-details__short-description { color:#46554b; line-height:1.65; margin-block:16px 20px; }
body.tls-product-design .summary > .product_meta { border-top:1px solid var(--tls-line); padding-top:14px; margin-top:20px; font-size:13px; line-height:1.65; color:#58685e; }
body.tls-product-design .woocommerce-tabs .woocommerce-Tabs-panel { line-height:1.7; }
body.tls-enhanced-storefront:not(.home):not(.tls-shop-design):not(.tls-product-design) .wp-block-post-content > p { line-height:1.7; }
body.tls-enhanced-storefront:not(.home):not(.tls-shop-design):not(.tls-product-design) .wp-block-post-content > :is(h2,h3) { color:#173d2b; text-wrap:balance; margin-block:1.35em .55em; }
body.tls-enhanced-storefront:not(.home):not(.tls-shop-design):not(.tls-product-design) .wp-block-post-content > .wp-block-image img { border-radius:10px; }
body.tls-enhanced-storefront footer.wp-block-template-part .wp-block-heading { letter-spacing:.01em; }
body.tls-enhanced-storefront footer.wp-block-template-part a:focus-visible { outline:2px solid #fff; outline-offset:3px; }
@media (prefers-reduced-motion:no-preference) {
 body.tls-shop-design :is(ul.products li.product .button,.wc-block-components-product-button .wp-block-button__link,.wc-block-grid__product-add-to-cart .wp-block-button__link), body.tls-product-design .single_add_to_cart_button { transition:background-color 160ms ease,color 160ms ease; }
}

/* 0.3.0: consistent shared shell, including transactional pages.
   Only header/footer are affected on cart, checkout and account. */
body.tls-enhanced-shell { --tls-shell-green:#173d2b; --tls-shell-line:#dce5dd; }
body.tls-enhanced-shell header.wp-block-template-part { background:#fff; border-bottom:1px solid var(--tls-shell-line); }
body.tls-enhanced-shell header.wp-block-template-part .wp-block-navigation-item__content { border-radius:7px; }
body.tls-enhanced-shell header.wp-block-template-part .wp-block-navigation-item__content:focus-visible { outline:2px solid #28734c; outline-offset:3px; }
/* Replace footer artwork only when the original Cover block is present.
   Clear the nested white panel and its column backgrounds together. */
body.tls-enhanced-shell footer.wp-block-template-part { background:#173d2b !important; color:#f5f8f5; }
body.tls-enhanced-shell footer.wp-block-template-part .wp-block-cover { background:#173d2b !important; color:#f5f8f5; }
body.tls-enhanced-shell footer.wp-block-template-part .wp-block-cover__image-background { visibility:hidden; }
body.tls-enhanced-shell footer.wp-block-template-part .wp-block-cover__background { opacity:0 !important; }
body.tls-enhanced-shell footer.wp-block-template-part .wp-block-cover__inner-container :is(.wp-block-group,.wp-block-columns,.wp-block-column) { background-color:transparent !important; color:#f5f8f5 !important; box-shadow:none !important; }
body.tls-enhanced-shell footer.wp-block-template-part :is(h2,h3,h4,p,a,li) { color:#f5f8f5 !important; }
body.tls-enhanced-shell footer.wp-block-template-part a { text-underline-offset:4px; }
body.tls-enhanced-shell footer.wp-block-template-part a:hover { color:#c4e5c8 !important; }
body.tls-enhanced-shell footer.wp-block-template-part a:focus-visible { outline:2px solid #fff; outline-offset:3px; }

/* Greengrass custom templates may place content directly under the site wrapper.
   Exclude commerce forms, calculators, hero, footer and header from generic text rules. */
body.tls-enhanced-storefront:not(.home):not(.tls-shop-design):not(.tls-product-design) :is(main,.wp-block-post-content,.wp-site-blocks > .wp-block-group) :is(h1,h2,h3):not(:is(form *, .woocommerce *, .tls-home-banner *, [class*="calculator"] *, header *, footer *, .wp-block-cover *)) { line-height:1.25; letter-spacing:-.02em; text-wrap:balance; }
body.tls-enhanced-storefront:not(.home):not(.tls-shop-design):not(.tls-product-design) :is(main,.wp-block-post-content,.wp-site-blocks > .wp-block-group) p:not(:is(form *, .woocommerce *, [class*="calculator"] *, header *, footer *, .wp-block-cover *)) { line-height:1.7; }
body.tls-enhanced-storefront:not(.home):not(.tls-shop-design):not(.tls-product-design) :is(main,.wp-block-post-content,.wp-site-blocks > .wp-block-group) .wp-block-image:not(:is(form *, .woocommerce *, [class*="calculator"] *, header *, footer *)) img { border-radius:10px; }
/* Shared informational controls, only ordinary WordPress links, not Woo forms. */
body.tls-enhanced-storefront :is(main,.wp-block-post-content,.wp-site-blocks > .wp-block-group) .wp-block-button__link:not(:is(form *, .woocommerce *, [class*="calculator"] *, header *, footer *, .tls-home-banner *)) { border-radius:8px; text-underline-offset:3px; }
body.tls-enhanced-storefront :is(main,.wp-block-post-content,.wp-site-blocks > .wp-block-group) a:not(:is(.wp-block-button__link, .woocommerce *, form *, header *, footer *)):focus-visible { outline:2px solid #28734c; outline-offset:3px; }
/* Product collections also appear on landing pages, search and related products. */
body.tls-enhanced-storefront :is(.wp-block-woocommerce-product-collection,.wp-block-woocommerce-all-products,.wp-block-woocommerce-product-new,.related.products,.upsells.products) :is(li.product,.wc-block-product,.wc-block-grid__product) { background:#fff; border:1px solid var(--tls-line); border-radius:12px; padding:clamp(10px,1.4vw,16px); box-sizing:border-box; min-width:0; }
body.tls-enhanced-storefront :is(.wp-block-woocommerce-product-collection,.related.products,.upsells.products) :is(.woocommerce-loop-product__title,.wp-block-post-title) { font-size:clamp(17px,1.4vw,21px); line-height:1.35; color:#173d2b; }
body.tls-enhanced-storefront :is(.wp-block-woocommerce-product-collection,.related.products,.upsells.products) :is(.woocommerce-loop-product__link img,.wc-block-components-product-image img) { border-radius:8px; }
body.tls-enhanced-storefront :is(.woocommerce-pagination,.wp-block-query-pagination) a:focus-visible { outline:2px solid #28734c; outline-offset:3px; }
@media (max-width:600px) {
 body.tls-enhanced-shell footer.wp-block-template-part .wp-block-columns { gap:24px; }
 body.tls-enhanced-storefront:not(.home):not(.tls-product-design):not(.tls-shop-design) :is(main,.wp-block-post-content,.wp-site-blocks > .wp-block-group) :is(h1,h2):not(:is(form *, .woocommerce *, [class*="calculator"] *, header *, footer *, .wp-block-cover *)) { overflow-wrap:break-word; }
 body.tls-enhanced-storefront header .wp-block-navigation__submenu-container { min-width:0; max-width:100%; }
}

/* 0.3.1 — consistent forest-green action buttons on every staging page.
   Colour only: preserve layout, disabled states, payment iframe, and controls. */
body.tls-enhanced-shell { --tls-action-green:#173d2b; --tls-action-hover:#245b3d; }
body.tls-enhanced-shell :is(.wp-block-button__link,.wp-block-search__button,.wp-element-button,.woocommerce a.button,.woocommerce button.button,.woocommerce input.button,.wc-block-components-button,.single_add_to_cart_button,.add_to_cart_button,.tls-submit,.tls-soil-add,.tls-continue,.tls-addon-link,.tls-calc-addons-link,.tls-product-calc-cta a,button[type="submit"],input[type="submit"]):not(:is(:disabled,[disabled],[aria-disabled="true"],.disabled,.tls-qty-step,.wp-block-navigation__responsive-container-open,.wp-block-navigation__responsive-container-close,.wp-block-navigation-submenu__toggle,.wc-block-components-quantity-selector__button,.wc-block-components-button--link,.wc-block-components-button.is-link)):where(:not(.tls-home-banner *)) {
  background-color:var(--tls-action-green)!important;
  color:#fff!important;
  border-color:var(--tls-action-green)!important;
}
/* White hero CTA is an intentional exception to the green action palette. */
body.home.tls-enhanced-shell .tls-home-banner .wp-block-button__link:not(:is([aria-disabled="true"],.disabled)) {
  background-color:#fff!important;color:#173d2b!important;border-color:#fff!important;
}
/* Checkout uses its own high-specificity colour declarations. */
body.tls-enhanced-shell.tls-new-checkout #payment #place_order:not(:is(:disabled,[aria-disabled="true"],.disabled)),
body.tls-enhanced-shell.tls-new-basket .tls-continue:not(:is(:disabled,[aria-disabled="true"],.disabled)),
body.tls-enhanced-shell .tls-calculator-v2 .tls-cart .tls-submit:not(:is(:disabled,[aria-disabled="true"],.disabled)) {
  background-color:var(--tls-action-green)!important;color:#fff!important;border-color:var(--tls-action-green)!important;
}
/* Segmented selectors retain a visible distinction between selected/unselected. */
body.tls-enhanced-shell :is(.tls-calculator-v2 .tls-segments button,.tls-soil .tls-category-button):not(:disabled)[aria-pressed="true"] {
  background-color:var(--tls-action-green)!important;color:#fff!important;border-color:var(--tls-action-green)!important;
}
body.tls-enhanced-shell :is(.tls-calculator-v2 .tls-segments button,.tls-soil .tls-category-button):not(:disabled)[aria-pressed="false"] {
  background-color:#fff!important;color:var(--tls-action-green)!important;border-color:var(--tls-action-green)!important;
}
@media (hover:hover) {
  body.tls-enhanced-shell :is(.wp-block-button__link,.wp-block-search__button,.wp-element-button,.woocommerce a.button,.woocommerce button.button,.woocommerce input.button,.wc-block-components-button,.single_add_to_cart_button,.add_to_cart_button,.tls-submit,.tls-soil-add,.tls-continue,.tls-addon-link,.tls-calc-addons-link,.tls-product-calc-cta a,button[type="submit"],input[type="submit"]):not(:is(:disabled,[disabled],[aria-disabled="true"],.disabled,.tls-qty-step,.wp-block-navigation__responsive-container-open,.wp-block-navigation__responsive-container-close,.wp-block-navigation-submenu__toggle,.wc-block-components-quantity-selector__button,.wc-block-components-button--link,.wc-block-components-button.is-link)):where(:not(.tls-home-banner *)):hover,
  body.tls-enhanced-shell.tls-new-checkout #payment #place_order:not(:is(:disabled,[aria-disabled="true"],.disabled)):hover,
  body.tls-enhanced-shell.tls-new-basket .tls-continue:not(:is(:disabled,[aria-disabled="true"],.disabled)):hover,
  body.tls-enhanced-shell .tls-calculator-v2 .tls-cart .tls-submit:not(:is(:disabled,[aria-disabled="true"],.disabled)):hover {
    background-color:var(--tls-action-hover)!important;color:#fff!important;border-color:var(--tls-action-hover)!important;
  }
}

/* 0.3.1 spacing revision — catalog lists only, including shortcode category pages. */
body.tls-enhanced-storefront :is(.woocommerce ul.products, ul.products[class*="columns-"], .wc-block-grid__products, .wc-block-product-template.is-layout-grid):not(.is-layout-carousel) {
  display:grid !important;
  grid-template-columns:repeat(3,minmax(0,1fr)) !important;
  gap:clamp(16px,2.2vw,28px) !important;
  width:100%; max-width:1240px; box-sizing:border-box;
  margin:24px auto 36px !important;
  padding:0 clamp(12px,2vw,24px) !important;
  list-style:none;
  align-items:stretch;
}
/* WooCommerce classic float clearfix otherwise occupies a grid cell. */
body.tls-enhanced-storefront :is(.woocommerce ul.products,ul.products[class*="columns-"])::before,
body.tls-enhanced-storefront :is(.woocommerce ul.products,ul.products[class*="columns-"])::after { content:none !important; display:none !important; }
body.tls-enhanced-storefront :is(.woocommerce ul.products,ul.products[class*="columns-"],.wc-block-grid__products,.wc-block-product-template.is-layout-grid):not(.is-layout-carousel) > :is(li.product,li.wc-block-grid__product,li.wc-block-product) {
  float:none !important; clear:none !important; width:auto !important; max-width:none !important;
  margin:0 !important; min-width:0; box-sizing:border-box;
  background:#fff; border:1px solid var(--tls-line,#dce5dd); border-radius:12px;
  padding:clamp(12px,1.4vw,18px) !important;
  display:flex; flex-direction:column; gap:8px; text-align:left;
}
body.tls-enhanced-storefront :is(.woocommerce ul.products,ul.products[class*="columns-"]) > li.product > a.woocommerce-loop-product__link { display:block; flex:1 0 auto; }
body.tls-enhanced-storefront :is(.woocommerce ul.products,ul.products[class*="columns-"]) > li.product > :is(a.button,.button) { margin-top:auto !important; margin-bottom:0 !important; box-sizing:border-box; }
body.tls-enhanced-storefront :is(.wc-block-grid__products,.wc-block-product-template.is-layout-grid):not(.is-layout-carousel) > li > :is(.wc-block-grid__product-add-to-cart,.wp-block-woocommerce-product-button) { margin-top:auto; margin-bottom:0; }
body.tls-enhanced-storefront :is(.woocommerce ul.products,ul.products[class*="columns-"],.wc-block-grid__products,.wc-block-product-template.is-layout-grid):not(.is-layout-carousel) > :is(li.product,li.wc-block-grid__product,li.wc-block-product) :is(.woocommerce-loop-product__title,.wc-block-grid__product-title,.wp-block-post-title) { margin:10px 0 6px; line-height:1.35; overflow-wrap:anywhere; }
@media (max-width:900px) {
 body.tls-enhanced-storefront :is(.woocommerce ul.products,ul.products[class*="columns-"],.wc-block-grid__products,.wc-block-product-template.is-layout-grid):not(.is-layout-carousel) { grid-template-columns:repeat(2,minmax(0,1fr)) !important; gap:16px !important; }
}
@media (max-width:600px) {
 body.tls-enhanced-storefront :is(.woocommerce ul.products,ul.products[class*="columns-"],.wc-block-grid__products,.wc-block-product-template.is-layout-grid):not(.is-layout-carousel) { gap:12px !important; margin:16px auto 24px !important; padding-inline:12px !important; }
 body.tls-enhanced-storefront :is(.woocommerce ul.products,ul.products[class*="columns-"],.wc-block-grid__products,.wc-block-product-template.is-layout-grid):not(.is-layout-carousel) > :is(li.product,li.wc-block-grid__product,li.wc-block-product) { padding:10px !important; }
}
@media (max-width:350px) {
 body.tls-enhanced-storefront :is(.woocommerce ul.products,ul.products[class*="columns-"],.wc-block-grid__products,.wc-block-product-template.is-layout-grid):not(.is-layout-carousel) { grid-template-columns:minmax(0,1fr) !important; }
}

@media (min-width:901px) {
 body.tls-enhanced-storefront :is(.woocommerce ul.products,ul.products[class*="columns-"]):not(.is-layout-carousel).columns-1 { grid-template-columns:repeat(1,minmax(0,1fr)) !important; }
 body.tls-enhanced-storefront :is(.woocommerce ul.products,ul.products[class*="columns-"]):not(.is-layout-carousel).columns-2 { grid-template-columns:repeat(2,minmax(0,1fr)) !important; }
 body.tls-enhanced-storefront :is(.woocommerce ul.products,ul.products[class*="columns-"]):not(.is-layout-carousel).columns-3 { grid-template-columns:repeat(3,minmax(0,1fr)) !important; }
 body.tls-enhanced-storefront :is(.woocommerce ul.products,ul.products[class*="columns-"]):not(.is-layout-carousel).columns-4 { grid-template-columns:repeat(4,minmax(0,1fr)) !important; }
 body.tls-enhanced-storefront :is(.woocommerce ul.products,ul.products[class*="columns-"]):not(.is-layout-carousel).columns-5 { grid-template-columns:repeat(5,minmax(0,1fr)) !important; }
 body.tls-enhanced-storefront :is(.woocommerce ul.products,ul.products[class*="columns-"]):not(.is-layout-carousel).columns-6 { grid-template-columns:repeat(6,minmax(0,1fr)) !important; }
}

/* 0.4.0 — understated depth, shared shell and storefront surfaces.
   No hidden content, new overlays, fixed controls or checkout body changes. */
body.tls-enhanced-shell {
 --tls-depth-sm:0 2px 5px rgba(23,61,43,.045),0 8px 24px rgba(23,61,43,.065);
 --tls-depth-hover:0 4px 10px rgba(23,61,43,.06),0 12px 30px rgba(23,61,43,.11);
 --tls-depth-radius:14px;
}
body.tls-enhanced-shell header.wp-block-template-part { box-shadow:0 3px 18px rgba(23,61,43,.07); }
body.tls-enhanced-shell header .wp-block-navigation__submenu-container {
 background:#fff; border-radius:12px; box-shadow:var(--tls-depth-hover); border:1px solid #dce5dd;
}
/* Blur only desktop dropdowns, not the mobile overlay, with opaque fallback. */
@supports (backdrop-filter:blur(12px)) or (-webkit-backdrop-filter:blur(12px)) {
 @media (min-width:901px) and (hover:hover) and (pointer:fine) {
  body.tls-enhanced-shell header .wp-block-navigation__responsive-container:not(.is-menu-open) .wp-block-navigation__submenu-container {
   background-color:rgba(255,255,255,.94); -webkit-backdrop-filter:blur(12px); backdrop-filter:blur(12px);
  }
 }
}
body.tls-enhanced-storefront :is(ul.products li.product,.wc-block-product,.wc-block-grid__product),
body.tls-enhanced-storefront.home .tls-product-cards .service-box,
body.tls-product-design :is(.woocommerce div.product div.summary,.wp-block-woocommerce-product-summary,.woocommerce-tabs),
body.tls-enhanced-storefront :is(.tls-calculator-v2,.tls-calculator-v3,.tls-soil-form,.tls-soil-result) {
 box-shadow:var(--tls-depth-sm); border-radius:var(--tls-depth-radius);
}
body.tls-enhanced-storefront :is(.woocommerce-products-header,.wp-block-woocommerce-product-collection) > :is(h1,h2) {
 margin-block:0 .65em; color:#173d2b; line-height:1.2; text-wrap:balance;
}
body.tls-enhanced-storefront :is(.woocommerce-breadcrumb,.wc-block-breadcrumbs) { margin-block:12px 24px; }
body.tls-enhanced-storefront:not(.home):not(.tls-shop-design):not(.tls-product-design) :is(main,.wp-block-post-content,.wp-site-blocks > .wp-block-group) > :is(h2,h3) {
 margin-block:clamp(24px,3vw,40px) 14px; text-wrap:balance;
}
body.tls-enhanced-storefront:not(.home):not(.tls-shop-design):not(.tls-product-design) :is(main,.wp-block-post-content,.wp-site-blocks > .wp-block-group) > .wp-block-image img { border-radius:12px; }
body.tls-enhanced-storefront :is(ul.products li.product,.wc-block-product,.wc-block-grid__product) :is(.woocommerce-loop-product__title,.wp-block-post-title,.wc-block-grid__product-title) { text-wrap:balance; }
body.tls-enhanced-shell footer.wp-block-template-part { border-top:1px solid rgba(255,255,255,.13); }
body.tls-enhanced-shell footer.wp-block-template-part :is(h2,h3,h4) { margin-bottom:14px; }
@media (prefers-reduced-motion:no-preference) and (hover:hover) and (pointer:fine) {
 body.tls-enhanced-storefront :is(ul.products li.product,.wc-block-product,.wc-block-grid__product),
 body.tls-enhanced-storefront.home .tls-product-cards .service-box { transition:box-shadow 180ms ease,transform 180ms ease; }
 body.tls-enhanced-storefront :is(ul.products li.product,.wc-block-product,.wc-block-grid__product):hover,
 body.tls-enhanced-storefront.home .tls-product-cards .service-box:hover { box-shadow:var(--tls-depth-hover); transform:translateY(-2px); }
 body.tls-enhanced-storefront :is(ul.products li.product a.woocommerce-loop-product__link img,.wc-block-components-product-image img,.wc-block-grid__product-image img) { transition:transform 220ms ease; }
 body.tls-enhanced-storefront :is(ul.products li.product a.woocommerce-loop-product__link:hover img,.wc-block-components-product-image:hover img,.wc-block-grid__product-image:hover img) { transform:scale(1.015); }
}
@media (max-width:600px) {
 body.tls-enhanced-shell { --tls-depth-radius:12px; --tls-depth-sm:0 3px 12px rgba(23,61,43,.07); }
 body.tls-enhanced-storefront :is(.woocommerce-breadcrumb,.wc-block-breadcrumbs) { margin-block:8px 16px; }
}

/* 0.4.1 — contrast repair and About Us editorial layout. */
body.home.tls-enhanced-shell .tls-home-banner .wp-block-button__link:not(:is([aria-disabled="true"],.disabled)) {
 background:#fff!important; color:#173d2b!important; border:2px solid #fff!important;
 box-shadow:0 3px 12px rgba(0,0,0,.12); text-decoration:none;
}
body.home.tls-enhanced-shell .tls-home-banner .wp-block-button__link:not(:is([aria-disabled="true"],.disabled)) :is(span,strong,b) {color:#173d2b!important;}
@media (hover:hover) {
 body.home.tls-enhanced-shell .tls-home-banner .wp-block-button__link:not(:is([aria-disabled="true"],.disabled)):hover {background:#edf3e9!important;color:#173d2b!important;border-color:#edf3e9!important;}
}
body.home.tls-enhanced-shell .tls-home-banner .wp-block-button__link:focus-visible {outline:2px solid #fff!important;outline-offset:4px;}
/* Scope contrast correction to the dark cover, not the separate copyright strip. */
body.tls-enhanced-shell footer.wp-block-template-part .wp-block-cover {color:#f5f8f5!important;}
body.tls-enhanced-shell footer.wp-block-template-part .wp-block-cover .wp-block-cover__inner-container :is(h1,h2,h3,h4,h5,h6,.wp-block-heading,p,a,li,span,strong,b,em,small,div,label,mark,i) {color:#f5f8f5!important;}
body.tls-enhanced-shell footer.wp-block-template-part .wp-block-cover .wp-block-cover__inner-container :is(h1,h2,h3,h4,h5,h6,.wp-block-heading) {color:#fff!important;}
body.tls-enhanced-shell footer.wp-block-template-part .wp-block-cover .wp-block-cover__inner-container mark {background:transparent!important;}
body.tls-enhanced-shell footer.wp-block-template-part .wp-block-cover .wp-block-cover__inner-container a {text-decoration-color:currentColor!important;}
body.tls-enhanced-shell footer.wp-block-template-part .wp-block-cover .wp-block-cover__inner-container a:hover,
body.tls-enhanced-shell footer.wp-block-template-part .wp-block-cover .wp-block-cover__inner-container a:hover :is(span,strong,b,i) {color:#c4e5c8!important;}
body.tls-enhanced-shell footer.wp-block-template-part .wp-block-cover .wp-block-cover__inner-container :is(hr,.wp-block-separator) {border-color:#8eb59c!important;opacity:1!important;}
body.tls-enhanced-shell footer.wp-block-template-part .wp-block-cover .wp-block-cover__inner-container svg:not(.wp-block-social-link svg) {color:#f5f8f5!important;}
body.tls-enhanced-shell footer.wp-block-template-part .wp-block-cover .wp-block-cover__inner-container svg:not(.wp-block-social-link svg) [fill]:not([fill="none"]) {fill:currentColor!important;}
body.tls-enhanced-shell footer.wp-block-template-part .wp-block-cover .wp-block-cover__inner-container svg:not(.wp-block-social-link svg) [stroke]:not([stroke="none"]) {stroke:currentColor!important;}
body.tls-enhanced-shell footer.wp-block-template-part .wp-block-cover .wp-block-cover__inner-container :is(a[href^="tel:"],a[href^="mailto:"]) img {filter:brightness(0) invert(1);}
/* Keep the separate non-cover copyright strip readable on its own surface. */
body.tls-enhanced-shell footer.wp-block-template-part > :is(.wp-block-group,.wp-block-columns):not(:has(.wp-block-cover)) {background:#fff!important;color:#173d2b!important;}
body.tls-enhanced-shell footer.wp-block-template-part > :is(.wp-block-group,.wp-block-columns):not(:has(.wp-block-cover)) :is(p,a,span,strong,small) {color:#173d2b!important;}
/* About Us: existing text, imagery and embeds retained; template-aware. */
body.tls-about-design :is(main,.wp-block-post-content,.wp-site-blocks > .wp-block-group):not(:is(header *,footer *)) {box-sizing:border-box;}
body.tls-about-design :is(main,.wp-block-post-content,.wp-site-blocks > .wp-block-group):not(:is(header *,footer *)) :is(h1,h2,h3):not(.wp-block-cover *) {color:#173d2b;line-height:1.2;}
body.tls-about-design :is(main,.wp-block-post-content,.wp-site-blocks > .wp-block-group) h1:not(.wp-block-cover *) {font-size:clamp(36px,4.2vw,60px)!important;margin-block:0 24px!important;}
body.tls-about-design :is(main,.wp-block-post-content,.wp-site-blocks > .wp-block-group) p:not(.wp-block-cover *) {font-size:clamp(16px,1.15vw,18px);line-height:1.7;max-width:68ch;}
body.tls-about-design :is(main,.wp-block-post-content,.wp-site-blocks > .wp-block-group) .wp-block-columns:not(:is(header *,footer *, .wp-block-cover *)) {max-width:1280px; margin-inline:auto!important;gap:clamp(20px,3vw,40px)!important;align-items:flex-start!important;}
body.tls-about-design :is(main,.wp-block-post-content,.wp-site-blocks > .wp-block-group) .wp-block-columns > .wp-block-column:not(:is(header *,footer *, .wp-block-cover *)) {min-width:0;align-self:flex-start!important;}
body.tls-about-design :is(main,.wp-block-post-content,.wp-site-blocks > .wp-block-group) :is(.wp-block-image img,.wp-block-video video):not(:is(header *,footer *)) {max-width:100%;height:auto;border-radius:12px;box-shadow:var(--tls-depth-sm);}
body.tls-about-design :is(main,.wp-block-post-content,.wp-site-blocks > .wp-block-group) .wp-block-image:not(:is(header *,footer *)) {margin-block:0 16px;}
@media (max-width:781px) {
 body.tls-about-design :is(main,.wp-block-post-content,.wp-site-blocks > .wp-block-group) .wp-block-columns:not(:is(header *,footer *, .wp-block-cover *)) {gap:20px!important;}
}

/* 0.4.2 — explicit hero exception and neutral About Us surfaces. */
body.home.tls-enhanced-shell.tls-enhanced-storefront .tls-home-banner .wp-block-button a.wp-block-button__link:not(.disabled):not([aria-disabled="true"]) {
 background: #fff !important; color: #173d2b !important; border-color: #fff !important;
}
body.home.tls-enhanced-shell.tls-enhanced-storefront .tls-home-banner .wp-block-button a.wp-block-button__link :is(span,strong,b) {color:#173d2b!important;}
@media (hover:hover) {
 body.home.tls-enhanced-shell.tls-enhanced-storefront .tls-home-banner .wp-block-button a.wp-block-button__link:not(.disabled):not([aria-disabled="true"]):hover {background:#edf3e9!important;color:#173d2b!important;border-color:#edf3e9!important;}
}
body.tls-enhanced-storefront.tls-about-design {background-color:#f4f7f4!important;}
/* Only About Us content containers; do not recolour navigation, footer, images or buttons. */
body.tls-enhanced-storefront.tls-about-design :is(.wp-site-blocks,main,.wp-block-post-content,.wp-site-blocks > .wp-block-group,.wp-site-blocks > .wp-block-columns,.wp-site-blocks > .wp-block-cover:not(:has(.wp-block-cover__image-background))):not(:is(header,footer,header *,footer *)) {background-color:#f4f7f4!important;}
body.tls-enhanced-storefront.tls-about-design :is(.wp-block-group,.wp-block-columns,.wp-block-column,.wp-block-cover__inner-container):is(.has-background,[style*="background-color"],[style*="background:"]):not(:is(header *,footer *, .wp-block-cover:has(.wp-block-cover__image-background) *)) {background-color:#f4f7f4!important;}
body.tls-enhanced-storefront.tls-about-design .wp-block-cover:not(:has(.wp-block-cover__image-background,.wp-block-cover__video-background)):not(:is(header *,footer *)) > .wp-block-cover__background {background-color:#f4f7f4!important;opacity:1!important;}
body.tls-enhanced-storefront.tls-about-design :is(main,.wp-block-post-content,.wp-site-blocks > .wp-block-group,.wp-site-blocks > .wp-block-columns,.wp-site-blocks > .wp-block-cover:not(:has(.wp-block-cover__image-background))) :is(h1,h2,h3):not(:is(header *,footer *, .wp-block-cover:has(.wp-block-cover__image-background) *)) {color:#173d2b!important;}
body.tls-enhanced-storefront.tls-about-design :is(main,.wp-block-post-content,.wp-site-blocks > .wp-block-group,.wp-site-blocks > .wp-block-columns,.wp-site-blocks > .wp-block-cover:not(:has(.wp-block-cover__image-background))) p:not(:is(header *,footer *, .wp-block-cover:has(.wp-block-cover__image-background) *)) {color:#33463b!important;}
