/* ================================================
   LISTING CARDS — shared component
   ================================================
   Reconciles the blog card (.blog-post-card) and the
   customer story card (.cs-card), which had drifted on
   every dimension. Same approach as pagination.css and
   toc.css: one file, rules that name both class sets,
   loaded after the per-listing stylesheets.

   The two were:
                     blog          story        now
     background      #FAFAFA       #FFFFFF      #FCFCFC
     corner radius   20px          10px         14px
     image ratio     1.28 (78%)    16/9         3/2
     title           22px          18px         20px
     read more       16px / 400    15px / 600   15px / 600
     resting shadow  none          subtle       subtle

   Where the feedback named a winner we followed it — the
   read-more weight is the story's 600, because the blog's
   400 read as too light. Everything else meets in the
   middle, which is what was asked for.
   ================================================ */

.blog-post-card,
.cs-card {
    background: #FCFCFC;
    border-radius: 14px;
    box-shadow: 0 1px 3px rgba(30, 30, 35, 0.08);
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.blog-post-card:hover,
.cs-card:hover {
    box-shadow: 0 8px 24px rgba(30, 30, 35, 0.12);
    transform: translateY(-4px);
}

/* ------------------------------------------------
   Image

   The two cards deliberately do NOT match here. A blog card carries its tags
   above the title, so it needs the taller 3:2 image to stay balanced. A story
   card puts its label above the title instead, outside the image, so the same
   ratio just reads as a needlessly tall photo.

   Only the blog ratio is set here. Story cards are left to the 16/9 already
   declared in customer-stories-listing.css — the rule that used to sit here
   was the same value at a higher specificity, so it would have been two places
   to change and one of them silently winning.
   ------------------------------------------------ */

.blog-post-card .post-card-image-inner {
    padding-bottom: 66.667%;   /* 3:2 */
}

/* ------------------------------------------------
   Title
   ------------------------------------------------ */

.blog-post-card .post-card-title,
.cs-card .cs-card__title {
    font-size: 1.25rem;
    font-weight: 600;
    line-height: 1.35;
    color: #1e1e23;
}

/* ------------------------------------------------
   Read more
   ------------------------------------------------ */

.blog-post-card .post-card-read-more,
.cs-card .cs-card__read-more {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    margin-top: auto;
    font-family: 'Karla', sans-serif;
    font-size: 0.9375rem;
    font-weight: 600;
    color: #1e1e23;
    text-decoration: none;
    /*
     * Only the colour moves here. The blog previously slid the whole label
     * 4px right on hover, which read as the button drifting; the chevron
     * below carries the motion instead.
     */
    transform: none;
    transition: color 0.25s ease;
}

.blog-post-card:hover .post-card-read-more,
.cs-card:hover .cs-card__read-more,
.post-card-link:hover .post-card-read-more {
    color: #00cc54;
    transform: none;
}

.card-read-more-chevron {
    flex-shrink: 0;
    display: block;
    transition: transform 0.25s ease;
}

.blog-post-card:hover .card-read-more-chevron,
.cs-card:hover .card-read-more-chevron,
.post-card-link:hover .card-read-more-chevron {
    transform: translateX(3px);
}

@media (prefers-reduced-motion: reduce) {
    .blog-post-card,
    .cs-card,
    .card-read-more-chevron {
        transition: none;
    }
    .blog-post-card:hover,
    .cs-card:hover {
        transform: none;
    }
    .blog-post-card:hover .card-read-more-chevron,
    .cs-card:hover .card-read-more-chevron,
    .post-card-link:hover .card-read-more-chevron {
        transform: none;
    }
}
