/* [2026-10-15, MG] The CounterIntel feature article's call to action and the pose-tracking dots on its image. Linked in the head of that one article only (`Features::article`). Palette is the CounterIntel page's own
   (see `counterintel.css`), declared here and not borrowed from the house tokens. Goals/2026-10-15_counterintel-article-cta/. */
.ci-promo, .ci-track {
	--ci-ground: #0b0910;
	--ci-card: #15121d;
	--ci-line: rgba(255, 255, 255, 0.12);
	--ci-text: #f4f1fa;
	--ci-muted: #a9a3b8;
	--ci-pink: #ff3d9a;
	--ci-pink-deep: #e91e7e;
	--ci-serif: 'Fraunces', Georgia, 'Times New Roman', serif;
}

/* the card */
.ci-promo { box-sizing: border-box; display: flex; flex-direction: column; gap: 10px; padding: 20px; border: 1px solid var(--ci-line); border-radius: 16px; color: var(--ci-text);
	background: radial-gradient(260px 160px at 100% 0%, rgba(233, 30, 126, 0.22), transparent 70%), var(--ci-ground); }
.ci-promo__eyebrow { font-family: var(--iwe-font-mono, ui-monospace, monospace); font-size: 0.7rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ci-pink); }
.ci-promo__h { margin: 0; font-family: var(--ci-serif); font-size: 1.3rem; font-weight: 600; line-height: 1.15; letter-spacing: -0.01em; color: var(--ci-text); }
.ci-promo__h em { font-style: italic; color: var(--ci-pink); }
.ci-promo__p { margin: 0; font-size: 0.9rem; line-height: 1.45; color: var(--ci-muted); }
.ci-promo__cta { align-self: flex-start; margin-top: 4px; padding: 10px 20px; border-radius: 999px; background: var(--ci-pink-deep); color: #fff; font-weight: 700; font-size: 0.9rem; text-decoration: none; box-shadow: 0 8px 24px rgba(233, 30, 126, 0.3); }
.ci-promo__cta:hover, .ci-promo__cta:focus-visible { background: var(--ci-pink); color: #fff; }
.ci-promo__cta:focus-visible { outline: 3px solid var(--ci-text); outline-offset: 3px; }

/* in the rail: contents list, then the card, together sticky (the pack's own `.iwe-toc` sticky is turned off inside, so the two do not overlap) */
.ci-rail { position: sticky; top: var(--iwe-sticky-top, 92px); display: flex; flex-direction: column; gap: 24px; max-height: calc(100vh - var(--iwe-sticky-top, 92px) - 16px); overflow-y: auto; }
.ci-rail .iwe-toc { position: static; max-height: none; overflow: visible; }

/* below 1120px the pack hides the rail, so the card is shown after the article instead; on a wide screen only the rail's copy shows */
.ci-promo--inline { margin: 32px 0; }
@media (min-width: 1120px) { .ci-promo--inline { display: none; } }

/* the pose-tracking dots on the feature image: the overlay is the image's own box, so it scales with it */
.ci-track { position: relative; margin-top: var(--iwe-space-3, 12px); }
.ci-track .iwe-sechead__hero { margin-top: 0; }
.ci-track__pose { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; opacity: 0; animation: ci-pose-appear 1200ms ease 500ms forwards; }
@keyframes ci-pose-appear { to { opacity: 1; } }
.pose-dot { transform-origin: center; transform-box: fill-box; animation: ci-pose-pulse 4.5s ease-in-out infinite; }
.pose-dot:nth-child(3) { animation-delay: 0.9s; }
.pose-dot:nth-child(5) { animation-delay: 1.8s; }
.pose-dot:nth-child(7) { animation-delay: 2.7s; }
@keyframes ci-pose-pulse { 0%, 100% { opacity: 0.85; } 50% { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
	.pose-dot { animation: none; }
	.ci-track__pose { animation: none; opacity: 1; }
}
/* the labels are in the 1200-unit box and shrink with the image: on a phone they would be about 5px, so only the dots and the line stay */
@media (max-width: 600px) { .ci-track__label { display: none; } }
