/* =============================================================================
   single-related.css
   Extracted from inline style="" attributes previously in single.php's
   related-stories grid. Values are byte-identical to the originals so rendering
   is unchanged — the only difference is that style-src no longer needs
   'unsafe-inline' for these nodes.

   Append to style.css (or enqueue separately with filemtime() versioning).
   ============================================================================= */

/* was: <div class="image-container" style="position:relative"> */
.related-story-card .related-image-container {
    position: relative;
}

/* was: inline <img ... style="width:100%;height:100%;object-fit:cover"> on the
   YouTube-thumbnail fallback */
.related-story-card .related-video-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* was: inline <span style="position:absolute;bottom:8px;left:8px;background:#E91D1B;
   color:#fff;font-size:11px;font-weight:700;padding:3px 8px;border-radius:3px;
   pointer-events:none"> */
.related-story-card .related-video-badge {
    position: absolute;
    bottom: 8px;
    left: 8px;
    background: #e91d1b;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 3px;
    pointer-events: none;
}

/* =============================================================================
   "You might also like" (inline related) — richer, tag-matched cards.
   Namespaced .cfm-yml-* so it never collides with existing .inline-related-*
   rules in style.css. Loaded on single posts via /css/single-related.css.
   ============================================================================= */
.cfm-yml { margin: 28px 0; }

.cfm-yml-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.cfm-yml-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 6px;
    overflow: hidden;
}

.cfm-yml-thumb {
    display: block;
    aspect-ratio: 16 / 10;
    background: #f0f0f0;
}
.cfm-yml-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.cfm-yml-body { padding: 10px 12px 14px; }

.cfm-yml-kicker {
    display: inline-block;
    margin-bottom: 6px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: #e91d1b;
    text-decoration: none;
}
.cfm-yml-kicker:hover { text-decoration: underline; }

.cfm-yml-headline {
    margin: 0;
    font-size: 15px;
    line-height: 1.3;
    font-weight: 600;
}
.cfm-yml-headline a { color: #1a1a1a; text-decoration: none; }
.cfm-yml-headline a:hover { color: #e91d1b; }

@media (max-width: 767px) {
    .cfm-yml-list { grid-template-columns: 1fr; gap: 12px; }
    .cfm-yml-card { flex-direction: row; min-height: 92px; }
    .cfm-yml-thumb { flex: 0 0 120px; aspect-ratio: auto; }
    .cfm-yml-body {
        flex: 1 1 auto;
        padding: 8px 12px;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }
}