/* CURRENT · 14/10/2026: marfim na estrutura do portal JR.
   Scoped to the portal so product styles remain independent.
   Important declarations supersede the historical dark theme layers. */
body.jr-portal {
  color-scheme: light;
  background: var(--jr-paper) !important;
  color: var(--jr-ink) !important;
}
body.jr-portal .site-main,
body.jr-portal .site-main :is(.section.editorial-section, .jr-latest, .guide-hub-section, .consult-home-promo, .jr-sobre, .footer),
body.jr-portal .article-view {
  background: var(--jr-paper) !important;
  color: var(--jr-ink) !important;
}
body.jr-portal .site-main *,
body.jr-portal .article-view * {
  box-shadow: none !important;
  text-shadow: none !important;
  backdrop-filter: none !important;
}
body.jr-portal::before,
body.jr-portal::after,
body.jr-portal .site-main::before,
body.jr-portal .site-main::after,
body.jr-portal #heroSection::before,
body.jr-portal #heroSection::after,
body.jr-portal #heroSection .hero-text-panel::before,
body.jr-portal #heroSection .hero-bg-slide::before,
body.jr-portal #heroSection .hero-bg-slide::after,
body.jr-portal .site-main :is(.footer, .editorial-card, .mini-card, .guide-hub-card)::before,
body.jr-portal .site-main :is(.footer, .editorial-card, .mini-card, .editorial-card-img-wrap)::after,
body.jr-portal .site-main .section.editorial-section::before {
  display: none !important;
}
body.jr-portal #heroSection {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: 32px clamp(24px, 5vw, 72px);
  min-height: 0 !important;
  height: auto;
  aspect-ratio: auto;
  padding: 0 clamp(22px, 5vw, 72px) 48px;
  background: var(--jr-paper) !important;
  border-bottom: 1px solid var(--jr-fog);
  justify-content: center;
}
body.jr-portal #heroSection .nav {
  position: relative;
  inset: auto;
  grid-column: 1 / -1;
  grid-row: 1;
  width: 100%;
  padding: 20px 0 !important;
  background: var(--jr-paper) !important;
  border-bottom: 1px solid var(--jr-fog);
}
body.jr-portal #heroSection .nav .nav-logo-text,
body.jr-portal #heroSection .nav :is(.nav-links a, .nav-toggle) {
  color: var(--jr-ink) !important;
  text-shadow: none;
}
body.jr-portal #heroSection .nav .nav-logo-text span {
  color: var(--jr-slate) !important;
}
body.jr-portal #heroSection .nav :is(.nav-links a:hover, .nav-links a.active) {
  color: var(--jr-red) !important;
}
body.jr-portal #heroSection .nav-toggle,
body.jr-portal #heroSection .nav.is-open .nav-links {
  background: var(--jr-paper) !important;
  border: 1px solid var(--jr-fog);
  box-shadow: none;
  backdrop-filter: none;
}
body.jr-portal #heroSection .nav-logo-mark {
  width: 244px !important;
  height: 68px !important;
  object-fit: contain;
  border: 0;
  border-radius: 0 !important;
  background: transparent;
  filter: none;
  box-shadow: none;
}
/* Brand ornaments stay in the margins; text and cover art remain unobstructed. */
body.jr-portal .jr-hero-ornament { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: -1; }
body.jr-portal .jr-hero-ornament span { position: absolute; display: block; }
body.jr-portal .jr-ornament-circle { width: 250px; height: 250px; right: -90px; top: 126px; border: 1px solid #C62828; border-radius: 50%; background: #C62828; opacity: .07; }
body.jr-portal .jr-ornament-geometric { width: 270px; height: 170px; left: -46px; bottom: -48px; background: url('/assets/brand/jr-pattern-geometric.svg') 0 0/144px 125px; opacity: .18; }
body.jr-portal .jr-ornament-waves { width: 270px; height: 110px; right: 5%; bottom: -36px; background: url('/assets/brand/jr-pattern-waves.svg') 0 0/120px 60px; opacity: .22; }
body.jr-portal .site-main .footer { position: relative; background-image: url('/assets/brand/jr-pattern-waves.svg') !important; background-size: 160px 80px !important; background-repeat: repeat-x !important; background-position: left bottom !important; }
body.jr-portal .site-main .footer::before { display: block !important; content: ''; position: absolute; inset: 0 0 28px; background: var(--jr-paper); pointer-events: none; z-index: 0; }
body.jr-portal .site-main :is(.footer-top,.footer-bottom) { position: relative; z-index: 1; }
body.jr-portal .site-main .footer-logo img { width: 272px !important; height: 88px !important; object-fit: contain; }
body.jr-portal .site-main .footer-newsletter .social-link { display: inline-flex; width: auto; max-width: 100%; height: auto; min-height: 44px; margin-top: 16px; padding: 8px 12px; border-radius: 2px; font-size: 12px; line-height: 1.4; white-space: normal; transform: none; text-align: left; }
body.jr-portal .article-brand-lockup img { width: 76px; height: 52px; }
body.jr-portal #heroSection .hero-bg-slides {
  position: relative;
  inset: auto;
  grid-column: 2;
  grid-row: 2;
  width: min(100%, 400px);
  height: auto;
  aspect-ratio: 4 / 5;
  justify-self: end;
  z-index: 0;
  background: var(--jr-paper);
}
body.jr-portal #heroSection .hero-bg-slide {
  filter: none !important;
  background-size: contain !important;
  background-repeat: no-repeat;
  transform: none;
}
body.jr-portal #heroSection .hero-text-panel {
  position: relative;
  inset: auto;
  grid-column: 1;
  grid-row: 2;
  width: 100%;
  padding: 24px 0 !important;
  z-index: 1;
  pointer-events: auto;
}
body.jr-portal #heroSection .hero-slide-title {
  max-width: 100% !important;
  font-size: clamp(2.5rem, 4.2vw, 5rem) !important;
  line-height: 1.08 !important;
  color: var(--jr-ink) !important;
  text-shadow: none !important;
}
body.jr-portal #heroSection .hero-slide-sub {
  color: var(--jr-slate) !important;
  display: block;
  -webkit-line-clamp: unset;
  overflow: visible;
  opacity: 1;
  text-shadow: none;
}
body.jr-portal #heroSection :is(.jr-editorial-stamp, .hero-slide-cat) {
  color: var(--jr-red) !important;
}
body.jr-portal #heroSection .jr-editorial-stamp { display: none; }
body.jr-portal .site-main :is(.jr-latest-label, .section-title, .editorial-card-title, .mini-card-title, .jr-latest-card-title, .guide-hub-title, .guide-hub-card strong, .consult-home-title, .jr-sobre-titulo, .footer-logo-text),
body.jr-portal .article-view :is(h1, h2, h3, strong) {
  color: var(--jr-ink) !important;
}
body.jr-portal .site-main :is(.editorial-card-excerpt, .editorial-card-date, .guide-hub-copy, .guide-hub-card span, .consult-home-desc, .jr-sobre-bio, .jr-sobre-cargo, .footer-desc, .fn-desc, .footer-copy, .footer-col a, .editorial-stamp, .editorial-mini-market),
body.jr-portal .article-view :is(.a-subtitle, .a-meta) {
  color: var(--jr-slate) !important;
}
body.jr-portal .site-main :is(.section-label, .editorial-card-tag, .mini-card-tag, .jr-latest-card-cat, .guide-hub-label, .guide-hub-action, .consult-home-eyebrow, .fn-eyebrow, .footer-col h4),
body.jr-portal .article-view .a-tag {
  color: var(--jr-red) !important;
}
body.jr-portal .site-main :is(.editorial-card, .editorial-card-img-wrap, .editorial-mini-head, .guide-hub-inner, .section-header, .footer-bottom, .social-link),
body.jr-portal .article-view .a-meta {
  border-color: var(--jr-fog) !important;
}
body.jr-portal .site-main :is(.guide-hub-card, .consult-home-inner, .mini-card, .jr-latest-card, .card-h) {
  background: var(--jr-paper) !important;
  border: 1px solid var(--jr-fog) !important;
  color: var(--jr-ink) !important;
  box-shadow: none !important;
}
body.jr-portal .site-main .guide-hub-card::before { display: none; }
body.jr-portal .site-main .section.editorial-section { padding-top: clamp(40px, 5vw, 64px); }
body.jr-portal .site-main :is(.editorial-card .editorial-stamp, .editorial-card-index, .mini-card .editorial-stamp) { display: none; }
body.jr-portal .site-main :is(.editorial-mini-title, .editorial-mini-market span span) { color: var(--jr-slate) !important; }
body.jr-portal :is(.jr-editorial-stamp, .editorial-stamp) i { box-shadow: none !important; }
body.jr-portal .site-main :is(.editorial-card-img, .mini-card-img) { filter: none; }
body.jr-portal .site-main .editorial-card-img-wrap {
  background: var(--jr-fog) !important;
  box-shadow: none !important;
}
body.jr-portal .site-main :is(.editorial-card-read, .social-link) {
  color: var(--jr-red) !important;
  background: transparent;
  border-color: var(--jr-fog);
}
body.jr-portal .site-main .consult-home-cta {
  background: var(--jr-red);
  color: var(--jr-paper) !important;
}
body.jr-portal .site-main .jr-latest-card { height: auto; min-height: 0; }
body.jr-portal .site-main .jr-latest-card-bg { position: relative; height: auto; aspect-ratio: 4 / 5; }
body.jr-portal .site-main .jr-latest-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 24px; }
body.jr-portal .site-main .jr-latest-card-ov { display: none; }
body.jr-portal .site-main .jr-latest-card-body { position: relative; padding: 18px; }
body.jr-portal .site-main .jr-latest-head::after { background: var(--jr-fog); }
body.jr-portal .site-main .mini-card { display: flex; flex-direction: column; min-height: 0; }
body.jr-portal .site-main .mini-card-img { position: relative; height: 220px; width: 100%; transform: none; }
body.jr-portal .site-main .mini-card-body { background: var(--jr-paper); }
body.jr-portal .article-inner { color: var(--jr-ink) !important; }
body.jr-portal .a-body { color: var(--jr-ink) !important; font-size: 18px; line-height: 1.75; }
body.jr-portal .a-body a { color: var(--jr-red); text-decoration: underline; text-underline-offset: .18em; }
body.jr-portal .a-body em { color: var(--jr-slate); background: transparent; border-left-color: var(--jr-red); }
body.jr-portal .article-header-hero .ah-img { filter: none !important; }
body.jr-portal .site-main .editorial-card-img.is-portrait,
body.jr-portal .site-main .mini-card-img.is-portrait {
  object-fit: contain;
  transform: none;
  background: var(--jr-paper);
}
body.jr-portal .site-main .editorial-card:hover .editorial-card-img.is-portrait,
body.jr-portal .site-main .mini-card:hover .mini-card-img.is-portrait { transform: none; }
body.jr-portal .site-main .jr-latest-card:hover .jr-latest-card-bg { transform: none; }
body.jr-portal .a-body :is(img[data-jr-cover="illustration"], img[data-jr-cover="social-cover"]) {
  display: block;
  width: 100%;
  height: auto;
  max-height: 680px;
  aspect-ratio: 4 / 5;
  object-fit: contain;
  background: var(--jr-paper);
}
body.jr-portal .jr-image-unavailable { display: block; padding: 20px; color: var(--jr-slate); background: var(--jr-paper); }
body.jr-portal .article-header-hero .ah-overlay { display: none; }
body.jr-portal .jr-news-section { padding: 24px clamp(22px,5vw,72px) 48px; }
body.jr-portal .jr-news-archive { border-block: 1px solid var(--jr-fog); padding: 20px 0; }
body.jr-portal .jr-news-archive summary { cursor: pointer; font: 600 1.05rem var(--jr-sans); min-height: 44px; }
body.jr-portal .jr-news-archive p { color: var(--jr-slate); line-height: 1.6; }
body.jr-portal #newsArchiveList { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 20px 32px; }
body.jr-portal #newsArchiveList li { display: grid; gap: 6px; border-bottom: 1px solid var(--jr-fog); padding-bottom: 16px; }
body.jr-portal #newsArchiveList a { color: var(--jr-ink); font: 500 1.05rem/1.5 var(--jr-serif); }
body.jr-portal #newsArchiveList span { color: var(--jr-slate); font: .8rem/1.5 var(--jr-sans); }
body.jr-portal .btn-back { background: var(--jr-paper) !important; color: var(--jr-red) !important; border-color: var(--jr-fog) !important; }
body.jr-portal .btn-back:hover { background: var(--jr-red) !important; color: var(--jr-paper) !important; }
body.jr-portal :is(a, button, [tabindex]):focus-visible { outline: 2px solid var(--jr-red); outline-offset: 4px; }
body.jr-portal::-webkit-scrollbar-track { background: var(--jr-paper); }
@media (max-width: 920px) {
  body.jr-portal #heroSection { grid-template-columns: minmax(0,1fr); gap: 20px; padding: 0 24px 32px; min-height: 0 !important; overflow: visible; }
  body.jr-portal #heroSection .nav { position: relative; min-height: 96px; }
  body.jr-portal #heroSection .nav-logo-mark { width: 208px !important; height: 60px !important; }
  body.jr-portal .jr-ornament-circle { width: 160px; height: 160px; right: -112px; top: 128px; opacity: .06; }
  body.jr-portal .jr-ornament-geometric { width: 160px; height: 100px; left: -40px; bottom: -46px; opacity: .16; }
  body.jr-portal .jr-ornament-waves { width: 170px; height: 90px; right: 24px; bottom: -48px; opacity: .18; }
  body.jr-portal #heroSection .nav.is-open .nav-links { inset: 100% 0 auto; width: auto; align-items: flex-start; }
  body.jr-portal #heroSection .hero-bg-slides { grid-column: 1; grid-row: 3; width: min(100%,460px); justify-self: center; height: auto; }
  body.jr-portal #heroSection .hero-text-panel { grid-column: 1; grid-row: 2; width: 100%; padding: 16px 0 !important; }
  body.jr-portal #heroSection .hero-slide-title { font-size: clamp(2.4rem, 8vw, 4rem) !important; }
  body.jr-portal .site-main .editorial-mini-panel.is-news-list .mini-card { display: grid; grid-template-columns: 88px minmax(0, 1fr); border-inline: 0 !important; border-top: 0 !important; }
  body.jr-portal .site-main .editorial-mini-panel.is-news-list .mini-card-img { width: 88px; height: 88px; }
  body.jr-portal .site-main .jr-latest-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  body.jr-portal #newsArchiveList { grid-template-columns: minmax(0,1fr); }
}
@media (max-width: 560px) {
  body.jr-portal .site-main .editorial-card-title { font-size: clamp(1.8rem, 8vw, 2.25rem); line-height: 1.12; }
  body.jr-portal .site-main .jr-latest-grid { grid-template-columns: minmax(0,1fr); }
  body.jr-portal .site-main .jr-latest-card-bg { max-height: none; }
}
