/*
 * Johnston’s Daily on WordPress: the blog index (home.html), single editions, archives, search,
 * 404, comments, pagination and post body blocks. Owned by the blog work; loaded after
 * field-edition.css and blocks.css on the front end and in the editor (inc/assets.php).
 *
 * Everything here sits inside a jg-section, so headings, paragraphs, lists and links start from
 * the Field edition reset and these rules set them. Guide: wordpress/docs/blog.md.
 *
 * Contents
 *   1. Ledger rows (jg-editions): the edition list shared by the index, archives and search
 *   2. Pagination and empty states
 *   3. The blog index (jg-blog): masthead, dateline, lead, pinned, earlier editions
 *   4. The edition (jg-edition): head, reading measure, body blocks, password form, nav
 *   5. Latest editions and the sign-up close
 *   6. Archives and the Regenerative header
 *   7. Search
 *   8. 404
 *   9. Comments
 */

/* ==========================================================================
   1. Ledger rows: date and kicker in the rail, the headline in 4–8, the other
      stories of the day in 9–12. The headline link covers the whole row.
   ========================================================================== */

.jg-ledger-query,
.jg-pinned {
	position: relative;
}

.jg-editions {
	margin: 0;
	padding: 0;
	list-style: none;
	border-bottom: 1px solid var(--jg-rule);
}

.jg-editions > .wp-block-post {
	position: relative;
	margin: 0;
	padding: 14px 0 16px;
	border-top: 1px solid var(--jg-rule);
}

.jg-editions > .wp-block-post:first-child {
	border-top-color: var(--jg-ink);
}

/* Under a horizon with a label, the first row keeps the light rule: the horizon is the head. */
.jg-ledger-head + .jg-ledger-query .jg-editions > .wp-block-post:first-child {
	border-top-color: var(--jg-rule);
}

/* The row's oat hover, as on pathway rows. */
.jg-editions > .wp-block-post::before {
	content: '';
	position: absolute;
	inset: 0 calc(var(--jg-margin) * -0.5);
	z-index: -1;
	background: var(--jg-oat);
	opacity: 0;
	transition: opacity var(--jg-base) var(--jg-ease);
}

.jg-editions > .wp-block-post:hover::before {
	opacity: 1;
}

.jg-section--oat .jg-editions > .wp-block-post::before {
	background: var(--jg-paper);
}

.jg-edition-row {
	row-gap: 4px;
	align-items: baseline;
}

.jg-edition-row__when {
	display: flex;
	flex-wrap: wrap;
	gap: 2px 12px;
	align-items: baseline;
}

.jg-edition-row__when .wp-block-post-date {
	color: var(--jg-ink);
	font-variant-numeric: lining-nums;
}

.jg-edition-row__kicker a {
	color: var(--jg-ink-3);
	font-weight: 500;
	text-decoration: none;
}

.jg-edition-row__kicker a:hover {
	color: var(--jg-navy);
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 0.22em;
}

/* On a category archive every row would repeat the category. */
.category .jg-edition-row__kicker {
	display: none;
}

.jg-edition-row__title {
	font-family: var(--jg-serif);
	font-size: var(--jg-text-h4);
	font-weight: 500;
	line-height: 1.25;
	letter-spacing: -0.006em;
	text-wrap: balance;
}

.jg-edition-row__title a {
	text-decoration: none;
}

.jg-edition-row__title a::after {
	content: '';
	position: absolute;
	inset: 0;
}

.jg-editions > .wp-block-post:hover .jg-edition-row__title a {
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 0.14em;
}

.jg-edition-row__more {
	color: var(--jg-ink-2);
	font-size: var(--jg-text-small);
	line-height: 1.45;
}

/* The highlights block: a plain list of the other stories, or a trimmed excerpt. */
.jg-highlights__list {
	margin: 0;
	padding: 0;
	list-style: none;
}

.jg-highlights__list li + li {
	margin-top: 4px;
}

.jg-highlights__label {
	margin: 0 0 6px;
}

.jg-highlights__summary {
	margin: 0;
	text-wrap: pretty;
}

@media (max-width: 899px) {
	.jg-edition-row__more {
		display: none;
	}
}

@media (min-width: 900px) {
	.jg-editions > .wp-block-post {
		padding: 18px 0 20px;
	}

	.jg-edition-row {
		row-gap: 0;
	}

	.jg-edition-row__when {
		display: block;
		grid-column: 1 / span 3;
	}

	.jg-edition-row__when .wp-block-post-terms {
		margin-top: 2px;
	}

	.jg-edition-row > .jg-edition-row__title {
		grid-column: 4 / span 5;
	}

	.jg-edition-row > .jg-edition-row__more {
		grid-column: 9 / span 4;
	}
}

/* ==========================================================================
   2. Pagination and empty states
   ========================================================================== */

.jg-paging {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 24px;
	align-items: center;
	justify-content: space-between;
	margin-top: 24px;
	font-size: var(--jg-text-small);
	font-weight: 600;
}

.jg-paging .wp-block-query-pagination-previous,
.jg-paging .wp-block-query-pagination-next,
.jg-paging .wp-block-comments-pagination-previous,
.jg-paging .wp-block-comments-pagination-next {
	display: inline-flex;
	gap: 8px;
	align-items: center;
	min-height: 44px;
	color: var(--jg-navy);
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 0.22em;
	transition:
		text-decoration-thickness var(--jg-base) var(--jg-ease),
		color var(--jg-fast) var(--jg-ease);
}

.jg-paging .wp-block-query-pagination-previous:hover,
.jg-paging .wp-block-query-pagination-next:hover,
.jg-paging .wp-block-comments-pagination-previous:hover,
.jg-paging .wp-block-comments-pagination-next:hover {
	color: var(--jg-navy-hover);
	text-decoration-thickness: 2px;
}

.jg-paging .wp-block-query-pagination-previous::before,
.jg-paging .wp-block-query-pagination-next::after,
.jg-paging .wp-block-comments-pagination-previous::before,
.jg-paging .wp-block-comments-pagination-next::after {
	content: '';
	flex: none;
	width: 14px;
	height: 14px;
	background: currentColor;
	-webkit-mask: var(--jg-i-arrow) center / contain no-repeat;
	mask: var(--jg-i-arrow) center / contain no-repeat;
}

.jg-paging .wp-block-query-pagination-previous::before,
.jg-paging .wp-block-comments-pagination-previous::before {
	transform: scaleX(-1);
}

.jg-paging .wp-block-query-pagination-numbers,
.jg-paging .wp-block-comments-pagination-numbers {
	display: flex;
	flex-wrap: wrap;
	gap: 0 4px;
	font-variant-numeric: tabular-nums lining-nums;
}

.jg-paging .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 44px;
	min-height: 44px;
	padding: 0 8px;
	color: var(--jg-navy);
	text-decoration: none;
}

.jg-paging a.page-numbers:hover {
	text-decoration: underline;
	text-decoration-thickness: 2px;
	text-underline-offset: 0.22em;
}

.jg-paging .page-numbers.current {
	color: var(--jg-ink);
	box-shadow: inset 0 -2px 0 var(--jg-ink);
}

.jg-paging .page-numbers.dots {
	color: var(--jg-ink-3);
	font-weight: 400;
}

/* Without a previous or next link core leaves a gap; keep the numbers in the middle. */
.jg-paging > :only-child {
	margin-inline: auto;
}

.jg-empty {
	max-width: 34em;
	padding: 24px 0;
	border-top: 1px solid var(--jg-ink);
	border-bottom: 1px solid var(--jg-rule);
	color: var(--jg-ink-2);
	font-size: var(--jg-text-deck);
	line-height: 1.5;
	text-wrap: pretty;
}

/* ==========================================================================
   3. The blog index: the masthead as the page title, a dateline with the sections,
      the lead edition from column 4, pinned editions, then the earlier editions.
   ========================================================================== */

.jg-blog__masthead .jg-masthead__title {
	font-size: clamp(3.5rem, 1.5rem + 7vw, 8rem);
}

.jg-blog__dateline {
	gap: 4px 24px;
}

.jg-sections {
	display: flex;
	flex-wrap: wrap;
	gap: 0 4px;
	align-items: center;
	color: var(--jg-ink-3);
}

.jg-sections a {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	color: var(--jg-navy);
	font-weight: 600;
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 0.22em;
}

.jg-sections a:hover {
	color: var(--jg-navy-hover);
	text-decoration-thickness: 2px;
}

.jg-blog .jg-lead {
	margin-top: 32px;
}

.jg-lead > .wp-block-post-template,
.jg-lead > .wp-block-post-template > .wp-block-post {
	display: contents;
}

.jg-lead__story {
	row-gap: 12px;
	align-items: start;
	padding-bottom: 40px;
}

.jg-lead__when {
	display: flex;
	flex-wrap: wrap;
	gap: 4px 12px;
	align-items: baseline;
}

.jg-lead__when .wp-block-post-date {
	color: var(--jg-ink);
	font-variant-numeric: lining-nums;
}

.jg-lead__when .wp-block-post-terms a {
	color: var(--jg-ink-3);
	font-weight: 500;
	text-decoration: none;
}

.jg-lead__when .wp-block-post-terms a:hover {
	color: var(--jg-navy);
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 0.22em;
}

.jg-lead__title {
	max-width: 16em;
	font-family: var(--jg-serif);
	font-size: var(--jg-text-h2);
	font-weight: 400;
	line-height: 1.08;
	letter-spacing: -0.02em;
	text-wrap: balance;
}

.jg-lead__title a {
	text-decoration: none;
}

.jg-lead__title a:hover {
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 0.12em;
}

.jg-lead__text > .jg-lead__more {
	max-width: 34em;
	margin-top: 16px;
	color: var(--jg-ink-2);
	font-size: var(--jg-text-deck);
	line-height: 1.5;
}

.jg-lead__more .jg-highlights__list li + li {
	margin-top: 6px;
}

.jg-lead__text > .jg-link {
	margin-top: 16px;
}

.jg-lead .jg-empty {
	grid-column: 1 / -1;
}

@media (min-width: 900px) {
	.jg-blog .jg-lead {
		margin-top: 48px;
	}

	.jg-lead__story {
		padding-bottom: 56px;
	}

	.jg-lead__when {
		display: block;
	}

	.jg-lead__when .wp-block-post-date {
		margin-top: 6px;
	}

	.jg-lead__when .wp-block-post-terms {
		margin-top: 2px;
	}

	.jg-lead__story > .jg-lead__text {
		grid-column: 4 / span 8;
	}
}

/* Pinned editions sit above the earlier editions under their own label. */
.jg-pinned {
	margin-bottom: 40px;
}

.jg-pinned__label {
	margin-bottom: 12px;
}

.jg-pinned .jg-editions > .wp-block-post:first-child {
	border-top-color: var(--jg-ink);
}

/* The earlier editions: a horizon and a rail label, then the rows. */
.jg-ledger-head {
	row-gap: 20px;
	margin-bottom: 16px;
}

.jg-ledger-head > .jg-horizon {
	margin-bottom: 0;
}

@media (min-width: 900px) {
	.jg-pinned {
		margin-bottom: 56px;
	}

	.jg-ledger-head {
		margin-bottom: 24px;
	}
}

/* ==========================================================================
   4. The edition: dateline and kicker in the rail, the date title and the derived
      headline as its deck, the body in 4–9, then the desk line and the navigation.
   ========================================================================== */

.jg-edition__head {
	row-gap: 16px;
}

.jg-edition__rail .wp-block-post-date {
	color: var(--jg-ink);
	font-variant-numeric: lining-nums;
}

.jg-edition__kicker {
	margin-top: 4px;
}

.jg-edition__kicker a {
	display: inline-block;
	color: var(--jg-navy);
	text-decoration: none;
}

.jg-edition__kicker a:hover {
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 0.22em;
}

.jg-edition__title {
	max-width: 12em;
}

.jg-edition__head .jg-deck {
	margin-top: 20px;
}

.jg-edition__head .jg-edition__also {
	max-width: 34em;
	margin-top: 20px;
	padding-top: 12px;
	border-top: 1px solid var(--jg-rule);
	color: var(--jg-ink-2);
	font-size: var(--jg-text-small);
	line-height: 1.45;
}

.jg-edition__head .jg-edition__also .jg-highlights__list li + li {
	margin-top: 4px;
}

@media (min-width: 900px) {
	.jg-edition__head {
		row-gap: 12px;
	}

	.jg-edition__rail .wp-block-post-date {
		margin-top: 6px;
	}

	.jg-edition__kicker {
		margin-top: 8px;
	}
}

/* The reading measure. */
.jg-edition__grid {
	margin-top: 32px;
}

.jg-edition__grid > .jg-edition__body {
	min-width: 0;
}

@media (min-width: 900px) {
	.jg-edition__grid {
		margin-top: 56px;
	}

	.jg-edition__grid > .jg-edition__body {
		grid-column: 4 / span 6;
	}
}

@media (min-width: 900px) and (max-width: 1199px) {
	.jg-edition__grid > .jg-edition__body {
		grid-column: 4 / -1;
	}
}

/* --- Body blocks: the core blocks real editions use ------------------------- */

.jg-edition__body {
	max-width: 66ch;
	text-wrap: pretty;
}

.jg-edition__body > * + *,
.jg-edition__body :is(.wp-block-details, .wp-block-media-text__content, .wp-block-group, .wp-block-column) > * + * {
	margin-top: 1em;
}

.jg-edition__body strong {
	font-weight: 600;
}

/* Headings: section heads in Newsreader, small heads in the grotesk. */
.jg-edition__body :is(h2, h3, h4, h5, h6) {
	margin-top: 40px;
	font-family: var(--jg-serif);
	font-weight: 500;
	line-height: 1.2;
	letter-spacing: -0.01em;
	text-wrap: balance;
}

.jg-edition__body h2 {
	font-size: var(--jg-text-h3);
	font-weight: 450;
	line-height: 1.15;
}

.jg-edition__body h3 {
	font-size: var(--jg-text-h4);
}

.jg-edition__body h4 {
	font-size: 1.25rem;
}

.jg-edition__body :is(h5, h6) {
	margin-top: 32px;
	font-family: var(--jg-sans);
	font-size: var(--jg-text-body);
	font-weight: 600;
	line-height: 1.5;
	letter-spacing: 0;
}

.jg-edition__body h6 {
	font-size: var(--jg-text-small);
}

.jg-edition__body :is(h2, h3, h4, h5, h6) + * {
	margin-top: 12px;
}

.jg-edition__body :is(h2, h3, h4) strong {
	font-weight: inherit; /* the type carries the head; bold inside it reads as shouting */
}

.jg-edition__body :is(h2, h3, h4, h5, h6) :is(u, span[style*='underline']) {
	text-decoration: none !important; /* editors underline heads for emphasis; the type carries it */
}

/* Editors centre some lines; keep that, but never justify. */
.jg-edition__body .has-text-align-center {
	text-align: center;
}

.jg-edition__body .has-text-align-right {
	text-align: right;
}

/* Separators: editions are sectioned by rules, many of them. */
.jg-edition__body .wp-block-separator {
	width: auto;
	max-width: none;
	margin: 32px 0;
	border: 0;
	border-top: 1px solid var(--jg-rule);
	opacity: 1;
}

.jg-edition__body .wp-block-separator + .wp-block-separator {
	display: none;
}

.jg-edition__body :is(h2, h3) + .wp-block-separator {
	margin-top: 16px;
}

/* Accordions (core/details): a ruled row with a chevron that turns when open. */
.jg-edition__body .wp-block-details {
	margin-top: 0;
	border-top: 1px solid var(--jg-rule);
}

.jg-edition__body * + .wp-block-details:not(.wp-block-details + .wp-block-details) {
	margin-top: 24px;
	border-top-color: var(--jg-ink);
}

.jg-edition__body .wp-block-details:not(:has(+ .wp-block-details)) {
	border-bottom: 1px solid var(--jg-rule);
}

.jg-edition__body .wp-block-details > summary {
	display: flex;
	gap: 16px;
	align-items: center;
	justify-content: space-between;
	min-height: 52px;
	padding: 8px 0;
	font-weight: 600;
	line-height: 1.3;
	list-style: none;
	cursor: pointer;
}

.jg-edition__body .wp-block-details > summary::-webkit-details-marker {
	display: none;
}

.jg-edition__body .wp-block-details > summary::after {
	content: '';
	flex: none;
	width: 20px;
	height: 20px;
	background: var(--jg-navy);
	-webkit-mask: var(--jg-i-chevron) center / contain no-repeat;
	mask: var(--jg-i-chevron) center / contain no-repeat;
	transition: transform var(--jg-base) var(--jg-ease);
}

.jg-edition__body .wp-block-details[open] > summary::after {
	transform: rotate(180deg);
}

.jg-edition__body .wp-block-details > summary:hover {
	color: var(--jg-navy);
}

.jg-edition__body .wp-block-details > summary strong {
	font-weight: inherit;
}

.jg-edition__body .wp-block-details > :not(summary) {
	margin-top: 0;
	padding-bottom: 20px;
	font-size: var(--jg-text-small);
	line-height: 1.55;
}

.jg-edition__body .wp-block-details > :not(summary) + :not(summary) {
	margin-top: -4px;
}

/* Media and text: the picture framed on oat beside its text. */
.jg-edition__body .wp-block-media-text {
	margin-top: 32px;
	gap: 0;
	align-items: start;
}

.jg-edition__body .wp-block-media-text__media {
	margin: 0;
	background: var(--jg-oat);
}

.jg-edition__body .wp-block-media-text__media img {
	display: block;
	width: 100%;
	height: auto;
	max-width: 100%;
}

.jg-edition__body .wp-block-media-text .wp-block-media-text__content {
	padding: 0 0 0 24px;
}

.jg-edition__body .wp-block-media-text.has-media-on-the-right .wp-block-media-text__content {
	padding: 0 24px 0 0;
}

@media (max-width: 600px) {
	.jg-edition__body .wp-block-media-text.is-stacked-on-mobile .wp-block-media-text__content {
		padding: 16px 0 0;
	}
}

/* Prices set in red by the editor read as navy figures: red on paper fails AA at body size. */
.jg-edition__body mark {
	background: transparent;
	color: var(--jg-navy) !important;
	font-weight: 600;
}

/* Images and captions. */
.jg-edition__body .wp-block-image {
	margin-top: 24px;
}

.jg-edition__body .wp-block-image img {
	display: block;
	max-width: 100%;
	height: auto;
}

.jg-edition__body .wp-block-image.aligncenter,
.jg-edition__body .wp-block-image .aligncenter {
	text-align: center;
}

.jg-edition__body .wp-block-image.aligncenter img,
.jg-edition__body .wp-block-image .aligncenter img {
	margin-inline: auto;
}

.jg-edition__body figcaption {
	max-width: 48em;
	margin: 12px 0 0;
	color: var(--jg-ink-3);
	font-size: var(--jg-text-meta);
	line-height: 1.5;
	text-align: left;
}

/* Tables: ruled rows, the first row as a head; on phones they scroll inside their figure. */
.jg-edition__body .wp-block-table {
	margin-top: 24px;
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
}

.jg-edition__body .wp-block-table table {
	width: 100%;
	min-width: 0;
	border-collapse: collapse;
	table-layout: auto;
	font-size: var(--jg-text-small);
	line-height: 1.45;
	font-variant-numeric: tabular-nums lining-nums;
}

.jg-edition__body .wp-block-table :is(th, td) {
	padding: 10px 16px 10px 0;
	border: 0;
	border-bottom: 1px solid var(--jg-rule);
	text-align: left;
	vertical-align: top;
}

.jg-edition__body .wp-block-table :is(th, td):last-child {
	padding-right: 0;
}

.jg-edition__body .wp-block-table thead th,
.jg-edition__body .wp-block-table table:not(:has(thead)) tr:first-child > * {
	border-top: 1px solid var(--jg-ink);
	border-bottom-color: var(--jg-ink);
	font-weight: 600;
}

.jg-edition__body .wp-block-table tr:first-child :is(u, span[style*='underline']) {
	text-decoration: none !important;
}

.jg-edition__body .wp-block-table tbody th {
	font-weight: 600;
}

.jg-edition__body .wp-block-table figcaption {
	margin-top: 8px;
}

/* Lists. */
.jg-edition__body :is(ul, ol):not(.wp-block-social-links) {
	padding-left: 1.25em;
	list-style: disc;
}

.jg-edition__body ol {
	list-style: decimal;
}

.jg-edition__body li + li {
	margin-top: 4px;
}

.jg-edition__body li::marker {
	color: var(--jg-ink-3);
}

/* Buttons keep the core styling (navy); give them room. */
.jg-edition__body .wp-block-buttons {
	margin-top: 20px;
}

/* Social links: ink glyphs, 44px targets, no brand colours. */
.jg-edition__body .wp-block-social-links {
	display: flex;
	flex-wrap: wrap;
	gap: 4px;
	margin-top: 16px;
	padding: 0;
	list-style: none;
}

.jg-edition__body .wp-block-social-links .wp-social-link {
	margin: 0;
	background: transparent;
	color: var(--jg-ink);
}

.jg-edition__body .wp-block-social-links .wp-social-link a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	padding: 0;
	color: inherit;
	transition: color var(--jg-fast) var(--jg-ease);
}

.jg-edition__body .wp-block-social-links .wp-social-link a:hover {
	color: var(--jg-navy);
	transform: none;
}

.jg-edition__body .wp-block-social-links .wp-social-link svg {
	width: 24px;
	height: 24px;
	fill: currentColor;
}

/* Quotes. */
.jg-edition__body .wp-block-quote {
	margin: 32px 0 0;
	padding-left: 24px;
	border-left: 2px solid var(--jg-ink);
	font-family: var(--jg-serif);
	font-size: var(--jg-text-deck);
	line-height: 1.4;
}

.jg-edition__body .wp-block-quote cite {
	display: block;
	margin-top: 8px;
	color: var(--jg-ink-3);
	font-family: var(--jg-sans);
	font-size: var(--jg-text-meta);
	font-style: normal;
}

/* Embeds and iframes never overflow the measure. */
.jg-edition__body :is(iframe, video, embed, object) {
	max-width: 100%;
}

/* The password form on a protected edition. */
.post-password-form {
	max-width: 34em;
	padding: 24px 0;
	border-top: 1px solid var(--jg-ink);
	border-bottom: 1px solid var(--jg-rule);
}

.post-password-form p {
	margin: 0;
}

.post-password-form p + p {
	margin-top: 16px;
}

.post-password-form label {
	display: block;
	font-size: var(--jg-text-small);
	font-weight: 600;
	line-height: 1.3;
}

.post-password-form input[type='password'] {
	display: block;
	width: 100%;
	max-width: 320px;
	height: 52px;
	margin-top: 8px;
	padding: 0 16px;
	border: 1px solid var(--jg-ink-3);
	border-radius: 0;
	background: var(--jg-white);
	color: var(--jg-ink);
	font: inherit;
	font-size: var(--jg-text-body);
}

.post-password-form input[type='password']:focus-visible {
	outline: 2px solid var(--jg-navy);
	outline-offset: 2px;
	border-color: var(--jg-ink);
}

.post-password-form input[type='submit'] {
	display: inline-flex;
	align-items: center;
	min-height: 52px;
	margin-top: 12px;
	padding: 0 24px;
	border: 1px solid transparent;
	border-radius: 0;
	background: var(--jg-navy);
	color: var(--jg-white);
	font-family: var(--jg-sans);
	font-size: 1rem;
	font-weight: 600;
	line-height: 1.2;
	cursor: pointer;
	transition: background-color var(--jg-fast) var(--jg-ease);
}

.post-password-form input[type='submit']:hover {
	background: var(--jg-navy-hover);
}

/* --- After the body: the desk line, then the previous and next editions ---------- */

.jg-edition .jg-desk-line {
	margin-top: 48px;
}

.jg-edition__nav {
	row-gap: 0;
	margin-top: 40px;
	border-bottom: 1px solid var(--jg-rule);
}

.jg-adjacent {
	display: grid;
	gap: 6px;
	align-content: start;
	padding: 16px 0 18px;
	border-top: 1px solid var(--jg-rule);
	color: inherit;
	text-decoration: none;
}

.jg-adjacent__label {
	display: flex;
	gap: 6px;
	align-items: center;
}

.jg-adjacent__label time {
	font-variant-numeric: lining-nums;
}

.jg-adjacent__title {
	font-family: var(--jg-serif);
	font-size: var(--jg-text-h4);
	font-weight: 500;
	line-height: 1.25;
	letter-spacing: -0.006em;
	text-wrap: balance;
	transition: color var(--jg-fast) var(--jg-ease);
}

.jg-adjacent:hover .jg-adjacent__title {
	color: var(--jg-navy);
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 0.14em;
}

.jg-adjacent__label::before {
	content: '';
	flex: none;
	width: 14px;
	height: 14px;
	background: var(--jg-navy);
	-webkit-mask: var(--jg-i-arrow) center / contain no-repeat;
	mask: var(--jg-i-arrow) center / contain no-repeat;
	transition: transform var(--jg-base) var(--jg-ease);
}

.jg-adjacent--previous .jg-adjacent__label::before {
	transform: scaleX(-1);
}

.jg-adjacent--previous:hover .jg-adjacent__label::before {
	transform: scaleX(-1) translateX(4px);
}

.jg-adjacent--next:hover .jg-adjacent__label::before {
	transform: translateX(4px);
}

@media (min-width: 900px) {
	.jg-edition .jg-desk-line {
		margin-top: 64px;
	}

	.jg-edition__nav {
		margin-top: 48px;
	}

	.jg-edition__nav > .jg-edition__prev {
		grid-column: 4 / span 4;
	}

	.jg-edition__nav > .jg-edition__next {
		grid-column: 8 / span 5;
	}

	.jg-adjacent {
		padding: 20px 0 24px;
	}
}

/* ==========================================================================
   5. Latest editions (closes an edition, on oat) and the sign-up close
   ========================================================================== */

.jg-latest__grid {
	row-gap: 0;
}

.jg-latest__grid > .jg-latest__query,
.jg-latest__query > .wp-block-post-template {
	display: contents;
}

.jg-latest__query .wp-block-post {
	grid-column: 1 / -1;
	min-width: 0;
	padding: 14px 0 16px;
	border-top: 1px solid var(--jg-rule);
}

.jg-latest__query .wp-block-post:first-child {
	border-top-color: var(--jg-ink);
}

.jg-latest__query .wp-block-post-date {
	color: var(--jg-ink);
	font-variant-numeric: lining-nums;
}

.jg-latest__query .jg-headline {
	margin-top: 6px;
	font-family: var(--jg-serif);
	font-size: var(--jg-text-h4);
	font-weight: 500;
	line-height: 1.22;
	letter-spacing: -0.006em;
	text-wrap: balance;
}

.jg-latest__close {
	margin-top: 32px;
}

.jg-latest__close .jg-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px 32px;
	align-items: center;
}

@media (min-width: 900px) {
	.jg-latest__query .wp-block-post {
		position: relative;
		grid-column: span 4;
		padding: 0 16px 0 0;
		border-top: 0;
	}

	.jg-latest__query .wp-block-post + .wp-block-post::before {
		content: '';
		position: absolute;
		top: 0;
		bottom: 0;
		left: calc(var(--jg-gutter) / -2);
		width: 1px;
		background: var(--jg-rule);
	}

	.jg-latest__close {
		margin-top: 48px;
	}
}

/* The sign-up close: the Daily's name in the rail, the headline and actions from column 4. */
.jg-signup__mast {
	font-family: var(--jg-serif);
	font-size: 1.75rem;
	font-weight: 500;
	line-height: 1.05;
	letter-spacing: -0.02em;
}

.jg-signup__mast em {
	font-style: italic;
	font-weight: 400;
}

.jg-signup__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 16px 40px;
	align-items: center;
	margin-top: 24px;
}

.jg-signup__actions .jg-call-line .jg-meta {
	display: block;
}

/* ==========================================================================
   6. Archives: the rail header with the archive name and description, then the
      ledger rows. The Regenerative category adds its tagline, link and photograph.
   ========================================================================== */

.jg-archive__head .jg-h1 {
	max-width: 12em;
}

.jg-archive__head .jg-archive__description {
	margin-top: 16px;
}

.jg-archive__head .jg-archive__description:empty {
	display: none;
}

.jg-archive__head .jg-archive__description p {
	margin: 0;
}

.jg-archive__head .jg-archive__description p + p {
	margin-top: 1em;
}

.jg-archive__tagline {
	color: var(--jg-ink);
	font-family: var(--jg-serif);
	font-size: var(--jg-text-h3);
	font-weight: 450;
	line-height: 1.15;
	letter-spacing: -0.012em;
}

.jg-archive__head .jg-archive__link {
	margin-top: 16px;
}

.jg-archive--regenerative .jg-archive__photo {
	margin: 32px 0 40px;
}

@media (min-width: 900px) {
	.jg-archive--regenerative .jg-archive__photo {
		margin: 48px 0 64px;
	}
}

/* ==========================================================================
   7. Search: the form in the opener, results as ledger rows, a no-results state
      with the pathways to the services and the Daily.
   ========================================================================== */

.jg-search .jg-search-form {
	max-width: 34em;
	margin-top: 24px;
}

.jg-search-form .wp-block-search__label {
	display: block;
	margin-bottom: 8px;
	font-size: var(--jg-text-small);
	font-weight: 600;
	line-height: 1.3;
}

.jg-search-form .wp-block-search__inside-wrapper {
	display: flex;
	gap: 8px;
	border: 0;
}

.jg-search-form .wp-block-search__input {
	flex: 1 1 auto;
	min-width: 0;
	height: 52px;
	margin: 0;
	padding: 0 16px;
	border: 1px solid var(--jg-ink-3);
	border-radius: 0;
	background: var(--jg-white);
	color: var(--jg-ink);
	font: inherit;
	font-size: var(--jg-text-body);
}

.jg-search-form .wp-block-search__input::placeholder {
	color: var(--jg-ink-3);
}

.jg-search-form .wp-block-search__input:focus-visible {
	outline: 2px solid var(--jg-navy);
	outline-offset: 2px;
	border-color: var(--jg-ink);
}

.jg-search-form .wp-block-search__button {
	flex: none;
	margin: 0;
	min-height: 52px;
}

.jg-search__empty {
	margin-top: 32px;
	padding: 24px 0 40px;
	border-top: 1px solid var(--jg-ink);
}

@media (min-width: 900px) {
	.jg-search__empty {
		margin-top: 64px;
	}
}

.jg-search__empty .jg-deck {
	margin-top: 12px;
}

.jg-search__results .jg-paths {
	margin-bottom: 8px;
}

/* ==========================================================================
   8. 404: the display headline, the pathways, then the phone ledger.
   ========================================================================== */

.jg-not-found__actions {
	margin-top: 32px;
}

/* The pathways continue the opener: every row keeps its rule and padding. */
.jg-paths > .jg-pathway:first-child {
	padding-top: 16px;
	border-top-color: var(--jg-rule);
}

.jg-paths > .jg-pathway:first-child::before {
	top: 0;
}

.jg-paths .jg-pathway__num:empty {
	min-height: 1em;
}

.jg-not-found__call {
	margin-top: 80px;
}

@media (min-width: 900px) {
	.jg-paths > .jg-pathway:first-child {
		padding-top: 28px;
	}
}

@media (min-width: 1200px) {
	.jg-not-found__call {
		margin-top: 96px;
	}
}

/* ==========================================================================
   9. Comments: shown only when the edition takes comments or has some.
   ========================================================================== */

.jg-edition__comments {
	margin-top: 48px;
}

.jg-edition__comments > .jg-comments {
	min-width: 0;
}

.jg-comments__title {
	font-family: var(--jg-serif);
	font-size: var(--jg-text-h3);
	font-weight: 450;
	line-height: 1.15;
	letter-spacing: -0.012em;
}

.jg-comments__list {
	margin: 24px 0 0;
	padding: 0;
	list-style: none;
	border-bottom: 1px solid var(--jg-rule);
}

.jg-comments__list .children {
	margin: 0;
	padding-left: 24px;
	list-style: none;
}

.jg-comment {
	padding: 16px 0 20px;
	border-top: 1px solid var(--jg-rule);
}

.jg-comments__list > li:first-child > .jg-comment {
	border-top-color: var(--jg-ink);
}

.jg-comment__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 2px 12px;
	align-items: baseline;
}

.jg-comment__author {
	font-weight: 600;
}

.jg-comment__body {
	max-width: 66ch;
	margin-top: 8px;
	font-size: var(--jg-text-body);
	line-height: 1.6;
}

.jg-comment__body p {
	margin: 0;
}

.jg-comment__body p + p {
	margin-top: 1em;
}

.jg-comment__reply a {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	color: var(--jg-navy);
	font-size: var(--jg-text-small);
	font-weight: 600;
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 0.22em;
}

.jg-comments .jg-paging {
	margin-top: 16px;
}

/* The form: 52px white fields, labels above, a navy button. */
.jg-comment-form {
	max-width: 34em;
	margin-top: 40px;
}

.jg-comment-form .comment-reply-title {
	margin: 0;
	font-family: var(--jg-serif);
	font-size: var(--jg-text-h4);
	font-weight: 500;
	line-height: 1.25;
}

.jg-comment-form .comment-reply-title small {
	margin-left: 12px;
	font-family: var(--jg-sans);
	font-size: var(--jg-text-small);
	font-weight: 600;
}

.jg-comment-form :is(.comment-notes, .logged-in-as) {
	margin: 8px 0 0;
	color: var(--jg-ink-3);
	font-size: var(--jg-text-meta);
	line-height: 1.5;
}

.jg-comment-form .comment-form > p {
	margin: 20px 0 0;
}

.jg-comment-form label {
	display: block;
	font-size: var(--jg-text-small);
	font-weight: 600;
	line-height: 1.3;
}

.jg-comment-form :is(input[type='text'], input[type='email'], input[type='url'], textarea) {
	display: block;
	width: 100%;
	margin-top: 8px;
	padding: 0 16px;
	border: 1px solid var(--jg-ink-3);
	border-radius: 0;
	background: var(--jg-white);
	color: var(--jg-ink);
	font: inherit;
	font-size: var(--jg-text-body);
}

.jg-comment-form :is(input[type='text'], input[type='email'], input[type='url']) {
	height: 52px;
}

.jg-comment-form textarea {
	min-height: 160px;
	padding: 12px 16px;
	line-height: 1.5;
	resize: vertical;
}

.jg-comment-form :is(input, textarea):focus-visible {
	outline: 2px solid var(--jg-navy);
	outline-offset: 2px;
	border-color: var(--jg-ink);
}

.jg-comment-form .comment-form-cookies-consent {
	display: flex;
	gap: 12px;
	align-items: flex-start;
}

.jg-comment-form .comment-form-cookies-consent input {
	flex: none;
	width: 20px;
	height: 20px;
	margin: 2px 0 0;
	accent-color: var(--jg-navy);
}

.jg-comment-form .comment-form-cookies-consent label {
	font-weight: 400;
	line-height: 1.5;
}

.jg-comment-form .form-submit {
	margin-top: 24px;
}

.jg-comment-form .form-submit input[type='submit'] {
	display: inline-flex;
	align-items: center;
	min-height: 52px;
	padding: 0 24px;
	border: 1px solid transparent;
	border-radius: 0;
	background: var(--jg-navy);
	color: var(--jg-white);
	font-family: var(--jg-sans);
	font-size: 1rem;
	font-weight: 600;
	line-height: 1.2;
	cursor: pointer;
	transition: background-color var(--jg-fast) var(--jg-ease);
}

.jg-comment-form .form-submit input[type='submit']:hover {
	background: var(--jg-navy-hover);
}

.jg-comment-form .required {
	color: var(--jg-error);
	text-decoration: none;
}

.jg-comment-form #cancel-comment-reply-link {
	color: var(--jg-navy);
}

@media (min-width: 900px) {
	.jg-edition__comments {
		margin-top: 64px;
	}

	.jg-edition__comments > .jg-comments {
		grid-column: 4 / span 6;
	}
}

@media (min-width: 900px) and (max-width: 1199px) {
	.jg-edition__comments > .jg-comments {
		grid-column: 4 / -1;
	}
}
