/*
 * [gdv_services]: one block per audience, alternating the page's own ground
 * and --gdv-ui-band. Colours and type come from gdv-public-ui's tokens, and
 * the label is its .gdv-ui-kind; no dark-scheme colour is declared here. The
 * only link with a look of its own is a service's name, as in .gdv-ui-columns.
 *
 * Measured, light scheme then dark:
 *   body text           --gdv-ui-text #444444 on #ffffff 9.74:1, on the band #fafbf5 9.36:1; #fcfcfc on #2a2a2a 13.99:1
 *   reviewer line       --gdv-ui-text-faint #666666 on #ffffff 5.74:1, on the band 5.52:1; #9a9a9a on #212121 5.72:1, on #2a2a2a 5.10:1
 *   heading, label,
 *   service names       --gdv-ui-success-strong #3d7071 on #ffffff 5.59:1, on the band 5.38:1; #6fb0b1 on #212121 6.53:1, on the dark band 5.82:1
 *
 * The theme styles p, ul, li and blockquote through .nv-content-wrap at up to
 * (0,2,1) and paints every h3 gold and centred at (0,2,2), so those elements
 * are qualified one class deeper here and their geometry restated.
 */

/* An element drawn hidden (an empty field in the edit screen's preview) stays
hidden whatever display a rule below gives it. */
.gdv-services [hidden] {
	display: none !important;
}

.gdv-services {
	margin: 0 0 2rem;
}

/* The jump links above the blocks. */
.gdv-services nav.gdv-services__jump ul {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem 1.5rem;
	margin: 0 0 1.5rem;
	padding: 0;
}

.gdv-services nav.gdv-services__jump li {
	list-style: none;
	margin: 0;
	padding: 0;
}

/* One audience. */
.gdv-services .gdv-services__audience {
	padding: 48px 24px;
	scroll-margin-top: 2rem;
}

.gdv-services .gdv-services__audience--band {
	background-color: var(--gdv-ui-band, #fafbf5);
}

.gdv-services .gdv-services__picture img.gdv-services__img {
	display: block;
	width: 100%;
	max-width: 100%;
	height: auto;
	margin: 0 0 1.5rem;
}

html body .gdv-services .gdv-services__audience h3.gdv-services__title {
	margin: 0 0 0.75rem;
	font-family: 'Cantata One', Georgia, serif;
	font-weight: 400;
	line-height: 1.3;
	letter-spacing: 0.02em;
	text-align: left;
	color: var(--gdv-ui-success-strong, #3d7071);
}

.gdv-services .gdv-services__audience p.gdv-services__callout {
	margin: 0 0 1.5rem;
	font-size: 1.125rem;
	color: var(--gdv-ui-text, #444444);
}

/* The services: one per row, a hairline between one and the next, and above
the first one while the list sits under the call-out. */
.gdv-services .gdv-services__details ul.gdv-services__list {
	margin: 0 0 1.5rem;
	padding: 0;
}

.gdv-services .gdv-services__details li.gdv-services__service {
	list-style: none;
	margin: 0;
	padding: 0.875rem 0;
	border-top: 1px solid var(--gdv-ui-hairline, #dddddd);
}

.gdv-services .gdv-services__service .gdv-services__name {
	font-size: 1.125rem;
}

/* A service's name as a link takes the look of the links in gdv-public-ui's
.gdv-ui-columns, the other sections of the home page: bold, teal, underlined
in the same teal, the same under the mouse, then "→". A name standing alone
on its row reads as a title, not as a link in a sentence, so the site's
sentence link look (yellow underline) is not used here. */
.gdv-services .gdv-services__service a.gdv-services__name,
.gdv-services .gdv-services__service a.gdv-services__name:is(:hover, :focus-visible) {
	color: var(--gdv-ui-success-strong, #3d7071);
	font-weight: 700;
	text-decoration: underline;
	text-underline-offset: 0.15em;
}

/* Inline-block, so the link's underline does not run under the arrow; read
as nothing by a screen reader where the browser takes the alternative text. */
.gdv-services .gdv-services__service a.gdv-services__name::after {
	content: "→";
	content: "→" / "";
	display: inline-block;
	margin-left: 0.3em;
	text-decoration: none;
}

.gdv-services .gdv-services__service p.gdv-services__line {
	margin: 0.25rem 0 0;
	color: var(--gdv-ui-text, #444444);
}

/* The testimonial, in full, then who wrote it. */
.gdv-services .gdv-services__details figure.gdv-services__testimonial {
	margin: 0 0 1.5rem;
	padding: 0;
}

.gdv-services figure.gdv-services__testimonial blockquote {
	margin: 0;
	padding: 0 0 0 1rem;
	border: 0;
	border-left: 3px solid var(--gdv-ui-hairline, #dddddd);
	background: none;
	font-size: 1rem;
	font-style: normal;
	color: var(--gdv-ui-text, #444444);
}

.gdv-services figure.gdv-services__testimonial blockquote p {
	margin: 0;
}

.gdv-services figure.gdv-services__testimonial figcaption.gdv-services__by {
	margin: 0.5rem 0 0 1rem;
	font-size: 0.9375rem;
	color: var(--gdv-ui-text-faint, #666666);
}

.gdv-services .gdv-services__details p.gdv-services__references {
	margin: 0;
	font-size: 0.9375rem;
	color: var(--gdv-ui-text, #444444);
}

.gdv-services .gdv-services__details > :last-child {
	margin-bottom: 0;
}

@media (min-width: 768px) {
	.gdv-services .gdv-services__audience {
		padding: 64px 32px;
	}

	/* Without a picture: about two fifths for who it is for, the rest for the
	services, with the line only between one service and the next. */
	.gdv-services .gdv-services__audience:not(.gdv-services__audience--picture) .gdv-services__text {
		display: grid;
		grid-template-columns: 2fr 3fr;
		gap: 48px;
		align-items: start;
	}

	.gdv-services .gdv-services__audience:not(.gdv-services__audience--picture) .gdv-services__intro > :last-child {
		margin-bottom: 0;
	}

	.gdv-services .gdv-services__audience:not(.gdv-services__audience--picture) li.gdv-services__service:first-child {
		padding-top: 0;
		border-top: 0;
	}

	/* With a picture: about three sevenths for it, top-aligned with the text,
	on the left in the first block drawn and on the right in the next. */
	.gdv-services .gdv-services__audience--picture {
		display: grid;
		grid-template-columns: 3fr 4fr;
		gap: 48px;
		align-items: start;
	}

	.gdv-services .gdv-services__audience--picture-right {
		grid-template-columns: 4fr 3fr;
	}

	.gdv-services .gdv-services__audience--picture-right .gdv-services__picture {
		order: 2;
	}

	.gdv-services .gdv-services__picture img.gdv-services__img {
		margin: 0;
	}
}
