/* Scoped polish: no frozen page layout changes. */
/* Item 13 only on approved About/Gallery: preserve content and composition. */
body.w27-polish-preserved-cta :is(.td-header-actions,main .td27-actions):has(>a[href^="tel:"]):has(>a[href*="free-estimate"]) { display:grid!important; grid-template-columns:repeat(2,minmax(0,1fr)); align-items:stretch; gap:.8rem; }
body.w27-polish-preserved-cta :is(.td-header-actions,main .td27-actions)>a { position:relative; display:flex!important; justify-content:center; align-items:center; width:100%; min-width:0; min-height:60px; height:auto; margin:0!important; border-radius:999px; text-align:center; padding:.8rem 2.2rem!important; line-height:1.3; box-sizing:border-box; }
body.w27-polish-preserved-cta main .td27-actions>a>span[aria-hidden="true"] { position:absolute; right:1rem; top:50%; transform:translateY(-50%); }
body.w27-polish-preserved-cta .td-mobile-cta { grid-template-columns:repeat(2,minmax(0,1fr)); }
body.w27-polish-preserved-cta .td-mobile-cta>a { width:100%; min-width:0; }
body.w27-final-visual main .w27-roi-disclosure { color:#203c2e!important; background:#f4ecdc; padding:1.25rem 1.4rem; margin:1rem 0 0; border:1px solid #9cae99; border-left:5px solid #745035; border-radius:.75rem; font-size:1rem; line-height:1.7; opacity:1; max-width:80ch; }
body.w27-final-visual main .td-calculator__result>span { display:block; overflow-wrap:anywhere; }
@media(min-width:768px) and (max-width:1024px) {
 body.w27-final-visual main :is(.td27-actions,.tdscreen-prelaunch-form__actions):has(>a[href^="tel:"])>:is(a,button) { min-height:72px!important; height:72px!important; font-size:1rem!important; padding:.65rem 2.25rem!important; line-height:1.3; }
}
@media(max-width:767px) {
 body.w27-polish-preserved-cta main .td27-actions:has(>a[href^="tel:"]) { grid-template-columns:1fr; }
 body.w27-polish-preserved-cta main .td27-actions>a { flex:0 0 auto!important; height:60px!important; }
 body.w27-final-visual main .td27-actions:has(>a[href^="tel:"])>a { flex:0 0 auto!important; min-height:60px!important; height:60px!important; max-height:60px; }
 body.w27-final-visual .td27-estimate-page .td27-actions>a { position:relative; display:flex; align-items:center; justify-content:center; text-align:center; padding:.65rem 2.25rem!important; }
 body.w27-final-visual .td27-estimate-page .td27-actions>a>span[aria-hidden="true"] { position:absolute; right:1rem; top:50%; transform:translateY(-50%); }
 body.w27-final-visual .td27-estimate-page .td27-hero { padding-top:0; }
 body.w27-final-visual .td27-estimate-page .td27-hero-intro h1 { overflow:visible; height:auto; line-height:1.12; }
 body.w27-final-visual .td27-estimate-page .td27-hero-actions .td27-actions--form-primary { display:none!important; }
 body.w27-final-visual .td27-estimate-page .td27-hero-actions { display:block!important; margin-top:1rem; }
 body.w27-final-visual .td27-estimate-page .td27-hero-actions .td27-rating { margin:0; }
 body.w27-final-visual .td27-estimate-page .td27-estimate-form-wrap { scroll-margin-top:110px; }
 body.w27-final-visual .td27-estimate-page .tdscreen-prelaunch-form__actions>:is(a,button) { min-height:60px!important; height:60px!important; max-height:60px; font-size:.9rem; padding:.65rem 2.25rem!important; }
}

/* Free Estimate narrow tablet CTA component: preserve the surrounding layout. */
@media(min-width:767px) and (max-width:800px) {
 body.w27-final-visual .td27-estimate-page :is(.td27-actions,.tdscreen-prelaunch-form__actions):has(>a[href^="tel:"])>:is(a[href],button[type="submit"]) { position:relative; flex:0 0 auto!important; min-height:72px!important; height:72px!important; max-height:72px; min-width:0; box-sizing:border-box; padding:.65rem 2.25rem!important; line-height:1.3; white-space:normal; }
 body.w27-final-visual .td27-estimate-page .tdscreen-prelaunch-form__actions:has(>a[href^="tel:"]) { grid-template-columns:minmax(0,1fr)!important; grid-auto-rows:72px; gap:.8rem; }
}

/* Keep the close control clear of the WordPress toolbar in Owner previews. */
body.admin-bar .td-primary-nav__panel.is-menu-open .td-primary-nav__close { top:calc(1.2rem + var(--wp-admin--admin-bar--height,32px)); z-index:2; }


/* Owner request, October 6: warm beige navigation with readable, calm typography.
   This sheet is Sandbox-only and is not enqueued on the three frozen Ads pages. */
.td-site-header .td-primary-nav__panel.is-menu-open { background:var(--td-color-warm-beige,#f3eee5)!important; color:var(--td-color-ink,#142d25)!important; }
.td-primary-nav__panel.is-menu-open .td-primary-nav__dialog { color:var(--td-color-ink,#142d25); }
.td-primary-nav__panel.is-menu-open .td-primary-nav__list a { color:var(--td-color-ink,#142d25)!important; border-color:var(--td-color-warm-line,#d9d0c3)!important; padding-block:1.25rem; min-height:94px; letter-spacing:normal; text-shadow:none; transition:background-color 160ms ease; }
.td-primary-nav__panel.is-menu-open .td-menu-title { color:var(--td-color-ink,#142d25)!important; font-size:clamp(1.75rem,4.6vw,2.5rem); line-height:1.15; font-weight:700; letter-spacing:-.02em; }
.td-primary-nav__panel.is-menu-open .td-menu-subtitle { color:#3c5046!important; font-size:.9375rem; line-height:1.5; font-weight:450; letter-spacing:normal; margin-top:.45rem; }
.td-primary-nav__panel.is-menu-open :is(.td-menu-number,.td-menu-arrow) { color:#365b49!important; letter-spacing:normal; }
.td-primary-nav__panel.is-menu-open .td-menu-number { font-size:.75rem; }
.td-primary-nav__panel.is-menu-open .td-menu-trust { color:#3c5046!important; font-size:.9375rem; line-height:1.5; letter-spacing:normal; }
.td-primary-nav__panel.is-menu-open .td-primary-nav__close { color:var(--td-color-ink,#142d25)!important; background:var(--td-color-light-beige,#fcf9f3)!important; border-color:#b7b1a3!important; box-shadow:0 3px 12px rgb(20 45 37 / 6%); }
.td-primary-nav__panel.is-menu-open .td-primary-nav__list a:hover { color:var(--td-color-ink,#142d25)!important; background:#e9e0d3; }
.td-primary-nav__panel.is-menu-open :is(.td-primary-nav__list a,.td-primary-nav__close):focus-visible { outline:3px solid #365b49; outline-offset:4px; }
.td-primary-nav__panel.is-menu-open > .td-mobile-cta { background:var(--td-color-light-beige,#fcf9f3)!important; border-color:var(--td-color-warm-line,#d9d0c3)!important; box-shadow:0 -6px 22px rgb(20 45 37 / 7%); }
.td-primary-nav__panel.is-menu-open > .td-mobile-cta > a { box-shadow:0 4px 12px rgb(20 45 37 / 10%)!important; }
@media(prefers-reduced-motion:reduce) { .td-primary-nav__panel.is-menu-open .td-primary-nav__list a { transition:none; } }
