/*
 * REACH Supply policy contact panels and final-section density.
 *
 * RS-DS-023: policy contact and support details use a neutral white action
 * panel with one navy icon tile and a restrained gold accent. Green decorative
 * fills are not used for ordinary contact information.
 *
 * RS-DS-024: final policy contact sections and the Shipping and Delivery
 * checklist use content-sized spacing. The shared plugin layer owns these
 * presentation rules; policy wording and Breakdance structure remain intact.
 */

body.reach-design-system.reach-policy-design-page
.reach-policy-article .reach-policy-contact {
	background: var(--rs-color-surface) !important;
	border: var(--rs-border-default) !important;
	border-left: 4px solid var(--rs-color-gold) !important;
	border-radius: var(--rs-radius-md) !important;
	box-shadow: var(--rs-shadow-xs) !important;
	box-sizing: border-box !important;
	color: var(--rs-color-ink) !important;
	line-height: 1.5 !important;
	margin: 1rem 0 !important;
	min-height: 4.75rem !important;
	padding: 0.875rem 1rem 0.875rem 4.5rem !important;
	position: relative !important;
	width: min(100%, var(--rs-policy-reading-width)) !important;
}

body.reach-design-system.reach-policy-design-page
.reach-policy-article .reach-policy-contact::before {
	align-items: center !important;
	background: var(--rs-color-ink) !important;
	border-radius: 0.625rem !important;
	box-shadow: inset 0 -3px 0 var(--rs-color-gold) !important;
	color: var(--rs-color-on-ink) !important;
	content: "✉" !important;
	display: flex !important;
	font-size: 1rem !important;
	font-weight: var(--rs-font-weight-bold) !important;
	height: 2.75rem !important;
	justify-content: center !important;
	left: 1rem !important;
	line-height: 1 !important;
	position: absolute !important;
	top: 1rem !important;
	width: 2.75rem !important;
}

body.reach-design-system.reach-policy-design-page
.reach-policy-article .reach-policy-contact strong {
	color: var(--rs-color-ink) !important;
	display: block !important;
	font-size: 1rem !important;
	font-weight: var(--rs-font-weight-bold) !important;
	line-height: 1.4 !important;
	margin: 0 0 0.375rem !important;
}

/* Legacy policy markup places a BR after a block-level STRONG. Once the
 * heading is block-level that BR creates a whole empty line, so remove it. */
body.reach-design-system.reach-policy-design-page
.reach-policy-article .reach-policy-contact > br {
	display: none !important;
}

body.reach-design-system.reach-policy-design-page
.reach-policy-article .reach-policy-contact a {
	color: var(--rs-color-ink) !important;
	font-weight: var(--rs-font-weight-bold) !important;
	overflow-wrap: anywhere !important;
	text-decoration-color: var(--rs-color-gold) !important;
	text-decoration-thickness: 2px !important;
	text-underline-offset: 3px !important;
}

body.reach-design-system.reach-policy-design-page
.reach-policy-article .reach-policy-contact a:hover {
	color: var(--rs-color-gold-hover) !important;
}

/* The final contact section should end where its content ends rather than
 * inheriting an extra paragraph margin plus oversized article bottom space. */
body.reach-design-system.reach-policy-design-page
.reach-policy-article > section#contact {
	min-height: 0 !important;
	padding-bottom: 0 !important;
}

body.reach-design-system.reach-policy-design-page
.reach-policy-article > section#contact > :last-child,
body.reach-design-system.reach-policy-design-page
.reach-policy-article > section:last-child > :last-child {
	margin-bottom: 0 !important;
}

body.reach-design-system.reach-policy-design-page
.reach-policy-article:has(> section#contact:last-child) {
	padding-bottom: clamp(1.25rem, 2.6vw, 1.875rem) !important;
}

/* Shipping checklist density. This intentionally overrides the older
 * page-embedded spacing without changing the checklist text or links. */
body.reach-design-system.reach-policy-design-page
.reach-shipping-checklist {
	align-items: start !important;
	background: var(--rs-color-surface-soft) !important;
	border: var(--rs-border-default) !important;
	border-radius: var(--rs-radius-lg) !important;
	box-shadow: none !important;
	box-sizing: border-box !important;
	contain-intrinsic-size: none !important;
	content-visibility: visible !important;
	display: grid !important;
	gap: clamp(1rem, 2.2vw, 1.5rem) !important;
	grid-template-columns: minmax(13rem, 0.66fr) minmax(0, 1.34fr) !important;
	min-height: 0 !important;
	padding: clamp(1.125rem, 2.4vw, 1.5rem) !important;
	width: 100% !important;
}

body.reach-design-system.reach-policy-design-page
.reach-shipping-checklist > div {
	align-self: start !important;
	border-right: var(--rs-border-default) !important;
	min-height: 0 !important;
	padding: 0 1.25rem 0 0 !important;
}

body.reach-design-system.reach-policy-design-page
.reach-shipping-checklist > div > span {
	margin-bottom: 0.375rem !important;
}

body.reach-design-system.reach-policy-design-page
.reach-shipping-checklist h2 {
	font-size: clamp(1.5rem, 2.5vw, 1.875rem) !important;
	line-height: 1.2 !important;
}

body.reach-design-system.reach-policy-design-page
.reach-shipping-checklist ul {
	display: grid !important;
	gap: 0.625rem !important;
	margin: 0 !important;
	padding: 0 !important;
}

body.reach-design-system.reach-policy-design-page
.reach-shipping-checklist li {
	line-height: 1.55 !important;
	margin: 0 !important;
	padding-left: 1.375rem !important;
}

@media (max-width: 767px) {
	body.reach-design-system.reach-policy-design-page
	.reach-policy-article .reach-policy-contact {
		min-height: 0 !important;
		padding: 4.25rem 1rem 1rem !important;
	}

	body.reach-design-system.reach-policy-design-page
	.reach-policy-article .reach-policy-contact::before {
		left: 1rem !important;
		top: 0.875rem !important;
	}

	body.reach-design-system.reach-policy-design-page
	.reach-shipping-checklist {
		gap: 1rem !important;
		grid-template-columns: 1fr !important;
		padding: 1rem !important;
	}

	body.reach-design-system.reach-policy-design-page
	.reach-shipping-checklist > div {
		border-bottom: var(--rs-border-default) !important;
		border-right: 0 !important;
		padding: 0 0 1rem !important;
	}
}

@media print {
	body.reach-design-system.reach-policy-design-page
	.reach-policy-article .reach-policy-contact {
		border: 1px solid #777 !important;
		box-shadow: none !important;
		padding: 0.75rem !important;
	}

	body.reach-design-system.reach-policy-design-page
	.reach-policy-article .reach-policy-contact::before {
		display: none !important;
	}

	body.reach-design-system.reach-policy-design-page
	.reach-shipping-checklist {
		background: transparent !important;
		border: 1px solid #777 !important;
	}
}
