/*
Theme Name: Oeste Geral
Theme URI: https://revistaoeste.com/oestegeral/
Author: ADZEP / Camillo Dantas
Author URI: https://camillodantas.com.br
Description: Tema editorial de alta performance para WordPress. HTML5 semântico, acessibilidade WCAG, Core Web Vitals (CLS zero em slots de anúncio), resource hints, schema.org com grafo de entidades, otimização para citação por LLMs (AEO/GEO), E-E-A-T e SEO de vanguarda sem conflito com plugins de SEO.
Version: 1.2.0
Requires at least: 6.3
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: oestegeral
Tags: news, blog, editorial, accessibility-ready, custom-colors, custom-logo, featured-images, threaded-comments, translation-ready, block-styles, wide-blocks
*/

/* ==========================================================================
   1. DESIGN TOKENS
   ========================================================================== */
:root{
  --og-accent:#c2932b;
  --og-accent-strong:#bd8e27;
  --og-accent-deep:#9a6f12;
  --og-heading:#212121;
  --og-body:#53585c;
  --og-black:#000;
  --og-navbar-bg:#0a0a0a;
  --og-navbar-link:#fff;
  --og-navbar-link-hover:#808080;
  --og-white:#fff;
  --og-muted:#6b7280;
  --og-card-border:#f3f4f6;
  --og-card-bg:#f9fafb;
  --og-line:#ececec;
  --og-dropdown-hover-bg:rgba(127,172,244,.35);

  --og-font-nav:"Helvetica Neue",Helvetica,Arial,sans-serif;
  --og-font-body:"Libre Franklin","franklin-gothic-urw",Arial,sans-serif;

  --og-radius:4px;
  --og-radius-card:16px;
  --og-container:1200px;
  --og-gap:32px;
}

/* ==========================================================================
   2. RESET / BASE
   ========================================================================== */
*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%;scroll-behavior:smooth}
body{
  margin:0;
  font-family:var(--og-font-body);
  font-size:16px;
  line-height:1.6;
  color:var(--og-body);
  background:var(--og-white);
  text-rendering:optimizeLegibility;
  -webkit-font-smoothing:antialiased;
}
img,picture,svg,video{max-width:100%;height:auto;display:block}
a{color:var(--og-accent-deep);text-decoration:none}
a:hover{text-decoration:underline}
h1,h2,h3,h4,h5,h6{color:var(--og-heading);font-weight:800;line-height:1.25;margin:0 0 .5em;text-wrap:balance}
h1{font-weight:850}
p{margin:0 0 1rem;text-wrap:pretty}
ul,ol{margin:0 0 1rem;padding-left:1.25rem}
button{font-family:inherit;cursor:pointer}
:focus-visible{outline:3px solid var(--og-accent-deep);outline-offset:2px}

/* Acessibilidade: skip link */
.skip-link{
  position:absolute;left:-9999px;top:0;z-index:9999;
  background:var(--og-black);color:#fff;padding:12px 20px;border-radius:0 0 4px 0;
}
.skip-link:focus{left:0}
.screen-reader-text{
  border:0;clip:rect(1px,1px,1px,1px);clip-path:inset(50%);height:1px;width:1px;
  margin:-1px;overflow:hidden;padding:0;position:absolute;word-wrap:normal!important;
}

.container{max-width:var(--og-container);margin:0 auto;padding:0 20px;width:100%}

/* ==========================================================================
   3. HEADER
   ========================================================================== */
.site-header{position:relative;z-index:50}
.og-midbar{min-height:82px;display:flex;align-items:center;border-bottom:1px solid var(--og-line)}
.og-midbar .container{display:flex;align-items:center;justify-content:space-between;gap:12px}
.og-header-left{display:flex;align-items:center;gap:14px;flex:1;min-width:0}
.og-header-center{display:flex;justify-content:center;flex:0 0 auto}
.og-header-actions{display:flex;align-items:center;gap:16px;flex:1;justify-content:flex-end;min-width:0}

.og-menu-toggle{display:none;background:none;border:0;color:var(--og-heading);padding:4px;cursor:pointer;align-items:center}
.og-search-toggle{display:flex;align-items:center;gap:8px;color:var(--og-muted);font-size:14px;font-weight:600;background:none;border:0;cursor:pointer;padding:4px}
.og-search-toggle svg{flex-shrink:0}
.og-search-toggle-mobile{display:none;background:none;border:0;color:var(--og-heading);padding:4px;cursor:pointer}

.og-brand{display:flex;justify-content:center;align-items:center}
.og-brand img{width:100px;height:52px;object-fit:contain}
.og-brand .og-logo-text{font-family:var(--og-font-nav);font-weight:900;font-size:26px;letter-spacing:.5px;color:var(--og-accent-strong);line-height:1;text-align:center}
.og-brand .og-logo-text small{display:block;color:var(--og-heading)}
.og-entrar{display:flex;align-items:center;gap:6px;color:var(--og-body);font-size:14px;font-weight:500}
.og-entrar svg{flex-shrink:0}
.og-entrar:hover{color:var(--og-accent-deep);text-decoration:none}

@keyframes ogPulse{0%{transform:scale(1)}50%{transform:scale(1.08)}100%{transform:scale(1)}}
@media (prefers-reduced-motion:reduce){.og-cta-assine{animation:none!important}}
.og-cta-assine{
  background:var(--og-black);color:var(--og-accent-strong);
  padding:8px 25px;font-weight:900;font-size:18px;line-height:25px;
  text-transform:uppercase;border-radius:var(--og-radius);white-space:nowrap;
  display:inline-flex;align-items:center;justify-content:center;
  animation:ogPulse 1.6s ease-in-out infinite;
}
.og-cta-assine:hover{color:#fff;text-decoration:none}

/* Menu desktop */
.og-bottombar{background:var(--og-navbar-bg);min-height:53px}
.og-bottombar .container{display:flex;align-items:center;justify-content:center}
.og-nav{flex:1}
.og-menu{list-style:none;display:flex;flex-wrap:wrap;gap:0;margin:0;padding:0;justify-content:center}
.og-menu li{position:relative}
.og-menu a{
  display:flex;align-items:center;min-height:53px;padding:0 14px;
  font-family:var(--og-font-nav);font-size:14px;font-weight:700;color:var(--og-navbar-link);
}
.og-menu a:hover{color:var(--og-navbar-link-hover);text-decoration:none}
.og-menu .sub-menu{
  position:absolute;top:100%;left:0;min-width:210px;background:var(--og-navbar-bg);
  list-style:none;margin:0;padding:6px 0;display:none;z-index:60;box-shadow:0 8px 24px rgba(0,0,0,.25)
}
.og-menu li:hover>.sub-menu,.og-menu li:focus-within>.sub-menu{display:block}
.og-menu .sub-menu a{min-height:auto;padding:9px 16px;font-size:13px;font-weight:600}
.og-menu .sub-menu a:hover{background:var(--og-dropdown-hover-bg);color:#fff}

/* Modal de busca (overlay) */
.og-search-modal,.og-mobile-panel{position:fixed;inset:0;z-index:1000}
.og-search-modal[hidden],.og-mobile-panel[hidden]{display:none}
.og-search-modal-backdrop,.og-mobile-panel-backdrop{position:absolute;inset:0;background:rgba(0,0,0,.55)}
@keyframes ogFadeIn{from{opacity:0}to{opacity:1}}
@keyframes ogSlideDown{from{opacity:0;transform:translateY(-16px)}to{opacity:1;transform:translateY(0)}}
.og-search-modal-inner{
  position:relative;max-width:640px;margin:12vh auto 0;background:#fff;border-radius:var(--og-radius-card);
  padding:32px;box-shadow:0 24px 60px rgba(0,0,0,.3);animation:ogSlideDown .2s ease
}
.og-modal-title{font-size:22px;font-weight:850;margin:0 0 16px}
.og-modal-close{position:absolute;top:14px;right:14px;background:none;border:0;color:var(--og-heading);cursor:pointer;padding:6px;border-radius:50%}
.og-modal-close:hover{background:var(--og-card-bg)}
.og-search-modal .og-search-form{display:flex;gap:8px}
.og-search-modal .og-search-form input{flex:1}

/* Painel de menu mobile (full-screen) */
.og-mobile-panel-inner{
  position:relative;width:88%;max-width:420px;height:100%;background:#fff;overflow-y:auto;
  padding:64px 24px 32px;animation:ogSlideDown .2s ease;-webkit-overflow-scrolling:touch
}
.og-mobile-search{margin-bottom:20px}
.og-mobile-search .og-search-form{display:flex;gap:8px}
.og-mobile-search .og-search-form input{flex:1}
.og-cta-assine-mobile{width:100%;margin-bottom:8px;padding:12px;font-size:20px;animation:none}
.og-mobile-menu{list-style:none;margin:0;padding:0}
.og-mobile-menu li{border-bottom:1px solid var(--og-line)}
.og-mobile-menu a{display:flex;align-items:center;justify-content:space-between;padding:15px 4px;font-family:var(--og-font-nav);font-weight:800;font-size:19px;color:var(--og-heading)}
.og-mobile-menu a:hover{color:var(--og-accent-deep);text-decoration:none}
.og-mobile-menu .sub-menu{list-style:none;margin:0 0 8px;padding:0 0 0 12px}
.og-mobile-menu .sub-menu a{font-size:15px;font-weight:600;padding:10px 4px;color:var(--og-body)}
.og-mobile-menu .menu-item-has-children>a::after{content:"›";font-size:22px;color:var(--og-muted)}
.og-mobile-entrar{display:inline-block;margin-top:18px;font-weight:700;color:var(--og-accent-deep)}
.og-mobile-social{display:flex;gap:12px;margin-top:24px}
.og-mobile-social a{width:40px;height:40px;border-radius:8px;display:inline-flex;align-items:center;justify-content:center;color:#fff}
.og-social-facebook{background:#1877f2}.og-social-twitter{background:#000}
.og-social-instagram{background:#e1306c}.og-social-telegram{background:#229ed9}
.og-mobile-social a:hover{filter:brightness(1.1)}
.og-mobile-copyright{margin-top:20px;font-size:12px;color:var(--og-muted)}
body.og-no-scroll{overflow:hidden}

/* ==========================================================================
   4. LAYOUT
   ========================================================================== */
.site-main{padding:30px 0 50px}
.og-layout{display:grid;grid-template-columns:8fr 4fr;gap:var(--og-gap);align-items:start}
.og-content-col{min-width:0}
.og-sidebar{position:sticky;top:20px}

/* Breadcrumbs */
.og-breadcrumb{font-size:13px;margin-bottom:16px;color:var(--og-body)}
.og-breadcrumb a{color:var(--og-body)}
.og-breadcrumb a:hover{color:var(--og-accent-deep)}
.og-breadcrumb [aria-current]{color:var(--og-heading);font-weight:600}

/* ==========================================================================
   5. CARD DE POST
   ========================================================================== */
.og-post-card{display:flex;gap:20px;padding:22px 0;border-bottom:1px solid var(--og-line)}
.og-post-card .og-thumb{flex:0 0 300px;max-width:300px}
.og-post-card .og-thumb a{display:block}
.og-post-card .og-thumb img{width:100%;border-radius:6px;aspect-ratio:35/25;object-fit:cover;background:#e9e9e9}
.og-post-card .og-card-body{display:flex;flex-direction:column;min-width:0}
.og-post-card .og-card-title{font-size:22px;font-weight:850;line-height:1.25;margin:0}
.og-post-card .og-card-title a{color:var(--og-heading)}
.og-post-card .og-card-title a:hover{color:var(--og-accent-deep);text-decoration:none}
.og-post-card .og-excerpt{font-size:18px;line-height:26px;font-weight:400;margin:12px 0 0;color:var(--og-body)}
.og-post-card .og-meta{display:flex;flex-wrap:wrap;gap:12px;align-items:center;font-size:13px;color:var(--og-muted)}
.og-meta-author{color:var(--og-accent-deep);font-weight:850}
.og-meta time{color:var(--og-muted)}

/* ==========================================================================
   6. SIDEBAR WIDGET
   ========================================================================== */
.og-widget{
  border:2px solid var(--og-card-border);background:var(--og-card-bg);
  padding:16px;border-radius:var(--og-radius-card);margin-bottom:24px;
}
.og-widget .og-widget-title{font-weight:850;font-size:20px;color:#000;margin:0 0 16px}
.og-widget ul{list-style:none;margin:0;padding:0}
.og-widget .og-mini-post{padding:12px 0;border-bottom:1px solid #eaeaea}
.og-widget .og-mini-post:last-child{border-bottom:0;padding-bottom:0}
.og-widget .og-mini-post a{font-weight:850;font-size:16px;color:var(--og-heading);line-height:1.3;display:block}
.og-widget .og-mini-post a:hover{color:var(--og-accent-deep);text-decoration:none}

/* ==========================================================================
   7. SINGLE
   ========================================================================== */
.og-single .og-article-header{margin-bottom:20px}
.og-single h1.og-title{font-size:34px;line-height:1.2;font-weight:850;margin:0 0 16px}
.og-single .og-post-meta{display:flex;flex-wrap:wrap;align-items:center;gap:14px;margin-bottom:16px}
.og-single .og-author-mini{display:flex;align-items:center;gap:8px}
.og-single .og-author-mini img{width:42px;height:42px;border-radius:50%;background:#ddd}
.og-featured{margin:0 0 20px}
.og-featured img{width:100%;border-radius:6px;aspect-ratio:2/1;object-fit:cover;background:#ddd}
.og-featured figcaption{font-size:13px;color:var(--og-muted);margin-top:8px}
.og-content{font-size:18px;line-height:1.7}
.og-content h2{font-size:25px;font-weight:850;margin:32px 0 14px}
.og-content h3{font-size:21px;font-weight:800;margin:26px 0 12px}
.og-content figure{margin:20px 0}
.og-content figure img{border-radius:6px}
.og-content figcaption{font-size:13px;color:var(--og-muted);text-align:center;margin-top:6px}
.og-content table{width:100%;border-collapse:collapse;margin:20px 0;font-size:16px}
.og-content th{background:#faf6ec;color:var(--og-body);text-align:left}
.og-content th,.og-content td{border:1px solid var(--og-line);padding:10px}
.og-content tbody tr:hover{background:#fcfaf4}
.og-content blockquote{border-left:4px solid var(--og-accent);margin:20px 0;padding:6px 0 6px 20px;font-size:1.1em;color:var(--og-heading)}
.og-content a{text-decoration:underline}
.og-tags{margin:28px 0;display:flex;flex-wrap:wrap;gap:8px;align-items:center}
.og-tags .og-tags-label{font-weight:700;color:var(--og-heading)}
.og-tags a{background:var(--og-card-bg);border:1px solid var(--og-card-border);padding:4px 12px;border-radius:20px;font-size:13px}
.og-tags a:hover{background:var(--og-accent-deep);color:#fff;text-decoration:none}

/* Share */
.og-share{display:flex;gap:6px;align-items:center}
.og-share.og-share-right{margin-left:auto}
.og-share a{
  width:28px;height:28px;border-radius:4px;display:inline-flex;align-items:center;justify-content:center;
  background:var(--og-accent-deep);color:#fff;
}
.og-share a:hover{filter:brightness(1.1)}
.og-share a svg{width:14px;height:14px;fill:#fff}

/* Caixa de autor (E-E-A-T) */
.og-author-box{
  display:flex;gap:18px;margin:36px 0;padding:20px;border:1px solid var(--og-card-border);
  background:var(--og-card-bg);border-radius:var(--og-radius-card);
}
.og-author-box img{width:72px;height:72px;border-radius:50%;flex-shrink:0;background:#ddd}
.og-author-box .og-author-name{font-size:18px;font-weight:850;color:var(--og-heading);margin:0 0 4px}
.og-author-box .og-author-role{font-size:13px;color:var(--og-accent-deep);font-weight:700;margin:0 0 8px}
.og-author-box .og-author-bio{font-size:15px;margin:0 0 8px}
.og-author-box .og-author-links a{font-size:13px;margin-right:12px}

/* Bloco "Resumo para IA" (AEO/GEO) */
.og-key-takeaways{
  border:1px solid var(--og-card-border);background:var(--og-card-bg);
  border-radius:var(--og-radius-card);padding:20px;margin:24px 0;
}
.og-key-takeaways h2{font-size:18px;margin:0 0 12px}
.og-key-takeaways ul{margin:0;padding-left:1.2rem}
.og-key-takeaways li{margin-bottom:8px}

/* ==========================================================================
   8. SLOTS DE ANÚNCIO — CLS ZERO
   ========================================================================== */
.og-ad{
  display:flex;align-items:center;justify-content:center;
  margin:24px auto;background:var(--og-card-bg);
  overflow:hidden;position:relative;contain:layout style;
}
.og-ad::before{content:"Publicidade";position:absolute;top:4px;left:8px;font-size:10px;letter-spacing:.5px;text-transform:uppercase;color:#aaa}
/* Alturas reservadas evitam layout shift */
.og-ad-leaderboard{width:100%;max-width:728px;min-height:90px;height:90px}
.og-ad-billboard{width:100%;max-width:970px;min-height:250px;height:250px}
.og-ad-rectangle{width:300px;height:250px}
.og-ad-halfpage{width:300px;height:600px}
.og-ad-mobile{width:320px;height:100px}
@media(min-width:768px){.og-ad-responsive{min-height:280px}}
@media(max-width:767px){.og-ad-responsive{min-height:250px}}

/* ==========================================================================
   9. PAGINAÇÃO
   ========================================================================== */
.og-pagination{display:flex;gap:8px;justify-content:center;margin:40px 0;flex-wrap:wrap}
.og-pagination .page-numbers{
  display:inline-flex;align-items:center;justify-content:center;min-width:40px;height:40px;padding:0 10px;
  border:1px solid var(--og-line);border-radius:var(--og-radius);color:var(--og-heading);font-weight:600;
}
.og-pagination .page-numbers.current{background:var(--og-accent-deep);color:#fff;border-color:var(--og-accent-deep)}
.og-pagination .page-numbers:hover:not(.current){background:var(--og-card-bg);text-decoration:none}

/* ==========================================================================
   10. PÁGINAS / CONTEÚDO ESTÁTICO
   ========================================================================== */
.og-page-content{font-size:17px;line-height:1.7}
.og-page-content h2{font-size:26px;margin:30px 0 14px}
.og-page-content h3{font-size:20px;margin:24px 0 10px}
.og-page-header{margin-bottom:24px}
.og-page-header h1{font-size:36px}

/* ==========================================================================
   11. FOOTER
   ========================================================================== */
.site-footer{background:#fff;border-top:1px solid var(--og-line);padding:48px 0 24px;margin-top:40px}
.og-footer-cols{display:grid;grid-template-columns:1.6fr 1fr 1fr 1fr;gap:24px}
.og-footer-cols h2,.og-footer-cols .og-fcol-title{text-transform:uppercase;font-size:14px;color:var(--og-heading);font-weight:800;margin:0 0 14px}
.og-footer-cols ul{list-style:none;margin:0;padding:0}
.og-footer-cols li{margin-bottom:8px}
.og-footer-cols a{color:var(--og-body);font-size:14px}
.og-footer-cols a:hover{color:var(--og-accent-deep)}
.og-footer-brand .og-footer-logo{font-family:var(--og-font-nav);font-weight:900;font-size:28px;color:var(--og-accent-strong);letter-spacing:1px;margin-bottom:12px}
.og-footer-brand p{font-size:14px}
.og-socials{display:flex;gap:14px;margin-top:24px}
.og-socials a{color:var(--og-muted)}
.og-socials a:hover{color:var(--og-accent-deep)}
.og-copyright{color:var(--og-muted);font-size:13px;margin-top:24px;border-top:1px solid var(--og-line);padding-top:18px}

/* ==========================================================================
   12. FORMULÁRIOS
   ========================================================================== */
input[type=text],input[type=email],input[type=search],input[type=url],textarea{
  width:100%;padding:10px 12px;border:1px solid #ddd;border-radius:var(--og-radius);font-family:inherit;font-size:15px
}
.og-btn{display:inline-block;padding:10px 22px;border:0;border-radius:var(--og-radius);background:var(--og-accent-deep);color:#fff;font-weight:700;font-size:15px}
.og-btn:hover{background:var(--og-accent-deep);text-decoration:none;color:#fff}

/* ==========================================================================
   13. RESPONSIVO
   ========================================================================== */
@media(max-width:980px){
  .og-layout{grid-template-columns:1fr}
  .og-sidebar{position:static}
  .og-footer-cols{grid-template-columns:1fr 1fr}
  .og-related-grid{gap:20px 24px}
}
/* Tablet e mobile: menu vira hamburger, some a barra preta */
@media(max-width:860px){
  .og-menu-toggle{display:inline-flex}
  .og-search-toggle{display:none}
  .og-search-toggle-mobile{display:inline-flex}
  .og-bottombar{display:none}
  .og-header-left{flex:0 0 auto;gap:6px}
  .og-header-center{flex:1;justify-content:center}
  .og-header-actions{flex:0 0 auto;gap:8px}
  .og-header-actions .og-entrar,.og-header-actions .og-cta-assine{display:none}
  .og-midbar{min-height:64px}
  /* Área de toque confortável (44x44) */
  .og-menu-toggle,.og-search-toggle-mobile{min-width:44px;min-height:44px;justify-content:center;align-items:center;padding:8px}
  .og-brand .og-logo-text{font-size:23px}
}
@media(max-width:768px){
  .og-related-grid{grid-template-columns:1fr;gap:0}
  .og-related-item{padding:14px 0;border-bottom:1px solid var(--og-line)}
  .og-post-card{flex-direction:column}
  .og-post-card .og-thumb{flex:none;max-width:100%}
  .og-single h1.og-title{font-size:27px}
  .og-footer-cols{grid-template-columns:1fr}
  .og-content{font-size:17px}
}
@media(max-width:480px){
  .og-brand .og-logo-text{font-size:21px}
  .og-cta-assine{font-size:13px;padding:6px 12px}
  .og-header-actions{gap:10px}
  .og-single h1.og-title{font-size:24px}
  .og-search-modal-inner{margin:8vh 12px 0;padding:24px}
}

/* Print */
@media print{
  .site-header,.site-footer,.og-sidebar,.og-ad,.og-share{display:none!important}
  body{color:#000}
}

/* Respeito a quem prefere menos movimento */
@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  *,*::before,*::after{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important}
}

/* ==========================================================================
   14. LEIA TAMBÉM (relacionados) / 404 / UPDATED
   ========================================================================== */
.og-related{margin:40px 0;border-top:1px solid var(--og-line);padding-top:8px}
.og-related-title{font-size:20px;font-weight:400;margin:16px 0 18px;color:var(--og-heading)}
.og-related-title strong{font-weight:850}
.og-related-viewport{overflow:hidden}
.og-related-grid{display:grid;grid-template-columns:1fr 1fr;gap:22px 32px}
.og-related-item{display:flex;gap:16px;align-items:flex-start}
.og-related-thumb{flex:0 0 96px;width:96px;height:72px;border-radius:6px;overflow:hidden;background:#e9e9e9;display:block}
.og-related-thumb img{width:96px;height:72px;object-fit:cover}
.og-related-thumb-ph{display:block;width:96px;height:72px;background:linear-gradient(135deg,#eee,#e0e0e0)}
.og-related-body{min-width:0}
.og-related-item-title{font-size:16px;font-weight:800;line-height:1.35;margin:0 0 8px}
.og-related-item-title a{color:var(--og-heading)}
.og-related-item-title a:hover{color:var(--og-accent-deep);text-decoration:none}
.og-related-date{display:inline-flex;align-items:center;gap:5px;font-size:12px;color:var(--og-muted)}
.og-related-date svg{opacity:.7}
/* Carrossel */
.og-related.is-carousel .og-related-item{display:none}
.og-related.is-carousel .og-related-item.is-visible{display:flex}
.og-related-nav{display:flex;align-items:center;justify-content:center;gap:16px;margin-top:22px;border-top:1px solid var(--og-line);padding-top:16px}
.og-related-prev,.og-related-next{width:40px;height:40px;border:1px solid var(--og-line);background:#fff;border-radius:var(--og-radius);display:inline-flex;align-items:center;justify-content:center;cursor:pointer;color:var(--og-heading)}
.og-related-prev:hover:not(:disabled),.og-related-next:hover:not(:disabled){background:var(--og-card-bg);border-color:var(--og-muted)}
.og-related-prev:disabled,.og-related-next:disabled{opacity:.35;cursor:default}
.og-related-dots{display:inline-flex;gap:7px}
.og-related-dots button{width:8px;height:8px;padding:0;border:0;border-radius:50%;background:#d3d3d3;cursor:pointer}
.og-related-dots button.is-active{background:var(--og-accent-deep)}

.og-updated{font-size:13px;color:var(--og-muted)}
.og-search-form{display:flex;gap:8px}
.og-search-form input{flex:1}
.og-no-results,.og-404{padding:30px 0;max-width:640px}
.og-404 h1{font-size:30px}
.og-archive-header{margin-bottom:20px;border-bottom:1px solid var(--og-line);padding-bottom:14px}
.og-archive-title{font-size:28px;font-weight:850}
.og-more-link{margin:24px 0}
.og-page-links{margin:20px 0;display:flex;gap:8px;align-items:center}
.comment-list{list-style:none;padding:0}
.comment-list .comment{border-bottom:1px solid var(--og-line);padding:16px 0}
.comment-respond{margin-top:24px}

/* ==========================================================================
   15. AUTORIA (bio box + página de perfil) — E-E-A-T
   ========================================================================== */
.og-author-cred{display:flex;align-items:center;gap:6px;font-size:13px;color:var(--og-accent-deep);font-weight:700;margin:0 0 8px}
.og-author-cred svg{color:var(--og-accent-deep);flex-shrink:0}
.og-author-topics{font-size:13px;color:var(--og-muted);margin:0 0 10px}
.og-author-topics-label{font-weight:700;color:var(--og-heading);margin-right:4px}
.og-author-topics a{color:var(--og-accent-deep)}
.og-author-links{display:flex;flex-wrap:wrap;gap:14px;align-items:center;margin:0}
.og-author-allposts{font-weight:700}

/* Página de perfil do autor */
.og-author-profile{border:1px solid var(--og-card-border);background:var(--og-card-bg);border-radius:var(--og-radius-card);padding:28px;margin-bottom:28px}
.og-author-profile-head{display:flex;gap:24px;align-items:flex-start}
.og-author-profile-avatar{width:96px;height:96px;border-radius:50%;flex-shrink:0;background:#ddd}
.og-author-profile-name{font-size:30px;font-weight:850;margin:0 0 4px}
.og-author-profile-role{font-size:15px;font-weight:700;color:var(--og-accent-deep);margin:0 0 6px}
.og-author-profile-cred,.og-author-profile-alma{font-size:13px;color:var(--og-muted);margin:0 0 4px}
.og-author-profile-links{display:flex;flex-wrap:wrap;gap:10px;margin-top:12px}
.og-btn-ghost{background:transparent;border:1px solid var(--og-accent);color:var(--og-accent-deep);padding:6px 16px;font-size:13px}
.og-btn-ghost:hover{background:var(--og-accent-deep);color:#fff}
.og-author-profile-bio{font-size:16px;line-height:1.7;margin:20px 0 0;color:var(--og-body)}
.og-author-profile-topics{margin-top:16px;display:flex;flex-wrap:wrap;gap:8px;align-items:center}
.og-topic-chip{background:#fff;border:1px solid var(--og-card-border);padding:4px 14px;border-radius:20px;font-size:13px;color:var(--og-heading)}
.og-topic-chip:hover{background:var(--og-accent-deep);color:#fff;text-decoration:none}
.og-author-articles-title{font-size:22px;font-weight:850;margin:0 0 16px;border-bottom:3px solid var(--og-accent);display:inline-block;padding-bottom:4px}
@media(max-width:768px){
  .og-author-profile{padding:20px}
  .og-author-profile-head{flex-direction:column;align-items:center;text-align:center}
  .og-author-profile-links{justify-content:center}
  .og-author-profile-topics{justify-content:center}
}

/* Tabelas responsivas (wrapper criado via JS) */
.og-table-wrap{overflow-x:auto;-webkit-overflow-scrolling:touch;margin:20px 0;max-width:100%}
.og-table-wrap table{margin:0;min-width:480px}
.og-table-wrap:focus-visible{outline:3px solid var(--og-accent-deep);outline-offset:2px}

/* ==========================================================================
   16. PÁGINA DO AUTOR — HERO PREMIUM
   ========================================================================== */
.og-author-hero{
  position:relative;background:linear-gradient(180deg,#fbf8f0 0%,var(--og-card-bg) 100%);
  border:1px solid var(--og-card-border);border-radius:20px;padding:36px;margin:8px 0 36px;overflow:hidden
}
.og-author-hero::before{content:"";position:absolute;top:0;left:0;right:0;height:5px;background:linear-gradient(90deg,var(--og-accent-deep),var(--og-accent),var(--og-accent-strong))}
.og-author-hero-top{display:flex;gap:32px;align-items:flex-start}
.og-author-hero-avatar{flex:0 0 auto;position:relative}
.og-author-hero-img{width:140px;height:140px;border-radius:50%;object-fit:cover;border:4px solid #fff;box-shadow:0 8px 28px rgba(154,111,18,.22)}
.og-author-hero-meta{min-width:0;flex:1}
.og-author-eyebrow{text-transform:uppercase;letter-spacing:2px;font-size:12px;font-weight:800;color:var(--og-accent-deep);margin:0 0 6px}
.og-author-hero-name{font-size:40px;font-weight:850;line-height:1.1;margin:0 0 6px}
.og-author-hero-role{font-size:17px;font-weight:700;color:var(--og-accent-deep);margin:0 0 14px}
.og-author-badges{display:flex;flex-wrap:wrap;gap:10px;margin-bottom:16px}
.og-author-badge{display:inline-flex;align-items:center;gap:7px;background:#fff;border:1px solid var(--og-card-border);border-radius:22px;padding:6px 14px;font-size:13px;font-weight:600;color:var(--og-body)}
.og-author-badge svg{color:var(--og-accent-deep);flex-shrink:0}
.og-author-hero-social{display:flex;flex-wrap:wrap;gap:10px}
.og-author-social-btn{display:inline-flex;align-items:center;gap:8px;background:var(--og-heading);color:#fff;padding:9px 18px;border-radius:8px;font-size:14px;font-weight:700}
.og-author-social-btn svg{fill:#fff}
.og-author-social-btn:hover{background:var(--og-accent-deep);text-decoration:none;color:#fff}
.og-author-hero-bio{font-size:16px;line-height:1.75;color:var(--og-body);margin:26px 0 0;max-width:none}
.og-author-hero-stats{display:flex;flex-wrap:wrap;gap:32px;align-items:flex-start;margin-top:26px;padding-top:24px;border-top:1px solid var(--og-card-border)}
.og-stat{display:flex;flex-direction:column;gap:4px}
.og-stat-num{font-size:32px;font-weight:850;color:var(--og-heading);line-height:1}
.og-stat-label{font-size:13px;color:var(--og-muted);font-weight:600}
.og-stat-topics{flex:1;min-width:200px}
.og-author-topic-chips{display:flex;flex-wrap:wrap;gap:8px;margin-top:8px}
.og-topic-chip{background:#fff;border:1px solid var(--og-card-border);padding:5px 15px;border-radius:20px;font-size:13px;font-weight:600;color:var(--og-heading)}
.og-topic-chip:hover{background:var(--og-accent-deep);color:#fff;text-decoration:none;border-color:var(--og-accent-deep)}
.og-section-heading{font-size:24px;font-weight:850;margin:0 0 20px;position:relative;padding-left:16px}
.og-section-heading::before{content:"";position:absolute;left:0;top:2px;bottom:2px;width:5px;border-radius:3px;background:var(--og-accent)}

@media(max-width:768px){
  .og-author-hero{padding:24px 20px;border-radius:16px}
  .og-author-hero-top{flex-direction:column;align-items:center;text-align:center;gap:18px}
  .og-author-hero-img{width:112px;height:112px}
  .og-author-hero-name{font-size:30px}
  .og-author-badges,.og-author-hero-social{justify-content:center}
  .og-author-hero-bio{text-align:left}
  .og-author-hero-stats{justify-content:center;text-align:center;gap:24px}
  .og-stat{align-items:center}
  .og-author-topic-chips{justify-content:center}
}

/* ==========================================================================
   17. CARDS PREMIUM (badge de categoria + tempo de leitura + hover)
   ========================================================================== */
.og-cat-badge{display:inline-block;background:var(--og-accent-deep);color:#fff;font-size:11px;font-weight:800;text-transform:uppercase;letter-spacing:.5px;padding:4px 10px;border-radius:4px;margin-bottom:10px}
.og-cat-badge:hover{background:var(--og-black);color:#fff;text-decoration:none}
.og-readtime{display:inline-flex;align-items:center;gap:5px;font-size:13px;color:var(--og-muted)}
.og-readtime svg{opacity:.7}
.og-post-card{transition:transform .18s ease}
.og-post-card .og-thumb img{transition:transform .3s ease}
.og-post-card:hover .og-thumb img{transform:scale(1.04)}
.og-post-card .og-thumb{overflow:hidden;border-radius:6px}

/* Card footer (meta + tempo de leitura) */
.og-card-footer{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:10px;margin-top:16px}
.og-card-footer .og-meta{margin-top:0}
.og-cards-grid{display:block}

/* ==========================================================================
   18. TOQUES PREMIUM (progresso de leitura, voltar ao topo, meta single)
   ========================================================================== */
.og-author-mini-info{display:flex;flex-direction:column;gap:6px}
.og-author-mini-info .og-readtime{padding-left:2px}
.og-article-header .og-cat-badge{margin-bottom:14px}

.og-reading-progress{position:fixed;top:0;left:0;right:0;height:3px;background:transparent;z-index:200;pointer-events:none}
.og-reading-progress span{display:block;height:100%;width:0;background:linear-gradient(90deg,var(--og-accent-deep),var(--og-accent-strong));transition:width .1s linear}

.og-to-top{
  position:fixed;bottom:22px;right:22px;z-index:150;width:46px;height:46px;border-radius:50%;
  border:0;background:var(--og-heading);color:#fff;cursor:pointer;display:flex;align-items:center;justify-content:center;
  box-shadow:0 6px 20px rgba(0,0,0,.25);opacity:0;transform:translateY(12px);transition:opacity .2s ease,transform .2s ease,background .2s ease
}
.og-to-top.is-visible{opacity:1;transform:translateY(0)}
.og-to-top:hover{background:var(--og-accent-deep)}
.og-to-top[hidden]{display:none}
@media(max-width:480px){.og-to-top{bottom:16px;right:16px;width:42px;height:42px}}

/* ==========================================================================
   19. POST EM DESTAQUE (hero card) + HEADER DE ARQUIVO
   ========================================================================== */
.og-featured-card{margin:0 0 28px;border-radius:14px;overflow:hidden;background:var(--og-black);position:relative;box-shadow:0 10px 30px rgba(0,0,0,.12)}
.og-featured-card-link{display:block;color:#fff;position:relative}
.og-featured-card-link:hover{text-decoration:none}
.og-featured-card-media{position:relative;aspect-ratio:16/9;overflow:hidden}
.og-featured-card-media img{width:100%;height:100%;object-fit:cover;transition:transform .5s ease}
.og-featured-card:hover .og-featured-card-media img{transform:scale(1.05)}
.og-featured-card-body{position:absolute;left:0;right:0;bottom:0;padding:28px;background:linear-gradient(180deg,transparent,rgba(0,0,0,.85))}
.og-featured-card-body .og-cat-badge{background:var(--og-accent);color:var(--og-black)}
.og-featured-card-title{font-size:30px;font-weight:850;line-height:1.15;margin:0 0 10px;color:#fff;text-wrap:balance}
.og-featured-card-excerpt{font-size:16px;color:rgba(255,255,255,.88);margin:0 0 12px;max-width:640px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.og-featured-card-meta{display:flex;flex-wrap:wrap;gap:14px;align-items:center;font-size:13px;color:rgba(255,255,255,.8)}
.og-featured-card-meta .og-meta-author{color:var(--og-accent-strong);font-weight:800}
.og-featured-card-meta .og-readtime{color:rgba(255,255,255,.8)}
@media(max-width:600px){
  .og-featured-card-body{padding:18px;position:static;background:var(--og-heading)}
  .og-featured-card-title{font-size:22px}
  .og-featured-card-media{aspect-ratio:16/10}
}

/* Header de arquivo/categoria premium */
.og-archive-header{margin-bottom:26px;border-bottom:0;padding-bottom:0;position:relative}
.og-archive-title{font-size:34px;font-weight:850;position:relative;display:inline-block;padding-bottom:10px}
.og-archive-title::after{content:"";position:absolute;left:0;bottom:0;width:60px;height:4px;border-radius:2px;background:var(--og-accent)}
.og-archive-desc{margin-top:14px;font-size:16px;color:var(--og-body);max-width:720px}

/* ==========================================================================
   20. NEWSLETTER
   ========================================================================== */
.og-newsletter{padding:48px 0;text-align:center;border-top:1px solid var(--og-line)}
.og-newsletter-title{font-size:32px;font-weight:850;margin:0 0 12px}
.og-newsletter-text{font-size:16px;color:var(--og-body);max-width:560px;margin:0 auto 24px}
.og-newsletter-form{display:flex;gap:12px;justify-content:center;flex-wrap:wrap;max-width:640px;margin:0 auto}
.og-newsletter-field{display:flex;align-items:center;gap:10px;background:#fff;border:1px solid #ddd;border-radius:var(--og-radius);padding:0 14px;flex:1;min-width:240px}
.og-newsletter-field svg{color:var(--og-muted);flex-shrink:0}
.og-newsletter-field input{border:0;padding:14px 0;flex:1;font-size:15px;background:transparent}
.og-newsletter-field input:focus{outline:none}
.og-newsletter-btn{padding:14px 32px;white-space:nowrap}
.og-newsletter-msg{flex-basis:100%;margin:8px 0 0;font-size:14px;min-height:20px}
.og-newsletter-msg.is-ok{color:#15803d}
.og-newsletter-msg.is-err{color:#b91c1c}

/* ==========================================================================
   21. ANÁLISE POR IA (citation share)
   ========================================================================== */
.og-ai-nodes{border:1px solid var(--og-card-border);background:var(--og-card-bg);border-radius:var(--og-radius-card);padding:20px;margin:28px 0}
.og-ai-nodes-title{font-size:12px;font-weight:800;text-transform:uppercase;letter-spacing:1.5px;color:var(--og-muted);text-align:center;margin:0 0 14px}
.og-ai-nodes-grid{display:flex;flex-wrap:wrap;gap:10px;justify-content:center}
.og-ai-node{display:inline-flex;align-items:center;gap:7px;padding:8px 16px;border-radius:22px;border:1px solid var(--og-card-border);background:#fff;font-size:13px;font-weight:700;color:var(--og-heading)}
.og-ai-node svg{color:var(--og-accent-deep)}
.og-ai-node:hover{background:var(--og-heading);color:#fff;text-decoration:none;border-color:var(--og-heading)}
.og-ai-node:hover svg{color:var(--og-accent-strong)}

/* ==========================================================================
   22. MENU COM DIVISÓRIAS + PAINEL MOBILE HEAD
   ========================================================================== */
.og-menu>li:not(:last-child)>a::after{content:"";position:absolute;right:0;top:50%;transform:translateY(-50%);height:16px;width:1px;background:rgba(255,255,255,.18)}
.og-menu>li>a{position:relative}
.og-menu .menu-item-has-children>a::after{content:none}
.og-mobile-panel-head{display:flex;align-items:center;justify-content:space-between;margin:-64px -24px 20px;padding:16px 20px;border-bottom:1px solid var(--og-line);position:sticky;top:0;background:#fff;z-index:2}
.og-mobile-panel-head .og-brand .og-logo-text{font-size:22px}
.og-mobile-panel-head .og-modal-close{position:static}

/* ==========================================================================
   23. FOOTER BOTTOM (linha + ir ao topo)
   ========================================================================== */
.og-footer-desc{font-size:14px;line-height:1.6;color:var(--og-body)}
.og-footer-bottom{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:14px;margin-top:28px;border-top:1px solid var(--og-line);padding-top:20px}
.og-footer-bottom .og-copyright{margin:0;border:0;padding:0}
.og-to-top-inline{display:inline-flex;align-items:center;gap:8px;background:none;border:0;color:var(--og-body);font-size:14px;font-weight:600;cursor:pointer;padding:4px}
.og-to-top-inline:hover{color:var(--og-accent-deep)}
@media(max-width:600px){
  .og-newsletter-title{font-size:26px}
  .og-newsletter-form{flex-direction:column}
  .og-newsletter-btn{width:100%}
  .og-footer-bottom{flex-direction:column;align-items:flex-start}
}
