/**
 * article-embeds.css — embed-related styles for article pages
 *
 * ERP contract (kikimami_server/static_web/post_optimizer/page_shell.py):
 * `apply_plan_to_page_shell` injects "external video card" blocks with these selectors.
 * shared_assets.py flags the site as "has_missing" if this file is missing.
 *
 * Palette: olive #3F4F3A · sand #C18B5D · cream #F5F4ED · oat #FAF7F2
 */

.external-video-card {
    margin: 1.75rem 0;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(63, 79, 58, 0.08);
    background: #1F2A23;
}

.external-video-card-link {
    position: relative;
    display: block;
    aspect-ratio: 16 / 9;
    width: 100%;
    color: #fff;
    text-decoration: none;
    overflow: hidden;
}

.external-video-card-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.external-video-card-link:hover .external-video-card-image {
    transform: scale(1.03);
}

.external-video-card-play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 68px;
    height: 48px;
    background: rgba(31, 42, 35, 0.78);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.25s ease, transform 0.25s ease;
}

.external-video-card-link:hover .external-video-card-play {
    background: #c00;
    transform: translate(-50%, -50%) scale(1.05);
}

.external-video-card-play::before {
    content: '';
    display: block;
    width: 0;
    height: 0;
    border-left: 14px solid #fff;
    border-top: 9px solid transparent;
    border-bottom: 9px solid transparent;
    margin-left: 3px;
}

.external-video-card-caption {
    padding: 0.85rem 1rem;
    background: #FAF7F2;
    color: #1F2A23;
    font-size: 0.92rem;
    border-top: 1px solid #E8E5DC;
}

.article-content iframe[src*="youtube"],
.article-content iframe[src*="youtu.be"],
.article-content iframe[src*="vimeo"] {
    aspect-ratio: 16 / 9;
    width: 100%;
    max-width: 100%;
    height: auto;
    border: 0;
    border-radius: 8px;
    margin: 1.5rem 0;
    display: block;
}

.article-content .twitter-tweet {
    margin: 1.75rem auto !important;
}

.article-content code {
    background: #F5F4ED;
    color: #A87547;
    padding: 0.15em 0.4em;
    border-radius: 4px;
    font-size: 0.92em;
    font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}

.article-content pre {
    background: #1F2A23;
    color: #E8E5DC;
    padding: 1.15rem 1.35rem;
    border-radius: 8px;
    overflow-x: auto;
    margin: 1.5rem 0;
    line-height: 1.5;
}

.article-content pre code {
    background: transparent;
    color: inherit;
    padding: 0;
    font-size: 0.9em;
}

.article-content blockquote {
    border-left: 4px solid #C18B5D;
    background: #FAF7F2;
    padding: 0.9rem 1.25rem;
    margin: 1.5rem 0;
    color: #4A5A45;
    font-style: italic;
    border-radius: 0 6px 6px 0;
}

.article-content .table-wrap,
.article-content figure.wp-block-table {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 1.5rem 0;
}

.article-content table {
    width: 100%;
    border-collapse: collapse;
}

.article-content th,
.article-content td {
    padding: 0.65rem 0.85rem;
    border-bottom: 1px solid #E8E5DC;
    text-align: left;
}

.article-content th {
    background: #F5F4ED;
    font-weight: 600;
    color: #1F2A23;
}
