/**
 * The /skjutdorrar/ page (inc/skjutdorrar-page.php). Loaded on that page only.
 *
 * 1. The price examples are the same door group as on /kampanj/, drawn by campaign-prisexempel.css (its rules apply
 *    under body.is-skjutdorrar as well as body.is-kampanj). That sheet needs the campaign page's colour variables and
 *    the base rules campaign.css gives its bands (.k-sec); both are repeated here for this body class, with the
 *    same values, so the cards look exactly as on /kampanj/.
 * 2. The list of towns.
 * 3. The "Se hela kampanjen" link under the cards.
 * 4. The hero buttons (the block roland-system/skjutdorrar-hero-actions).
 * 5. The closing band's side gutters (the band is a raw HTML block, which does not get the root padding that block bands get).
 */
body.is-skjutdorrar {
	--k-ink: var(--wp--preset--color--ink);
	--k-linen: var(--wp--preset--color--linen);
	--k-brown: var(--wp--preset--color--brown);
	--k-sand: var(--wp--preset--color--sand);
	--k-sand-light: var(--wp--preset--color--sand-light);
	--k-muted: var(--wp--preset--color--muted);
	--k-sale: var(--wp--preset--color--deep-rust);
	--k-wheat: var(--wp--preset--color--wheat);
	--k-gutter: clamp(1rem, 4vw, 3rem);
	--k-pad-y: clamp(72px, 8vw, 120px);
	--k-mono: var(--wp--preset--font-family--mono);
	--k-sans: var(--wp--preset--font-family--sans);
}

body.is-skjutdorrar .wp-block-post-content > .k-sec {
	max-width: none;
	margin-block: 0;
	padding: var(--k-pad-y) var(--k-gutter);
	box-sizing: border-box;
	overflow-x: clip;
	font-family: var(--k-sans);
	color: var(--k-ink);
	line-height: 1.6;
}

body.is-skjutdorrar .k-sec :where(h1, h2, h3, p, ul, ol, dl, dd, figure) {
	margin-block: 0;
}

body.is-skjutdorrar .k-sec a {
	text-decoration: none;
}

/* "Se hela kampanjen" under the cards. */
body.is-skjutdorrar .k-px .px-more {
	margin: 14px 0 0;
	font-size: 15px;
	font-weight: 700;
}

body.is-skjutdorrar .k-px .px-more a {
	color: var(--k-brown);
	text-decoration: underline;
	text-underline-offset: 3px;
}

/* The towns: a plain list in columns. */
body.is-skjutdorrar .skjutdorrar-orter {
	columns: 2;
	column-gap: 32px;
	margin: 0 0 var(--wp--preset--spacing--40, 24px);
	padding-left: 1.25em;
}

body.is-skjutdorrar .skjutdorrar-orter li {
	break-inside: avoid;
	padding-block: 2px;
}

@media (min-width: 700px) {
	body.is-skjutdorrar .skjutdorrar-orter {
		columns: 3;
	}
}

/* The closing band: the same side gutters as the other bands (theme.json's root padding, the gutter token). */
body.is-skjutdorrar .refresh-article-closing .refresh-bottom__section {
	padding-inline: var(--wp--preset--spacing--gutter);
}

/* The hero buttons, under the lead line. */
body.is-skjutdorrar .skjutdorrar-hero-actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 1rem;
	margin: 1.75rem 0 0;
}
