/*
 * Grid Cards — this site's overrides. Loaded after the block's own sheet, only when the
 * block is on the page.
 *
 * Scoped to black cards (lvd-style-dark) on a white or transparent section. Same treatment
 * as the black Hero Cards card: body copy in grey, so the white titles carry the section.
 * Any other surface/appearance keeps the theme's colours.
 */

/* Section intro: grey that keeps AA on its surface. */
.lvd-cm-grid-cards.lvd-style-white:has(.lvd-card.lvd-style-dark) .lvd-section-intro {
    --lvd-cc-text: #6E6E73; /* 5.07 on white */
    color: #6E6E73;
}
.lvd-cm-grid-cards.lvd-style-transparent:has(.lvd-card.lvd-style-dark) .lvd-section-intro {
    --lvd-cc-text: #A1A1A6; /* 7.4 on the #111 page */
    color: #A1A1A6;
}

/* Card body text: the desktop menu's grey, 8.16 on black. */
:is(.lvd-cm-grid-cards.lvd-style-white, .lvd-cm-grid-cards.lvd-style-transparent) .lvd-card.lvd-style-dark .lvd-text {
    --lvd-cc-text: #A1A1A6;
    color: #A1A1A6;
}

/* Tags in the ps pair: dark-red chip, pink ink (7.66). White chips read too loud on black.
 * The theme tints the fill from the text colour via color-mix, so the background is set
 * directly, not through the token. */
:is(.lvd-cm-grid-cards.lvd-style-white, .lvd-cm-grid-cards.lvd-style-transparent) .lvd-card.lvd-style-dark .lvd-tag {
    --lvd-cc-tag-text: var(--lvd-color-primary-soft-on);
    background: var(--lvd-color-primary-soft);
    color: var(--lvd-color-primary-soft-on);
}

/* The tags carry the offer prices: one step up from the theme's 11px. */
.lvd-cm-grid-cards .lvd-card .lvd-tag {
    font-size: var(--lvd-text-s1);
    padding: 6px 12px;
}
