/*
Theme Name: Roof EGR
Description: Fast editorial theme for roofing reports, local pages, and estimate lead generation.
Version: 1.5.0
Requires at least: 6.5
Requires PHP: 8.0
Text Domain: roof-egr
*/
/* Theme-specific layer. Color, type, spacing, shadow, and motion values come
   from assets/css/egr-tokens.css (enqueued first) — see BRAND-DIRECTION.md.
   This file only maps those tokens onto this theme's actual markup. */

.screen-reader-text{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}
.egr-mobile-home,.egr-mobile-tabs,.egr-mobile-brand,.egr-mobile-estimator-bar{display:none}
.egr-wrap{width:min(calc(100% - 2 * var(--space-6)),var(--content-max-width));margin-inline:auto}
.egr-reading{width:min(calc(100% - 2 * var(--space-6)),var(--text-max-width));margin-inline:auto}

h1,h2,h3{font-family:var(--font-display);color:var(--ink);letter-spacing:-.04em;line-height:var(--leading-tight);font-weight:var(--weight-bold);font-variation-settings:normal}
h1{font-size:clamp(var(--text-5xl),7vw,var(--text-7xl));letter-spacing:var(--tracking-tighter);line-height:var(--leading-tight);font-weight:var(--weight-extrabold);font-variation-settings:'opsz' 144;margin:0 0 var(--space-4)}
h2{font-size:clamp(var(--text-4xl),4vw,var(--text-5xl))}
h3{font-size:var(--text-3xl)}

/* The signature structural element (see BRAND-DIRECTION.md) */
.gold-rule{display:block;width:48px;height:2px;background:var(--gold-400);margin-bottom:var(--space-4)}

.site-header{position:sticky;top:0;z-index:var(--z-sticky);border-bottom:1px solid var(--border-default);background:rgba(255,255,255,.88);backdrop-filter:blur(16px);-webkit-backdrop-filter:blur(16px)}
.site-header__inner{min-height:72px;display:flex;align-items:center;justify-content:space-between;gap:var(--space-6)}
.site-brand{display:inline-flex;align-items:center;gap:.7rem;color:var(--ink);font-weight:var(--weight-bold);letter-spacing:var(--tracking-tight);text-decoration:none;font-size:1.02rem;font-family:var(--font-body)}
.site-brand__mark{display:grid;place-items:center;width:36px;height:36px;border-radius:50%;background:var(--navy-700);color:var(--white);font:700 1rem var(--font-display);box-shadow:0 0 0 2px var(--gold-400)}
.egr-logo{display:inline-flex;flex:0 0 auto;align-items:center;line-height:0;text-decoration:none}
.egr-logo svg{display:block;width:210px;height:auto;overflow:visible}
.egr-logo--mobile-light{display:none}
.egr-logo--desktop-light{gap:var(--space-4)}
.egr-logo--desktop-light svg{width:118px}
.egr-logo__editorial{display:grid;width:196px;gap:6px;color:var(--navy-700);font-family:var(--font-body);line-height:1}
.egr-logo__editorial strong{font-size:13px;font-weight:var(--weight-bold);letter-spacing:0;text-transform:uppercase;white-space:nowrap}
.egr-logo__editorial>span{display:block;width:100%;height:1px;background:var(--gold-700)}
.egr-logo__editorial small{color:var(--stone);font-size:10px;font-weight:var(--weight-medium);letter-spacing:0;text-transform:uppercase;white-space:nowrap}
/* .site-nav is the inner <nav>, not the sticky bar (that's .site-header) — reset tokens.css's bar-level defaults */
.site-nav{position:static;background:none;backdrop-filter:none;border-bottom:0;box-shadow:none}
.site-nav ul{display:flex;align-items:center;gap:var(--space-6);margin:0;padding:0;list-style:none}
.site-nav a{color:var(--ink);font-size:var(--text-sm);font-weight:var(--weight-semibold);text-decoration:none}
.site-nav a:hover{color:var(--navy-700)}
.menu-toggle{display:none;border:0;background:transparent;color:var(--ink);font:inherit;font-weight:var(--weight-bold)}

.egr-button,.wp-block-button__link{display:inline-flex;align-items:center;justify-content:center;min-height:50px;padding:16px 32px;border:0;border-radius:var(--radius-full);background:var(--gold-400);color:var(--navy-900);font-family:var(--font-body);font-weight:var(--weight-semibold);font-size:var(--text-sm);text-decoration:none;box-shadow:var(--shadow-sm);transition:background var(--duration-fast) var(--ease-out),box-shadow var(--duration-fast) var(--ease-out),transform var(--duration-fast) var(--ease-out)}
.egr-button:hover,.wp-block-button__link:hover{background:var(--gold-500);box-shadow:var(--shadow-gold-glow);transform:translateY(-1px)}

.egr-kicker{margin-bottom:var(--space-4);color:var(--gold-700);font-family:var(--font-body);font-size:var(--text-xs);font-weight:var(--weight-semibold);letter-spacing:var(--tracking-wider);text-transform:uppercase}

.egr-section{padding:var(--section-pad-y) 0}
.egr-section--cream{background:var(--mist)}
.egr-section__head{display:flex;align-items:end;justify-content:space-between;gap:var(--space-8);margin-bottom:var(--space-10)}
.egr-section__head h2{max-width:720px;margin:0}
.egr-section__head>a{color:var(--navy-700);font-weight:var(--weight-semibold)}
.egr-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:var(--card-gap)}
.egr-card{padding:var(--space-6);border:1px solid var(--border-default);border-radius:var(--radius-lg);background:var(--white);box-shadow:var(--shadow-sm);transition:box-shadow var(--duration-base) var(--ease-out),transform var(--duration-base) var(--ease-out)}
.egr-card:hover{transform:translateY(-2px);box-shadow:var(--shadow-md)}
.egr-card h3{margin-top:var(--space-2)}
.egr-card h2 a,.egr-card h3 a{color:var(--ink);text-decoration:none}
.egr-card__meta{color:var(--stone);font-family:var(--font-body);font-size:var(--text-xs);font-weight:var(--weight-semibold);letter-spacing:var(--tracking-wide);text-transform:uppercase}
.egr-card__link{font-weight:var(--weight-semibold);color:var(--gold-700);text-decoration:none}
.egr-card__link:hover{color:var(--gold-600)}

.egr-band{position:relative;overflow:hidden;padding:var(--space-16) var(--space-10);border-radius:var(--radius-2xl);background:var(--gradient-hero);color:var(--white);box-shadow:var(--shadow-xl)}
.egr-band h2{margin-top:0;max-width:850px;color:var(--white)}
.egr-band p{max-width:650px;color:rgba(255,255,255,.82)}

.entry-header{padding:var(--space-24) 0 var(--space-8)}
.entry-header h1{overflow-wrap:anywhere;font-size:var(--text-6xl)}
.entry-meta{color:var(--stone);font-family:var(--font-body);font-size:var(--text-sm)}
.entry-content{padding:0 var(--space-6) var(--space-24);font-family:var(--font-body);font-size:var(--text-lg);line-height:1.7;color:var(--slate)}
.entry-content>*{box-sizing:border-box;width:100%;max-width:var(--text-max-width);margin-inline:auto}
.entry-content>.alignwide{max-width:var(--content-max-width)}
.entry-content>.alignfull{max-width:none}
.entry-content h2{margin-top:var(--space-16);margin-bottom:var(--space-4);font-size:2.5rem;line-height:1.15;color:var(--ink)}
.entry-content h3{margin-top:var(--space-10);margin-bottom:var(--space-3);font-size:var(--text-2xl);line-height:1.25;color:var(--ink)}
.entry-content p,.entry-content ol,.entry-content ul{margin-top:var(--space-4);margin-bottom:0}
.entry-content ol,.entry-content ul{padding-left:1.5rem}
.entry-content li+li{margin-top:var(--space-3)}
.entry-content blockquote{padding:.25rem 0 .25rem var(--space-6);border-left:2px solid var(--gold-400);font-family:var(--font-display);font-style:italic;color:var(--navy-700)}

.egr-estimate-layout{display:grid;grid-template-columns:minmax(250px,300px) minmax(0,1fr);gap:clamp(32px,5vw,64px);align-items:start}
.egr-estimate-intro{position:sticky;top:104px;padding-top:var(--space-4)}
.egr-estimate-intro h2{margin:0;font-size:clamp(2rem,3vw,2.75rem);letter-spacing:0}
.egr-estimate-intro>p:not(.egr-kicker):not(.egr-estimate-private){color:var(--slate);font-size:var(--text-base);line-height:1.55}
.egr-estimate-steps{display:grid;gap:0;margin:var(--space-8) 0;padding:0;list-style:none;border-top:1px solid var(--border-default)}
.egr-estimate-steps li{display:grid;grid-template-columns:28px 1fr;gap:12px;align-items:start;padding:15px 0;border-bottom:1px solid var(--border-default)}
.egr-estimate-steps>li>span{display:grid;width:24px;height:24px;place-items:center;border-radius:50%;background:var(--navy-900);color:var(--white);font-size:11px;font-weight:var(--weight-bold)}
.egr-estimate-steps div{display:grid;gap:3px}.egr-estimate-steps strong{color:var(--ink);font-size:14px}.egr-estimate-steps small{color:var(--stone);font-size:11px;line-height:1.4}
.egr-estimate-private{padding-left:12px;border-left:2px solid var(--gold-400);color:var(--stone);font-size:11px;line-height:1.45}
.egr-estimator{margin:0 auto var(--space-20);padding:clamp(1rem,2vw,var(--space-6));border:1px solid var(--border-default);border-top:3px solid var(--gold-400);border-radius:8px;background:var(--white);box-shadow:var(--shadow-md)}
.egr-estimator .re-intro{display:none}
.egr-estimate-layout:has(.re-app.has-property){grid-template-columns:1fr}
.egr-estimate-layout:has(.re-app.has-property) .egr-estimate-intro{display:none}
#estimate{padding-top:var(--space-8)}
#estimate.has-result{padding-bottom:var(--space-8)}
#estimate.has-result .egr-estimator{margin-bottom:0}
.egr-notice{padding:var(--space-4);border-left:4px solid var(--gold-700);background:var(--gold-50);color:var(--ink)}
.egr-estimate-follow-up[hidden]{display:none}
.egr-estimate-follow-up{padding:var(--space-16) 0;background:var(--navy-900);color:rgba(255,255,255,.74)}
.egr-follow-up__inner{display:grid;gap:var(--space-10)}
.egr-follow-up__intro{max-width:820px}.egr-follow-up__intro h2{margin:.35rem 0 var(--space-6);color:var(--white)}
.egr-follow-up__summary{padding:var(--space-5) 0 var(--space-6);border-top:1px solid rgba(255,255,255,.22);border-bottom:1px solid rgba(255,255,255,.22)}
.egr-follow-up__label{margin:0 0 var(--space-2);color:var(--gold-400);font-size:var(--text-xs);font-weight:var(--weight-bold);letter-spacing:var(--tracking-wider);text-transform:uppercase}
.egr-follow-up__range{margin:0;color:var(--white);font-size:clamp(2rem,5vw,3.5rem);font-weight:var(--weight-extrabold);line-height:1.05}
.egr-follow-up__basis{max-width:720px;margin:var(--space-3) 0 0;color:rgba(255,255,255,.74);font-size:var(--text-base);line-height:1.6}
.egr-follow-up__grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:var(--space-8)}
.egr-follow-up__grid>div{padding-top:var(--space-5);border-top:1px solid rgba(255,255,255,.22)}.egr-follow-up__grid span{color:var(--gold-400);font-size:var(--text-xs);font-weight:var(--weight-bold)}.egr-follow-up__grid h3{margin:var(--space-2) 0;color:var(--white);font-size:var(--text-xl);letter-spacing:0}.egr-follow-up__grid p{margin:0;line-height:1.6}
.egr-follow-up__action{display:flex;align-items:center;gap:var(--space-6)}.egr-follow-up__action p{max-width:560px;margin:0;font-size:var(--text-sm)}

.site-footer{padding:var(--space-12) 0;background:var(--navy-900);color:rgba(255,255,255,.65);font-family:var(--font-body);font-size:var(--text-sm)}
.site-footer strong{color:var(--white)}
.site-footer__inner{display:flex;justify-content:space-between;align-items:center;gap:var(--space-8)}
.site-footer a{color:var(--white)}
.site-footer a:hover{color:var(--gold-400)}

@keyframes egr-sheen{0%,70%{transform:translateX(-100%)}90%,100%{transform:translateX(100%)}}
@media(prefers-reduced-motion:reduce){.egr-hero::before{animation:none}}

@media(max-width:960px){
.site-header__inner{position:relative;min-height:64px;justify-content:flex-start}
.egr-logo--desktop-light{display:none}
.egr-mobile-brand{display:flex;align-items:center;gap:10px;color:var(--ink);text-decoration:none}
.egr-mobile-brand img{width:36px;height:36px;border-radius:8px}
.egr-mobile-brand span{display:grid;gap:1px;line-height:1.1}
.egr-mobile-brand strong{font-size:15px;letter-spacing:0}
.egr-mobile-brand small{color:var(--stone);font-size:10px;font-weight:var(--weight-medium);letter-spacing:0}
.menu-toggle{display:grid;position:absolute;right:0;width:44px;height:44px;padding:0;place-items:center;border:1px solid var(--border-default);border-radius:8px;background:var(--white)}
.menu-toggle svg{display:block;width:22px;height:22px}
.menu-toggle__close{display:none}
.menu-toggle[aria-expanded="true"] .menu-toggle__open{display:none}
.menu-toggle[aria-expanded="true"] .menu-toggle__close{display:block}
.site-nav{display:none;position:absolute;inset:64px 0 auto;padding:var(--space-3);border:1px solid var(--border-default);border-top:0;border-radius:0 0 8px 8px;background:var(--white);box-shadow:var(--shadow-lg)}
.site-nav.is-open{display:block}
.site-nav ul{align-items:stretch;flex-direction:column;gap:0}
.site-nav a{display:block;padding:14px 12px;border-bottom:1px solid var(--border-default)}
.site-nav li:last-child a{border-bottom:0}
}

@media(min-width:769px) and (max-width:999px){.egr-estimate-layout{grid-template-columns:1fr}.egr-estimate-intro{position:static;display:grid;grid-template-columns:1fr 1fr;gap:24px}.egr-estimate-steps{grid-column:2;grid-row:1 / span 4;margin:0}.egr-estimate-private{grid-column:1}.egr-estimator{width:100%}}

@media(max-width:768px){
.egr-grid{grid-template-columns:1fr}
.egr-section__head,.site-footer__inner{align-items:flex-start;flex-direction:column}
}

@media(max-width:420px){.egr-logo--mobile-light svg{width:200px}}

/* Editorial and source-first content patterns. */
.egr-breadcrumbs{display:flex;flex-wrap:wrap;gap:.55rem;margin-bottom:var(--space-6);color:var(--stone);font:var(--text-sm)/1.4 var(--font-body)}
.egr-breadcrumbs a{color:var(--navy-700);text-decoration:none}.entry-reviewed{margin-top:var(--space-4);color:var(--stone);font:var(--text-sm)/1.4 var(--font-body)}
.entry-content>.egr-answer{max-width:var(--text-max-width);margin-top:0;padding:var(--space-6);border-left:3px solid var(--gold-400);background:var(--gold-50);color:var(--ink);font-size:var(--text-lg);font-weight:var(--weight-medium)}
.entry-content table{width:100%;max-width:var(--content-max-width);border-collapse:collapse;margin-block:var(--space-8);font-size:var(--text-base)}
.entry-content th,.entry-content td{padding:var(--space-3) var(--space-4);border-bottom:1px solid var(--border-default);text-align:left;vertical-align:top}.entry-content th{color:var(--ink);font-weight:var(--weight-semibold)}
.entry-content .egr-source-note{padding:var(--space-4) var(--space-5);border:1px solid var(--border-default);border-radius:var(--radius-lg);background:var(--mist);color:var(--slate);font-size:var(--text-sm)}
.entry-content .egr-next-step{margin-top:var(--space-12);padding:var(--space-8);border-radius:var(--radius-2xl);background:var(--navy-900);color:rgba(255,255,255,.8)}.entry-content .egr-next-step h2{margin:0 0 var(--space-3);font-size:var(--text-4xl);color:#fff}.entry-content .egr-next-step p{margin-top:0}.entry-content .egr-next-step a{color:var(--gold-400)}
.entry-content>.egr-case-metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:var(--space-6);margin-top:var(--space-8);margin-bottom:var(--space-10)}.egr-case-metrics>div{padding:var(--space-4) 0;border-top:3px solid var(--gold-400)}.egr-case-metrics span,.egr-case-metrics small{display:block;color:var(--stone);font-size:var(--text-sm)}.egr-case-metrics strong{display:block;margin:.35rem 0;color:var(--ink);font-size:var(--text-3xl);line-height:1.1}.egr-inline-case{padding:var(--space-4) 0;border-top:1px solid var(--border-default);border-bottom:1px solid var(--border-default);color:var(--ink)}
.egr-weather{width:min(calc(100% - 2rem),var(--wide));margin:var(--space-16) auto;padding:var(--space-8);border:1px solid var(--border-default);border-radius:var(--radius-2xl);background:var(--white)}
.egr-weather__intro{max-width:720px}.egr-weather__intro h2{margin:.3rem 0 var(--space-3)}.egr-weather__intro>p:last-child{color:var(--slate)}
.egr-weather__periods{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:var(--space-4);margin-top:var(--space-8)}.egr-weather__period{padding:var(--space-5);border-top:2px solid var(--gold-400);background:var(--mist)}
.egr-weather__period h3{margin:0 0 var(--space-3);font-size:var(--text-lg)}.egr-weather__temp{margin:0;color:var(--navy-700);font-size:var(--text-3xl);font-weight:var(--weight-bold)}.egr-weather__period dl{margin-top:var(--space-4);font-size:var(--text-sm)}.egr-weather__period dl div{display:flex;justify-content:space-between;gap:var(--space-3);padding-top:var(--space-2)}.egr-weather__period dt{color:var(--stone)}.egr-weather__period dd{margin:0;color:var(--ink);font-weight:var(--weight-medium)}.egr-weather__source,.egr-weather__empty{margin-top:var(--space-5);color:var(--stone);font-size:var(--text-sm)}
@media(max-width:768px){.entry-header{padding:var(--space-12) 0 var(--space-6)}.entry-header h1{font-size:var(--text-5xl)}.entry-content{padding-inline:var(--space-4);font-size:var(--text-base)}.entry-content h2{margin-top:var(--space-12);font-size:2rem}.entry-content ol,.entry-content ul{padding-left:1.25rem}.entry-content .egr-next-step{margin-top:var(--space-10);padding:var(--space-6)}.entry-content .egr-next-step h2{font-size:var(--text-3xl)}.entry-content>.egr-case-metrics{grid-template-columns:1fr;gap:var(--space-3)}.entry-content table{table-layout:fixed;font-size:.8125rem}.entry-content th,.entry-content td{padding:var(--space-2);overflow-wrap:anywhere}.egr-weather{padding:var(--space-5)}.egr-weather__periods{grid-template-columns:1fr}}
.egr-section-lead{max-width:760px;color:var(--slate);font-size:var(--text-lg)}
.egr-split{display:grid;grid-template-columns:minmax(0,1.4fr) minmax(280px,.8fr);gap:var(--space-16);align-items:start}.egr-split h2{margin-top:0}.egr-checklist{margin:0;padding:var(--space-6);list-style:none;border-left:2px solid var(--gold-400);background:var(--white)}.egr-checklist li{position:relative;padding:.7rem 0 .7rem 1.5rem;border-bottom:1px solid var(--border-default)}.egr-checklist li::before{position:absolute;left:0;color:var(--gold-700);content:'✓';font-weight:700}.egr-checklist li:last-child{border-bottom:0}
.egr-fact-list{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:var(--space-8)}.egr-fact-list p{margin:0;padding-top:var(--space-4);border-top:2px solid var(--navy-100);color:var(--slate)}.egr-fact-list strong{display:block;margin-bottom:var(--space-2);color:var(--ink)}
.egr-link-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));border-top:1px solid var(--border-default)}.egr-link-list a{display:flex;align-items:center;justify-content:space-between;gap:var(--space-4);padding:var(--space-5) var(--space-3);border-bottom:1px solid var(--border-default);color:var(--navy-700);font-weight:var(--weight-semibold);text-decoration:none;transition:background var(--duration-fast) var(--ease-out),color var(--duration-fast) var(--ease-out),padding var(--duration-fast) var(--ease-out)}.egr-link-list a::after{content:'→';flex:0 0 auto;color:var(--gold-700);font-size:1.15em}.egr-link-list a:hover{padding-inline:var(--space-4);background:var(--gold-50);color:var(--navy-900)}.egr-link-list a:nth-child(odd){margin-right:var(--space-8)}
.entry-content a:not(.wp-block-button__link),.egr-section__head>a,.egr-split>div>a,.egr-band>a,.egr-weather__source a{color:var(--navy-700);font-weight:var(--weight-semibold);text-decoration-line:underline;text-decoration-color:var(--gold-400);text-decoration-thickness:2px;text-underline-offset:4px;transition:color var(--duration-fast) var(--ease-out),text-decoration-color var(--duration-fast) var(--ease-out)}
.entry-content a:not(.wp-block-button__link):hover,.egr-section__head>a:hover,.egr-split>div>a:hover,.egr-weather__source a:hover{color:var(--gold-700);text-decoration-color:currentColor}
.egr-band>a{display:inline-block;margin-top:var(--space-4);color:var(--gold-400)}.egr-band>a:hover{color:var(--white);text-decoration-color:var(--white)}
.entry-content .egr-next-step a{color:var(--gold-400)}
.entry-content a:focus-visible,.egr-section a:focus-visible,.egr-weather a:focus-visible{outline:3px solid rgba(255,205,0,.5);outline-offset:4px}
@media(max-width:768px){.egr-split,.egr-fact-list,.egr-link-list,.egr-follow-up__grid{grid-template-columns:1fr}.egr-link-list a:nth-child(odd){margin-right:0}.egr-follow-up__action{align-items:flex-start;flex-direction:column}}
@media(max-width:420px){.entry-header h1{font-size:var(--text-4xl)}}

/* Mobile application shell. Desktop keeps the editorial layout above. */
@media(max-width:768px){
html{scroll-padding-bottom:76px}
body{padding-bottom:calc(68px + env(safe-area-inset-bottom));background:#f3f6fa}
body.egr-estimator-focus{padding-bottom:0;background:var(--white)}
.site-header{background:rgba(255,255,255,.96)}
.egr-wrap{width:min(calc(100% - 32px),var(--content-max-width))}
body.home .egr-hero{display:none!important}
.egr-estimate-intro{display:none}

.egr-mobile-home{display:block;padding:28px 16px 20px;background:var(--white)}
.egr-mobile-home__intro{max-width:520px;margin:0 auto}
.egr-mobile-home__location{display:flex;align-items:center;gap:6px;margin:0 0 14px;color:var(--navy-700);font-size:12px;font-weight:var(--weight-bold)}
.egr-mobile-home__location svg{width:16px;height:16px;color:var(--gold-700)}
.egr-mobile-home h1{max-width:340px;margin:0 0 10px;font-size:38px;line-height:1.04;letter-spacing:0}
.egr-mobile-home__intro>p:not(.egr-mobile-home__location):not(.egr-mobile-home__privacy){max-width:390px;margin:0;color:var(--slate);font-size:15px;line-height:1.55}
.egr-mobile-home__primary{display:flex;min-height:76px;align-items:center;justify-content:space-between;gap:14px;margin-top:22px;padding:14px 16px;border-radius:8px;background:var(--navy-900);color:var(--white);text-decoration:none;box-shadow:var(--shadow-md)}
.egr-mobile-home__primary>span{display:grid;grid-template-columns:28px 1fr;column-gap:10px;align-items:center}
.egr-mobile-home__primary>span>svg{grid-row:1 / 3;width:24px;height:24px;color:var(--gold-400)}
.egr-mobile-home__primary strong{font-size:16px;letter-spacing:0}
.egr-mobile-home__primary small{margin-top:3px;color:rgba(255,255,255,.68);font-size:11px;line-height:1.25}
.egr-mobile-home__primary>svg{flex:0 0 auto;color:var(--gold-400)}
.egr-mobile-home__privacy{margin:10px 0 0;color:var(--stone);font-size:11px;text-align:center}
.egr-mobile-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;max-width:520px;margin:24px auto 0}
.egr-mobile-actions a{display:flex;min-width:0;min-height:88px;align-items:flex-start;gap:10px;padding:14px;border:1px solid var(--border-default);border-radius:8px;background:#f8fafc;color:var(--ink);text-decoration:none}
.egr-mobile-actions>a>svg{flex:0 0 auto;width:21px;height:21px;color:var(--navy-700)}
.egr-mobile-actions span{display:grid;min-width:0;gap:4px}
.egr-mobile-actions strong{font-size:14px;letter-spacing:0}
.egr-mobile-actions small{color:var(--stone);font-size:11px;line-height:1.3}

body.home main>.egr-section:not(#estimate):not(#reports){display:none}
body.home #egr-estimate-follow-up{display:none!important}
#estimate{display:none}
#estimate:target{display:block}
#reports{padding:32px 0;background:var(--white)}
#reports .egr-section__head{margin-bottom:16px}
#reports .egr-kicker{margin-bottom:7px}
#reports h2{font-size:25px;letter-spacing:0}
#reports .egr-link-list{display:grid;gap:8px;border-top:0}
#reports .egr-link-list a{min-height:54px;padding:12px;border:1px solid var(--border-default);border-radius:8px;background:#f8fafc;font-size:13px;line-height:1.35}

.egr-weather{width:100%;margin:0;padding:32px 16px;border:0;border-radius:0;background:#eef3f8}
.egr-weather__intro{max-width:520px;margin:0 auto}
.egr-weather__intro .egr-kicker{margin-bottom:7px}
.egr-weather__intro h2{margin:0 0 8px;font-size:25px;letter-spacing:0}
.egr-weather__intro>p:last-child{margin:0;font-size:13px;line-height:1.5}
.egr-weather__periods{display:flex;gap:10px;max-width:520px;margin:18px auto 0;overflow-x:auto;scroll-snap-type:x mandatory;scrollbar-width:none}
.egr-weather__periods::-webkit-scrollbar{display:none}
.egr-weather__period{flex:0 0 min(82%,300px);min-height:190px;padding:16px;border-radius:8px;scroll-snap-align:start}
.egr-weather__source,.egr-weather__empty{max-width:520px;margin:14px auto 0;font-size:11px;line-height:1.45}

.egr-mobile-tabs{position:fixed;z-index:1000;right:0;bottom:0;left:0;display:grid;height:calc(68px + env(safe-area-inset-bottom));grid-template-columns:repeat(4,1fr);padding:7px 8px env(safe-area-inset-bottom);border-top:1px solid var(--border-default);background:rgba(255,255,255,.96);box-shadow:0 -5px 20px rgba(0,20,51,.08);backdrop-filter:blur(16px);-webkit-backdrop-filter:blur(16px)}
.egr-mobile-tabs a{display:grid;min-width:0;place-items:center;align-content:center;gap:3px;border-radius:8px;color:var(--stone);font-size:10px;font-weight:var(--weight-semibold);line-height:1;text-decoration:none}
.egr-mobile-tabs svg{width:21px;height:21px}
.egr-mobile-tabs a[aria-current="page"],.egr-mobile-tabs a:focus-visible{background:var(--gold-50);color:var(--navy-900)}

.site-footer{padding:26px 0;background:var(--navy-900);font-size:11px}
.site-footer__inner{gap:12px}

body.egr-estimator-focus .site-header,
body.egr-estimator-focus .egr-mobile-home,
body.egr-estimator-focus .egr-hero,
body.egr-estimator-focus .egr-mobile-tabs,
body.egr-estimator-focus .site-footer,
body.egr-estimator-focus main>section:not(#estimate){display:none!important}
body.egr-estimator-focus #estimate{display:block;min-height:100dvh;padding:0;background:var(--white)}
.egr-mobile-estimator-bar{position:sticky;z-index:50;top:0;height:58px;align-items:center;grid-template-columns:44px 1fr auto;gap:10px;padding:7px 12px;border-bottom:1px solid var(--border-default);background:rgba(255,255,255,.97);backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px)}
body.egr-estimator-focus .egr-mobile-estimator-bar{display:grid}
.egr-mobile-estimator-close{display:grid;width:44px;height:44px;padding:0;place-items:center;border:0;border-radius:8px;background:#eef3f8;color:var(--navy-900)}
.egr-mobile-estimator-close svg{width:21px;height:21px}
.egr-mobile-estimator-bar>div{display:grid;gap:1px;line-height:1.1}
.egr-mobile-estimator-bar strong{font-size:14px;letter-spacing:0}
.egr-mobile-estimator-bar small{color:var(--stone);font-size:10px}
.egr-mobile-estimator-secure{padding:5px 7px;border-radius:4px;background:#edf7f1;color:#176557;font-size:10px;font-weight:var(--weight-bold);text-transform:uppercase}
#estimate>.egr-wrap{width:100%}
#estimate>.egr-wrap>.egr-kicker,#estimate>.egr-wrap>h2,#estimate>.egr-wrap>.egr-section-lead{display:none}
.egr-estimator{margin:0;padding:0;border:0;border-radius:0;background:var(--white);box-shadow:none}
.egr-estimator .re-app{--re-accent:var(--navy-700);--re-accent-dark:var(--navy-900);--re-soft:#f3f6fa;--re-border:#dce3eb;--re-text:var(--ink);--re-muted:var(--slate)}
.egr-estimator .re-progress-wrap{top:58px}
.egr-estimator .re-progress-fill{background:var(--gold-400)}
.egr-estimator .re-btn-primary{border-color:var(--navy-900);background:var(--navy-900)}
.egr-estimator .re-btn-primary:hover{background:var(--navy-700)}
.egr-estimator .re-pill-option:checked+label,.egr-estimator .re-product-option:checked+.re-product-card{border-color:var(--navy-700);background:var(--gold-50);box-shadow:inset 0 0 0 1px var(--navy-700)}
.egr-estimator .re-app.is-outline-editing .re-property-map{top:113px}
}

@media(max-width:340px){
.egr-mobile-home h1{font-size:34px}
.egr-mobile-actions{grid-template-columns:1fr}
.egr-mobile-actions a{min-height:66px;align-items:center}
}
