/**
 * UK Dissertation Child — fixes from the independent design audit (21 Nov 2026).
 *
 * Four auditors who had never worked on this site opened every live page at
 * 1366px and 375px and measured what was wrong. Each rule below answers one
 * measured defect; the measurement is in the comment.
 *
 * The parent theme compiles its utilities with !important
 * (e.g. `.![color:#8b96b0] { color: rgb(139,150,176) !important }`), so a
 * child-theme override only wins with !important and a specific selector.
 * Nothing here is added to the parent theme.
 */

/* ------------------------------------------------------------------ *
 * 1. Readability
 * ------------------------------------------------------------------ */

/* Primary CTA gradient: white text over the light stop #3f8cff measured
   3.28:1 against the 4.5:1 it needs. #2f6fd0 lifts it to 4.88:1 and keeps
   the blue. 45 buttons on the home page alone.

   Scoped to the buttons that already carry that gradient. An earlier version
   also listed a bare `.cta`, which painted the blue over the SECONDARY
   buttons — the white ones with dark navy text ("Get Instant Help on
   WhatsApp", "Ask About Your Campus"). Dark navy on blue measured 2.89:1 and
   the label was effectively invisible. */
#submit,
.\!\[background-image\:linear-gradient\(120deg\,\#1b58e0\,\#3f8cff\)\],
/* [class][class] repeats on purpose: the per-page <style id="udh-page-utilities">
   writes this utility as `.udh-page .![...]` (0,2,0) and is printed after this
   file, so an equal-specificity rule loses the tie. (0,3,0) wins it. */
[class*="background-image:linear-gradient(120deg,#1b58e0"][class][class] {
	background-image: linear-gradient(120deg, #1b58e0, #2f6fd0) !important;
}

/* A .cta that sets its own solid background keeps it: never paint a gradient
   over a button the theme deliberately made white or light. */
#udh-main .cta[class*="background:#fff"],
.udhp .cta[class*="background:#fff"],
#udh-main .cta[class*="background-color:#fff"],
.udhp .cta[class*="background-color:#fff"] {
	background-image: none !important;
}

/* Muted label text: #8b96b0 on white measured 2.96:1. 57 elements on the
   home page, 36 on /experts/, at 11.5–12.5px so no large-text exemption.
   The single-class form below was LOSING: each page prints
   `.udh-page .![color:#8b96b0]` (0,2,0) with !important AFTER this file, so a
   (0,1,0) rule never applied and the text stayed at 2.96:1. Three attribute
   selectors give (0,3,0), which wins wherever the utility is used.
   #697185 measures 4.80:1 on white and 4.67:1 on the #f7faff bands. */
[class*="color:#8b96b0"][class][class] { color: #697185 !important; }

/* Breadcrumbs: two separate components, 2.60:1 and 3.81:1 on their bands.
   Same specificity problem as above — the breadcrumb link sits on the
   #e8edf8 band, where #6b7796 is 3.81:1 and 13px/600 needs 4.5:1.
   #5f6a86 measures 4.60:1 there. */
nav.inline-flex > span.text-primary,
nav.inline-flex > a { color: #4d5570 !important; }
[class*="color:#6b7796"][class][class] { color: #5f6a86 !important; }

/* Hero trust pills and the nav rating: 4.14:1, 3.97:1 and 4.36:1 at 13px bold. */
.\!\[color\:\#00795e\] { color: #006b53 !important; }
.\!\[color\:\#96650b\] { color: #87590a !important; }
.\!\[color\:\#007a5f\] { color: #007056 !important; }

/* Text set in translucent white on the teal panel: the alpha alone drops it
   to 3.98:1, while solid white on the same teal is 4.87:1. */
.\!\[color\:rgba\(255\,255\,255\,0\.85\)\],
.\!\[color\:rgba\(255\,255\,255\,0\.82\)\] { color: #fff !important; }
.\!\[color\:rgba\(255\,255\,255\,0\.7\)\] { color: rgba(255, 255, 255, .94) !important; }

/* ------------------------------------------------------------------ *
 * 2. Rows that break
 * ------------------------------------------------------------------ */

/* "How To Order" steps: at 1366 four cards sat at 243px each and the fifth
   wrapped alone onto its own row at 1160px — 4.8x wider than its siblings.
   Letting all five share the row keeps them equal. */
@media (min-width: 1101px) {
	.steprow > .card.stepcard {
		flex: 1 1 0 !important;
		min-width: 0 !important;
	}
}
@media (max-width: 1100px) {
	.steprow > .card.stepcard { flex: 1 1 calc(33.333% - 20px) !important; min-width: 0 !important; }
	.steprow > .steparrow { display: none !important; }
}

/* A four-column card grid holding 17 cards leaves the last one alone in a
   quarter-width row. Only fires when there really is a single orphan.
   MUST stay inside the min-width query: the parent collapses .g3/.g4 to one
   column at 720px, and naming an explicit `grid-column: 2` there creates a
   second, implicit track. The explicit 1fr track then resolved to 0px, so on
   a phone the cards without an explicit column rendered 36px wide underneath
   the 327px one — four overlapping cards per grid on the subject pages. */
@media (min-width: 981px) {
	.g4 > *:last-child:nth-child(4n + 1) {
		grid-column: 2 / span 2 !important;
		justify-self: center !important;
		width: 100% !important;
		max-width: 320px !important;
	}
	.g3 > *:last-child:nth-child(3n + 1) {
		grid-column: 2 !important;
		justify-self: center !important;
		width: 100% !important;
	}
}

/* Wrapped rows of pills left one chip stranded on the last line
   (2+3+1 on the home hero, 3+1 on /about-us/, 3+3+3+2+1 on /experts/). */
.sec.hero div.\!\[display\:flex\].\!\[flex-wrap\:wrap\],
.sec.band div.\!\[display\:flex\].\!\[flex-wrap\:wrap\] {
	justify-content: center !important;
}

/* ------------------------------------------------------------------ *
 * 3. Phone
 * ------------------------------------------------------------------ */

@media (max-width: 560px) {
	/* Tap targets measured 35px (header "Order Now"), 22px (22 footer links,
	   the email and phone links) and 20px (breadcrumb). 44px is the floor. */
	.hdr-actions > a {
		min-height: 44px !important;
		padding: 11px 18px !important;
		display: inline-flex !important;
		align-items: center !important;
	}
	.footgrid div.\!\[display\:grid\] > a,
	.footgrid p > a {
		min-height: 44px !important;
		display: flex !important;
		align-items: center !important;
	}
	nav.inline-flex > a {
		min-height: 40px !important;
		display: inline-flex !important;
		align-items: center !important;
	}

	/* Price tables scroll correctly but 305px of each sits off-screen with
	   nothing to show there is more. A fade at the edge says so. */
	div.tablewrap { position: relative !important; }
	div.tablewrap::after {
		content: "" !important;
		position: absolute !important;
		top: 0; right: 0; bottom: 0;
		width: 36px !important;
		pointer-events: none !important;
		background: linear-gradient(90deg, rgba(255, 255, 255, 0), #fff) !important;
		border-radius: 0 18px 18px 0 !important;
	}
}

/* ------------------------------------------------------------------ *
 * 4. Long pages
 * ------------------------------------------------------------------ */

/* On /blogs/ the sidebar is 1064px tall beside a 2817px column, leaving
   roughly 1750px of empty track. It is sticky on the home page already. */
@media (min-width: 900px) {
	#udh-main div.split > div.media,
	.udhp div.split > div.media {
		position: sticky !important;
		top: 96px !important;
		align-self: start !important;
	}
}

/* The two blog cards that have no featured image draw a bare inline SVG
   where the other eight show a photo. A tinted ground makes the row even. */
#udh-post-grid > div > svg { background: #e8edf8 !important; }

/* ================================================================== *
 * Second audit pass — service and policy pages
 * ================================================================== */

/* The .grad headings run blue → teal → amber, and the amber tail lands on
   the last word of every highlighted phrase: #ffb020 measured 1.56:1 on the
   pale blue band (1.43 on the deeper one). Headings are 36px bold, so they
   still need 3:1. Keeping the same three-colour sweep and deepening only the
   amber brings the tail to 3.12–3.99:1 on every band the site uses. */
.grad {
	background-image: linear-gradient(100deg, #1b58e0, #00a89a 55%, #b4700a 110%) !important;
}

/* The big gradient statistics ("19,000+", "48 hrs") end on #00a89a, which is
   2.97:1 on white where 3:1 is the floor for text that size.
   Scoped to elements that actually clip their background to the text — an
   earlier, broader version of this rule painted a gradient block behind the
   plain labels sitting beside them. */
#udh-main [class*="background-clip:text"][class*="#00a89a"],
.udhp [class*="background-clip:text"][class*="#00a89a"] {
	background-image: linear-gradient(100deg, #1b58e0, #00756b) !important;
}

/* Struck-through "was" prices: #a8b3c9 on white measured 2.11:1 at 13.5px. */
.g3 > .card > span > s { color: #626d87 !important; }

/* Body copy on the tinted bands measured 2.38:1 and 2.83:1 in places. */
.sec.band p > span.\!\[color\:\#8b96b0\],
.rowscroll > .card p > span { color: #46506b !important; }

/* The comparison panels are `align-items: start`, so the short left card
   leaves up to 478px of bare band beside the table (measured 414px vs 892px
   on /dissertation-editing-service/; the same on all nine service pages). */
@media (min-width: 1024px) {
	.vsgrid { align-items: start !important; }
}

/* A three-column grid holding four cards strands the fourth alone, with two
   thirds of the last row empty. Two columns splits them 2 + 2 instead. */
@media (min-width: 1024px) {
	.g3:has( > :last-child:nth-child(4)) {
		grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
	}
}

/* The policy pages strip the bullet off their lists but leave the 20px
   indent, so the items read as stray paragraphs. Put a marker back. */
main .sec ul[class*="padding-left"] > li { position: relative !important; }
main .sec ul[class*="padding-left"] > li::before {
	content: "" !important;
	position: absolute !important;
	left: -14px;
	top: .62em;
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: #1b58e0 !important;
}

/* The mobile menu button declares 46px and computes 38px. */
@media (max-width: 767px) {
	header label.burger {
		width: 44px !important;
		height: 44px !important;
	}
}

/* ================================================================== *
 * Third audit pass — subject pages
 *
 * Selectors here are `#udh-main X[class]`, specificity (1,1,1), which beats
 * the per-page `.udh-page .![font-size:48px]` utilities at (0,2,0). They
 * deliberately do not name `.udh-page`: /cambridge-dissertation-help/ and
 * /digital-marketing-dissertation-help/ are built without that wrapper, and
 * every fix has to reach them too.
 * ================================================================== */

/* The biggest defect on the site. Each page prints its own
   <style id="udh-page-utilities"> whose responsive block sets
   `.udh-page h1 { font-size: 25px }` for phones — specificity (0,1,1) —
   while the utility it has to beat is `.udh-page .![font-size:48px]`,
   specificity (0,2,0). Both carry !important, so the utility always wins
   and the breakpoint never applies. Measured on /finance-dissertation-help/
   at 375px: h1 renders at 48px over 7 lines, 370px tall — 46% of the screen,
   pushing the hero's call to action below the fold. 10 of 11 subject pages
   are affected.
   `#udh-main h1[class]` is (1,1,1) and wins cleanly. */
/* Scoped back to .udh-page on purpose. The dead mobile scale only exists on
   pages that HAVE that wrapper: there the (0,2,0) utility beats the page's own
   (0,1,1) rule. On the two pages built without it (/cambridge-…/ and
   /digital-marketing-…/) the utility never applies, the parent's own 25px rule
   already works, and forcing 28px made the heading BIGGER — measured
   25px/83px -> 28px/96px on Cambridge. */
@media (max-width: 720px) {
	#udh-main .udh-page h1[class] { font-size: 32px !important; line-height: 1.14 !important; }
	#udh-main .udh-page h2[class] { font-size: 25px !important; line-height: 1.2 !important; }
	#udh-main .udh-page h3[class] { font-size: 17px !important; }
}
@media (max-width: 420px) {
	#udh-main .udh-page h1[class] { font-size: 28px !important; }
	#udh-main .udh-page h2[class] { font-size: 23px !important; }
}

/* The "Chat On WhatsApp" link under the order form was never styled: no
   background, no border, no padding, 21px tall, directly below a fully
   designed 52px button. On 10 subject pages. */
#udh-main #quote > a,
.udhp #quote > a {
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	gap: 8px !important;
	min-height: 48px !important;
	margin-top: 12px !important;
	padding: 12px 18px !important;
	border: 1.5px solid #00795e !important;
	border-radius: 14px !important;
	background: rgba(0, 196, 180, .10) !important;
	color: #005c47 !important;
	font-weight: 700 !important;
	box-sizing: border-box !important;
}

/* FAQ rows: the padding sits on <details>, not on <summary>, so only the
   middle 25px of each row is clickable. 16 FAQs on every subject page. */
#udh-main details[class] > summary,
.udhp details[class] > summary {
	min-height: 40px !important;
	align-items: center !important;
	padding-block: 8px !important;
}

/* The nursing template's stat row keeps four columns at 375px — cells of
   73px with labels wrapping over five lines. It is the one grid class the
   page's own mobile rule forgot. */
@media (max-width: 720px) {
	#udh-main .statrow[class],
	.udhp .statrow[class] { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 14px !important; }
}
@media (max-width: 420px) {
	#udh-main .statrow[class],
	.udhp .statrow[class] { grid-template-columns: minmax(0, 1fr) !important; }
}

/* Icon tiles come in two sizes within the same rows of cards. */
#udh-main .ico[class],
.udhp .ico[class] { width: 46px !important; height: 46px !important; border-radius: 16px !important; }

/* Small text measured against its real painted background. */
#udh-main .rowscroll a.card p > span[class],
.udhp .rowscroll a.card p > span[class] { color: #5a6684 !important; }
#udh-main .g2 .card div div p[class],
.udhp .g2 .card div div p[class] { color: #5a6684 !important; }
#udh-main section.band > p[class],
.udhp section.band > p[class],
#udh-main section.band > div > p[class],
.udhp section.band > div > p[class] { color: #4d5878 !important; }

/* Hero trust chips, measured on their composited backgrounds. */
#udh-main section.hero span[class*="#00795e"],
.udhp section.hero span[class*="#00795e"] { color: #005c47 !important; }
#udh-main section.hero span[class*="#96650b"],
.udhp section.hero span[class*="#96650b"] { color: #7a5208 !important; }

/* A CTA band between sections carries both an 84px gap and a 56px bottom
   padding on phones, three times the 44px rhythm around it. */
@media (max-width: 720px) {
	#udh-main section.sec:not(.band)[class],
	.udhp section.sec:not(.band)[class] { margin-bottom: 44px !important; padding-bottom: 0 !important; }
}

/* ================================================================== *
 * Fourth audit pass — city pages
 * ================================================================== */

/* Form fields compute 14.5px on phones. iOS zooms the page whenever a field
   under 16px takes focus, which throws the layout sideways mid-order. */
@media (max-width: 720px) {
	#udh-main form input[class],
	.udhp form input[class],
	#udh-main form select[class],
	.udhp form select[class],
	#udh-main form textarea[class],
	.udhp form textarea[class] { font-size: 16px !important; }
}

/* Star ratings on review cards: #ffb020 on white measured 1.83:1 at 13px —
   the lowest ratio found anywhere on the site. Three auditors flagged it
   independently. Still gold, just deep enough to read. */
#udh-main [class*="color:#ffb020"],
.udhp [class*="color:#ffb020"] { color: #9a6400 !important; }

/* Expert avatar initials sit on a gradient whose teal end is 2.97:1. */
#udh-main .rowscroll .card span[class*="#00a89a"],
.udhp .rowscroll .card span[class*="#00a89a"] {
	background-image: linear-gradient(140deg, #17439e, #00705f) !important;
}

/* Comparison-table ticks and crosses, 14.5px bold on white. */
#udh-main .tablewrap td[class*="color:#00a884"],
.udhp .tablewrap td[class*="color:#00a884"] { color: #047857 !important; }
#udh-main .tablewrap td[class*="color:#d2586a"],
.udhp .tablewrap td[class*="color:#d2586a"] { color: #b3344a !important; }

/* Struck-through "was" prices, 2.11:1. */
#udh-main [class*="color:#a8b3c9"],
.udhp [class*="color:#a8b3c9"] { color: #5a6684 !important; }

/* Body copy on the pale blue bands lands exactly on 4.48:1. */
#udh-main .band p[class*="color:#5a6684"],
.udhp .band p[class*="color:#5a6684"] { color: #4e5872 !important; }

/* FAQ rows: the padding lives on <details>, so only the middle 25px of a
   65px row responds to a tap. A taller summary gives a real target without
   moving the card's own padding. */
#udh-main details[class] > summary,
.udhp details[class] > summary {
	min-height: 44px !important;
	display: flex !important;
	align-items: center !important;
}

/* Three-column grids holding four cards strand the fourth; six sections
   across five city pages, plus several service and subject pages. */
@media (min-width: 981px) {
	#udh-main .g3[class]:has( > :last-child:nth-child(4)),
	.udhp .g3[class]:has( > :last-child:nth-child(4)) {
		grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
	}
}

/* The hero's secondary "Chat On WhatsApp" link is unstyled on the city
   pages too, at 21px tall with no padding. */
@media (max-width: 720px) {
	#udh-main .sec.hero > div:nth-of-type(2) > a[class],
	.udhp .sec.hero > div:nth-of-type(2) > a[class] {
		min-height: 48px !important;
		padding: 12px 16px !important;
		border: 1px solid #00604a !important;
		border-radius: 12px !important;
		display: inline-flex !important;
		align-items: center !important;
		justify-content: center !important;
	}
	/* logo, breadcrumb and footer links all sat between 19px and 24px */
	header > div > a { display: inline-flex !important; align-items: center !important; min-height: 44px !important; }
	#udh-main > .sec > a,
	.udhp > .sec > a { display: inline-block !important; padding: 10px 0 !important; }
}

/* ================================================================== *
 * Fifth pass — the items held back for the owner's decision
 * ================================================================== */

/* Cards drifted apart: one subject page carried five paddings (16px, 24px,
   24px 22px, 26px 24px, 28px 26px), four radii (18/20/22/24px) and five
   shadows across 46 cards, with icon tiles at both 44px and 46px. One set
   of values for the card rows that sit side by side. */
#udh-main .g2 > .card,
.udhp .g2 > .card,
#udh-main .g3 > .card,
.udhp .g3 > .card,
#udh-main .g4 > .card,
.udhp .g4 > .card,
#udh-main .rowscroll > .card,
.udhp .rowscroll > .card {
	padding: 26px 24px !important;
	border-radius: 22px !important;
	box-shadow: 0 16px 40px rgba(20, 40, 90, .08) !important;
}
@media (max-width: 560px) {
	#udh-main .g2 > .card,
	.udhp .g2 > .card,
	#udh-main .g3 > .card,
	.udhp .g3 > .card,
	#udh-main .g4 > .card,
	.udhp .g4 > .card,
	#udh-main .rowscroll > .card,
	.udhp .rowscroll > .card { padding: 20px 18px !important; border-radius: 18px !important; }
}

/* Footer headings keep the look they had when they were <h5>. */
footer .footgrid h2.udhc-footheading {
	font-size: 15px !important;
	font-weight: 700 !important;
	color: #fff !important;
	margin-bottom: 16px !important;
	line-height: 1.3 !important;
}

/* The carousel's previous/next buttons were printed above the row of cards.
   udh-polish.js moves them below it; the spacing has to follow them. */
#udh-main .udhc-scrollnav,
.udhp .udhc-scrollnav {
	display: flex !important;
	justify-content: center !important;
	gap: 10px !important;
	margin-top: 22px !important;
	margin-bottom: 0 !important;
}


/* ------------------------------------------------------------------ *
 * The nine pages the child theme renders itself
 * ------------------------------------------------------------------ */

/* Their two-column sections use `tw-items-start`, so the shorter column
   leaves a ragged gap beside the taller one: measured 17–197px across the
   four previewed pages, three sections each (worst: 431px of prose beside a
   234px card on the Law page). The theme already treats this as a defect on
   the parent's pages through the .vsgrid rule, so the same treatment here —
   the columns share a height and the text column centres against the card. */
@media (min-width: 1024px) {
	.udhp .udhp-split { align-items: start !important; }
}

/* "Chat & Save on WhatsApp" and the other translucent white panels sit on a
   navy band: white text over rgba(255,255,255,.16) measured 4.39:1, just
   under the 4.5:1 it needs at 15px. Thinning the overlay keeps the glass look
   and lets the navy behind it carry the contrast. */
[class*="background:rgba(255,255,255,0.16)"][class][class],
[class*="background:rgba(255,255,255,0.14)"][class][class] {
	background-color: rgba(255, 255, 255, .09) !important;
}

/* The hamburger now lives at the end of .hdr-actions, right of "Order Now",
   so the parent's `.navtoggle:checked ~ label` sibling swap can no longer
   reach it. udh-polish.js mirrors the state onto <header>. */
@media (max-width: 980px) {
	header .hdr-actions > label.burger { order: 99 !important; margin-left: 2px !important; }
	header.udhc-nav-open label.burger .b-open { display: none !important; }
	header.udhc-nav-open label.burger .b-close { display: block !important; }
}

/* The two buttons udh-polish.js lifts out of a card grid: the theme's own
   .ctarow, centred under the cards, wrapping on a narrow screen. */
.udhc-gridcta {
	display: flex !important;
	justify-content: center !important;
	flex-wrap: wrap !important;
	gap: 14px !important;
	margin-top: 26px !important;
}

/* The hero's quote form, moved up the page on a phone by udh-polish.js. */
@media (max-width: 767px) {
	.udhc-hero-form-up {
		margin-top: 22px !important;
		margin-bottom: 26px !important;
	}
}

/* A band heading lifted out of its column by udh-polish.js: its own row
   across both columns, centred, with the two columns level beneath it. */
.udhc-splithead {
	grid-column: 1 / -1 !important;
	text-align: center !important;
	margin: 0 auto 22px !important;
	max-width: 920px !important;
}
@media (max-width: 767px) {
	.udhc-splithead {
		text-align: left !important;
		margin-bottom: 14px !important;
	}
}

/* The app band is not a two-column story with a heading over it — it is a
   line of copy with the store badges beside it, so its heading reads as a
   left-hand opening line. It still has to span both columns (the parent
   leaves it in column one, which pushes the badges up beside it and the
   copy underneath), but it sits left and keeps no gap of its own: the
   band's own 32px row gap is the whole space below it. */
.appband > .udhc-splithead {
	text-align: left !important;
	margin: 0 !important;
	max-width: none !important;
}

/* Header: "Log in" removed at every width. */
header .hdr-login { display: none !important; }

/* On a phone the logo and the actions needed 315px of a 311px row — four
   pixels over — so "Order Now" and the menu button wrapped onto a line of
   their own under the logo. A tighter side padding and gap puts the logo on
   the left and the two buttons on the right of the same row. */
@media (max-width: 767px) {
	header .udhc-hdrbar {
		gap: 12px !important;
		padding-left: 16px !important;
		padding-right: 16px !important;
	}
	/* The row must still be allowed to wrap: the nav panel is a third child
	   with flex-basis 100%, and forcing nowrap kept it on the same line and
	   gave the page 185px of horizontal scroll whenever the menu was open.
	   Capping the logo leaves the logo and the two buttons comfortably
	   inside one row, so only the nav panel ever wraps. */
	header .udhc-hdrbar > a:first-child {
		flex: 0 1 auto !important;
		min-width: 0 !important;
		max-width: 140px !important;
	}
	header .udhc-hdrbar > a:first-child img { max-width: 100% !important; height: auto !important; }
	header .udhc-hdrbar > .hdr-actions {
		margin-left: auto !important;
		flex: 0 0 auto !important;
	}
}


/* ------------------------------------------------------------------ *
 * A carousel's heading and intro, once the arrows have left their row.
 * The parent pushed them to one side with justify-content:space-between
 * only to make room for the buttons; with the buttons gone the row
 * reads better centred over the cards it introduces. Three class
 * selectors, because the page's own utility block loads after this
 * file and carries !important at two.
 * ------------------------------------------------------------------ */
.udhc-carohead[class][class] {
	justify-content: center !important;
	text-align: center !important;
}
.udhc-carohead[class][class] > * {
	margin-left: auto !important;
	margin-right: auto !important;
}

/* ------------------------------------------------------------------ *
 * The illustration panels. Some of the parent's artwork draws its own
 * light card behind it and some does not, so on a tinted band the bare
 * ones float with their decorative circles bleeding into the
 * background and read as unfinished. Every .media now gets the same
 * card the rest of the page uses — white, 22px radius, the site's own
 * shadow — capped so a single-column layout does not blow it up into
 * an empty white field around a small drawing.
 * ------------------------------------------------------------------ */
.media[class][class] {
	background: #fff !important;
	border: 1px solid rgba(1, 33, 105, 0.07) !important;
	border-radius: 22px !important;
	padding: 24px !important;
	box-shadow: 0 18px 44px rgba(20, 40, 90, 0.08) !important;
	/* width:100% matters: auto margins alone turn a stretched grid item
	   into a shrink-to-fit box, which shrank the panel to the drawing's
	   own 300px inside a 502px column. */
	width: 100% !important;
	max-width: 560px !important;
	margin-left: auto !important;
	margin-right: auto !important;
	place-items: center !important;
}
.media[class][class] > svg,
.media[class][class] > img {
	width: 100% !important;
	height: auto !important;
	display: block !important;
}
@media (max-width: 767px) {
	.media[class][class] { padding: 16px !important; }
}

/* ------------------------------------------------------------------ *
 * The sticky short column (udh-polish.js decides which one). It sits
 * under the 80px sticky header with a little air, and align-self:start
 * keeps it the height of its own content so it has room to travel
 * inside its grid area.
 * ------------------------------------------------------------------ */
@media (min-width: 1024px) {
	.udhc-stickycol[class][class] {
		position: sticky !important;
		top: 100px !important;
		align-self: start !important;
	}
}

/* ------------------------------------------------------------------ *
 * About Us without its hero form: one column, the eyebrow, heading and
 * buttons centred over it, and the intro paragraphs centred under it.
 * The block is capped so they do not run the full 1240px. The stat
 * cards keep their own left-aligned text.
 * ------------------------------------------------------------------ */
.udhc-herosolo[class][class] {
	grid-template-columns: minmax(0, 1fr) !important;
}
.udhc-herosolo[class][class] > * {
	max-width: 980px !important;
	margin-left: auto !important;
	margin-right: auto !important;
}
.udhc-herosolo[class][class] h1,
.udhc-herosolo[class][class] > * > p {
	text-align: center !important;
}
.udhc-herosolo[class][class] > * > span:first-child {
	display: flex !important;
	width: -moz-fit-content !important;
	width: fit-content !important;
	margin-left: auto !important;
	margin-right: auto !important;
}
.udhc-herosolo[class][class] .ctarow {
	justify-content: center !important;
}

/* ------------------------------------------------------------------ *
 * The centred hero text on the read-first pages. Paragraphs are capped
 * below the block width, because a centred line is hard to follow once
 * it runs much past 70 characters.
 * ------------------------------------------------------------------ */
.udhc-herocentre[class][class] {
	text-align: center !important;
}
.udhc-herocentre[class][class] > p {
	max-width: 760px !important;
	margin-left: auto !important;
	margin-right: auto !important;
}
.udhc-herocentre[class][class] > span:first-child {
	display: flex !important;
	width: -moz-fit-content !important;
	width: fit-content !important;
	margin-left: auto !important;
	margin-right: auto !important;
}
.udhc-herocentre[class][class] .ctarow {
	justify-content: center !important;
}

/* ------------------------------------------------------------------ *
 * When the lifted band header is a whole block — kicker, rule, heading
 * and intro — its parts need centring too, and the intro is capped so
 * a centred line stays readable.
 * ------------------------------------------------------------------ */
.udhc-splithead[class][class] > span {
	margin-left: auto !important;
	margin-right: auto !important;
}
.udhc-splithead[class][class] > p {
	max-width: 760px !important;
	margin-left: auto !important;
	margin-right: auto !important;
}
/* a band whose text column emptied into that header runs as one column */
.udhc-splitsolo[class][class] {
	grid-template-columns: minmax(0, 1fr) !important;
}
.udhc-splitsolo[class][class] > :not(.udhc-splithead) {
	max-width: 860px !important;
	margin-left: auto !important;
	margin-right: auto !important;
	width: 100% !important;
}

/* ---------------------------------------------------------------------------
   Independent audit, 24 Nov 2026 — two blockers found by an auditor that had
   not designed any of this, then re-measured here before being applied.
   --------------------------------------------------------------------------- */

/* The two floating buttons never set their own text colour, so the label
   inherited the global link blue: rgb(27,88,224) on the red gradient measured
   1.01:1 and on the navy gradient 2.47:1 — the site's primary micro-CTA was
   effectively unreadable on all 48 pages. White takes them to 5.88:1 and
   14.76:1. Three class selectors, because each page prints its own utility
   block with !important after this file. */
.udhc-fab[class][class],
.udhc-fab[class][class] span,
.udhc-fab[class][class] svg {
	color: #fff !important;
}
.udhc-fab[class][class] svg {
	fill: currentColor !important;
	stroke: currentColor;
}

/* A card grid collapsing to one column on a phone still had one child with an
   explicit grid-column-start of 2. That forces a second track to exist, so the
   single `minmax(0,1fr)` track resolved to 0px: cards landing in it rendered
   36px wide — padding only — with their text spilling across the neighbouring
   card, up to 1113px tall. Measured on 7 pages. Clearing the placement on
   children that do not ask to span lets every card take the full width; the
   ones that genuinely span (a subjects row, a lifted band header) are excluded
   by name and by their own span utility, and were verified still spanning. */
@media (max-width: 720px) {
	.g2 > *:not([class*="col-span"]):not([class*="col-start"]):not(.udhc-splithead),
	.g3 > *:not([class*="col-span"]):not([class*="col-start"]):not(.udhc-splithead),
	.g4 > *:not([class*="col-span"]):not([class*="col-start"]):not(.udhc-splithead),
	.g5 > *:not([class*="col-span"]):not([class*="col-start"]):not(.udhc-splithead),
	.gg2 > *:not([class*="col-span"]):not([class*="col-start"]):not(.udhc-splithead) {
		grid-column: auto !important;
		grid-row: auto !important;
	}
}

/* One app band on the home page ran a teal gradient while the other three ran
   navy, so it was the odd one out AND the only one that failed contrast: white
   heading and body copy measured 2.20:1 against the teal start, and its
   "Contact Now" row 2.08:1. Giving it the same navy gradient the band directly
   above it uses fixes the mismatch and the contrast in one change — 14.53:1
   after. Navy is also the brand colour; the teal never was. */
[class*="linear-gradient(130deg,#00c4b4"][class][class] {
	background-image: linear-gradient(130deg, #0f2461, #1b58e0 55%, #012169) !important;
}

/* Links inside a dark app band inherited the global link blue (rgb(27,88,224))
   instead of the band's own white — the same defect as the floating buttons.
   Anything carrying its own background or colour utility is left alone, so the
   white "Contact Now" button keeps its navy text. */
.appband[class*="color:#fff"] a:not([class*="background"]):not([class*="![color"]) {
	color: #fff !important;
}

/* The gradient heading treatment runs blue to teal to amber. The amber tail was
   deepened in the 1.7.0 audit, but the teal middle was missed: #00a89a measured
   2.32-2.97:1 across the six band backgrounds it is used on, so the right-hand
   half of every highlighted phrase faded out — on 26 pages, and at body size on
   10 of them. #00695c keeps the same hue and reads at 5.17:1 at worst. */
.grad[class][class] {
	background-image: linear-gradient(100deg, #1b58e0, #00695c 55%, #b4700a 110%) !important;
}

/* Breadcrumb "Home" measured 20px tall on a phone — the one standalone tap
   target on the site under 44px. (Inline links inside a paragraph are exempt;
   the 44px rule is for standalone controls.) */
@media (max-width: 767px) {
	.sec[class*="padding:18px_32px_0"] a[class] {
		min-height: 44px !important;
		display: inline-flex !important;
		align-items: center !important;
	}
	footer a[class*="w-10"][class*="h-10"] {
		min-width: 44px !important;
		min-height: 44px !important;
	}
}

/* City hero stat cards. `.g4` keeps a hard 4-column track, but on the city
   pages it sits inside the hero's 592px left column, so each card's content box
   came out at 91px — "120,000+" at 23px needs 115px and ran to the card's
   rounded edge with no padding left, and "1 Million+" wrapped to two lines,
   which pushed that one card's label 25px below its three neighbours. Measured
   on all ten city pages; six only escaped because today's numbers are short.
   Two columns inside a hero gives each number ~240px. Scoped above the mobile
   breakpoint so the single-column phone layout is untouched. */
@media (min-width: 721px) {
	section.hero .g4[class][class] {
		grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
	}
}

/* Subject chips measured 43.8px tall and the contact page's social chips 43.0px
   — under the 44px tap minimum by a fraction, on eight city pages and
   /contact-us/. Widths were already fine, so only the height needed clearing. */
@media (max-width: 767px) {
	a[class*="border-radius:99px"][class][class] {
		min-height: 44px !important;
		display: inline-flex !important;
		align-items: center !important;
	}
}

/* In-page anchors landed under the 80px sticky header. The only
   scroll-padding-top on the page came from the signed-in admin bar, so a real
   visitor got none at all. #udh-quote-form already carried its own 110px, but
   every other anchor relied on that admin-bar value. */
:root[class] {
	scroll-padding-top: 96px !important;
}

/* The two floating buttons sit 24px from the bottom and were covering the
   footer's legal disclaimer by 123x48px on every page. The footer needs to end
   above them, not behind them. */
footer[class] {
	padding-bottom: 108px !important;
}

/* ===================================================================== *
   Pre-activation sweep, 24 Nov 2026 — three independent agents measured
   all 55 pages at 1366 and 390. No blockers. These are the contrast and
   tap-target items they found, each against a measured ratio.
   ===================================================================== */

/* The step numbers "01", "02"… on the home page read at 1.71:1 — the worst
   ratio measured anywhere on the site, effectively invisible on white. */
[class*="color:#b9c6e4"][class][class] {
	color: #5a6684 !important;
}

/* A second teal call-to-action panel, missed when its sibling was fixed
   earlier. White text on the gradient's light stop measured 2.20:1, and the
   "Contact Now" button 2.07:1. The same navy the other panels use takes it
   to 14.53:1, and navy is the brand colour the teal never was. */
[class*="linear-gradient(140deg,#00c4b4"][class][class] {
	background-image: linear-gradient(140deg, #0f2461, #17356f 60%, #0f2461) !important;
}

/* Pale cyan on blue: 3.16:1 on the proofreading badge, 3.74:1 on the blog
   link. A near-white keeps the cool tint and reads at 4.51:1. */
[class*="color:#7fd8ff"][class][class] {
	color: #e8f4ff !important;
}

/* Comparison-table marks. The tick measured 3.03:1 and the cross 3.93:1 on
   white, both under the 4.5:1 that text this size needs. The cross moves to
   the brand red, which also makes the table read in the site's own colours. */
[class*="color:#00a884"][class][class] {
	color: #00796b !important;
}
[class*="color:#d2586a"][class][class] {
	color: #c8102e !important;
}

/* The "/5" after a rating, on the nine child-rendered pages: 2.99:1 against
   a 3.0 requirement — failing by a hundredth, but failing. */
[class*="color:#7f95c7"][class][class],
.udhp .tw-text-navy-300[class] {
	color: #6b7796 !important;
}

/* Breadcrumb separators and the step badges on the FAQs page. */
[class*="color:#9092ab"][class][class] {
	color: #5f6a86 !important;
}
.udh-page [class*="color:#6b7796"][class][class] {
	color: #4d5873 !important;
}

/* Phone tap targets. Everything below was measured at 390px: the chapter
   checkbox chips came out 35.5px, the legal pages' contents links 39px, and
   the blog category chips only 15px because the padding sits on the parent
   while the link itself is inline. 44px is the floor for a control a thumb
   has to hit. The blog search field was the one input left under 16px, which
   is what makes iOS zoom the page the moment it takes focus. */
@media (max-width: 767px) {
	label[class*="rounded-full"][class*="px-3"][class] {
		min-height: 44px !important;
	}
	.udhp nav[class*="sticky"] a[class],
	aside a[class*="padding:9px"] {
		min-height: 44px !important;
		display: flex !important;
		align-items: center !important;
	}
	#udh-post-filters a[class],
	#udh-main [class*="border-radius:99px"] > a[class] {
		display: inline-flex !important;
		align-items: center !important;
		min-height: 44px !important;
	}
	input[type="search"][class],
	#udh-main input[type="search"],
	.udhp input[type="search"] {
		font-size: 16px !important;
	}
}
