/* CTA-4: download strip. A slim band: title and file details on the left, one button on the right. */

/* Less room above and below than a normal section. */
.wprk-section.wprk-cta-4 {
	padding-block: var(--wp--preset--spacing--50);
}

/* Phones: text, then the button below it. */
.wprk-cta-4 .wprk-cta-4__cols {
	gap: var(--wp--preset--spacing--30) var(--wp--preset--spacing--50);
	margin-block: 0;
}

/* Title and file details stand beside a thin accent rule. */
.wprk-cta-4 .wprk-cta-4__text {
	border-inline-start: 2px solid var(--wprk-accent);
	padding-inline-start: var(--wp--preset--spacing--40);
}

.wprk-cta-4 .wprk-cta-4__text > * {
	margin-block: 0;
	max-width: 40rem;
}

.wprk-cta-4 .wprk-cta-4__text > * + * {
	margin-block-start: var(--wp--preset--spacing--10);
}

.wprk-cta-4 .wprk-cta-4__text > :where(p) {
	color: var(--wprk-muted);
}

/* Stacked, the button lines up with the text above it. */
.wprk-cta-4 .wprk-cta-4__action {
	padding-inline-start: calc(var(--wp--preset--spacing--40) + 2px);
}

.wprk-cta-4 .wprk-cta-4__action > .wp-block-buttons {
	gap: var(--wp--preset--spacing--20);
}

/* A small arrow after the label says "download". It is decoration, so it has an empty text alternative. */
.wprk-cta-4 .wp-block-button:not(.is-style-wprk-text) > .wp-block-button__link::after {
	content: "\2193";
	content: "\2193" / "";
	display: inline-block;
	margin-inline-start: 0.5em;
}

@media (prefers-reduced-motion: no-preference) {
	.wprk-cta-4 .wp-block-button:not(.is-style-wprk-text) > .wp-block-button__link::after {
		transition: transform 0.18s ease;
	}

	.wprk-cta-4 .wp-block-button:not(.is-style-wprk-text) > .wp-block-button__link:hover::after {
		transform: translateY(0.15em);
	}
}

/*
 * One row from 782px. The button column is only as wide as its button and the
 * text takes the rest. WordPress sizes columns with a three-class rule, hence
 * the longer selector.
 */
@media (min-width: 782px) {
	.wprk-cta-4 .wprk-cta-4__cols > .wp-block-column.wprk-cta-4__action {
		flex: 0 0 auto;
		padding-inline-start: 0;
		width: auto;
	}

	.wprk-cta-4 .wprk-cta-4__action .wp-block-button__link {
		white-space: nowrap;
	}
}
