/* Comunidad v11 · mayor densidad visual sin perder legibilidad */

@media (max-width: 860px), (pointer: coarse) {
  #screen-community .community-feed {
    gap: 0.22rem !important;
  }

  #screen-community .community-feed--compact {
    gap: 0 !important;
    overflow: hidden;
    border: 1px solid rgba(24, 22, 19, 0.08);
    border-radius: 1rem;
    background: #fff;
    box-shadow: 0 0.4rem 1.05rem rgba(36, 27, 10, 0.045);
  }

  #screen-community .community-feed--compact .community-topic-card {
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
  }

  #screen-community .community-feed--compact .community-topic-card + .community-topic-card {
    border-top: 1px solid rgba(24, 22, 19, 0.065) !important;
  }

  #screen-community .community-topic-card {
    gap: 0.26rem !important;
    min-height: 0 !important;
    padding: 0.58rem 0.72rem !important;
  }

  #screen-community .community-topic-card > span:first-child {
    min-width: 0;
  }

  #screen-community .community-topic-card em {
    margin: 0 0 0.1rem !important;
    padding: 0 !important;
    color: #a76b0b !important;
    background: transparent !important;
    font-size: 0.61rem !important;
    line-height: 1.05 !important;
    letter-spacing: 0.045em;
  }

  #screen-community .community-topic-card > span:first-child > strong {
    margin: 0 !important;
    font-size: 0.91rem !important;
    line-height: 1.12 !important;
  }

  #screen-community .community-topic-card > span:first-child > small {
    margin-top: 0.06rem !important;
    font-size: 0.66rem !important;
    line-height: 1.12 !important;
  }

  #screen-community .community-topic-card__activity {
    gap: 0.04rem !important;
    margin-top: 0.26rem !important;
    min-width: 0 !important;
    align-content: start !important;
  }

  #screen-community .community-topic-card__activity small {
    max-width: 100% !important;
    font-size: 0.59rem !important;
    line-height: 1.13 !important;
  }

  #screen-community .community-channel-group {
    gap: 0.42rem !important;
  }

  #screen-community .community-section-head {
    margin-bottom: 0.34rem !important;
  }

  /* En un canal concreto mantenemos tarjetas separadas, pero con mucho menos aire. */
  #screen-community .community-channel-screen > .community-feed .community-topic-card {
    padding-block: 0.62rem !important;
  }

  @media (max-width: 390px) {
    #screen-community .community-topic-card {
      padding: 0.54rem 0.64rem !important;
    }

    #screen-community .community-topic-card > span:first-child > strong {
      font-size: 0.88rem !important;
    }
  }
}
