/* TradingView: o parâmetro JS displayMode=regular (config height=58)
   mantém preço e variação na mesma linha. O iframe fica com 68px internos;
   apenas a moldura externa exibe 46px, removendo o vazio sem recortar dados. */
@media (min-width: 768px) {
  .in-premium-header .elementor-element-hd200003.nw-live-ticker {
    display: flex !important;
    align-items: stretch !important;
    justify-content: center !important;
    width: 100% !important;
    max-width: 100% !important;
    height: 46px !important;
    min-height: 46px !important;
    max-height: 46px !important;
    margin: 0 !important;
    padding: 0 !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
    position: relative !important;
    background: #161c22 !important;
    border-top: 1px solid rgba(205,162,79,.52) !important;
    border-bottom: 1px solid rgba(205,162,79,.24) !important;
  }
  .in-premium-header .elementor-element-hd200003 .in-live-quotes {
    flex: 1 1 100% !important;
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    height: 68px !important;
    min-height: 68px !important;
    margin: 0 !important;
    padding: 0 !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }
  .in-premium-header .elementor-element-hd200003 iframe {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    height: 68px !important;
    min-height: 68px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    vertical-align: top !important;
  }
}
/* Cards sem imagem usam a identidade editorial já armazenada no tema. */
.in-archive .nw-editorial-image-fallback {
  display: flex !important;
  width: 100% !important;
  min-height: 210px !important;
  height: 100% !important;
  align-items: center !important;
  justify-content: center !important;
  flex-direction: column !important;
  gap: 12px !important;
  padding: 22px !important;
  box-sizing: border-box !important;
  border-bottom: 3px solid #b99a5e !important;
  background: linear-gradient(145deg,#142634,#0b151e) !important;
}
.in-archive .nw-editorial-image-fallback img {
  display: block !important;
  width: min(70%,220px) !important;
  max-width: 220px !important;
  height: auto !important;
  max-height: 105px !important;
  object-fit: contain !important;
}
.in-archive .nw-editorial-image-fallback > span {
  font: 700 10px/1.45 "DM Sans",Arial,sans-serif !important;
  color: #ddc083 !important;
  letter-spacing: .1em !important;
  text-align: center !important;
}
/* Fechamento editorial: uma última linha incompleta se adapta ao grid.
   Nunca cria uma matéria falsa, duplica conteúdo ou altera a taxonomia. */
@media(min-width:1021px) {
  .in-archive .in-editorial-grid.nw-grid--last-one > .in-editorial-card:last-child:not(.in-editorial-card--lead) {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: minmax(0, 40%) minmax(0, 60%);
    align-items: center;
    min-height: 265px;
    padding: 0;
    border: 1px solid #e6e7e7;
    background: #fff;
  }
  .in-archive .in-editorial-grid.nw-grid--last-one > .in-editorial-card:last-child:not(.in-editorial-card--lead) .in-editorial-card__image {
    display: block;
    aspect-ratio: auto;
    height: 100%;
    min-height: 265px;
    max-height: 330px;
    overflow: hidden;
    background: #e9eef1;
  }
  .in-archive .in-editorial-grid.nw-grid--last-one > .in-editorial-card:last-child:not(.in-editorial-card--lead) .in-editorial-card__image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain !important;
    background: #e9eef1;
  }
  .in-archive .in-editorial-grid.nw-grid--last-one > .in-editorial-card:last-child:not(.in-editorial-card--lead) .in-editorial-card__copy {
    min-width: 0;
    padding: 24px 28px !important;
  }
  .in-archive .in-editorial-grid.nw-grid--last-one > .in-editorial-card:last-child:not(.in-editorial-card--lead) h3 {
    font-size: clamp(20px, 2vw, 26px);
    line-height: 1.15;
  }
  .in-archive .in-editorial-grid.nw-grid--last-two {
    grid-template-columns: repeat(6,minmax(0,1fr));
  }
  .in-archive .in-editorial-grid.nw-grid--last-two > .in-editorial-card:not(.in-editorial-card--lead) {
    grid-column: span 2;
  }
  .in-archive .in-editorial-grid.nw-grid--last-two > .in-editorial-card:nth-last-child(-n+2):not(.in-editorial-card--lead) {
    grid-column: span 3;
  }
}
