/* recent — recent-posts layout for the [hzo_recent_posts] widget. Two layouts:
   a FEATURED card (image over a text stack) and a COMPACT list (thumbnail beside
   title + date). The shortcode renders the markup (includes/recent-posts-
   shortcode.php); this sheet is layout only. Token-only, brand-agnostic. */

/* ── Featured card ────────────────────────────────────────────────────────── */
.hzo-recent--featured .hzo-recent__card--featured {
    display: flex;
    flex-direction: column;
}
.hzo-recent__card--featured .hzo-recent__media {
    display: block;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-radius: var(--radius-card, 12px);
    background: var(--bg-alt);
    margin-bottom: var(--space-md);
}
.hzo-recent__card--featured .hzo-recent__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.hzo-recent__eyebrow {
    font-size: var(--eyebrow-size, 15px);
    font-weight: var(--fw-semibold, 600);
    text-transform: uppercase;
    letter-spacing: var(--eyebrow-tracking, 0.7px);
    color: var(--accent-text);
    margin-bottom: var(--space-xs);
}
.hzo-recent__excerpt {
    color: var(--text-muted);
    line-height: 1.6;
    margin: var(--space-sm) 0 0;
}
.hzo-recent__card--featured .hzo-recent__btn {
    margin-top: var(--space-md);
    align-self: flex-start;
}

/* ── Compact list ─────────────────────────────────────────────────────────── */
.hzo-recent--list {
    display: flex;
    flex-direction: column;
}
.hzo-recent__card--compact {
    display: flex;
    flex-direction: row;
    gap: var(--space-md);
    align-items: center;
    padding: var(--space-md) 0;
    border-bottom: 1px solid var(--border);
}
.hzo-recent__card--compact:first-child { padding-top: 0; }
.hzo-recent__card--compact .hzo-recent__media {
    flex: 0 0 92px;
    width: 92px;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: var(--radius-input, 8px);
    background: var(--bg-alt);
    display: block;
}
.hzo-recent__card--compact .hzo-recent__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.hzo-recent__card--compact .hzo-recent__body {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.hzo-recent__date {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: var(--fw-semibold, 600);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.hzo-recent__title {
    margin: 0;
    font-size: 1.05rem;
    line-height: 1.35;
}
/* Title links are bare <a> (headings), so a client's broad bare-link skin
   (e.g. `:where(main) a:not([class])`) matches them at equal (0,1,1) specificity
   and would win by load order now that this rule lives in the engine. The __card
   ancestor lifts this to (0,2,1) so the component robustly owns its own
   heading-ink title color regardless of any client bare-link skin. A client
   highlight can also ride in via `background-image` (a highlight-wipe underline),
   which this reset neutralizes too — a title link is a heading, never an inline
   body link. */
.hzo-recent__card .hzo-recent__title a { color: var(--text-heading); text-decoration: none; background-image: none; }
.hzo-recent__card .hzo-recent__title a:hover { color: var(--brand-text); }
