/**
 * The campaign band on the front page (inc/campaign.php, roland_campaign_home_band_html()): one
 * link to the campaign page between the header and the hero. It is not sticky. Loaded only while
 * the band is shown, together with the header strip's switch (roland_kampanj_is_visible()).
 *
 * Two layouts of the same link (sizes and spacing from the mockups, reference/.../startsida-band/): .home-band__d from 900px (one row: the big 30 %, a divider, the name,
 * the offer line and a button) and .home-band__m below that (stacked, full width). Both are
 * aria-hidden; the link's own aria-label is what a screen reader reads.
 */
.home-band-wrap {
	margin: 0;
	padding: 0;
}

.home-band {
	display: block;
	box-sizing: border-box;
	background: var(--wp--preset--color--ink);
	color: var(--wp--preset--color--linen);
	font-family: var(--wp--preset--font-family--sans);
	text-decoration: none;
	border-radius: 0;
}

.home-band:hover,
.home-band:focus-visible {
	color: var(--wp--preset--color--linen);
}

.home-band:focus-visible {
	outline: 3px solid var(--wp--preset--color--wheat);
	outline-offset: -6px;
}

.home-band__btn {
	display: inline-block;
	box-sizing: border-box;
	background: var(--wp--preset--color--linen);
	color: var(--wp--preset--color--ink);
	font-weight: 700;
	line-height: 1.2;
	text-align: center;
	white-space: nowrap;
	transition: background-color 150ms ease-out;
}

.home-band:hover .home-band__btn,
.home-band:focus-visible .home-band__btn {
	background: var(--wp--preset--color--wheat);
}

.home-band__date {
	font-weight: 700;
	color: var(--wp--preset--color--wheat);
}

/* ---------- Phones and small tablets (below 900px): full width, no outer gap ---------- */

.home-band__d {
	display: none;
}

.home-band__m {
	display: flex;
	flex-direction: column;
	gap: 14px;
	padding: 22px 16px 20px;
}

.home-band__m-title {
	font-size: 50px;
	font-weight: 800;
	line-height: 0.92;
	letter-spacing: -0.035em;
	text-transform: uppercase;
}

.home-band__m-offer {
	display: flex;
	align-items: center;
	gap: 14px;
	padding-top: 14px;
	border-top: 1px solid color-mix(in srgb, var(--wp--preset--color--linen) 20%, transparent);
}

.home-band__m-num {
	display: flex;
	align-items: flex-start;
	gap: 2px;
	line-height: 0.85;
	flex: none;
	color: var(--wp--preset--color--wheat);
	font-weight: 800;
}

.home-band__m-30 {
	font-size: 60px;
	letter-spacing: -0.06em;
}

.home-band__m-pct {
	font-size: 26px;
	letter-spacing: 0;
	padding-top: 4px;
}

.home-band__m-what {
	font-size: 17px;
	font-weight: 700;
	line-height: 1.25;
}

.home-band__m-note {
	margin: 0;
	font-size: 14px;
	line-height: 1.4;
	color: color-mix(in srgb, var(--wp--preset--color--linen) 85%, transparent);
}

.home-band__m .home-band__btn {
	display: block;
	width: 100%;
	padding: 16px 20px;
	font-size: 17px;
}

/* ---------- From 900px: one row, the same side padding as the hero below ---------- */

@media (min-width: 900px) {
	.home-band-wrap {
		padding: 15px var(--wp--style--root--padding-left, clamp(16px, 4vw, 48px)) 0;
	}

	.home-band {
		--hb-num: clamp(110px, 11vw, 160px);
	}

	.home-band__m {
		display: none;
	}

	.home-band__d {
		display: flex;
		align-items: center;
		gap: 36px;
		padding: 22px 36px;
	}

	/* The number block carries the divider as its right border: 36px of padding, the line, then the row's 36px gap. */
	.home-band__num {
		display: flex;
		align-items: flex-start;
		gap: calc(var(--hb-num) * 0.0375);
		flex: none;
		padding-right: 36px;
		border-right: 1px solid color-mix(in srgb, var(--wp--preset--color--linen) 20%, transparent);
		line-height: 0.82;
		color: var(--wp--preset--color--wheat);
		font-weight: 800;
	}

	.home-band__30 {
		font-size: var(--hb-num);
		letter-spacing: -0.06em;
	}

	.home-band__pct {
		font-size: calc(var(--hb-num) * 0.375);
		letter-spacing: 0;
		padding-top: calc(var(--hb-num) * 0.075);
	}

	.home-band__text {
		display: flex;
		flex-direction: column;
		flex: 1 1 auto;
		gap: 14px;
		min-width: 0;
	}

	.home-band__title {
		font-size: clamp(56px, 6.4vw, 92px);
		font-weight: 800;
		line-height: 0.9;
		letter-spacing: -0.035em;
		text-transform: uppercase;
		white-space: nowrap;
	}

	/* The line wraps under the headline's width rather than shrinking; the button stays inside the padding. */
	.home-band__row {
		display: flex;
		flex-wrap: wrap;
		align-items: center;
		justify-content: space-between;
		gap: 14px 24px;
	}

	.home-band__line {
		flex: 1 1 320px;
		min-width: 0;
		font-size: 18px;
		font-weight: 600;
		line-height: 1.3;
		color: color-mix(in srgb, var(--wp--preset--color--linen) 90%, transparent);
	}

	.home-band__d .home-band__btn {
		flex: none;
		padding: 11px 20px;
		font-size: 15px;
	}
}
