/* WordPress-only integration; approved preview rules stay unchanged. */
body.legacy-site .legacy-blog-page .ccoco-post-card-text-only > div { padding-top: 0; }
/* Posts index only: protected editorial grid, independent of article layouts. */
body.legacy-site .ccoco-posts-index .legacy-blog-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 1160px;
  margin: 0 auto;
  gap: 44px 32px;
}
body.legacy-site .ccoco-posts-index .legacy-post-card::before { content: none; }
body.legacy-site .ccoco-posts-index .legacy-post-card,
body.legacy-site .ccoco-posts-index .legacy-post-card h2,
body.legacy-site .ccoco-posts-index .legacy-post-card p { text-decoration: none !important; }
body.legacy-site .ccoco-posts-index .legacy-post-card img {
  width: 100%;
  height: auto;
  aspect-ratio: 1746 / 901;
  object-fit: contain;
}
body.legacy-site .ccoco-posts-index .legacy-post-card > div { padding: 18px 0 0; }
body.legacy-site .ccoco-posts-index .legacy-post-card h2 {
  font-size: 28px !important;
  line-height: 1.2;
  margin: 0 0 12px;
}
body.legacy-site .ccoco-posts-index .legacy-post-card p {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  font-size: 17px;
  line-height: 1.55;
  margin: 0 0 18px;
}
body.legacy-site .ccoco-posts-index .legacy-post-card span { padding-top: 0; }
@media (max-width: 700px) {
  body.legacy-site .ccoco-posts-index .legacy-blog-grid { grid-template-columns: minmax(0, 1fr); gap: 36px; }
}
body.admin-bar .legacy-header { top: 32px; }
@media (max-width: 782px) { body.admin-bar .legacy-header { top: 46px; } }
.legacy-article-content .wp-block-image img { max-width: 100%; height: auto; }
.legacy-article-content .wp-block-table { overflow-x: auto; }
.legacy-inner .page-numbers { display: inline-block; padding: 10px 14px; }
.ccoco-pattern-section { padding: 64px max(24px, 5%); background: #faf7f0; color: #292822; }
.ccoco-pattern-section > * { max-width: 1296px; margin-left: auto; margin-right: auto; }
.ccoco-pattern-section h2 { margin: 0 auto 24px; }
.ccoco-pattern-section p { margin-bottom: 24px; }
.ccoco-pattern-section .wp-block-columns { gap: 36px; }
.ccoco-pattern-section img { width: 100%; height: auto; border-radius: 4px; }
.ccoco-pattern-hero { min-height: 480px; padding: 64px 5%; background: #292822; color: white; }
.ccoco-pattern-hero h2 { color: white !important; }
.ccoco-pattern-cta { background: #f4eee4 url('../images/backgrounds/editorial-visit-sunlight.webp') center/cover; }
.ccoco-pattern-faq details { border-bottom: 1px solid #d7c9b4; padding: 20px 0; }
.ccoco-pattern-faq summary { cursor: pointer; font-size: 20px; }
.ccoco-pattern-section .wp-block-button__link { border-radius: 4px; background: #ac8d60; color: #fff; padding: 14px 24px; font-size: 16px; }
@media(max-width: 600px) { .ccoco-pattern-section { padding: 40px 24px; } .ccoco-pattern-hero { padding: 40px 24px; } }
