/*
Theme Name: EGOBrazil
Theme URI: https://egobrazil.com.br/
Author: EGOBrazil
Description: Tema de portal de notícias e celebridades do EGOBrazil. Inclui home em formato de portal, página de notícia com chapéu, linha fina e publicidade no texto, selo "Exclusiva", ranking de "Mais lidas" e painel de personalização de cores, fontes, layout, capa e anúncios (Aparência › Personalizar › Tema EGOBrazil).
Version: 1.6.24
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: egobrazil
Tags: news, blog, custom-logo, custom-menu, featured-images, theme-options, threaded-comments, translation-ready
*/

/* ---------- Variáveis (valores reais vêm do painel do tema) ---------- */
:root{
  --ego-brand:#0B63C4;
  --ego-header-bg:#0B63C4;
  --ego-header-text:#ffffff;
  --ego-topbar-bg:#0A0A0A;
  --ego-footer-bg:#0A0A0A;
  --ego-text:#111111;
  --ego-muted:#4B5563;
  --ego-line:#E5E7EB;
  --ego-soft:#F3F4F6;
  --ego-hover:#0B63C4;
  --ego-exclusiva:#E10600;
  --ego-font-body:"Poppins",system-ui,-apple-system,"Segoe UI",Arial,sans-serif;
  --ego-font-head:"Source Serif 4",Georgia,"Times New Roman",serif;
  --ego-base:16px;
  --ego-container:1280px;
  --ego-radius:12px;
}

*,*::before,*::after{box-sizing:border-box}
html{font-size:var(--ego-base)}
body{margin:0;background:#fff;color:var(--ego-text);font-family:var(--ego-font-body);line-height:1.5;-webkit-font-smoothing:antialiased}
img{max-width:100%;height:auto;display:block}
a{color:var(--ego-text);text-decoration:none}
a:hover{color:var(--ego-hover)}
button,input,select,textarea{font-family:inherit;font-size:inherit}
.screen-reader-text{border:0;clip:rect(1px,1px,1px,1px);clip-path:inset(50%);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute!important;width:1px;word-wrap:normal!important}
.screen-reader-text:focus{background:#fff;clip:auto!important;clip-path:none;color:#111;display:block;height:auto;left:8px;padding:12px 20px;top:8px;width:auto;z-index:100000}
.ego-container{max-width:var(--ego-container);margin:0 auto;padding:0 24px}
.ego-icon{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}

/* ---------- Selo EXCLUSIVA ---------- */
.ego-exclusiva{display:inline;color:var(--ego-exclusiva);font-family:var(--ego-font-body);font-weight:800;text-transform:uppercase;letter-spacing:.02em;margin-right:.35em}
.ego-sponsored{display:inline-block;background:#6B4E00;background:color-mix(in srgb,var(--ego-text,#111) 78%,#C9A227);color:#fff;font-family:var(--ego-font-body);font-size:.62em;font-weight:700;line-height:1;letter-spacing:.04em;text-transform:uppercase;padding:.32em .5em;border-radius:4px;vertical-align:.18em;margin-right:.45em}
.ego-sponsored-notice{display:flex;align-items:center;flex-wrap:wrap;gap:6px;margin:10px 0 6px;font-size:13px;color:#555}
.ego-sponsored-notice .ego-sponsored{font-size:11px;vertical-align:0;margin:0}
.ego-exclusiva.is-badge{display:inline-block;background:var(--ego-exclusiva);color:#fff;font-size:.62em;line-height:1;padding:.32em .5em;border-radius:4px;vertical-align:.18em}

/* ---------- Topo ---------- */
.ego-topbar{background:var(--ego-topbar-bg);color:#E5E7EB;font-size:13px;font-weight:500}
.ego-topbar .ego-container{display:flex;justify-content:space-between;align-items:center;gap:16px;min-height:38px;flex-wrap:wrap}
.ego-social{display:flex;gap:6px;align-items:center;margin:0;padding:0;list-style:none}
.ego-social a{color:inherit;display:flex;width:32px;height:32px;align-items:center;justify-content:center}
.ego-social a:hover{color:#fff;opacity:.8}
.ego-social .ego-icon{width:18px;height:18px}

.ego-header{background:var(--ego-header-bg);color:var(--ego-header-text)}
.ego-header.is-sticky{position:sticky;top:0;z-index:50}
.admin-bar .ego-header.is-sticky{top:32px}
.ego-header__inner{display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:16px;min-height:84px}
.ego-header__left,.ego-header__right{display:flex;align-items:center;gap:10px}
.ego-header__right{justify-content:flex-end}
.ego-iconbtn{width:44px;height:44px;display:inline-flex;align-items:center;justify-content:center;background:transparent;border:0;color:inherit;cursor:pointer;padding:0;border-radius:8px}
.ego-iconbtn:hover{background:rgba(255,255,255,.12)}
.ego-iconbtn .ego-icon{width:24px;height:24px}
.ego-discover{display:inline-flex;align-items:center;background:#fff;color:#111;border-radius:999px;padding:6px 14px;font-size:12px;font-weight:600;white-space:nowrap}
.ego-discover:hover{color:#111;opacity:.9}
.ego-logo{display:flex;justify-content:center}
.ego-logo a{color:var(--ego-header-text)}
.ego-logo img{max-height:64px;width:auto}
.ego-logo__h1{margin:0;font-size:inherit;line-height:0}
.ego-logo__text{font-family:var(--ego-font-body);font-size:52px;font-weight:800;letter-spacing:-2px;line-height:1;color:var(--ego-logo-text,var(--ego-header-text))}
.ego-newsletter-link{color:var(--ego-header-text);font-size:13px;font-weight:700;letter-spacing:.5px;padding:12px 8px;text-transform:uppercase}
.ego-newsletter-link:hover{color:var(--ego-header-text);opacity:.85}

.ego-search{display:none;background:var(--ego-header-bg);padding:0 0 16px}
.ego-search.is-open{display:block}
.ego-searchform{display:flex;gap:8px;max-width:640px;margin:0 auto}
.ego-searchform input[type=search]{flex:1;height:46px;border-radius:8px;border:1px solid var(--ego-line);padding:0 14px;font-size:15px}
.ego-searchform button{height:46px;border:0;border-radius:8px;background:#111;color:#fff;font-weight:700;padding:0 18px;cursor:pointer}

.ego-nav{background:#fff;border-bottom:1px solid var(--ego-line)}
.ego-nav ul{list-style:none;margin:0 auto;padding:0 24px;max-width:var(--ego-container);display:flex;justify-content:space-between;gap:4px 20px;overflow-x:auto;scrollbar-width:none}
.ego-nav ul::-webkit-scrollbar{display:none}
.ego-nav li{flex:none}
.ego-nav a{display:block;font-size:15px;font-weight:600;padding:14px 0;white-space:nowrap}
.ego-nav .sub-menu{display:none}

/* Menu lateral (hambúrguer) */
.ego-drawer{position:fixed;inset:0;z-index:100;visibility:hidden}
.ego-drawer.is-open{visibility:visible}
.ego-drawer__bg{position:absolute;inset:0;background:rgba(0,0,0,.5);opacity:0;transition:opacity .2s}
.ego-drawer.is-open .ego-drawer__bg{opacity:1}
.ego-drawer__panel{position:absolute;top:0;left:0;bottom:0;width:min(340px,88vw);background:#fff;transform:translateX(-100%);transition:transform .25s;overflow-y:auto;padding:16px 20px 32px}
.ego-drawer.is-open .ego-drawer__panel{transform:none}
.ego-drawer__head{display:flex;justify-content:space-between;align-items:center;margin-bottom:12px}
.ego-drawer ul{list-style:none;margin:0;padding:0}
.ego-drawer li a{display:block;padding:12px 0;border-bottom:1px solid var(--ego-line);font-weight:600}
.ego-drawer .sub-menu a{padding-left:14px;font-weight:500}

/* ---------- Publicidade ---------- */
.ego-ad{display:flex;align-items:center;justify-content:center;text-align:center;overflow:hidden;width:100%}
/* O conteúdo do anúncio ocupa toda a largura disponível: os blocos responsivos do AdSense medem esse espaço. */
.ego-ad > div{width:100%;min-width:0}
.ego-ad--top > div{max-width:970px}
.ego-ad ins.adsbygoogle{display:block;margin-left:auto;margin-right:auto}
.ego-ad center{display:block;width:100%}
.ego-ad--top{background:var(--ego-soft);padding:20px 24px}
.ego-ad--content{margin:28px 0}
.ego-sidebar{--ego-sticky-top:24px}
.admin-bar .ego-sidebar{--ego-sticky-top:56px}
.ego-has-sticky-header .ego-sidebar{--ego-sticky-top:110px}
.admin-bar.ego-has-sticky-header .ego-sidebar{--ego-sticky-top:142px}
.ego-ad--sticky{position:-webkit-sticky;position:sticky;top:var(--ego-sticky-top);align-self:stretch}
.ego-ad--between{margin:-8px 0;padding:12px 0;border-top:1px solid var(--ego-line);border-bottom:1px solid var(--ego-line)}
.ego-ad--between > div{width:100%;max-width:790px}
/* AdSense: o rótulo só aparece quando o anúncio carrega; espaço sem anúncio some. */
ins.adsbygoogle[data-ad-status="unfilled"]{display:none!important}
.ego-ad.has-adsense .ego-ad__label{display:none}
.ego-ad.is-filled .ego-ad__label{display:block}
.ego-ad.is-empty:not(.ego-ad--fixed){display:none!important}
.ego-ad:has(ins.adsbygoogle) .ego-ad__label{display:none}
.ego-ad:has(ins.adsbygoogle[data-ad-status="filled"]) .ego-ad__label{display:block}
.ego-ad:not(.ego-ad--fixed):has(ins.adsbygoogle):not(:has(ins.adsbygoogle:not([data-ad-status="unfilled"]))){display:none!important}
/* Anúncio de altura fixa (topo da capa): o espaço fica reservado do início ao fim, sem empurrar a página. */
.ego-ad--fixed{height:90px;overflow:hidden}
.ego-ad--fixed > div{height:100%}
.ego-ad--fixed ins.adsbygoogle{width:100%;max-width:970px;height:90px!important}
.ego-ad--fixed .ego-ad__label{display:none!important}
.ego-ad__label{display:block;font-size:10px;letter-spacing:1.5px;color:var(--ego-muted);text-transform:uppercase;margin-bottom:4px}
.ego-ad-placeholder{background:#E5E7EB;color:var(--ego-muted);font-size:12px;font-weight:600;letter-spacing:1.5px;display:flex;align-items:center;justify-content:center;width:100%}

/* ---------- Elementos de lista ---------- */
.ego-kicker{display:inline-block;color:var(--ego-cat,var(--ego-brand));font-size:12px;font-weight:700;letter-spacing:.8px;text-transform:uppercase}
.ego-thumb{display:block;position:relative;overflow:hidden;border-radius:var(--ego-radius);background:#DDE2E9;aspect-ratio:16/10}
.ego-thumb img{width:100%;height:100%;object-fit:cover;transition:transform .35s}
a:hover .ego-thumb img,.ego-thumb:hover img{transform:scale(1.03)}
.ego-thumb--sq{aspect-ratio:4/3;border-radius:8px}
.ego-title{font-family:var(--ego-font-head);font-weight:700;line-height:1.22;margin:0}
.ego-meta{font-size:13px;color:var(--ego-muted)}

.ego-section-head{display:flex;align-items:center;justify-content:space-between;border-top:4px solid var(--ego-cat,var(--ego-text));padding-top:12px;margin-bottom:20px;gap:12px}
.ego-section-head h2{margin:0;color:var(--ego-cat,var(--ego-text));font-size:26px;font-weight:800;letter-spacing:-.5px}
.ego-more{color:#374151;font-size:13px;font-weight:600;padding:12px 0;white-space:nowrap}

/* ---------- Home ---------- */
.ego-main{padding:32px 0 56px}
.ego-hero{display:flex;flex-wrap:wrap;gap:24px}
.ego-hero__main{flex:3.3 1 800px;min-width:0}
.ego-hero{align-items:flex-start}
.ego-hero__variant{display:none;flex-wrap:wrap;gap:24px;align-items:flex-start}
.ego-hero__variant.is-active{display:flex;animation:egoFade .35s ease}
@keyframes egoFade{from{opacity:.25}to{opacity:1}}
@media (prefers-reduced-motion:reduce){.ego-hero__variant.is-active{animation:none}}
.ego-hero__img{flex:2 1 480px}
.ego-hero__img .ego-thumb{aspect-ratio:auto;height:var(--ego-hero-h,400px);min-height:0}
.ego-hero__img .ego-thumb img{width:100%;height:100%;object-fit:cover}
.ego-hero__text{flex:1.3 1 320px;display:flex;flex-direction:column;gap:12px}
.ego-hero__title{font-family:var(--ego-font-head);font-size:var(--ego-hero-t,30px);line-height:1.12;font-weight:800;margin:0}
.ego-hero__related{margin:8px 0 0;padding:0 0 0 18px;display:flex;flex-direction:column;gap:10px;font-size:15px;line-height:1.4}
.ego-hero__related a{color:#1F2937;font-weight:500}
.ego-hero__main-ad{flex:0 0 100%;margin:0;width:100%;overflow:hidden;text-align:center}
.ego-hero__main-ad>div{width:100%}
.ego-hero__main-ad .ego-ad-placeholder{max-width:none!important;width:100%}
.ego-hero__main-ad img{max-width:100%;height:auto;display:inline-block}
.ego-hero__main-ad iframe,.ego-hero__main-ad ins{max-width:100%}
.ego-hero__side{flex:1 1 260px;display:flex;flex-direction:column;gap:12px;min-width:0}
.ego-carousel{position:relative}
.ego-hero__extra{margin-top:auto;padding-top:20px;width:100%;overflow:hidden;text-align:center}
.ego-hero__extra img{max-width:100%;height:auto;display:block;margin:0 auto}
.ego-hero__extra iframe{max-width:100%}
.ego-slide{display:none;flex-direction:column;gap:12px}
.ego-slide.is-active{display:flex}
.ego-slide .ego-thumb{aspect-ratio:auto;height:200px}
.ego-slide .ego-title{font-size:21px}
.ego-carousel__nav{display:flex;justify-content:space-between;align-items:center;margin-top:12px}
.ego-dots{display:flex;gap:6px}
.ego-dots button{width:10px;height:10px;border-radius:5px;border:0;background:#D1D5DB;padding:0;cursor:pointer}
.ego-dots button.is-active{background:#111}
.ego-arrows{display:flex;gap:4px}
.ego-arrows button{width:44px;height:44px;border:1px solid var(--ego-line);border-radius:22px;background:#fff;cursor:pointer;display:flex;align-items:center;justify-content:center;color:#111}

.ego-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(240px,1fr));gap:24px}
.ego-grid--rule{margin-top:36px;padding-top:28px;border-top:1px solid var(--ego-line)}
.ego-card{display:flex;flex-direction:column;gap:10px}
.ego-card .ego-title{font-size:19px;line-height:1.25}

.ego-columns{display:flex;flex-wrap:wrap;gap:40px;margin-top:48px}
.ego-columns__main{flex:999 1 600px;min-width:0;display:flex;flex-direction:column;gap:48px}
.ego-sidebar{flex:1 1 300px;display:flex;flex-direction:column;gap:32px}
/* Notícia: cada coluna com a própria altura; a lateral acompanha a rolagem (main.js). */
.ego-columns--fit{align-items:flex-start}
.ego-sidebar [hidden]{display:none!important}
.ego-columns--fit .ego-sidebar.is-follow{position:-webkit-sticky;position:sticky;top:var(--ego-side-top,24px)}
.ego-columns--fit .ego-sidebar.is-follow .ego-ad--sticky{position:static}
.ego-related.is-in-main{margin-top:40px}
.ego-related.is-in-main .ego-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
@media (max-width:1024px){.ego-related.is-in-main .ego-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}

.ego-block{display:flex;flex-wrap:wrap;gap:24px}
.ego-block__lead{flex:1.2 1 320px;display:flex;flex-direction:column;gap:12px}
.ego-block__lead .ego-title{font-size:26px;line-height:1.18;font-weight:800}
.ego-block__list{flex:1 1 260px;display:flex;flex-direction:column}
.ego-row{display:flex;gap:14px;padding:14px 0;border-bottom:1px solid var(--ego-line)}
.ego-row:first-child{padding-top:0}
.ego-row .ego-thumb{width:96px;height:72px;flex:none;aspect-ratio:auto;border-radius:8px}
.ego-row__title{font-size:15px;line-height:1.35;font-weight:600;margin:0}

.ego-mostread h2{margin:0 0 8px;font-size:22px;font-weight:800;border-top:4px solid var(--ego-text);padding-top:12px}
.ego-mostread ol{list-style:none;margin:0;padding:0}
.ego-mostread li{display:flex;gap:14px;padding:14px 0;border-bottom:1px solid var(--ego-line)}
.ego-mostread__n{font-size:32px;font-weight:800;line-height:1;color:var(--ego-brand);width:34px;flex:none}
.ego-mostread a{font-size:15px;line-height:1.35;font-weight:600}

.ego-side-html{overflow-wrap:break-word;text-align:center}
.ego-side-html--300{max-width:300px;width:100%;min-height:250px;margin:0 auto}
.ego-side-html img,.ego-side-html iframe{max-width:100%;height:auto;margin:0 auto}
/* Mais lidas (escuro, com abas) */
.ego-mr{background:var(--ego-mr-bg,#000);color:#fff;border-radius:16px;padding:24px 24px 12px}
.ego-mr__title{margin:0 0 14px;font-size:22px;font-weight:800;color:#fff;letter-spacing:-.2px}
.ego-mr__tabs{display:flex;border-bottom:1px solid rgba(255,255,255,.18);margin-bottom:8px}
.ego-mr__tabs button{flex:1;background:none;border:0;border-bottom:2px solid transparent;margin-bottom:-1px;color:#B8B8B8;font-weight:800;font-size:13px;letter-spacing:.4px;text-transform:uppercase;padding:12px 4px;min-height:44px;cursor:pointer}
.ego-mr__tabs button:hover{color:#fff}
.ego-mr__tabs button[aria-selected="true"]{color:var(--ego-mr-accent,#4DA3FF);border-bottom-color:var(--ego-mr-accent,#4DA3FF)}
.ego-mr__tabs button:focus-visible{outline:2px solid var(--ego-mr-accent,#4DA3FF);outline-offset:-2px}
.ego-mr__list{list-style:none;margin:0;padding:0}
.ego-mr__list li{display:flex;align-items:center;gap:16px;padding:14px 0;border-bottom:1px solid rgba(255,255,255,.08)}
.ego-mr__list li:last-child{border-bottom:0}
.ego-mr__n{flex:none;width:22px;text-align:center;font-family:var(--ego-font-head);font-size:28px;font-weight:800;line-height:1;color:#fff}
.ego-mr__img{flex:none;width:104px}
.ego-mr__img .ego-thumb{aspect-ratio:3/2;border-radius:12px;background:#333}
.ego-mr__link{color:#fff;font-size:var(--ego-mr-size,15px);line-height:1.35;font-weight:700}
.ego-mr__link:hover,.ego-mr__link:focus-visible{color:var(--ego-mr-hover,#4DA3FF)}
.ego-mr .ego-exclusiva{color:var(--ego-exclusiva)}
.ego-mr .ego-exclusiva.is-badge{font-size:.7em}
.ego-nlbox{background:var(--ego-footer-bg);color:#fff;border-radius:var(--ego-radius);padding:24px;display:flex;flex-direction:column;gap:12px}
.ego-nlbox__title{font-size:20px;font-weight:800;margin:0}
.ego-nlbox p{margin:0;font-size:14px;line-height:1.5;color:#D1D5DB}
.ego-nlbox label{font-size:12px;font-weight:600;color:#D1D5DB}
.ego-nlbox input[type=email]{height:44px;border-radius:8px;border:0;padding:0 12px;font-size:14px;width:100%}
.ego-nlbox button{height:44px;border-radius:8px;border:0;background:var(--ego-brand);color:#fff;font-weight:700;font-size:14px;cursor:pointer}

.ego-stories{display:grid;grid-template-columns:repeat(auto-fill,minmax(170px,1fr));gap:16px}
.ego-story{position:relative;aspect-ratio:9/16;border-radius:14px;overflow:hidden;background:#1F2937;color:#fff;display:flex;flex-direction:column;justify-content:flex-end;padding:14px}
.ego-story img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.ego-story::before{content:"";position:absolute;inset:0;background:linear-gradient(to top,rgba(0,0,0,.8),rgba(0,0,0,0) 60%);z-index:1}
.ego-story span{position:relative;z-index:2;font-size:15px;line-height:1.3;font-weight:700}
.ego-story:hover{color:#fff}
.ego-home-section{margin-top:56px}
/* Bloco final da matéria (banner, aviso, copyright, Instagram) */
.ego-nota-final{margin-top:32px;padding-top:20px;border-top:1px solid var(--ego-line,#e5e7eb);font-size:15px;line-height:1.55}
.ego-nota-final p{margin:0 0 12px}
.ego-nota-final__banner{text-align:center;margin-bottom:20px!important}
.ego-nota-final__banner img{display:inline-block;max-width:100%;height:auto}
.ego-nota-final__aviso{font-style:italic;color:var(--ego-muted,#6b7280)}
.ego-nota-final__copy{font-size:13px;color:var(--ego-muted,#6b7280)}
.ego-insta .ego-section-head h2{display:flex;align-items:center;gap:10px}
.ego-insta .ego-section-head h2 svg{width:26px;height:26px;flex:none}
.ego-insta__feed{min-height:120px}
.ego-insta__feed behold-widget{display:block;width:100%}

/* ---------- Notícia ---------- */
.ego-single{padding:24px 0 56px}
.ego-breadcrumb{font-size:13px;color:var(--ego-muted);margin-bottom:20px}
.ego-breadcrumb a{color:var(--ego-muted)}
.ego-breadcrumb a:hover{color:var(--ego-hover)}
.ego-article__header{margin-bottom:28px}
.ego-article__title{font-family:var(--ego-font-head);font-size:44px;line-height:1.12;font-weight:800;margin:12px 0 14px;letter-spacing:-.5px}
.ego-article__subtitle{font-size:20px;line-height:1.45;font-weight:400;color:#374151;margin:0 0 22px}
.ego-article__bar{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:12px;padding:14px 0;border-top:1px solid var(--ego-line);border-bottom:1px solid var(--ego-line);margin-bottom:24px}
.ego-author{display:flex;align-items:center;gap:12px}
.ego-author img{width:44px;height:44px;border-radius:50%}
.ego-author__name{font-weight:700;font-size:14px}
.ego-author__date{font-size:13px;color:var(--ego-muted)}
.ego-share{display:flex;gap:6px;list-style:none;margin:0;padding:0}
.ego-share a,.ego-share button{width:40px;height:40px;border-radius:20px;border:1px solid var(--ego-line);display:flex;align-items:center;justify-content:center;background:#fff;color:#111;cursor:pointer;padding:0}
.ego-share a:hover,.ego-share button:hover{background:var(--ego-brand);border-color:var(--ego-brand);color:#fff}
.ego-share .ego-icon{width:18px;height:18px}
.ego-figure{margin:0 0 28px}
.ego-ad--below-image{margin:-8px 0 28px}
.ego-ad--below-image > div{max-width:970px}
.ego-figure img{width:100%;border-radius:var(--ego-radius)}
.ego-figure figcaption{font-size:13px;color:var(--ego-muted);margin-top:8px;line-height:1.4}

.ego-content{font-size:1.125rem;line-height:1.75;color:#1F2937;overflow-wrap:break-word}
.ego-content > *{margin-top:0;margin-bottom:1.25em}
.ego-content h2{font-family:var(--ego-font-head);font-size:28px;line-height:1.25;color:var(--ego-text);margin-top:1.6em}
.ego-content h3{font-family:var(--ego-font-head);font-size:23px;line-height:1.3;color:var(--ego-text);margin-top:1.4em}
.ego-content a{color:var(--ego-brand);text-decoration:underline;text-underline-offset:3px}
.ego-content blockquote{margin:1.6em 0;padding:4px 0 4px 22px;border-left:4px solid var(--ego-brand);font-family:var(--ego-font-head);font-size:1.3rem;line-height:1.5;color:var(--ego-text)}
.ego-content img,.ego-content figure{max-width:100%;height:auto}
.ego-content figure{margin-left:0;margin-right:0}
.ego-content figcaption{font-size:13px;color:var(--ego-muted);line-height:1.4;margin-top:6px}
.ego-content iframe,.ego-content embed,.ego-content video{max-width:100%}
.ego-content .wp-block-embed__wrapper{display:flex;justify-content:center}
.ego-content ul,.ego-content ol{padding-left:1.4em}
.ego-content .alignwide,.ego-content .alignfull{width:100%}

.ego-terms{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin:32px 0 24px}
.ego-terms__label{font-size:12px;font-weight:700;letter-spacing:1px;color:var(--ego-muted);text-transform:uppercase;margin-right:4px}
.ego-terms a{display:inline-block;background:var(--ego-soft);border-radius:999px;padding:6px 14px;font-size:13px;font-weight:600}
.ego-terms a:hover{background:var(--ego-brand);color:#fff}

.ego-related{margin-top:56px}
.ego-related .ego-grid{grid-template-columns:repeat(var(--ego-cols,5),minmax(0,1fr));gap:20px}
.ego-related .ego-card .ego-title{font-size:17px}
@media (max-width:1024px){.ego-related .ego-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media (max-width:760px){.ego-related .ego-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}}

.ego-comments{margin-top:48px}
.ego-comments h2{font-size:22px}
.ego-comments ol{list-style:none;padding:0}
.ego-comments .comment-body{padding:16px 0;border-bottom:1px solid var(--ego-line)}
.ego-comments textarea,.ego-comments input[type=text],.ego-comments input[type=email],.ego-comments input[type=url]{width:100%;border:1px solid var(--ego-line);border-radius:8px;padding:10px 12px}
.ego-comments .submit{background:var(--ego-brand);color:#fff;border:0;border-radius:8px;height:44px;padding:0 20px;font-weight:700;cursor:pointer}

/* Texto justificado */
.ego-content.is-justified p,.ego-content.is-justified li{text-align:justify;-webkit-hyphens:auto;hyphens:auto}
.ego-content.is-justified blockquote p,.ego-content.is-justified figcaption{text-align:left}

/* Blocos da lateral */
.ego-side-head{display:flex;align-items:center;justify-content:space-between;gap:12px;border-top:4px solid var(--ego-cat,var(--ego-text));padding-top:12px;margin-bottom:14px}
.ego-side-head h2,.ego-mostread h2{margin:0;font-size:20px;font-weight:800;color:var(--ego-cat,var(--ego-text));text-transform:uppercase;letter-spacing:.3px}
.ego-mostread h2{margin-bottom:8px;border-top-color:var(--ego-cat,var(--ego-text))}
.ego-side-lead{display:flex;flex-direction:column;gap:10px;padding-bottom:14px;border-bottom:1px solid var(--ego-line)}
.ego-side-lead .ego-title{font-size:18px;line-height:1.25}
.ego-side-list .ego-row:first-of-type{padding-top:14px}
.ego-side-list .ego-row:last-child{border-bottom:0}
.ego-sidebar .ego-ad{min-height:1px}

/* ---------- Arquivo / busca ---------- */
.ego-archive-head{border-top:4px solid var(--ego-cat,var(--ego-text));padding-top:14px;margin-bottom:28px}
.ego-archive-head h1{margin:0;font-size:36px;font-weight:800;color:var(--ego-cat,var(--ego-text));letter-spacing:-.5px}
.ego-archive-head p{color:var(--ego-muted);margin:8px 0 0}
.ego-list{display:flex;flex-direction:column}
.ego-list-item{display:flex;gap:20px;padding:20px 0;border-bottom:1px solid var(--ego-line)}
.ego-list-item:first-child{padding-top:0}
.ego-list-item .ego-thumb{width:280px;flex:none}
.ego-list-item__body{display:flex;flex-direction:column;gap:8px;min-width:0}
.ego-list-item .ego-title{font-size:23px}
.ego-list-item p{margin:0;color:#374151;font-size:15px}
.ego-pagination{margin-top:32px}
.ego-pagination .nav-links{display:flex;flex-wrap:wrap;gap:6px}
.ego-pagination .page-numbers{min-width:44px;height:44px;display:inline-flex;align-items:center;justify-content:center;border:1px solid var(--ego-line);border-radius:8px;padding:0 12px;font-weight:600}
.ego-pagination .page-numbers.current{background:var(--ego-brand);border-color:var(--ego-brand);color:#fff}

.ego-page .ego-article__title{font-size:40px}
.ego-404{text-align:center;padding:80px 0}
.ego-404 h1{font-size:72px;margin:0;color:var(--ego-brand)}

/* ---------- Rodapé ---------- */
.ego-footer{background:var(--ego-footer-bg);color:#D1D5DB;margin-top:24px}
.ego-footer a{color:#D1D5DB}
.ego-footer a:hover{color:#fff}
.ego-footer__top{display:flex;flex-wrap:wrap;gap:40px;justify-content:space-between;padding:48px 0 24px}
.ego-footer__brand{flex:1 1 280px;display:flex;flex-direction:column;gap:12px}
.ego-footer__brand .ego-logo__text{font-size:40px;letter-spacing:-1.5px;color:var(--ego-logo-dark,#3B9BEF)}
.ego-footer__brand img{max-height:56px;width:auto}
.ego-footer__brand p{margin:0;font-size:14px;line-height:1.6}
.ego-footer__cols{flex:2 1 480px;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px;font-size:14px}
.ego-footer__col h2{color:#fff;font-size:14px;font-weight:700;margin:0 0 12px}
.ego-footer__col ul{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:10px}
.ego-footer__bottom{border-top:1px solid #262626;padding:16px 0 28px;font-size:12px;color:#9CA3AF;display:flex;justify-content:space-between;flex-wrap:wrap;gap:12px}

/* ---------- Responsivo ---------- */
@media (max-width:1024px){
  .ego-hero__title{font-size:calc(var(--ego-hero-t,30px) * .9)}
  .ego-article__title{font-size:36px}
}
@media (max-width:782px){
  .admin-bar .ego-header.is-sticky{top:46px}
}
@media (max-width:760px){
  .ego-container{padding:0 16px}
  .ego-header__inner{min-height:64px;grid-template-columns:auto 1fr auto}
  .ego-logo__text{font-size:34px;letter-spacing:-1px}
  .ego-logo img{max-height:44px}
  .ego-discover,.ego-newsletter-link{display:none}
  .ego-nav ul{padding:0 16px;justify-content:flex-start}
  .ego-hero__img .ego-thumb{height:var(--ego-hero-hm,240px)}
  .ego-hide-mobile{display:none!important}
  .ego-hero__extra{padding-top:12px}
  .ego-hero__title{font-size:26px}
  .ego-article__title{font-size:29px}
  .ego-article__subtitle{font-size:17px}
  .ego-content{font-size:1.0625rem}
  .ego-list-item .ego-thumb{width:120px;aspect-ratio:1/1}
  .ego-list-item .ego-title{font-size:18px}
  .ego-list-item p{display:none}
  .ego-footer__cols{grid-template-columns:repeat(2,minmax(0,1fr))}
  .ego-section-head h2{font-size:22px}
  .ego-ad--fixed,.ego-ad--fixed ins.adsbygoogle{height:100px!important}
  .ego-ad--sticky{position:static}
}
