/* Latest Posts Cards: horizontal cards, image left, summary right.
   Colors and type come from the universal tokens (assets/tokens.css).
   Rules are scoped under .cpc so they outrank the Site Kit (.elementor-kit-N a / h3 / p).
   Hover stays still: soft shadow, title tint, arrow button turns Accent and its arrow nudges right. */
.cpc { --cpc-img: 42%; font-family: var(--cp-font); color: var(--cp-body); }
.cpc svg { width: 1em; height: 1em; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.cpc .cpc__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px; }
.cpc .cpc__card { display: grid; grid-template-columns: var(--cpc-img) 1fr; gap: 26px; padding: 12px; border-radius: var(--cp-radius); background: var(--cp-white); color: var(--cp-body); text-decoration: none; box-shadow: 0 0 0 1px var(--cp-line); transition: box-shadow .35s var(--cp-ease); }
.cpc .cpc__card:hover, .cpc .cpc__card:focus { color: var(--cp-body); text-decoration: none; }
.cpc .cpc__card:hover { box-shadow: 0 0 0 1px var(--cp-line), var(--cp-shadow); }
.cpc .cpc__card:focus-visible { outline: 3px solid var(--cp-accent); outline-offset: 3px; }

.cpc .cpc__pic { position: relative; min-height: 210px; overflow: hidden; border-radius: calc(var(--cp-radius) - 8px); background: var(--cp-tint); }
.cpc .cpc__pic img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; }

.cpc .cpc__body { display: flex; flex-direction: column; gap: 10px; min-width: 0; padding: 14px 14px 10px 0; }
.cpc .cpc__labels { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; }
.cpc .cpc__pin { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px 3px 8px; border-radius: 999px; background: var(--cp-light-accent); color: var(--cp-primary); font-size: 12px; font-weight: 600; letter-spacing: .02em; line-height: 1.4; text-transform: uppercase; }
.cpc .cpc__pin svg { width: 13px; height: 13px; }
.cpc .cpc__card h3 { margin: 0; font-size: clamp(1.05rem, 1.5vw, 1.2rem); font-weight: var(--cp-heading-weight); line-height: 1.35; letter-spacing: -0.01em; color: var(--cp-headline); text-wrap: balance; transition: color .25s; }
.cpc .cpc__card:hover h3 { color: var(--cp-header-accent); }
.cpc .cpc__text { margin: 0; font-size: var(--cp-small-size); line-height: 1.6; color: var(--cp-body); }

.cpc .cpc__foot-row { margin-top: auto; padding-top: 8px; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.cpc .cpc__date { font-size: var(--cp-small-size); color: var(--cp-body); }
/* Arrow button: same normal + hover style as the polls slider's arrow buttons */
.cpc .cpc__circle { width: 44px; height: 44px; flex: none; border-radius: 50%; display: grid; place-items: center; font-size: 18px; background: var(--cp-white); color: var(--cp-headline); box-shadow: 0 0 0 1px var(--cp-line); transition: transform .35s var(--cp-back), background-color .25s, color .25s; }
.cpc .cpc__card:hover .cpc__circle, .cpc .cpc__card:focus-visible .cpc__circle { background: var(--cp-primary); color: var(--cp-white); transform: scale(1.08); }

/* "View all articles" link, bottom right (style from .cp-cta) */
.cpc .cpc__foot { display: flex; justify-content: flex-end; margin-top: 40px; }

/* Tablet: one card per row (the Columns control can override this) */
@media (max-width: 1024px) { .cpc .cpc__grid { grid-template-columns: minmax(0, 1fr); } }
/* Phone: image on top, no summary */
@media (max-width: 767px) {
  .cpc .cpc__card { grid-template-columns: 1fr; align-content: start; gap: 14px; }
  .cpc .cpc__pic { min-height: 0; aspect-ratio: 16 / 10; }
  .cpc .cpc__body { padding: 4px 10px 10px; }
  .cpc .cpc__text { display: none; }
}
@media (prefers-reduced-motion: reduce) { .cpc * { transition: none !important; } }
