/* PBC 2.5.4 — compatibilidade visual e responsividade.
   Base: tema 2.5.3. Nunca substitui estruturas de banners, login ou wpForo.
   Todas as dimensões de componentes respeitam box-sizing e min-width:0. */
:root { --pbc-gutter: clamp(16px, 2.4vw, 40px); }
html { min-width: 0; scroll-padding-top: 138px; }
body { min-width: 0; }
.pbc-shell {
  max-width: 1640px;
  width: 100%;
  min-width: 0;
  padding-inline: var(--pbc-gutter);
}
.pbc-brand-inner, .pbc-brand, .pbc-brand-actions,
.pbc-main-column, .pbc-aside, .pbc-front,
.pbc-editorial-intro-copy, .pbc-newsfront-lead,
.pbc-editorial-copy, .pbc-news-feature-copy,
.pbc-entry, .pbc-article { min-width: 0; }
.pbc-front, .pbc-page { max-width: 1640px; }
.pbc-entry, .pbc-article, .pbc-list-entry, .pbc-forum-row,
.pbc-forum-name, .pbc-editorial-copy h3, .pbc-newsfront-lead h2 {
  overflow-wrap: break-word;
}
.pbc-page img, .pbc-front img, .pbc-entry iframe, .pbc-entry video { max-width:100%; }
.pbc-entry iframe { height:auto; aspect-ratio: 16/9; }
.pbc-content-grid > *, .pbc-newsfront-layout > *, .pbc-shortcuts > * { min-width:0; }
.pbc-footer-bottom { line-height: 1.55; }
.pbc-signup-compact { display:none; }
.pbc-menu-backdrop { display:none; }

/* Evitar navegação cortada em notebooks, sem abreviar os nomes nem remover itens. */
@media (min-width: 1121px) and (max-width: 1290px) {
  .pbc-brand-inner { gap: 16px; }
  .pbc-brand-actions { gap: 14px; }
  .pbc-header-search { width: clamp(210px, 23vw, 320px); }
  .pbc-menu { gap: clamp(14px, 1.5vw, 22px); }
  .pbc-menu > li > a { font-size:15px; }
}
@media (max-width: 1120px) {
  :root { --pbc-gutter: clamp(16px, 2.5vw, 28px); }
  .pbc-header { z-index: 1000; }
  .pbc-header .pbc-brand-inner,
  .pbc-header.pbc-header-compact .pbc-brand-inner {
    min-height: 70px;
    height: 70px;
    gap: 10px;
    transition: none;
  }
  .pbc-header .pbc-brand, .pbc-header.pbc-header-compact .pbc-brand { gap: 10px; }
  .pbc-header .pbc-custom-logo img,
  .pbc-header.pbc-header-compact .pbc-custom-logo img {
    max-width: 64px;
    max-height: 55px;
    transition: none;
  }
  .pbc-header.pbc-header-compact .pbc-brand-name,
  .pbc-header .pbc-brand-name { font-size: 15px; }
  .pbc-header.pbc-header-compact .pbc-brand-name span,
  .pbc-header .pbc-brand-name span { font-size: 12px; }
  .pbc-header.pbc-header-compact .pbc-monogram, .pbc-header .pbc-monogram { font-size: 32px; }
  .pbc-header .pbc-mobile-toggle,
  .pbc-header.pbc-header-compact .pbc-mobile-toggle {
    min-width: 46px; width: 46px; min-height:46px; height:46px; transition:none;
  }
  .pbc-mobile-auth-links { min-width:0; flex:0 0 auto; }
  .pbc-header .pbc-nav-inner, .pbc-header.pbc-header-compact .pbc-nav-inner { height:0; min-height:0; }
  .pbc-header .pbc-menu > li > a, .pbc-header.pbc-header-compact .pbc-menu > li > a { min-height:51px; }

  /* Drawer lateral no lugar do menu que ocupava o telefone inteiro.
     Mantém o mesmo menu WordPress, links de conta e busca. */
  .pbc-menu-backdrop {
    display:none; position:fixed; inset:0; z-index:9997;
    width:100%; height:100dvh; padding:0; border:0; background:rgba(12,28,39,.52);
    cursor:pointer;
  }
  .pbc-menu-backdrop.is-open { display:block; }
  .pbc-nav-collapse {
    inset:0 0 0 auto;
    width:min(390px, calc(100vw - 32px));
    max-width:390px;
    height:100dvh;
    z-index:9998;
    box-shadow:-16px 0 40px rgba(10,22,30,.18);
  }
  .pbc-overlay-head { min-height:72px; justify-content:flex-start; padding:10px 62px 10px 18px; }
  .pbc-overlay-body { padding:12px 19px 32px; max-width:none; }
  .pbc-overlay-brand { max-width:100%; }
  .pbc-overlay-brand-name { min-width:0; white-space:normal; }
  .pbc-menu-account { border-top:1px solid #e5eaec; padding-top:17px; }
  .pbc-nav-collapse .pbc-menu > li > a { font-size:16px; }
  .pbc-nav-collapse .pbc-menu > li > a::after { right:6px; }
  .pbc-overlay-search { margin-top: 20px; }
  .pbc-overlay-close { right:12px; }
  .pbc-brandbar { min-width:0; }
  .pbc-content-grid { grid-template-columns: minmax(0,1.65fr) minmax(230px,.86fr); gap: 30px; }
  .pbc-editorial-intro { align-items:start; gap:20px; }
  .pbc-shortcuts { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media (max-width: 900px) {
  .pbc-newsfront-layout { display:grid; grid-template-columns:minmax(0,1fr); gap: 18px; }
  .pbc-newsfront-secondary { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap: 0 24px; margin-top:0; }
  .pbc-newsfront-community { margin:0; padding-top:7px; }
  .pbc-content-grid { display:block; }
  .pbc-aside { margin-top:36px; }
  .pbc-editorial-intro { display:block; }
  .pbc-editorial-intro-link { display:inline-block; margin-top:15px; }
  .pbc-article .pbc-entry { max-width:none; }
}
@media (max-width: 700px) {
  :root { --pbc-gutter: 18px; }
  html { scroll-padding-top:84px; }
  body { font-size: 16px; line-height:1.58; }
  .pbc-shell { padding-inline:var(--pbc-gutter); }
  .pbc-header .pbc-brand-inner, .pbc-header.pbc-header-compact .pbc-brand-inner { height:64px; min-height:64px; }
  .pbc-header .pbc-custom-logo img, .pbc-header.pbc-header-compact .pbc-custom-logo img { max-height:48px; max-width:56px; }
  .pbc-mobile-auth-links { gap:8px; }
  .pbc-mobile-auth-links a { font-size:13px; min-height:42px; display:inline-flex; align-items:center; }
  .pbc-mobile-auth-links .pbc-mobile-signup { padding:9px 11px; }
  .pbc-front { padding-top:23px; padding-bottom:35px; }
  .pbc-editorial-intro { padding-bottom:25px; }
  .pbc-editorial-intro h1 { font-size:clamp(29px,7vw,40px); line-height:1.14; letter-spacing:-.5px; margin-block:8px 10px; }
  .pbc-editorial-intro p { font-size:16px; line-height:1.5; }
  .pbc-editorial-intro-link { font-size:15px; margin-top:15px; }
  .pbc-kicker { font-size:11px; letter-spacing:.8px; }
  .pbc-newsfront { padding-top:14px; }
  .pbc-newsfront-image { aspect-ratio:16/9; margin-bottom:13px; }
  .pbc-newsfront-lead h2 { font-size:clamp(25px,6vw,35px); line-height:1.23; }
  .pbc-newsfront-lead p { font-size:15px; }
  .pbc-newsfront-secondary { display:block; }
  .pbc-newsfront-headline h3 { font-size:19px; }
  .pbc-newsfront-headline { padding-bottom:14px; margin-bottom:14px; }
  .pbc-shortcuts { grid-template-columns:repeat(2,minmax(0,1fr)); gap:0 15px; padding:8px 0; margin-bottom:30px; }
  .pbc-shortcut { min-height:94px; padding:10px 0; gap:10px; }
  .pbc-shortcut img { width:50px; height:50px; flex-basis:50px; }
  .pbc-shortcut-label strong { font-size:17px; }
  .pbc-shortcut-label small { font-size:13px; }
  .pbc-shortcut-arrow { display:none; }
  .pbc-content-grid { display:block; }
  .pbc-section-head { align-items:center; }
  .pbc-section-head h1, .pbc-section-head h2 { font-size:clamp(21px,5vw,26px); }
  .pbc-section-head a { white-space:normal; text-align:right; font-size:13px; }
  .pbc-editorial-row { gap:13px; padding:15px 0; }
  .pbc-editorial-thumb, .pbc-news-list-layout .pbc-editorial-thumb { flex:0 0 124px; height:88px; }
  .pbc-editorial-copy h3 { font-size:20px; line-height:1.29; }
  .pbc-editorial-copy p { font-size:14px; }
  .pbc-forum-directory .pbc-forum-list { display:grid; grid-template-columns:minmax(0,1fr); }
  .pbc-forum-directory .pbc-forum-row { gap:8px; }
  .pbc-forum-count { flex:0 0 auto; }
  .pbc-footer-navigation { display:flex; flex-wrap:wrap; gap:12px; }
  .pbc-page { padding-top:22px; }
  .pbc-entry, .pbc-article { font-size:16px; line-height:1.63; }
  .pbc-page-head h1, .pbc-news-hub-header h1 { font-size:clamp(29px,7.2vw,40px); }
  .pbc-breadcrumb, .pbc-topic-nav { font-size:13px; }
  .pbc-article h1 { font-size:clamp(27px,7vw,40px); }
  .pbc-list-entry h2 { font-size:22px; }
  .pbc-footer-main { padding-block:28px; }
  .pbc-footer-bottom { font-size:12px; }
  .pbc-overlay-search input { font-size:16px; }
  .pbc-news-feature-inner { display:block; }
  .pbc-news-feature-photo { display:block; margin-bottom:15px; }
  .pbc-news-feature-copy h2 { font-size:clamp(24px,6vw,33px); }
  .pbc-news-hub-header { display:block; }
}
@media (max-width: 520px) {
  :root { --pbc-gutter: 16px; }
  .pbc-shortcuts { grid-template-columns:1fr; padding-block:6px; }
  .pbc-shortcut { min-height:75px; gap:12px; border-bottom:1px solid #edf0f0; }
  .pbc-shortcut:last-child { border:0; }
  .pbc-shortcut img { width:54px; height:54px; flex-basis:54px; }
  .pbc-shortcut-label strong { font-size:17px; }
  .pbc-shortcut-label small { font-size:13px; }
  .pbc-editorial-thumb, .pbc-news-list-layout .pbc-editorial-thumb { flex:0 0 103px; height:82px; }
  .pbc-editorial-copy h3 { font-size:18px; }
  .pbc-editorial-copy p { font-size:13px; }
  .pbc-newsfront-headline h3 { font-size:19px; }
  .pbc-header .pbc-custom-logo img, .pbc-header.pbc-header-compact .pbc-custom-logo img { max-width:54px; }
}
@media (max-width: 420px) {
  /* Em smartphones pequenos, painel integral evita revelar fragmentos do site por trás. */
  .pbc-nav-collapse { width:100vw; max-width:100vw; }
  .pbc-overlay-body { padding-bottom:max(32px, env(safe-area-inset-bottom)); }
  .pbc-brand-name, .pbc-header.pbc-header-compact .pbc-brand-name { display:none; }
  .pbc-header .pbc-brand-inner, .pbc-header.pbc-header-compact .pbc-brand-inner { gap:6px; }
  .pbc-header .pbc-mobile-toggle, .pbc-header.pbc-header-compact .pbc-mobile-toggle { height:44px; min-height:44px; width:44px; min-width:44px; }
  .pbc-mobile-auth-links { gap:6px; }
  .pbc-mobile-auth-links .pbc-mobile-signup { padding:8px 10px; }
  .pbc-mobile-auth-links a { font-size:12px; }
  .pbc-newsfront-image { aspect-ratio: 3/2; }
  .pbc-editorial-copy p { display:none; }
  .pbc-kicker { letter-spacing:.5px; }
}
@media (max-width: 365px) {
  :root { --pbc-gutter: 13px; }
  .pbc-header .pbc-brand-inner, .pbc-header.pbc-header-compact .pbc-brand-inner { gap:5px; }
  .pbc-header .pbc-custom-logo img, .pbc-header.pbc-header-compact .pbc-custom-logo img { max-width:49px; max-height:46px; }
  .pbc-header .pbc-monogram, .pbc-header.pbc-header-compact .pbc-monogram { font-size:27px; }
  .pbc-mobile-auth-links { gap:4px; }
  .pbc-signup-full { display:none; }
  .pbc-signup-compact { display:inline; }
  .pbc-mobile-auth-links .pbc-mobile-signup { padding:7px 8px; }
  .pbc-overlay-brand-name strong { font-size:13px; }
  .pbc-overlay-brand-name small { font-size:11px; }
  .pbc-overlay-logo { max-width:42px; max-height:42px; }
  .pbc-editorial-thumb, .pbc-news-list-layout .pbc-editorial-thumb { flex-basis:94px; height:75px; }
}
@media (prefers-reduced-motion:reduce) {
  .pbc-nav-collapse, .pbc-menu-backdrop, .pbc-banner-slide { transition:none!important; }
}
