/* LOOK CASUAL | v1.6 - Largura real de pagina, artigos e blocos internos
 * Prioridade: recuperar a area util em 12px de cada lateral.
 * Independente da classe JS lc-mobile-nav-ready.
 * Afeta apenas paginas e artigos do WordPress, nao os jogos HTML independentes.
 */
@media screen and (max-width:900px) {
  html { max-width:100%; }
  body.page, body.single, body.home, body.archive, body.blog, body.search { max-width:100%; overflow-x:clip; }

  /* Corrige o tema, incluindo seus contêineres intermediarios, sem tocar no cabecalho. */
  :is(body.page, body.single, body.home, body.archive, body.blog, body.search) :is(#page, .site) {
    width:100% !important; max-width:100% !important;
    min-width:0 !important; margin-inline:0 !important;
    padding-inline:0 !important; box-sizing:border-box !important;
  }
  :is(body.page, body.single, body.home, body.archive, body.blog, body.search) :is(#content, .site-content) {
    width:100% !important; max-width:100% !important;
    min-width:0 !important; margin-inline:0 !important;
    padding-inline:12px !important; box-sizing:border-box !important;
  }
  :is(body.page, body.single, body.home, body.archive, body.blog, body.search) :is(#content, .site-content) :is(
    .container, .wrapper, .site-container, .content-wrapper, .row,
    #primary, .content-area, .site-main, main#main,
    .main-content, .main, .primary, .inner, .inner-wrap
  ) {
    width:100% !important; max-width:100% !important; min-width:0 !important;
    margin-left:0 !important; margin-right:0 !important;
    padding-left:0 !important; padding-right:0 !important;
    float:none !important; box-sizing:border-box !important;
  }

  /* Artigos e blocos editoriais sao os elementos que nao haviam sido expandidos na v1.5. */
  :is(body.page, body.single, body.home, body.archive, body.blog, body.search) :is(#primary, .site-main, .content-area) article {
    width:100% !important; max-width:100% !important; min-width:0 !important;
    margin-inline:0 !important; box-sizing:border-box !important;
  }
  :is(body.page, body.single, body.home, body.archive, body.blog, body.search) :is(.entry-content, .post-content, .page-content) {
    width:100% !important; max-width:100% !important; min-width:0 !important;
    margin-inline:0 !important; box-sizing:border-box !important;
  }

  /* Mantem conteudo e imagens dentro dos cartoes em vez de recortar o texto. */
  :is(body.page, body.single, body.home, body.archive, body.blog, body.search) :is(.entry-content,.post-content,.page-content) :is(
    img,video,iframe,canvas,svg,figure,table,pre
  ) { max-width:100%; box-sizing:border-box; }
  :is(body.page, body.single, body.home, body.archive, body.blog, body.search) :is(.entry-content,.post-content,.page-content) :is(
    p,li,h1,h2,h3,h4,blockquote
  ) { min-width:0; overflow-wrap:break-word; }

  /* Evita a quebra em 5 linhas no titulo do blog de jogos. */
  body.page :is(.entry-content,.page-content) :is(h1,.hero-title,.jf-hero-title) {
    font-size:clamp(29px,8vw,40px) !important;
    line-height:1.13 !important;
    letter-spacing:normal !important;
  }
  body.single-post :is(.entry-content,.post-content) :is(p,li,blockquote) {
    font-size:clamp(16px,4.65vw,19px) !important;
    line-height:1.62 !important;
    letter-spacing:normal !important;
  }
  body.single-post :is(.entry-content,.post-content) :is(h1,h2) {
    font-size:clamp(27px,7.5vw,35px) !important;
    line-height:1.19 !important;
  }

}
/* v1.8.0: wrappers externos e layouts efetivamente encontrados no site.
 * Uma margem de 12px no content; sem compensacoes negativas nem 100vw.
 * IDs repetidos vencem as regras !important dos scripts legados.
 */
@media screen and (max-width:900px) {
  html body #page#page {
    width:100% !important; max-width:100% !important; min-width:0 !important;
    margin-inline:0 !important; padding-inline:0 !important; box-sizing:border-box !important;
  }
  html body #content#content {
    width:100% !important; max-width:100% !important; min-width:0 !important;
    margin-inline:0 !important; padding-inline:12px !important; box-sizing:border-box !important;
  }
  html body #content#content > :is(.container,.wrapper),
  html body #content#content > .container > .row,
  html body #primary#primary,
  html body #primary#primary > .site-main,
  html body #primary#primary > .site-main > article,
  html body #primary#primary :is(.entry-content,.post-content,.page-content) {
    width:100% !important; max-width:100% !important; min-width:0 !important;
    margin-inline:0 !important; padding-inline:0 !important;
    float:none !important; box-sizing:border-box !important;
  }
  html body #content#content :is(#jfapp,.jfc-app,.jfs-app,.jfl20-app) {
    display:block !important; grid-template-columns:minmax(0,1fr) !important;
    width:100% !important; max-width:100% !important; min-width:0 !important;
    margin:0 !important; padding-inline:0 !important; left:auto !important;
    right:auto !important; transform:none !important; box-sizing:border-box !important;
  }
  html body #content#content :is(#jfapp,.jfc-app,.jfs-app,.jfl20-app)
  > :is(.jf-sidebar,.jf-bottom,.jfc-sidebar,.jfc-rail,.jfs-sidebar,.jfs-rail,.jfl20-sidebar,.jfl20-rail) {
    display:none !important; visibility:hidden !important; pointer-events:none !important;
  }
  html body #content#content :is(#jfapp,.jfc-app,.jfs-app,.jfl20-app)
  > :is(.jf-main,.jf-layout,.jfc-main,.jfs-main,.jfl20-main),
  html body #content#content #jfapp .jf-main,
  html body #content#content #jfapp .jf-layout {
    grid-column:1 / -1 !important; width:100% !important; max-width:100% !important;
    min-width:0 !important; margin:0 !important; padding-inline:0 !important;
    left:auto !important; right:auto !important; transform:none !important;
    float:none !important; box-sizing:border-box !important;
  }
  html body #content#content #jfapp .jf-layout {display:block !important;}
  html body #content#content #jfapp :is(.jf-sidebar,.jf-bottom) {display:none !important;}
  /* Apenas ancestrais estruturais marcados pelo script, nunca todos os cards. */
  html body #content#content .lc-layout-shell-v18 {
    width:100% !important; max-width:100% !important; min-width:0 !important;
    margin-inline:0 !important; padding-inline:0 !important;
    left:auto !important; right:auto !important; transform:none !important;
    float:none !important; box-sizing:border-box !important;
  }
}
