/* Critical CSS - Otimizado para Core Web Vitals */
:root {
  --color-text: #333;
  --color-heading: #222;
  --color-link: #0066cc;
  --color-link-hover: #0055aa;
  --font-sans: 'Source Sans Pro', Arial, sans-serif;
  --font-serif: 'Libre Baskerville', Georgia, serif;
  --line-height: 1.6;
}

/* Reset e base */
html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: var(--line-height);
  color: var(--color-text);
  background: #fff;
}

/* Tipografia crítica */
h1, h2, h3, h4, h5, h6 {
  margin: 0 0 1rem;
  font-family: var(--font-serif);
  color: var(--color-heading);
  line-height: 1.2;
}

h1 { font-size: 2.25rem; }
h2 { font-size: 1.8rem; }
h3 { font-size: 1.44rem; }

p {
  margin: 0 0 1.5rem;
}

a {
  color: var(--color-link);
  text-decoration: none;
}

a:hover, a:focus {
  color: var(--color-link-hover);
  text-decoration: underline;
}

/* Header crítico */
.site-header {
  background: #fff;
  border-bottom: 1px solid #eee;
  position: relative;
  z-index: 100;
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.header-grid-layout {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1rem;
  min-height: 60px;
}

.header-slot {
  display: flex;
  align-items: center;
}

.slot-center {
  justify-content: center;
}

.slot-right {
  justify-content: flex-end;
}

/* Logo e branding */
.site-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-heading);
  margin: 0;
}

.custom-logo {
  max-width: 200px;
  height: auto;
  display: block;
}

/* Botões de ação */
.action-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text);
  transition: color 0.2s ease;
}

.action-btn:hover {
  color: var(--color-link);
}

.action-btn svg {
  width: 24px;
  height: 24px;
  stroke: currentColor;
}

/* Main content area */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.5rem;
}

/* Footer crítico */
.site-footer {
  background: #f5f5f5;
  border-top: 1px solid #ddd;
  padding: 2rem 1.5rem;
  margin-top: 3rem;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
}

/* Imagens responsivas */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Aspect ratio para imagens */
.post-hero-img-wrap {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: #f0f0f0;
}

.post-hero-img-wrap img {
  width: 100%;
  height: auto;
  display: block;
}

/* Prevenção de CLS para imagens com dimensões conhecidas */
img[width][height] {
  aspect-ratio: attr(width) / attr(height);
}

/* Espaçamento de segurança */
main {
  display: block;
}

/* Acessibilidade */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: #000;
  color: #fff;
  padding: 8px;
  text-decoration: none;
  z-index: 100;
}

.skip-link:focus {
  top: 0;
}

/* Responsive base */
@media (max-width: 768px) {
  .header-grid-layout {
    min-height: 50px;
  }

  h1 { font-size: 1.75rem; }
  h2 { font-size: 1.4rem; }
  h3 { font-size: 1.1rem; }

  .desktop-only {
    display: none !important;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 1rem;
  }

  h1 { font-size: 1.5rem; }
  h2 { font-size: 1.2rem; }
  h3 { font-size: 1rem; }
}


/* N10 CWV Hotfix 2.6.39 — CSS crítico da homepage/destaques */
.n10-portal-2026{max-width:1240px;margin:0 auto;padding:2.5rem 1rem;background:#fff;font-family:var(--font-sans,Arial,sans-serif)}
.n10-portal-2026 h1::after,.n10-portal-2026 h2::after,.n10-portal-2026 h3::after{content:none!important;display:none!important}
.n10-portal-2026 .portal-hero-section{margin-bottom:4rem}
.n10-portal-2026 .portal-hero-grid{display:grid;grid-template-columns:1fr;gap:20px;align-items:stretch}
.n10-portal-2026 .hero-card-main,.n10-portal-2026 .hero-card-sub{position:relative;overflow:hidden;display:flex;flex-direction:column;justify-content:flex-end;min-height:280px;border-radius:10px;background:#0f172a;isolation:isolate}
.n10-portal-2026 .hero-card-main{min-height:450px}
.n10-portal-2026 .hero-card-image{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;z-index:0}
.n10-portal-2026 .hero-card-main:not(.is-text-only)::after,.n10-portal-2026 .hero-card-sub:not(.is-text-only)::after{content:"";position:absolute;inset:0;background:linear-gradient(to top,rgba(15,23,42,.95) 0%,rgba(15,23,42,.35) 55%,transparent 100%);z-index:1;pointer-events:none}
.n10-portal-2026 .card-overlay-content{position:relative;z-index:2;padding:2.5rem;width:100%;box-sizing:border-box}
.n10-portal-2026 .card-link-layer{position:absolute;inset:0;z-index:3!important}
.n10-portal-2026 .n10-title-light a,.n10-portal-2026 .hero-card-main .n10-title-dark a,.n10-portal-2026 .hero-card-sub .n10-title-dark a{color:#fff!important;text-decoration:none!important;text-shadow:0 2px 14px rgba(0,0,0,.35)}
.n10-portal-2026 .hero-card-main .n10-title-light,.n10-portal-2026 .hero-card-main .n10-title-dark{font-size:clamp(2rem,5vw,3rem);font-weight:900;line-height:1.15;margin:0 0 12px;letter-spacing:-.03em}
.n10-portal-2026 .hero-card-sub .n10-title-light,.n10-portal-2026 .hero-card-sub .n10-title-dark{font-size:1.25rem;font-weight:800;line-height:1.3;margin:0 0 10px}
.n10-portal-2026 .card-meta{display:flex;align-items:center;gap:8px;margin-top:8px;color:rgba(255,255,255,.85)}
.n10-portal-2026 .card-meta .meta-author{color:#fff;font-weight:800;text-transform:uppercase}
@media (min-width:992px){.n10-portal-2026 .portal-hero-grid.layout-bento{grid-template-columns:repeat(4,1fr);grid-template-rows:repeat(2,minmax(280px,1fr))}.n10-portal-2026 .layout-bento .hero-card-main{grid-column:1/3;grid-row:1/3}.n10-portal-2026 .layout-bento .hero-card-item-2{grid-column:3/4;grid-row:1/2}.n10-portal-2026 .layout-bento .hero-card-item-3{grid-column:4/5;grid-row:1/2}.n10-portal-2026 .layout-bento .hero-card-item-4{grid-column:3/4;grid-row:2/3}.n10-portal-2026 .layout-bento .hero-card-item-5{grid-column:4/5;grid-row:2/3}}
@media (max-width:767px){.n10-portal-2026{padding:1rem}.n10-portal-2026 .hero-card-main{min-height:360px}.n10-portal-2026 .card-overlay-content{padding:1.5rem}.n10-portal-2026 .hero-card-main .n10-title-light,.n10-portal-2026 .hero-card-main .n10-title-dark{font-size:2rem}}
/* N10 CWV 2.6.42: contraste, logo e animações compostas */
:root{--color-link:#087a1a;--color-link-hover:#075f15}.ticker-badge,#submit,.comments-area input[type=submit]{background:#087a1a!important;color:#fff!important}.entry-author a,.post-content-inner a,.n10-summary-toggle,.n10-toggle-text,.n10-inline-engagement .inline-eng-label,.author-box__kicker,.comments-area a{color:#087a1a!important}.entry-reading-time{color:#475569!important}.share-label{color:#555!important}.header-progress-bar{width:100%!important;transform:scaleX(0);transform-origin:left center;will-change:transform}.custom-logo.n10-fast-logo{width:120px!important;max-width:120px!important;height:auto!important}.header-mini-logo .custom-logo.n10-fast-logo{width:64px!important;max-width:64px!important}.mobile-only .custom-logo.n10-fast-logo{width:100px!important;max-width:100px!important}.post-content-inner iframe,.entry-content iframe{max-width:100%}.n10-ad-reserved,.n10-ad-wrapper,.n10-ad{contain:layout paint style;contain-intrinsic-size:1px 280px}

/* N10 CWV Critical 2.6.49 — hero sem quebra no primeiro viewport */
.n10-portal-2026 .hero-card-sub.is-text-only{background:#fff!important;color:var(--portal-text-dark)!important;aspect-ratio:auto!important;border-radius:0!important;box-shadow:none!important}.n10-portal-2026 .hero-card-sub.is-text-only .hero-card-image{display:none!important}.n10-portal-2026 .hero-card-sub.is-text-only::before,.n10-portal-2026 .hero-card-sub.is-text-only::after{display:none!important;content:none!important}.n10-portal-2026 .hero-card-sub.is-text-only .card-overlay-content{padding:0!important;position:relative!important}.n10-portal-2026 .hero-card-sub.is-text-only .n10-title-dark a{color:var(--portal-text-dark)!important;text-shadow:none!important}.n10-portal-2026 .hero-card-sub.is-text-only .card-meta,.n10-portal-2026 .hero-card-sub.is-text-only .card-meta time{color:var(--portal-text-muted)!important;text-shadow:none!important}.n10-portal-2026 .hero-card-sub.is-text-only .card-meta .meta-author{color:var(--portal-brand)!important;text-shadow:none!important}@media (min-width:992px){.n10-portal-2026 .portal-hero-grid.layout-list{grid-template-columns:minmax(0,2.1fr) minmax(320px,1fr)!important;grid-template-rows:repeat(4,minmax(0,1fr))!important;gap:22px!important}.n10-portal-2026 .layout-list .hero-card-main{grid-column:1/2!important;grid-row:1/5!important;min-height:560px!important}.n10-portal-2026 .layout-list .hero-card-item-2{grid-column:2/3!important;grid-row:1/2!important}.n10-portal-2026 .layout-list .hero-card-item-3{grid-column:2/3!important;grid-row:2/3!important}.n10-portal-2026 .layout-list .hero-card-item-4{grid-column:2/3!important;grid-row:3/4!important}.n10-portal-2026 .layout-list .hero-card-item-5{grid-column:2/3!important;grid-row:4/5!important}.n10-portal-2026 .layout-list .hero-card-sub.is-text-only{min-height:0!important;height:auto!important;border-bottom:1px solid var(--portal-border)!important;padding:0 0 16px!important}}@media (max-width:991px){.n10-portal-2026{overflow-x:hidden}.n10-portal-2026 .portal-hero-grid{display:grid!important;grid-template-columns:1fr!important;grid-template-rows:auto!important;gap:14px!important;margin:0!important;padding:0!important;overflow:visible!important;scroll-snap-type:none!important}.n10-portal-2026 .hero-card-main,.n10-portal-2026 .hero-card-sub{grid-column:auto!important;grid-row:auto!important;flex:none!important;width:100%!important;max-width:100%!important}.n10-portal-2026 .hero-card-main{min-height:360px!important}.n10-portal-2026 .hero-card-sub:not(.is-text-only){min-height:260px!important}.n10-portal-2026 .hero-card-sub.is-text-only{min-height:auto!important;padding:14px 0!important;border-bottom:1px solid var(--portal-border)!important}}

/* N10 CWV 2.6.69 - hero/page/ads CLS guard */
.post-hero.n10-hero-2026 .post-hero-img-wrap,
.n10-static-page .post-hero-img-wrap{
  position:relative;
  width:100%;
  overflow:hidden;
  background:#f1f5f9;
  aspect-ratio:var(--n10-hero-ratio,16/9);
  min-height:1px;
}
.post-hero.n10-hero-2026 .post-hero-img-wrap>picture,
.post-hero.n10-hero-2026 .post-hero-img-wrap>picture.post-hero-img,
.post-hero.n10-hero-2026 .post-hero-img-wrap>img,
.post-hero.n10-hero-2026 .post-hero-img-wrap>picture>img,
.n10-static-page .post-hero-img-wrap>picture,
.n10-static-page .post-hero-img-wrap>picture>img,
.n10-static-page .post-hero-img-wrap>img{
  display:block!important;
  width:100%!important;
  height:100%!important;
  max-width:100%!important;
  max-height:none!important;
  object-fit:contain!important;
  margin:0!important;
}
.post-hero.n10-hero-2026 .post-hero-img-wrap img[width][height],
.n10-static-page .post-hero-img-wrap img[width][height]{
  aspect-ratio:attr(width) / attr(height);
}
.post-content-inner iframe,
.entry-content iframe,
.n10-page-content-inner iframe{
  max-width:100%;
}
.n10-ad-reserved,
.n10-ad-wrapper,
.n10-ad,
[id*="top-scroll"],
[class*="top-scroll"],
iframe[src*="clvrads"],
iframe[src*="cleverwebserver"],
iframe.clever-core-ads{
  contain:layout paint style;
}


/* N10 CWV 2026-05-05 v2: estabiliza top-scroll ads e logo do menu mobile. */
.mobile-menu-header .mobile-logo,
.mobile-menu-header .mobile-logo .custom-logo-link{
  display:block!important;
  width:100px!important;
  height:50px!important;
  min-width:100px!important;
  min-height:50px!important;
  max-width:100px!important;
  max-height:50px!important;
  flex:0 0 100px!important;
  overflow:hidden!important;
}
.mobile-menu-header .mobile-logo img.custom-logo,
.custom-logo.n10-fast-logo--mobile-menu{
  display:block!important;
  width:100px!important;
  height:50px!important;
  max-width:100px!important;
  max-height:50px!important;
  aspect-ratio:2/1!important;
  object-fit:contain!important;
  margin:0!important;
}
body > div[id*="top-scroll"],
body > div[class*="top-scroll"]{
  position:fixed!important;
  top:150px!important;
  left:0!important;
  right:auto!important;
  width:100%!important;
  height:0!important;
  min-height:0!important;
  max-height:0!important;
  margin:0!important;
  padding:0!important;
  overflow:visible!important;
  z-index:2147483000!important;
  contain:layout paint style!important;
}
body.admin-bar > div[id*="top-scroll"],
body.admin-bar > div[class*="top-scroll"]{
  top:182px!important;
}
body > div[id*="top-scroll"] > iframe,
body > div[class*="top-scroll"] > iframe,
iframe[id*="top-scroll"],
iframe[name*="top-scroll"]{
  position:fixed!important;
  top:150px!important;
  left:0!important;
  width:100%!important;
  height:min(250px,30vh)!important;
  min-height:0!important;
  max-height:250px!important;
  margin:0!important;
  border:0!important;
  display:block!important;
  contain:layout paint style!important;
}
body.admin-bar > div[id*="top-scroll"] > iframe,
body.admin-bar > div[class*="top-scroll"] > iframe{
  top:182px!important;
}

/* N10 Home Hotfix 2.6.72 — não truncar títulos do Hero */
.n10-portal-2026 .hero-card-sub .n10-title-dark,
.n10-portal-2026 .hero-card-sub .n10-title-light,
.n10-portal-2026 .hero-card-sub .n10-title-dark a,
.n10-portal-2026 .hero-card-sub .n10-title-light a{display:block!important;overflow:visible!important;text-overflow:clip!important;white-space:normal!important;-webkit-line-clamp:unset!important;line-clamp:unset!important;-webkit-box-orient:initial!important;}
.n10-portal-2026 .hero-card-sub.is-text-only,.n10-portal-2026 .hero-card-sub.is-text-only .card-overlay-content{overflow:visible!important;}
@media (min-width:992px){.n10-portal-2026 .portal-hero-grid.layout-list{grid-template-rows:repeat(4,minmax(min-content,auto))!important;}.n10-portal-2026 .layout-list .hero-card-sub.is-text-only{align-self:stretch!important;}}
/* WordPress auto-sizes fix externalizado para evitar CSS inline no head. */
img:is([sizes=auto i],[sizes^="auto," i]){contain-intrinsic-size:3000px 1500px}
