/*
 * "Your ad here" block (.ads-adv*) for the display formats: banner and 300x600 vertical.
 * Not enqueued globally; enqueue on surfaces that render it. Same outer size as the ad
 * variant it replaces. Ink band (.ss-dark in the markup), tokens from global.css :root.
 * The event, client and job variants are list rows (template-parts/ads/row.php), not this block.
 */

.ads-adv {
	position: relative;
	box-sizing: border-box;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	justify-content: center;
	gap: var(--space-5);
	width: 100%;
	max-width: 100%;
	margin: 0;
	padding: var(--space-6);
	background: var(--ink);
	border-radius: var(--radius-lg);
	color: var(--cream);
}

.ads-adv__body {
	display: flex;
	flex-direction: column;
	gap: var(--space-2);
	min-width: 0;
}

.ads-adv__label {
	align-self: flex-start;
	padding: var(--space-1) var(--space-2);
	border-radius: var(--radius-sm);
	background: var(--yellow);
	font-family: var(--mono);
	font-size: var(--fs-label);
	font-weight: 700;
	line-height: 1;
	letter-spacing: var(--ls-label);
	text-transform: uppercase;
	color: var(--ink);
}

.ads-adv__title {
	margin: 0;
	font-size: var(--fs-xl);
	font-weight: 800;
	line-height: 1.15;
	letter-spacing: -.02em;
	color: var(--cream);
	text-wrap: balance;
}

.ads-adv__copy {
	margin: 0;
	font-size: var(--fs-prose-sm);
	line-height: 1.5;
	color: var(--cream);
	text-wrap: pretty;
}

.ads-adv__btn {
	flex: none;
	max-width: 100%;
}

/* Banner: fills its container, same height as the banner creative, content centred. */
.ads-adv--banner {
	min-height: 240px;
	align-items: center;
	text-align: center;
	padding: var(--space-6) var(--space-8);
}

.ads-adv--banner .ads-adv__body {
	align-items: center;
	max-width: 560px;
}

.ads-adv--banner .ads-adv__label {
	align-self: center;
}

/* Vertical: fixed 300x600, text at the top and the button right under the copy. */
.ads-adv--vertical {
	width: 300px;
	height: 600px;
	justify-content: flex-start;
	padding: var(--space-7) var(--space-6);
}

.ads-adv:focus-within {
	outline: 2px solid var(--focus);
	outline-offset: 2px;
}

/* Tablet and down: vertical keeps height 600 but never exceeds 300 or its container. */
@media (max-width: 900px) {
	.ads-adv--vertical {
		width: 100%;
		max-width: 300px;
	}

	.ads-adv--banner {
		padding: var(--space-6) var(--space-5);
	}
}
