/* Card style 10: Horizontal. A small picture on the left and the text beside it, for compact lists. */
.card-style-10 .card.post-card {
    display: grid;
    grid-template-columns: minmax(0, 38%) minmax(0, 1fr);
    align-items: start;
    gap: 14px;
    padding: 12px;
    border: 1px solid var(--cs-line);
    border-radius: 12px;
    background: #fff;
    transition: border-color .2s ease, box-shadow .2s ease;
}

.card-style-10 .post-card .card-img-top {
    aspect-ratio: 1 / 1 !important;
    border-radius: 8px;
}

/* YouTube thumbnails are 4:3 with black bars above and below the 16:9 picture;
   a square crop keeps the bars unless the picture is enlarged past them. */
.card-style-10 .post-card .video-container {
    overflow: hidden;
    border-radius: 8px;
}

.card-style-10 .post-card .card-img-top[src*="img.youtube.com"] {
    transform: scale(1.34);
}

/* The play badge is sized for a full-width picture. */
.card-style-10 .post-card .video-container h2 {
    margin: 0;
    font-size: 1rem;
}

/* Cards without a picture use the full width. */
.card-style-10 .post-card > .mt-3 {
    margin-top: 0 !important;
}

.card-style-10 .post-card > .mt-3:first-child {
    grid-column: 1 / -1;
}

.card-style-10 .post-card-with-btn > .post-card-body {
    align-self: stretch;
}

.card-style-10 .post-card .card-title {
    margin-bottom: .35rem;
    font-size: 1.05rem;
    font-weight: 600;
}

.card-style-10 .post-card .topic-date {
    margin-bottom: .25rem !important;
    font-size: .8rem;
}

.card-style-10 .post-card .custom-field-title {
    display: none;
}

.card-style-10 .post-card .custom-field-value.card {
    margin-bottom: .25rem !important;
    font-size: .85rem;
    font-weight: 500;
}

.card-style-10 .post-card .card-text {
    margin-top: .25rem !important;
    font-size: .87rem;
    color: #5f6b76;
}

.card-style-10 .post-card-with-btn .card-text {
    -webkit-line-clamp: 2;
    line-clamp: 2;
}

.card-style-10 .post-card .about-card-footer {
    padding-top: .6rem !important;
}

.card-style-10 .post-card .about-card-btn {
    padding: .2rem .65rem;
    font-size: .8rem;
    color: var(--cs-accent);
    background: transparent;
    border: 1px solid var(--cs-accent);
    border-radius: 50px;
}

@media (hover: hover) and (pointer: fine) {
    .card-style-10 .card.post-card:hover {
        border-color: var(--cs-accent);
        box-shadow: 0 6px 18px rgba(46, 62, 78, .1);
    }

    .card-style-10 .post-card .about-card-btn:hover {
        color: #fff;
        background: var(--cs-accent);
        border-color: var(--cs-accent);
    }
}

.dark .card-style-10 .post-card .card-text {
    color: rgba(255, 255, 255, .72);
}
