/*
 * Johnston’s Grain · Field edition for WordPress
 * The jg- CSS API from DESIGN.md, ported from src/styles/global.css and the Astro components to
 * the markup core blocks produce. Patterns put these classes on core blocks (className), so
 * editors keep native, editable blocks.
 *
 * Differences from the Astro site, in short:
 * - Tokens read the theme.json presets, so theme.json stays the single source of colour and type.
 * - Lists of rich items (pathways, steps, figures, phases) are groups of paragraphs, not <li>s,
 *   because core list items can't hold headings or images.
 * - Icons are CSS masks keyed by class (jg-link, jg-icon-*), because rich text can't hold SVG.
 * - Scenes are core/cover blocks; photo framing and scrims are preset classes (jg-crop--*,
 *   jg-scrim--*) instead of inline custom properties.
 * - Inside Field edition surfaces, headings and links inherit their type and colour until a jg-
 *   class sets them, as global.css does; theme.json heading and link styles apply elsewhere.
 */

/* ==========================================================================
   Tokens
   ========================================================================== */

:root {
	--jg-paper: var(--wp--preset--color--paper, #fbfaf7);
	--jg-oat: var(--wp--preset--color--oat, #f3efe7);
	--jg-white: var(--wp--preset--color--white, #ffffff);
	--jg-ink: var(--wp--preset--color--ink, #0a1b2b);
	--jg-ink-raised: var(--wp--preset--color--ink-raised, #102a40);
	--jg-ink-2: var(--wp--preset--color--ink-2, #3d4954);
	--jg-ink-3: var(--wp--preset--color--ink-3, #5f6a73);
	--jg-rule: var(--wp--preset--color--rule, #d5d1c8);
	--jg-rule-ink: rgb(255 255 255 / 0.2);
	--jg-rule-scene: rgb(255 255 255 / 0.32);
	--jg-navy: var(--wp--preset--color--navy, #084976);
	--jg-navy-hover: var(--wp--preset--color--navy-hover, #063a5e);
	--jg-on-ink: #ffffff;
	--jg-on-ink-2: var(--wp--preset--color--on-ink-2, #c5ced6);
	--jg-on-ink-3: var(--wp--preset--color--on-ink-3, #97a3ae);
	--jg-amber: var(--wp--preset--color--amber, #f2a51a);
	--jg-amber-hover: var(--wp--preset--color--amber-hover, #ffb52e);
	--jg-error: var(--wp--preset--color--error, #a3261b);
	--jg-scrim-top: linear-gradient(
		to bottom,
		rgb(10 27 43 / 0.78) 0,
		rgb(10 27 43 / 0.56) 72px,
		rgb(10 27 43 / 0) 200px
	);

	--jg-serif: var(--wp--preset--font-family--serif);
	--jg-sans: var(--wp--preset--font-family--sans);

	/* Each size is a clamp() from 390px to 1440px (theme.json font sizes). */
	--jg-text-display: var(--wp--preset--font-size--display);
	--jg-text-h1: var(--wp--preset--font-size--title);
	--jg-text-h2: var(--wp--preset--font-size--headline);
	--jg-text-h3: var(--wp--preset--font-size--subhead);
	--jg-text-h4: var(--wp--preset--font-size--row);
	--jg-text-figure: var(--wp--preset--font-size--figure);
	--jg-text-ledger: var(--wp--preset--font-size--ledger);
	--jg-text-deck: var(--wp--preset--font-size--deck);
	--jg-text-body: var(--wp--preset--font-size--body);
	--jg-text-small: var(--wp--preset--font-size--small);
	--jg-text-meta: var(--wp--preset--font-size--meta);

	--jg-max: 1312px;
	--jg-margin: clamp(20px, 4.44vw, 64px);
	--jg-gutter: 16px;
	--jg-section-y: 48px;
	--jg-header-h: 64px;
	/* Distance from the container edge to the viewport edge, for photographs that bleed out of the grid. */
	--jg-bleed: calc((100vw - min(100vw - 2 * var(--jg-margin), var(--jg-max))) / -2);

	--jg-ease: cubic-bezier(0.2, 0, 0, 1);
	--jg-fast: 120ms;
	--jg-base: 200ms;

	/* Icons: 24px grid, 1.5px strokes (Icon.astro), drawn with CSS masks. */
	--jg-i-arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.5' stroke-linecap='square'%3E%3Cpath d='M3.5 12h16M13.5 6l6 6-6 6'/%3E%3C/svg%3E");
	--jg-i-external: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.5' stroke-linecap='square'%3E%3Cpath d='M7 17L17 7M8.5 7H17v8.5'/%3E%3C/svg%3E");
	--jg-i-phone: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.5' stroke-linejoin='miter'%3E%3Cpath d='M5.5 3.5h3.8l1.9 4.7-2.6 1.6a11.5 11.5 0 0 0 5.6 5.6l1.6-2.6 4.7 1.9v3.8c0 .9-.7 1.6-1.6 1.6C10.6 20.1 3.9 13.4 3.9 5.1c0-.9.7-1.6 1.6-1.6z'/%3E%3C/svg%3E");
	--jg-i-chevron: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.5' stroke-linecap='square'%3E%3Cpath d='M5.5 9l6.5 6.5L18.5 9'/%3E%3C/svg%3E");
	--jg-i-menu: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.5' stroke-linecap='square'%3E%3Cpath d='M3.5 7h17M3.5 12h17M3.5 17h17'/%3E%3C/svg%3E");
	--jg-i-close: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.5' stroke-linecap='square'%3E%3Cpath d='M5.5 5.5l13 13M18.5 5.5l-13 13'/%3E%3C/svg%3E");
}

@media (min-width: 600px) {
	:root {
		--jg-gutter: 24px;
		--jg-section-y: 80px;
	}
}

@media (min-width: 900px) {
	:root {
		--jg-header-h: 72px;
	}
}

@media (min-width: 1200px) {
	:root {
		--jg-gutter: 32px;
		--jg-section-y: 96px;
	}
}

/* Metric-matched fallbacks (the values Astro's Fonts API generated), so text doesn't jump on swap. */
@font-face {
	font-family: 'Newsreader Fallback';
	src: local('Times New Roman');
	font-weight: 200 800;
	size-adjust: 100.6769%;
	ascent-override: 73.0058%;
	descent-override: 26.3218%;
	line-gap-override: 0%;
}

@font-face {
	font-family: 'Schibsted Grotesk Fallback';
	src: local('Arial');
	font-weight: 400 900;
	size-adjust: 104.4907%;
	ascent-override: 93.4593%;
	descent-override: 24.6733%;
	line-gap-override: 0%;
}

/* ==========================================================================
   Base
   ========================================================================== */

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	-webkit-text-size-adjust: 100%;
	scroll-padding-top: calc(var(--jg-header-h) + 24px);
}

body {
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-rendering: optimizeLegibility;
}

[hidden] {
	display: none !important;
}

:focus-visible {
	outline: 2px solid var(--jg-navy);
	outline-offset: 3px;
}

.jg-scene :focus-visible,
.jg-section--ink :focus-visible,
.jg-footer :focus-visible {
	outline-color: var(--jg-amber);
}

::selection {
	background: var(--jg-amber);
	color: var(--jg-ink);
}

/* Links outside the surfaces below (posts, plain pages): navy, 1px underline, 2px on hover. */
a:where(:not(.wp-element-button)) {
	text-decoration-thickness: 1px;
	text-underline-offset: 0.22em;
}

a:where(:not(.wp-element-button):hover) {
	color: var(--jg-navy-hover);
	text-decoration-thickness: 2px;
}

/*
 * Field edition surfaces start from the Astro reset: headings, paragraphs and lists carry no type
 * or spacing of their own, links inherit their colour. jg- classes then set everything. These
 * rules have the specificity of an element (0,0,1), so any class wins over them.
 */
:where(.jg-scene, .jg-section, .jg-svc, .jg-header, .jg-footer) :is(h1, h2, h3, h4, h5, h6) {
	margin: 0;
	color: inherit;
	font: inherit;
	letter-spacing: inherit;
}

:where(.jg-scene, .jg-section, .jg-svc, .jg-header, .jg-footer) :is(p, ul, ol, dl, dd, figure, blockquote) {
	margin: 0;
}

:where(.jg-scene, .jg-section, .jg-svc, .jg-header, .jg-footer) :is(ul, ol) {
	padding: 0;
	list-style: none;
}

:where(.jg-scene, .jg-section, .jg-svc, .jg-header, .jg-footer) a:where(:not(.wp-element-button)),
:where(.jg-scene, .jg-section, .jg-svc, .jg-header, .jg-footer) a:where(:not(.wp-element-button):hover) {
	color: inherit;
	font-weight: inherit;
	text-decoration-thickness: 1px;
}

:where(.jg-scene, .jg-section, .jg-svc, .jg-header, .jg-footer) img {
	display: block;
	max-width: 100%;
	height: auto;
}

/* The skip link core adds to block templates (DESIGN.md › Accessibility). */
.skip-link.screen-reader-text:focus {
	top: 12px;
	left: 16px;
	z-index: 100001;
	width: auto;
	height: auto;
	padding: 12px 16px;
	clip: auto !important;
	clip-path: none;
	background: var(--jg-navy);
	color: var(--jg-white);
	font-family: var(--jg-sans);
	font-size: 1rem;
	font-weight: 600;
	line-height: 1.3;
	text-decoration: none;
}

/* ==========================================================================
   Utilities
   ========================================================================== */

.jg-vh,
.screen-reader-text:not(:focus) {
	position: absolute !important;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
	border: 0;
}

.jg-num {
	font-variant-numeric: tabular-nums lining-nums;
}

.jg-nowrap {
	white-space: nowrap;
}

/* Swap a long label for a short one on phones, e.g. “Call a grain broker” / “Call”. */
.jg-only-sm {
	display: inline;
}

.jg-hide-sm {
	display: none;
}

@media (min-width: 600px) {
	.jg-only-sm {
		display: none;
	}

	.jg-hide-sm {
		display: inline;
	}
}

@media (max-width: 899px) {
	.jg-hide-m {
		display: none !important;
	}
}

/* ==========================================================================
   Layout
   ========================================================================== */

.jg-container {
	width: min(100% - 2 * var(--jg-margin), var(--jg-max));
	margin-inline: auto;
}

.jg-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	column-gap: var(--jg-gutter);
}

@media (min-width: 600px) {
	.jg-grid {
		grid-template-columns: repeat(8, minmax(0, 1fr));
	}
}

@media (min-width: 900px) {
	.jg-grid {
		grid-template-columns: repeat(12, minmax(0, 1fr));
	}
}

.jg-grid > * {
	grid-column: 1 / -1;
	min-width: 0;
}

.jg-section {
	padding-block: var(--jg-section-y);
}

.jg-section--oat {
	background: var(--jg-oat);
}

.jg-section--ink {
	background: var(--jg-ink);
	color: var(--jg-on-ink);
}

@media (min-width: 900px) {
	.jg-rail {
		grid-column: 1 / span 3;
	}

	.jg-body {
		grid-column: 4 / -1;
	}
}

/* The horizon rule: a 1px line with a 48px amber bar resting on its left end (a core separator). */
.jg-horizon,
hr.jg-horizon {
	position: relative;
	width: auto;
	max-width: none;
	height: 1px;
	margin: 0;
	padding: 0;
	overflow: visible;
	border: 0;
	background: var(--jg-ink);
	opacity: 1;
}

.jg-horizon::before {
	content: '';
	position: absolute;
	bottom: 0;
	left: 0;
	width: 48px;
	height: 3px;
	background: var(--jg-amber);
}

.jg-scene .jg-horizon {
	background: var(--jg-rule-scene);
}

.jg-section--ink .jg-horizon {
	background: var(--jg-rule-ink);
}

/* Opener (RailHeader): horizon, rail label, then the headline from column 4. */
.jg-opener {
	row-gap: 12px;
	align-items: baseline;
}

.jg-opener > .jg-horizon {
	align-self: start;
	margin-bottom: 12px;
}

.jg-opener .jg-deck {
	margin-top: 16px;
}

.jg-opener + * {
	margin-top: 32px;
}

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

/*
 * Pulls a cover or opener scene up under the sticky header. The second selector outranks core's
 * :root :where(.is-layout-flow) > :first-child, which resets the first block's margin.
 */
.jg-pull,
.is-layout-flow > .jg-pull:first-child {
	margin-top: calc(var(--jg-header-h) * -1);
}

/*
 * Photographs on paper (Frame): an image block cropped by ratio, anchor and zoom so no pale sky
 * meets the paper. Ratio presets: --wide 16:9 → 21:9 from 900px, --strip 16:9 → 3:1,
 * --banner 16:9 → 1312:240, --photo 3:2. Anchor and zoom come from jg-crop--* presets.
 */
.jg-frame {
	position: relative;
	overflow: hidden;
	background: var(--jg-oat);
}

.jg-frame img {
	display: block;
	width: 100%;
	max-width: none;
	height: auto;
	aspect-ratio: var(--ratio, 16 / 9);
	object-fit: cover;
	object-position: var(--pos, 50% 50%);
	transform: scale(var(--zoom, 1));
	transform-origin: 50% 100%;
}

@media (min-width: 900px) {
	.jg-frame img {
		aspect-ratio: var(--ratio-d, var(--ratio, 16 / 9));
	}
}

.jg-frame--wide {
	--ratio: 16 / 9;
	--ratio-d: 21 / 9;
}

.jg-frame--strip {
	--ratio: 16 / 9;
	--ratio-d: 3 / 1;
}

.jg-frame--banner {
	--ratio: 16 / 9;
	--ratio-d: 1312 / 240;
}

.jg-frame--photo {
	--ratio: 3 / 2;
}

.jg-frame figcaption {
	background: var(--jg-paper);
}

/* Captions on documentary photographs (core image captions). */
:is(.jg-scene, .jg-section, .jg-svc) figcaption,
.jg-caption {
	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;
}

.jg-section--ink figcaption,
.jg-section--ink .jg-caption {
	color: var(--jg-on-ink-3);
}

:is(.jg-scene, .jg-section, .jg-svc) figcaption strong,
.jg-caption strong {
	color: inherit;
	font-weight: 600;
}

.jg-section--ink figcaption strong,
.jg-section--ink .jg-caption strong {
	color: var(--jg-on-ink);
}

/* ==========================================================================
   Type
   ========================================================================== */

.jg-display,
.jg-h1,
.jg-h2,
.jg-h3,
.jg-h4,
.jg-statement {
	font-family: var(--jg-serif);
	font-optical-sizing: auto;
	font-weight: 400;
	font-variant-numeric: lining-nums;
	text-wrap: balance;
}

.jg-display {
	font-size: var(--jg-text-display);
	line-height: 1;
	letter-spacing: -0.028em;
}

.jg-h1 {
	font-size: var(--jg-text-h1);
	line-height: 1.04;
	letter-spacing: -0.024em;
}

.jg-h2 {
	max-width: 18em;
	font-size: var(--jg-text-h2);
	line-height: 1.08;
	letter-spacing: -0.02em;
}

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

.jg-h4 {
	font-size: var(--jg-text-h4);
	font-weight: 500;
	line-height: 1.25;
	letter-spacing: -0.006em;
}

.jg-statement {
	font-size: var(--jg-text-h2);
	line-height: 1.06;
	letter-spacing: -0.02em;
}

/* Statements and taglines set one phrase per line. */
.jg-statement > span,
.jg-lines > span {
	display: block;
}

@media (max-width: 899px) {
	.jg-lines > span {
		display: inline;
	}
}

/* A three-phrase tagline: stacked on phones, the last phrase on its own line from 900px. */
.jg-tagline > span {
	display: block;
}

@media (min-width: 900px) {
	.jg-tagline > span:not(:last-child) {
		display: inline;
	}
}

.jg-scene .jg-display,
.jg-scene .jg-h1,
.jg-scene .jg-h2,
.jg-section--ink .jg-h2 {
	font-weight: 450;
}

.jg-deck {
	max-width: 34em;
	color: var(--jg-ink-2);
	font-family: var(--jg-sans);
	font-size: var(--jg-text-deck);
	line-height: 1.5;
	letter-spacing: -0.005em;
	text-wrap: pretty;
}

.jg-section--ink .jg-deck {
	color: var(--jg-on-ink-2);
}

.jg-scene .jg-deck {
	color: var(--jg-on-ink);
}

.jg-body-text,
.jg-prose {
	font-size: var(--jg-text-body);
	line-height: 1.6;
}

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

.jg-prose > * + * {
	margin-top: 1em;
}

.jg-small {
	font-size: var(--jg-text-small);
	line-height: 1.5;
}

.jg-label {
	font-family: var(--jg-sans);
	font-size: var(--jg-text-small);
	font-weight: 600;
	line-height: 1.3;
	letter-spacing: 0;
}

.jg-meta {
	color: var(--jg-ink-3);
	font-family: var(--jg-sans);
	font-size: var(--jg-text-meta);
	font-weight: 500;
	line-height: 1.45;
	letter-spacing: 0.01em;
}

.jg-scene .jg-meta {
	color: var(--jg-on-ink-2);
}

.jg-section--ink .jg-meta {
	color: var(--jg-on-ink-3);
}

.jg-figure {
	display: block;
	color: var(--jg-navy);
	font-family: var(--jg-serif);
	font-size: var(--jg-text-figure);
	font-weight: 400;
	font-variant-numeric: tabular-nums lining-nums;
	line-height: 1;
	letter-spacing: -0.02em;
	white-space: nowrap;
}

.jg-scene .jg-figure,
.jg-section--ink .jg-figure {
	color: var(--jg-amber);
}

/* ==========================================================================
   Links and buttons
   ========================================================================== */

/*
 * Text link (TextLink): put jg-link on the paragraph that holds the link, or on the link itself.
 * An arrow follows inside the site; jg-link--ext swaps it for the external mark, jg-link--plain
 * drops it. jg-link--sm is the 15px size with a 14px icon.
 */
a.jg-link,
.jg-link > a {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 44px;
	color: var(--jg-navy);
	font-family: var(--jg-sans);
	font-size: 1rem;
	font-weight: 600;
	line-height: 1.3;
	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);
}

a.jg-link::after,
.jg-link > a::after {
	content: '';
	flex: none;
	width: 18px;
	height: 18px;
	background: currentColor;
	-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);
}

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

a.jg-link:hover::after,
.jg-link > a:hover::after {
	transform: translateX(4px);
}

.jg-link--sm > a,
a.jg-link--sm {
	font-size: var(--jg-text-small);
}

.jg-link--sm > a::after,
a.jg-link--sm::after {
	width: 14px;
	height: 14px;
}

.jg-link--ext > a::after,
a.jg-link--ext::after {
	width: 14px;
	height: 14px;
	-webkit-mask-image: var(--jg-i-external);
	mask-image: var(--jg-i-external);
}

.jg-link--ext > a:hover::after,
a.jg-link--ext:hover::after {
	transform: none;
}

.jg-link--plain > a::after,
a.jg-link--plain::after {
	display: none;
}

.jg-scene a.jg-link,
.jg-scene .jg-link > a,
.jg-section--ink a.jg-link,
.jg-section--ink .jg-link > a {
	color: var(--jg-on-ink);
}

/* Buttons are core button blocks: see blocks.css (styles Amber and Outline, jg-btn--sm, jg-icon-*). */

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

.jg-btn__num {
	font-weight: 500;
	font-variant-numeric: tabular-nums lining-nums;
	white-space: nowrap;
}

.wp-block-button:not(.is-style-amber, .is-style-secondary) .jg-btn__num {
	opacity: 0.85;
}

.jg-dot {
	display: inline-block;
	flex: none;
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--jg-amber);
}

/* Call line (CallLine): a navy Newsreader tel: link with a phone icon, then its task. */
.jg-call-line {
	display: grid;
	gap: 0;
	justify-items: start;
}

.jg-call-line .jg-meta {
	margin-top: -6px;
	padding-left: 28px;
}

.jg-call-line a {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	min-height: 44px;
	color: var(--jg-navy);
	font-family: var(--jg-serif);
	font-size: var(--jg-text-h4);
	font-variant-numeric: tabular-nums lining-nums;
	font-weight: 500;
	line-height: 1.25;
	text-decoration: none;
	white-space: nowrap;
}

.jg-call-line a::before {
	content: '';
	flex: none;
	width: 18px;
	height: 18px;
	background: currentColor;
	-webkit-mask: var(--jg-i-phone) center / contain no-repeat;
	mask: var(--jg-i-phone) center / contain no-repeat;
}

.jg-call-line a:hover {
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 0.16em;
}

.jg-section--ink .jg-call-line a {
	color: var(--jg-on-ink);
}

/* Breadcrumbs (the johnstons-grain/breadcrumbs block). */
.jg-breadcrumb {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0 8px;
}

.jg-breadcrumb a {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	color: inherit;
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 0.22em;
}

.jg-breadcrumb [aria-current='page'] {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
}

.jg-scene .jg-breadcrumb {
	color: var(--jg-on-ink-2);
}

/* ==========================================================================
   Scene: a core/cover block (className jg-scene jg-scene--cover|opener|feature).
   Full-bleed photograph on ink from 900px; below 900px a framed photograph
   above an ink block. The cover's inner container is the jg- container.
   ========================================================================== */

.jg-scene.wp-block-cover {
	position: relative;
	display: block;
	isolation: isolate;
	min-height: 0;
	padding: 0;
	overflow: hidden;
	background: var(--jg-ink);
	color: var(--jg-on-ink);
}

.jg-scene.wp-block-cover .wp-block-cover__image-background {
	position: static;
	z-index: 0;
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 16 / 9;
	object-fit: cover;
	object-position: var(--pos-m, var(--pos, 50% 50%));
}

@media (max-width: 599px) {
	.jg-scene--cover.wp-block-cover .wp-block-cover__image-background,
	.jg-scene--subject.wp-block-cover .wp-block-cover__image-background {
		aspect-ratio: 4 / 3;
	}
}

/* The scrim is the cover's own overlay span, restyled: never a flat dim. */
.jg-scene.wp-block-cover > .wp-block-cover__background {
	display: none;
}

/* On phones only the header overlaps the photograph, so only the top scrim is needed. */
.jg-scene--cover.wp-block-cover > .wp-block-cover__background,
.jg-scene--opener.wp-block-cover > .wp-block-cover__background {
	position: absolute;
	inset: 0 0 auto;
	z-index: 1;
	display: block;
	height: 200px;
	background: var(--jg-scrim-top) !important;
	opacity: 1 !important;
}

.jg-scene.wp-block-cover > .wp-block-cover__inner-container {
	position: relative;
	z-index: 2;
	width: min(100% - 2 * var(--jg-margin), var(--jg-max));
	margin-inline: auto;
	padding-block: 32px 40px;
	color: var(--jg-on-ink);
}

.jg-scene__head {
	row-gap: 20px;
	align-items: start;
}

.jg-scene__rail {
	display: flex;
	align-items: baseline;
	gap: 12px;
}

.jg-scene__rail .jg-figure {
	font-size: 2.5rem;
}

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

.jg-scene__text .jg-actions {
	margin-top: 28px;
}

.jg-scene__text--wide .jg-deck {
	max-width: 32em;
}

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

.jg-scene__base > .jg-grid {
	padding-top: 20px;
	row-gap: 16px;
}

@media (min-width: 900px) {
	.jg-scene.wp-block-cover {
		display: flex;
		flex-direction: column;
		justify-content: flex-end;
		align-items: stretch;
		min-height: 680px;
	}

	.jg-scene--cover.wp-block-cover {
		min-height: clamp(720px, 100svh, 960px);
	}

	.jg-scene--opener.wp-block-cover {
		min-height: 600px;
	}

	.jg-scene.wp-block-cover .wp-block-cover__image-background {
		position: absolute;
		inset: 0;
		height: 100%;
		aspect-ratio: auto;
		object-position: var(--pos, 50% 50%);
		transform: scale(var(--zoom, 1));
		transform-origin: var(--origin, var(--pos, 50% 50%));
	}

	.jg-scene.wp-block-cover > .wp-block-cover__background,
	.jg-scene--cover.wp-block-cover > .wp-block-cover__background,
	.jg-scene--opener.wp-block-cover > .wp-block-cover__background {
		position: absolute;
		inset: 0;
		z-index: 1;
		display: block;
		height: auto;
		background:
			linear-gradient(
				to bottom,
				rgb(10 27 43 / var(--top, 0)) 0,
				rgb(10 27 43 / calc(var(--top, 0) * 0.7)) 72px,
				rgb(10 27 43 / 0) 240px
			),
			linear-gradient(
				to right,
				rgb(10 27 43 / var(--side, 0.72)) 0,
				rgb(10 27 43 / calc(var(--side, 0.72) * 0.6)) var(--side-mid, 38%),
				rgb(10 27 43 / 0) var(--side-end, 72%)
			),
			linear-gradient(to bottom, rgb(10 27 43 / 0) var(--base-from, 45%), rgb(10 27 43 / var(--base, 0.9)) 100%) !important;
		opacity: 1 !important;
	}

	.jg-scene.wp-block-cover > .wp-block-cover__inner-container {
		padding-block: 96px 40px;
	}

	.jg-scene--cover.wp-block-cover > .wp-block-cover__inner-container,
	.jg-scene--opener.wp-block-cover > .wp-block-cover__inner-container {
		padding-top: calc(var(--jg-header-h) + 64px);
	}

	.jg-scene__head {
		align-items: end;
	}

	.jg-scene__head > .jg-scene__rail {
		grid-column: 1 / span 3;
		display: block;
		align-self: start;
		padding-top: 6px;
	}

	.jg-scene__rail .jg-figure {
		font-size: var(--jg-text-figure);
	}

	.jg-scene__rail .jg-label {
		margin-top: 12px;
	}

	.jg-scene__head > .jg-scene__rail.jg-breadcrumb {
		display: flex;
		padding-top: 18px;
	}

	.jg-scene__head > .jg-scene__text {
		grid-column: 4 / span 5;
		align-self: start;
	}

	.jg-scene__head > .jg-scene__text--wide {
		grid-column: 4 / -1;
	}

	.jg-scene__head > .jg-scene__aside {
		grid-column: 9 / -1;
		justify-self: end;
	}

	.jg-scene__base {
		margin-top: 56px;
	}

	.jg-scene__base > .jg-grid {
		padding-top: 24px;
	}
}

/* The cover: the front page of the edition. Its headline alone starts at column 1. */
.jg-scene__text--cover .jg-deck {
	max-width: 35em;
	margin-top: 24px;
}

@media (min-width: 900px) {
	.jg-scene__head > .jg-scene__text--cover {
		grid-column: 1 / span 9;
	}

	.jg-scene__text--cover .jg-display {
		max-width: 11.5em;
	}
}

@media (min-width: 1200px) {
	.jg-scene__text--cover .jg-display > span {
		display: block;
	}
}

@media (max-width: 599px) {
	.jg-scene__text--cover .wp-block-buttons,
	.jg-scene__text--cover .wp-block-buttons .wp-block-button,
	.jg-scene__text--cover .wp-block-buttons .wp-block-button__link {
		width: 100%;
	}

	.jg-scene__text--cover .wp-block-buttons .wp-block-button__link {
		justify-content: flex-start;
	}
}

@media (min-width: 900px) and (prefers-reduced-motion: no-preference) {
	.jg-scene--cover.wp-block-cover .wp-block-cover__image-background {
		animation: jg-settle 1.6s var(--jg-ease) both;
	}

	@keyframes jg-settle {
		from {
			transform: scale(calc(var(--zoom, 1) * 1.03));
		}

		to {
			transform: scale(var(--zoom, 1));
		}
	}
}

/*
 * Framing presets (DESIGN.md › Photographs): --pos and --zoom from 900px, --pos-m for the framed
 * phone photograph. They work on scenes, frames, spreads and feature photographs alike.
 */
.jg-crop--road {
	--pos: 50% 100%;
	--zoom: 1.12;
	--pos-m: 50% 62%;
}

.jg-crop--wheat {
	--pos: 50% 100%;
	--zoom: 1.3;
	--pos-m: 50% 100%;
}

.jg-crop--truck {
	--pos: 50% 100%;
	--zoom: 1.3;
	--pos-m: 74% 60%;
}

.jg-crop--connected {
	--pos: 0% 0%;
	--zoom: 1.15;
	--pos-m: 62% 50%;
}

.jg-crop--regenerative {
	--pos: 47% 50%;
	--pos-m: 47% 52%;
}

.jg-crop--sprayer {
	--pos: 76% 50%;
}

/*
 * Scrim presets, measured for contrast at 1440, 1200, 1024 and 900 (DESIGN.md › Scrims).
 * cover: the Home cover. opener: page openers. feature: subject scenes. deep: busy photographs.
 */
.jg-scrim--cover {
	--top: 0.72;
	--side: 0.74;
	--base: 0.9;
	--base-from: 52%;
}

.jg-scrim--opener {
	--top: 0.8;
	--side: 0.86;
	--side-mid: 55%;
	--side-end: 100%;
	--base: 0.92;
	--base-from: 30%;
}

.jg-scrim--feature {
	--side: 0.78;
	--base: 0.92;
	--base-from: 40%;
}

.jg-scrim--deep {
	--side: 0.9;
	--side-mid: 52%;
	--side-end: 90%;
	--base: 0.9;
	--base-from: 55%;
}

/* ==========================================================================
   Johnston’s Daily on the cover (DailyCover): two Query Loops whose wrappers
   step aside (display: contents) so their posts sit on the cover's grid.
   ========================================================================== */

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

/* Their children aren't matched by .jg-grid > *, so they span the grid themselves. */
.jg-today__lead-query .jg-today__mast,
.jg-today__lead-query .jg-today__lead {
	grid-column: 1 / -1;
	min-width: 0;
}

.jg-today__masthead {
	font-family: var(--jg-serif);
	font-size: 1.75rem;
	font-weight: 500;
	line-height: 1.05;
	letter-spacing: -0.02em;
}

.jg-today__masthead em,
.jg-masthead__title em {
	font-style: italic;
	font-weight: 400;
}

.jg-today__mast .jg-meta {
	margin-top: 6px;
}

.jg-today-mark {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: var(--jg-text-meta);
	font-weight: 600;
	line-height: 1.45;
	letter-spacing: 0.01em;
}

.jg-today__lead .jg-today__headline {
	margin-top: 8px;
	font-family: var(--jg-serif);
	font-size: clamp(1.625rem, 1.3rem + 0.9vw, 2rem);
	font-weight: 450;
	line-height: 1.12;
	letter-spacing: -0.014em;
	text-wrap: balance;
}

.jg-today__lead .jg-link {
	margin-top: 4px;
}

.jg-today .jg-today__headline a {
	text-decoration: none;
}

.jg-today .jg-today__headline a:hover {
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 0.14em;
}

.jg-today__side {
	display: none;
}

@media (min-width: 600px) {
	.jg-today__side {
		display: block;
	}

	.jg-today__list > li {
		position: relative;
		display: grid;
		grid-template-columns: 4.25rem minmax(0, 1fr);
		gap: 12px;
		align-items: baseline;
		padding: 12px 0 14px;
		border-top: 1px solid var(--jg-rule-scene);
	}

	.jg-today__list > li:first-child {
		padding-top: 0;
		border-top: 0;
	}

	.jg-today__list .jg-today__headline {
		font-family: var(--jg-serif);
		font-size: 1.25rem;
		font-weight: 450;
		line-height: 1.25;
		text-wrap: balance;
	}

	/* The headline link covers its row, so the target is the whole ruled row. */
	.jg-today__list .jg-today__headline a::after {
		content: '';
		position: absolute;
		inset: 0;
	}
}

@media (min-width: 900px) {
	.jg-today {
		align-items: start;
	}

	.jg-today > .jg-today__lead-query .jg-today__mast {
		grid-column: 1 / span 3;
	}

	.jg-today > .jg-today__lead-query .jg-today__lead {
		grid-column: 4 / span 4;
	}

	.jg-today__lead .jg-today__headline {
		margin-top: 10px;
	}

	.jg-today > .jg-today__side {
		grid-column: 8 / -1;
	}

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

/* ==========================================================================
   Figures and steps (FactLedger, Steps)
   ========================================================================== */

.jg-figures__list {
	display: grid;
	row-gap: 0;
}

.jg-figures__item {
	display: grid;
	grid-template-columns: 6.5rem minmax(0, 1fr);
	gap: 16px;
	align-items: baseline;
	padding: 12px 0;
	border-top: 1px solid var(--jg-rule);
}

.jg-scene .jg-figures__item,
.jg-section--ink .jg-figures__item {
	border-top-color: var(--jg-rule-scene);
}

.jg-figures__item:first-child {
	padding-top: 0;
	border-top: 0;
}

.jg-figures__item .jg-figure {
	font-size: 2.25rem;
}

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

.jg-scene .jg-figures__text,
.jg-section--ink .jg-figures__text {
	color: var(--jg-on-ink-2);
}

@media (min-width: 900px) {
	.jg-grid > .jg-figures__list {
		grid-column: 4 / -1;
		grid-template-columns: subgrid;
	}

	.jg-figures__item {
		position: relative;
		grid-column: span 3;
		display: block;
		padding: 0;
		border-top: 0;
	}

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

	.jg-scene .jg-figures__item + .jg-figures__item::before,
	.jg-section--ink .jg-figures__item + .jg-figures__item::before {
		background: var(--jg-rule-scene);
	}

	.jg-figures__item .jg-figure {
		font-size: var(--jg-text-figure);
	}

	.jg-figures__text {
		max-width: 18em;
		margin-top: 10px;
	}
}

.jg-steps {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 20px var(--jg-gutter);
}

.jg-step .jg-step__title {
	font-family: var(--jg-serif);
	font-size: var(--jg-text-h4);
	font-weight: 500;
	line-height: 1.2;
}

.jg-step .jg-step__text {
	max-width: 20em;
	margin-top: 4px;
	color: var(--jg-on-ink-2);
	font-size: var(--jg-text-small);
	line-height: 1.45;
}

.jg-step__n {
	display: block;
	color: var(--jg-amber);
	font-family: var(--jg-serif);
	font-size: var(--jg-text-small);
	font-variant-numeric: tabular-nums lining-nums;
}

/* In a scene base the steps are titles only on phones. */
@media (max-width: 899px) {
	.jg-scene .jg-step .jg-step__text {
		display: none;
	}
}

@media (min-width: 900px) {
	.jg-grid > .jg-steps {
		grid-column: 4 / -1;
	}

	.jg-steps {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}

	.jg-step {
		position: relative;
	}

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

/* On ink each step sits under its own rule, the first one amber. */
.jg-section--ink .jg-steps {
	margin-top: 40px;
}

.jg-section--ink .jg-step {
	padding-top: 14px;
	border-top: 1px solid var(--jg-rule-ink);
}

.jg-section--ink .jg-step:first-child {
	border-top-color: var(--jg-amber);
}

.jg-section--ink .jg-step + .jg-step::before {
	display: none;
}

@media (min-width: 900px) {
	.jg-section--ink .jg-steps {
		margin-top: 48px;
	}
}

/* ==========================================================================
   Pathways (ServiceDirectory): each service with its proof. The title link
   covers the row; the arrow is the row's ::after, placed in column 12.
   ========================================================================== */

.jg-pathways {
	position: relative;
	z-index: 0;
	border-bottom: 1px solid var(--jg-rule);
}

.jg-pathway {
	position: relative;
	grid-template-columns: 3.25rem minmax(0, 1fr);
	row-gap: 0;
	align-items: baseline;
	padding: 16px 0 18px;
	border-top: 1px solid var(--jg-rule);
}

.jg-pathway > * {
	grid-column: 2;
}

.jg-pathway > .jg-pathway__num {
	grid-column: 1;
	grid-row: 1;
}

.jg-pathway:first-child {
	padding-top: 0;
	border-top-color: transparent;
}

.jg-pathway::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-pathway:first-child::before {
	top: -24px;
}

.jg-pathway:hover::before {
	opacity: 1;
}

.jg-pathway .jg-pathway__num {
	font-size: 1.75rem;
}

.jg-pathway > .jg-pathway__title {
	grid-row: 1;
}

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

/* The title link covers the whole row. */
.jg-pathway__title a::after {
	content: '';
	position: absolute;
	inset: 0;
}

.jg-pathway:hover .jg-pathway__title a {
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 0.16em;
}

.jg-pathway__proof {
	margin-top: 6px;
}

.jg-pathway__fact {
	color: var(--jg-navy);
	font-family: var(--jg-serif);
	font-size: var(--jg-text-h4);
	font-variant-numeric: lining-nums;
	font-weight: 500;
	line-height: 1.2;
	letter-spacing: -0.01em;
}

.jg-pathway__text {
	max-width: 34em;
	margin-top: 6px;
	color: var(--jg-ink-2);
	text-wrap: pretty;
}

.jg-pathway::after {
	content: '';
	display: none;
	width: 24px;
	height: 24px;
	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);
}

@media (min-width: 900px) {
	.jg-pathway {
		grid-template-columns: repeat(12, minmax(0, 1fr));
		padding: 28px 0 32px;
	}

	.jg-pathway:first-child::before {
		top: -28px;
	}

	.jg-pathway > .jg-pathway__num {
		grid-column: 1 / span 3;
		grid-row: 1;
		font-size: var(--jg-text-figure);
	}

	.jg-pathway > .jg-pathway__title {
		grid-column: 4 / span 4;
		grid-row: 1;
	}

	.jg-pathway > .jg-pathway__proof {
		grid-column: 8 / span 4;
		grid-row: 1;
		margin-top: 0;
	}

	.jg-pathway::after {
		grid-column: 12;
		grid-row: 1;
		display: block;
		align-self: start;
		justify-self: end;
		margin-top: 6px;
	}

	.jg-pathway:hover::after {
		transform: translateX(4px);
	}
}

/* ==========================================================================
   Johnston’s Daily front page (DailyFrontPage)
   ========================================================================== */

.jg-masthead__inner {
	row-gap: 20px;
	align-items: end;
	padding-top: 24px;
}

.jg-masthead__title {
	font-family: var(--jg-serif);
	font-size: clamp(3rem, 1.5rem + 6vw, 7rem);
	font-weight: 500;
	line-height: 0.92;
	letter-spacing: -0.035em;
}

.jg-masthead__about {
	color: var(--jg-ink-2);
	font-size: var(--jg-text-small);
}

.jg-masthead__about > p {
	max-width: 28em;
}

.jg-masthead__about .jg-actions,
.jg-masthead__about .wp-block-buttons {
	margin-top: 16px;
}

@media (min-width: 900px) {
	.jg-masthead__inner > .jg-masthead__title {
		grid-column: 1 / span 8;
	}

	.jg-masthead__inner > .jg-masthead__about {
		grid-column: 9 / -1;
		padding-bottom: 6px;
	}
}

.jg-subscribe {
	display: flex;
	flex-wrap: nowrap;
	gap: 8px;
	margin-top: 16px;
}

.jg-dateline {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 0 24px;
	margin-top: 24px;
	padding: 4px 0;
	border-top: 1px solid var(--jg-ink);
	border-bottom: 1px solid var(--jg-rule);
}

.jg-dateline .jg-meta,
.jg-dateline .wp-block-post-date {
	color: var(--jg-ink);
}

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

.jg-front {
	row-gap: 0;
	margin-top: 24px;
}

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

.jg-front .wp-block-post {
	grid-column: 1 / -1;
	min-width: 0;
}

.jg-front__lead .wp-block-post {
	padding-bottom: 20px;
}

.jg-front .jg-lead-story__title {
	margin-top: 8px;
	font-family: var(--jg-serif);
	font-size: clamp(1.75rem, 1.2rem + 2.2vw, 2.875rem);
	font-weight: 400;
	line-height: 1.06;
	letter-spacing: -0.022em;
	text-wrap: balance;
}

.jg-lead-story__title a,
.jg-headline a {
	text-decoration: none;
}

.jg-lead-story__title a:hover,
.jg-headline a:hover {
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 0.14em;
}

.jg-front__lead .jg-link {
	margin-top: 8px;
}

.jg-front__more .wp-block-post {
	padding: 16px 0 18px;
	border-top: 1px solid var(--jg-rule);
}

.jg-front .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;
}

@media (min-width: 600px) and (max-width: 899px) {
	.jg-front__more .wp-block-post {
		grid-column: span 4;
	}
}

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

	.jg-front__lead .wp-block-post {
		grid-column: 1 / span 6;
		padding: 0 16px 0 0;
	}

	.jg-front__more .wp-block-post {
		position: relative;
		grid-column: span 3;
		padding: 0;
		border-top: 0;
	}

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

	.jg-front .jg-headline {
		margin-top: 8px;
	}
}

@media (max-width: 599px) {
	.jg-dateline__date .wp-block-post-date,
	.jg-front__more .wp-block-post:last-child {
		display: none;
	}
}

/* ==========================================================================
   Spread: a half-bleed photograph beside a statement
   ========================================================================== */

.jg-spread {
	padding-block: 0;
}

.jg-spread__grid {
	row-gap: 24px;
}

.jg-spread__grid > .jg-spread__media {
	margin-inline: calc(var(--jg-margin) * -1);
}

.jg-spread__media img {
	display: block;
	width: 100%;
	aspect-ratio: 16 / 9;
	object-fit: cover;
	object-position: var(--pos, 50% 50%);
}

.jg-spread__text {
	padding-bottom: var(--jg-section-y);
}

.jg-spread__text .jg-horizon {
	margin-bottom: 20px;
}

.jg-spread__text .jg-statement {
	margin-top: 16px;
}

.jg-spread__text .jg-deck {
	margin-top: 24px;
}

.jg-spread__text .jg-actions {
	margin-top: 32px;
}

@media (min-width: 900px) {
	.jg-spread__grid {
		align-items: stretch;
	}

	.jg-spread__grid > .jg-spread__media {
		position: relative;
		grid-column: 1 / span 6;
		margin-right: 0;
		margin-left: var(--jg-bleed);
	}

	.jg-spread__media img {
		position: absolute;
		inset: 0;
		height: 100%;
		aspect-ratio: auto;
	}

	.jg-spread__grid > .jg-spread__text {
		grid-column: 8 / -1;
		padding-block: var(--jg-section-y);
	}
}

/* ==========================================================================
   Feature split: rail and statement across the body, then text in 4–8
   beside a photograph that bleeds right
   ========================================================================== */

.jg-feature__head {
	row-gap: 16px;
	align-items: start;
	padding-top: 20px;
}

.jg-feature__rail,
.jg-spread__rail {
	display: flex;
	align-items: baseline;
	gap: 12px;
}

.jg-feature__rail .jg-figure,
.jg-spread__rail .jg-figure {
	font-size: 1.75rem;
}

.jg-feature__rail .jg-meta {
	display: none;
}

.jg-feature__row {
	row-gap: 24px;
	margin-top: 24px;
}

.jg-feature__row > .jg-feature__media {
	order: -1;
	margin-inline: calc(var(--jg-margin) * -1);
	overflow: hidden;
	background: var(--jg-ink);
}

.jg-feature__media img {
	display: block;
	width: 100%;
	aspect-ratio: 16 / 9;
	object-fit: cover;
	object-position: var(--pos-m, var(--pos, 50% 50%));
}

.jg-feature__text .jg-deck {
	max-width: 30em;
}

.jg-feature__text > * + * {
	margin-top: 28px;
}

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

.jg-feature__desk .jg-call-line .jg-meta {
	max-width: 22em;
}

@media (min-width: 900px) {
	.jg-feature {
		padding-bottom: 0;
	}

	.jg-feature__head {
		padding-top: 24px;
	}

	.jg-feature__head > .jg-feature__rail {
		grid-column: 1 / span 3;
		display: block;
	}

	.jg-spread__rail {
		display: block;
	}

	.jg-feature__rail .jg-figure,
	.jg-spread__rail .jg-figure {
		font-size: var(--jg-text-figure);
	}

	.jg-feature__rail .jg-label,
	.jg-spread__rail .jg-label {
		margin-top: 12px;
	}

	.jg-feature__rail .jg-meta {
		display: block;
		margin-top: 2px;
	}

	.jg-feature__head > .jg-feature__title {
		grid-column: 4 / -1;
	}

	.jg-feature__row {
		align-items: stretch;
		margin-top: 32px;
	}

	.jg-feature__row > .jg-feature__text {
		grid-column: 4 / span 5;
		grid-row: 1;
		padding-bottom: var(--jg-section-y);
	}

	.jg-feature__row > .jg-feature__desk {
		grid-column: 1 / span 3;
		grid-row: 1;
		align-self: start;
		max-width: 15rem;
		margin-top: 0;
		padding-top: 12px;
		border-top: 1px solid var(--jg-ink);
	}

	.jg-feature__desk .jg-call-line {
		gap: 2px;
	}

	.jg-feature__desk .jg-call-line .jg-meta {
		order: -1;
		margin: 0;
		padding: 0;
	}

	.jg-feature__desk .jg-call-line a {
		font-size: 1.375rem;
	}

	.jg-feature__desk .jg-call-line a::before {
		display: none;
	}

	.jg-feature__row > .jg-feature__media {
		position: relative;
		order: 0;
		grid-column: 9 / -1;
		grid-row: 1;
		min-height: 360px;
		margin-right: var(--jg-bleed);
		margin-left: 0;
	}

	.jg-feature__media img {
		position: absolute;
		inset: 0;
		height: 100%;
		aspect-ratio: auto;
		object-position: var(--pos, 50% 50%);
	}
}

/* ==========================================================================
   Program (SteppedProgram): numbered steps grouped by stage.
   The brief variant is one ruled row per stage.
   ========================================================================== */

.jg-program__head {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: space-between;
	gap: 0 24px;
}

.jg-program {
	border-top: 1px solid var(--jg-ink);
}

.jg-program__n {
	color: var(--jg-navy);
	font-family: var(--jg-serif);
	font-size: 1.375rem;
	font-weight: 400;
	font-variant-numeric: tabular-nums lining-nums;
	line-height: 1.2;
	white-space: nowrap;
}

.jg-program__name {
	font-family: var(--jg-serif);
	font-size: 1.25rem;
	font-weight: 500;
	line-height: 1.2;
	letter-spacing: -0.006em;
}

/* Brief */
.jg-program--brief {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	column-gap: var(--jg-gutter);
}

.jg-program--brief .jg-program__stage {
	display: flex;
	align-items: baseline;
	gap: 10px;
	padding: 12px 0 14px;
	border-bottom: 1px solid var(--jg-rule);
}

.jg-program--brief .jg-program__summary {
	display: none;
}

@media (min-width: 600px) {
	.jg-program--brief {
		display: block;
	}

	.jg-program--brief .jg-program__stage {
		display: grid;
		grid-template-columns: 4.25rem 6.25rem minmax(0, 1fr);
		gap: 0 16px;
		padding: 12px 0 13px;
	}

	.jg-program--brief .jg-program__summary {
		display: block;
		color: var(--jg-ink-2);
		font-size: var(--jg-text-small);
		line-height: 1.45;
		text-wrap: pretty;
	}
}

@media (min-width: 900px) and (max-width: 1199px) {
	.jg-program--brief .jg-program__stage {
		grid-template-columns: 4.25rem minmax(0, 1fr);
	}

	.jg-program--brief .jg-program__summary {
		grid-column: 2;
		margin-top: 2px;
	}
}

/* Full: stage names in the first two body columns, steps in the rest. Place it in columns 4–12. */
.jg-program--full .jg-program__stage {
	padding: 12px 0 4px;
	border-bottom: 1px solid var(--jg-ink);
}

.jg-program--full .jg-program__stage:last-child {
	border-bottom-color: var(--jg-rule);
}

.jg-program__steps {
	margin-top: 6px;
}

.jg-program__steps li {
	display: grid;
	grid-template-columns: 2.5rem minmax(0, 1fr);
	column-gap: 12px;
	align-items: baseline;
	padding: 6px 0 7px;
	border-top: 1px solid var(--jg-rule);
}

.jg-program__steps li:first-child {
	border-top: 0;
}

.jg-program__steps strong {
	font-size: 1rem;
	font-weight: 600;
	line-height: 1.4;
}

.jg-program__steps li > span:not(.jg-program__n) {
	grid-column: 2;
	color: var(--jg-ink-2);
	font-size: var(--jg-text-small);
	line-height: 1.45;
}

@media (max-width: 599px) {
	.jg-program--full .jg-program__stage {
		padding-top: 10px;
	}

	.jg-program--full .jg-program__stage > .jg-program__name {
		font-family: var(--jg-sans);
		font-size: var(--jg-text-small);
		font-weight: 600;
		line-height: 1.3;
		letter-spacing: 0;
	}

	.jg-program__steps {
		margin-top: 2px;
	}

	.jg-program__steps li > span:not(.jg-program__n) {
		display: none;
	}
}

@media (min-width: 900px) {
	.jg-program--full {
		display: grid;
		grid-template-columns: repeat(9, minmax(0, 1fr));
		column-gap: var(--jg-gutter);
	}

	.jg-program--full .jg-program__stage {
		grid-column: 1 / -1;
		display: grid;
		grid-template-columns: subgrid;
		align-items: baseline;
		padding: 0;
	}

	.jg-program--full .jg-program__name {
		grid-column: 1 / span 2;
		padding-top: 8px;
	}

	.jg-program--full .jg-program__steps {
		grid-column: 3 / -1;
		margin-top: 0;
	}

	.jg-program__steps li {
		padding: 7px 0 8px;
	}
}

@media (min-width: 1200px) {
	.jg-program__steps li {
		grid-template-columns: 2.5rem minmax(0, 0.85fr) minmax(0, 1fr);
	}

	.jg-program__steps li > span:not(.jg-program__n) {
		grid-column: 3;
	}
}

/* ==========================================================================
   Johnston’s Connected
   ========================================================================== */

.jg-connected__logo img {
	width: 168px;
	height: auto;
}

.jg-connected__logo {
	margin-bottom: 20px;
}

.jg-connected__figure {
	margin-top: 24px;
}

.jg-connected__figure img {
	width: min(330px, 100%);
}

@media (min-width: 600px) {
	.jg-connected__logo img {
		width: 200px;
	}
}

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

	.jg-connected__figure {
		align-self: end;
		margin-top: 0;
	}
}

/* ==========================================================================
   Story: timeline, Ottawa 2011, the family and the firm (OurStory)
   ========================================================================== */

.jg-timeline {
	display: grid;
	row-gap: 0;
}

.jg-timeline > * {
	display: grid;
	grid-template-columns: 5.5rem minmax(0, 1fr);
	gap: 16px;
	align-items: baseline;
	padding: 16px 0 18px;
	border-top: 1px solid var(--jg-rule-ink);
}

.jg-timeline .jg-figure {
	font-size: 2rem;
}

.jg-timeline h3 {
	font-family: var(--jg-serif);
	font-size: var(--jg-text-h4);
	font-weight: 500;
	line-height: 1.25;
	text-wrap: balance;
}

.jg-timeline p:not(.jg-figure) {
	margin-top: 6px;
	color: var(--jg-on-ink-2);
	font-size: var(--jg-text-small);
	line-height: 1.55;
	text-wrap: pretty;
}

@media (min-width: 900px) {
	.jg-grid > .jg-timeline {
		grid-column: 4 / -1;
		grid-template-columns: subgrid;
	}

	.jg-timeline > * {
		position: relative;
		grid-column: span 3;
		display: block;
		padding: 0;
		border-top: 0;
	}

	.jg-timeline > * + *::before {
		content: '';
		position: absolute;
		top: 0;
		bottom: 0;
		left: calc(var(--jg-gutter) / -2);
		width: 1px;
		background: var(--jg-rule-ink);
	}

	.jg-timeline .jg-figure {
		font-size: var(--jg-text-figure);
	}

	/* :first-child outranks core's reset of the first block's margin (see .jg-pull). */
	.jg-timeline :is(h3, h3:first-child) {
		margin-top: 16px;
	}

	.jg-timeline p:not(.jg-figure) {
		max-width: 22em;
	}
}

.jg-story__row {
	row-gap: 32px;
	margin-top: 32px;
}

.jg-story__photo img {
	width: 100%;
	max-width: 650px;
}

.jg-story__people .jg-label {
	margin-bottom: 12px;
}

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

	.jg-story__row > .jg-story__photo {
		grid-column: 4 / span 5;
	}

	.jg-story__row > .jg-story__people {
		grid-column: 9 / -1;
	}
}

.jg-people {
	border-top: 1px solid var(--jg-rule-ink);
}

.jg-people > * {
	display: grid;
	grid-template-columns: 72px minmax(0, 1fr);
	gap: 16px;
	align-items: center;
	padding: 12px 0;
	border-bottom: 1px solid var(--jg-rule-ink);
}

.jg-people img {
	width: 72px;
	height: 72px;
	object-fit: cover;
	object-position: 50% 22%;
	background: var(--jg-ink-raised);
}

.jg-people h4 {
	font-family: var(--jg-serif);
	font-size: var(--jg-text-h4);
	font-weight: 500;
	line-height: 1.2;
}

.jg-people .jg-meta {
	margin-top: 2px;
}

.jg-people + .jg-link {
	margin-top: 8px;
}

/* ==========================================================================
   Phone ledger and offices (PhoneLedger, OfficeList)
   ========================================================================== */

.jg-ledger {
	border-bottom: 1px solid var(--jg-ink);
}

.jg-ledger__row {
	row-gap: 4px;
	align-items: baseline;
	padding: 12px 0 16px;
	border-top: 1px solid var(--jg-ink);
}

.jg-ledger__row + .jg-ledger__row {
	border-top-color: var(--jg-rule);
}

.jg-ledger__where .jg-meta {
	display: block;
	margin-top: 2px;
}

.jg-ledger__num a {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	min-height: 48px;
	color: var(--jg-navy);
	font-family: var(--jg-serif);
	/* The vw cap only bites below 390px, so the numbers fit on one line down to 320px. */
	font-size: min(var(--jg-text-ledger), 11.8vw);
	font-variant-numeric: tabular-nums lining-nums;
	font-weight: 400;
	line-height: 1;
	letter-spacing: -0.02em;
	text-decoration: none;
	white-space: nowrap;
}

.jg-ledger__num a:hover {
	text-decoration: underline;
	text-decoration-thickness: 2px;
	text-underline-offset: 0.1em;
}

.jg-ledger__num a::after {
	content: '';
	flex: none;
	width: 36px;
	height: 36px;
	background: currentColor;
	-webkit-mask: var(--jg-i-phone) center / contain no-repeat;
	mask: var(--jg-i-phone) center / contain no-repeat;
	transition: transform var(--jg-base) var(--jg-ease);
}

.jg-ledger__num a:hover::after {
	transform: translateX(4px);
}

@media (max-width: 599px) {
	.jg-ledger__num a::after {
		display: none;
	}
}

@media (min-width: 900px) {
	.jg-ledger__row {
		padding: 16px 0 24px;
	}

	.jg-ledger__row > .jg-ledger__where {
		grid-column: 1 / span 3;
	}

	.jg-ledger__row > .jg-ledger__num {
		grid-column: 4 / -1;
	}
}

.jg-offices {
	row-gap: 0;
	margin-top: 24px;
}

.jg-office {
	padding: 12px 0;
	border-top: 1px solid var(--jg-rule);
}

.jg-offices__label + .jg-office {
	padding-top: 0;
	border-top: 0;
}

.jg-office .jg-office__name {
	font-family: var(--jg-serif);
	font-size: var(--jg-text-h4);
	font-weight: 500;
	line-height: 1.2;
}

.jg-office .jg-meta {
	margin-top: 2px;
}

.jg-office__address {
	margin-top: 8px;
	color: var(--jg-ink-2);
	font-size: var(--jg-text-small);
	font-style: normal;
	line-height: 1.55;
}

.jg-office .jg-call-line {
	margin-top: 4px;
}

.jg-offices > .jg-offices__label {
	order: 2;
	padding-top: 8px;
}

.jg-offices__label .jg-label {
	display: none;
}

@media (min-width: 600px) {
	.jg-offices > .jg-office {
		grid-column: span 4;
	}
}

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

	.jg-offices > .jg-offices__label {
		order: 0;
		grid-column: 1 / span 3;
		padding-top: 0;
	}

	.jg-offices__label .jg-label {
		display: block;
	}

	.jg-offices__label .jg-link {
		margin-top: 4px;
	}

	.jg-offices > .jg-office {
		position: relative;
		grid-column: span 3;
		padding: 0;
		border-top: 0;
	}

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

/* ==========================================================================
   Contents: the 01–05 index in a Services opener base (PageContents)
   ========================================================================== */

.jg-contents {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0 var(--jg-gutter);
}

.jg-contents li {
	position: relative;
}

.jg-contents a {
	display: block;
	min-height: 44px;
	padding: 10px 0 12px;
	text-decoration: none;
}

.jg-contents .jg-figure {
	font-size: 1.75rem;
}

.jg-contents strong {
	display: block;
	margin-top: 6px;
	font-family: var(--jg-serif);
	font-size: var(--jg-text-h4);
	font-weight: 500;
	line-height: 1.2;
}

.jg-contents .jg-meta {
	display: block;
	margin-top: 2px;
}

.jg-contents a:hover strong {
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 0.16em;
}

@media (max-width: 599px) {
	.jg-contents .jg-meta {
		display: none;
	}

	.jg-contents li:nth-child(odd):last-child {
		grid-column: 1 / -1;
	}
}

@media (min-width: 900px) {
	.jg-grid > .jg-contents {
		grid-column: 4 / -1;
		grid-template-columns: repeat(var(--count, 5), minmax(0, 1fr));
	}

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

	.jg-contents a {
		padding: 0 8px 0 0;
	}

	.jg-contents .jg-figure {
		font-size: 2.5rem;
	}

	.jg-contents strong {
		margin-top: 12px;
	}
}

/* ==========================================================================
   Service chapter (Chapter): a sticky running head in the rail, the body
   from column 4 on a 9-column subgrid
   ========================================================================== */

.jg-svc {
	padding-block: var(--jg-section-y);
}

.jg-svc__grid {
	row-gap: 16px;
	padding-top: 20px;
}

.jg-svc__rail {
	display: flex;
	align-items: baseline;
	gap: 12px;
}

.jg-svc__rail .jg-figure {
	font-size: 1.75rem;
}

.jg-svc__desk,
.jg-svc__sub {
	display: none;
}

.jg-svc__tel a {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	color: var(--jg-navy);
	font-family: var(--jg-serif);
	font-size: 1.375rem;
	font-variant-numeric: tabular-nums lining-nums;
	font-weight: 500;
	text-decoration: none;
	white-space: nowrap;
}

.jg-section--ink .jg-svc__tel a {
	color: var(--jg-on-ink);
}

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

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

@media (min-width: 900px) {
	.jg-svc__grid {
		row-gap: 32px;
		padding-top: 24px;
	}

	.jg-svc__grid > .jg-svc__rail {
		position: sticky;
		top: calc(var(--jg-header-h) + 24px);
		grid-column: 1 / span 3;
		display: block;
		align-self: start;
	}

	.jg-svc__rail .jg-figure {
		font-size: var(--jg-text-figure);
	}

	.jg-svc__rail .jg-label {
		margin-top: 12px;
	}

	.jg-svc__sub {
		display: block;
		margin-top: 2px;
	}

	.jg-svc__desk {
		display: block;
		max-width: 15rem;
		margin-top: 24px;
		padding-top: 12px;
		border-top: 1px solid var(--jg-rule);
	}

	.jg-section--ink .jg-svc__desk {
		border-top-color: var(--jg-rule-ink);
	}

	.jg-svc__grid > .jg-svc__body {
		grid-column: 4 / -1;
		display: grid;
		grid-template-columns: subgrid;
		align-content: start;
		row-gap: 0;
	}

	.jg-svc__body > * {
		grid-column: 1 / -1;
	}
}

.jg-svc__media {
	--ratio: 16 / 9;
	--ratio-d: 21 / 9;
	--pos: 72% 50%;
	margin-top: 40px;
}

.jg-svc__media.jg-frame--strip {
	--ratio-d: 3 / 1;
}

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

/* Fact blocks */
.jg-pair {
	display: grid;
	gap: 24px var(--jg-gutter);
	margin-top: 40px;
}

.jg-pair__item {
	padding-top: 16px;
	border-top: 1px solid var(--jg-ink);
}

.jg-pair__item .jg-meta {
	margin-bottom: 4px;
}

.jg-pair__item .jg-h3 {
	margin-bottom: 8px;
}

.jg-pair__item p:not(.jg-meta) {
	max-width: 32em;
	color: var(--jg-ink-2);
}

@media (min-width: 600px) {
	.jg-pair {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

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

	.jg-svc__body > .jg-pair {
		grid-template-columns: subgrid;
	}

	.jg-svc__body > .jg-pair > :first-child {
		grid-column: 1 / span 4;
	}

	.jg-svc__body > .jg-pair > :last-child {
		grid-column: 5 / -1;
	}
}

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

.jg-block__head {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: space-between;
	gap: 4px 24px;
	padding-bottom: 12px;
}

.jg-rows-title {
	margin-bottom: 12px;
}

/* Table: a core table block with className jg-table (the class sits on its figure). */
.jg-table {
	margin: 0;
	overflow: visible;
}

.jg-table table {
	width: 100%;
	border-collapse: collapse;
}

.jg-table th,
.jg-table td {
	padding: 14px 24px 14px 0;
	border: 0;
	text-align: left;
	vertical-align: baseline;
}

.jg-table thead {
	border: 0;
}

.jg-table thead th {
	padding-block: 10px;
	border-top: 1px solid var(--jg-ink);
	border-bottom: 1px solid var(--jg-ink);
	font-family: var(--jg-sans);
	font-size: var(--jg-text-small);
	font-weight: 600;
}

.jg-table tbody th {
	width: 44%;
	font-family: var(--jg-serif);
	font-size: var(--jg-text-h4);
	font-weight: 500;
	line-height: 1.25;
	letter-spacing: -0.006em;
}

.jg-table tbody td {
	color: var(--jg-ink-2);
}

.jg-table tbody tr {
	border-bottom: 1px solid var(--jg-rule);
}

@media (max-width: 599px) {
	.jg-table thead {
		position: absolute;
		width: 1px;
		height: 1px;
		overflow: hidden;
		clip: rect(0 0 0 0);
	}

	.jg-table table,
	.jg-table tbody,
	.jg-table tr,
	.jg-table th,
	.jg-table td {
		display: block;
		width: auto;
	}

	.jg-table tbody tr {
		padding: 10px 0 12px;
	}

	.jg-table tbody tr:first-child {
		border-top: 1px solid var(--jg-ink);
	}

	.jg-table tbody th,
	.jg-table tbody td {
		padding: 0;
	}

	.jg-table tbody td {
		margin-top: 2px;
	}
}

/* Ruled rows */
.jg-rows {
	border-top: 1px solid var(--jg-ink);
}

.jg-rows li {
	padding: 12px 0;
	border-bottom: 1px solid var(--jg-rule);
	font-size: var(--jg-text-small);
	line-height: 1.45;
}

.jg-rows--2 {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	column-gap: var(--jg-gutter);
}

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

/* Order block: two ways to buy */
.jg-order {
	display: grid;
	gap: 0 var(--jg-gutter);
	margin-top: 40px;
	border-top: 1px solid var(--jg-ink);
}

.jg-order__way {
	padding: 20px 0 24px;
	border-bottom: 1px solid var(--jg-rule);
}

.jg-order__way:last-child {
	padding-bottom: 0;
	border-bottom: 0;
}

.jg-order__way .jg-meta {
	margin-bottom: 4px;
}

.jg-order__way p:not(.jg-meta, .jg-call-line) {
	max-width: 30em;
	margin-top: 8px;
	color: var(--jg-ink-2);
}

.jg-order__way .wp-block-buttons,
.jg-order__way .jg-call-line {
	margin-top: 16px;
}

@media (min-width: 600px) {
	.jg-order {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.jg-order__way {
		padding-bottom: 0;
		border-bottom: 0;
	}
}

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

	.jg-svc__body > .jg-order {
		grid-template-columns: subgrid;
	}

	.jg-svc__body > .jg-order > :first-child {
		grid-column: 1 / span 4;
	}

	.jg-svc__body > .jg-order > :last-child {
		grid-column: 5 / -1;
	}
}

/* Spec: stated facts as label and value, one paragraph per row (<strong>label</strong> value). */
.jg-spec {
	border-bottom: 1px solid var(--jg-rule);
}

.jg-spec > p {
	display: grid;
	grid-template-columns: minmax(0, 6.5em) minmax(0, 1fr);
	gap: 12px;
	padding: 10px 0;
	border-top: 1px solid var(--jg-rule);
	font-size: var(--jg-text-small);
	line-height: 1.45;
}

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

.jg-spec > p > span {
	color: var(--jg-ink-2);
}

.jg-section--ink .jg-spec,
.jg-section--ink .jg-spec > p {
	border-color: var(--jg-rule-ink);
}

.jg-section--ink .jg-spec > p > span {
	color: var(--jg-on-ink-2);
}

/* Trucks: three columns of photograph, title, sentence and spec */
.jg-trucks {
	display: grid;
	gap: 32px var(--jg-gutter);
	margin-top: 40px;
}

.jg-truck img {
	width: 100%;
	aspect-ratio: 16 / 9;
	object-fit: cover;
}

.jg-truck :is(.jg-h4, .jg-h4:first-child) {
	margin-top: 16px;
}

.jg-truck p:not(.jg-spec p) {
	margin-top: 6px;
	color: var(--jg-ink-2);
	font-size: var(--jg-text-small);
	line-height: 1.5;
}

.jg-truck .jg-spec {
	margin-top: 14px;
}

@media (min-width: 600px) and (max-width: 899px) {
	.jg-truck {
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		align-items: start;
		column-gap: var(--jg-gutter);
	}

	.jg-truck :is(.jg-h4, .jg-h4:first-child) {
		margin-top: 0;
	}

	.jg-truck > .wp-block-group {
		grid-column: 2;
	}
}

@media (min-width: 900px) {
	.jg-trucks {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		margin-top: 48px;
	}

	.jg-truck img {
		aspect-ratio: 3 / 2;
	}
}

@media (min-width: 900px) and (max-width: 1199px) {
	.jg-truck .jg-spec > p {
		grid-template-columns: 1fr;
		gap: 2px;
	}
}

/* Desk line (DeskLine): the task, the number and the hours between two ink rules */
.jg-desk-line {
	row-gap: 4px;
	align-items: baseline;
	margin-top: 40px;
	padding: 16px 0 20px;
	border-top: 1px solid var(--jg-ink);
	border-bottom: 1px solid var(--jg-ink);
}

.jg-desk-line .jg-meta {
	text-wrap: balance;
}

.jg-desk-line__task {
	max-width: 26em;
	color: var(--jg-ink-2);
	font-size: var(--jg-text-deck);
	line-height: 1.4;
}

.jg-desk-line__tel a {
	display: inline-flex;
	align-items: center;
	min-height: 48px;
	color: var(--jg-navy);
	font-family: var(--jg-serif);
	font-size: clamp(2.25rem, 1.5rem + 2.6vw, 3.5rem);
	font-variant-numeric: tabular-nums lining-nums;
	font-weight: 400;
	line-height: 1.1;
	letter-spacing: -0.02em;
	text-decoration: none;
	white-space: nowrap;
}

.jg-desk-line__tel a:hover {
	text-decoration: underline;
	text-decoration-thickness: 2px;
	text-underline-offset: 0.12em;
}

.jg-desk-line__mail 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;
	overflow-wrap: anywhere;
}

@media (min-width: 900px) {
	.jg-desk-line {
		margin-top: 56px;
		padding: 20px 0 24px;
	}

	.jg-desk-line > .jg-desk-line__task {
		grid-column: 4 / span 4;
	}

	.jg-desk-line > .jg-desk-line__num {
		grid-column: 8 / -1;
	}

	.jg-svc__body > .jg-desk-line {
		grid-template-columns: subgrid;
	}

	.jg-svc__body > .jg-desk-line > .jg-desk-line__task {
		grid-column: 1 / span 4;
	}

	.jg-svc__body > .jg-desk-line > .jg-desk-line__num {
		grid-column: 5 / -1;
	}
}

/* 04 on ink: the Connected row */
.jg-connected-row {
	display: grid;
	align-items: start;
	gap: 32px var(--jg-gutter);
	margin-top: 40px;
}

.jg-connected-row .jg-actions,
.jg-connected-row .wp-block-buttons {
	margin-top: 24px;
}

@media (min-width: 900px) {
	.jg-svc__body > .jg-steps {
		grid-column: 1 / -1;
	}

	.jg-connected-row {
		margin-top: 48px;
	}

	.jg-svc__body > .jg-connected-row {
		grid-template-columns: subgrid;
	}

	.jg-connected-row > :first-child {
		grid-column: 1 / span 5;
	}

	.jg-connected-row > :last-child {
		grid-column: 6 / -1;
		justify-self: end;
	}
}

/* Facts: phases, products and guides (Phases, DocLinks) */
.jg-facts {
	display: grid;
	gap: 40px var(--jg-gutter);
	margin-top: 48px;
}

@media (max-width: 599px) {
	.jg-facts {
		row-gap: 32px;
	}
}

@media (min-width: 600px) {
	.jg-facts {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.jg-facts > :first-child {
		grid-row: span 2;
	}
}

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

@media (min-width: 1200px) {
	.jg-facts {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.jg-facts > :first-child {
		grid-row: auto;
	}
}

.jg-phases {
	border-top: 1px solid var(--jg-ink);
}

.jg-phases > * {
	position: relative;
	display: grid;
	grid-template-columns: 2.5rem minmax(0, 1fr);
	column-gap: 12px;
	align-items: baseline;
	padding: 9px 0 10px;
	border-bottom: 1px solid var(--jg-rule);
}

.jg-phases a {
	display: inline-flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0 4px;
	color: var(--jg-navy);
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 0.18em;
}

.jg-phases a:hover {
	text-decoration-thickness: 2px;
}

/* A linked phase is a target across its whole row. */
.jg-phases a::after {
	content: '';
	position: absolute;
	inset: 0;
}

/* Its arrow follows the name. */
.jg-phases a::before {
	content: '';
	order: 2;
	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-phases .jg-phase__text {
	margin-top: 2px;
	color: var(--jg-ink-2);
	font-size: var(--jg-text-small);
	line-height: 1.45;
	text-wrap: pretty;
}

@media (max-width: 599px) {
	.jg-phases .jg-phase__text {
		display: none;
	}
}

@media (min-width: 900px) {
	.jg-phases .jg-program__name {
		padding-top: 8px;
	}
}

.jg-doclinks {
	border-top: 1px solid var(--jg-ink);
}

.jg-doclinks li {
	border-bottom: 1px solid var(--jg-rule);
}

.jg-doclinks a {
	display: flex;
	align-items: center;
	min-height: 44px;
	padding: 10px 0;
	color: var(--jg-navy);
	font-size: var(--jg-text-small);
	font-weight: 600;
	line-height: 1.35;
	text-decoration: none;
}

.jg-doclinks a:hover {
	text-decoration: underline;
	text-underline-offset: 0.22em;
}

.jg-doclinks .jg-meta {
	display: block;
	margin-top: 2px;
	font-weight: 500;
}

@media (max-width: 599px) {
	.jg-doclinks--2 {
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		column-gap: var(--jg-gutter);
	}
}

/* Documents (DocumentList): title, type and size, “Download PDF” at right. */
.jg-docs {
	border-top: 1px solid var(--jg-ink);
}

.jg-docs__row {
	display: grid;
	gap: 4px 24px;
	align-items: center;
	padding: 20px 0;
	border-bottom: 1px solid var(--jg-rule);
}

.jg-docs__row > * {
	min-width: 0;
}

.jg-docs__row .jg-h4 a {
	display: flex;
	align-items: center;
	min-height: 44px;
	color: var(--jg-navy);
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 0.18em;
}

.jg-docs__row .jg-meta {
	margin-top: 4px;
}

.jg-docs__row > .jg-link {
	justify-self: start;
}

@media (min-width: 600px) {
	.jg-docs__row {
		grid-template-columns: minmax(0, 1fr) auto;
	}
}

/* Team (TeamGrid): by office, 4:5 colour portraits, an oat initials tile without a photo. */
.jg-team__group {
	row-gap: 20px;
	padding-top: 16px;
	border-top: 1px solid var(--jg-ink);
}

.jg-team__group + .jg-team__group {
	margin-top: 48px;
}

.jg-team__list {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 32px var(--jg-gutter);
}

.jg-person__photo {
	aspect-ratio: 4 / 5;
	overflow: hidden;
	background: var(--jg-oat);
}

.jg-person__photo img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: 50% 0;
}

.jg-person__initials {
	display: grid;
	place-items: center;
	aspect-ratio: 4 / 5;
	background: var(--jg-oat);
	color: var(--jg-ink-2);
	font-family: var(--jg-serif);
	font-size: var(--jg-text-figure);
	letter-spacing: -0.02em;
}

.jg-person .jg-h4 {
	margin-top: 12px;
}

.jg-person .jg-meta {
	margin-top: 2px;
	text-wrap: pretty;
}

.jg-person__mail a {
	display: inline-block;
	margin-top: 2px;
	padding: 10px 0;
	color: var(--jg-navy);
	font-size: var(--jg-text-small);
	font-weight: 600;
	line-height: 1.6;
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 0.22em;
	overflow-wrap: anywhere;
}

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

@media (min-width: 600px) {
	.jg-team__list {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@media (max-width: 599px) {
	.jg-person__mail a {
		font-size: var(--jg-text-meta);
	}
}

@media (min-width: 900px) {
	.jg-team__group {
		row-gap: 0;
		padding-top: 20px;
	}

	.jg-team__group + .jg-team__group {
		margin-top: 64px;
	}

	.jg-team__group > .jg-team__list {
		grid-column: 4 / -1;
	}
}

@media (min-width: 1200px) {
	.jg-team__group > .jg-team__list {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
}

/* Sales reps (SalesReps): a jg-table whose last column holds tel: links. */
@media (min-width: 600px) {
	.jg-table.jg-reps tbody th {
		width: 31%;
	}
}

.jg-reps a[href^='tel:'] {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	color: var(--jg-navy);
	font-variant-numeric: tabular-nums lining-nums;
	font-weight: 600;
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 0.22em;
	white-space: nowrap;
}

@media (max-width: 599px) {
	.jg-table.jg-reps tbody td {
		font-size: var(--jg-text-small);
	}

	.jg-table.jg-reps tbody td:last-child {
		margin-top: 0;
	}
}

/* Also from Johnston’s: three described links on the rail. */
.jg-also {
	row-gap: 12px;
	margin-top: 48px;
}

.jg-also__index {
	display: grid;
	grid-template-columns: 1fr;
	column-gap: var(--jg-gutter);
}

.jg-also__index a {
	display: block;
	min-height: 48px;
	padding: 14px 0 16px;
	border-top: 1px solid var(--jg-rule);
	text-decoration: none;
}

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

.jg-also__index a > span {
	display: block;
	margin-top: 2px;
	color: var(--jg-ink-3);
	font-size: var(--jg-text-meta);
}

.jg-also__index a:hover strong {
	color: var(--jg-navy);
	text-decoration: underline;
	text-underline-offset: 0.22em;
}

@media (min-width: 600px) {
	.jg-also__index {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@media (min-width: 900px) {
	.jg-also > .jg-label {
		padding-top: 16px;
	}

	.jg-also > .jg-also__index {
		grid-column: 4 / -1;
	}
}

/* The default page (page.html): a paper opener, then the content as prose in 4–9. */
.jg-page-body > .jg-prose {
	min-width: 0;
}

@media (min-width: 900px) {
	.jg-page-body > .jg-prose {
		grid-column: 4 / span 6;
	}
}

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

/* Prose: editor-written text on Field edition pages (legal, plain pages). The blog extends it. */
.jg-prose h2 {
	margin-top: 48px;
	padding-top: 16px;
	border-top: 1px solid var(--jg-rule);
	font-family: var(--jg-serif);
	font-size: var(--jg-text-h4);
	font-weight: 500;
	line-height: 1.25;
	letter-spacing: -0.006em;
}

.jg-prose h3 {
	margin-top: 32px;
	font-family: var(--jg-serif);
	font-size: 1.25rem;
	font-weight: 500;
	line-height: 1.25;
}

.jg-prose :is(h2, h3) + * {
	margin-top: 12px;
}

.jg-prose ul,
.jg-prose ol {
	padding-left: 1.25em;
	list-style: disc;
}

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

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

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

.jg-prose a:not(.wp-element-button) {
	color: var(--jg-navy);
	font-weight: 600;
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 0.22em;
}

.jg-prose a:not(.wp-element-button):hover {
	color: var(--jg-navy-hover);
	text-decoration-thickness: 2px;
}

.jg-deck--narrow {
	max-width: 24em;
}

/* ==========================================================================
   Shell: the header (parts/header*.html → patterns/header*.php)
   Sticky; 72px from 900px, 64px below. Over a scene (jg-header--over) it is
   transparent with white type until the page scrolls 8px or a menu opens;
   without JavaScript it stays on paper. assets/js/header.js sets is-solid.
   ========================================================================== */

.jg-site-header {
	position: sticky;
	top: 0;
	z-index: 50;
}

.admin-bar .jg-site-header {
	top: var(--wp-admin--admin-bar--height, 0px);
}

.jg-header {
	position: relative;
	background: var(--jg-paper);
	box-shadow: 0 1px 0 var(--jg-rule);
	color: var(--jg-ink);
	font-family: var(--jg-sans);
	transition:
		background-color var(--jg-base) var(--jg-ease),
		color var(--jg-base) var(--jg-ease),
		box-shadow var(--jg-base) var(--jg-ease);
}

.js .jg-header--over:not(.is-solid) {
	background: transparent;
	box-shadow: none;
	color: var(--jg-on-ink);
}

.js .jg-header--over:not(.is-solid) :focus-visible {
	outline-color: var(--jg-amber);
}

.jg-header__inner {
	display: flex;
	align-items: center;
	gap: 12px;
	height: var(--jg-header-h);
}

.jg-header .jg-header__logo {
	display: flex;
	flex: 0 1 auto;
	align-items: center;
	min-width: 0;
	margin: 0;
}

.jg-header__logo a {
	display: flex;
	align-items: center;
	min-width: 0;
	min-height: 44px;
}

/* The logo gives way on the narrowest phones rather than the Call and Menu buttons. */
.jg-header .jg-header__logo img {
	width: 158px;
	max-width: 100%;
	height: auto;
}

.jg-header .jg-logo-white,
.js .jg-header--over:not(.is-solid) .jg-logo-color {
	display: none;
}

.js .jg-header--over:not(.is-solid) .jg-logo-white {
	display: flex;
}

/* Below 1024px: Call and Menu, 48px tall. */
.jg-header__call {
	flex: none;
	margin-left: auto;
}

.jg-header__call a,
.jg-header .wp-block-navigation__responsive-container-open {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 48px;
	padding: 0 14px;
	border: 1px solid currentColor;
	color: inherit;
	font-family: var(--jg-sans);
	font-size: var(--jg-text-small);
	font-weight: 600;
	line-height: 1.2;
	text-decoration: none;
}

.jg-header__call a {
	border-color: var(--jg-navy);
	background: var(--jg-navy);
	color: var(--jg-white);
}

.js .jg-header--over:not(.is-solid) .jg-header__call a {
	border-color: var(--jg-amber);
	background: var(--jg-amber);
	color: var(--jg-ink);
}

.jg-header__call a::before,
.jg-header .wp-block-navigation__responsive-container-open::before {
	content: '';
	flex: none;
	width: 18px;
	height: 18px;
	background: currentColor;
	-webkit-mask: var(--jg-i-phone) center / contain no-repeat;
	mask: var(--jg-i-phone) center / contain no-repeat;
}

.jg-header .wp-block-navigation__responsive-container-open::before {
	-webkit-mask-image: var(--jg-i-menu);
	mask-image: var(--jg-i-menu);
}

.jg-header .jg-nav {
	flex: none;
	gap: 0;
	font-size: var(--jg-text-small);
	font-weight: 500;
}

.jg-header__actions,
.jg-nav .jg-nav__sheet {
	display: none;
}

@media (max-width: 1023px) {
	/* Call and Menu sit 8px apart. */
	.jg-header__call + .jg-nav {
		margin-left: -4px;
	}

	.jg-header .jg-nav .wp-block-navigation__responsive-container:not(.is-menu-open) {
		display: none !important;
	}

	.jg-header .jg-nav .wp-block-navigation__responsive-container-open:not(.always-shown) {
		display: inline-flex !important;
	}
}

/* Desktop navigation, from 1024px */
@media (min-width: 1024px) {
	.jg-header__inner {
		gap: 32px;
	}

	.jg-header .jg-header__logo img {
		width: 168px;
	}

	.jg-header__call {
		display: none;
	}

	.jg-header .wp-block-navigation__responsive-container-open {
		display: none !important;
	}

	.jg-header .jg-nav,
	.jg-header .jg-nav .wp-block-navigation__responsive-container,
	.jg-header .jg-nav .wp-block-navigation__responsive-close,
	.jg-header .jg-nav .wp-block-navigation__responsive-dialog,
	.jg-header .jg-nav .wp-block-navigation__responsive-container-content,
	.jg-header .jg-nav .wp-block-navigation__container,
	.jg-header .jg-nav .wp-block-navigation__container > .wp-block-navigation-item {
		position: static;
		height: 100%;
	}

	.jg-header .jg-nav {
		flex: 1;
		align-self: stretch;
	}

	.jg-header .jg-nav .wp-block-navigation__responsive-container:not(.is-menu-open) {
		display: block;
		width: auto;
	}

	.jg-header .jg-nav .wp-block-navigation__responsive-container-close {
		display: none;
	}

	.jg-header .jg-nav .wp-block-navigation__container {
		display: flex;
		flex-wrap: nowrap;
		gap: 8px;
		margin-left: -10px;
	}

	.jg-nav .wp-block-navigation__container > .wp-block-navigation-item > .wp-block-navigation-item__content {
		position: relative;
		display: flex;
		align-items: center;
		gap: 6px;
		height: 100%;
		padding: 0 10px;
		color: inherit;
		font-size: var(--jg-text-small);
		font-weight: 500;
		line-height: 1.2;
		text-decoration: none;
		white-space: nowrap;
	}

	.jg-nav .wp-block-navigation__container > .wp-block-navigation-item > .wp-block-navigation-item__content::after {
		content: '';
		position: absolute;
		right: 10px;
		bottom: 0;
		left: 10px;
		height: 2px;
		background: var(--jg-navy);
		transform: scaleX(0);
		transform-origin: left;
		transition: transform var(--jg-base) var(--jg-ease);
	}

	.js .jg-header--over:not(.is-solid) .jg-nav .wp-block-navigation__container > .wp-block-navigation-item > .wp-block-navigation-item__content::after {
		background: currentColor;
	}

	.jg-nav .wp-block-navigation__container > .wp-block-navigation-item > .wp-block-navigation-item__content:hover::after,
	.jg-nav .wp-block-navigation__container > .wp-block-navigation-item > .wp-block-navigation-item__content[aria-expanded='true']::after,
	.jg-nav .wp-block-navigation__container > .wp-block-navigation-item > .wp-block-navigation-item__content[aria-current='page']::after {
		transform: scaleX(1);
	}

	/*
	 * The chevron after a group's name: core renders it beside the toggle, so it is drawn over the
	 * toggle's right padding, inside the hit area and the hover rule, with the Field edition icon.
	 */
	.jg-nav .wp-block-navigation__container > .has-child > .wp-block-navigation-submenu__toggle {
		padding-right: 30px;
	}

	.jg-header .jg-nav .wp-block-navigation-submenu__toggle + .wp-block-navigation__submenu-icon {
		position: relative;
		width: 14px;
		height: 14px;
		margin: 0 10px 0 -24px;
		background: currentColor;
		pointer-events: none;
		-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-header .jg-nav .wp-block-navigation__submenu-icon svg {
		display: none;
	}

	.jg-header .jg-nav [aria-expanded='true'] ~ .wp-block-navigation__submenu-icon {
		transform: rotate(180deg);
	}

	/* Full-width paper panels under the header: the rail link and its sentence in 1–3, links in 4–12. */
	.jg-header .jg-nav .has-child > .wp-block-navigation__submenu-container {
		position: absolute;
		top: 100%;
		right: 0;
		left: 0;
		z-index: 2;
		display: grid;
		grid-template-columns: repeat(12, minmax(0, 1fr));
		align-content: start;
		column-gap: var(--jg-gutter);
		min-width: 0;
		border: 0;
		background: var(--jg-paper);
		color: var(--jg-ink);
		cursor: auto;
	}

	.jg-header .jg-nav .has-child > .wp-block-navigation-submenu__toggle[aria-expanded='true'] ~ .wp-block-navigation__submenu-container {
		width: auto;
		min-width: 0;
		height: auto;
		padding: 48px max(var(--jg-margin), (100% - var(--jg-max)) / 2) 56px;
		border-top: 1px solid var(--jg-rule);
		border-bottom: 1px solid var(--jg-ink);
	}

	.jg-header .jg-nav .has-child .wp-block-navigation__submenu-container > .wp-block-navigation-item {
		display: block;
		grid-column: span 3;
	}

	.jg-header .jg-nav .has-child .wp-block-navigation__submenu-container > .wp-block-navigation-item > .wp-block-navigation-item__content {
		display: block;
		height: auto;
		padding: 16px 0 18px;
		border-top: 1px solid var(--jg-rule);
		color: var(--jg-ink);
		text-decoration: none;
	}

	.jg-header .jg-nav .wp-block-navigation__submenu-container .wp-block-navigation-item__label {
		color: var(--jg-ink);
		font-size: 1rem;
		font-weight: 600;
		line-height: 1.3;
	}

	.jg-header .jg-nav .wp-block-navigation__submenu-container .wp-block-navigation-item__description {
		display: block;
		margin-top: 4px;
		color: var(--jg-ink-3);
		font-size: var(--jg-text-meta);
		font-weight: 400;
		line-height: 1.45;
	}

	.jg-header .jg-nav .wp-block-navigation__submenu-container .wp-block-navigation-item__content:hover .wp-block-navigation-item__label,
	.jg-header .jg-nav .wp-block-navigation__submenu-container [aria-current='page'] .wp-block-navigation-item__label {
		color: var(--jg-navy);
		text-decoration: underline;
		text-underline-offset: 0.22em;
	}

	/* The rail: the panel's sentence, then its link with an arrow (or the external mark). */
	.jg-header .jg-nav .has-child .wp-block-navigation__submenu-container > .jg-nav__intro {
		grid-column: 1 / span 3;
		grid-row: 1 / span 3;
	}

	.jg-header .jg-nav .has-child .wp-block-navigation__submenu-container > .jg-nav__intro > .wp-block-navigation-item__content {
		display: flex;
		flex-direction: column-reverse;
		align-items: flex-start;
		gap: 8px;
		padding: 0;
		border-top: 0;
	}

	.jg-header .jg-nav .jg-nav__intro .wp-block-navigation-item__description {
		max-width: 22em;
		margin: 0;
		color: var(--jg-ink-2);
		font-size: var(--jg-text-small);
		line-height: 1.5;
	}

	.jg-header .jg-nav .jg-nav__intro .wp-block-navigation-item__label {
		display: inline-flex;
		align-items: center;
		gap: 8px;
		min-height: 44px;
		color: var(--jg-navy);
		text-decoration: underline;
		text-decoration-thickness: 1px;
		text-underline-offset: 0.22em;
	}

	.jg-header .jg-nav .jg-nav__intro .wp-block-navigation-item__label::after {
		content: '';
		width: 18px;
		height: 18px;
		background: currentColor;
		-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-header .jg-nav .jg-nav__intro .wp-block-navigation-item__content:hover .wp-block-navigation-item__label {
		text-decoration-thickness: 2px;
	}

	.jg-header .jg-nav .jg-nav__intro:not(.jg-nav__ext) .wp-block-navigation-item__content:hover .wp-block-navigation-item__label::after {
		transform: translateX(4px);
	}

	.jg-header .jg-nav .jg-nav__intro.jg-nav__ext .wp-block-navigation-item__label::after {
		width: 14px;
		height: 14px;
		padding: 0;
		-webkit-mask: var(--jg-i-external) center / contain no-repeat;
		mask: var(--jg-i-external) center / contain no-repeat;
	}

		.jg-header__actions {
		display: flex;
		flex: none;
		align-items: center;
		gap: 28px;
	}

	/* Two classes: core's body .is-layout-flex would otherwise show the button from 1024px. */
	.jg-header .jg-header__shop {
		display: none;
	}

	.jg-header .jg-header__logo {
		flex: none;
	}
}

@media (min-width: 1280px) {
	.jg-header__inner {
		gap: 48px;
	}

	.jg-header .jg-header__logo img {
		width: 184px;
	}

	.jg-header .jg-nav .wp-block-navigation__container {
		margin-left: -12px;
	}

	.jg-nav .wp-block-navigation__container > .wp-block-navigation-item > .wp-block-navigation-item__content {
		padding: 0 12px;
	}

	.jg-nav .wp-block-navigation__container > .wp-block-navigation-item > .wp-block-navigation-item__content::after {
		right: 12px;
		left: 12px;
	}

	.jg-nav .wp-block-navigation__container > .has-child > .wp-block-navigation-submenu__toggle {
		padding-right: 32px;
	}

	.jg-header .jg-nav .wp-block-navigation-submenu__toggle + .wp-block-navigation__submenu-icon {
		margin-right: 12px;
		margin-left: -26px;
	}

	.jg-header .jg-header__shop {
		display: flex;
	}
}

/* “Toll free” over the number */
.jg-header__phone a {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 44px;
	color: inherit;
	font-size: var(--jg-text-small);
	font-variant-numeric: tabular-nums;
	font-weight: 600;
	line-height: 1.2;
	text-decoration: none;
	white-space: nowrap;
}

.jg-header__phone a::before {
	content: '';
	flex: none;
	width: 18px;
	height: 18px;
	background: var(--jg-navy);
	-webkit-mask: var(--jg-i-phone) center / contain no-repeat;
	mask: var(--jg-i-phone) center / contain no-repeat;
}

.js .jg-header--over:not(.is-solid) .jg-header__phone a::before {
	background: currentColor;
}

.jg-header__phone a:hover > span {
	text-decoration: underline;
	text-underline-offset: 0.22em;
}

.jg-header__phone small {
	display: block;
	font-size: var(--jg-text-meta);
	font-weight: 500;
	letter-spacing: 0.01em;
	opacity: 0.8;
}

.jg-header .jg-header__shop .wp-block-button .wp-block-button__link {
	border-color: currentColor;
	background: transparent;
	color: inherit;
}

.jg-header .jg-header__shop .wp-block-button .wp-block-button__link:hover {
	border-color: var(--jg-ink);
	background: var(--jg-ink);
	color: var(--jg-paper);
}

.js .jg-header--over:not(.is-solid) .jg-header__shop .wp-block-button .wp-block-button__link:hover {
	border-color: var(--jg-on-ink);
	background: var(--jg-on-ink);
	color: var(--jg-ink);
}

/*
 * The mobile sheet: core's navigation overlay, restyled as full-height paper. Core makes it a
 * modal dialog: focus stays inside, Escape closes it and focus returns to Menu.
 */
.jg-header .jg-nav .wp-block-navigation__responsive-container.is-menu-open {
	position: fixed;
	inset: 0;
	z-index: 100000;
	padding: 0 !important;
	overflow-y: auto;
	overscroll-behavior: contain;
	background: var(--jg-paper) !important;
	color: var(--jg-ink) !important;
	font-family: var(--jg-sans);
	animation: none;
}

.admin-bar .jg-header .jg-nav .wp-block-navigation__responsive-container.is-menu-open {
	top: var(--wp-admin--admin-bar--height, 0px);
}

.jg-header .jg-nav .is-menu-open .wp-block-navigation__responsive-dialog {
	min-height: 100%;
	margin: 0 !important;
}

/* The sheet repeats the header bar: the logo, then Close where Menu was. */
.jg-header .jg-nav .is-menu-open .wp-block-navigation__responsive-dialog::before {
	content: '';
	position: absolute;
	top: 0;
	left: var(--jg-margin);
	width: 158px;
	height: var(--jg-header-h);
	background: url('../images/brand/logo-color.png') left center / 158px auto no-repeat;
	pointer-events: none;
}

.jg-header .jg-nav .is-menu-open .wp-block-navigation__responsive-container-close {
	position: absolute;
	top: calc((var(--jg-header-h) - 48px) / 2);
	right: var(--jg-margin);
	left: auto;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 48px;
	padding: 0 14px;
	border: 1px solid currentColor;
	color: var(--jg-ink);
	font-size: var(--jg-text-small);
	font-weight: 600;
	line-height: 1.2;
}

.jg-header .jg-nav .is-menu-open .wp-block-navigation__responsive-container-close svg {
	width: 18px;
	height: 18px;
}

.jg-header .jg-nav .is-menu-open .wp-block-navigation__responsive-container-close:not(:has(svg))::before {
	content: '';
	width: 18px;
	height: 18px;
	background: currentColor;
	-webkit-mask: var(--jg-i-close) center / contain no-repeat;
	mask: var(--jg-i-close) center / contain no-repeat;
}

.jg-header .jg-nav .is-menu-open .wp-block-navigation__responsive-container-content {
	display: block !important;
	width: min(100% - 2 * var(--jg-margin), var(--jg-max));
	margin-inline: auto;
	padding: calc(var(--jg-header-h) + 8px) 0 40px !important;
	border-top: 0;
}

.jg-header .jg-nav .is-menu-open .wp-block-navigation__container {
	display: block !important;
	width: 100%;
	border-top: 1px solid var(--jg-rule);
}

.jg-header .jg-nav .is-menu-open .wp-block-navigation__container > .wp-block-navigation-item {
	display: block;
	width: 100%;
	border-bottom: 1px solid var(--jg-rule);
}

/* Group names and plain items in Newsreader, 64px rows. */
.jg-header .jg-nav .is-menu-open .wp-block-navigation__container > .wp-block-navigation-item > .wp-block-navigation-item__content {
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: 100%;
	min-height: 64px;
	padding: 0 !important;
	color: var(--jg-ink);
	font-family: var(--jg-serif);
	font-size: 1.5rem;
	font-weight: 450;
	line-height: 1.2;
	letter-spacing: -0.01em;
	text-align: left;
	text-decoration: none;
}

.jg-header .jg-nav .is-menu-open .wp-block-navigation-submenu__toggle::after {
	content: '';
	flex: none;
	width: 20px;
	height: 20px;
	background: currentColor;
	-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-header .jg-nav .is-menu-open .jg-sheet-open > .wp-block-navigation-submenu__toggle::after {
	transform: rotate(180deg);
}

/* Disclosure groups (header.js): a group's links show once its name is pressed. */
.jg-header .jg-nav.jg-sheet-ready .is-menu-open .has-child:not(.jg-sheet-open) > .wp-block-navigation__submenu-container {
	display: none !important;
}

.jg-header .jg-nav .is-menu-open .has-child > .wp-block-navigation__submenu-container {
	display: block !important;
	min-width: 0;
	margin: 0;
	padding: 0 0 12px !important;
	border: 0;
	background: transparent;
	color: inherit;
}

.jg-header .jg-nav .is-menu-open .wp-block-navigation__submenu-container > .wp-block-navigation-item {
	display: block;
	width: 100%;
}

.jg-header .jg-nav .is-menu-open .wp-block-navigation__submenu-container .wp-block-navigation-item__content {
	display: flex;
	align-items: center;
	gap: 8px;
	min-height: 48px;
	padding: 0 !important;
	color: var(--jg-ink);
	font-size: 1rem;
	font-weight: 500;
	line-height: 1.3;
	text-decoration: none;
}

.jg-header .jg-nav .is-menu-open .wp-block-navigation-item__description {
	display: none;
}

.jg-header .jg-nav .is-menu-open [aria-current='page'] {
	color: var(--jg-navy);
	text-decoration: underline;
	text-underline-offset: 0.22em;
}

/* Both numbers as buttons, then the hours. */
.jg-header .jg-nav .is-menu-open .jg-nav__sheet {
	display: grid;
	gap: 12px;
	margin-top: 32px;
}

.jg-nav__sheet .wp-block-buttons {
	display: grid;
	gap: 12px;
}

.jg-nav__sheet .wp-block-button,
.jg-nav__sheet .wp-block-button__link {
	width: 100%;
}

.jg-nav__sheet .wp-block-button__link {
	justify-content: space-between;
}

@media (min-width: 1024px) {
	.jg-header .jg-nav .wp-block-navigation__responsive-container.is-menu-open {
		display: none !important;
	}
}

/* ==========================================================================
   Shell: the footer on ink (parts/footer.html → patterns/footer.php)
   ========================================================================== */

.jg-footer {
	padding: 48px 0 24px;
	background: var(--jg-ink);
	color: var(--jg-on-ink);
	font-family: var(--jg-sans);
}

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

.jg-footer__top {
	row-gap: 20px;
	align-items: end;
	padding-bottom: 32px;
	border-bottom: 1px solid var(--jg-rule-ink);
}

.jg-footer .jg-footer__logo {
	display: inline-flex;
	align-items: center;
	margin: 0;
}

.jg-footer__logo a {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
}

.jg-footer .jg-footer__logo img {
	width: 210px;
	height: auto;
}

.jg-footer__statement {
	max-width: 24em;
	font-family: var(--jg-serif);
	font-size: clamp(1.25rem, 1.05rem + 0.8vw, 2rem);
	line-height: 1.2;
	letter-spacing: -0.012em;
	text-wrap: balance;
}

.jg-footer__cols {
	row-gap: 24px;
	padding-top: 32px;
}

.jg-footer .jg-footer__title {
	padding-bottom: 12px;
	border-bottom: 1px solid var(--jg-rule-ink);
	color: var(--jg-on-ink);
	font-family: var(--jg-sans);
	font-size: var(--jg-text-small);
	font-weight: 600;
	line-height: 1.6;
}

.jg-footer .jg-footer__nav {
	display: block;
	margin-top: 4px;
}

.jg-footer .jg-footer__nav .wp-block-navigation__container {
	display: block;
}

.jg-footer .jg-footer__nav .wp-block-navigation-item {
	display: block;
}

.jg-footer .jg-footer__nav .wp-block-navigation-item__content {
	display: block;
	min-height: 44px;
	padding: 12px 0;
	color: var(--jg-on-ink-2);
	font-size: var(--jg-text-small);
	font-weight: 400;
	line-height: 1.35;
}

.jg-footer .jg-footer__nav .wp-block-navigation-item__content:hover {
	color: var(--jg-on-ink);
	text-decoration: underline;
	text-underline-offset: 0.22em;
}

/*
 * The external mark after a menu label: an inline box, not an inline-block, so it never wraps
 * away from the last word (splitLastWord() in Astro).
 */
.jg-nav__ext .wp-block-navigation-item__label::after {
	content: '';
	padding-left: 18px;
	background: currentColor;
	-webkit-mask: var(--jg-i-external) right 55% / 14px 14px no-repeat;
	mask: var(--jg-i-external) right 55% / 14px 14px no-repeat;
}

/* Two numbers side by side, stacked when the screen is too narrow to keep them on one line. */
.jg-footer__phones {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
	gap: 8px 16px;
	margin-top: 12px;
}

.jg-footer__tel {
	display: block;
	padding: 6px 0;
	color: var(--jg-on-ink);
	font-family: var(--jg-serif);
	font-size: clamp(1.25rem, 1.1rem + 0.6vw, 1.5rem);
	font-variant-numeric: tabular-nums lining-nums;
	line-height: 1.2;
	white-space: nowrap;
}

.jg-footer a.jg-footer__tel:hover {
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 0.16em;
}

.jg-footer__tel span {
	display: block;
	margin-bottom: 2px;
	color: var(--jg-on-ink-2);
	font-family: var(--jg-sans);
	font-size: var(--jg-text-meta);
	font-variant-numeric: normal;
}

.jg-footer__hours {
	margin-top: 16px;
	color: var(--jg-on-ink-2);
	font-size: var(--jg-text-small);
	line-height: 1.5;
}

.jg-footer__cols > .jg-footer__col {
	grid-column: span 2;
}

.jg-footer__cols > .jg-footer__contact {
	grid-column: 1 / -1;
}

.jg-footer__bottom {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 0 32px;
	margin-top: 32px;
	padding-top: 8px;
	border-top: 1px solid var(--jg-rule-ink);
}

.jg-footer__legal {
	display: flex;
	flex-wrap: wrap;
	gap: 0 24px;
}

.jg-footer__bottom a,
.jg-footer__bottom p:not(.jg-footer__legal) {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	color: var(--jg-on-ink-2);
	font-size: var(--jg-text-meta);
}

.jg-footer__bottom a:hover {
	color: var(--jg-on-ink);
	text-decoration: underline;
}

@media (min-width: 600px) {
	.jg-footer__cols > .jg-footer__col {
		grid-column: span 4;
	}
}

@media (min-width: 900px) {
	.jg-footer {
		padding: 80px 0 24px;
	}

	.jg-footer__top {
		padding-bottom: 48px;
	}

	.jg-footer__top > .jg-footer__logo {
		grid-column: 1 / span 3;
		padding-bottom: 6px;
	}

	.jg-footer__top > .jg-footer__statement {
		grid-column: 4 / -1;
	}

	.jg-footer__cols {
		padding-top: 48px;
	}

	.jg-footer__cols > .jg-footer__col {
		grid-column: span 2;
	}

	.jg-footer__cols > .jg-footer__col--wide {
		grid-column: span 3;
	}

	.jg-footer__cols > .jg-footer__contact {
		grid-column: 10 / -1;
	}

	.jg-footer__phones {
		grid-template-columns: 1fr;
	}
}

/* ==========================================================================
   Motion
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		scroll-behavior: auto !important;
		transition-duration: 0s !important;
		animation-duration: 0s !important;
	}
}
