/* CarmaDeal Approval E — shared public-site visual system */
:root{
  --cde-ink:#071426;--cde-ink2:#0d223c;--cde-paper:#f6f4ef;--cde-card:#fff;
  --cde-blue:#3578f6;--cde-blue2:#205ad0;--cde-sky:#b9d8ff;--cde-mint:#7bd8ae;
  --cde-muted:#667387;--cde-line:rgba(7,20,38,.12);--cde-shadow:0 26px 80px rgba(3,12,25,.14);
  --cde-radius:24px;--cde-max:1180px;
}

/* Shared server-rendered chrome */
.cdh{background:rgba(8,21,37,.97)!important;border-bottom:1px solid rgba(255,255,255,.1)!important;color:#fff!important;box-shadow:0 12px 35px rgba(3,12,25,.12)}
.cdh-in{width:min(var(--cde-max),calc(100% - 36px))!important;min-height:72px!important}
.cdh-brand,.cdh-nav,.cdh-nav a,.cdh-signin{color:#fff!important}
.cdh-deal{color:#79c7f1!important}
.cdh-mark svg path:nth-of-type(4){stroke:#fff!important}.cdh-mark svg circle{fill:#fff!important}
.cdh-nav{font-size:.86rem!important;gap:24px!important}.cdh-nav a{opacity:.76}.cdh-nav a:hover{opacity:1;color:#fff!important}
.cdh-cta{border-radius:999px!important;background:#fff!important;color:var(--cde-ink)!important;box-shadow:none!important}
.cdh-cta:hover{background:#eaf2ff!important;color:var(--cde-ink)!important}
.cdh-burger{background:transparent!important;border-color:rgba(255,255,255,.3)!important}.cdh-burger span{background:#fff!important}
@media(max-width:880px){.cdh.cdh-open .cdh-nav{background:rgba(8,21,37,.985)!important;border-bottom-color:rgba(255,255,255,.1)!important}}

.cdf{background:#081525!important;color:#fff!important;border-top:0!important;margin-top:0!important}
.cdf-in{width:min(var(--cde-max),calc(100% - 36px))!important;padding:58px 0 28px!important}
.cdf .cdh-brand,.cdf .cdf-links a{color:#fff!important}.cdf .cdh-deal{color:#79c7f1!important}
.cdf .cdh-mark svg path:nth-of-type(4){stroke:#fff!important}.cdf .cdh-mark svg circle{fill:#fff!important}
.cdf-brand p,.cdf-legal{color:#9eacbd!important}.cdf-col h3{color:#b9d8ff!important}.cdf-links a{opacity:.78}.cdf-links a:hover{opacity:1;color:#fff!important}
.cdf-legal{border-top-color:rgba(255,255,255,.12)!important}

/* Common page surfaces */
body:has(.cdh){background:var(--cde-paper)!important;color:var(--cde-ink)!important;font-family:Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",sans-serif!important}
body:has(.cdh) h1,body:has(.cdh) h2,body:has(.cdh) h3{letter-spacing:-.035em}
body:has(.cdh) .card,body:has(.cdh) .panel,body:has(.cdh) .policy-card,body:has(.cdh) .chart-card,body:has(.cdh) .stat-callout>div{
  background:var(--cde-card)!important;border:1px solid var(--cde-line)!important;border-radius:var(--cde-radius)!important;box-shadow:0 16px 45px rgba(7,20,38,.07)!important
}
body:has(.cdh) input,body:has(.cdh) select,body:has(.cdh) textarea{border-radius:13px!important;border-color:#d7dde5!important;background:#fff!important}
body:has(.cdh) button,body:has(.cdh) .btn-main,body:has(.cdh) .button-primary,body:has(.cdh) .btn-cta{border-radius:999px!important}
body:has(.cdh) table{border-collapse:separate!important;border-spacing:0!important;overflow:hidden;border-radius:16px;background:#fff}
body:has(.cdh) th{background:#eaf1ff!important;color:var(--cde-ink)!important}
body:has(.cdh) a{color:var(--cde-blue2)}

/* FAQ */
.cde-faq{background:var(--cde-paper)!important;color:var(--cde-ink)!important}
.cde-faq .site-header{background:#081525!important;border:0!important}.cde-faq .brand,.cde-faq .nav-links,.cde-faq .nav-links a,.cde-faq .sign-in{color:#fff!important}
.cde-faq .brand-deal{color:#79c7f1!important}.cde-faq .brand-mark svg path:nth-of-type(4){stroke:#fff!important}.cde-faq .brand-mark svg circle{fill:#fff!important}
.cde-faq .nav-cta{background:#fff!important;color:var(--cde-ink)!important;border-radius:999px!important;box-shadow:none!important}
.cde-faq .hero{position:relative;overflow:hidden;border:0!important;background:#081525 url('https://unsplash.com/photos/8PuDc3fN_rs/download?force=true&w=1800') center 58%/cover no-repeat!important;color:#fff}
.cde-faq .hero:after{content:"";position:absolute;inset:0;background:linear-gradient(90deg,rgba(4,12,24,.92),rgba(4,12,24,.46)),linear-gradient(0deg,rgba(4,12,24,.72),transparent 68%)}
.cde-faq .hero-inner{position:relative;z-index:2;padding:96px 0 86px!important;text-align:left!important;margin:0 auto!important}
.cde-faq .hero h1{color:#fff!important;margin-left:0!important}.cde-faq .hero p{color:rgba(255,255,255,.78)!important;margin-left:0!important}
.cde-faq .eyebrow{background:rgba(255,255,255,.1)!important;color:#dceaff!important;border-color:rgba(255,255,255,.2)!important}
.cde-faq #faq-search{max-width:720px;border-radius:16px!important;box-shadow:0 24px 60px rgba(0,0,0,.24)!important}
.cde-faq .page-shell{padding-top:70px!important}.cde-faq .category-nav,.cde-faq .faq-item{border-radius:18px!important;box-shadow:0 12px 34px rgba(7,20,38,.06)!important}

/* Community Wisdom and History Analyzer landing pages */
body:has(#cwGate) main,body:has(#hraGate) main{position:relative;max-width:none!important;margin:0!important;padding:500px 0 90px!important;background:var(--cde-paper)}
body:has(#cwGate) main:before,body:has(#hraGate) main:before{content:"";position:absolute;top:0;left:0;right:0;height:450px;background-size:cover;background-position:center;z-index:0}
body:has(#cwGate) main:before{background-image:linear-gradient(90deg,rgba(4,12,24,.94),rgba(4,12,24,.4)),url('https://unsplash.com/photos/JFZNAg-elAI/download?force=true&w=1900')}
body:has(#hraGate) main:before{background-image:linear-gradient(90deg,rgba(4,12,24,.94),rgba(4,12,24,.38)),url('https://unsplash.com/photos/jL9zfzTVSwY/download?force=true&w=1900')}
body:has(#cwGate) main>h1,body:has(#hraGate) main>h1{position:absolute;top:106px;left:max(24px,calc((100% - 1120px)/2));z-index:2;color:#fff;font-size:clamp(48px,6vw,78px)!important;line-height:.98;max-width:760px;margin:0!important}
body:has(#cwGate) main>.lede,body:has(#hraGate) main>.lede{position:absolute;top:220px;left:max(24px,calc((100% - 1120px)/2));z-index:2;color:rgba(255,255,255,.8)!important;font-size:18px!important;max-width:620px!important}
body:has(#cwGate) main>*:not(h1):not(.lede),body:has(#hraGate) main>*:not(h1):not(.lede){width:min(920px,calc(100% - 40px));margin-left:auto!important;margin-right:auto!important}
body:has(#cwGate) .panel,body:has(#hraGate) .panel{padding:28px!important;margin-bottom:26px!important}
body:has(#cwGate) #cwGate,body:has(#hraGate) #hraGate{margin-top:-86px!important;position:relative;z-index:3;box-shadow:var(--cde-shadow)!important}
body:has(#cwGate) form,body:has(#hraGate) form{gap:16px!important}
body:has(#cwGate) button[type=submit],body:has(#hraGate) button[type=submit]{background:var(--cde-blue)!important;padding:14px 22px!important}
body:has(#cwGate) #cwSampleWrap,body:has(#hraGate) #hraSampleWrap{margin-top:54px!important}

/* Community/History rendered reports */
body:has(.cwr),body[data-hrpt-page]{background:var(--cde-paper)!important}
body:has(.cwr) .cwr,body[data-hrpt-page] .hrr{filter:none}
body:has(.cwr) .cwr .card,body[data-hrpt-page] .card{border-radius:20px!important;box-shadow:0 14px 38px rgba(7,20,38,.07)!important}

/* Blog index and article template */
body:has(.idx-head) .idx-head{position:relative;overflow:hidden;background:#081525 url('https://unsplash.com/photos/OpEQDlj4hFU/download?force=true&w=1900') center 58%/cover no-repeat!important;color:#fff!important;padding:112px 20px 92px!important;border:0!important}
body:has(.idx-head) .idx-head:after{content:"";position:absolute;inset:0;background:linear-gradient(90deg,rgba(4,12,24,.94),rgba(4,12,24,.42)),linear-gradient(0deg,rgba(4,12,24,.7),transparent 70%)}
body:has(.idx-head) .idx-head .inner{position:relative;z-index:2;max-width:1120px!important}
body:has(.idx-head) .idx-head h1{color:#fff!important;font-size:clamp(48px,6vw,72px)!important;max-width:760px}
body:has(.idx-head) .idx-head .sub{color:rgba(255,255,255,.78)!important;font-size:18px;max-width:640px!important}
body:has(.idx-head) .idx-kicker{color:#b9d8ff!important}
body:has(.idx-head) .post-grid{max-width:1120px!important;margin-top:-44px!important;gap:24px!important}
body:has(.idx-head) .post-card{border-radius:22px!important;box-shadow:0 18px 48px rgba(7,20,38,.09)!important}
body:has(.idx-head) .post-card img{height:240px!important}.post-card.featured img{min-height:380px!important}

body:has(.crumb-band) .crumb-band,body:has(.blog-hero) .blog-hero{position:relative;overflow:hidden;background:#081525!important;padding:90px 20px 72px!important}
body:has(.crumb-band) .crumb-band:before,body:has(.blog-hero) .blog-hero:before{content:"";position:absolute;inset:0;background:linear-gradient(90deg,rgba(4,12,24,.95),rgba(4,12,24,.58)),url('https://unsplash.com/photos/z8PqMhbkR8M/download?force=true&w=1900') center 58%/cover no-repeat}
body:has(.crumb-band) .crumb-band .inner,body:has(.blog-hero) .blog-hero .inner{position:relative;z-index:2;max-width:960px!important}
body:has(.crumb-band) .art-title{font-size:clamp(42px,6vw,68px)!important;line-height:1.02!important;max-width:850px}
body:has(.crumb-band) .wrap-narrow{max-width:820px!important;padding-top:48px!important}
body:has(.crumb-band) article p{color:#334155!important;font-size:17px}
body:has(.crumb-band) article h2{font-size:30px!important;margin-top:56px!important}

/* Legal, methodology and SEO guide pages */
body:has(.page-hero) .page-hero{position:relative;margin:0 0 56px!important;padding:94px 0 76px!important;border:0!important;background:#081525 url('https://unsplash.com/photos/1h491Giz9CU/download?force=true&w=1900') center/cover no-repeat!important;color:#fff;overflow:hidden}
body:has(.page-hero) .page-hero:after{content:"";position:absolute;inset:0;background:linear-gradient(90deg,rgba(4,12,24,.94),rgba(4,12,24,.48))}
body:has(.page-hero) .page-hero>*{position:relative;z-index:2}
body:has(.page-hero) .page-hero h1{color:#fff!important;font-size:clamp(42px,6vw,68px)!important}.page-hero p{color:rgba(255,255,255,.75)!important}
body:has(.page-hero) .page-eyebrow{color:#b9d8ff!important}
body:has(.page-hero) .container{max-width:900px!important}.prose{padding-bottom:70px}.prose h2{font-size:1.55rem!important;margin-top:58px!important}
body:has(.page-hero) .policy-card{padding:32px!important}

body:has(.section-title)>.container>nav{display:none!important}
body:has(.section-title)>.container{max-width:none!important;padding:0!important}
body:has(.section-title) .hero{position:relative;background:#081525 url('https://unsplash.com/photos/jp6rQe4aDOc/download?force=true&w=1900') center 60%/cover no-repeat!important;color:#fff!important;padding:110px max(24px,calc((100% - 980px)/2)) 88px!important;text-align:left!important}
body:has(.section-title) .hero:after{content:"";position:absolute;inset:0;background:linear-gradient(90deg,rgba(4,12,24,.95),rgba(4,12,24,.38))}
body:has(.section-title) .hero>*{position:relative;z-index:2;max-width:760px}
body:has(.section-title) .hero h1{color:#fff!important;-webkit-text-fill-color:#fff!important;background:none!important;font-size:clamp(48px,6vw,72px)!important}
body:has(.section-title) .hero p{color:rgba(255,255,255,.78)!important;margin-left:0!important}
body:has(.section-title)>.container>section:not(.hero){width:min(900px,calc(100% - 40px));margin:0 auto!important;padding:64px 0!important}
body:has(.section-title) .card{padding:30px!important}

/* Standalone sample report */
.cde-sample-report{background:var(--cde-paper)!important}
.cde-sample-report .shell{max-width:980px!important;padding:0 24px 90px!important}
.cde-sample-report header.site{margin:0 calc(50% - 50vw) 42px!important;padding:17px max(24px,calc((100vw - 1120px)/2 + 24px))!important;background:#081525!important;border:0!important;color:#fff!important}
.cde-sample-report header.site .brand,.cde-sample-report header.site a,.cde-sample-report .header-note{color:#fff!important}
.cde-sample-report header.site .brand-name .dl{color:#79c7f1!important}.cde-sample-report header.site .brand svg path:nth-of-type(4){stroke:#fff}.cde-sample-report header.site .brand svg circle{fill:#fff}
.cde-sample-report #reportBody .card{border-radius:22px!important;box-shadow:0 16px 44px rgba(7,20,38,.07)!important;border-color:var(--cde-line)!important}
.cde-sample-report .verdict{border-top-width:0!important;background:linear-gradient(135deg,#fff,#f3f8ff)!important;padding:34px!important}

/* Homepage garage and auth surfaces */
.cde-home .g-overlay{background:rgba(4,12,24,.72)!important;backdrop-filter:blur(8px)}
.cde-home .g-modal{max-width:460px!important;border-radius:24px!important;border:1px solid rgba(255,255,255,.8)!important;box-shadow:0 36px 100px rgba(3,12,25,.35)!important;padding:34px!important}
.cde-home .g-modal h2{font-size:28px!important}.cde-home .g-tabs{border-radius:999px!important}.cde-home .g-tabs button{border-radius:999px!important}
.cde-home #screen-dashboard,.cde-home #screen-deal{max-width:1120px!important;padding:58px 0 80px!important}
.cde-home .g-head h1{font-size:42px!important}.cde-home .g-card{border-radius:22px!important;box-shadow:0 16px 44px rgba(7,20,38,.07)!important;padding:24px!important}
.cde-home .g-score{border-radius:50%!important}.cde-home .g-btn{border-radius:999px!important}

@media(max-width:760px){
  body:has(#cwGate) main,body:has(#hraGate) main{padding-top:460px!important}
  body:has(#cwGate) main:before,body:has(#hraGate) main:before{height:420px}
  body:has(#cwGate) main>h1,body:has(#hraGate) main>h1{top:92px;left:20px;right:20px;font-size:50px!important}
  body:has(#cwGate) main>.lede,body:has(#hraGate) main>.lede{top:210px;left:20px;right:20px;font-size:15px!important}
  .cde-faq .hero-inner{text-align:left!important;padding:72px 0 70px!important}
  body:has(.idx-head) .idx-head{padding:82px 20px 72px!important}
  body:has(.idx-head) .post-card.featured{display:block!important}.post-card.featured img{width:100%!important;min-height:240px!important}
  body:has(.section-title) .hero{padding:84px 20px 70px!important}
}

@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}}
