/* Article cover thumbnails (inc/article-cover.php): a cover drawn in HTML and CSS inside the card's
   .rc__shot, in place of a featured image. Colour pairs are placeholders until design sign-off.
   Sizes follow the card width (container units), so the big Featured card scales the same cover. */
.acv { --acv-a: #3b4a5e; --acv-b: #0e1622; position: relative; display: flex; flex-direction: column; justify-content: flex-end; width: 100%; aspect-ratio: 16 / 10; overflow: hidden; border-radius: var(--radius-md, 10px); background: radial-gradient(120% 110% at 100% 0%, var(--acv-a) 0%, transparent 62%), linear-gradient(160deg, var(--acv-a) -20%, var(--acv-b) 78%); color: #fff; container-type: inline-size; isolation: isolate; }
/* a faint grid, as the mockups show */
.acv::before { content: ""; position: absolute; inset: 0; z-index: -1; background-image: linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px); background-size: 28px 28px; -webkit-mask-image: linear-gradient(to top, #000, transparent 85%); mask-image: linear-gradient(to top, #000, transparent 85%); }
.acv--indigo { --acv-a: #2b3a8f; --acv-b: #0a0f2e; }
.acv--orange { --acv-a: #f2622a; --acv-b: #5e1405; }
.acv--teal { --acv-a: #128a84; --acv-b: #04282a; }
.acv--green { --acv-a: #2f9a55; --acv-b: #082615; }
.acv--violet { --acv-a: #6a46c2; --acv-b: #160c38; }
.acv--slate { --acv-a: #4a5d75; --acv-b: #0d151f; }
.acv--navy { --acv-a: #1f4f8a; --acv-b: #051226; }
.acv--plum { --acv-a: #8a2f78; --acv-b: #240820; }
.acv--ocean { --acv-a: #0f74a8; --acv-b: #03182b; }

/* the small icon top left, the large faint one cut off at the top right */
.acv__ico { position: absolute; top: 6.5cqi; left: 6.5cqi; width: 6cqi; height: 6cqi; min-width: 16px; min-height: 16px; opacity: .9; }
.acv__mark { position: absolute; top: -12cqi; right: -8cqi; width: 46cqi; height: 46cqi; opacity: .14; stroke-width: 1.2; }
/* the fallback: no text, a large icon */
.acv--icon .acv__mark { top: 50%; right: auto; left: 50%; width: 30cqi; height: 30cqi; transform: translate(-50%, -50%); opacity: .55; }
/* webinars: the design's solid orange play button (webinars.html .wl-play: 58px circle, 26px arrow, same shadows) in the
   small icon's place top left, in line with the cover text; centred when the cover has no text (QA Webinars landing Issue 1) */
.acv__play { position: absolute; top: 6.5cqi; left: 6.5cqi; display: grid; place-items: center; width: clamp(38px, 13.5cqi, 58px); aspect-ratio: 1; border-radius: 50%; background: var(--accent-main, #f56538); box-shadow: 0 10px 26px -12px rgba(4, 28, 44, .7); }
.acv__play svg { width: 45%; height: 45%; margin-left: 5%; fill: #fff; filter: drop-shadow(0 2px 6px rgba(4, 28, 44, .5)); }
.acv--icon .acv__play { top: 50%; left: 50%; transform: translate(-50%, -50%); }

.acv__txt { display: flex; flex-direction: column; gap: 1.6cqi; padding: 0 6.5cqi 6cqi; }
.acv__stat { font-family: var(--t-font-display); font-weight: 800; font-size: 19cqi; line-height: .9; letter-spacing: -.04em; }
.acv__lbl { max-width: 62cqi; font-size: 3.6cqi; line-height: 1.35; opacity: .92; }
.acv__eb { font-family: var(--t-font-mono, ui-monospace, monospace); font-size: 2.6cqi; letter-spacing: .14em; text-transform: uppercase; opacity: .8; }
.acv__line { font-family: var(--t-font-display); font-weight: 700; font-size: 5.6cqi; line-height: 1.22; letter-spacing: -.01em; text-wrap: balance; }
.acv__line--hook { font-size: 6.6cqi; line-height: 1.15; }
.acv__line em { font-style: normal; color: var(--accent-main, #f56538); }
/* an orange cover's accent stays legible */
.acv--orange .acv__line em { color: #ffd6c2; }

/* inside the cards: the cover takes the image's place */
.rc__shot .acv { border-radius: var(--radius-md, 10px); }
/* the Featured cards' shot is the cover's frame (without this the cover escapes the card on phones) */
.ms-featul .rc__shot, .rc--feat .rc__shot { position: relative; }
/* the cover sits inside the frame's 14px padding, like a photo there and like every grid card's cover, not edge to edge
   (Blog Category QA Issue 3, 27 Nov 2026) */
.ms-featul .rc__shot .acv, .rc--feat .rc__shot .acv { position: absolute; inset: 14px; width: auto; height: auto; aspect-ratio: auto; }
/* stacked (pages.css, 800px and below) the Featured card's shot has no height of its own, so the cover sizes itself again */
@media (max-width: 800px) { .rc--feat .rc__shot .acv { position: relative; height: auto; aspect-ratio: 16 / 10; } }
