/* D&C — Compatibilidad histórica 0.1.0. No afecta a los datos guardados. */

/* Listado compatible con el antiguo [ss_postlist]. */
.dyc-compat-postlist {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(18px, 2.5vw, 36px);
  margin: 24px 0 30px;
}
.dyc-compat-postcard { min-width: 0; }
.dyc-compat-postcard .dyc-compat-card-link { display: block; color: #302b25; text-decoration: none; }
.dyc-compat-postcard .dyc-compat-thumb { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; margin-bottom: 12px; }
.dyc-compat-post-title { display: block; font: 400 clamp(20px, 2vw, 27px)/1.2 Georgia, serif; }
.dyc-compat-postcard .dyc-compat-card-link:hover .dyc-compat-post-title { color: #a6533a; }
.dyc-compat-post-date { display: block; margin-top: 8px; color: #736a61; font: 12px/1.4 Arial, sans-serif; }
.dyc-compat-more { margin: 26px 0; text-align: left; }
.dyc-compat-more a { color: #a6533a; }

/* Lectura: eliminar la justificación problemática de entradas antiguas. */
body.single-post .dyc-entry-body p,
body.single-post .dyc-entry-body .wpb_text_column p,
body.single-post .entry-content .wpb_text_column p,
body.single-post .entry-content > p {
  text-align: left !important;
  text-align-last: left !important;
}

/* Mantener las incrustaciones Instagram dentro del flujo del artículo. */
body.single-post .dyc-entry-body blockquote.instagram-media,
body.single-post .dyc-entry-body .instagram-media,
body.single-post .dyc-entry-body .wp-block-embed-instagram,
body.single-post .entry-content blockquote.instagram-media,
body.single-post .entry-content .wp-block-embed-instagram {
  float: none !important;
  clear: both !important;
  position: relative !important;
  left: auto !important;
  right: auto !important;
  display: block !important;
  width: 100% !important;
  max-width: 540px !important;
  min-width: 0 !important;
  margin: 28px auto !important;
  box-sizing: border-box !important;
}
body.single-post .dyc-entry-body iframe.instagram-media,
body.single-post .entry-content iframe.instagram-media {
  max-width: 100% !important;
  float: none !important;
  clear: both !important;
}
body.single-post .dyc-entry-body .vc_row::after,
body.single-post .entry-content .vc_row::after { content: ""; display: table; clear: both; }

/* Citas históricas: complemento nativo o Shortcodes Ultimate. */
body.single-post .dyc-entry-body .dyc-compat-quote,
body.single-post .dyc-entry-body .su-quote,
body.single-post .entry-content .dyc-compat-quote,
body.single-post .entry-content .su-quote {
  display: block;
  clear: both;
  margin: 28px 0 !important;
  padding: 18px 24px !important;
  border: 0 !important;
  border-left: 3px solid #a6533a !important;
  background: #f0e9df !important;
  color: #403932 !important;
  font: 400 18px/1.75 Georgia, serif;
  text-align: left !important;
}
body.single-post .dyc-entry-body .dyc-compat-quote *,
body.single-post .dyc-entry-body .su-quote *,
body.single-post .entry-content .dyc-compat-quote *,
body.single-post .entry-content .su-quote * {
  color: inherit !important;
  text-align: left !important;
  text-align-last: left !important;
}
body.single-post .dyc-entry-body .dyc-compat-quote a,
body.single-post .dyc-entry-body .su-quote a,
body.single-post .entry-content .dyc-compat-quote a,
body.single-post .entry-content .su-quote a { color: #a6533a !important; }
body.single-post .dyc-compat-quote cite { display: block; margin-top: 10px; font: 12px Arial, sans-serif; color: #806d60; }

@media (max-width: 900px) { .dyc-compat-postlist { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) {
  .dyc-compat-postlist { grid-template-columns: 1fr; }
  body.single-post .dyc-entry-body .dyc-compat-quote,
  body.single-post .dyc-entry-body .su-quote { padding: 16px !important; }
}
