/* ════════════════════════════════════════════════════════════════════════════
   EDITORIAL.CSS — Design system "Executive Insight" do Empresas & Négocios
   Carregado DEPOIS de style.css. Reestiliza o "chrome" compartilhado
   (ticker, header, footer) e os cards de artigo no estilo editorial.
   Fonte única de verdade do cabeçalho/rodapé (injetados por js/layout.js).
   ════════════════════════════════════════════════════════════════════════════ */

:root {
  --ed-ink:        #000000;
  --ed-ink-soft:   #1b1b1b;
  --ed-muted:      #4c4546;
  --ed-muted-2:    #7e7576;
  --ed-border:     #cfc4c5;
  --ed-surface:    #f9f9ff;
  --ed-card:       #f0f3ff;
  --ed-green:      #25D366;
  --ed-font-head:  "Manrope", system-ui, sans-serif;
  --ed-font-body:  "Work Sans", system-ui, sans-serif;
  --ed-font-mono:  "JetBrains Mono", ui-monospace, monospace;
  --ed-maxw:       1280px;
}

body { font-family: var(--ed-font-body); background: var(--ed-surface); color: #111c2d; }

/* Esconde elementos do layout antigo que o layout.js substitui */
body > .reading-progress { background: #000 !important; }

/* ─── TICKER ─────────────────────────────────────────────────────────────── */
.ed-ticker {
  background: #111; color: rgba(255,255,255,.75);
  font-family: var(--ed-font-mono); font-size: 11px;
  letter-spacing: .06em; text-transform: uppercase;
  height: 30px; overflow: hidden; display: flex; align-items: center;
}
.ed-ticker-inner { display: flex; align-items: center; overflow: hidden; width: 100%; max-width: var(--ed-maxw); margin: 0 auto; padding: 0 64px; }
.ed-ticker-track { display: flex; gap: 56px; white-space: nowrap; animation: ed-scroll 55s linear infinite; }
@keyframes ed-scroll { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* ─── NAVBAR ─────────────────────────────────────────────────────────────── */
.ed-nav { background: #000; border-bottom: 1px solid rgba(255,255,255,.08); position: sticky; top: 0; z-index: 100; }
.ed-nav-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 24px; max-width: var(--ed-maxw); margin: 0 auto; padding: 0 64px; }
.ed-logo { display: flex; align-items: center; flex-shrink: 0; }
.ed-logo img { height: 44px; width: auto; display: block; }
.ed-nav-links { display: flex; align-items: center; gap: 28px; list-style: none; margin: 0; padding: 0; }
.ed-nav-links a { font-family: var(--ed-font-mono); font-size: 11px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: rgba(255,255,255,.6); text-decoration: none; transition: color .2s; }
.ed-nav-links a:hover, .ed-nav-links a.active { color: #fff; }
.ed-nav-links a.active { border-bottom: 1px solid #fff; padding-bottom: 2px; }
.ed-actions { display: flex; align-items: center; gap: 12px; }
.ed-cta { background: #fff; color: #000; font-family: var(--ed-font-mono); font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 9px 20px; border: none; cursor: pointer; flex-shrink: 0; text-decoration: none; white-space: nowrap; }
.ed-cta:hover { background: #e2e2e2; }

/* Botão "publique seu artigo" */
.ed-publish { display: inline-flex; align-items: center; gap: 7px; background: var(--ed-green); color: #000; font-family: var(--ed-font-mono); font-size: 10px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; padding: 8px 14px; border: none; cursor: pointer; flex-shrink: 0; white-space: nowrap; text-decoration: none; }
.ed-publish:hover { background: #1ebe5a; }

.ed-hamburger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 4px; }
.ed-hamburger span { display: block; width: 22px; height: 2px; background: #fff; }

@media (max-width: 1100px) { .ed-publish.in-nav { display: none; } }
@media (max-width: 900px) {
  .ed-nav-links { display: none; }
  .ed-hamburger { display: flex; }
  .ed-ticker-inner { padding: 0 16px; }
  .ed-nav-inner { padding: 0 16px; }
}

/* Mobile menu */
.ed-mobile-menu { display: none; position: fixed; inset: 0; background: #000; z-index: 200; flex-direction: column; padding: 24px 24px 40px; }
.ed-mobile-menu.open { display: flex; }
.ed-mobile-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; flex-shrink: 0; }
.ed-mobile-close { background: none; border: none; color: #fff; font-size: 28px; cursor: pointer; }
.ed-mobile-menu nav { overflow-y: auto; padding-bottom: 24px; }
.ed-mobile-menu nav a { display: block; font-family: var(--ed-font-head); font-size: 24px; font-weight: 700; color: #fff; padding: 11px 0; border-bottom: 1px solid rgba(255,255,255,.1); text-decoration: none; }

/* Esconde botões flutuantes quando o menu mobile está aberto */
body.menu-open #waFloat,
body.menu-open .back-to-top { display: none !important; }

/* ─── FOOTER ─────────────────────────────────────────────────────────────── */
.ed-footer { background: #0a0a0a; padding: 64px; }
.ed-footer-inner { max-width: var(--ed-maxw); margin: 0 auto; }
.ed-footer-cta { display: flex; justify-content: space-between; align-items: center; gap: 24px; border: 1px solid rgba(255,255,255,.14); padding: 28px 32px; margin-bottom: 48px; flex-wrap: wrap; }
.ed-footer-cta h3 { font-family: var(--ed-font-head); font-size: 20px; font-weight: 800; color: #fff; letter-spacing: -.01em; margin-bottom: 6px; }
.ed-footer-cta p { font-size: 13px; color: rgba(255,255,255,.5); }
.ed-footer-cta .ed-publish { font-size: 12px; padding: 12px 22px; }
.ed-footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 48px; }
.ed-footer-brand-name { font-family: var(--ed-font-head); font-size: 20px; font-weight: 800; color: #fff; letter-spacing: -.01em; margin-bottom: 12px; }
.ed-footer-brand p { font-size: 13px; line-height: 1.65; color: rgba(255,255,255,.4); }
.ed-footer-social { display: flex; gap: 8px; margin-top: 20px; }
.ed-footer-social a { width: 32px; height: 32px; border: 1px solid rgba(255,255,255,.2); display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,.5); font-size: 12px; text-decoration: none; }
.ed-footer-social a:hover { border-color: #fff; color: #fff; }
.ed-footer-col h4 { font-family: var(--ed-font-mono); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.35); margin-bottom: 14px; }
.ed-footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; margin: 0; padding: 0; }
.ed-footer-col ul a { font-size: 13px; color: rgba(255,255,255,.5); text-decoration: none; }
.ed-footer-col ul a:hover { color: #fff; }
.ed-footer-bottom { border-top: 1px solid rgba(255,255,255,.08); padding-top: 24px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; }
.ed-footer-bottom span { font-size: 12px; color: rgba(255,255,255,.3); }
.ed-footer-bottom-links { display: flex; gap: 20px; }
.ed-footer-bottom-links a { font-size: 12px; color: rgba(255,255,255,.3); text-decoration: none; }
.ed-footer-bottom-links a:hover { color: rgba(255,255,255,.7); }

@media (max-width: 900px) { .ed-footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; } }
@media (max-width: 768px) { .ed-footer { padding: 40px 20px; } }
@media (max-width: 560px) { .ed-footer-grid { grid-template-columns: 1fr; } }

/* ─── MOBILE BOTTOM NAV (injetada por main.js) ───────────────────────────── */
.mobile-bottom-nav { display: none; }
@media (max-width: 768px) {
  .mobile-bottom-nav { display: flex; position: fixed; bottom: 0; left: 0; right: 0; z-index: 95; background: #000; border-top: 1px solid rgba(255,255,255,.12); justify-content: space-around; padding: 8px 0; }
  .mobile-bottom-nav a { display: flex; flex-direction: column; align-items: center; gap: 3px; font-family: var(--ed-font-mono); font-size: 9px; letter-spacing: .04em; text-transform: uppercase; color: rgba(255,255,255,.55); text-decoration: none; }
  .mobile-bottom-nav a.active { color: #fff; }
  .mobile-bottom-nav .nav-icon { font-size: 18px; }
  body { padding-bottom: 62px; }
}

/* ════════════════════════════════════════════════════════════════════════════
   CARDS DE ARTIGO (saída de js/artigos.js) — estilo editorial
   ════════════════════════════════════════════════════════════════════════════ */

/* Card padrão (grade) */
.card { display: flex; flex-direction: column; gap: 12px; cursor: pointer; background: transparent; border: none; box-shadow: none; }
.card-img-wrap { display: block; overflow: hidden; aspect-ratio: 16/10; position: relative; border-radius: 0; }
.card-img-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.card:hover .card-img-wrap img { transform: scale(1.04); }
.card-tag-over { position: absolute; bottom: 8px; left: 8px; }
.card .card-body { display: flex; flex-direction: column; gap: 6px; padding: 0; }
.card .card-title { font-family: var(--ed-font-head); font-size: 17px; line-height: 1.35; font-weight: 700; color: #000; display: block; text-decoration: none; }
.card .card-title:hover { text-decoration: underline; text-underline-offset: 3px; }
.card-summary { font-size: 13px; line-height: 1.65; color: var(--ed-muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* Card destaque (featured) */
.card-featured { display: flex; flex-direction: column; gap: 0; cursor: pointer; background: transparent; border: none; box-shadow: none; margin-bottom: 32px; }
.card-featured-img { display: block; overflow: hidden; aspect-ratio: 16/9; }
.card-featured-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.card-featured:hover .card-featured-img img { transform: scale(1.03); }
.card-featured-body { padding: 18px 0 0; display: flex; flex-direction: column; gap: 10px; }
.card-featured-title { font-family: var(--ed-font-head); font-size: 28px; line-height: 1.2; font-weight: 800; letter-spacing: -.02em; color: #000; }
.card-featured-title a { color: inherit; text-decoration: none; }
.card-featured-title:hover a { text-decoration: underline; text-underline-offset: 4px; }
.card-featured-desc { font-size: 15px; line-height: 1.65; color: var(--ed-muted); }
.card-featured-cta { font-family: var(--ed-font-mono); font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #000; text-decoration: none; margin-top: 4px; display: inline-block; }
.card-featured-cta:hover { text-decoration: underline; }

/* Card horizontal */
.card-h { display: flex; gap: 14px; cursor: pointer; border-bottom: 1px solid var(--ed-border); padding-bottom: 16px; margin-bottom: 16px; background: transparent; box-shadow: none; }
.card-h:last-child { border-bottom: none; margin-bottom: 0; }
.card-h img { width: 88px; height: 66px; object-fit: cover; flex-shrink: 0; border-radius: 0; }
.card-h .card-body { flex: 1; display: flex; flex-direction: column; gap: 4px; padding: 0; }
.card-h .card-title { font-family: var(--ed-font-head); font-size: 14px; line-height: 1.4; font-weight: 600; color: #000; text-decoration: none; display: block; }
.card-h .card-title:hover { text-decoration: underline; }

/* Hero (layout 'hero' do artigos.js) */
.hero-grid { display: grid; grid-template-columns: 7fr 5fr; gap: 28px; align-items: start; }
.hero-main { display: flex; flex-direction: column; gap: 0; grid-row: span 2; }
.hero-main > a { display: block; overflow: hidden; aspect-ratio: 16/9; }
.hero-main img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.hero-main:hover img { transform: scale(1.03); }
.hero-content { padding: 18px 0 0; display: flex; flex-direction: column; gap: 10px; }
.hero-title { font-family: var(--ed-font-head); font-size: 28px; line-height: 1.2; font-weight: 800; letter-spacing: -.02em; color: #000; margin: 0; }
.hero-summary { font-size: 15px; line-height: 1.65; color: var(--ed-muted); }
.hero-secondary { display: flex; gap: 14px; border-bottom: 1px solid var(--ed-border); padding-bottom: 16px; margin-bottom: 16px; }
.hero-secondary img { width: 100%; height: 100%; max-height: 120px; object-fit: cover; }
.hero-secondary .card-body { display: flex; flex-direction: column; gap: 4px; }

/* Grades usadas pelo artigos.js */
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.category-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 8px; }
.list-cards { display: flex; flex-direction: column; }
.featured-section { display: block; }

@media (max-width: 900px) { .news-grid, .category-grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 768px) { .hero-grid { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .news-grid, .category-grid { grid-template-columns: 1fr; } }

/* Tags & meta (editorial monocromático) */
.tag { font-family: var(--ed-font-mono); font-size: 10px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--ed-muted); background: none; padding: 0; border-radius: 0; }
.card-tag-over.tag { background: #000; color: #fff; padding: 3px 8px; }
.meta { font-family: var(--ed-font-mono); font-size: 11px; color: var(--ed-muted-2); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.meta .author { font-weight: 600; color: #000; }
.meta .dot::before { content: "•"; }

/* ─── SECTION HEADERS (novo .section-head e antigo .section-header) ───────── */
.section-head, .section-header {
  display: flex; justify-content: space-between; align-items: flex-end;
  border-bottom: 1px solid #000; padding-bottom: 10px; margin-bottom: 22px;
}
.section-head h2, .section-header h2 { font-family: var(--ed-font-head); font-size: 20px; font-weight: 700; letter-spacing: -.01em; color: #000; }
.section-head a, .section-header a { font-family: var(--ed-font-mono); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: var(--ed-muted); text-decoration: none; }
.section-head a:hover, .section-header a:hover { color: #000; text-decoration: underline; }

/* ─── PAGE HERO (páginas de categoria) ───────────────────────────────────── */
.page-hero { background: #000; padding: 48px 0; }
.page-hero[class*="--"] { background: #000; }
.page-hero .container { max-width: var(--ed-maxw); margin: 0 auto; padding: 0 64px; }
.page-hero .breadcrumb { font-family: var(--ed-font-mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: rgba(255,255,255,.45); margin-bottom: 16px; }
.page-hero .breadcrumb a { color: rgba(255,255,255,.45); text-decoration: none; }
.page-hero .breadcrumb a:hover { color: #fff; }
.page-hero h1 { font-family: var(--ed-font-head); font-size: clamp(28px, 4vw, 44px); font-weight: 800; letter-spacing: -.02em; color: #fff; margin-bottom: 12px; line-height: 1.1; }
.page-hero .tag { color: rgba(255,255,255,.6); }
@media (max-width: 768px) { .page-hero .container { padding: 0 16px; } .page-hero { padding: 32px 0; } }

/* ─── NEWSLETTER SECTION (reestilizada) ──────────────────────────────────── */
.newsletter-section { background: #000; padding: 72px 24px; text-align: center; }
.newsletter-section .nl-inner { max-width: 520px; margin: 0 auto; }
.newsletter-section h2 { font-family: var(--ed-font-head); font-size: 30px; font-weight: 800; letter-spacing: -.02em; color: #fff; margin-bottom: 10px; }
.newsletter-section p { font-size: 15px; color: rgba(255,255,255,.55); margin-bottom: 28px; }
.newsletter-section .nl-form { display: flex; max-width: 480px; margin: 0 auto; }
.newsletter-section .nl-form input { flex: 1; padding: 13px 16px; font-size: 14px; border: none; outline: none; font-family: var(--ed-font-body); border-radius: 0; }
.newsletter-section .nl-form button { background: #fff; color: #000; padding: 13px 24px; font-family: var(--ed-font-mono); font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; border: none; cursor: pointer; white-space: nowrap; border-radius: 0; }
.newsletter-section .nl-form button:hover { background: #e2e2e2; }

/* ─── BACK TO TOP (acima do WhatsApp flutuante) ──────────────────────────── */
.back-to-top { bottom: 90px !important; right: 24px !important; width: 40px !important; height: 40px !important; background: #000 !important; color: #fff !important; border-radius: 0 !important; }
@media (max-width: 768px) { .back-to-top { bottom: 150px !important; } }

/* ─── HEADINGS DE SEÇÃO ANTIGOS / CATEGORY-SECTION ──────────────────────── */
.category-section { margin-bottom: 48px; }

/* ════════════════════════════════════════════════════════════════════════════
   GUTTER — padding consistente e generoso no entorno de todo o conteúdo,
   alinhado ao cabeçalho/rodapé (64px desktop → 40px tablet → 20px mobile).
   ════════════════════════════════════════════════════════════════════════════ */
/* Impede "grid blowout": filhos de grid com min-width auto estouram o gutter.
   min-width:0 deixa a coluna 1fr encolher até caber, preservando o padding direito. */
.main-layout, .content-sidebar { min-width: 0; }
.main-layout > *, .content-sidebar > *, .content-col { min-width: 0 !important; }

.container,
.main-layout { padding-left: 64px !important; padding-right: 64px !important; }
.newsletter-section { padding-left: 64px !important; padding-right: 64px !important; }
@media (max-width: 1024px) {
  .container, .main-layout, .newsletter-section { padding-left: 40px !important; padding-right: 40px !important; }
  .ed-ticker-inner, .ed-nav-inner { padding-left: 40px; padding-right: 40px; }
  .ed-footer { padding-left: 40px; padding-right: 40px; }
}
@media (max-width: 768px) {
  .container, .main-layout, .newsletter-section { padding-left: 20px !important; padding-right: 20px !important; }
  .ed-ticker-inner, .ed-nav-inner { padding-left: 20px; padding-right: 20px; }
  .ed-footer { padding-left: 20px; padding-right: 20px; }
}

/* ════════════════════════════════════════════════════════════════════════════
   OVERRIDES — neutraliza os acentos vermelhos do style.css nas páginas de
   categoria, alinhando ao design editorial monocromático "sharp" (0px).
   ════════════════════════════════════════════════════════════════════════════ */
.section-header h2 {
  font-family: var(--ed-font-head) !important;
  font-size: 20px !important; font-weight: 700 !important;
  letter-spacing: -.01em !important; color: #000 !important;
  text-transform: none !important; white-space: normal !important;
}
.section-header h2::before { display: none !important; }

/* Sidebar widgets → editorial */
.sidebar-widget { border-radius: 0 !important; box-shadow: none !important; border: 1px solid var(--ed-border) !important; }
.sidebar-widget .widget-header { color: #000 !important; font-family: var(--ed-font-mono) !important; border-bottom: 1px solid var(--ed-border); }
.newsletter-widget { border-top: none !important; }
.newsletter-widget .widget-header { background: #000 !important; color: #fff !important; }

/* Botões / inputs da newsletter na sidebar */
.btn-nl {
  background: #000 !important; border-radius: 0 !important;
  font-family: var(--ed-font-mono) !important; text-transform: uppercase;
  letter-spacing: .06em; font-size: 11px !important; font-weight: 700 !important;
}
.btn-nl:hover { background: #1b1b1b !important; }
.newsletter-widget input[type="email"],
.sidebar-widget input[type="email"] { border-radius: 0 !important; }
.newsletter-widget input[type="email"]:focus { border-color: #000 !important; }

/* Trending / mais lidos */
.trending-num { color: var(--ed-muted-2) !important; background: none !important; }

/* Banner publicidade na sidebar — remove cantos arredondados antigos */
.ad-sidebar img, .sidebar-widget img { border-radius: 0 !important; }
