/* Drink With Us — Partner placements

   Full width, visually distinct from the guide's own cards. It should be
   obvious this is a placement rather than editorial — that clarity is
   what keeps the rest of the page trustworthy. */

.dwu-partner {
	--dwu-ad-ink: var(--color-soft-white, #f9f9f6);
	--dwu-ad-soft: rgba(249, 249, 246, 0.76);
	--dwu-ad-accent: var(--color-dusty-mauve, #ba7157);
	margin: 3rem 0;
	border-radius: 12px;
	overflow: hidden;
	background: var(--color-inky-green, #0f2e26);
}

.fl-page .dwu-partner .dwu-partner__link {
	display: flex;
	align-items: stretch;
	gap: 0;
	color: var(--dwu-ad-ink);
	text-decoration: none;
}

/* Fixed 4:3 on desktop so the crop is predictable. Without it the media
   stretches to whatever height the copy makes the card, and the same
   image crops differently on every placement. Supply 16:9 and the sides
   are trimmed evenly — keep the subject centred. */

.dwu-partner__media {
	flex: none;
	width: 38%;
	max-width: 340px;
	aspect-ratio: 4 / 3;
	align-self: stretch;
	overflow: hidden;
	background: rgba(249, 249, 246, 0.06);
}

/* Let the media match a taller card rather than leaving a gap. */

.fl-page .dwu-partner .dwu-partner__link {
	min-height: 240px;
}

.dwu-partner__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.4s ease;
}

/* An image that fails to load leaves the alt icon on a coloured block;
   hiding the broken state is tidier than showing it. */

.dwu-partner__media img[src=""],
.dwu-partner__media img:not([src]) {
	display: none;
}

.fl-page .dwu-partner .dwu-partner__link:hover .dwu-partner__media img {
	transform: scale(1.03);
}

.dwu-partner__body {
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 6px;
	flex: 1;
	min-width: 0;
	padding: var(--space-6, 1.5rem);
}

/* Every text node is forced. The theme sets .fl-builder-content * and
   .fl-page a colours that otherwise paint these spans the same shade as
   the background — the block renders, but reads as empty.

   The spans are also set to block: they sit in a flex column, and inline
   spans collapse against each other there. */

.fl-page .dwu-partner .dwu-partner__link,
.fl-page .dwu-partner .dwu-partner__link *,
.dwu-partner .dwu-partner__link,
.dwu-partner .dwu-partner__link * {
	color: var(--dwu-ad-ink) !important;
}

/* Disclosure. Required for material connections, and it costs nothing —
   an unlabelled placement next to disclosed editorial reads badly. */

.fl-page .dwu-partner .dwu-partner__label,
.dwu-partner .dwu-partner__label {
	display: block;
	color: var(--dwu-ad-accent) !important;
	font-family: var(--font-body, sans-serif) !important;
	font-size: 0.6875rem !important;
	line-height: 1.2 !important;
	letter-spacing: 0.12em !important;
	text-transform: uppercase !important;
}

.fl-page .dwu-partner .dwu-partner__headline,
.dwu-partner .dwu-partner__headline {
	display: block;
	color: var(--dwu-ad-ink) !important;
	font-family: var(--font-heading, sans-serif) !important;
	font-size: 1.375rem !important;
	font-weight: 400 !important;
	line-height: 1.25 !important;
	letter-spacing: -0.005em !important;
	text-transform: none !important;
}

.fl-page .dwu-partner .dwu-partner__text,
.dwu-partner .dwu-partner__text {
	display: block;
	max-width: 46ch;
	color: var(--dwu-ad-soft) !important;
	font-family: var(--font-body, sans-serif) !important;
	font-size: 0.9375rem !important;
	line-height: 1.5 !important;
	text-transform: none !important;
}

.fl-page .dwu-partner .dwu-partner__cta,
.dwu-partner .dwu-partner__cta {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	align-self: flex-start;
	margin-top: 10px;
	padding-bottom: 2px;
	border-bottom: 1px solid rgba(249, 249, 246, 0.4);
	color: var(--dwu-ad-ink) !important;
	font-family: var(--font-body, sans-serif) !important;
	font-size: 0.75rem !important;
	line-height: 1.2 !important;
	letter-spacing: 0.08em !important;
	text-transform: uppercase !important;
	transition: border-color 0.2s ease, gap 0.2s ease;
}

.dwu-partner__cta::after {
	content: "";
	width: 15px;
	height: 7px;
	flex: none;
	background-repeat: no-repeat;
	background-position: center;
	background-size: contain;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 7' fill='none' stroke='%23f9f9f6' stroke-width='1.2'%3E%3Cpath d='M0 3.5h14M11 1l3 2.5-3 2.5'/%3E%3C/svg%3E");
}

.fl-page .dwu-partner .dwu-partner__link:hover .dwu-partner__cta {
	border-bottom-color: var(--dwu-ad-ink);
	gap: 12px;
}

/* Body sits top-aligned rather than centred, so a short headline doesn't
   float in the middle of a tall block. */

.dwu-partner__body {
	justify-content: center;
	gap: 7px;
}

/* No image — centre the copy rather than leaving a gap */

.dwu-partner--no-image .dwu-partner__body {
	align-items: center;
	text-align: center;
	padding: var(--space-8, 2rem) var(--space-6, 1.5rem);
}

.dwu-partner--no-image .dwu-partner__cta {
	align-self: center;
}

@media (max-width: 700px) {
	.fl-page .dwu-partner .dwu-partner__link {
		flex-direction: column;
	}

	.dwu-partner__media {
		width: 100%;
		max-width: none;
		aspect-ratio: 16 / 9;
	}

	.dwu-partner__body {
		padding: var(--space-5, 1.25rem);
	}

	.fl-page .dwu-partner .dwu-partner__headline {
		font-size: 1.2rem;
	}
}

@media (prefers-reduced-motion: reduce) {
	.dwu-partner__media img,
	.fl-page .dwu-partner .dwu-partner__cta {
		transition: none;
	}
}

@media print {
	.dwu-partner {
		display: none;
	}
}
