/*
 * «Lo que analizó Turing» con la forma de lo que es (7 nov 2026, pedido de Daniel): un tuit (X, Threads),
 * una entrada de Facebook (Facebook y las demás redes) o una entrada de blog (la nota de un medio).
 * Y el estado «sin calificar» cuando falta el texto completo (Turing no califica con una parte).
 * La tarjeta es parciales/texto-forma.php y la usan /medios/nota, el resultado de Turing, los dichos de
 * Diputación, iniciativas y casos (obs-posturas, obs-dicho-resultado) y las otras voces de cada iniciativa.
 */

/* ---------- Tarjeta común ---------- */
.tf { max-width: 46rem; margin: .25rem 0 0; background: #fff; border: 1px solid var(--mr-linea, #e6e1ee); border-radius: 16px; overflow: hidden; box-shadow: 0 1px 2px rgba(20, 14, 40, .04), 0 6px 18px rgba(20, 14, 40, .05); }
.tf-cab { display: flex; align-items: center; gap: .7rem; padding: .9rem 1.1rem .4rem; }
.tf-cuerpo { padding: .2rem 1.1rem .6rem; }
.tf-cuerpo .tm-texto { background: transparent !important; padding: 0 !important; border: 0 !important; max-width: none !important; box-shadow: none !important; }
.tf-cuerpo .tm-leyenda { margin-bottom: .6rem; }
.tf-pie { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .4rem 1rem; padding: .65rem 1.1rem; border-top: 1px solid var(--mr-linea, #e6e1ee); font-size: .86rem; color: var(--mr-piedra, #6b6478); }
.tf-pie:empty { display: none; }
.tf-pie a { font-weight: 600; text-decoration: none; }
.tf-pie a:hover, .tf-pie a:focus-visible { text-decoration: underline; }
.tf-avatar { flex: 0 0 auto; display: inline-grid; place-items: center; width: 2.6rem; height: 2.6rem; border-radius: 50%; font-weight: 700; font-size: 1.1rem; color: #fff; background: linear-gradient(135deg, #5b3fa8, #c2398f); }
.tf-quien { flex: 1 1 auto; min-width: 0; margin: 0; line-height: 1.25; }
.tf-quien strong { color: var(--mr-tinta, #1d1830); overflow-wrap: anywhere; }
.tf-cuenta, .tf-cuando { color: var(--mr-piedra, #6b6478); font-size: .9em; }
.tf-cuando { display: block; font-size: .8rem; margin-top: .1rem; }
.tf-red { flex: 0 0 auto; font-size: 1.35rem; }
.tf-falta { margin: .75rem 0 0; padding: .5rem .75rem; border-radius: 10px; border: 1px dashed #d9b44a; background: #fffaf0; color: #5c4100; font-size: .9rem; }
.tf-falta i { color: #9a6a00; margin-right: .25rem; }
.tf-incompleto .tf-cuerpo .tm-texto { position: relative; }

/* ---------- Tuit (X, Threads) ---------- */
.tf-tuit { border-radius: 18px; font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; }
.tf-tuit .tf-avatar { background: #0f1419; }
.tf-tuit .tf-red { color: #0f1419; }
.tf-tuit .tf-cuerpo .tm-texto, .tf-facebook .tf-cuerpo .tm-texto { font-family: inherit !important; }
.tf-tuit .tf-cuerpo .tm-texto { font-size: 1.12rem; line-height: 1.55; color: #0f1419; }
.tf-tuit .tf-cuerpo .tm-p { margin-bottom: .6rem; }
.tf-tuit .tf-pie { border-top-color: #eff3f4; color: #536471; }
.tf-tuit .tf-pie a { color: #1d9bf0; }

/* ---------- Entrada de Facebook (y las demás redes) ---------- */
.tf-facebook { border-radius: 10px; background: #fff; border-color: #dadde1; font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; }
.tf-facebook .tf-avatar { background: #1877f2; }
.tf-facebook .tf-red { color: #1877f2; }
.tf-facebook .tf-quien strong { color: #050505; }
.tf-facebook .tf-cuando { color: #65676b; }
.tf-facebook .tf-cuerpo .tm-texto { font-size: 1.02rem; line-height: 1.5; color: #050505; }
.tf-facebook .tf-cuerpo .tm-p { margin-bottom: .55rem; }
.tf-facebook .tf-pie { background: #f7f8fa; border-top-color: #e4e6eb; color: #65676b; }
.tf-facebook .tf-pie a { color: #1877f2; }

/* ---------- Entrada de blog (nota de un medio) ---------- */
.tf-blog { border-radius: 6px; border-top: 4px solid var(--mr-tinta, #1d1830); }
.tf-blog .tf-cab { display: block; padding: 1.1rem 1.4rem .3rem; }
.tf-medio { margin: 0 0 .35rem; font-size: .76rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--mr-piedra, #6b6478); }
.tf-medio i { margin-right: .25rem; }
.tf-dominio { font-weight: 500; letter-spacing: 0; text-transform: none; margin-left: .35rem; opacity: .8; }
.tf-titular { margin: 0 0 .45rem; font-family: var(--mr-serif, Georgia, "Times New Roman", serif); font-size: clamp(1.3rem, 3vw, 1.65rem); line-height: 1.22; color: var(--mr-tinta, #1d1830); }
.tf-firma { margin: 0; padding-bottom: .7rem; border-bottom: 1px solid var(--mr-linea, #e6e1ee); font-size: .88rem; color: var(--mr-piedra, #6b6478); }
.tf-blog .tf-cuerpo { padding: .8rem 1.4rem .8rem; }
.tf-blog .tf-cuerpo .tm-texto { font-family: var(--mr-serif, Georgia, "Times New Roman", serif); font-size: clamp(1.04rem, 2.1vw, 1.14rem); line-height: 1.85; color: #25212f; }
.tf-blog .tf-cuerpo .tm-p.tm-titulo { font-size: clamp(1.25rem, 3vw, 1.55rem); line-height: 1.25; font-weight: 700; color: var(--mr-tinta, #1d1830); margin-bottom: .8rem; } /* el titular, con sus marcas */
.tf-tuit .tf-cuerpo .tm-p.tm-titulo, .tf-facebook .tf-cuerpo .tm-p.tm-titulo { font-weight: 600; }
.tf-blog .tf-pie { padding: .7rem 1.4rem; }

/* ---------- Sin calificar: falta el texto completo ---------- */
.nt-cal.tc-sin-cal { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .25rem; color: #6b4a00; background: #fff6d6; border: 2px dashed #e0b84a; }
.nt-cal.tc-sin-cal::before, .nt-cal.tc-sin-cal::after { display: none !important; }
.nt-cal.tc-sin-cal i { font-size: 1.6rem; color: #9a6a00; }
.nt-cal.tc-sin-cal span { font-size: .7rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: #6b4a00; text-align: center; line-height: 1.1; }
.tc-pedir { scroll-margin-top: 5rem; }
.az-sincal { display: flex; gap: .9rem; align-items: flex-start; padding: 1rem 1.1rem; border-radius: 14px; background: #fffaf0; border: 1px solid #f0d98c; color: #3d2c00; }
.az-sincal-ic { flex: 0 0 auto; display: grid; place-items: center; width: 3.6rem; height: 3.6rem; border-radius: 50%; border: 2px dashed #e0b84a; background: #fff6d6; color: #9a6a00; font-size: 1.35rem; }
.az-sincal p { margin: 0 0 .45rem; }
.az-sincal p:last-child { margin-bottom: 0; }
.az-sincal .az-sincal-t { font-weight: 700; font-size: 1.05rem; }
.az-resultado.compacto .az-sincal { padding: .6rem .75rem; }
.az-resultado.compacto .az-sincal-ic { width: 2.4rem; height: 2.4rem; font-size: 1rem; }

/* ---------- Un dicho o una cita (texto suelto, sin marcas) ---------- */
.tf-cita { margin: 0; font-size: 1.1rem; line-height: 1.55; color: var(--mr-tinta, #1d1830); overflow-wrap: anywhere; white-space: pre-line; }
.tf-cita.aprox { color: #3b3446; }
.tf-tuit .tf-cita { color: #0f1419; }
.tf-facebook .tf-cita { color: #050505; font-size: 1.02rem; }
.tf-blog .tf-cita { font-family: var(--mr-serif, Georgia, "Times New Roman", serif); font-size: 1.12rem; line-height: 1.6; color: #25212f; }

/* ---------- Foto de la persona (cuando lo publicó desde su cuenta) ---------- */
.tf-avatar.tf-avatar-foto { background: none !important; overflow: hidden; }
.tf-avatar-foto .obs-avatar { width: 100% !important; height: 100% !important; border-radius: 50%; margin: 0; }

/* ---------- Compacta: listas de dichos y voces ---------- */
.tf-chico { max-width: 40rem; margin: .5rem 0 .55rem; border-radius: 14px; box-shadow: 0 1px 2px rgba(20, 14, 40, .05); }
.tf-chico .tf-cab { padding: .65rem .9rem .25rem; gap: .55rem; }
.tf-chico .tf-avatar { width: 2.1rem; height: 2.1rem; font-size: .92rem; }
.tf-chico .tf-red { font-size: 1.1rem; }
.tf-chico .tf-cuerpo { padding: .15rem .9rem .5rem; }
.tf-chico .tf-pie { padding: .45rem .9rem; font-size: .8rem; }
.tf-chico.tf-tuit { border-radius: 16px; }
.tf-chico.tf-facebook { border-radius: 9px; }
.tf-chico.tf-blog { border-radius: 6px; border-top-width: 3px; }
.tf-chico.tf-blog .tf-cab { padding: .7rem 1rem .1rem; }
.tf-chico.tf-blog .tf-cuerpo { padding: .35rem 1rem .55rem; }
.tf-chico.tf-blog .tf-pie { padding: .45rem 1rem; }
.tf-chico .tf-medio { margin-bottom: .2rem; font-size: .7rem; }
.tf-chico .tf-titular { margin: 0 0 .1rem; font-size: 1rem; line-height: 1.3; font-weight: 700; }
.tf-chico .tf-cita { font-size: 1.05rem; }
.tf-chico.tf-blog .tf-cita { font-size: 1.04rem; }

@media (max-width: 575.98px) {
    .tf-cab { padding: .8rem .85rem .35rem; }
    .tf-cuerpo { padding: .2rem .85rem .55rem; }
    .tf-pie { padding: .6rem .85rem; }
    .tf-blog .tf-cab, .tf-blog .tf-cuerpo, .tf-blog .tf-pie { padding-left: 1rem; padding-right: 1rem; }
    .tf-tuit .tf-cuerpo .tm-texto { font-size: 1.04rem; }
    .az-sincal { flex-direction: column; }
    .tf-chico .tf-cab, .tf-chico .tf-cuerpo, .tf-chico .tf-pie { padding-left: .75rem; padding-right: .75rem; }
    .tf-cita, .tf-chico .tf-cita { font-size: 1rem; }
}

@media print {
    .tf { box-shadow: none; }
}
