/* ID Federal Halloween v3.8.15
 * Chrome desktop: bloco da Central ~25% menor que o teto anterior de 840px.
 * 840 x .75 = 630px.
 * Objetivo: 4 artes (2x2) + paginacao terminarem dentro da area util do wallpaper.
 * Sem zoom, sem transform/scale, sem crop e sem transparencia do card interno.
 */

@media (min-width:901px){
  html body.idf-halloween-active.idf-hw-central-v33.idf-hw-browser-chrome-v3815 .idf-v385-shell{
    width:calc(100% - 24px) !important;
    max-width:630px !important;
    min-width:0 !important;
    margin-left:auto !important;
    margin-right:auto !important;
    padding:8px 9px !important;
    box-sizing:border-box !important;
    background:#281f35 !important;
    background-color:#281f35 !important;
    background-image:none !important;
    opacity:1 !important;
  }

  html body.idf-halloween-active.idf-hw-central-v33.idf-hw-browser-chrome-v3815 .idf-v385-layout{
    display:grid !important;
    grid-template-columns:140px minmax(0,1fr) !important;
    gap:8px !important;
    width:100% !important;
    min-width:0 !important;
    max-width:100% !important;
    align-items:start !important;
    box-sizing:border-box !important;
  }

  html body.idf-halloween-active.idf-hw-central-v33.idf-hw-browser-chrome-v3815 .idf-v385-sidebar{
    width:140px !important;
    min-width:140px !important;
    max-width:140px !important;
    padding:7px !important;
    box-sizing:border-box !important;
  }

  /* Menos espaco vertical no formulario, sem achatar texto. */
  html body.idf-halloween-active.idf-hw-central-v33.idf-hw-browser-chrome-v3815 .idf-v385-sidebar :is(p,label){
    margin-top:3px !important;
    margin-bottom:2px !important;
  }
  html body.idf-halloween-active.idf-hw-central-v33.idf-hw-browser-chrome-v3815 .idf-v385-sidebar :is(input:not([type="checkbox"]):not([type="radio"]),select,textarea){
    min-height:26px !important;
    padding:4px 6px !important;
    box-sizing:border-box !important;
  }
  html body.idf-halloween-active.idf-hw-central-v33.idf-hw-browser-chrome-v3815 .idf-v385-sidebar button{
    min-height:28px !important;
    padding:4px 7px !important;
  }

  html body.idf-halloween-active.idf-hw-central-v33.idf-hw-browser-chrome-v3815 .idf-v385-main{
    width:100% !important;
    min-width:0 !important;
    max-width:100% !important;
  }

  html body.idf-halloween-active.idf-hw-central-v33.idf-hw-browser-chrome-v3815 .idf-v385-gallery{
    display:grid !important;
    grid-template-columns:repeat(2,minmax(0,1fr)) !important;
    gap:7px !important;
    width:100% !important;
    min-width:0 !important;
    max-width:100% !important;
    align-items:start !important;
  }

  html body.idf-halloween-active.idf-hw-central-v33.idf-hw-browser-chrome-v3815 .idf-v385-art-card{
    width:100% !important;
    min-width:0 !important;
    max-width:100% !important;
    padding:5px !important;
    box-sizing:border-box !important;
  }

  html body.idf-halloween-active.idf-hw-central-v33.idf-hw-browser-chrome-v3815 :is(
    .idf-v385-art-image,
    .idf-v385-art-card > img,
    .idf-v385-art-card picture > img
  ){
    display:block !important;
    width:100% !important;
    max-width:100% !important;
    height:auto !important;
    max-height:none !important;
    object-fit:contain !important;
    object-position:center top !important;
    aspect-ratio:auto !important;
  }

  /* Compacta apenas espacamento do cabecalho do card principal. */
  html body.idf-halloween-active.idf-hw-central-v33.idf-hw-browser-chrome-v3815 .idf-v385-shell > :is(h1,h2,h3){
    margin-top:6px !important;
    margin-bottom:6px !important;
  }
  html body.idf-halloween-active.idf-hw-central-v33.idf-hw-browser-chrome-v3815 .idf-v385-shell > p{
    margin-top:5px !important;
    margin-bottom:7px !important;
  }

  /* Paginacao curta para terminar dentro do cenario. */
  html body.idf-halloween-active.idf-hw-central-v33.idf-hw-browser-chrome-v3815 .idf-hw-pagination-v34{
    margin:6px 0 0 !important;
    padding:5px 2px !important;
    gap:6px !important;
  }
  html body.idf-halloween-active.idf-hw-central-v33.idf-hw-browser-chrome-v3815 .idf-hw-pagination-v34 button{
    min-height:26px !important;
    padding:4px 8px !important;
  }
}

/* Abaixo de 900px vale a responsividade normal da Central; nao forcar reducao desktop. */
