/* El Contraataque · Comunidad Hub v19
 * Footer y cabecera propios de Comunidad. No modifica el compositor de comentarios:
 * Mobile v9 + iOS v10 siguen siendo la única autoridad sobre foco, zoom y teclado.
 */

@media (min-width: 0px) {
  /* COMMUNITY_SHELL_V65_GLOBAL_CHROME: solo se sustituye la cabecera global; footer, Más y overlay pertenecen al AppShell. */
  /* UNIFIED_HEADER_V67: el AppShell conserva su header en Comunidad; solo el chat usa cabecera contextual. */
  body.community-hub-mode[data-screen="communityPostDetail"] .phone-frame > .mobile-header {
    display: none !important;
  }

  body.community-hub-mode #screen-community,
  body.community-hub-mode #screen-communityPostDetail,
  body.community-hub-mode #communityList,
  body.community-hub-mode #communityPostDetail,
  .community-hub-experience,
  .community-hub-content,
  .community-hub-section,
  .community-hub-topic-list,
  .community-hub-channel-list,
  .community-hub-live-stack {
    width: 100%;
    min-width: 0;
    max-width: 100%;
  }

  .community-hub-header {
    position: sticky;
    top: -0.68rem;
    z-index: 52;
    display: grid;
    grid-template-columns: minmax(0, max-content) minmax(0, 1fr) minmax(0, max-content);
    align-items: center;
    gap: 0.48rem;
    width: calc(100% + (var(--mobile-gutter) * 2) + env(safe-area-inset-left) + env(safe-area-inset-right));
    min-height: calc(4.25rem + env(safe-area-inset-top));
    margin-top: -0.68rem;
    margin-right: calc(0px - var(--mobile-gutter) - env(safe-area-inset-right));
    margin-bottom: 0.78rem;
    margin-left: calc(0px - var(--mobile-gutter) - env(safe-area-inset-left));
    padding:
      calc(0.52rem + env(safe-area-inset-top))
      calc(0.68rem + env(safe-area-inset-right))
      0.52rem
      calc(0.68rem + env(safe-area-inset-left));
    border-bottom: 1px solid rgba(27, 23, 18, 0.075);
    background: rgba(255, 255, 255, 0.975);
    box-shadow: 0 0.28rem 1.05rem rgba(45, 33, 13, 0.045);
    backdrop-filter: blur(20px) saturate(1.08);
    -webkit-backdrop-filter: blur(20px) saturate(1.08);
  }

  .community-hub-exit {
    display: inline-flex;
    min-height: 2.35rem;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(37, 31, 22, 0.11);
    border-radius: 999px;
    padding: 0 0.66rem;
    color: #625a4f;
    background: #fff;
    font-size: 0.66rem;
    font-weight: 850;
    line-height: 1;
    white-space: nowrap;
  }

  /* COMMUNITY_SHELL_V65_MAIN_HEADER: sin botones de salida en la portada de Comunidad. */
  body[data-screen="community"] .community-hub-header {
    grid-template-columns: minmax(0, 1fr) minmax(0, max-content);
  }

  body[data-screen="community"] .community-hub-brand {
    justify-content: flex-start;
    padding-left: 0.2rem;
  }

  .community-hub-brand {
    display: flex;
    min-width: 0;
    align-items: center;
    justify-content: center;
    gap: 0.42rem;
    text-align: center;
  }

  .community-hub-brand > span {
    display: grid;
    width: 2rem;
    height: 2rem;
    place-items: center;
    flex: 0 0 auto;
    border-radius: 50%;
    background: #fbf5e8;
  }

  .community-hub-brand img {
    width: 1.48rem;
    height: 1.48rem;
    object-fit: contain;
  }

  .community-hub-brand small,
  .community-hub-brand strong {
    display: block;
    line-height: 1;
  }

  .community-hub-brand small {
    color: #a4670d;
    font-size: 0.56rem;
    font-weight: 900;
    letter-spacing: 0.11em;
    text-transform: uppercase;
  }

  .community-hub-brand strong {
    margin-top: 0.12rem;
    color: #17130f;
    font-size: 0.98rem;
    font-weight: 1000;
    letter-spacing: -0.02em;
  }

  .community-hub-level {
    display: inline-flex;
    min-height: 2.35rem;
    max-width: 6.1rem;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 1px solid rgba(196, 131, 25, 0.22);
    border-radius: 999px;
    padding: 0 0.58rem;
    color: #875708;
    background: #fff9ec;
    font-size: 0.61rem;
    font-weight: 850;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .community-hub-content {
    display: grid;
    gap: 0.68rem;
    padding-bottom: 0.45rem;
  }

  .community-hub-profile-strip {
    display: flex;
    min-height: 4.2rem;
    align-items: center;
    justify-content: space-between;
    gap: 0.6rem;
    border: 1px solid rgba(36, 29, 19, 0.07);
    border-radius: 1.05rem;
    padding: 0.62rem 0.68rem;
    background: #fff;
    box-shadow: 0 0.38rem 1.1rem rgba(47, 35, 15, 0.045);
  }

  .community-hub-profile-badge {
    min-width: 0;
  }

  .community-hub-profile-badge .community-level-badge,
  .community-hub-profile-badge > span {
    display: inline-flex;
    min-height: 2rem;
    align-items: center;
    border: 1px solid rgba(203, 142, 42, 0.34);
    border-radius: 999px;
    padding: 0 0.72rem;
    color: #6d4912;
    background: #fff9ec;
    font-size: 0.68rem;
    font-weight: 900;
  }

  .community-hub-create {
    min-height: 2.7rem;
    border: 0;
    border-radius: 0.82rem;
    padding: 0 0.9rem;
    color: #fff;
    background: linear-gradient(135deg, #dda034, #bd790d);
    box-shadow: 0 0.28rem 0.7rem rgba(158, 99, 10, 0.14);
    font-size: 0.7rem;
    font-weight: 950;
    text-transform: uppercase;
    white-space: nowrap;
  }

  .community-hub-tabs {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    overflow: hidden;
    border: 1px solid rgba(35, 30, 22, 0.07);
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.82);
  }

  .community-hub-tabs button {
    position: relative;
    min-width: 0;
    min-height: 3rem;
    border: 0;
    padding: 0 0.2rem;
    color: #777066;
    background: transparent;
    font-size: 0.66rem;
    font-weight: 800;
    white-space: nowrap;
  }

  .community-hub-tabs button.is-active {
    color: #99610b;
    background: #fff;
  }

  .community-hub-tabs button.is-active::after {
    content: "";
    position: absolute;
    right: 22%;
    bottom: 0;
    left: 22%;
    height: 2px;
    border-radius: 999px;
    background: #bd7b13;
  }

  .community-live-dot {
    display: inline-block;
    width: 0.36rem;
    height: 0.36rem;
    margin-left: 0.24rem;
    border-radius: 50%;
    background: #d18b17;
    vertical-align: 0.06rem;
  }

  .community-hub-section {
    display: grid;
    gap: 0.65rem;
  }

  .community-hub-search-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 2.8rem;
    gap: 0.42rem;
  }

  .community-hub-search {
    display: grid;
    grid-template-columns: 1.3rem minmax(0, 1fr);
    align-items: center;
    gap: 0.4rem;
    min-height: 2.8rem;
    border: 1px solid rgba(34, 29, 21, 0.09);
    border-radius: 0.85rem;
    padding: 0 0.7rem;
    background: #fff;
  }

  .community-hub-search > svg,
  .community-hub-filter-button svg,
  .community-hub-metrics svg,
  .community-hub-topic__meta svg,
  .community-live-feature__stats svg,
  .community-hub-mine-summary svg,
  .community-hub-nav svg,
  .community-live-tabs svg {
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
  }

  .community-hub-search > svg,
  .community-hub-filter-button svg {
    width: 1.08rem;
    height: 1.08rem;
    stroke-width: 1.7;
  }

  .community-hub-search > svg {
    color: #a39b90;
  }

  .community-hub-search input {
    width: 100%;
    min-width: 0;
    border: 0;
    outline: 0;
    color: #2b2721;
    background: transparent;
  }

  .community-hub-filter-button {
    display: grid;
    width: 2.8rem;
    height: 2.8rem;
    place-items: center;
    border: 1px solid rgba(34, 29, 21, 0.09);
    border-radius: 0.85rem;
    color: #6f685e;
    background: #fff;
  }

  .community-hub-metrics {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    overflow: hidden;
    border: 1px solid rgba(35, 30, 22, 0.07);
    border-radius: 0.95rem;
    background: #fff;
  }

  .community-hub-metrics > div {
    display: grid;
    min-width: 0;
    gap: 0.08rem;
    justify-items: center;
    padding: 0.52rem 0.12rem;
    text-align: center;
  }

  .community-hub-metrics > div + div {
    border-left: 1px solid rgba(35, 30, 22, 0.06);
  }

  .community-hub-metrics span {
    color: #ad700f;
  }

  .community-hub-metrics span svg,
  .community-hub-topic__meta svg,
  .community-live-feature__stats svg {
    width: 0.9rem;
    height: 0.9rem;
    stroke-width: 1.75;
  }

  .community-hub-metrics strong {
    color: #18140f;
    font-size: 0.94rem;
    line-height: 1;
  }

  .community-hub-metrics small {
    max-width: 100%;
    overflow: hidden;
    color: #7d756a;
    font-size: 0.5rem;
    line-height: 1.05;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .community-live-feature {
    position: relative;
    display: grid;
    width: 100%;
    min-width: 0;
    min-height: 10rem;
    overflow: hidden;
    border: 1px solid rgba(185, 119, 14, 0.48);
    border-radius: 1.08rem;
    padding: 0.85rem 5.2rem 0.8rem 0.85rem;
    color: #191510;
    background:
      linear-gradient(115deg, rgba(255, 255, 255, 0.98) 0 58%, rgba(255, 250, 239, 0.9) 72%, rgba(242, 226, 193, 0.78)),
      radial-gradient(circle at 92% 36%, rgba(193, 129, 24, 0.14), transparent 8rem);
    box-shadow: 0 0.48rem 1.3rem rgba(89, 57, 8, 0.07);
    text-align: left;
  }

  .community-live-feature__status,
  .community-live-feature__competition {
    justify-self: start;
  }

  .community-live-feature__status {
    border-radius: 999px;
    padding: 0.26rem 0.5rem;
    color: #8b5b0d;
    background: #fff1d3;
    font-size: 0.56rem;
    font-weight: 950;
  }

  .community-live-feature__status.is-live {
    color: #fff;
    background: #d62230;
  }

  .community-live-feature__competition {
    margin-top: 0.42rem;
    color: #847a6d;
    font-size: 0.57rem;
    font-weight: 850;
    letter-spacing: 0.05em;
    text-transform: uppercase;
  }

  .community-live-feature > strong {
    margin-top: 0.22rem;
    font-size: 1.18rem;
    line-height: 1.03;
  }

  .community-live-feature p {
    max-width: 18rem;
    margin: 0.32rem 0 0;
    color: #6e665b;
    font-size: 0.68rem;
    line-height: 1.32;
  }

  .community-live-feature__stats {
    display: flex;
    flex-wrap: wrap;
    gap: 0.62rem;
    align-items: center;
    margin-top: 0.7rem;
    color: #6f675d;
    font-size: 0.58rem;
  }

  .community-live-feature__stats > span {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
  }

  .community-live-feature__crest {
    position: absolute;
    top: 3.35rem;
    right: 1rem;
    display: grid;
    width: 3.7rem;
    height: 3.7rem;
    place-items: center;
  }

  .community-live-feature__crest img {
    width: 100%;
    height: 100%;
    object-fit: contain;
  }

  .community-live-feature__arrow,
  .community-hub-topic__arrow {
    display: grid;
    place-items: center;
    border: 1px solid rgba(32, 27, 20, 0.075);
    border-radius: 50%;
    color: #2f2a24;
    background: #fff;
  }

  .community-live-feature__arrow {
    position: absolute;
    right: 0.85rem;
    bottom: 0.82rem;
    width: 2.25rem;
    height: 2.25rem;
  }

  .community-live-feature__arrow svg,
  .community-hub-topic__arrow svg {
    width: 1rem;
    height: 1rem;
    stroke-width: 1.9;
  }

  .community-hub-topic-list,
  .community-hub-live-stack {
    display: grid;
    gap: 0.42rem;
  }

  .community-hub-topic {
    display: grid;
    grid-template-columns: 2.55rem minmax(0, 1fr) 2.1rem;
    align-items: center;
    gap: 0.6rem;
    width: 100%;
    min-width: 0;
    border: 1px solid rgba(33, 28, 20, 0.075);
    border-radius: 0.95rem;
    padding: 0.62rem 0.65rem;
    color: #17130f;
    background: #fff;
    box-shadow: 0 0.34rem 0.9rem rgba(42, 31, 13, 0.035);
    text-align: left;
  }

  .community-hub-topic.is-featured {
    border-color: rgba(190, 124, 19, 0.26);
    background: linear-gradient(105deg, #fff, #fffbf3);
  }

  .community-hub-topic__icon,
  .community-hub-channel__icon {
    display: grid;
    width: 2.55rem;
    height: 2.55rem;
    place-items: center;
    flex: 0 0 auto;
    border-radius: 50%;
    background: #fbf5e8;
    font-size: 1.15rem;
  }

  .community-hub-topic__copy {
    min-width: 0;
  }

  .community-hub-topic__eyebrow {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 0.32rem;
    color: #a4690d;
    font-size: 0.56rem;
    font-style: normal;
    font-weight: 900;
    letter-spacing: 0.045em;
    text-transform: uppercase;
  }

  .community-topic-status {
    border-radius: 999px;
    padding: 0.12rem 0.35rem;
    color: #287b4d;
    background: #e8f7ee;
    font-size: 0.49rem;
    letter-spacing: 0;
    text-transform: none;
  }

  .community-topic-status.is-live {
    color: #bd2430;
    background: #ffe9eb;
  }

  .community-hub-topic__copy > strong {
    display: block;
    margin-top: 0.1rem;
    overflow: hidden;
    font-size: 0.86rem;
    line-height: 1.12;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .community-hub-topic__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.58rem;
    margin-top: 0.24rem;
    color: #777067;
    font-size: 0.56rem;
  }

  .community-hub-topic__meta > span {
    display: inline-flex;
    align-items: center;
    gap: 0.22rem;
  }

  .community-hub-topic__copy > small {
    display: block;
    margin-top: 0.14rem;
    overflow: hidden;
    color: #8b8379;
    font-size: 0.54rem;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .community-hub-topic__arrow {
    width: 2.05rem;
    height: 2.05rem;
  }

  .community-hub-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.55rem;
    padding: 0.25rem 0.15rem 0;
  }

  .community-hub-section-head span {
    color: #a4690d;
    font-size: 0.62rem;
    font-weight: 950;
    letter-spacing: 0.06em;
    text-transform: uppercase;
  }

  .community-hub-section-head strong {
    color: #6f675e;
    font-size: 0.61rem;
    font-weight: 800;
    text-align: right;
  }

  .community-hub-chip-row,
  .community-hub-mine-filters {
    display: flex;
    gap: 0.34rem;
    overflow-x: auto;
    padding-bottom: 0.05rem;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .community-hub-chip-row::-webkit-scrollbar,
  .community-hub-mine-filters::-webkit-scrollbar {
    display: none;
  }

  .community-hub-chip-row button,
  .community-hub-mine-filters button {
    flex: 0 0 auto;
    min-height: 2.35rem;
    border: 1px solid rgba(35, 30, 22, 0.09);
    border-radius: 999px;
    padding: 0 0.72rem;
    color: #71695f;
    background: #fff;
    font-size: 0.61rem;
    font-weight: 800;
    white-space: nowrap;
  }

  .community-hub-chip-row button.is-active,
  .community-hub-mine-filters button.is-active {
    border-color: #c28018;
    color: #fff;
    background: linear-gradient(135deg, #d79a30, #b8750d);
  }

  .community-hub-channel-list {
    display: grid;
    gap: 0.4rem;
  }

  .community-hub-channel {
    display: grid;
    grid-template-columns: 2.55rem minmax(0, 1fr) 1.1rem;
    align-items: center;
    gap: 0.62rem;
    width: 100%;
    min-width: 0;
    border: 1px solid rgba(34, 29, 21, 0.075);
    border-radius: 0.95rem;
    padding: 0.62rem 0.7rem;
    color: #17130f;
    background: #fff;
    box-shadow: 0 0.32rem 0.88rem rgba(42, 31, 13, 0.035);
    text-align: left;
  }

  .community-hub-channel > span:nth-child(2) {
    min-width: 0;
  }

  .community-hub-channel strong,
  .community-hub-channel small,
  .community-hub-channel em {
    display: block;
  }

  .community-hub-channel strong {
    font-size: 0.86rem;
    line-height: 1.05;
  }

  .community-hub-channel small {
    margin-top: 0.12rem;
    overflow: hidden;
    color: #777067;
    font-size: 0.59rem;
    line-height: 1.14;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .community-hub-channel em {
    margin-top: 0.24rem;
    color: #8a8278;
    font-size: 0.54rem;
    font-style: normal;
  }

  .community-hub-channel em i {
    display: inline-block;
    width: 0.38rem;
    height: 0.38rem;
    margin: 0 0.28rem 0 0.52rem;
    border-radius: 50%;
    background: #aaa49b;
    vertical-align: 0.02rem;
  }

  .community-hub-channel em i.is-high { background: #48b866; }
  .community-hub-channel em i.is-medium { background: #e49a25; }

  .community-hub-channel > b {
    color: #bb7911;
    font-size: 1.4rem;
    font-weight: 400;
  }

  .community-hub-mine-summary {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    overflow: hidden;
    border: 1px solid rgba(35, 30, 22, 0.075);
    border-radius: 0.95rem;
    background: #fff;
  }

  .community-hub-mine-summary > div {
    display: grid;
    min-width: 0;
    gap: 0.12rem;
    justify-items: center;
    padding: 0.62rem 0.18rem;
    text-align: center;
  }

  .community-hub-mine-summary > div + div {
    border-left: 1px solid rgba(35, 30, 22, 0.065);
  }

  .community-hub-mine-summary svg {
    width: 1rem;
    height: 1rem;
    color: #b67510;
    stroke-width: 1.7;
  }

  .community-hub-mine-summary strong {
    color: #17130f;
    font-size: 1rem;
    line-height: 1;
  }

  .community-hub-mine-summary small {
    overflow: hidden;
    color: #777067;
    font-size: 0.54rem;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .community-hub-channel-title {
    display: grid;
    grid-template-columns: 2.4rem 2.5rem minmax(0, 1fr) 2.4rem;
    align-items: center;
    gap: 0.5rem;
    border: 1px solid rgba(35, 30, 22, 0.075);
    border-radius: 1rem;
    padding: 0.62rem;
    background: #fff;
  }

  .community-hub-channel-title > button {
    display: grid;
    width: 2.4rem;
    height: 2.4rem;
    place-items: center;
    border: 1px solid rgba(35, 30, 22, 0.09);
    border-radius: 50%;
    color: #4d473e;
    background: #fff;
    font-size: 1.1rem;
  }

  .community-hub-channel-title > span:nth-child(3) {
    min-width: 0;
  }

  .community-hub-channel-title strong,
  .community-hub-channel-title small {
    display: block;
  }

  .community-hub-channel-title strong { font-size: 0.9rem; }

  .community-hub-channel-title small {
    margin-top: 0.1rem;
    overflow: hidden;
    color: #777067;
    font-size: 0.58rem;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .community-hub-empty {
    display: grid;
    gap: 0.2rem;
    justify-items: center;
    border: 1px dashed rgba(35, 30, 22, 0.14);
    border-radius: 1rem;
    padding: 1rem;
    color: #756d63;
    background: rgba(255, 255, 255, 0.65);
    text-align: center;
  }

  .community-hub-empty strong { color: #2b2620; font-size: 0.78rem; }
  .community-hub-empty small { font-size: 0.61rem; }

  /* Detalle normal: conserva render y acciones originales, solo mejora presentación. */
  #communityPostDetail .community-hub-post-detail {
    margin-top: 0.6rem;
  }

  #communityPostDetail .community-hub-post-detail .community-post-hero {
    min-height: 11.5rem;
    border-radius: 1.08rem;
  }

  #communityPostDetail .community-hub-post-detail .post-comments {
    overflow: hidden;
    border-radius: 1.05rem;
    background: #fff;
  }

  #communityPostDetail .community-hub-post-detail .post-comments__head {
    padding-block: 0.62rem;
  }

  #communityPostDetail .community-hub-post-detail .instagram-comment {
    padding-block: 0.56rem !important;
  }

  /* En un hilo de partido el marcador sustituye a la hero repetida. */
  #communityPostDetail .community-hub-match-detail .community-post-hero,
  #communityPostDetail .community-hub-match-detail > .community-post-detail__body {
    display: none !important;
  }

  #communityPostDetail .community-hub-match-detail {
    margin-top: 0;
    background: transparent;
    box-shadow: none;
  }

  .community-live-panel {
    display: grid;
    gap: 0.46rem;
    margin-bottom: 0.62rem;
    border: 1px solid rgba(190, 124, 19, 0.24);
    border-radius: 1.08rem;
    padding: 0.62rem;
    background: #fff;
    box-shadow: 0 0.42rem 1.12rem rgba(52, 38, 14, 0.045);
  }

  .community-live-scorebar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(4.5rem, auto) minmax(0, 1fr);
    align-items: center;
    gap: 0.4rem;
  }

  .community-live-team {
    display: grid;
    min-width: 0;
    gap: 0.24rem;
    justify-items: center;
    text-align: center;
  }

  .community-live-team b {
    display: grid;
    width: 3.2rem;
    height: 3.2rem;
    place-items: center;
    border: 1px solid rgba(201, 136, 29, 0.22);
    border-radius: 50%;
    color: #7e5310;
    background: #fff9ed;
    font-size: 0.68rem;
  }

  .community-live-team img {
    width: 2.7rem;
    height: 2.7rem;
    object-fit: contain;
  }

  .community-live-team strong {
    max-width: 100%;
    overflow: hidden;
    font-size: 0.67rem;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .community-live-score {
    display: grid;
    gap: 0.12rem;
    justify-items: center;
    text-align: center;
  }

  .community-live-score em {
    border-radius: 999px;
    padding: 0.2rem 0.38rem;
    color: #8b5b0d;
    background: #fff3dc;
    font-size: 0.5rem;
    font-style: normal;
    font-weight: 950;
  }

  .community-live-score em.is-live {
    color: #fff;
    background: #d92131;
  }

  .community-live-score strong {
    font-size: 1.35rem;
    line-height: 1;
  }

  .community-live-score small {
    color: #a66a0e;
    font-size: 0.58rem;
    font-weight: 850;
  }

  .community-live-tabs {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.22rem;
    padding-top: 0.42rem;
    border-top: 1px solid rgba(35, 30, 22, 0.065);
  }

  .community-live-tabs button {
    display: inline-flex;
    min-width: 0;
    min-height: 2.25rem;
    align-items: center;
    justify-content: center;
    gap: 0.2rem;
    border: 0;
    border-radius: 999px;
    color: #71695f;
    background: #f7f4ed;
    font-size: 0.56rem;
    font-weight: 800;
    white-space: nowrap;
  }

  .community-live-tabs button.is-active {
    color: #9b620b;
    background: #fff6e5;
  }

  .community-live-tabs svg {
    width: 0.86rem;
    height: 0.86rem;
    stroke-width: 1.8;
  }

  .community-live-events {
    display: grid;
    gap: 0.36rem;
    overflow: hidden;
    border-radius: 0.78rem;
    padding: 0.5rem 0.56rem;
    color: #736b61;
    background: #faf8f2;
    font-size: 0.57rem;
  }

  .community-live-events > strong {
    color: #a76a0d;
    font-size: 0.56rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
  }

  .community-live-events > div {
    display: flex;
    gap: 0.35rem;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .community-live-events > div::-webkit-scrollbar { display: none; }

  .community-live-events > div > span {
    display: grid;
    grid-template-columns: auto auto minmax(5rem, max-content);
    gap: 0.2rem;
    align-items: center;
    flex: 0 0 auto;
    min-height: 2.15rem;
    border: 1px solid rgba(195, 130, 23, 0.18);
    border-radius: 0.65rem;
    padding: 0.25rem 0.4rem;
    background: #fff;
  }

  .community-live-events i { font-style: normal; }
  .community-live-events strong { font-size: 0.56rem; }

  /* COMMUNITY_SHELL_V65: eliminado el footer propio de Comunidad; la navegación inferior es exclusivamente GlobalFooter. */

  /* A propósito NO hay reglas para .community-comment-dock, textarea ni input aquí. */

  @media (max-width: 390px) {
    .community-hub-header { gap: 0.32rem; }
    .community-hub-exit { min-height: 2.2rem; padding-inline: 0.5rem; font-size: 0.6rem; }
    .community-hub-level { max-width: 4.7rem; padding-inline: 0.44rem; font-size: 0.55rem; }
    .community-hub-brand small { font-size: 0.5rem; }
    .community-hub-brand strong { font-size: 0.9rem; }
    .community-hub-tabs button { font-size: 0.6rem; }
    .community-live-feature { padding-right: 4.5rem; }
    .community-live-feature__crest { right: 0.72rem; width: 3.2rem; height: 3.2rem; }
    .community-hub-topic { grid-template-columns: 2.3rem minmax(0, 1fr) 1.9rem; gap: 0.48rem; padding-inline: 0.56rem; }
    .community-hub-topic__icon,
    .community-hub-channel__icon { width: 2.3rem; height: 2.3rem; }
  }
}
