/*
Theme Name: Casas e Jardins
Theme URI: https://casasejardins.com.br/
Author: Estúdio Mídia
Author URI: https://estudiomidia.com.br/
Description: Tema editorial leve e responsivo para o portal Casas e Jardins, com foco em plantas, flores, horta, limpeza e truques domésticos.
Version: 1.2.1
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
Text Domain: casas-e-jardins
*/

:root {
  --cj-green-900:#075b2d;
  --cj-green-800:#0a6b34;
  --cj-green-700:#0f7a3c;
  --cj-green-100:#edf7f0;
  --cj-green-050:#f7fbf8;
  --cj-text:#151515;
  --cj-muted:#6f756f;
  --cj-border:#e7ece8;
  --cj-white:#ffffff;
  --cj-bg:#ffffff;
  --cj-radius:14px;
  --cj-shadow:0 8px 24px rgba(0,0,0,.06);
  --cj-wrap:1180px;
}

*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;background:var(--cj-bg);color:var(--cj-text);font-family:Inter,Arial,Helvetica,sans-serif;font-size:18px;line-height:1.62;-webkit-font-smoothing:antialiased}
img{max-width:100%;height:auto;display:block}
a{color:inherit;text-decoration:none}
a:hover{color:var(--cj-green-700)}
button,input,textarea,select{font:inherit}
button{cursor:pointer}
.cj-wrap{width:min(calc(100% - 40px),var(--cj-wrap));margin-inline:auto}
.cj-visually-hidden{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}

/* Header */
.site-header{position:relative;background:#fff;border-bottom:1px solid var(--cj-border);z-index:20}
.cj-header-inner{min-height:76px;display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:28px}
.site-branding{display:flex;align-items:center;min-width:max-content}
.site-branding .custom-logo-link{display:flex;align-items:center}
.site-branding .custom-logo{max-height:50px;width:auto}
.cj-brand-text{display:flex;align-items:center;gap:10px}
.cj-brand-mark{width:40px;height:40px;color:var(--cj-green-700);flex:0 0 auto}
.cj-brand-copy{display:flex;flex-direction:column;line-height:1.05}
.cj-brand-name{font-size:1.45rem;font-weight:800;color:var(--cj-green-900);letter-spacing:-.03em}
.cj-brand-tagline{font-size:.72rem;color:#2f4234;margin-top:5px}
.primary-nav{justify-self:center}
.primary-nav ul{display:flex;gap:24px;align-items:center;list-style:none;margin:0;padding:0}
.primary-nav li{position:relative;margin:0}
.primary-nav a{display:block;font-size:.92rem;font-weight:600;padding:26px 0 24px;white-space:nowrap}
.primary-nav .current-menu-item>a,.primary-nav .current_page_item>a{color:var(--cj-green-700)}
.primary-nav .current-menu-item>a:after,.primary-nav .current_page_item>a:after{content:"";position:absolute;left:0;right:0;bottom:17px;height:2px;background:var(--cj-green-700);border-radius:2px}
.primary-nav ul ul{position:absolute;left:-18px;top:100%;min-width:220px;display:none;background:#fff;border:1px solid var(--cj-border);border-radius:12px;padding:8px;box-shadow:var(--cj-shadow)}
.primary-nav li:hover>ul,.primary-nav li:focus-within>ul{display:block}
.primary-nav ul ul a{padding:10px 12px;border-radius:8px;font-size:.88rem}
.primary-nav ul ul a:hover{background:var(--cj-green-050)}
.cj-header-tools{display:flex;align-items:center;gap:10px}
.cj-icon-button,.cj-mobile-menu summary,.cj-search-toggle summary{width:42px;height:42px;border:0;background:transparent;border-radius:50%;display:grid;place-items:center;color:#111;list-style:none}
.cj-icon-button:hover,.cj-mobile-menu summary:hover,.cj-search-toggle summary:hover{background:var(--cj-green-050);color:var(--cj-green-700)}
.cj-search-toggle{position:relative}
.cj-search-toggle summary::-webkit-details-marker,.cj-mobile-menu summary::-webkit-details-marker{display:none}
.cj-search-panel{position:absolute;right:0;top:52px;width:min(380px,calc(100vw - 32px));background:#fff;border:1px solid var(--cj-border);border-radius:14px;padding:14px;box-shadow:var(--cj-shadow)}
.cj-mobile-menu{display:none;position:relative}
.cj-mobile-panel{position:absolute;right:0;top:52px;width:min(330px,calc(100vw - 24px));background:#fff;border:1px solid var(--cj-border);border-radius:14px;padding:12px;box-shadow:var(--cj-shadow)}
.cj-mobile-panel ul{list-style:none;margin:0;padding:0}
.cj-mobile-panel a{display:block;padding:11px 12px;border-radius:8px;font-weight:700;font-size:.95rem}
.cj-mobile-panel a:hover{background:var(--cj-green-050)}
.cj-mobile-panel ul ul{padding-left:14px}

/* Search */
.search-form{display:flex;width:100%;border:1px solid #dfe6e1;border-radius:10px;overflow:hidden;background:#fff}
.search-field{width:100%;border:0;outline:0;padding:11px 13px;min-width:0;font-size:.9rem}
.search-submit{width:48px;border:0;background:var(--cj-green-800);color:#fff;display:grid;place-items:center}
.search-submit:hover{background:var(--cj-green-900)}

/* Homepage hero */
.cj-home-main{padding:18px 0 54px}
.cj-hero-grid{display:grid;grid-template-columns:minmax(0,2fr) minmax(300px,1fr);gap:12px}
.cj-hero-main,.cj-hero-side-card{position:relative;overflow:hidden;border-radius:8px;background:#123d25;color:#fff;isolation:isolate}
.cj-hero-main{min-height:505px}
.cj-hero-side{display:grid;grid-template-rows:1fr 1fr;gap:12px}
.cj-hero-side-card{min-height:246px}
.cj-hero-main img,.cj-hero-side-card img{width:100%;height:100%;position:absolute;inset:0;object-fit:cover;z-index:-2}
.cj-hero-main:after,.cj-hero-side-card:after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,rgba(0,0,0,.04) 10%,rgba(0,0,0,.76) 100%);z-index:-1}
.cj-hero-content{position:absolute;left:30px;right:30px;bottom:28px;max-width:820px}
.cj-hero-side-card .cj-hero-content{left:20px;right:20px;bottom:18px}
.cj-kicker{display:inline-flex;align-items:center;background:var(--cj-green-700);color:#fff;padding:6px 10px;border-radius:4px;font-size:.68rem;font-weight:800;letter-spacing:.02em;text-transform:uppercase;margin-bottom:12px}
.cj-hero-title{font-size:clamp(2rem,3.3vw,3.25rem);line-height:1.03;letter-spacing:-.045em;margin:0 0 12px;font-weight:850;max-width:900px;text-wrap:balance}
.cj-hero-excerpt{font-size:1rem;line-height:1.45;margin:0 0 18px;max-width:760px;color:rgba(255,255,255,.94)}
.cj-hero-button{display:inline-flex;align-items:center;gap:8px;background:var(--cj-green-700);color:#fff;padding:10px 16px;border-radius:7px;font-size:.88rem;font-weight:800}
.cj-hero-button:hover{background:#0b6d34;color:#fff}
.cj-hero-side-card .cj-hero-title{font-size:1.45rem;line-height:1.12;margin-bottom:8px;letter-spacing:-.03em}
.cj-hero-side-card .cj-hero-excerpt{font-size:.86rem;line-height:1.4;margin:0;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}

/* Category tiles */
.cj-category-strip{display:grid;grid-template-columns:repeat(5,1fr);gap:12px;margin:22px 0 30px}
.cj-category-tile{display:flex;min-height:138px;flex-direction:column;align-items:center;justify-content:center;text-align:center;background:linear-gradient(180deg,#f4fbf6 0%,#edf6f0 100%);border:1px solid #e6f0e9;border-radius:12px;padding:16px 12px;transition:transform .15s ease,box-shadow .15s ease}
.cj-category-tile:hover{transform:translateY(-2px);box-shadow:0 8px 20px rgba(19,93,50,.08);color:inherit}
.cj-category-icon{width:38px;height:38px;color:var(--cj-green-700);margin-bottom:7px}
.cj-category-title{font-size:1rem;font-weight:800;line-height:1.2;margin:0 0 6px}
.cj-category-desc{font-size:.76rem;line-height:1.45;color:#39423b;margin:0;max-width:180px}

/* Section */
.cj-content-layout{display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:28px;align-items:start}
.cj-section-heading{display:flex;justify-content:space-between;align-items:end;gap:20px;margin:0 0 18px}
.cj-section-heading h2,.cj-section-heading h1{font-size:1.65rem;line-height:1.15;margin:0;font-weight:850;letter-spacing:-.035em}
.cj-section-heading h2:after,.cj-section-heading h1:after{content:"";display:block;width:66px;height:3px;background:var(--cj-green-700);border-radius:3px;margin-top:8px}
.cj-section-link{font-size:.8rem;font-weight:700;color:var(--cj-green-700);white-space:nowrap}
.cj-post-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px 14px}
.cj-post-card{min-width:0}
.cj-post-card-image{display:block;aspect-ratio:16/9;overflow:hidden;border-radius:8px;background:#eef1ef;margin-bottom:10px}
.cj-post-card-image img{width:100%;height:100%;object-fit:cover;transition:transform .25s ease}
.cj-post-card:hover .cj-post-card-image img{transform:scale(1.025)}
.cj-card-meta{display:flex;align-items:center;gap:9px;flex-wrap:wrap;font-size:.66rem;line-height:1.3;margin-bottom:7px}
.cj-card-category{font-weight:850;color:var(--cj-green-700);text-transform:uppercase}
.cj-card-date{color:#7b807c}
.cj-card-title{font-size:1.02rem;line-height:1.25;font-weight:750;margin:0;letter-spacing:-.018em}
.cj-card-title a:hover{color:var(--cj-green-700)}

/* Sidebar */
.cj-sidebar{border-left:1px solid var(--cj-border);padding-left:20px}
.cj-widget{margin:0 0 22px}
.cj-widget-title{font-size:1.05rem;line-height:1.2;margin:0 0 12px;font-weight:850;letter-spacing:-.02em}
.cj-widget-title:after{content:"";display:block;width:36px;height:3px;background:var(--cj-green-700);margin-top:6px;border-radius:3px}
.cj-newsletter{background:linear-gradient(145deg,#eff9f1,#f8fbf8);border:1px solid #e5f0e7;border-radius:12px;padding:18px}
.cj-newsletter h3{margin:0 0 8px;font-size:1.15rem;line-height:1.2;color:var(--cj-green-900)}
.cj-newsletter p{margin:0 0 13px;color:#5d675f;font-size:.8rem;line-height:1.5}
.cj-newsletter .widget_text,.cj-newsletter .textwidget{font-size:.82rem}
.cj-popular-list{list-style:none;margin:0;padding:0;counter-reset:cjpop}
.cj-popular-item{counter-increment:cjpop;display:grid;grid-template-columns:28px 58px 1fr;align-items:center;gap:9px;padding:9px 0;border-bottom:1px solid #edf0ee}
.cj-popular-item:last-child{border-bottom:0}
.cj-popular-item:before{content:counter(cjpop);display:grid;place-items:center;width:24px;height:24px;border-radius:50%;background:var(--cj-green-700);color:#fff;font-size:.72rem;font-weight:850}
.cj-popular-thumb{width:58px;height:44px;border-radius:6px;overflow:hidden;background:#eef1ef}
.cj-popular-thumb img{width:100%;height:100%;object-fit:cover}
.cj-popular-title{font-size:.72rem;line-height:1.28;font-weight:700;margin:0}

/* Archives */
.cj-archive{padding:34px 0 58px}
.cj-archive-header{margin-bottom:24px}
.cj-archive-title{font-size:2.2rem;line-height:1.1;margin:0 0 8px;letter-spacing:-.04em}
.cj-archive-description{max-width:760px;color:#5e665f;font-size:.95rem}
.cj-pagination{margin-top:34px}
.cj-pagination .nav-links{display:flex;gap:7px;flex-wrap:wrap}
.cj-pagination .page-numbers{min-width:40px;height:40px;display:grid;place-items:center;border:1px solid var(--cj-border);border-radius:8px;padding:0 10px;font-weight:700;font-size:.85rem}
.cj-pagination .current{background:var(--cj-green-700);border-color:var(--cj-green-700);color:#fff}

/* Single */
.cj-single{padding:34px 0 60px}
.cj-article-layout{display:grid;grid-template-columns:minmax(0,800px) 300px;gap:42px;align-items:start;justify-content:space-between}
.cj-entry-header{margin-bottom:20px}
.cj-entry-kicker{font-size:.72rem;text-transform:uppercase;font-weight:850;color:var(--cj-green-700);margin-bottom:10px}
.cj-entry-title{font-size:clamp(2.15rem,4vw,3.45rem);line-height:1.03;letter-spacing:-.05em;margin:0 0 14px;text-wrap:balance}
.cj-entry-excerpt{font-size:1.06rem;line-height:1.5;color:#545b56;margin:0 0 14px}
.cj-entry-meta{display:flex;gap:10px;flex-wrap:wrap;color:#757b76;font-size:.77rem}
.cj-featured-image{border-radius:12px;overflow:hidden;margin:0 0 26px;background:#f0f2f1;aspect-ratio:16/9}
.cj-featured-image img{width:100%;height:100%;object-fit:cover}
.entry-content{font-size:18px;line-height:1.72;color:#222}
.entry-content>*{max-width:760px}
.entry-content h2,.entry-content h3,.entry-content h4{line-height:1.2;letter-spacing:-.025em;color:#101410;margin-top:1.7em;margin-bottom:.65em}
.entry-content h2{font-size:1.55rem}
.entry-content h3{font-size:1.28rem}
.entry-content p{margin:0 0 1.15em}
.entry-content ul,.entry-content ol{padding-left:1.25em;margin:0 0 1.25em}
.entry-content li{margin:.35em 0}
.entry-content img{border-radius:10px;margin:22px auto}
.entry-content figure{margin:24px 0;max-width:760px}
.entry-content figcaption{font-size:.74rem;color:#7b817c;margin-top:7px}
.entry-content blockquote{border-left:4px solid var(--cj-green-700);background:var(--cj-green-050);padding:16px 18px;margin:24px 0;border-radius:0 8px 8px 0}
.entry-content a{text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:3px;color:var(--cj-green-800)}
.cj-related{margin-top:42px;border-top:1px solid var(--cj-border);padding-top:24px}
.cj-related-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:14px}

/* Pages */
.cj-page{padding:38px 0 60px}
.cj-page-inner{max-width:850px;margin:0 auto}
.cj-page-title{font-size:2.4rem;line-height:1.08;letter-spacing:-.04em;margin:0 0 22px}

/* Footer */
.site-footer{background:linear-gradient(115deg,#07542b,#0a6835);color:#fff;margin-top:10px}
.cj-footer-top{display:grid;grid-template-columns:auto 1fr auto;gap:34px;align-items:center;padding:34px 0 26px}
.cj-footer-brand .cj-brand-mark{color:#fff}
.cj-footer-brand .cj-brand-name{color:#fff}
.cj-footer-brand .cj-brand-tagline{color:rgba(255,255,255,.8)}
.cj-footer-links{display:flex;justify-content:center;flex-wrap:wrap;gap:20px}
.cj-footer-links a{font-size:.78rem;color:#fff}
.cj-footer-social{display:flex;gap:10px}
.cj-footer-social a{width:32px;height:32px;border-radius:50%;display:grid;place-items:center;background:rgba(255,255,255,.1);color:#fff}
.cj-footer-social a:hover{background:#fff;color:var(--cj-green-900)}
.cj-footer-bottom{border-top:1px solid rgba(255,255,255,.18);display:flex;justify-content:space-between;gap:20px;padding:17px 0 20px;color:rgba(255,255,255,.82);font-size:.7rem}

/* Empty state */
.cj-empty{padding:34px;border:1px dashed #ced8d1;border-radius:12px;background:#fafcfb;text-align:center;color:#5e675f}

/* 404 */
.cj-not-found{text-align:center;padding:80px 0}
.cj-not-found h1{font-size:4rem;margin:0;color:var(--cj-green-800)}
.cj-not-found p{max-width:600px;margin:10px auto 24px;color:#626a64}

@media (max-width:1050px){
  .primary-nav{display:none}
  .cj-mobile-menu{display:block}
  .cj-header-inner{grid-template-columns:1fr auto}
  .cj-header-tools{grid-column:2}
  .cj-content-layout,.cj-article-layout{grid-template-columns:minmax(0,1fr) 280px;gap:24px}
}

@media (max-width:850px){
  body{font-size:17px}
  .cj-wrap{width:min(calc(100% - 28px),var(--cj-wrap))}
  .cj-home-main{padding-top:12px}
  .cj-hero-grid{grid-template-columns:1fr}
  .cj-hero-main{min-height:430px}
  .cj-hero-side{grid-template-columns:1fr 1fr;grid-template-rows:auto}
  .cj-hero-side-card{min-height:210px}
  .cj-category-strip{grid-template-columns:repeat(5,minmax(160px,1fr));overflow-x:auto;padding-bottom:5px;scroll-snap-type:x proximity}
  .cj-category-tile{scroll-snap-align:start}
  .cj-content-layout,.cj-article-layout{grid-template-columns:1fr}
  .cj-sidebar{border-left:0;border-top:1px solid var(--cj-border);padding-left:0;padding-top:22px}
  .cj-footer-top{grid-template-columns:1fr;text-align:center}
  .cj-footer-brand{justify-self:center}
  .cj-footer-links{justify-content:center}
  .cj-footer-social{justify-content:center}
  .cj-footer-bottom{flex-direction:column;align-items:center;text-align:center}
}

@media (max-width:640px){
  .cj-wrap{width:min(calc(100% - 22px),var(--cj-wrap))}
  .site-header{position:sticky;top:0}
  .cj-header-inner{min-height:64px;gap:8px}
  .site-branding .custom-logo{max-height:42px}
  .cj-brand-mark{width:33px;height:33px}
  .cj-brand-name{font-size:1.12rem}
  .cj-brand-tagline{font-size:.59rem}
  .cj-search-toggle summary,.cj-mobile-menu summary{width:38px;height:38px}
  .cj-hero-main{min-height:360px;border-radius:9px}
  .cj-hero-content{left:18px;right:18px;bottom:18px}
  .cj-hero-title{font-size:2rem;line-height:1.02}
  .cj-hero-excerpt{font-size:.9rem;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
  .cj-hero-side{grid-template-columns:1fr;gap:10px}
  .cj-hero-side-card{min-height:190px}
  .cj-category-strip{margin:14px 0 24px;grid-template-columns:repeat(5,145px);gap:9px}
  .cj-category-tile{min-height:118px;padding:12px 10px}
  .cj-category-desc{display:none}
  .cj-section-heading{align-items:center}
  .cj-section-heading h2,.cj-section-heading h1{font-size:1.45rem}
  .cj-section-link{font-size:.73rem}
  .cj-post-grid{grid-template-columns:1fr;gap:0}
  .cj-post-card{display:grid;grid-template-columns:38% 1fr;gap:12px;padding:13px 0;border-bottom:1px solid var(--cj-border)}
  .cj-post-card-image{margin:0;aspect-ratio:16/10;border-radius:8px}
  .cj-post-card-body{align-self:center;min-width:0}
  .cj-card-meta{font-size:.58rem;margin-bottom:5px;gap:6px}
  .cj-card-title{font-size:.95rem;line-height:1.22}
  .cj-archive{padding-top:24px}
  .cj-archive-title{font-size:1.8rem}
  .cj-single{padding-top:22px}
  .cj-entry-title{font-size:2.18rem}
  .cj-entry-excerpt{font-size:.98rem}
  .entry-content{font-size:18px}
  .cj-related-grid{grid-template-columns:1fr}
  .cj-footer-links{gap:12px 18px}
}


/* Institutional pages and native contact form */
.cj-page .entry-content{font-size:18px;line-height:1.72}
.cj-page .entry-content>p,.cj-page .entry-content>ul,.cj-page .entry-content>ol,.cj-page .entry-content>h2,.cj-page .entry-content>h3,.cj-page .entry-content>h4,.cj-page .entry-content>blockquote{max-width:800px}
.cj-page .entry-content h2{font-size:1.55rem;margin:1.75em 0 .65em;line-height:1.18;letter-spacing:-.025em}
.cj-page .entry-content h3{font-size:1.25rem;margin:1.5em 0 .55em;line-height:1.22}
.cj-page .entry-content p{margin:0 0 1.1em}
.cj-page .entry-content ul,.cj-page .entry-content ol{padding-left:1.25em;margin:0 0 1.2em}
.cj-page .entry-content li{margin:.38em 0}
.cj-page .entry-content a{color:var(--cj-green-800);text-decoration:underline;text-underline-offset:3px}
.cj-page .entry-content strong{font-weight:800}
.cj-legal-note{padding:14px 16px;background:var(--cj-green-050);border:1px solid #dcebe0;border-radius:10px;margin:0 0 22px;color:#38513f}
.cj-contact-card{background:var(--cj-green-050);border:1px solid #dcebe0;border-radius:14px;padding:22px;margin:22px 0}
.cj-contact-card p:last-child{margin-bottom:0}
.cj-contact-form{display:grid;gap:14px;margin-top:20px}
.cj-contact-row{display:grid;grid-template-columns:1fr 1fr;gap:14px}
.cj-contact-field{display:grid;gap:6px}
.cj-contact-field label{font-weight:800;font-size:.92rem}
.cj-contact-field input,.cj-contact-field textarea{width:100%;border:1px solid #d7e1da;border-radius:10px;background:#fff;color:#111;padding:12px 13px;outline:none}
.cj-contact-field input:focus,.cj-contact-field textarea:focus{border-color:var(--cj-green-700);box-shadow:0 0 0 3px rgba(15,122,60,.10)}
.cj-contact-field textarea{min-height:170px;resize:vertical}
.cj-contact-submit{justify-self:start;border:0;border-radius:10px;background:var(--cj-green-800);color:#fff;font-weight:800;padding:12px 20px}
.cj-contact-submit:hover{background:var(--cj-green-900)}
.cj-form-alert{padding:12px 14px;border-radius:10px;margin:0 0 18px;font-weight:700}
.cj-form-alert-success{background:#ecf8f0;border:1px solid #bfe0c9;color:#145c2e}
.cj-form-alert-error{background:#fff4f3;border:1px solid #efcbc6;color:#8a2e22}
.cj-hp{position:absolute!important;left:-9999px!important;width:1px!important;height:1px!important;overflow:hidden!important}
.entry-content table{width:100%;border-collapse:collapse;display:block;overflow-x:auto;-webkit-overflow-scrolling:touch}
.entry-content th,.entry-content td{border:1px solid var(--cj-border);padding:10px 12px;text-align:left;white-space:normal}

@media (max-width:640px){
  body{font-size:18px}
  .entry-content,.cj-page .entry-content{font-size:18px;line-height:1.72}
  .cj-page-title{font-size:2rem}
  .cj-contact-row{grid-template-columns:1fr}
  .cj-contact-card{padding:17px}
}


/* Sistema nativo de anúncios */
.cj-ad-slot{width:100%;max-width:100%;overflow:hidden;text-align:center;margin:22px auto;clear:both}
.cj-ad-slot>ins,.cj-ad-slot>div,.cj-ad-slot>iframe{max-width:100%}
.cj-ad-wide{width:min(calc(100% - 40px),var(--cj-wrap));min-height:90px;display:flex;align-items:center;justify-content:center}
.cj-ad-grid{grid-column:1/-1;min-height:90px;display:flex;align-items:center;justify-content:center}
.cj-ad-sidebar{min-height:250px;margin:18px 0 24px;display:flex;align-items:center;justify-content:center}
.cj-ad-in-content{max-width:760px;min-height:90px;display:flex;align-items:center;justify-content:center}
.cj-sticky-ad-wrap{position:fixed;z-index:9998;left:0;right:0;bottom:0;padding:6px 10px;background:rgba(255,255,255,.96);border-top:1px solid var(--cj-border);box-shadow:0 -4px 18px rgba(0,0,0,.08)}
.cj-sticky-ad-wrap .cj-ad-slot{margin:0 auto;min-height:50px;display:flex;align-items:center;justify-content:center;max-width:970px}
body:has(.cj-sticky-ad-wrap){padding-bottom:72px}

@media (max-width:640px){
  .cj-ad-wide{width:min(calc(100% - 22px),var(--cj-wrap));min-height:60px;margin:14px auto}
  .cj-ad-grid{min-height:60px;margin:14px 0}
  .cj-ad-sidebar{min-height:90px}
  .cj-ad-in-content{min-height:60px;margin:18px auto}
  .cj-sticky-ad-wrap{padding:4px 6px}
  .cj-sticky-ad-wrap .cj-ad-slot{min-height:50px}
}
