/* Scoped to the two dynamic cards only; does not change Gutenberg columns. */
.rcr-card {
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    width: 100%;
    height: auto;
    min-width: 0;
    overflow: visible;
    border-radius: 12px;
    background: #fff;
    color: #292D2B;
}
.rcr-card *, .rcr-card *::before, .rcr-card *::after { box-sizing: border-box; }
/* Keep the same 16px inset as the existing VIDEO/Instagram card. */
.rcr-card__media {
    width: calc(100% - 32px);
    margin: 0 16px;
    aspect-ratio: 16 / 9;
    flex: none;
    overflow: hidden;
}
.rcr-card__image-link { display: block; width: 100%; height: 100%; }
.rcr-card__image, .rcr-card__image-placeholder {
    display: block;
    width: 100%;
    height: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    margin: 0;
}
.rcr-card__image-placeholder { background: #F1E4D4; }
.rcr-card__body { padding: 14px 16px 18px; min-width: 0; }
.rcr-card__label {
    margin: 0;
    padding: 14px 16px 12px;
    color: #294C48;
    font-family: "Inter", sans-serif;
    font-size: 13px;
    line-height: 1.35;
    font-weight: 500;
    letter-spacing: 0;
}
.rcr-card .rcr-card__title {
    margin: 0 0 8px;
    padding: 0;
    color: #292D2B;
    font-family: "Lora", Georgia, serif;
    font-weight: 600;
    font-size: clamp(22px, 2.35vw, 24px);
    line-height: 1.2;
    overflow-wrap: anywhere;
}
.rcr-card__title a,
.rcr-card__title a:visited { color: inherit; text-decoration: none; }
.rcr-card__title a:hover, .rcr-card__title a:focus-visible { text-decoration: underline; }
.rcr-card .rcr-card__excerpt {
    margin: 0;
    padding: 0;
    color: #292D2B;
    font-family: "Inter", sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.6;
}
.rcr-card--empty .rcr-card__body { min-height: 220px; }
.rcr-card [hidden] { display: none !important; }

/* Version 1.1.3: Match the three "Latest from me" card bottoms.
   Scope: ONLY a Gutenberg Columns block containing an RCR card.
   min-height, not fixed height: longer text and Instagram buttons remain visible. */
@media (min-width: 782px) {
    .wp-block-columns:has(.rcr-card) {
        align-items: stretch;
    }
    .wp-block-columns:has(.rcr-card) > .wp-block-column {
        display: flex;
        flex-direction: column;
        min-width: 0;
    }
    .wp-block-columns:has(.rcr-card) > .wp-block-column > .wp-block-group {
        flex: 1 1 auto;
        min-height: 440px;
    }
    .wp-block-columns:has(.rcr-card) > .wp-block-column:has(.rcr-card) > .wp-block-group {
        display: flex;
        flex-direction: column;
    }
    .wp-block-columns:has(.rcr-card) > .wp-block-column .wp-block-shortcode {
        display: flex;
        flex: 1 1 auto;
        flex-direction: column;
        min-height: 0;
    }
    .wp-block-columns:has(.rcr-card) .rcr-card {
        flex: 1 1 auto;
        min-height: 440px;
    }
}


/* Insights page archives. Scoped: do not change the homepage rotator cards. */
.rcr-archive-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    width: 100%;
    align-items: stretch;
}
.rcr-archive-grid *, .rcr-archive-grid *::before, .rcr-archive-grid *::after { box-sizing: border-box; }
.rcr-archive-item {
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
    background: #FFFFFF;
    border: 1px solid #E9E3DA;
    border-radius: 12px;
    color: #292D2B;
}
.rcr-archive-media {
    overflow: hidden;
    flex: none;
    background: #F1E4D4;
    aspect-ratio: 16 / 9;
}
.rcr-archive-media > a, .rcr-archive-media img, .rcr-archive-placeholder {
    display: block;
    width: 100%;
    height: 100%;
}
.rcr-archive-media img { object-fit: cover; margin: 0; }
.rcr-archive-content {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 18px 19px 20px;
}
.rcr-archive-grid .rcr-archive-label {
    margin: 0 0 12px;
    font-family: "Inter", sans-serif;
    font-size: 13px;
    font-weight: 500;
    color: #294C48;
    line-height: 1.3;
}
.rcr-archive-grid .rcr-archive-title {
    margin: 0 0 11px;
    font-family: "Lora", Georgia, serif;
    font-size: clamp(20px, 2vw, 24px);
    font-weight: 600;
    line-height: 1.25;
    overflow-wrap: anywhere;
}
.rcr-archive-title a,
.rcr-archive-title a:visited { color: #292D2B; text-decoration: none; }
.rcr-archive-title a:hover, .rcr-archive-title a:focus-visible { text-decoration: underline; }
.rcr-archive-grid .rcr-archive-excerpt {
    margin: 0 0 18px;
    font-family: "Inter", sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.6;
}
.rcr-archive-grid .rcr-archive-footer { margin: auto 0 0; padding-top: 5px; }
.rcr-archive-footer a, .rcr-archive-footer a:visited {
    color: #294C48;
    font-family: "Inter", sans-serif;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
}
.rcr-archive-footer a:hover, .rcr-archive-footer a:focus-visible { text-decoration: underline; }
.rcr-archive-empty { padding: 18px 0; }
@media (max-width: 950px) {
    .rcr-archive-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
}
@media (max-width: 600px) {
    .rcr-archive-grid { grid-template-columns: minmax(0, 1fr); gap: 18px; }
}
