/* Auditoria final da identidade institucional - 2026-07-21.
   Esta camada neutraliza cores e tipografia legadas sem alterar documentos. */

:root{
  --rl-font-ui:Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",sans-serif;
  --rl-shadow:0 12px 30px rgba(34,55,47,.08);
}

html body,html body button,html body input,html body select,html body textarea{
  font-family:var(--rl-font-ui)!important;
}

/* PUBLICO */
html body.rl-public :is(h1,h2,h3,h4,.rl-price,.rl-plan h3,.rl-benefit h3,.rl-cta-showcase-copy h3),
html body.subscription-public-page :is(h1,h2,h3,.subscription-plan-title,.subscription-plan-price){
  font-family:var(--rl-font-ui)!important;
  color:var(--system-ink)!important;
}
html body.rl-public .rl-header{background:var(--system-sidebar-deep)!important}
html body.rl-public .rl-nav a::after{background:var(--system-accent)!important}
html body.rl-public .rl-header-actions .rl-btn{
  background:transparent!important;border-color:rgba(255,255,255,.62)!important;color:#fff!important;box-shadow:none!important
}
html body.rl-public .rl-header-actions .rl-btn-solid{
  background:var(--system-accent)!important;border-color:var(--system-accent)!important;color:#fff!important
}
html body.rl-public .rl-header-actions .rl-btn:is(:hover,:focus-visible),
html body.rl-public .rl-header-actions .rl-btn-solid:is(:hover,:focus-visible){
  background:var(--system-active)!important;border-color:var(--system-active)!important;color:#fff!important
}
html body.rl-public .rl-hero{background:var(--system-bg)!important}
html body.rl-public .rl-hero-grid{grid-template-columns:minmax(430px,.86fr) minmax(560px,1.14fr)!important;gap:24px!important}
html body.rl-public .rl-hero h1{
  max-width:720px!important;font:750 clamp(3.15rem,5.55vw,5.65rem)/1.01 var(--rl-font-ui)!important;
  letter-spacing:-.055em!important;color:var(--system-ink)!important
}
html body.rl-public .rl-hero-actions .rl-btn,
html body.rl-public .rl-cta-showcase-copy .rl-btn{
  background:var(--system-sidebar-deep)!important;border-color:var(--system-sidebar-deep)!important;color:#fff!important;
  box-shadow:0 7px 18px rgba(34,55,47,.14)!important
}
html body.rl-public .rl-hero-actions .rl-btn:is(:hover,:focus-visible),
html body.rl-public .rl-cta-showcase-copy .rl-btn:is(:hover,:focus-visible){
  background:var(--system-sidebar)!important;border-color:var(--system-sidebar)!important;color:#fff!important
}
html body.rl-public .rl-art-space{
  min-height:580px!important;height:auto!important;background:none!important;border:0!important;border-radius:0!important;
  display:flex!important;align-items:center!important;justify-content:center!important;overflow:visible!important
}
html body.rl-public .rl-art-space::after{display:none!important;content:none!important}
html body.rl-public .rl-art-space img{
  width:min(760px,116%)!important;max-width:none!important;max-height:650px!important;height:auto!important;
  object-fit:contain!important;object-position:center!important;filter:drop-shadow(0 24px 30px rgba(34,55,47,.18))!important
}
html body.rl-public .rl-section-heading h2{font:700 clamp(2rem,3vw,3rem)/1.1 var(--rl-font-ui)!important;letter-spacing:-.035em}
html body.rl-public .rl-benefit{
  background:var(--system-surface)!important;border:1px solid var(--system-line)!important;border-radius:12px!important;
  padding:24px 14px!important;box-shadow:var(--rl-shadow)!important
}
html body.rl-public .rl-benefit-icon{color:var(--system-active)!important}
html body.rl-public .rl-benefit h3{font:700 clamp(.72rem,.75vw,.88rem)/1.25 var(--rl-font-ui)!important;color:var(--system-ink)!important}
html body.rl-public .rl-benefit p{color:var(--system-muted)!important}
html body.rl-public .rl-plan,html body.rl-public .rl-plan-featured{
  background:var(--system-surface)!important;border:1px solid var(--system-line)!important;color:var(--system-ink)!important;
  box-shadow:var(--rl-shadow)!important
}
html body.rl-public .rl-plan-featured{border-color:var(--system-accent)!important;box-shadow:0 0 0 2px color-mix(in srgb,var(--system-accent) 18%,transparent),var(--rl-shadow)!important}
html body.rl-public .rl-plan h3{font:750 1.55rem/1.15 var(--rl-font-ui)!important}
html body.rl-public .rl-plan-subtitle,html body.rl-public .rl-plan li,html body.rl-public .rl-price small{color:var(--system-muted)!important}
html body.rl-public .rl-price{font:750 2.15rem/1 var(--rl-font-ui)!important;color:var(--system-sidebar-deep)!important}
html body.rl-public .rl-plan li::before{color:var(--system-active)!important}
html body.rl-public .rl-plan .rl-btn{
  background:var(--system-sidebar-deep)!important;border-color:var(--system-sidebar-deep)!important;color:#fff!important
}
html body.rl-public .rl-plan-ribbon{display:none!important}
html body.rl-public .rl-cta-showcase{background:var(--system-surface)!important;border-color:var(--system-line)!important;box-shadow:var(--rl-shadow)!important}
html body.rl-public .rl-cta-showcase-copy h3{font:750 clamp(2.2rem,4vw,4.1rem)/1.05 var(--rl-font-ui)!important;letter-spacing:-.045em}
html body.rl-public .rl-footer-socials a{border-color:rgba(255,255,255,.35)!important;color:#fff!important}
html body.rl-public .rl-footer-socials a:is(:hover,:focus-visible){background:var(--system-accent)!important;color:#fff!important}

/* PLANOS / ASSINATURA */
html body.subscription-public-page .subscription-public-header,
html body.subscription-public-page .subscription-public-footer{background:var(--system-sidebar-deep)!important;color:#fff!important}
html body.subscription-public-page .subscription-public-header .btn{
  background:transparent!important;border-color:rgba(255,255,255,.62)!important;color:#fff!important
}
html body.subscription-public-page .subscription-public-header .btn:is(:hover,:focus-visible){background:var(--system-active)!important;border-color:var(--system-active)!important}
html body.subscription-public-page .subscription-heading h1{font:750 clamp(1.85rem,3vw,2.65rem)/1.05 var(--rl-font-ui)!important;letter-spacing:-.035em}
html body.subscription-public-page .subscription-plan-choice{
  background:var(--system-surface)!important;border-color:var(--system-line)!important;color:var(--system-ink)!important;box-shadow:var(--rl-shadow)!important
}
html body.subscription-public-page .subscription-plan-card:nth-child(2) .subscription-plan-choice::before{display:none!important;content:none!important}
html body.subscription-public-page .subscription-plan-grid{padding-top:0!important}
html body.subscription-public-page .subscription-plan-title{font:750 1.35rem/1.15 var(--rl-font-ui)!important}
html body.subscription-public-page .subscription-plan-price{font:750 1.72rem/1 var(--rl-font-ui)!important;color:var(--system-sidebar-deep)!important}
html body.subscription-public-page .subscription-plan-choice :is(ul,li,small){color:var(--system-muted)!important}
html body.subscription-public-page .subscription-plan-choice li::before{color:var(--system-active)!important}
html body.subscription-public-page .subscription-select-label{
  background:var(--system-accent-soft)!important;border-color:var(--system-line)!important;color:var(--system-ink)!important
}
html body.subscription-public-page .subscription-plan-card>input:checked+.subscription-plan-choice{
  border-color:var(--system-accent)!important;box-shadow:0 0 0 3px color-mix(in srgb,var(--system-accent) 18%,transparent),var(--rl-shadow)!important
}
html body.subscription-public-page .subscription-plan-card>input:checked+.subscription-plan-choice .subscription-select-label,
html body.subscription-public-page .subscription-request-card .btn-primary{
  background:var(--system-sidebar-deep)!important;border-color:var(--system-sidebar-deep)!important;color:#fff!important
}
html body.subscription-public-page .subscription-request-card,
html body.subscription-public-page .subscription-notice{background:var(--system-surface)!important;border-color:var(--system-line)!important;color:var(--system-ink)!important;box-shadow:var(--rl-shadow)!important}
html body.subscription-public-page .subscription-request-card>label{color:var(--system-muted)!important}

/* ACESSO */
html .auth-page .auth-brand{
  background:linear-gradient(145deg,var(--system-accent-soft),var(--system-bg-soft))!important
}
html .auth-page .auth-brand img{
  width:min(820px,90%)!important;max-height:82vh!important;object-fit:contain!important;
  filter:drop-shadow(0 25px 34px rgba(34,55,47,.18))!important
}
html .auth-page .auth-card h1{font:750 clamp(2.15rem,3.4vw,3.25rem)/1.05 var(--rl-font-ui)!important;letter-spacing:-.04em!important}
html .auth-page .eyebrow{color:var(--system-active)!important}

/* ADMINISTRATIVO E CONTROLES INSTITUCIONAIS */
html body.admin-area :is(h1,h2,h3,h4,.page-head h1,.panel-title){font-family:var(--rl-font-ui)!important;color:var(--system-ink)!important}
html body.admin-area :is(.btn-primary,.btn-gold,button[type="submit"]){background:var(--system-sidebar-deep)!important;border-color:var(--system-sidebar-deep)!important;color:#fff!important}
html body.admin-area :is(.badge,.status-pill,.metric-icon,.nav-item .icon){color:var(--system-accent-soft)!important}

@media(max-width:1100px){
  html body.rl-public .rl-hero-grid{grid-template-columns:1fr!important}
  html body.rl-public .rl-art-space{min-height:380px!important;order:-1}
  html body.rl-public .rl-art-space img{width:min(620px,94%)!important;max-height:430px!important}
}
@media(max-width:620px){
  html body.rl-public .rl-hero h1{font-size:2.7rem!important}
  html body.rl-public .rl-art-space{min-height:280px!important}
  html body.rl-public .rl-art-space img{max-height:320px!important}
}

/* Correcao final do hero e residuos da paleta anterior - 2026-07-21. */
html body.rl-public .rl-hero h1,
html body.rl-public .rl-hero h1 > span,
html body.rl-public .rl-hero h1 [data-cms-path="hero.title"]{
  color:var(--system-ink)!important;
}
html body.rl-public .rl-nav a.active::after,
html body.rl-public .rl-nav a[aria-current="page"]::after{
  background:var(--system-accent)!important;
}
html body.rl-public :is(.rl-section-heading h2,.rl-benefit h3,.rl-plan h3,.rl-price,.rl-cta-showcase-copy h3),
html body.rl-public :is(.rl-section-heading h2,.rl-benefit h3,.rl-plan h3,.rl-price,.rl-cta-showcase-copy h3) > span{
  color:var(--system-ink)!important;
}
html body.rl-public :is(.rl-benefit-icon,.rl-plan li::before,.rl-faq summary::after){
  color:var(--system-active)!important;
}
html body.rl-public .rl-art-space{
  min-height:540px!important;
  overflow:hidden!important;
}
html body.rl-public .rl-art-space img{
  width:min(620px,100%)!important;
  max-width:100%!important;
  max-height:550px!important;
  object-fit:contain!important;
  object-position:center!important;
}
@media(max-width:1100px){
  html body.rl-public .rl-art-space{min-height:370px!important}
  html body.rl-public .rl-art-space img{width:min(560px,94%)!important;max-height:410px!important}
}
@media(max-width:620px){
  html body.rl-public .rl-art-space{min-height:250px!important}
  html body.rl-public .rl-art-space img{width:min(410px,96%)!important;max-height:290px!important}
}
/* Cores publicas institucionais sem heranca marrom - 2026-07-21. */
html body.rl-public{
  --rl-public-ink:#26332d;
  --rl-public-action:#22372f;
  --rl-public-action-hover:#304a3f;
  --rl-public-accent:#78988a;
  --rl-public-active:#4e6f61;
}
html body.rl-public .rl-hero h1,
html body.rl-public .rl-hero h1 > span,
html body.rl-public .rl-hero h1 [data-cms-path="hero.title"],
html body.rl-public :is(.rl-section-heading h2,.rl-benefit h3,.rl-plan h3,.rl-price,.rl-cta-showcase-copy h3){
  color:var(--rl-public-ink)!important;
}
html body.rl-public .rl-nav a.active::after,
html body.rl-public .rl-nav a[aria-current="page"]::after{
  background:var(--rl-public-accent)!important;
}
html body.rl-public :is(.rl-benefit-icon,.rl-plan li::before,.rl-faq summary::after){
  color:var(--rl-public-active)!important;
}
html body.rl-public .rl-plan,
html body.rl-public .rl-plan-featured{
  border-color:#dce7e1!important;
}
html body.rl-public .rl-plan-featured{
  border-color:var(--rl-public-accent)!important;
  box-shadow:0 0 0 2px rgba(120,152,138,.18),0 12px 30px rgba(34,55,47,.08)!important;
}
html body.rl-public .rl-plan .rl-btn,
html body.rl-public .rl-plan .rl-btn-solid,
html body.rl-public .rl-plan-featured .rl-btn,
html body.rl-public .rl-plan-featured .rl-btn-solid{
  background:var(--rl-public-action)!important;
  border-color:var(--rl-public-action)!important;
  color:#fff!important;
  box-shadow:0 7px 18px rgba(34,55,47,.14)!important;
}
html body.rl-public .rl-plan .rl-btn:is(:hover,:focus-visible),
html body.rl-public .rl-plan-featured .rl-btn:is(:hover,:focus-visible){
  background:var(--rl-public-action-hover)!important;
  border-color:var(--rl-public-action-hover)!important;
  color:#fff!important;
}