/* Poows no celular (10/11/2026).
   So vale em tela estreita: no computador nada muda.
   Para desligar: tirar o <link> do _mobile.css e a <meta viewport> do _header.inc.php. */

@media (max-width: 700px) {

  html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
  body { padding: 0 14px !important; box-sizing: border-box; }

  /* colunas: a tabela de 620px vira a largura da tela */
  table[width="620"], table[width="670"], table[width="500"] { width: 100% !important; }
  td[width="500"] { width: auto !important; }
  td[width="41"], td[width="50"] { width: 40px !important; padding-right: 8px !important; }

  /* topo: Flash do logo encolhe proporcional e centraliza */
  .m-logo { padding-left: 0 !important; text-align: center; padding-top: 10px; }
  .m-logo object, .m-logo embed, .m-logo ruffle-object, .m-logo ruffle-embed {
    display: block; margin: 0 auto;
    width: min(calc(100vw - 28px), 550px) !important;
    height: calc(min(calc(100vw - 28px), 550px) * 175 / 550) !important;
  }

  /* menu: sem o recuo de 74px; ALL COOL a esquerda, ABOUT e MANDE UM LINK a direita */
  .m-menu { padding-top: 6px; }
  /* menu: ALL COOL a 30px da borda esquerda; ABOUT e MANDE UM LINK vao ate a margem direita do conteudo (14px) */
  .m-menu table { margin-left: -32px; width: calc(100% + 32px) !important; }
  .m-menu table td { width: auto !important; }
  .m-menu img { vertical-align: middle; }

  /* imagens e videos dos posts ocupam a largura e mantem a proporcao */
  img { max-width: 100% !important; }
  img:not([src*="x.gif"]) { height: auto !important; }
  img[src*="x.gif"] { max-width: 100% !important; }
  iframe, video, object, embed, ruffle-object, ruffle-embed { max-width: 100% !important; }
  .texto iframe, .texto video, .texto embed, .texto object, .texto ruffle-object, .texto ruffle-embed {
    width: 100% !important; height: auto !important; aspect-ratio: 16 / 9;
  }

  /* fontes */
  .texto { font-size: 16px !important; line-height: 25px !important; }
  .titulo { font-size: 20px !important; line-height: 26px !important; }
  .data { font-size: 12px !important; }
  .link_lateral { font-size: 11px !important; }
  .paginacao, .tags, .tagorama, .rodape, .credito { font-size: 13px !important; line-height: 20px !important; }
  .nome_coment { font-size: 14px !important; }
  .paginas { flex-wrap: wrap; }
  .input_busca { width: 100% !important; box-sizing: border-box; }

  /* janelas "Mande um link" e "Todo ouvidos": centralizadas (regra geral no _header), so estreitam */
  #box_abre table[width="600"] { width: calc(100vw - 20px) !important; }
  #box_abre iframe#box { width: 100% !important; max-height: calc(100vh - 160px); }

  /* about: colunas (logo / feed / lista e os links) viram uma embaixo da outra */
  .m-empilha, .m-empilha > tbody, .m-empilha > tbody > tr, .m-empilha > tbody > tr > td {
    display: block; width: auto !important; text-align: left !important;
  }
  .m-empilha > tbody > tr > td { padding-bottom: 28px; }
  .m-empilha.m-links > tbody > tr > td { padding-bottom: 0; }

  .topo-bt { right: 14px; bottom: 14px; }
}
