/* =========================================================================
   Insights article — desktop: Figma "INSGHTS - ARTICLE" (1246:2086, 1728); mobile: 1287:189 (440).
   White page; Related Insights + footer on black (body.has-dark-end).
   Desktop: tag pill x606 y202 (35 tall, pad 15, #A9A9A9 1px r79, Plex Mono 16 caps #787878),
     title y269 96/96 300 880w, hero y562 from x606 to the right edge, 740 tall. Body: text column
     x606 922w; lede (excerpt) x65 433w 24/43 +2% black, level with the first paragraph.
     Blocks 101 apart (hero → body 100; quote 90, note 127 above — Figma's only instance of each); heading → its
     content 40.5. H2 56/64 300; p 24/38 +2% #4B4B4B, a blank line (38) between paragraphs.
   Back arrow (Figma 2026-11-03, "Line 17"): 2px black line + arrowhead pointing left — desktop x66 41w centred
     y219 (the pill's row, left column), mobile x20 33w centred y171.
   Mobile: title y271 48/52 300, pill under it at y423 (+48; 34 tall, pad 16, Azeret Mono 12/20 caps #8E8E8E),
     hero y518 full width 479 tall; body inset 24 (392w): lede 24/30 at +80, blocks 60 apart,
     heading → content 32.5; H2 24/30 400; p 16/24 #4B4B4B, 24 between paragraphs.
   ========================================================================= */

/* ---------- Head + hero ---------- */
.article-head { position: relative; display: flex; flex-direction: column; align-items: flex-start; padding-top: calc(271 * var(--u)); }
/* Back arrow: the svg box = the line (tip at x, centred on y); the stroke's 1px and the arrowhead overflow it. No hover
   change in Figma — the site cursor grows over it as over every link. */
.article-back { position: absolute; top: calc((171 - 14.728 / 2) * var(--u)); left: var(--gutter); display: block; line-height: 0; color: var(--black); }
.article-back::after { content: ""; position: absolute; inset: calc(-14 * var(--u)) calc(-12 * var(--u)); } /* a 44px-ish tap area */
.article-back__arrow { display: block; height: calc(14.728 * var(--u)); overflow: visible; transition: transform 0.4s var(--ease-out); }
/* Hover = the header's "Get in Touch" arrow (components.css): 6px in the arrow's own direction — here back, to the left. */
@media (hover: hover) { .article-back:hover .article-back__arrow { transform: translateX(-6px); } }
.article-back__arrow--41 { display: none; width: calc(41 * var(--u)); }
.article-back__arrow--33 { width: calc(33 * var(--u)); }
.article-head__tag {
	order: 2; /* mobile: under the title (Figma 2026-11-03); desktop: above it */
	margin: calc(48 * var(--u) + 5 * var(--u)) 0 calc(5 * var(--u)); /* the pill is 24 tall (1px outline), Figma's slot 34: centred in it, so nothing below moves */
	max-width: 100%; /* a long tag wraps inside the pill instead of spilling out; look = .tag (base.css), teal on hover */
}
.article-head__title { align-self: stretch; font-weight: 300; font-size: max(calc(48 * var(--u)), var(--fs-min)); line-height: calc(52 / 48); }

.article-hero { margin: calc(61 * var(--u)) 0 0; }
.article-hero picture { display: block; }
.article-hero img,
.article-hero video { display: block; width: 100%; height: calc(479 * var(--u)); object-fit: cover; }
.article-hero .article-hero__desktop { display: none; } /* a video + a phone version: CSS picks one */

/* ---------- Body ---------- */
.article-body { padding-inline: calc(24 * var(--u)); }
.article-body > .article-lede { margin-top: calc(80 * var(--u)); } /* > : beats core's flow-layout first-child reset */
.article-lede p { font-size: max(calc(24 * var(--fu)), var(--fs-min)); line-height: calc(30 / 24); }

/* No excerpt (no lede): the text starts where the lede would, 80 under the hero (Figma's hero → lede; no Figma
   instance of an article without one). Mobile only — desktop's body keeps its 100 (client 2026-11-04: an article opening
   on a paragraph sat flush under the image — core's flow layout zeroes the first child's margin). */
@media (max-width: 1023px) { .article-body > .article-content:first-child { margin-top: calc(80 * var(--u)); } }
.article-content { margin-top: calc(51 * var(--u)); color: #4b4b4b; font-size: max(calc(16 * var(--fu)), var(--fs-min)); line-height: calc(24 / 16); }
.article-content > * + * { margin-top: calc(60 * var(--u)); }
.article-content > h2 + *,
.article-content > p + ul,
.article-content > p + ol,
.article-content > :is(ul, ol) + * { margin-top: calc(32.5 * var(--u)); } /* after a list = the gap above it (client 2026-11-02; Figma 60) */
.article-content > p + p { margin-top: calc(24 * var(--u)); }
.article-content h2 { font-weight: 400; font-size: max(calc(24 * var(--fu)), var(--fs-min)); line-height: calc(30 / 24); color: var(--black); }

/* Links in the post text: brand green (client 2026-10-27; no Figma instance). Stronger contrast: #009b87, as the
   other teal text on white (components.css). */
.article-content a { color: var(--teal); }
.ruh-contrast .article-content a { color: #009b87; }

/* Pull quote: Figma's “ mark (41×35 / 46×39), text, then a 3px teal rule. */
.article-content .wp-block-quote { margin-inline: 0; color: var(--black); }
.article-content .wp-block-quote::before {
	content: "";
	display: block;
	width: calc(41 * var(--u));
	height: calc(35 * var(--u));
	margin-bottom: calc(32 * var(--u));
	background: url(../../img/fx/quote-mark.svg) no-repeat 0 0 / contain;
}
.article-content .wp-block-quote p { max-width: calc(330 * var(--u)); font-size: max(calc(24 * var(--fu)), var(--fs-min)); line-height: calc(30 / 24); }
.article-content .wp-block-quote::after { content: ""; display: block; height: 3px; margin-top: calc(32 * var(--u)); background: var(--teal); }

/* Lists: a list left on the editor's Default style reads as the design too (client 2026-10-27: new bullets
   lost their styling — base.css drops the browser's bullets, the dots came only with the "Dots" style) —
   bulleted = Dots, numbered = the plain 1, 2, 3 list below; any style can still be picked on either list type. */
/* Numbered steps (list .is-style-steps): teal number, title, description under the title.
   Mobile: number + 6 → title and description at x54 (Figma's 01; its 02/03 boxes are 5–6 wider). */
.article-content .is-style-steps { list-style: none; padding: 0; counter-reset: step; }
.article-content .is-style-steps li { position: relative; padding-left: calc(30 * var(--u)); counter-increment: step; }
.article-content .is-style-steps li + li { margin-top: calc(24 * var(--u)); }
.article-content .is-style-steps li::before {
	content: counter(step, decimal-leading-zero);
	position: absolute;
	left: 0;
	top: 0;
	font-size: max(calc(20 * var(--fu)), var(--fs-min));
	line-height: calc(28 / 20);
	color: #16b2a0;
}
.article-content .is-style-steps strong { display: block; margin-bottom: calc(17 * var(--u)); font-weight: 400; font-size: max(calc(20 * var(--fu)), var(--fs-min)); line-height: calc(28 / 20); color: var(--black); }

/* Dot list (list .is-style-dots): 8px teal dot centred on the first line (line-height 1.5 → 0.75em; one-line items = Figma). */
.article-content :is(.is-style-dots, ul:not(.is-style-steps, .is-style-numbered)) { list-style: none; padding: 0; color: var(--black); }
.article-content :is(.is-style-dots, ul:not(.is-style-steps, .is-style-numbered)) li { position: relative; padding-left: calc(31 * var(--u)); }
.article-content :is(.is-style-dots, ul:not(.is-style-steps, .is-style-numbered)) li + li { margin-top: calc(16 * var(--u)); }
.article-content :is(.is-style-dots, ul:not(.is-style-steps, .is-style-numbered)) li::before { content: ""; position: absolute; left: 0; top: 0.75em; width: 8px; height: 8px; margin-top: -4px; border-radius: 50%; background: var(--teal); }

/* Numbered lists (no Figma instance), as the dot list with a teal number in the text's own size and weight, no title.
   Default numbered list = primary: 1, 2, 3, no dot (client 2026-11-03). "Numbered 01" (.is-style-numbered) = secondary: 01, 02…
   Numbered steps (above) = third. */
.article-content :is(.is-style-numbered, ol:not(.is-style-steps, .is-style-dots)) { list-style: none; padding: 0; color: var(--black); counter-reset: step; }
.article-content :is(.is-style-numbered, ol:not(.is-style-steps, .is-style-dots)) li { position: relative; padding-left: calc(31 * var(--u)); counter-increment: step; }
.article-content :is(.is-style-numbered, ol:not(.is-style-steps, .is-style-dots)) li + li { margin-top: calc(16 * var(--u)); }
.article-content :is(.is-style-numbered, ol:not(.is-style-steps, .is-style-dots)) li::before { content: counter(step); position: absolute; left: 0; top: 0; color: #16b2a0; }
.article-content .is-style-numbered.is-style-numbered li::before { content: counter(step, decimal-leading-zero); }

/* Images + captions */
.article-content .wp-block-image { margin-inline: 0; margin-bottom: 0; } /* top margin = the block spacing above */
.article-content .wp-block-image img { display: block; width: 100%; height: calc(366 * var(--u)); object-fit: cover; border-radius: 4px; }
.article-content .wp-element-caption { margin: calc(16 * var(--u)) 0 0; font-weight: 300; font-size: max(calc(14 * var(--fu)), var(--fs-min)); line-height: calc(20 / 14); color: #4b4b4b; }

/* Note box (group .is-style-note): teal at 20%. */
.article-content .is-style-note { padding: calc(24 * var(--u)) calc(25 * var(--u)) calc(25 * var(--u)); background: rgb(0 217 191 / 0.2); }
.article-content .is-style-note .note-label,
.article-content .is-style-note > p:first-child:not(:only-child) { /* the label: its first line (or .note-label) */ font-size: max(calc(24 * var(--fu)), var(--fs-min)); line-height: calc(30 / 24); color: var(--black); }
.article-content .is-style-note > * + * { margin-top: calc(25 * var(--u)); }
/* A Note box inserted in the editor is a Group with the "constrained" layout, whose children WordPress centres
   (margin auto !important) — its 685-wide text sat 87px in from the box's padding (client 2026-10-27). */
.article-content .is-style-note.is-layout-constrained > * { margin-inline: 0 !important; }

/* Image pair (columns .is-style-image-pair): stacked on mobile, two up on desktop. */
.article-content .is-style-image-pair { display: grid; gap: calc(33 * var(--u)); }
.article-content .is-style-image-pair .wp-block-image img { height: calc(361 * var(--u)); border-radius: 0; }
.article-content .wp-block-image .ruh-zoom { border-radius: 4px; } /* the clip (functions.php) carries the image's corners */
.article-content .is-style-image-pair .ruh-zoom { border-radius: 0; }

/* Closing statement (paragraph .is-style-closing) */
.article-content .is-style-closing { font-weight: 300; font-size: max(calc(36 * var(--u)), var(--fs-min)); line-height: calc(40 / 36); letter-spacing: 0; color: var(--black); }

/* Teal underline on the lede and the closing line (Figma 1246:2165 / 1246:2164, 1287:258 / 1287:338). Measured on
   Figma's own renders: ~0.2em below the baseline, 0.065em thick (4px at 56, 2px at 24/36), under "," and ".",
   broken around g / p / y. Figma breaks it when a descender comes near; browsers' skip-ink only where ink crosses,
   so the line sits 0.15em down (client 2026-10-19: at 0.18em it only grazed the g tail at 24px on 2× screens — at
   20 / 26.7px or on 1× screens there was no cut; 0.15em cuts 9–12px around g / p / y on every size and screen). Colour: --teal (Figma's API gives none). */
.article-lede p,
.article-content .is-style-closing { text-decoration: underline var(--teal) 0.065em; text-underline-offset: 0.15em; text-decoration-skip-ink: auto; }

.article { padding-bottom: calc(61 * var(--u)); }

/* ---------- Related Insights (black) ---------- */
.article-related { padding: calc(60 * var(--u)) 0 calc(20 * var(--u)); background: var(--black); color: var(--white); }
.article-related__title { font-weight: 300; font-size: max(calc(36 * var(--u)), var(--fs-min)); line-height: calc(40 / 36); letter-spacing: 0; }
.article-related .related__nav { display: none; }
.article-related__track {
	display: grid;
	max-width: none; /* WP post-template caps it at 100% — the track bleeds past the column */
	grid-auto-flow: column;
	grid-auto-columns: calc(297 * var(--u));
	gap: calc(12 * var(--u));
	margin: calc(32 * var(--u)) calc(-1 * var(--gutter)) 0;
	padding: 0 var(--gutter);
	scroll-padding-inline: var(--gutter);
	overflow-x: auto;
	scroll-snap-type: none; /* free scrolling (slider.js) */
	scrollbar-width: none;
	overscroll-behavior-x: contain;
}
.article-related__track::-webkit-scrollbar { display: none; }
.article-related__item { scroll-snap-align: start; }
.article-related .insight-tile__media { height: calc(400 * var(--u)); border-radius: 4px; }
.article-related .insight-tile__cat { line-height: calc(16 / 14); color: #808080; }

@media (min-width: 1024px) {
	.article-head { padding-top: calc(202 * var(--u)); padding-left: calc(var(--gutter) + 542 * var(--u)); }
	/* Centred on the pill's row at every width: the link's box = the pill's top and height (its min-height, or its text's
	   line + borders once the 12px floor / a larger browser text size makes it taller — at 1024 that's +7). */
	.article-back { top: calc(202 * var(--u)); left: calc(var(--gutter) + 2 * var(--u)); display: flex; align-items: center; height: max(calc(35 * var(--u)), calc(max(calc(16 * var(--fu)), var(--fs-min)) * 33 / 16 + 2px)); }
	.article-back__arrow--41 { display: block; }
	.article-back__arrow--33 { display: none; }
	.article-head__tag { order: 0; margin: calc(4.5 * var(--u)) 0; } /* 26 tall (1px outline) in Figma's 35 slot */
	.article-head__title { max-width: calc(880 * var(--u)); margin-top: calc(32 * var(--u)); font-size: max(calc(96 * var(--u)), var(--fs-min)); line-height: 1; }
	.article-hero { margin-top: calc(101 * var(--u)); padding-left: calc(var(--gutter) + 542 * var(--u)); }
	.article-hero img,
	.article-hero video { height: calc(740 * var(--u)); }
	.article-hero .article-hero__desktop { display: block; }
	.article-hero .article-hero__phone { display: none; }

	.article-body {
		display: grid;
		grid-template-columns: calc(542 * var(--u)) calc(922 * var(--u));
		align-items: start;
		padding-inline: var(--gutter);
		margin-top: calc(100 * var(--u));
	}
	.article-body > .article-lede { grid-column: 1; margin-top: calc(105 * var(--u)); padding-left: 1px; } /* level with the first paragraph (H2 64 + 41) */
	.article-body:has(.article-content > p:first-child) > .article-lede { margin-top: 0; } /* article opens on a paragraph */
	.article-body > .article-content { grid-column: 2; }
	.article-lede p { max-width: calc(433 * var(--u)); font-size: max(calc(24 * var(--fu)), var(--fs-min)); line-height: calc(43 / 24); letter-spacing: 0; }

	.article-content { margin-top: 0; font-size: max(calc(24 * var(--fu)), var(--fs-min)); line-height: calc(38 / 24); }
	/* +2% on every element, so each computes it from its own size (an inherited em becomes px). */
	.article-content * { letter-spacing: 0; }
	.article-content > * + * { margin-top: calc(101 * var(--u)); }
	.article-content > h2 + *,
	.article-content > p + ul,
	.article-content > p + ol { margin-top: calc(40.5 * var(--u)); }
	.article-content > p + p { margin-top: calc(38 * var(--u)); }
	.article-content > .wp-block-quote { margin-top: calc(90 * var(--u)); }
	.article-content > .is-style-note { margin-top: calc(127 * var(--u)); }
	/* After a list = the gap above it (client 2026-11-02; Figma 101), a quote or note box included. */
	.article-content > :is(ul, ol) + *,
	.article-content > :is(ul, ol) + :is(.wp-block-quote, .is-style-note) { margin-top: calc(40.5 * var(--u)); }
	.article-content h2 { max-width: calc(880 * var(--u)); font-weight: 300; font-size: max(calc(56 * var(--u)), var(--fs-min)); line-height: calc(64 / 56); letter-spacing: 0; }

	.article-content .wp-block-quote::before { width: calc(46 * var(--u)); height: calc(39 * var(--u)); }
	.article-content .wp-block-quote p { max-width: calc(498 * var(--u)); font-size: max(calc(32 * var(--u)), var(--fs-min)); line-height: calc(45 / 32); }
	.article-content .wp-block-quote::after { width: calc(574 * var(--u)); }

	/* Figma's description boxes are 881 wide from x662 — 15 past the text column; copied, so they wrap as designed. */
	.article-content .is-style-steps li { padding-left: calc(56 * var(--u)); margin-right: calc(-15 * var(--u)); }
	.article-content .is-style-steps li + li { margin-top: calc(32 * var(--u)); }
	.article-content .is-style-steps li::before { font-weight: 500; font-size: max(calc(24 * var(--fu)), var(--fs-min)); line-height: calc(38 / 24); letter-spacing: 0; }
	.article-content .is-style-steps strong { position: relative; left: calc(-7 * var(--u)); margin-bottom: calc(17 * var(--u)); font-weight: 500; font-size: max(calc(24 * var(--fu)), var(--fs-min)); line-height: calc(38 / 24); letter-spacing: 0; }
	.article-content .is-style-steps li { font-size: max(calc(20 * var(--fu)), var(--fs-min)); line-height: calc(30 / 20); }

	.article-content :is(.is-style-dots, ul:not(.is-style-steps, .is-style-numbered)) li { padding-left: calc(32 * var(--u)); font-size: max(calc(20 * var(--fu)), var(--fs-min)); line-height: calc(30 / 20); }
	.article-content :is(.is-style-dots, ul:not(.is-style-steps, .is-style-numbered)) li + li { margin-top: calc(16.5 * var(--u)); }

	.article-content :is(.is-style-numbered, ol:not(.is-style-steps, .is-style-dots)) li { padding-left: calc(32 * var(--u)); font-size: max(calc(20 * var(--fu)), var(--fs-min)); line-height: calc(30 / 20); }
	.article-content :is(.is-style-numbered, ol:not(.is-style-steps, .is-style-dots)) li + li { margin-top: calc(16.5 * var(--u)); }

	.article-content .wp-block-image img { height: calc(608 * var(--u)); }
	.article-content .wp-element-caption { max-width: calc(784 * var(--u)); margin-top: calc(32 * var(--u)); font-weight: 400; font-size: max(calc(16 * var(--fu)), var(--fs-min)); line-height: calc(24 / 16); }

	.article-content .is-style-note { padding: calc(32 * var(--u)) calc(32 * var(--u)) calc(33 * var(--u)) calc(32 * var(--u)); }
	.article-content .is-style-note p { max-width: calc(685 * var(--u)); font-family: var(--nhg); font-weight: var(--nhg-weight); font-size: max(calc(20 * var(--fu)), var(--fs-min)); line-height: calc(30 / 20); }
	.article-content .is-style-note .note-label,
	.article-content .is-style-note > p:first-child:not(:only-child) { font-size: max(calc(32 * var(--u)), var(--fs-min)); line-height: calc(45 / 32); }
	.article-content .is-style-note > * + * { margin-top: calc(10 * var(--u)); }

	.article-content .is-style-image-pair { grid-template-columns: repeat(2, calc(446 * var(--u))); gap: calc(27 * var(--u)); }
	.article-content .is-style-image-pair .wp-block-image img { height: calc(402 * var(--u)); }
	.article-content .is-style-image-pair .wp-element-caption { font-size: max(calc(20 * var(--fu)), var(--fs-min)); line-height: calc(24 / 20); }

	.article-content .is-style-closing { font-size: max(calc(56 * var(--u)), var(--fs-min)); line-height: calc(64 / 56); letter-spacing: 0; }

	.article { padding-bottom: calc(161 * var(--u)); }

	.article-related { padding: calc(160 * var(--u)) 0 calc(52 * var(--u)); } /* + footer 108 = Figma's 160 to "Let’s create…" */
	.article-related__head { display: flex; justify-content: space-between; align-items: flex-start; }
	.article-related .related__nav { display: flex; }
	.article-related__title { font-size: max(calc(56 * var(--u)), var(--fs-min)); line-height: calc(64 / 56); letter-spacing: 0; }
	/* Three in view at x64 / 605 / 1156 (Figma's uneven 35 / 45 gaps, as the Insights list). */
	.article-related__track { grid-auto-columns: auto; gap: 0; margin: calc(80 * var(--u)) 0 0; padding: 0; scroll-padding-inline: 0; }
	.article-related__item { width: calc(541 * var(--u)); padding-right: calc(35 * var(--u)); }
	.article-related__item:nth-child(3n + 2) { width: calc(551 * var(--u)); padding-right: calc(45 * var(--u)); }
	.article-related .insight-tile__media { height: calc(653 * var(--u)); }
	.article-related .insight-tile__cat { line-height: calc(30 / 20); }
	.article-related .insight-tile__title { max-width: calc(405 * var(--u)); }
}
