/* Chistes: lo propio. Tarjetas, chips, listas y me gusta están en nc-comun/comun.css. */

.nc-ch-texto { margin: .6rem 0 .75rem; font-size: 1.08rem; line-height: 1.6; }
.nc-ch-principal .nc-ch-texto { font-size: clamp(1.15rem, 4.2vw, 1.4rem); line-height: 1.5; }
.nc-ch-autor { margin: -.25rem 0 .75rem; font-size: .85rem; opacity: .7; font-style: italic; }
.nc-ch-autor[hidden] { display: none; }
.nc-ch-principal [data-ch-otro] { margin-left: auto; }
.nc-ch-enlace { margin-left: auto; opacity: .45; text-decoration: none; color: inherit; padding: .4rem .6rem; }
.nc-ch-enlace:hover { opacity: 1; color: var(--nc-acento); }
.nc-ch-h1 { font-size: 1.1rem; font-weight: 600; opacity: .8; margin: .25rem 0 .75rem; }
.nc-ch-ultimos { margin: 2rem 0; }
.nc-ch-ultimos h2 { font-size: 1.2rem; margin: 0 0 .75rem; }
.nc-ch-lista a { font-weight: 500; }

.nc-ch-paginas { display: flex; flex-wrap: wrap; gap: .35rem; margin: 1.25rem 0; }
.nc-ch-paginas a, .nc-ch-paginas span {
  display: inline-grid; place-items: center; min-width: 40px; min-height: 40px; padding: 0 .6rem;
  border: 1px solid var(--nc-borde); border-radius: 999px; color: inherit; text-decoration: none;
}
.nc-ch-paginas span[aria-current] { background: var(--nc-acento); border-color: var(--nc-acento); color: var(--nc-acento-texto); }

/* Formulario «Contá tu chiste» */
.nc-ch-form-caja {
  margin: 1.25rem 0 1.5rem; padding: 1.2rem 1.15rem; border-radius: var(--nc-radio);
  background: var(--nc-suave); scroll-margin-top: 1rem;
}
.nc-ch-form-caja h2 { margin: 0 0 .4rem; font-size: 1.25rem; }
.nc-ch-form { display: grid; gap: .5rem; margin-top: .75rem; }
.nc-ch-form label { font-weight: 600; font-size: .95rem; }
.nc-ch-form textarea, .nc-ch-form input, .nc-ch-form select {
  width: 100%; padding: .65rem .75rem; border: 1px solid var(--nc-borde); border-radius: 10px;
  background: var(--nc-fondo); color: inherit; font: inherit; font-size: 1rem;
}
.nc-ch-form textarea { resize: vertical; min-height: 7rem; }
.nc-ch-form textarea:focus, .nc-ch-form input:focus, .nc-ch-form select:focus { outline: 3px solid color-mix(in srgb, var(--nc-acento) 40%, transparent); border-color: var(--nc-acento); }
.nc-ch-cuenta { margin: -.2rem 0 0; text-align: right; font-size: .8rem; opacity: .6; font-variant-numeric: tabular-nums; }
.nc-ch-fila { display: grid; gap: .75rem; }
.nc-ch-fila > div { display: grid; gap: .35rem; }
.nc-ch-opcional { font-weight: 400; opacity: .7; }
.nc-ch-form button[type=submit] { justify-self: start; margin-top: .25rem; }
.nc-ch-form button[disabled] { opacity: .6; cursor: progress; }
.nc-ch-estado { margin: 0; min-height: 1.4em; font-weight: 600; }
.nc-ch-estado.nc-ch-ok { color: #2b8a3e; }
.nc-ch-estado.nc-ch-error { color: #c92a2a; }
/* Campo trampa para robots: fuera de la vista (no display:none, que algunos robots detectan). */
.nc-ch-trampa { position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; }

@media (min-width: 640px) {
  .nc-ch-fila { grid-template-columns: 1fr 1fr; }
}

/* Formulario compacto (arriba de la página): solo el título y el campo del chiste hasta que se toca. */
.nc-form-compacto .nc-nota, .nc-form-compacto .nc-ch-cuenta, .nc-form-compacto .nc-ch-fila,
.nc-form-compacto .nc-ch-form button[type=submit], .nc-form-compacto .nc-ch-estado { display: none; }
.nc-form-compacto .nc-ch-form textarea { min-height: 3.2rem; height: 3.2rem; resize: none; }
