/**
 * UK Dissertation Child — skin for the plain-text pages.
 *
 * Some pages (How We Work, Guarantees, Refund Policy, Thanks) are rendered by
 * the parent as raw WordPress content inside .udh-article: headings and
 * paragraphs on a white page, with none of the bands, cards or gradients the
 * home page uses. This stylesheet, with udh-skin.js, lays that same content
 * out the way the home page lays its own out.
 *
 * Nothing here changes a word: the script moves the parent's own nodes into
 * bands and cards, and these rules style them. Tokens are read off the home
 * page: Sora headings, Manrope body, 36px bands, 24px cards, the UK navy/red
 * accents and the theme's own .grad gradient text.
 */

/* ---------- band ---------- */
.udhs-band {
	max-width: 1240px;
	margin: 0 auto 84px;
	padding: 60px 40px 66px;
	border-radius: 36px;
	background: linear-gradient(#fff, #f7faff);
}
.udhs-band.udhs-mint { background: #d6ebe6; }
.udhs-band.udhs-blue { background: #d8e4fc; }
.udhs-band.udhs-amber { background: #fbeacd; }

.udhs-band > h2,
.udhs-band > .udhs-h2 {
	font-family: Sora, system-ui, sans-serif;
	font-size: 38px;
	line-height: 1.15;
	font-weight: 800;
	color: #111a33;
	text-align: center;
	margin: 0 auto 14px;
	max-width: 900px;
}
.udhs-band > .udhs-lead {
	max-width: 820px;
	margin: 0 auto 34px;
	text-align: center;
	font-size: 16.5px;
	line-height: 1.75;
	color: #3a4666;
}
.udhs-band > .udhs-lead:last-child { margin-bottom: 0; }

/* ---------- card grid ---------- */
.udhs-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 20px;
	align-items: stretch;
}
.udhs-grid.udhs-g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.udhs-card {
	position: relative;
	background: #fff;
	border-radius: 24px;
	padding: 28px 26px;
	box-shadow: 0 18px 44px rgba(20, 40, 90, .08);
}
.udhs-card .udhs-ico {
	display: grid;
	place-items: center;
	width: 46px;
	height: 46px;
	border-radius: 16px;
	background: rgba(27, 88, 224, .10);
	color: #1b58e0;
	margin-bottom: 18px;
}
.udhs-card .udhs-ico.udhs-red { background: rgba(200, 16, 46, .10); color: #c8102e; }
.udhs-card .udhs-ico.udhs-navy { background: rgba(1, 33, 105, .10); color: #012169; }

/* the parent's own heading tags, restyled in place */
.udhs-card h2, .udhs-card h3, .udhs-card h4, .udhs-card .udhs-cardhead {
	font-family: Sora, system-ui, sans-serif;
	font-size: 20px;
	font-weight: 700;
	line-height: 1.3;
	color: #111a33;
	margin: 0 0 10px;
}
.udhs-card p, .udhs-card li {
	font-size: 15px;
	line-height: 1.7;
	color: #5a6684;
	margin: 0 0 10px;
}
.udhs-card p:last-child, .udhs-card li:last-child { margin-bottom: 0; }
.udhs-card ul, .udhs-card ol { margin: 0; padding-left: 20px; }
.udhs-card ul { list-style: disc; }
.udhs-card ol { list-style: decimal; }
.udhs-card li::marker { color: #1b58e0; }
.udhs-card li { margin-bottom: 8px; }
.udhs-card a { color: #1b58e0; }

/* ---------- numbered steps ---------- */
.udhs-steprow {
	display: flex;
	align-items: stretch;
	gap: 14px;
	flex-wrap: wrap;
	justify-content: center;
}
.udhs-stepcard {
	flex: 1 1 210px;
	min-width: 210px;
	position: relative;
	background: #fff;
	border-radius: 22px;
	padding: 24px 22px;
	box-shadow: 0 16px 40px rgba(20, 40, 90, .08);
}
.udhs-stepcard .udhs-num {
	display: grid;
	place-items: center;
	width: 40px;
	height: 40px;
	border-radius: 14px;
	font-family: Sora, system-ui, sans-serif;
	font-weight: 800;
	font-size: 16px;
	color: #fff;
	background: linear-gradient(135deg, #012169, #1b58e0);
	margin-bottom: 14px;
}
.udhs-stepcard .udhs-cardhead {
	font-family: Sora, system-ui, sans-serif;
	font-size: 17px;
	font-weight: 700;
	line-height: 1.3;
	color: #111a33;
	margin: 0 0 8px;
}
.udhs-stepcard p {
	font-size: 14.5px;
	line-height: 1.65;
	color: #5a6684;
	margin: 0;
}

/* ---------- trust chips ---------- */
.udhs-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	justify-content: center;
	margin: 0 0 6px;
}
.udhs-chip {
	display: inline-flex;
	align-items: center;
	gap: 9px;
	padding: 10px 18px;
	border-radius: 999px;
	background: #fff;
	box-shadow: 0 10px 26px rgba(20, 40, 90, .08);
	font-size: 14.5px;
	font-weight: 700;
	color: #111a33;
}
.udhs-chip svg { color: #00a89a; flex: none; }

/* ---------- hero ---------- */
.udhs-hero {
	max-width: 1240px;
	margin: 0 auto 40px;
	padding: 44px 40px 48px;
	border-radius: 36px;
	background: radial-gradient(1100px 420px at 12% -10%, rgba(27, 88, 224, .13), transparent 60%),
		linear-gradient(#fff, #f3f7ff);
	text-align: center;
}
.udhs-hero h1 {
	font-family: Sora, system-ui, sans-serif;
	font-size: clamp(1.9rem, 4.4vw, 46px);
	line-height: 1.12;
	font-weight: 800;
	color: #111a33;
	margin: 0;
}
.udhs-hero .udhs-crumb { margin-bottom: 16px; font-size: 13px; font-weight: 600; color: #6b7796; }
.udhs-hero .udhs-crumb a { color: #6b7796; text-decoration: none; }
.udhs-hero .udhs-crumb a:hover { color: #1b58e0; }

/* the theme's own gradient-text class, in case a page loads before it */
.udhs-skin .grad,
.udhs-hero .grad {
	background: linear-gradient(100deg, #1b58e0, #00a89a 55%, #ffb020 110%);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}

/* ---------- responsive ---------- */
@media (max-width: 1000px) {
	.udhs-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 680px) {
	.udhs-band, .udhs-hero { margin-left: 14px; margin-right: 14px; padding: 38px 20px 42px; border-radius: 26px; }
	.udhs-band { margin-bottom: 44px; }
	.udhs-band > h2, .udhs-band > .udhs-h2 { font-size: 27px; }
	.udhs-grid, .udhs-grid.udhs-g2 { grid-template-columns: minmax(0, 1fr); }
	.udhs-card { padding: 22px 20px; border-radius: 20px; }
	.udhs-stepcard { min-width: 0; flex: 1 1 100%; }
	/* long centred paragraphs are hard to read on a phone */
	.udhs-band > .udhs-lead { text-align: left; font-size: 15.5px; }
}
