html {
  box-sizing: border-box;
  -webkit-text-size-adjust: 100%;
}

*, *::before, *::after {
  box-sizing: inherit;
}

body {
  margin: 0;
  overflow-x: hidden;
  background: #ffffff;
  color: #1f2933;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* Content images only — never global img (breaks Abril UI icons at 100% w/h) */
#main img,
.main-container img,
.list img,
.card img,
article img,
.entry-content img,
.article-content img,
.post-content img,
.content-media img,
.bstn-fd-picture img,
.bstn-hl-picture img,
figure img,
.lazyload.media {
  max-width: 100%;
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  background: #e8edf2;
}

.card img,
.card .media,
.list .card img {
  aspect-ratio: 16 / 10;
  max-height: 440px;
  object-fit: cover;
}

img.lazyload:not([src]),
img[src=""],
img[src="#"] {
  visibility: hidden;
  min-height: 0;
}

/* Blocos de assinatura Abril (capas externas) — reduz ruído visual */
.mobile-assine,
.block.edicao-semana .our-carousel,
.our-carousel[data-assine] {
  display: none !important;
}

picture,
svg,
video,
canvas {
  max-width: 100%;
}

main,
.site-main,
.content,
.entry-content,
.article-content,
.post-content,
#main.main-container {
  max-width: 1120px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 18px;
  padding-right: 18px;
}

article {
  max-width: 820px;
  margin-left: auto;
  margin-right: auto;
}

a {
  overflow-wrap: anywhere;
}

.gab-main-nav a,
.gab-mobile-menu-toggle {
  overflow-wrap: normal;
}

.gab-site-header-compact {
  position: sticky;
  top: 0;
  z-index: 1000;
}

.gab-legal-footer {
  margin-top: 48px;
  background: #0f172a;
  color: #e2e8f0;
  padding: 28px 20px;
  font-size: 15px;
  line-height: 1.7;
}

.gab-legal-footer strong {
  color: #fff;
}

.gab-legal-footer a {
  color: #93c5fd;
}

.gab-legal-links {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 10px;
}

/* Legacy Abril header / menu / login — hide completely */
header#header,
.header,
.header-lift,
.header-partner,
.navigation,
#gcom-bar-container,
#gcom-bar,
.glbbarrawidget,
#glbbarrawidget,
.menu-container,
.menu-rounder,
#menu-container,
#menu-rounder,
#menu-curtain,
.menu-exposto,
.basv-footer,
.product-color .header,
.custom-footer,
.footer__copyright__wrapper,
.glb-footer,
.login-profile__menu,
.header__loader,
.revista_header_loader,
#user-exp-menu-wrapper,
#user-exp-menu-fade,
#user-exp-login-spinner,
#user-exp-alerts-wrapper,
#user-exp-ctrl,
#header-user-exp-ctrl,
.user-exp-menu-fade-alerts,
.new-exp-logada-enter {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
  height: 0 !important;
  max-height: 0 !important;
  overflow: hidden !important;
  opacity: 0 !important;
}

/* Safety: if any user-avatar leaks, cap size */
.user-avatar,
.user-avatar-notification,
#user-avatar-clickable {
  display: none !important;
  max-width: 48px !important;
  max-height: 48px !important;
  width: auto !important;
  height: auto !important;
}

@media (max-width: 767px) {
  main,
  .site-main,
  .content,
  .entry-content,
  .article-content,
  .post-content,
  #main.main-container {
    padding-left: 14px;
    padding-right: 14px;
  }

  article {
    max-width: 100%;
  }
}
