/*
GDV Briefs, the public side: the list that [gdv_briefs] draws and the page of
one brief.

Colours, type, headings and links come from gdv-public-ui's tokens and
classes. Its h3 rule weighs (0,2,2), so a rule on a brief's title is html body,
the element and two classes, (0,2,3).

Measured: --gdv-ui-text #444444 on #ffffff 9.74:1, and #fcfcfc on #212121
15.69:1 in the dark scheme. --gdv-ui-text-faint #666666 on #ffffff 5.74:1.
*/

/* ---------------------------------------------------------------------------
 * The list
 * ------------------------------------------------------------------------ */

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

.gdv-briefs-item {
	padding: 1.25rem 0;
	border-top: 1px solid var(--gdv-ui-hairline);
	text-align: left;
}

/* The first brief of the block, the lead or the first row, has no line above
it; a row under the lead keeps its line. */
.gdv-briefs > .gdv-briefs-item:first-child,
.gdv-briefs > .gdv-briefs__rows:first-child > .gdv-briefs-item:first-child {
	border-top: 0;
	padding-top: 0;
}

.gdv-briefs-item__date,
.gdv-brief__date {
	margin: 0 0 0.25rem;
	font-size: 0.9375rem;
	line-height: 1.5;
	color: var(--gdv-ui-text-faint);
}

/* A title is an h2 or h3 at its level's size from gdv-public-ui, left-aligned
by gdv-ui-section-title, its link drawn by the library's rule for a link inside
a heading. Two things differ: it sits right under its date
instead of 1em below it, and the lead is drawn larger than the rows, still
under the page's h1 at 2em. */
html body :is(h2, h3).gdv-briefs-item__title.gdv-briefs-item__title {
	margin: 0 0 0.35rem;
}

html body .gdv-briefs-item--lead :is(h2, h3).gdv-briefs-item__title.gdv-briefs-item__title {
	margin-bottom: 0.5rem;
	font-size: 1.875rem;
}
.gdv-briefs-item__source,
.gdv-brief__source {
	margin: 0 0 0.5rem;
	font-size: 0.9375rem;
	line-height: 1.5;
	color: var(--gdv-ui-text);
	overflow-wrap: anywhere;
}

.gdv-briefs-item__excerpt {
	margin: 0;
	font-size: 1rem;
	line-height: 1.6;
	color: var(--gdv-ui-text);
}

.gdv-briefs-item--lead .gdv-briefs-item__excerpt {
	font-size: 1.0625rem;
}

.gdv-briefs__paging {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 1rem;
	margin-top: 1.5rem;
}

.gdv-briefs__older {
	margin-left: auto;
}

.gdv-briefs__list-link {
	margin: 1rem 0 0;
	text-align: left;
}

.gdv-briefs__empty {
	margin: 0;
	text-align: left;
}

/* ---------------------------------------------------------------------------
 * One brief
 * ------------------------------------------------------------------------ */

/* The reading measure of an Aroma Blog article: one column of at most 700px,
centred in the row. The article is a flex item of .row, so the auto margins
centre it once max-width has stopped it growing.

Two rules set max-width: 100% on this same element from 960px up: Neve's own
customizer width on ".neve-main > .single-post-container .nv-single-post-wrap.col"
(0,4,0), and neve-child's "#content.neve-main > .container-fluid > .row > .col"
(1,4,0). This selector is (1,5,0), so it wins over both whatever the load order. */
#content.neve-main > .single-post-container > .row > .nv-single-post-wrap.gdv-brief {
	max-width: 700px;
	margin-left: auto;
	margin-right: auto;
}

.gdv-brief .gdv-brief__text {
	font-size: 1.125rem;
}

.gdv-brief .gdv-brief__text p {
	margin-bottom: 1.2em;
}

.gdv-brief__header {
	margin: 0 0 2rem;
	text-align: center;
}

.gdv-brief__header .gdv-brief__title {
	margin-bottom: 0.75rem;
}

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

.gdv-brief__more {
	margin-top: 3rem;
	padding-top: 2rem;
	border-top: 1px solid var(--gdv-ui-hairline);
}

html body :is(h2).gdv-brief__heading.gdv-brief__heading {
	margin: 0 0 1rem;
}
