/* Minimal fallback styles when WPPress Core runs with a non-WPPress theme. */
.wppress-core-card img { max-width:100%; height:auto; }
.wppress-section { margin-block:2rem; }
.wppress-section .wp-section-head { display:flex; align-items:center; justify-content:space-between; margin-bottom:1rem; }
.wppress-section .wp-news-grid,.wp-related-news .wp-news-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:1.25rem; }
.wppress-section .wp-hero-track { display:flex; transition:transform .4s; }
.wppress-section .wp-hero-slide { flex:0 0 100%; }
.wppress-section .wp-hero-slider { overflow:hidden; }
.wppress-section .wp-hero-layout,.wppress-section .wp-grid-split,.wppress-section .wp-feed-layout { display:grid; grid-template-columns:minmax(0,2fr) minmax(0,1fr); gap:1.5rem; }
.wppress-section .wp-popular-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:1.25rem; }
.wppress-widget-list article { margin-bottom:1rem; }
@media(max-width:650px) {
 .wppress-section .wp-news-grid,.wppress-section .wp-hero-layout,.wppress-section .wp-grid-split,.wppress-section .wp-feed-layout,.wppress-section .wp-popular-grid,.wp-related-news .wp-news-grid { grid-template-columns:1fr; }
}

/* v0.1.8: news prefix stored as article content, independent of frontend submit assets. */
.wpp-qs-news-prefix,.wpp-qs-news-prefix a{font-weight:800;color:#c7252e;text-decoration:none}
.wpp-qs-news-prefix a:hover{text-decoration:underline}

/* v0.1.15: presets stay scoped; manual sections retain their legacy layouts. */
.wppress-section[data-block-style] [hidden]{display:none!important}
.wppress-section[data-block-style] .wpp-block-solo{grid-template-columns:minmax(0,1fr)!important}
@media(min-width:701px){
.wppress-section[data-block-style="news-grid"] .wp-news-grid,
.wppress-section[data-block-style="popular-ranking"] .wp-popular-grid,
.wppress-section[data-block-style^="recent-feed-"] .wp-feed-list,
.wppress-section[data-block-style="editorial-split"] .wp-grid-split__side {
  grid-template-columns:repeat(var(--wpp-desktop-cols,2),minmax(0,1fr))!important;
}
}
@media(max-width:700px){
/* Preserve horizontal swipe while permitting configured rows and cards per view. */
.wppress-section[data-block-style="news-grid"] .wp-news-grid,
.wppress-section[data-block-style="popular-ranking"] .wp-popular-grid,
.wppress-section[data-block-style="editorial-split"] .wp-grid-split__side {
  grid-template-columns:none!important;
  grid-template-rows:repeat(var(--wpp-mobile-rows,1),minmax(0,auto))!important;
  grid-auto-flow:column!important;
  grid-auto-columns:calc((100% - (var(--wpp-mobile-cols,1) - 1)*12px)/var(--wpp-mobile-cols,1))!important;
}
.wppress-section[data-block-style^="recent-feed-"] .wp-feed-list {
  display:grid!important;
  grid-template-columns:repeat(var(--wpp-mobile-cols,1),minmax(0,1fr))!important;
  gap:0 12px;
}
}
