/* WordPress bridge: the few rules the block markup needs on top of the prototype's site.css.
   Hand-written; lives in bridge/ because tools/sync-design.js replaces assets/ on every run.
   Keep it small: every rule here is a place where WordPress output differs from the prototype's markup. */

/* block wrappers carry no design of their own */
.wp-block-group, .wp-block-post-content, .entry-content { box-sizing: border-box; }
.wp-block-post-content > :first-child { margin-top: 0; }

/* Query Loop cards = the prototype's .vc-card.vc-card--blog (spacing review 14 Nov 2026, item 13: same rhythm as site.css item 5: gap 8, no margins on title / excerpt).
   The core post-template li cannot take the vc-card class from a block template (it is built from get_post_class), so this rule stays a copy of .vc-card. */
.vc-postgrid > li.wp-block-post { display: flex; flex-direction: column; gap: var(--s-2); background: #fff; border: 1px solid var(--c-line); border-radius: var(--r-2); padding: var(--s-5); box-shadow: var(--sh-1); }
.vc-postgrid > li.wp-block-post > * { width: auto; }
.vc-postgrid .wp-block-post-title { font-size: var(--fs-lg); margin: 0; }
.vc-postgrid .wp-block-post-title a { text-decoration: none; color: var(--c-ink); }
.vc-postgrid .wp-block-post-title a:hover { color: var(--c-red); text-decoration: underline; }
.vc-postgrid .wp-block-post-excerpt__excerpt { margin: 0; }
.vc-postgrid .wp-block-post-excerpt__more-text { display: none; }
/* same two breakpoints as the prototype (768 / 1100) and the same gaps (16, 24 from 768) */
@media (min-width: 768px) { .vc-postgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-5); } }
@media (min-width: 1100px) { .vc-postgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* pagination under the news grid (core Query Pagination output) = the prototype's .vc-pagination: left aligned, 2 px control border, --r-2, margins 32 / 12 */
.wp-block-query-pagination.vc-pagination { display: flex; flex-wrap: wrap; gap: var(--s-2); justify-content: flex-start; align-items: center; margin: var(--s-6) 0 var(--s-3); }
.vc-postquery .wp-block-query-pagination.vc-pagination { justify-content: flex-start; }   /* beats the core is-content-justification-center rule the template's layout adds */
.wp-block-query-pagination.vc-pagination .page-numbers,
.wp-block-query-pagination.vc-pagination > a { display: inline-flex; min-width: 44px; min-height: 44px; align-items: center; justify-content: center; padding: 0 var(--s-3); border: 2px solid var(--c-border); border-radius: var(--r-2); text-decoration: none; font-weight: 700; color: var(--c-ink); background: #fff; }
.wp-block-query-pagination.vc-pagination .page-numbers.current { background: var(--c-red); color: #fff; border-color: var(--c-red); }
.wp-block-query-pagination.vc-pagination .page-numbers.dots { border: 0; min-width: 0; }

/* single post: featured image = the prototype's .vc-post__img (radius --r-3, clipped by the figure, 24 below) */
.vc-post__img { max-width: 860px; margin: 0 0 var(--s-5); border-radius: var(--r-3); overflow: hidden; }
.vc-post__img img { display: block; width: 100%; height: auto; border-radius: var(--r-3); margin: 0; }

/* query title on archives behaves like the page H1 (16 below, like every h1 since the 14 Nov 2026 spacing review) */
.vc-pagehead .wp-block-query-title { margin: 0 0 var(--s-4); }
