/*
 * PILCROW Modern, design system
 * ------------------------------------------------------------------
 * One stylesheet, no framework, no build step. Organised as:
 *   1. Fonts        2. Tokens       3. Reset & base   4. Layout
 *   5. Typography   6. Buttons      7. Forms          8. Cards
 *   9. Header/nav  10. Hero        11. Components    12. Footer
 *  13. Utilities   14. Motion & print
 *
 * Colour rules, verified against WCAG 2.2 AA:
 *   black on off-white      18.89:1
 *   black on brand yellow   16.58:1   (yellow is only ever used with black)
 *   black on brand orange    6.37:1
 *   black on brand teal      6.85:1
 *   --ink-orange on paper    5.49:1   (orange as *text*)
 *   --ink-teal on paper      5.13:1   (teal as *text*)
 * Pure brand orange and teal are never used as text on a light background.
 */

/* ---------------------------------------------------------------- 1. Fonts */

@font-face {
	font-family: "Inter var";
	src: url("../fonts/inter-latin-variable.woff2") format("woff2-variations");
	font-weight: 100 900;
	font-style: normal;
	font-display: swap;
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
		U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191,
		U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
	font-family: "Inter var";
	src: url("../fonts/inter-latin-ext-variable.woff2") format("woff2-variations");
	font-weight: 100 900;
	font-style: normal;
	font-display: swap;
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7,
		U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F,
		U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F,
		U+A720-A7FF;
}

@font-face {
	font-family: "Space Grotesk var";
	src: url("../fonts/space-grotesk-latin-variable.woff2") format("woff2-variations");
	font-weight: 300 700;
	font-style: normal;
	font-display: swap;
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
		U+02DC, U+2000-206F, U+20AC, U+2122, U+2212, U+FEFF, U+FFFD;
}

@font-face {
	font-family: "Space Grotesk var";
	src: url("../fonts/space-grotesk-latin-ext-variable.woff2") format("woff2-variations");
	font-weight: 300 700;
	font-style: normal;
	font-display: swap;
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7,
		U+02DD-02FF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+2C60-2C7F;
}

/* --------------------------------------------------------------- 2. Tokens */

:root {
	/* Brand, muted. The supplied hues were fully saturated; these are the
	   same three, dialled back so they read as an editorial palette rather
	   than a warning label, and matched to the brushstroke artwork. */
	--brand-orange: #e0572f;
	--brand-yellow: #eab93f;
	--brand-teal: #2f7d9e;
	--brand-paper: #f5f3ea;

	/* The flat dark colour that carries the header band, the footer and every
	   inverted surface. Deep navy rather than black: it sits with the teal
	   instead of fighting it. 11.8:1 against paper. */
	--brand-navy: #153348;
	/* The call-to-action band. Navy here made it continuous with the footer,
	   so the band is yellow: 7.2:1 against the navy footer below it and
	   against its own dark text. Note this band is the one place the palette
	   goes light-on-light against the paper page (1.6:1), which is fine for a
	   full-bleed block but would not be for a text colour. */
	--brand-band: #eab93f;
	--brand-navy-deep: #0e2434;
	--brand-black: var(--brand-navy);

	/* Accessible text-weight derivatives of the brand hues, all >= 4.5:1 on
	   paper. Muting the brand hues cost contrast, so these went darker too. */
	--ink-orange: #b0421f;
	--ink-teal: #276a87;
	--ink-amber: #8f6710;
	--brand-clay: #7d2a1e;

	/* Legible on navy: the brand hues themselves are not. */
	--on-navy: #f5f3ea;
	--on-navy-soft: #9fc3d4;
	--on-navy-accent: #eab93f;

	/* Neutrals derived from the brand black and paper. */
	--paper: var(--brand-paper);
	--paper-raised: #fffdf7;
	--ink: #12100c;
	--ink-soft: #443f36;
	--ink-faint: #6b6459;
	--rule: #ddd8c8;
	--rule-strong: #b9b2a0;

	--focus: #0b57d0;

	/* Type scale, fluid, 1.25 ratio, clamped so it never runs away. */
	--font-body: "Inter var", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
	--font-display: "Space Grotesk var", "Inter var", ui-sans-serif, system-ui, sans-serif;

	--step--1: clamp(0.84rem, 0.82rem + 0.1vw, 0.9rem);
	--step-0: clamp(1rem, 0.96rem + 0.2vw, 1.125rem);
	--step-1: clamp(1.2rem, 1.12rem + 0.4vw, 1.4rem);
	--step-2: clamp(1.45rem, 1.3rem + 0.75vw, 1.85rem);
	--step-3: clamp(1.75rem, 1.5rem + 1.25vw, 2.4rem);
	--step-4: clamp(2.1rem, 1.65rem + 2.2vw, 3.2rem);
	--step-5: clamp(2.5rem, 1.7rem + 3.6vw, 4.25rem);

	/* Spacing, 4px base, named by role not by size. */
	--sp-1: 0.25rem;
	--sp-2: 0.5rem;
	--sp-3: 0.75rem;
	--sp-4: 1rem;
	--sp-5: 1.5rem;
	--sp-6: 2rem;
	--sp-7: 3rem;
	--sp-8: 4rem;
	--sp-9: 6rem;

	/* Layout */
	--measure: 68ch;
	--wrap: 78rem;
	--wrap-narrow: 46rem;
	--gutter: clamp(1rem, 4vw, 2.5rem);

	--radius: 4px;
	--radius-lg: 8px;
	--border: 2px;

	--shadow-focus: 0 0 0 3px var(--paper), 0 0 0 6px var(--focus);
}

/* -------------------------------------------------------- 3. Reset & base */

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

html {
	-webkit-text-size-adjust: 100%;
	scroll-behavior: smooth;
}

body {
	margin: 0;
	background: var(--paper);
	color: var(--ink);
	font-family: var(--font-body);
	font-size: var(--step-0);
	line-height: 1.65;
	font-synthesis-weight: none;
	text-rendering: optimizeLegibility;
	-webkit-font-smoothing: antialiased;
}

img,
picture,
svg,
video {
	display: block;
	max-width: 100%;
	height: auto;
}

/* Wide content must scroll inside its own box, never the page. */
table,
pre,
.pil-scroll {
	display: block;
	max-width: 100%;
	overflow-x: auto;
}

:where(a) {
	color: inherit;
	text-underline-offset: 0.18em;
	text-decoration-thickness: from-font;
}

:where(a:hover) {
	text-decoration-thickness: 2px;
	color: var(--ink-orange);
}

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

/* Never remove the outline without replacing it. */
:focus:not(:focus-visible) {
	outline: none;
}

::selection {
	background: var(--brand-yellow);
	color: var(--brand-black);
}

hr {
	border: 0;
	border-top: 1px solid var(--rule);
	margin: var(--sp-7) 0;
}

/* -------------------------------------------------------------- 4. Layout */

.pil-wrap {
	width: min(100% - (var(--gutter) * 2), var(--wrap));
	margin-inline: auto;
}

.pil-wrap--narrow {
	width: min(100% - (var(--gutter) * 2), var(--wrap-narrow));
	margin-inline: auto;
}

.pil-section {
	padding-block: var(--sp-8);
}

/* Consecutive plain sections share one gap rather than stacking two. */
.pil-section + .pil-section {
	padding-block-start: 0;
}

/*
 * A section with its own background is a box, not a run of text, so it needs
 * padding on all four sides even when it follows another section. Without the
 * override below, the rule above strips the top padding and the heading sits
 * hard against the top edge of the black band.
 */
.pil-section--band,
.pil-section--ink,
.pil-section + .pil-section--band,
.pil-section + .pil-section--ink {
	padding-block: var(--sp-8);
}

.pil-section--band {
	background: var(--paper-raised);
	border-block: 1px solid var(--rule);
}

.pil-section--ink {
	background: var(--brand-band);
	color: var(--ink);
}

.pil-section--ink h2,
.pil-section--ink h3 {
	color: var(--brand-navy);
}

/*
 * The inverted band is the loudest thing on the page. Symmetric padding, so the
 * text sits centred rather than pushed up, and no outer margin, so the band
 * starts cleanly where the section above ends instead of floating in a thin
 * strip of paper.
 */
.pil-section--ink,
.pil-section + .pil-section--ink {
	padding-block: var(--sp-9);
	margin-block: 0;
}

.pil-section--ink h2 {
	margin-block-start: 0;
}

.pil-section--ink > .pil-wrap > :last-child {
	margin-block-end: 0;
}

/*
 * When the page ends on the inverted band, run it straight into the footer.
 * Otherwise the eye crosses black, then a band of paper, then the footer's
 * orange rule, then black again, which reads as a mistake rather than a
 * boundary. Flush, the orange rule is the only division and it means something.
 */
.pil-main:has(> .pil-section--ink:last-child) + .pil-footer {
	margin-block-start: 0;
}

.pil-section--ink a:not(.pil-btn) {
	color: var(--brand-navy);
	text-decoration-thickness: 2px;
}

.pil-section--ink a:not(.pil-btn):hover {
	color: #000;
}

.pil-grid {
	display: grid;
	gap: var(--sp-5);
}

@media (min-width: 40em) {
	.pil-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 60em) {
	.pil-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.pil-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
	.pil-grid--sidebar { grid-template-columns: minmax(0, 2fr) minmax(16rem, 1fr); gap: var(--sp-7); }
}

.pil-stack > * + * {
	margin-block-start: var(--sp-4);
}

.pil-stack--loose > * + * {
	margin-block-start: var(--sp-6);
}

/* ---------------------------------------------------------- 5. Typography */

h1, h2, h3, h4, h5, h6 {
	font-family: var(--font-display);
	font-weight: 600;
	line-height: 1.12;
	letter-spacing: -0.02em;
	margin-block: 0 var(--sp-3);
	text-wrap: balance;
}

h1 { font-size: var(--step-4); }
h2 { font-size: var(--step-3); margin-block-start: var(--sp-7); }
h3 { font-size: var(--step-2); margin-block-start: var(--sp-6); }
h4 { font-size: var(--step-1); margin-block-start: var(--sp-5); }

:where(h1, h2, h3, h4):first-child {
	margin-block-start: 0;
}

p, ul, ol, dl, blockquote, figure {
	margin-block: 0 var(--sp-4);
}

.pil-prose {
	max-width: var(--measure);
}

.pil-prose > * + * {
	margin-block-start: var(--sp-4);
}

.pil-prose a {
	color: var(--ink);
	text-decoration: underline;
	text-decoration-color: var(--brand-orange);
	text-decoration-thickness: 2px;
}

.pil-prose a:hover {
	color: var(--ink-orange);
	text-decoration-color: currentColor;
}

.pil-prose ul,
.pil-prose ol {
	padding-inline-start: 1.35em;
}

.pil-prose li + li {
	margin-block-start: var(--sp-2);
}

.pil-lede {
	font-size: var(--step-1);
	line-height: 1.5;
	color: var(--ink-soft);
	max-width: 56ch;
}

.pil-eyebrow {
	font-family: var(--font-display);
	font-size: var(--step--1);
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--ink-teal);
	margin-block-end: var(--sp-3);
}

blockquote {
	margin-inline: 0;
	padding-inline-start: var(--sp-5);
	border-inline-start: var(--border) solid var(--brand-orange);
	font-size: var(--step-1);
	line-height: 1.5;
}

code, pre, kbd, samp {
	font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
	font-size: 0.9em;
}

/* ------------------------------------------------------------- 6. Buttons */

.pil-btn {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: var(--sp-2);
	min-height: 44px; /* WCAG 2.2 target size */
	padding: var(--sp-3) var(--sp-6);
	border: 0;
	border-radius: 0;
	font-family: var(--font-display);
	font-size: var(--step-0);
	font-weight: 700;
	line-height: 1.2;
	text-decoration: none;
	cursor: pointer;
	background: transparent;
	color: var(--brand-navy);
	transition: transform 0.12s ease, filter 0.12s ease;
}

/*
 * Brush-stroke buttons.
 *
 * Four overlapping strokes at falling opacity, displaced by a turbulence
 * filter so the edges break up: a real brush is neither a flat slab nor an
 * even outline. Each variant is its own data URI with the colour baked in,
 * because a single tinted mask has to live on a pseudo-element behind the
 * label, and behind the label means behind the section background too.
 *
 * Opacity is capped at 0.9. The paint is translucent, so the label contrasts
 * against the *composite* over paper, not the pure hue: white on the orange
 * lands at 5.3:1 and navy on the yellow hover at 7.6:1. Going more transparent
 * than this drops the orange below the 4.5:1 the 18px label needs.
 *
 * The shape is decorative. Strip it and each button is still a correctly
 * sized, correctly contrasting block, which is what forced-colors mode does.
 */
.pil-btn--primary,
.pil-btn--secondary {
	background: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 300 84%22 preserveAspectRatio=%22none%22%3E%3Cfilter id=%22b%22 x=%22-8%25%22 y=%22-20%25%22 width=%22116%25%22 height=%22140%25%22%3E%3CfeTurbulence type=%22fractalNoise%22 baseFrequency=%22.05 .14%22 numOctaves=%223%22 seed=%225%22 result=%22n%22/%3E%3CfeDisplacementMap in=%22SourceGraphic%22 in2=%22n%22 scale=%226%22 xChannelSelector=%22R%22 yChannelSelector=%22G%22/%3E%3C/filter%3E%3Cg filter=%22url(%23b)%22%3E%3Cpath fill=%22%23a83b1c%22 fill-rule=%22evenodd%22 opacity=%220.9%22 d=%22M10 26C26 14 48 8 72 6 96 4 120 8 144 9 170 10 196 7 222 5 246 3 268 6 286 13c7 3 11 7 12 13l-1 14c-6 3-14 2-21 3 11 4 19 9 22 17l-5 12c-15 6-35 9-57 9-24 0-48-3-72-4-26-1-52 1-78 2-24 1-46-2-64-9C11 64 4 58 2 50l2-14c8-3 18-3 26-5C20 29 12 25 7 20ZM46 14c16-4 34-4 50-1-17 2-34 3-49 4ZM206 70c18-3 38-2 54 1-18 2-37 2-53 3Z%22/%3E%3Cpath fill=%22none%22 stroke=%22%23a83b1c%22 stroke-width=%225%22 stroke-linecap=%22round%22 opacity=%220.41%22 d=%22M18 16C90 8 180 11 292 16%22/%3E%3Cpath fill=%22none%22 stroke=%22%23a83b1c%22 stroke-width=%224%22 stroke-linecap=%22round%22 opacity=%220.36%22 d=%22M14 74C96 82 190 78 288 72%22/%3E%3C/g%3E%3C/svg%3E") center / 100% 100% no-repeat;
	padding-block: var(--sp-4);
	padding-inline: var(--sp-8);
	min-height: 56px;
}

.pil-btn:hover {
	transform: translateY(-1px);
}

.pil-btn:active {
	transform: translateY(0);
}

.pil-btn--primary {
	color: #fff;
}

.pil-btn--secondary {
	background-image: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 300 84%22 preserveAspectRatio=%22none%22%3E%3Cfilter id=%22b%22 x=%22-8%25%22 y=%22-20%25%22 width=%22116%25%22 height=%22140%25%22%3E%3CfeTurbulence type=%22fractalNoise%22 baseFrequency=%22.05 .14%22 numOctaves=%223%22 seed=%225%22 result=%22n%22/%3E%3CfeDisplacementMap in=%22SourceGraphic%22 in2=%22n%22 scale=%226%22 xChannelSelector=%22R%22 yChannelSelector=%22G%22/%3E%3C/filter%3E%3Cg filter=%22url(%23b)%22%3E%3Cpath fill=%22%23153348%22 fill-rule=%22evenodd%22 opacity=%220.9%22 d=%22M10 26C26 14 48 8 72 6 96 4 120 8 144 9 170 10 196 7 222 5 246 3 268 6 286 13c7 3 11 7 12 13l-1 14c-6 3-14 2-21 3 11 4 19 9 22 17l-5 12c-15 6-35 9-57 9-24 0-48-3-72-4-26-1-52 1-78 2-24 1-46-2-64-9C11 64 4 58 2 50l2-14c8-3 18-3 26-5C20 29 12 25 7 20ZM46 14c16-4 34-4 50-1-17 2-34 3-49 4ZM206 70c18-3 38-2 54 1-18 2-37 2-53 3Z%22/%3E%3Cpath fill=%22none%22 stroke=%22%23153348%22 stroke-width=%225%22 stroke-linecap=%22round%22 opacity=%220.41%22 d=%22M18 16C90 8 180 11 292 16%22/%3E%3Cpath fill=%22none%22 stroke=%22%23153348%22 stroke-width=%224%22 stroke-linecap=%22round%22 opacity=%220.36%22 d=%22M14 74C96 82 190 78 288 72%22/%3E%3C/g%3E%3C/svg%3E");
	color: var(--on-navy);
}

/* One hover for both: the stroke turns yellow, so the label turns dark. */
.pil-btn--primary:hover,
.pil-btn--primary:focus-visible,
.pil-btn--secondary:hover,
.pil-btn--secondary:focus-visible {
	background-image: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 300 84%22 preserveAspectRatio=%22none%22%3E%3Cfilter id=%22b%22 x=%22-8%25%22 y=%22-20%25%22 width=%22116%25%22 height=%22140%25%22%3E%3CfeTurbulence type=%22fractalNoise%22 baseFrequency=%22.05 .14%22 numOctaves=%223%22 seed=%225%22 result=%22n%22/%3E%3CfeDisplacementMap in=%22SourceGraphic%22 in2=%22n%22 scale=%226%22 xChannelSelector=%22R%22 yChannelSelector=%22G%22/%3E%3C/filter%3E%3Cg filter=%22url(%23b)%22%3E%3Cpath fill=%22%23eab93f%22 fill-rule=%22evenodd%22 opacity=%220.9%22 d=%22M10 26C26 14 48 8 72 6 96 4 120 8 144 9 170 10 196 7 222 5 246 3 268 6 286 13c7 3 11 7 12 13l-1 14c-6 3-14 2-21 3 11 4 19 9 22 17l-5 12c-15 6-35 9-57 9-24 0-48-3-72-4-26-1-52 1-78 2-24 1-46-2-64-9C11 64 4 58 2 50l2-14c8-3 18-3 26-5C20 29 12 25 7 20ZM46 14c16-4 34-4 50-1-17 2-34 3-49 4ZM206 70c18-3 38-2 54 1-18 2-37 2-53 3Z%22/%3E%3Cpath fill=%22none%22 stroke=%22%23eab93f%22 stroke-width=%225%22 stroke-linecap=%22round%22 opacity=%220.41%22 d=%22M18 16C90 8 180 11 292 16%22/%3E%3Cpath fill=%22none%22 stroke=%22%23eab93f%22 stroke-width=%224%22 stroke-linecap=%22round%22 opacity=%220.36%22 d=%22M14 74C96 82 190 78 288 72%22/%3E%3C/g%3E%3C/svg%3E");
	color: var(--brand-navy);
}

/*
 * The band is yellow, so a yellow button would disappear into it. Navy
 * separates from both the band and the footer: paper label at 9.8:1.
 */
.pil-section--ink .pil-btn--primary {
	background-image: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 300 84%22 preserveAspectRatio=%22none%22%3E%3Cfilter id=%22b%22 x=%22-8%25%22 y=%22-20%25%22 width=%22116%25%22 height=%22140%25%22%3E%3CfeTurbulence type=%22fractalNoise%22 baseFrequency=%22.05 .14%22 numOctaves=%223%22 seed=%225%22 result=%22n%22/%3E%3CfeDisplacementMap in=%22SourceGraphic%22 in2=%22n%22 scale=%226%22 xChannelSelector=%22R%22 yChannelSelector=%22G%22/%3E%3C/filter%3E%3Cg filter=%22url(%23b)%22%3E%3Cpath fill=%22%23153348%22 fill-rule=%22evenodd%22 opacity=%220.9%22 d=%22M10 26C26 14 48 8 72 6 96 4 120 8 144 9 170 10 196 7 222 5 246 3 268 6 286 13c7 3 11 7 12 13l-1 14c-6 3-14 2-21 3 11 4 19 9 22 17l-5 12c-15 6-35 9-57 9-24 0-48-3-72-4-26-1-52 1-78 2-24 1-46-2-64-9C11 64 4 58 2 50l2-14c8-3 18-3 26-5C20 29 12 25 7 20ZM46 14c16-4 34-4 50-1-17 2-34 3-49 4ZM206 70c18-3 38-2 54 1-18 2-37 2-53 3Z%22/%3E%3Cpath fill=%22none%22 stroke=%22%23153348%22 stroke-width=%225%22 stroke-linecap=%22round%22 opacity=%220.41%22 d=%22M18 16C90 8 180 11 292 16%22/%3E%3Cpath fill=%22none%22 stroke=%22%23153348%22 stroke-width=%224%22 stroke-linecap=%22round%22 opacity=%220.36%22 d=%22M14 74C96 82 190 78 288 72%22/%3E%3C/g%3E%3C/svg%3E");
	color: var(--on-navy);
}

/* On the yellow band the shared yellow hover would be invisible, so this one
   goes red instead. White label on the composite is 8:1. */
.pil-section--ink .pil-btn--primary:hover,
.pil-section--ink .pil-btn--primary:focus-visible {
	background-image: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 300 84%22 preserveAspectRatio=%22none%22%3E%3Cfilter id=%22b%22 x=%22-8%25%22 y=%22-20%25%22 width=%22116%25%22 height=%22140%25%22%3E%3CfeTurbulence type=%22fractalNoise%22 baseFrequency=%22.05 .14%22 numOctaves=%223%22 seed=%225%22 result=%22n%22/%3E%3CfeDisplacementMap in=%22SourceGraphic%22 in2=%22n%22 scale=%226%22 xChannelSelector=%22R%22 yChannelSelector=%22G%22/%3E%3C/filter%3E%3Cg filter=%22url(%23b)%22%3E%3Cpath fill=%22%237d2a1e%22 fill-rule=%22evenodd%22 opacity=%220.9%22 d=%22M10 26C26 14 48 8 72 6 96 4 120 8 144 9 170 10 196 7 222 5 246 3 268 6 286 13c7 3 11 7 12 13l-1 14c-6 3-14 2-21 3 11 4 19 9 22 17l-5 12c-15 6-35 9-57 9-24 0-48-3-72-4-26-1-52 1-78 2-24 1-46-2-64-9C11 64 4 58 2 50l2-14c8-3 18-3 26-5C20 29 12 25 7 20ZM46 14c16-4 34-4 50-1-17 2-34 3-49 4ZM206 70c18-3 38-2 54 1-18 2-37 2-53 3Z%22/%3E%3Cpath fill=%22none%22 stroke=%22%237d2a1e%22 stroke-width=%225%22 stroke-linecap=%22round%22 opacity=%220.41%22 d=%22M18 16C90 8 180 11 292 16%22/%3E%3Cpath fill=%22none%22 stroke=%22%237d2a1e%22 stroke-width=%224%22 stroke-linecap=%22round%22 opacity=%220.36%22 d=%22M14 74C96 82 190 78 288 72%22/%3E%3C/g%3E%3C/svg%3E");
	color: #fff;
}

/* The footer is still dark, so the navy stroke has to flip to paper there. */
.pil-footer .pil-btn--secondary {
	background-image: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 300 84%22 preserveAspectRatio=%22none%22%3E%3Cfilter id=%22b%22 x=%22-8%25%22 y=%22-20%25%22 width=%22116%25%22 height=%22140%25%22%3E%3CfeTurbulence type=%22fractalNoise%22 baseFrequency=%22.05 .14%22 numOctaves=%223%22 seed=%225%22 result=%22n%22/%3E%3CfeDisplacementMap in=%22SourceGraphic%22 in2=%22n%22 scale=%226%22 xChannelSelector=%22R%22 yChannelSelector=%22G%22/%3E%3C/filter%3E%3Cg filter=%22url(%23b)%22%3E%3Cpath fill=%22%23f5f3ea%22 fill-rule=%22evenodd%22 opacity=%220.92%22 d=%22M10 26C26 14 48 8 72 6 96 4 120 8 144 9 170 10 196 7 222 5 246 3 268 6 286 13c7 3 11 7 12 13l-1 14c-6 3-14 2-21 3 11 4 19 9 22 17l-5 12c-15 6-35 9-57 9-24 0-48-3-72-4-26-1-52 1-78 2-24 1-46-2-64-9C11 64 4 58 2 50l2-14c8-3 18-3 26-5C20 29 12 25 7 20ZM46 14c16-4 34-4 50-1-17 2-34 3-49 4ZM206 70c18-3 38-2 54 1-18 2-37 2-53 3Z%22/%3E%3Cpath fill=%22none%22 stroke=%22%23f5f3ea%22 stroke-width=%225%22 stroke-linecap=%22round%22 opacity=%220.41%22 d=%22M18 16C90 8 180 11 292 16%22/%3E%3Cpath fill=%22none%22 stroke=%22%23f5f3ea%22 stroke-width=%224%22 stroke-linecap=%22round%22 opacity=%220.37%22 d=%22M14 74C96 82 190 78 288 72%22/%3E%3C/g%3E%3C/svg%3E");
	color: var(--brand-navy);
}

@media (forced-colors: active) {
	.pil-btn--primary,
	.pil-btn--secondary {
		background: ButtonFace;
		border: 2px solid ButtonText;
		color: ButtonText;
	}
}

@media (prefers-reduced-motion: reduce) {
	.pil-btn:hover {
		transform: none;
	}
}

.pil-btn--ghost {
	border-color: transparent;
	padding-inline: var(--sp-2);
	text-decoration: underline;
	text-decoration-color: var(--brand-orange);
	text-decoration-thickness: 2px;
}


/*
 * No flat-colour override for buttons on the inverted band. It used to repaint
 * .pil-btn--primary as a solid yellow rectangle, which covered the brush
 * stroke entirely. The band-specific handling that is still needed lives with
 * the button rules above.
 */
.pil-section--ink .pil-btn--ghost {
	color: var(--paper);
	text-decoration-color: var(--brand-yellow);
}

.pil-actions {
	display: flex;
	flex-wrap: wrap;
	gap: var(--sp-3);
	margin-block-start: var(--sp-5);
}

/* --------------------------------------------------------------- 7. Forms */

.pil-form {
	max-width: 42rem;
}

.pil-field {
	margin-block-end: var(--sp-5);
}

.pil-field label {
	display: block;
	font-weight: 600;
	margin-block-end: var(--sp-2);
}

.pil-field input,
.pil-field textarea,
.pil-field select {
	width: 100%;
	min-height: 44px;
	padding: var(--sp-3);
	font: inherit;
	color: var(--ink);
	background: var(--paper-raised);
	border: var(--border) solid var(--rule-strong);
	border-radius: var(--radius);
}

.pil-field textarea {
	min-height: 9rem;
	resize: vertical;
}

.pil-field input:focus-visible,
.pil-field textarea:focus-visible,
.pil-field select:focus-visible {
	border-color: var(--focus);
}

.pil-field--error input,
.pil-field--error textarea,
.pil-field--error select {
	border-color: var(--ink-orange);
	background: #fff8f5;
}

.pil-field--consent .pil-consent,
.pil-consent {
	display: flex;
	align-items: flex-start;
	gap: var(--sp-3);
}

.pil-consent input[type="checkbox"] {
	width: 1.4rem;
	height: 1.4rem;
	min-height: 0;
	margin-block-start: 0.2rem;
	flex: 0 0 auto;
	accent-color: var(--ink-orange);
}

.pil-consent label {
	font-weight: 400;
	margin: 0;
}

.pil-hint {
	margin-block: 0 var(--sp-2);
	font-size: var(--step--1);
	color: var(--ink-faint);
}

.pil-error {
	margin-block: var(--sp-2) 0;
	font-size: var(--step--1);
	font-weight: 600;
	color: var(--ink-orange);
}

.pil-req {
	color: var(--ink-orange);
}

.pil-form__result {
	padding: var(--sp-4) var(--sp-5);
	margin-block-end: var(--sp-6);
	border: var(--border) solid var(--brand-black);
	border-radius: var(--radius);
	background: var(--paper-raised);
}

.pil-form__result--ok {
	border-color: var(--ink-teal);
	background: #eef8fb;
}

.pil-form__result--error {
	border-color: var(--ink-orange);
	background: #fff4ef;
}

.pil-form__result ul {
	margin-block-end: 0;
}

/* Honeypot: removed from the accessibility tree and from view, but not with
   display:none, which some bots detect. */
.pil-hp {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

/* --------------------------------------------------------------- 8. Cards */

.pil-cards {
	display: grid;
	gap: var(--sp-5);
	padding: 0;
	margin: 0;
	list-style: none;
}

@media (min-width: 45em) {
	.pil-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 68em) {
	.pil-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.pil-cards--wide { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.pil-card {
	display: flex;
	flex-direction: column;
	background: var(--paper-raised);
	border: 1px solid var(--rule);
	border-radius: var(--radius-lg);
	overflow: hidden;
}

.pil-card__media img {
	width: 100%;
	aspect-ratio: 3 / 2;
	object-fit: cover;
}

.pil-card__body {
	display: flex;
	flex-direction: column;
	flex: 1;
	padding: var(--sp-5);
	border-block-start: 4px solid var(--rule);
}

.pil-accent-orange .pil-card__body { border-block-start-color: var(--brand-orange); }
.pil-accent-teal .pil-card__body { border-block-start-color: var(--brand-teal); }
.pil-accent-yellow .pil-card__body { border-block-start-color: var(--brand-yellow); }

.pil-card__title {
	font-size: var(--step-1);
	margin-block: 0 var(--sp-3);
}

.pil-card__title a {
	text-decoration: none;
}

.pil-card__title a:hover {
	text-decoration: underline;
	text-decoration-thickness: 2px;
}

/* Make the whole card clickable without trapping keyboard users: the anchor
   stays the only focusable element and the overlay is purely a pointer
   affordance. */
.pil-card__title a::after {
	content: "";
	position: absolute;
	inset: 0;
}

.pil-card {
	position: relative;
}

.pil-card__text {
	color: var(--ink-soft);
	margin-block-end: var(--sp-4);
}

.pil-card__meta {
	display: flex;
	flex-wrap: wrap;
	gap: var(--sp-2);
	margin-block-end: var(--sp-3);
}

.pil-card__facts {
	display: grid;
	grid-template-columns: auto 1fr;
	gap: var(--sp-1) var(--sp-3);
	margin: auto 0 0;
	padding-block-start: var(--sp-4);
	border-block-start: 1px solid var(--rule);
	font-size: var(--step--1);
}

.pil-card__facts dt {
	color: var(--ink-faint);
}

.pil-card__facts dd {
	margin: 0;
	font-weight: 600;
}

.pil-card--area .pil-card__title {
	padding: var(--sp-5) var(--sp-5) 0;
}

.pil-card--area .pil-card__text {
	padding: 0 var(--sp-5) var(--sp-5);
	margin: 0;
}

.pil-card--area {
	border-block-start: 6px solid var(--rule);
}

.pil-accent-orange.pil-card--area { border-block-start-color: var(--brand-orange); }
.pil-accent-teal.pil-card--area { border-block-start-color: var(--brand-teal); }
.pil-accent-yellow.pil-card--area { border-block-start-color: var(--brand-yellow); }

.pil-tag {
	display: inline-block;
	padding: 0.15em 0.7em;
	border: 1px solid var(--rule-strong);
	border-radius: 999px;
	font-family: var(--font-display);
	font-size: var(--step--1);
	font-weight: 600;
	line-height: 1.6;
	color: var(--ink-soft);
	background: var(--paper);
}

.pil-tag--status { border-color: var(--brand-black); color: var(--brand-black); }
.pil-tag--ongoing { background: var(--brand-yellow); }
.pil-tag--completed { background: var(--paper); }
.pil-tag--submitted { background: transparent; border-style: dashed; }

/* --------------------------------------------------------- 9. Header & nav */

.pil-skip {
	position: absolute;
	left: var(--sp-4);
	top: var(--sp-4);
	z-index: 100;
	padding: var(--sp-3) var(--sp-4);
	background: var(--brand-yellow);
	color: var(--brand-black);
	font-weight: 600;
	border: var(--border) solid var(--brand-black);
	border-radius: var(--radius);
	transform: translateY(-200%);
}

.pil-skip:focus {
	transform: translateY(0);
}

.pil-header {
	background: var(--brand-navy);
	color: var(--on-navy);
	border-block-end: 0;
}

.pil-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--sp-4);
	padding-block: var(--sp-4);
}

.pil-brand {
	display: inline-flex;
	align-items: center;
	text-decoration: none;
	flex: 0 0 auto;
}

.pil-logo {
	width: auto;
	height: 3.75rem;
}

@media (max-width: 25em) {
	.pil-logo {
		height: 2.75rem;
	}
}

.pil-logo--text {
	font-family: var(--font-display);
	font-size: var(--step-2);
	font-weight: 700;
	letter-spacing: -0.03em;
}

.pil-header__tools {
	display: flex;
	align-items: center;
	gap: var(--sp-3);
}

.pil-navtoggle {
	display: inline-flex;
	align-items: center;
	gap: var(--sp-2);
	min-height: 44px;
	padding: var(--sp-2) var(--sp-4);
	background: transparent;
	color: var(--on-navy);
	border: var(--border) solid var(--on-navy);
	border-radius: var(--radius);
	font: 600 var(--step-0) / 1.2 var(--font-display);
	cursor: pointer;
}

.pil-nav ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.pil-nav > ul {
	display: flex;
	flex-wrap: wrap;
	gap: var(--sp-2) var(--sp-5);
	align-items: center;
}

.pil-nav a {
	color: var(--on-navy);
	display: inline-block;
	padding-block: var(--sp-2);
	font-family: var(--font-display);
	font-weight: 500;
	text-decoration: none;
	border-block-end: 3px solid transparent;
}

.pil-nav a:hover,
.pil-nav .current-menu-item > a,
.pil-nav [aria-current="page"] {
	border-block-end-color: var(--brand-yellow);
	color: #fff;
}

.pil-nav .menu-item-has-children > a::after {
	content: "";
	display: inline-block;
	width: 0.45em;
	height: 0.45em;
	margin-inline-start: 0.5em;
	border-right: 2px solid currentColor;
	border-bottom: 2px solid currentColor;
	transform: translateY(-0.15em) rotate(45deg);
}

.pil-nav .sub-menu {
	display: none;
	position: absolute;
	z-index: 20;
	min-width: 16rem;
	padding: var(--sp-3);
	background: var(--paper-raised);
	border: 1px solid var(--rule-strong);
	border-radius: var(--radius);
	box-shadow: 0 6px 24px rgb(0 0 0 / 12%);
}

.pil-nav li {
	position: relative;
}

.pil-nav li:hover > .sub-menu,
.pil-nav li:focus-within > .sub-menu,
.pil-nav .sub-menu.is-open {
	display: block;
}

.pil-nav .sub-menu a {
	color: var(--ink);
	display: block;
	padding: var(--sp-2) var(--sp-3);
	border: 0;
	border-radius: var(--radius);
}

.pil-nav .sub-menu a:hover {
	background: var(--brand-yellow);
}

.pil-langs ul {
	display: flex;
	gap: var(--sp-2);
	margin: 0;
	padding: 0;
	list-style: none;
	font-size: var(--step--1);
}

.pil-langs a {
	color: var(--on-navy);
	border-color: rgb(245 243 234 / 45%);
	display: inline-block;
	min-height: 44px;
	padding: 0.6rem var(--sp-3);
	text-decoration: none;
	border: 1px solid var(--rule-strong);
	border-radius: var(--radius);
	font-family: var(--font-display);
	font-weight: 600;
}

.pil-langs a.is-current {
	background: var(--paper);
	color: var(--brand-navy);
	border-color: var(--paper);
}

@media (max-width: 61.99em) {
	.pil-nav {
		display: none;
		width: 100%;
		padding-block: var(--sp-4);
		/* The bar is dark now, so the divider has to be a light one. */
		border-block-start: 1px solid rgb(245 243 234 / 25%);
	}

	.pil-nav.is-open {
		display: block;
	}

	.pil-nav > ul {
		flex-direction: column;
		align-items: stretch;
		gap: 0;
	}

	.pil-nav > ul > li {
		border-block-end: 1px solid rgb(245 243 234 / 18%);
	}

	.pil-nav .sub-menu {
		position: static;
		display: block;
		border: 0;
		box-shadow: none;
		padding-inline-start: var(--sp-4);
		background: transparent;
	}

	.pil-header__inner {
		flex-wrap: wrap;
	}

	/* The switcher sits last in the source so it lands at the far right of the
	   desktop bar. On a phone the nav becomes a full-width row below, so the
	   switcher has to be pulled back up beside the menu button. */
	.pil-langs {
		order: 2;
		margin-inline-start: auto;
	}

	.pil-header__tools {
		order: 3;
	}

	.pil-nav {
		order: 4;
	}
}

/*
 * Below this width the logo, both language pills and the menu button stop
 * fitting on one line. They did not wrap, they overflowed, and a header wider
 * than the viewport drags the whole document with it: the hero headline was
 * being clipped on a phone. Give the switcher its own row instead.
 */
@media (max-width: 47.99em) {
	.pil-header__tools {
		order: 2;
		margin-inline-start: auto;
	}

	.pil-langs {
		order: 3;
		width: 100%;
		margin-inline-start: 0;
		padding-block-start: var(--sp-2);
	}

	.pil-nav {
		order: 4;
	}
}

@media (min-width: 62em) {
	.pil-navtoggle {
		display: none;
	}

	.pil-nav {
		display: block !important;
	}
}

.pil-breadcrumbs {
	padding-block: var(--sp-4) 0;
	font-size: var(--step--1);
	color: var(--ink-faint);
}

.pil-breadcrumbs ol {
	display: flex;
	flex-wrap: wrap;
	gap: var(--sp-2);
	list-style: none;
	margin: 0;
	padding: 0;
}

.pil-breadcrumbs li + li::before {
	content: "/";
	margin-inline-end: var(--sp-2);
	color: var(--rule-strong);
}

/* ---------------------------------------------------------------- 10. Hero */

.pil-hero {
	padding-block: var(--sp-8) var(--sp-8);
	border-block-end: 1px solid var(--rule);
	background:
		linear-gradient(90deg, var(--brand-orange) 0 33.333%, var(--brand-yellow) 0 66.666%, var(--brand-teal) 0 100%)
		top left / 100% 8px no-repeat,
		var(--paper);
}

.pil-hero h1 {
	font-size: var(--step-5);
	max-width: 18ch;
}

/*
 * Hero split. One column until there is room for two, so the photograph never
 * squeezes the headline on a phone; it drops below instead.
 */
.pil-hero__grid {
	display: grid;
	gap: var(--sp-6);
	align-items: center;
}

@media (min-width: 60em) {
	.pil-hero__grid:not(.pil-hero__grid--solo) {
		grid-template-columns: 1.1fr 1fr;
		gap: var(--sp-6);
		align-items: center;
	}
}

.pil-hero__media {
	margin: 0;
	/* Sits low enough to clear the headline, but stops at the bottom of the
	   body copy rather than the bottom of the grid: aligned to the buttons it
	   hung below the sentence it belongs with. */
	align-self: center;
	margin-block-start: var(--sp-6);
}

.pil-hero__media img {
	display: block;
	width: 100%;
	height: auto;
	max-width: 34rem;
	margin-inline: auto;
}

.pil-hero__lede {
	font-size: var(--step-1);
	line-height: 1.5;
	max-width: 60ch;
	margin-block-start: var(--sp-5);
	color: var(--ink-soft);
}

.pil-pagehead {
	padding-block: var(--sp-7) var(--sp-6);
}

.pil-pagehead h1 {
	max-width: 22ch;
}

/* ---------------------------------------------------------- 11. Components */

/* Impact */
.pil-impact__grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr));
	gap: var(--sp-5);
	list-style: none;
	margin: var(--sp-6) 0 var(--sp-5);
	padding: 0;
}

.pil-impact__item {
	padding: var(--sp-4);
	border-inline-start: 4px solid var(--brand-teal);
	background: var(--paper-raised);
}

.pil-impact__item:nth-child(3n+2) { border-inline-start-color: var(--brand-orange); }
.pil-impact__item:nth-child(3n+3) { border-inline-start-color: var(--brand-yellow); }

.pil-impact__value {
	display: block;
	font-family: var(--font-display);
	font-size: var(--step-3);
	font-weight: 700;
	line-height: 1.05;
	letter-spacing: -0.03em;
}

.pil-impact__label {
	display: block;
	margin-block-start: var(--sp-2);
	font-size: var(--step--1);
	color: var(--ink-soft);
}

.pil-impact__note {
	display: inline-block;
	margin-block-start: var(--sp-2);
	font-size: var(--step--1);
	color: var(--ink-faint);
	font-style: italic;
}

.pil-impact__disclaimer {
	font-size: var(--step--1);
	color: var(--ink-faint);
	max-width: var(--measure);
}

/* Project detail */
.pil-factsheet {
	background: var(--paper-raised);
	border: 1px solid var(--rule);
	border-radius: var(--radius-lg);
	padding: var(--sp-5);
}

.pil-factsheet h2 {
	font-size: var(--step-1);
	margin-block-start: 0;
}

.pil-factsheet dl {
	display: grid;
	gap: var(--sp-3);
	margin: 0;
}

.pil-factsheet dt {
	font-size: var(--step--1);
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: var(--ink-faint);
	font-weight: 600;
}

.pil-factsheet dd {
	margin: 0;
}

.pil-partners {
	list-style: none;
	margin: 0;
	padding: 0;
}

.pil-partners li {
	padding-block: var(--sp-2);
	border-block-end: 1px solid var(--rule);
}

.pil-partners li:last-child {
	border-block-end: 0;
}

.pil-disclaimer {
	margin-block-start: var(--sp-7);
	padding: var(--sp-4) var(--sp-5);
	border: 1px solid var(--rule);
	border-inline-start: 4px solid var(--brand-teal);
	background: var(--paper-raised);
	font-size: var(--step--1);
	color: var(--ink-soft);
}

.pil-note {
	padding: var(--sp-4) var(--sp-5);
	border: 1px solid var(--rule-strong);
	border-inline-start: 4px solid var(--brand-orange);
	background: var(--paper-raised);
	border-radius: var(--radius);
}

/* Empty states */
.pil-empty {
	max-width: var(--measure);
	padding: var(--sp-7) 0;
}

.pil-empty h2 {
	margin-block-start: 0;
}

/* Testimonials */
.pil-testimonials {
	display: grid;
	gap: var(--sp-5);
}

.pil-testimonial {
	margin: 0;
	padding: var(--sp-5);
	background: var(--paper-raised);
	border: 1px solid var(--rule);
	border-radius: var(--radius-lg);
}

.pil-testimonial blockquote {
	border: 0;
	padding: 0;
	margin: 0;
}

.pil-testimonial figcaption {
	margin-block-start: var(--sp-3);
	font-size: var(--step--1);
	color: var(--ink-faint);
}

/* Networks */
.pil-networks {
	display: flex;
	flex-wrap: wrap;
	gap: var(--sp-3);
	list-style: none;
	margin: 0;
	padding: 0;
}

.pil-networks li {
	padding: var(--sp-2) var(--sp-4);
	border: 1px solid var(--rule-strong);
	border-radius: 999px;
	font-family: var(--font-display);
	font-weight: 600;
	font-size: var(--step--1);
}

/* Post list */
.pil-postlist {
	list-style: none;
	margin: 0;
	padding: 0;
}

/*
 * News as cards. Search results keep .pil-postlist because they mix pages and
 * projects, most of which have no featured image, and a grid of empty cards is
 * worse than a list.
 *
 * The card is one link, on the title. The image sits in a second anchor that is
 * aria-hidden and removed from the tab order: the picture is worth clicking but
 * not worth a second stop for a keyboard user, and it announces nothing a
 * screen reader has not already had from the heading.
 */
.pil-postgrid {
	display: grid;
	gap: var(--sp-6);
	margin: 0;
	padding: 0;
	list-style: none;
}

@media (min-width: 44em) {
	.pil-postgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 68em) {
	.pil-postgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.pil-postgrid > li {
	display: flex;
	flex-direction: column;
	background: var(--paper-raised);
	border: 1px solid var(--rule);
	border-radius: var(--radius);
	overflow: hidden;
}

.pil-post__link {
	display: block;
	text-decoration: none;
}

.pil-post__media {
	/* A fixed ratio, because the migrated thumbnails are all different shapes
	   and a ragged top edge across the row reads as broken rather than varied. */
	aspect-ratio: 16 / 10;
	overflow: hidden;
	background: var(--rule);
}

.pil-post__media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.3s ease;
}

.pil-postgrid > li:hover .pil-post__media img,
.pil-postgrid > li:focus-within .pil-post__media img {
	transform: scale(1.04);
}

@media (prefers-reduced-motion: reduce) {
	.pil-post__media img {
		transition: none;
	}

	.pil-postgrid > li:hover .pil-post__media img,
	.pil-postgrid > li:focus-within .pil-post__media img {
		transform: none;
	}
}

.pil-post__body {
	display: flex;
	flex-direction: column;
	gap: var(--sp-2);
	padding: var(--sp-5);
}

.pil-postgrid h2,
.pil-postgrid h3 {
	font-size: var(--step-1);
	margin-block: 0;
	text-wrap: balance;
}

.pil-postgrid h2 a,
.pil-postgrid h3 a {
	text-decoration: none;
	color: var(--ink);
}

.pil-postgrid h2 a:hover,
.pil-postgrid h3 a:hover {
	text-decoration: underline;
	text-decoration-color: var(--brand-orange);
	text-decoration-thickness: 3px;
	text-underline-offset: 3px;
}

.pil-post__excerpt {
	margin: 0;
	color: var(--ink-soft);
	font-size: var(--step--1);
}

/* On the banded sections the raised card would vanish into the band. */
.pil-section--band .pil-postgrid > li {
	background: var(--paper);
}

.pil-postlist > li {
	padding-block: var(--sp-5);
	border-block-end: 1px solid var(--rule);
}

.pil-postlist h2,
.pil-postlist h3 {
	font-size: var(--step-2);
	margin-block: 0 var(--sp-2);
}

.pil-postlist a {
	text-decoration: none;
}

.pil-postlist a:hover {
	text-decoration: underline;
	text-decoration-thickness: 2px;
}

.pil-postmeta {
	font-size: var(--step--1);
	color: var(--ink-faint);
	margin-block-end: var(--sp-2);
}

.pil-pagination {
	display: flex;
	flex-wrap: wrap;
	gap: var(--sp-3);
	margin-block-start: var(--sp-7);
}

.pil-pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 44px;
	min-height: 44px;
	padding-inline: var(--sp-2);
	border: 1px solid var(--rule-strong);
	border-radius: var(--radius);
	text-decoration: none;
	font-family: var(--font-display);
	font-weight: 600;
}

.pil-pagination .current {
	background: var(--brand-black);
	color: var(--paper);
	border-color: var(--brand-black);
}

/* Resource entries */
.pil-resource__file {
	display: inline-flex;
	align-items: center;
	gap: var(--sp-2);
	font-size: var(--step--1);
	color: var(--ink-faint);
}

/* --------------------------------------------------------------- 12. Footer */

.pil-footer {
	margin-block-start: var(--sp-9);
	background: var(--brand-navy);
	color: var(--on-navy);
	padding-block: var(--sp-8) var(--sp-6);
	border-block-start: 10px solid var(--brand-navy-deep);
}

.pil-footer a {
	color: var(--paper);
}

.pil-footer a:hover {
	color: var(--on-navy-accent);
}

.pil-footer h2 {
	font-size: var(--step-0);
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: var(--brand-yellow);
	margin-block: 0 var(--sp-3);
}

.pil-footer ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.pil-footer li + li {
	margin-block-start: var(--sp-2);
}

.pil-social {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
}

.pil-icon {
	flex: 0 0 auto;
	width: 1.25rem;
	height: 1.25rem;
	/* The glyph should not be underlined along with the word next to it. */
	text-decoration: none;
}

.pil-footer__grid {
	display: grid;
	gap: var(--sp-6);
}

@media (min-width: 45em) {
	.pil-footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 68em) {
	.pil-footer__grid { grid-template-columns: 1.6fr 1fr 1fr; }
}

/*
 * The legal menu is a horizontal row, but .pil-footer li + li adds top margin
 * to stack the vertical column menus above. Inherited here it pushed every
 * item after the first down by that margin, so the row sat on five different
 * baselines.
 */
.pil-footer__legal ul {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: var(--sp-2) var(--sp-5);
	margin: 0;
	padding: 0;
	list-style: none;
}

.pil-footer__legal li + li {
	margin-block-start: 0;
}

.pil-footer__bottom {
	margin-block-start: var(--sp-7);
	padding-block-start: var(--sp-5);
	border-block-start: 1px solid rgb(255 255 255 / 18%);
	display: flex;
	flex-wrap: wrap;
	gap: var(--sp-4);
	justify-content: space-between;
	font-size: var(--step--1);
}

.pil-footer__funding {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
	gap: var(--sp-5);
	margin-block-start: var(--sp-7);
	padding-block-start: var(--sp-5);
	border-block-start: 1px solid rgb(255 255 255 / 18%);
}

.pil-footer__eu {
	max-width: 58ch;
	margin: 0;
	font-size: var(--step--1);
	color: #d8d4c8;
}

/* The EU co-funding emblem: flag image plus real text, so nothing can clip. */
.pil-eu {
	display: inline-flex;
	align-items: center;
	gap: 0.9rem;
	flex: 0 0 auto;
}

.pil-eu__flag {
	width: 4.5rem;
	height: auto;
	aspect-ratio: 3 / 2;
	flex: 0 0 auto;
}

.pil-eu__text {
	font-family: var(--font-body);
	font-size: 0.8125rem;
	font-weight: 500;
	line-height: 1.25;
	letter-spacing: 0.01em;
	white-space: nowrap;
}

.pil-eu--dark .pil-eu__text {
	color: var(--paper);
}

.pil-eu--light .pil-eu__text {
	color: var(--ink);
}

.pil-disclaimer--eu {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
	gap: var(--sp-4);
}

.pil-disclaimer--eu p {
	margin: 0;
	flex: 1 1 22rem;
}

/* ------------------------------------------------------------ 13. Utilities */

.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
	border: 0;
}

.screen-reader-text:focus {
	position: static !important;
	width: auto;
	height: auto;
	clip-path: none;
	white-space: normal;
}

.pil-flow-tight > * + * { margin-block-start: var(--sp-2); }
.pil-muted { color: var(--ink-faint); }
.pil-small { font-size: var(--step--1); }
.pil-center { text-align: center; }
.pil-nowrap { white-space: nowrap; }

/* ----------------------------------------------------- 14. Motion & print */

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	*,
	*::before,
	*::after {
		animation-duration: 0.001ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.001ms !important;
		scroll-behavior: auto !important;
	}

	.pil-btn:hover {
		transform: none;
	}
}

@media print {
	.pil-header__tools,
	.pil-nav,
	.pil-langs,
	.pil-skip,
	.pil-footer nav {
		display: none;
	}

	body {
		background: #fff;
		color: #000;
		font-size: 11pt;
	}

	a::after {
		content: " (" attr(href) ")";
		font-size: 0.85em;
		word-break: break-all;
	}
}

/* Forced-colors: rely on system colours rather than fighting them. */
@media (forced-colors: active) {
	.pil-btn,
	.pil-tag,
	.pil-card {
		border: 1px solid ButtonBorder;
	}

	.pil-hero {
		background: Canvas;
	}
}
