/* GNR Chile — ajustes responsive seguros para todo el sitio (no dependen de la portada) */
html{-webkit-text-size-adjust:100%;text-size-adjust:100%}
img{max-width:100%}
.entry-content img,.comment-content img,.bbp-topic-content img,.bbp-reply-content img,.activity-inner img{height:auto}

/* Videos incrustados (YouTube/Vimeo) y otros embeds: nunca más anchos que la pantalla */
.entry-content iframe,.entry-content video,.entry-content embed,.entry-content object,
.bbp-topic-content iframe,.bbp-reply-content iframe,.activity-inner iframe{max-width:100%}
.entry-content iframe[src*="youtube"],.entry-content iframe[src*="youtu.be"],.entry-content iframe[src*="vimeo"],
.bbp-topic-content iframe[src*="youtube"],.bbp-reply-content iframe[src*="youtube"]{width:100%;height:auto;aspect-ratio:16/9}

/* Tablas, código y palabras largas no deben romper el ancho de la página */
.entry-content table,.bbp-topic-content table,.bbp-reply-content table{display:block;max-width:100%;overflow-x:auto}
pre{max-width:100%;overflow-x:auto}
.entry-content,.comment-content,.bbp-topic-content,.bbp-reply-content,.activity-inner{overflow-wrap:break-word}

/* Formularios: campos a ancho completo y 16px para que iPhone no haga zoom al tocarlos */
input,select,textarea{max-width:100%}
@media (max-width:782px){
	input[type="text"],input[type="email"],input[type="password"],input[type="search"],input[type="url"],input[type="number"],input[type="tel"],select,textarea{font-size:16px}
}

/* bbPress (foros) en pantallas pequeñas: autor arriba y mensaje a ancho completo */
@media (max-width:640px){
	#bbpress-forums div.bbp-reply-author,#bbpress-forums div.bbp-topic-author{float:none;width:auto;text-align:left;margin:0 0 8px}
	#bbpress-forums div.bbp-reply-content,#bbpress-forums div.bbp-topic-content{margin-left:0;padding:0 8px 12px}
	#bbpress-forums div.bbp-reply-author img.avatar,#bbpress-forums div.bbp-topic-author img.avatar{float:left;margin:0 10px 0 0}
	#bbpress-forums #bbp-user-wrapper #bbp-single-user-details{width:100%;float:none}
	#bbpress-forums #bbp-user-wrapper #bbp-user-body{margin-left:0}
}
