/*
 * Warranty and FAQ pages (site redesign). Loaded on those two pages only, by
 * pages/pages.php.
 *
 * The pages' own look is written on the elements in pages.php, exactly as in
 * Eoghan's designs. This file holds only what cannot be written there:
 *   1. making the theme's page container full width;
 *   2. stopping the theme's general styles leaking into the page;
 *   3. phones (there is no phone design for these pages, so the values follow
 *      his phone design for the homepage).
 */

/* ---------- 1. Full width, straight under the menu ---------- */

body.dl-page #content.site-content {
	padding-top: 0;
	padding-bottom: 0;
}

body.dl-page .site-content .col-full {
	max-width: none;
	padding: 0;
}

/* The theme's own breadcrumb row; the design has its own in the grey band. */
body.dl-page .site-content .archive-header {
	display: none;
}

/* The theme's strip above the footer; the design has its own band there. */
body.dl-page .below-content {
	display: none;
}

/* ---------- 2. Keep the theme's general styles out ---------- */

.dlp {
	clear: both;
	font-size: 16px;
	line-height: normal;
	text-align: left;
}

.dlp *,
.dlp *::before,
.dlp *::after {
	box-sizing: border-box;
}

.dlp h1,
.dlp h2,
.dlp h3,
.dlp p,
.dlp span,
.dlp a,
.dlp li,
.dlp dt,
.dlp dd,
.dlp strong {
	font-family: inherit;
	text-transform: none;
}

.dlp h1,
.dlp h2,
.dlp h3 {
	padding: 0;
}

.dlp h1::before,
.dlp h1::after,
.dlp h2::before,
.dlp h2::after,
.dlp h3::before,
.dlp h3::after,
.dlp li::before {
	content: none;
}

.dlp a {
	color: #0D7A54;
	box-shadow: none;
}

.dlp a:hover {
	color: #0A5F41;
}

.dlp a.dlp-tile:hover {
	color: #0D7A54 !important;
}

.dlp a.dlp-btn:hover {
	color: #FFFFFF;
	background: #34A242 !important;
}

.dlp a.dlp-btn2:hover {
	border-color: #9AA1AB !important;
	background: #F6F7F9 !important;
	color: #16191D;
}

.dlp dl,
.dlp dt,
.dlp dd {
	padding: 0;
}

/* The theme removes the underline from every link; text links keep theirs. */
.dlp a:not([style*="text-decoration"]) {
	text-decoration: underline;
	text-underline-offset: 3px;
}

.dlp a:focus-visible {
	outline: 2px solid #16191D;
	outline-offset: 3px;
}

/* A jump link lands with the heading clear of the menu that stays on screen. */
.dlp .dlp-anchor {
	scroll-margin-top: 90px;
}

/* ---------- 3. Narrow screens ---------- */

/* Lists that sit in two columns go to one. */
@media (max-width: 820px) {
	.dlp .dlp-faq,
	.dlp .dlp-cov {
		grid-template-columns: minmax(0, 1fr) !important;
		grid-template-rows: none !important;
		grid-auto-flow: row !important;
	}

	.dlp .dlp-faq-item:not(:first-child) {
		border-top: 1px solid #EEF0F3 !important;
	}

	.dlp .dlp-cov-item {
		border-bottom: 1px solid #EEF0F3 !important;
	}

	.dlp .dlp-cov-item:last-child {
		border-bottom: 0 !important;
	}

	/* The title explainer: each part, then its meaning underneath. */
	.dlp .dlp-read-head {
		display: none !important;
	}

	.dlp .dlp-read-row {
		grid-template-columns: minmax(0, 1fr) !important;
	}
}

@media (max-width: 640px) {
	.dlp .dlp-hero-in {
		padding: 24px 20px 74px !important;
	}

	.dlp .dlp-lead {
		font-size: 17px !important;
		text-wrap: pretty !important;
	}

	/* The row of four becomes two by two, icon above the words. */
	.dlp .dlp-tiles {
		margin-top: -40px !important;
		padding: 0 20px !important;
	}

	.dlp .dlp-why-in {
		padding: 0 20px !important;
	}

	.dlp .dlp-tiles-row {
		display: grid !important;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		font-size: 14px !important;
	}

	.dlp .dlp-tile {
		flex-direction: column !important;
		justify-content: flex-start;
		gap: 8px !important;
		padding: 16px 8px !important;
		text-align: center;
	}

	.dlp .dlp-tile span {
		white-space: normal !important;
	}

	.dlp .dlp-tile:nth-child(odd) {
		border-left: 0 !important;
	}

	.dlp .dlp-tile:nth-child(n+3) {
		border-top: 1px solid #EEF0F3;
	}

	.dlp .dlp-tile .dlp-ico {
		width: 38px !important;
		height: 38px !important;
	}

	/* Sections. */
	.dlp .dlp-sec {
		padding: 44px 20px 48px !important;
	}

	.dlp .dlp-sec-claim {
		padding-bottom: 0 !important;
	}

	.dlp .dlp-h2 {
		font-size: 26px !important;
	}

	.dlp .dlp-faq,
	.dlp .dlp-cov {
		margin-top: 24px !important;
		padding-left: 20px !important;
		padding-right: 20px !important;
	}

	.dlp .dlp-cov-item {
		gap: 12px !important;
	}

	.dlp .dlp-cov-item > span:first-child {
		flex-basis: 22px !important;
	}

	.dlp .dlp-card,
	.dlp .dlp-read {
		padding: 22px !important;
	}

	.dlp .dlp-btn2 {
		align-self: stretch;
	}

	.dlp .dlp-why {
		padding: 32px 0 !important;
	}

	/* The contact box: words, then a full-width button. */
	.dlp .dlp-contact {
		flex-wrap: wrap !important;
		align-items: flex-start !important;
	}

	.dlp .dlp-contact p {
		flex: 1 1 0 !important;
	}

	.dlp .dlp-contact .dlp-btn {
		flex: 1 1 100% !important;
	}
}
