/*
 * Un hilo de X con estilo de tuit (7 nov 2026, pedido de Daniel): parciales/hilo-x.php.
 * Varias publicaciones de la misma cuenta, unidas por la línea vertical de X entre los avatares; las respuestas
 * de otras cuentas van aparte, plegadas. Se apoya en la tarjeta común (.tf, .tf-tuit) de texto-forma.css.
 */
.tfh { max-width: 46rem; }
.tfh-aviso { display: block; margin: 0 0 .6rem; padding: .55rem .8rem; border-radius: 12px; background: #f0f7fd; border: 1px solid #cfe6f8; color: #0f3550; font-size: .92rem; line-height: 1.45; }
.tfh-aviso i { color: #1d9bf0; margin-right: .35rem; }
.tfh .tm-leyenda { margin: 0 0 .6rem; }

.tfh-hilo { margin-top: 0; }
.tfh-responde { margin: 0; padding: .7rem 1.1rem 0; font-size: .86rem; color: #536471; }
.tfh-responde a { color: #1d9bf0; text-decoration: none; }
.tfh-responde a:hover, .tfh-responde a:focus-visible { text-decoration: underline; }

.tfh-lista { list-style: none; margin: 0; padding: .55rem 0 0; counter-reset: none; }
.tfh-pub { display: grid; grid-template-columns: 3.2rem minmax(0, 1fr); gap: 0 .55rem; padding: .35rem 1.1rem 0 .9rem; scroll-margin-top: 5rem; }
.tfh-pub:target { background: #f7f9f9; }
.tfh-lado { display: flex; flex-direction: column; align-items: center; }
.tfh-lado .tf-avatar { width: 2.6rem; height: 2.6rem; }
/* La línea que une una publicación con la siguiente, como en X. */
.tfh-linea { flex: 1 1 auto; width: 2px; min-height: 1rem; margin: .25rem 0 0; border-radius: 2px; background: #cfd9de; }
.tfh-ultima .tfh-linea { visibility: hidden; }
.tfh-cont { min-width: 0; padding-bottom: .55rem; }
.tfh-quien { display: flex; flex-wrap: wrap; align-items: baseline; gap: .1rem .35rem; padding-top: .35rem; }
.tfh-num { margin-left: auto; padding: .05rem .45rem; border-radius: 999px; background: #eff3f4; color: #536471; font-size: .76rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.tfh-etq { padding: .05rem .5rem; border-radius: 999px; background: #e8f5fd; color: #0b5d94; font-size: .74rem; font-weight: 700; }
.tfh-pegada .tfh-lado .tf-avatar { box-shadow: 0 0 0 3px #bfe3fb; }
.tf-cuerpo.tfh-cuerpo { padding: .15rem 0 .1rem; }
.tfh-ver { margin: .1rem 0 0; font-size: .82rem; }
.tfh-ver a { color: #1d9bf0; font-weight: 600; text-decoration: none; }
.tfh-ver a:hover, .tfh-ver a:focus-visible { text-decoration: underline; }
.tfh-falta { margin: .3rem 1.1rem .8rem; }

/* ---------- Respuestas de otras cuentas: aparte ---------- */
.tfh-resp { margin-top: .9rem; border: 1px solid var(--mr-linea, #e6e1ee); border-radius: 14px; background: #fbfafd; }
.tfh-resp > summary { display: flex; flex-wrap: wrap; align-items: baseline; gap: .2rem .55rem; padding: .7rem 1rem; cursor: pointer; font-weight: 700; color: var(--mr-tinta, #1d1830); list-style-position: inside; }
.tfh-resp > summary small { font-weight: 500; color: var(--mr-piedra, #6b6478); }
.tfh-resp > summary:focus-visible { outline: 3px solid #1d9bf0; outline-offset: 2px; border-radius: 12px; }
.tfh-resp[open] > summary { border-bottom: 1px solid var(--mr-linea, #e6e1ee); }
.tfh-resp-nota { margin: .7rem 1rem .2rem; font-size: .86rem; color: var(--mr-piedra, #6b6478); }
.tfh-resp-lista { list-style: none; margin: 0; padding: .3rem 1rem .9rem; }
.tfh-r { padding: .6rem .9rem .5rem; margin: .5rem 0 0; }
.tfh-r .tf-quien { font-size: .92rem; }
.tfh-r-a { margin: .1rem 0 0; font-size: .76rem; color: #536471; }
.tfh-r-texto { margin: .3rem 0 0; font-size: .98rem; line-height: 1.5; color: #0f1419; overflow-wrap: anywhere; white-space: pre-line; }

@media (max-width: 575.98px) {
    .tfh-pub { grid-template-columns: 2.5rem minmax(0, 1fr); padding: .3rem .85rem 0 .65rem; gap: 0 .45rem; }
    .tfh-lado .tf-avatar { width: 2.1rem; height: 2.1rem; font-size: .95rem; }
    .tfh-responde { padding: .6rem .85rem 0; }
    .tfh-falta { margin: .3rem .85rem .7rem; }
    .tfh-resp-lista { padding: .2rem .7rem .8rem; }
}

@media print {
    .tfh-resp:not([open]) { display: none; }
}
