/* Shared by buyerstalk.php and the related cards on article1-6.php.
   Plain CSS on purpose: style.css is a purged Tailwind build, so new classes there need a rebuild. */

/* #BUYERSTALK cards: Figma "RBW27 NewsletterCards" / Newsletter of article.
   Same layout on every device. Figma gives fixed card heights (mobile 590, tablet 600, desktop 630)
   at its own card widths (359 / 328 / 352). The image is 352:248 and scales with the card, so a fixed
   CARD height clips the content when the card is wider than in Figma (e.g. a 584px viewport).
   So the CONTENT area (titles + description + button) gets the fixed height instead:
     card height - image height - 24px gap - 24px bottom padding
     mobile 590-253-48 = 289px, tablet (md, 744px) 600-231-48 = 321px, desktop (lg, 1024px) 630-248-48 = 334px.
   Image, content and button are stacked with 24px gaps and 24px bottom padding.
   The description takes whatever height is left and fillDescriptions() (bottom of each page) clamps it
   to the number of WHOLE lines that fit, so the ellipsis always lands at the end of a full line. */
.bt-arrow {
    display: inline-block;
    flex: none;
    width: 20px;
    height: 20px;
    background-color: currentColor;
    -webkit-mask: url('img/icons/icn_arrow_forward.svg') center / contain no-repeat;
    mask: url('img/icons/icn_arrow_forward.svg') center / contain no-repeat;
}
/* Never wider than the media information cards (448px): with one column (< 744px) the card
   stays centred instead of stretching across the screen. */
.bt-card {
    width: 100%;
    max-width: 448px;
    margin-inline: auto;
    border: 0;
    border-radius: 16px;
    box-shadow: 0 18px 18px 0 rgba(0, 0, 0, 0.09), 0 4px 10px 0 rgba(0, 0, 0, 0.1);
}
.bt-card--text {
    gap: 24px;
    padding-bottom: 24px;
}
.bt-card--text .bt-img {
    aspect-ratio: 352 / 248;
}
.bt-card--text .bt-body {
    flex: none;
    height: 289px;
    /* 12px between titles and description (was 24px; designer asked for ~70% of the old
       date-to-description distance, which also includes the slack of .bt-titles' min-height) */
    gap: 12px;
    min-height: 0;
    padding: 0 16px;
    color: #1D1D1B;
}
.bt-card .bt-titles {
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-height: 98px;
}
.bt-card .bt-title {
    margin: 0;
    font-size: 20px;
    line-height: 26px;
    font-weight: 700;
    color: inherit;
}
.bt-card .bt-date {
    margin: 0;
    font-size: 14px;
    line-height: 17px;
    color: inherit;
}
.bt-card .bt-desc {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: 16px;
    line-height: 20px;
    color: inherit;
}
.bt-card--text .bt-desc {
    flex: 1 1 0%;
    min-height: 0;
}
.bt-card .bt-cta {
    padding-top: 0;
}
.bt-card .bt-btn {
    width: auto;
    max-width: 100%;
    min-width: min(300px, 100%);
    gap: 8px;
    padding: 12px 24px;
    border-radius: 24px;
    color: #1D1D1B;
    font-size: 16px;
    line-height: 20px;
    font-weight: 600;
    text-transform: uppercase;
}
.bt-card .bt-btn:hover {
    color: #8E3B73;
}

/* Tablet: 744px = Tailwind md */
@media (min-width: 744px) {
    .bt-card--text .bt-body {
        height: 321px;
    }
}

/* Desktop: 1024px = Tailwind lg */
@media (min-width: 1024px) {
    .bt-card--text .bt-body {
        height: 334px;
    }
}
