/**
 * WordPress Embed Custom Styles
 *
 * Target: Standard WordPress oEmbed iframe template.
 * Goal: Card layout — featured image, site branding, title, excerpt+author, footer meta.
 */

/* Reset body margins */
body {
    margin: 0 !important;
    padding: 0 !important;
}

/* Main card container */
.wp-embed {
    padding: 0 !important;
    border: 1px solid #e0e0e0;
    border-radius: 0;
    display: flex;
    flex-direction: column;
    background: #fff;
    overflow: hidden;
    box-sizing: border-box;
    height: auto !important;
}

/* Featured image — pulled to very top */
.wp-embed-featured-image {
    order: -1;
    margin: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    float: none !important;
    height: auto !important;
}

.wp-embed-featured-image a {
    display: block !important;
}

.wp-embed-featured-image img {
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    max-width: 100% !important;
    display: block !important;
}

/* Hide the default WordPress embed footer (site logo, share buttons) */
.wp-embed-footer {
    display: none !important;
}

/* Shared horizontal padding */
.wp-embed-heading,
.wp-embed-excerpt,
.wp-embed-meta-custom {
    padding-left: 20px;
    padding-right: 20px;
}

/* Title */
.wp-embed-heading {
    margin: 0 0 10px;
    font-size: 22px;
    line-height: 1.3;
}

.wp-embed-heading a {
    text-decoration: none;
    color: #333;
}

.wp-embed-heading a:hover {
    text-decoration: underline;
}

/* Excerpt — description + italic author inline */
.wp-embed-excerpt {
    line-height: 1.5;
    color: #555;
    margin-bottom: 15px;
}

.wp-embed-excerpt p {
    margin: 0 !important;
}

/* Footer meta row: category · date · reading time */
.wp-embed-meta-custom {
    padding-bottom: 20px;
    font-size: 13px;
    color: #888;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
}

.wp-embed-category {
    color: #888;
    font-size: 13px;
    background: none !important;
    padding: 0;
}

.wp-embed-date {
    color: #888;
}

.wp-embed-reading-time {
    color: #888;
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.wp-embed-clock-icon {
    display: block;
    flex-shrink: 0;
}
