/* Cross-portal quality guardrails. Brand colors remain defined by each journal. */
.global-footer{box-sizing:border-box}
.global-footer :where(h2,h3,p,a,span,small,strong){color:inherit!important}
.global-footer .footer-grid>*{min-width:0}
.global-footer :where(p,a){overflow-wrap:anywhere}

.article-page-body .share-rail{
  background:var(--navy,#062743)!important;
  color:#fff!important;
  border-color:rgba(255,255,255,.2)!important;
}
.article-page-body .share-rail :where(button,a),
.article-page-body .share-rail :where(button,a):nth-child(n){
  color:#fff!important;
}
.article-page-body .share-rail svg{fill:currentColor!important}
.article-page-body .share-rail :where(button,a):hover{background:rgba(255,255,255,.14)!important}

:where(.news-card,.columnist-card,.columnist-directory-card,.directory-card){min-width:0}
:where(.news-card,.columnist-card,.columnist-directory-card,.directory-card) img{max-width:100%}
:where(.columnist-card,.columnist-directory-card,.author-card) :where(img,.columnist-avatar){aspect-ratio:1/1;object-fit:cover}
:where(button,.button,[role="button"]){touch-action:manipulation}

@media(max-width:900px){
  .article-page-body .share-rail{background:rgba(6,39,67,.96)!important;-webkit-backdrop-filter:blur(18px) saturate(150%);backdrop-filter:blur(18px) saturate(150%)}
}
@media(max-width:760px){
  .global-footer{padding-bottom:max(94px,calc(72px + env(safe-area-inset-bottom)))!important}
  .article-page-body .share-rail{max-width:calc(100vw - 20px);overflow-x:auto}
}
@media(prefers-reduced-transparency:reduce){
  .article-page-body .share-rail{background:var(--navy,#062743)!important;-webkit-backdrop-filter:none;backdrop-filter:none}
}

/* O Estado do Rio: keep its editorial palette legible when dark mode is active. */
.a11y-dark .estado-edition{color:#f7f3ea!important}
.a11y-dark .estado-edition :where(
  .article-header-block h1,.article-header-block h2,.article-header-block p,
  .article-body,.article-body p,.article-body li,.article-body h2,.article-body h3,
  .page-title,.page-header h1,.page-header p,.section-heading h1,.section-heading h2,
  .news-card,.news-card h2,.news-card h3,.news-card p,.news-card small,
  .directory-card,.directory-card h2,.directory-card h3,.directory-card p,
  .columnist-card,.columnist-card h2,.columnist-card h3,.columnist-card p,
  .columnist-directory-card,.columnist-directory-card h2,.columnist-directory-card h3,.columnist-directory-card p
){color:#f7f3ea!important}
.a11y-dark .estado-edition :where(.news-card-meta,.news-card-meta span,.article-meta,.article-meta span,.columnist-card small){color:#d8cdbb!important}
