/*
Theme Name: ParliMeter Blocks
Theme URI: https://www.parlimeter.org.za
Author: ParliMeter (OpenUp, OUTA, PMG)
Author URI: https://www.parlimeter.org.za
Description: A blank block theme for ParliMeter, rebuilt to match the Webflow export. Built for the GenerateBlocks plugin; templates and patterns are composed from GenerateBlocks container, headline, text, image and button blocks.
Requires at least: 6.6
Tested up to: 7.1
Requires PHP: 7.4
Version: 1.0.0
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: parlimeter-blocks
Tags: block-theme, block-patterns, full-site-editing, accessibility-ready
*/

/* =========================================================================
   1. Tokens — values read from the live Webflow export
   ========================================================================= */

:root {
	--pm-brand: #fb9905;
	--pm-brand-soft: rgba(251, 153, 5, 0.34);
	--pm-brand-green: #007749;
	--pm-blue: #001489;
	--pm-red: #e03c31;

	--pm-ink: #000000;
	--pm-muted: #5d6c7b;
	--pm-grey: #f5f5f5;
	--pm-border: #dddddd;

	--pm-font-sans: "Generalsans", Arial, Helvetica, sans-serif;
	--pm-font-serif: "Literata", "Times New Roman", Georgia, serif;

	--pm-radius: 20px;
	--pm-gutter: 48px;
	--pm-gap: 32px;

	/*
	 * Container widths, from the export:
	 *   --max-width--main:   90rem = 1440px  (.u-container)
	 *   --max-width--narrow: 75rem = 1200px
	 */
	--pm-max: 90rem;
	--pm-max-narrow: 75rem;
}

/* =========================================================================
   2. Base
   ========================================================================= */

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

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

body {
	margin: 0;
	background: #ffffff;
	color: var(--pm-ink);
	font-family: var(--pm-font-sans);
	font-size: 16px;
	font-weight: 400;
	line-height: 1.7;
	-webkit-font-smoothing: antialiased;
}

/* Sections control their own rhythm; no root block gap. */
.wp-site-blocks > * + * {
	margin-block-start: 0;
}

img {
	max-width: 100%;
	height: auto;
	display: block;
}

a {
	color: inherit;
}

/*
 * Full-width shell capped at 1440px and centred.
 * Mirrors .u-container: width 100%, max-width 90rem, 48px padding, auto margins.
 */
.pm-container {
	width: 100%;
	max-width: var(--pm-max);
	margin-inline: auto;
	padding-inline: var(--pm-gutter);
}

/* Narrower measure for long-form text. */
.pm-narrow {
	max-width: var(--pm-max-narrow);
}

/* =========================================================================
   3. Typography — sizes taken from the export
   ========================================================================= */

.pm-display,
.pm-hero__title {
	font-family: var(--pm-font-serif);
	font-size: clamp(2.25rem, 4.4vw, 3.41rem); /* 54.55px @1440 */
	font-weight: 500;
	line-height: 1.4;
	letter-spacing: -0.03em; /* --all-headings--heading-letter-spacing */
	margin: 0;
	color: var(--pm-ink);
}

.pm-hero__sub {
	font-family: var(--pm-font-sans);
	font-size: clamp(1.125rem, 1.8vw, 1.364rem); /* 21.82px @1440 */
	font-weight: 500;
	line-height: 1.4;
	margin: 0;
}

.pm-section-title,
.pm-h2 {
	font-family: var(--pm-font-sans);
	font-size: clamp(1.5rem, 2.6vw, 2rem); /* 32px @1440 */
	font-weight: 600;
	line-height: 1.4;
	letter-spacing: -0.03em;
	margin: 0;
}

.pm-h3 {
	font-family: var(--pm-font-serif);
	font-size: clamp(1.375rem, 2.4vw, 2rem);
	font-weight: 500;
	line-height: 1.4;
	letter-spacing: -0.03em;
	margin: 0;
}

/* Section heading — u-text-h1: 48px Literata at 1440 */
.pm-h1 {
	font-family: var(--pm-font-serif);
	font-size: clamp(1.75rem, 3.4vw, 3rem);
	font-weight: 500;
	line-height: 1.4;
	letter-spacing: -0.03em;
	margin: 0;
}

/* Lead-in paragraph, one step above body text */
.pm-lead {
	font-size: 1.25rem;
	font-weight: 400;
	line-height: 1.6;
	margin: 0;
}

/* Card / label heading — 20px, 600 */
.pm-h4,
.pm-overline {
	font-family: var(--pm-font-sans);
	font-size: 1.25rem; /* 20px */
	font-weight: 600;
	line-height: 1.4;
	margin: 0;
}

.pm-overline {
	color: var(--pm-brand);
}

.pm-body {
	font-size: 1rem;
	line-height: 1.7;
	margin: 0;
}

.pm-muted {
	color: var(--pm-muted);
}

.pm-center {
	text-align: center;
}

/* =========================================================================
   4. Buttons — .btn_main_wrap
   ========================================================================= */

.pm-btn,
.wp-block-generateblocks-button .pm-btn {
	display: inline-block;
	padding: 12px 24px;
	border: 2px solid var(--pm-brand);
	border-radius: 1440px;
	background: var(--pm-brand);
	color: var(--pm-ink);
	font-family: var(--pm-font-sans);
	font-size: 1rem;
	font-weight: 500;
	line-height: 1;
	text-decoration: none;
	transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.pm-btn:hover,
.pm-btn:focus-visible {
	background: var(--pm-ink);
	border-color: var(--pm-ink);
	color: #ffffff;
}

.pm-btn--ghost {
	background: transparent;
	border-color: var(--pm-ink);
	color: var(--pm-ink);
}

.pm-btn--ghost:hover,
.pm-btn--ghost:focus-visible {
	background: var(--pm-ink);
	border-color: var(--pm-ink);
	color: #ffffff;
}

.pm-btn--light {
	background: #ffffff;
	border-color: #ffffff;
	color: var(--pm-ink);
}

/* =========================================================================
   5. Header — 80px, full width
   ========================================================================= */

.pm-header {
	position: sticky;
	top: 0;
	z-index: 60;
	background: #ffffff;
}

.pm-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	min-height: 80px;
}

.pm-logo {
	display: inline-flex;
	align-items: center;
	width: 250px;
	max-width: 45vw;
	text-decoration: none;
	line-height: 0;
}

.pm-logo img,
.pm-logo svg {
	width: 100%;
	height: auto;
}

.pm-nav ul {
	display: flex;
	align-items: center;
	gap: 32px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.pm-nav a {
	font-size: 1rem;
	font-weight: 400;
	line-height: 1.7;
	color: var(--pm-ink);
	text-decoration: none;
}

.pm-nav a:hover {
	color: var(--pm-brand);
}

/* Core Navigation block renders its own list markup — align it with the design. */
.pm-nav .wp-block-navigation__container {
	gap: 32px;
	align-items: center;
}

.pm-nav .wp-block-navigation-item__content {
	font-size: 1rem;
	font-weight: 400;
	line-height: 1.7;
	color: var(--pm-ink);
	text-decoration: none;
}

.pm-nav .wp-block-navigation-item__content:hover,
.pm-nav .current-menu-item .wp-block-navigation-item__content {
	color: var(--pm-brand);
}

.pm-nav .wp-block-navigation__responsive-container-open,
.pm-nav .wp-block-navigation__responsive-container-close {
	color: var(--pm-ink);
}

.pm-nav__toggle {
	display: none;
	padding: 12px 24px;
	border: 2px solid var(--pm-brand);
	border-radius: 1440px;
	background: var(--pm-brand);
	color: var(--pm-ink);
	font-size: 1rem;
	font-weight: 500;
	line-height: 1;
	cursor: pointer;
}

/* =========================================================================
   6. Hero — centred, 8 scattered portraits bleeding off both edges
   ========================================================================= */

.pm-hero {
	position: relative;
	padding-block: 80px;
	text-align: center;
	overflow: hidden;
}

.pm-hero__inner {
	position: relative;
	z-index: 2;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 32px;
	width: 100%;
	/*
	 * The export sizes this to 759px, where "Access. Accountability. Action."
	 * fits with literally 0px to spare. A couple of px of headroom keeps it on
	 * one line across font-size rounding without shifting the centred layout.
	 */
	max-width: 764px;
	margin-inline: auto;
}

.pm-hero__title {
	position: relative;
	display: block;
	padding-block: 24px;
}

/*
 * Hand-drawn amber highlighter, centred on the headline.
 * From the export: 797x146 centred on a 759-wide title wrap
 * (.home-hero_highlight_wrap, viewBox 0 0 781 143).
 */
.pm-hero__title::after {
	content: "";
	position: absolute;
	left: 50%;
	top: 50%;
	transform: translate(-50%, -50%);
	width: 797px; /* .home-hero_highlight_wrap rendered size in the export */
	height: 146px;
	background: url("assets/images/highlight.svg") center / 100% 100% no-repeat;
	z-index: -1;
}

.pm-hero__sub {
	margin: 0;
}

/* Portraits: absolutely positioned, 96x96, ringed around the text */
.pm-hero__portraits {
	position: absolute;
	inset: 0;
	z-index: 1;
	pointer-events: none;
}

.pm-hero__portrait {
	position: absolute;
	width: 96px;
	height: 96px;
}

.pm-hero__portrait img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	border-radius: 50%;
}

.pm-hero__portrait::before {
	content: "";
	position: absolute;
	inset: -10px; /* circles are 115x117 around a 96x96 image in the export */
	background: url("assets/images/hero-circle.svg") center / contain no-repeat;
	opacity: 0.9;
}

.pm-hero__portrait--l1 { left: -10%; top: 50%; }
.pm-hero__portrait--l2 { left: -1%;  top: 18%; }
.pm-hero__portrait--l3 { left: 6%;   top: 64%; }
.pm-hero__portrait--l4 { left: 10%;  top: 4%; }

.pm-hero__portrait--r1 { left: 83%;  top: 55%; }
.pm-hero__portrait--r2 { left: 90%;  top: 5%; }
.pm-hero__portrait--r3 { left: 96%;  top: 66%; }
.pm-hero__portrait--r4 { left: 103%; top: 8%; }

/*
 * Two-column split (.hero_layout / .data_layout: 648.5px + 648.5px in the
 * export, i.e. an even split of the 1329px content box with a 32px gap).
 */
.pm-cols {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: var(--pm-gap);
	align-items: center;
}

.pm-cols--top {
	align-items: start;
}

.pm-cols--flip > :first-child {
	order: 2;
}

@media (max-width: 900px) {
	.pm-cols {
		grid-template-columns: minmax(0, 1fr);
	}
	.pm-cols--flip > :first-child {
		order: 0;
	}
}

/*
 * Numbered list (.number_list_wrap): items stack vertically in the right
 * column, each with the number beside the title and body copy.
 */
.pm-number-list {
	display: flex;
	flex-direction: column;
	gap: 24px;
}

.pm-number-list__item {
	display: grid;
	grid-template-columns: 48px minmax(0, 1fr);
	gap: 24px;
	align-items: start;
}

.pm-number-list__number {
	font-family: var(--pm-font-sans);
	font-size: 1.25rem;
	font-weight: 600;
	line-height: 1.4;
}

.pm-number-list__title {
	font-family: var(--pm-font-sans);
	font-size: 1.25rem;
	font-weight: 600;
	line-height: 1.4;
	margin: 0 0 8px;
}

.pm-number-list__text {
	font-size: 1rem;
	font-weight: 500;
	line-height: 1.7;
	margin: 0;
}

/* =========================================================================
   7. Sections
   ========================================================================= */

.pm-section {
	padding-block: 48px;
}

.pm-section--grey {
	background: var(--pm-grey);
}

.pm-section--tight {
	padding-block: 32px;
}

/* Announcement wrapper: 20px above/below the card (240px total, as exported) */
.pm-section--announce {
	padding-block: 20px;
}

.pm-section__head {
	margin-bottom: var(--pm-gap);
}

.pm-section__head--split {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
}

/* =========================================================================
   8. Announcement card — amber 34%, 40px pad, radius 20
   ========================================================================= */

.pm-announce {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--pm-gap);
	padding: 40px;
	border-radius: var(--pm-radius);
	background: var(--pm-brand-soft);
}

.pm-announce__content {
	display: flex;
	align-items: center;
	gap: 24px;
}

.pm-announce__icon {
	flex: 0 0 auto;
	width: 120px;
	height: 120px;
}

.pm-announce__icon img {
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.pm-announce__label {
	font-size: 1.25rem;
	font-weight: 600;
	line-height: 1.4;
	color: var(--pm-brand);
	margin: 0 0 4px;
}

.pm-announce__title {
	font-family: var(--pm-font-serif);
	font-size: 2rem;
	font-weight: 500;
	line-height: 1.4;
	letter-spacing: -0.03em;
	margin: 0 0 4px;
}

.pm-announce__text {
	margin: 0;
}

.pm-announce__action {
	flex: 0 0 auto;
}

/* =========================================================================
   9. Card grid — 3 columns, 32px gap
   ========================================================================= */

.pm-grid {
	display: grid;
	gap: var(--pm-gap);
}

.pm-grid--3 {
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

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

@media (max-width: 1100px) {
	.pm-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
	.pm-grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
	.pm-grid--3,
	.pm-grid--4 { grid-template-columns: minmax(0, 1fr); }
}

/* Card — white, 2px #f5f5f5 border, radius 20, centred content */
.pm-card {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 12px;
	height: 100%;
	/*
	 * The export's .card_wrap renders 426px inside a 421.67px grid track
	 * (x=46 vs the grid's x=48), i.e. it overflows its column by ~4px and stays
	 * centred. That extra 4px of content width is what wraps the body copy to
	 * three lines and sets the card's 375px height, so it is reproduced here.
	 */
	width: calc(100% + 4px);
	margin-inline: -2px;
	padding: 32px;
	border: 2px solid var(--pm-grey);
	border-radius: var(--pm-radius);
	background: #ffffff;
	text-align: center;
	text-decoration: none;
	color: inherit;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.pm-card:hover {
	border-color: var(--pm-brand);
	box-shadow: 0 12px 28px rgba(0, 0, 0, 0.06);
}

.pm-card__icon {
	width: 120px;
	height: 120px;
}

.pm-card__icon img,
.pm-card__icon svg {
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.pm-card__title {
	font-size: 1.25rem;
	font-weight: 600;
	line-height: 1.4;
	margin: 0;
}

.pm-card__text {
	/* 12px flex gap + 24px margin = the export's 36px before the button */
	margin: 0 0 24px;
}

.pm-card__link {
	margin-top: 4px;
}

/* =========================================================================
   10. Feedback line
   ========================================================================= */

.pm-feedback {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px;
	margin-top: 24px;
}

/* Inline button row, e.g. the 404 template's two calls to action. */
.pm-hero__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px;
	margin-top: 24px;
}

/* =========================================================================
   11. Mission — centred
   ========================================================================= */

.pm-mission {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 16px;
	text-align: center;
}

/* About page renders the mission block left-aligned, not centred. */
.pm-mission--left {
	align-items: flex-start;
	text-align: left;
}

.pm-mission__statement {
	font-family: var(--pm-font-serif);
	font-size: clamp(1.5rem, 2.6vw, 2rem);
	font-weight: 500;
	line-height: 1.4;
	letter-spacing: -0.03em;
	margin: 0;
	/* The export caps this statement at 926px, narrower than the 1329px body. */
	max-width: 926px;
}

/* =========================================================================
   11b. Work with us CTA (.cta_layout)
   ========================================================================= */

/*
 * Work with us CTA (.cta_layout). A #f5f5f5 card, 20px radius, 40px padding,
 * 1329x200, holding the illustration + copy on the left and the button at the
 * right edge. The surrounding section is transparent.
 */
.pm-cta {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--pm-gap);
	padding: 40px;
	border-radius: var(--pm-radius);
	background: var(--pm-grey);
}

/* Icon + copy travel together on the left (24px between them). */
.pm-cta__body {
	display: flex;
	align-items: center;
	gap: 24px;
	flex: 1 1 auto;
}

.pm-cta__icon {
	flex: 0 0 auto;
	width: 120px;
	height: 120px;
}

.pm-cta__icon img {
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.pm-cta__content {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 8px;
	flex: 1 1 auto;
	max-width: 672px;
}

@media (max-width: 900px) {
	.pm-cta {
		flex-direction: column;
		align-items: flex-start;
		padding: 32px;
	}

	.pm-cta__body {
		flex-direction: column;
		align-items: flex-start;
	}
}

/* =========================================================================
   12. Partners band — #f5f5f5
   ========================================================================= */

.pm-partners-band {
	background: var(--pm-grey);
	padding-block: 30px;
}

.pm-partners-band__label {
	margin: 0 0 8px;
}

.pm-partners {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 48px;
}

.pm-partners img {
	width: 128px;
	height: auto;
	object-fit: contain;
}

/* =========================================================================
   13. Blog
   ========================================================================= */

.pm-post-card {
	display: flex;
	flex-direction: column;
	height: 100%;
	border: 2px solid var(--pm-grey);
	border-radius: var(--pm-radius);
	background: #ffffff;
	overflow: hidden;
	text-decoration: none;
	color: inherit;
	position: relative;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

/*
 * Card grid. The core Query Loop wraps items in
 * div.wp-block-query > ul.wp-block-post-template > li, so the grid lives on
 * the list rather than on the query wrapper.
 */
.pm-post-grid > ul.wp-block-post-template {
	display: grid;
	gap: var(--pm-gap);
	grid-template-columns: repeat(3, minmax(0, 1fr));
	margin: 0;
	padding: 0;
	list-style: none;
}

.pm-post-grid--3 > ul.wp-block-post-template {
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.pm-post-grid > ul.wp-block-post-template > li {
	margin: 0;
	display: flex;
}

/* Make the whole card clickable using the title link (stretched-link pattern). */
.pm-post-card__title a::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
}

.pm-post-card__title a {
	text-decoration: none;
	color: inherit;
}

.pm-post-card__excerpt p,
.pm-post-card__excerpt {
	margin: 0;
}

.pm-post-card__meta a {
	text-decoration: none;
	color: inherit;
}

@media (max-width: 900px) {
	.pm-post-grid > ul.wp-block-post-template,
	.pm-post-grid--3 > ul.wp-block-post-template {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 640px) {
	.pm-post-grid > ul.wp-block-post-template,
	.pm-post-grid--3 > ul.wp-block-post-template {
		grid-template-columns: minmax(0, 1fr);
	}
}

.pm-post-card:hover {
	border-color: var(--pm-brand);
	box-shadow: 0 12px 28px rgba(0, 0, 0, 0.06);
}

.pm-post-card__media {
	aspect-ratio: 16 / 9;
	background: var(--pm-grey);
	overflow: hidden;
}

.pm-post-card__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.pm-post-card__body {
	display: flex;
	flex-direction: column;
	gap: 8px;
	padding: 24px;
	flex: 1 1 auto;
}

.pm-post-card__title {
	font-size: 1.25rem;
	font-weight: 600;
	line-height: 1.4;
	margin: 0;
}

.pm-post-card__excerpt {
	margin: 0;
	flex: 1 1 auto;
}

.pm-post-card__meta {
	margin: 0;
	font-size: 0.875rem;
	color: var(--pm-muted);
}

.pm-tag {
	display: inline-block;
	align-self: flex-start;
	padding: 4px 12px;
	border-radius: 1440px;
	background: var(--pm-grey);
	font-size: 0.8125rem;
	font-weight: 600;
	line-height: 1.4;
}

.pm-pagination {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px;
	margin-top: 32px;
}

.pm-pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 44px;
	height: 44px;
	padding: 0 14px;
	border: 2px solid var(--pm-grey);
	border-radius: 1440px;
	font-weight: 500;
	text-decoration: none;
}

.pm-pagination .page-numbers.current,
.pm-pagination .page-numbers:hover {
	background: var(--pm-brand);
	border-color: var(--pm-brand);
	color: var(--pm-ink);
}

/* =========================================================================
   14. Single post
   ========================================================================= */

/*
 * Post hero (.blog-hero_wrap). A 12-column grid (32px gutter) holding:
 *   categories (full) | title + report link + meta (full) |
 *   featured image (8 cols = 875px) | author + share (4 cols = 422px)
 */
.pm-post-hero {
	padding-block: 80px 0;
}

.pm-post-hero__grid {
	display: grid;
	grid-template-columns: repeat(12, minmax(0, 1fr));
	gap: 16px 32px;
}

.pm-post-hero__cats,
.pm-post-hero__header {
	grid-column: 1 / -1;
}

.pm-post-hero__header {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 24px;
}

/* Holds the "View the report" button; collapses when there is no report. */
.pm-post-hero__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}

.pm-post-hero__actions:empty {
	display: none;
}

.pm-post-hero__image {
	grid-column: span 8;
}

.pm-post-hero__image img {
	width: 100%;
	height: 458px;
	object-fit: cover;
	border-radius: var(--pm-radius);
}

.pm-post-hero__info {
	grid-column: span 4;
	display: flex;
	flex-direction: column;
	gap: 32px;
}

/*
 * Article + sidebar (.blog-main_wrap). A 12-column grid with a 48px gutter:
 * body spans 8 columns (870px), sidebar spans 4 (411px).
 */
.pm-post-main {
	padding-block: 80px;
}

.pm-post-main__grid {
	display: grid;
	grid-template-columns: repeat(12, minmax(0, 1fr));
	gap: 48px;
}

.pm-post-main__body {
	grid-column: span 8;
}

.pm-post-main__sidebar {
	grid-column: span 4;
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 32px;
}

.pm-sidebar-heading {
	font-family: var(--pm-font-sans);
	font-size: 1rem;
	font-weight: 600;
	line-height: 1.4;
	margin: 0;
}

/* Related posts: compact rows (411x90) with a 122x64 thumbnail on the left. */
.pm-related-list {
	display: flex;
	flex-direction: column;
	gap: 0;
}

.pm-related-list__item {
	display: grid;
	grid-template-columns: 122px minmax(0, 1fr);
	gap: 12px;
	align-items: center;
	min-height: 90px;
	padding-block: 12px;
	border-bottom: 1px solid var(--pm-border);
}

.pm-related-list__item:first-child {
	border-top: 1px solid var(--pm-border);
}

.pm-related-list__title {
	font-family: var(--pm-font-sans);
	font-size: 1rem;
	font-weight: 600;
	line-height: 1.4;
	text-decoration: none;
	color: var(--pm-ink);
}

.pm-related-list__title:hover {
	color: var(--pm-brand);
}

.pm-related-list__media img {
	width: 122px;
	height: 64px;
	object-fit: cover;
	border-radius: var(--pm-radius-sm);
}

/* Author card in the hero's right column. */
.pm-author {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 8px;
}

.pm-author__avatar {
	border-radius: 50%;
}

.pm-author__avatar-wrap {
	line-height: 0;
}

.pm-author__name {
	font-family: var(--pm-font-sans);
	font-size: 1rem;
	font-weight: 600;
	line-height: 1.4;
	margin: 0;
}

.pm-author__bio {
	font-size: 1rem;
	line-height: 1.7;
	margin: 0;
	color: var(--pm-ink);
}

@media (max-width: 900px) {
	.pm-post-hero__image,
	.pm-post-hero__info,
	.pm-post-main__body,
	.pm-post-main__sidebar {
		grid-column: 1 / -1;
	}

	.pm-post-hero__image img {
		height: auto;
	}
}

.pm-post__header {
	display: flex;
	flex-direction: column;
	gap: 12px;
	max-width: 900px;
	margin-inline: auto;
}

.pm-post__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 20px;
	color: var(--pm-muted);
}

.pm-post__hero {
	margin-block: 32px;
}

.pm-post__hero img {
	width: 100%;
	border-radius: var(--pm-radius);
}

.pm-prose {
	max-width: 900px;
	margin-inline: auto;
}

.pm-prose > * + * {
	margin-top: 1.25em;
}

/*
 * Only the lead paragraph (the excerpt shown at the top of the article) is
 * set at 20px/28px. The article content itself keeps the 16px/1.7 baseline,
 * matching .blog-main_body in the export.
 */
.pm-post-main__body {
	max-width: none;
	margin-inline: 0;
}

/*
 * Vertical rhythm for the article. The rhythm has to be applied inside the
 * post-content wrapper as well, because core wraps the body in
 * .wp-block-post-content and the paragraphs are therefore not direct children.
 */
.pm-post-main__body > * + *,
.pm-post-main__body .wp-block-post-content > * + * {
	margin-top: 1.25em;
}

.pm-post-lead {
	font-size: 1.25rem;
	line-height: 1.4;
	margin: 0 0 32px;
}

/* The post headline is tighter than the site h1 (52.8px at 48px = 1.1). */
.pm-post-hero__header .pm-h1 {
	line-height: 1.1;
}

.pm-prose h2 {
	font-family: var(--pm-font-sans);
	font-size: 2rem;
	font-weight: 600;
	line-height: 1.4;
	letter-spacing: -0.03em;
	margin-top: 2em;
}

.pm-prose h3 {
	font-family: var(--pm-font-serif);
	font-size: 1.5rem;
	font-weight: 500;
	margin-top: 1.75em;
}

.pm-prose img,
.pm-prose figure img {
	border-radius: var(--pm-radius);
}

.pm-prose figcaption {
	font-size: 0.875rem;
	color: var(--pm-muted);
	margin-top: 0.5rem;
}

.pm-prose blockquote {
	margin: 2em 0;
	padding-left: 20px;
	border-left: 3px solid var(--pm-brand);
	font-family: var(--pm-font-serif);
	font-size: 1.25rem;
}

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

.pm-report-cta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	margin: 32px 0;
	padding: 24px;
	border-radius: var(--pm-radius);
	background: var(--pm-grey);
}

.pm-share {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px;
}

.pm-share__label {
	font-weight: 600;
}

/*
 * Social icons. The export renders these as inline SVGs sized to 1.5rem (24px)
 * with fill="currentColor", turning --swatch--brand (amber) on hover.
 */
.pm-social {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px;
}

.pm-social__link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 1.5rem; /* .social_share_link { width: 1.5rem } */
	height: 1.5rem;
	color: var(--pm-ink);
	text-decoration: none;
}

.pm-social__link:hover,
.pm-social__link:focus-visible {
	color: var(--pm-brand);
}

.pm-social-icon,
.pm-social__link svg {
	width: 100%;
	height: 100%;
	display: block;
	fill: currentColor;
}

.pm-post__actions {
	margin-top: 8px;
}

.pm-post__actions:empty {
	display: none;
}

.pm-post__footer {
	margin-top: 40px;
}

.pm-post__readtime {
	color: var(--pm-muted);
}

.pm-share .pm-btn {
	padding: 8px 16px;
	font-size: 0.875rem;
}

/* =========================================================================
   15. Footer — light grey, 112px top padding
   ========================================================================= */

.pm-footer {
	background: var(--pm-grey);
	color: var(--pm-ink);
	padding-top: 112px;
}

.pm-footer__grid {
	display: grid;
	grid-template-columns: repeat(12, minmax(0, 1fr));
	gap: var(--pm-gap);
}

.pm-footer__content {
	grid-column: span 5;
}

.pm-footer__social {
	grid-column: span 3;
}

.pm-footer__links {
	grid-column: span 4;
}

.pm-footer__partners {
	grid-column: 1 / -1;
}

.pm-footer__logo {
	display: block;
	width: 250px;
	max-width: 100%;
	line-height: 0;
}

.pm-footer__logo img {
	width: 100%;
	height: auto;
}

.pm-footer__intro {
	margin: 24px 0 0;
}

.pm-footer__title {
	font-size: 1.25rem;
	font-weight: 600;
	line-height: 1.4;
	margin: 0 0 16px;
}

.pm-footer ul {
	margin: 0;
	padding: 0;
	list-style: none;
	display: grid;
	gap: 8px;
}

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

.pm-footer a:hover {
	color: var(--pm-brand);
}

.pm-footer .pm-partners {
	flex-direction: row;
	align-items: center;
	gap: 48px;
}

.pm-footer__bottom {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	margin-top: 24px;
	padding-block: 14px;
	border-top: 1px solid var(--pm-border);
	font-size: 0.9375rem;
}

.pm-footer__bottom p {
	margin: 0;
}

@media (max-width: 1024px) {
	.pm-footer__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
	.pm-footer__content,
	.pm-footer__links,
	.pm-footer__partners {
		grid-column: span 1;
	}
}

@media (max-width: 640px) {
	.pm-footer__grid {
		grid-template-columns: minmax(0, 1fr);
	}
}

/* =========================================================================
   16. Notice / FAQ / values (About)
   ========================================================================= */

/*
 * About page illustration (.hero_visual_wrap). The export renders these at
 * 487x487 and 300x210 inside their 649px columns.
 */
.pm-about-visual {
	display: flex;
	align-items: center;
	justify-content: center;
}

.pm-about-visual img {
	width: 100%;
	max-width: 487px;
	height: auto;
}

.pm-about-visual--small img {
	max-width: 300px;
}

/* Intro column: headline, intro copy, button */
.pm-about-intro {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 24px;
}

.pm-about-intro .pm-body {
	max-width: 573px;
}

/*
 * Second-line highlighter (.title_highlight_wrap + .title_highlight).
 * The export layers a 378x67 stroke behind the second line of the headline.
 */
.pm-h1-line {
	position: relative;
	display: inline-block;
}

.pm-h1-line::after {
	content: "";
	position: absolute;
	left: -2%;
	right: -2%;
	top: 50%;
	transform: translateY(-50%);
	height: 1.35em;
	background: url("assets/images/about-highlight.svg") center / 100% 100% no-repeat;
	z-index: -1;
}

/* Section eyebrow + heading pair used above the numbered list */
.pm-overline-block {
	display: flex;
	flex-direction: column;
	gap: 12px;
	align-items: flex-start;
}

/*
 * Custodianship notice. The export renders this as plain copy beside the
 * illustration — no card, no background, no border.
 */
.pm-notice {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.pm-notice p {
	margin: 0 0 0.75em;
}

.pm-notice p:last-child {
	margin-bottom: 0;
}

.pm-value {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 12px;
	/*
	 * As with .pm-card, the export's .card_wrap renders 313px inside a 308.25px
	 * column (x=46 vs the grid's x=48), overflowing the track by ~4px.
	 */
	width: calc(100% + 4px);
	margin-inline: -2px;
}

.pm-value__icon {
	width: 120px;
	height: 120px;
}

.pm-value__icon img {
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.pm-value__title {
	font-size: 1.25rem;
	font-weight: 600;
	line-height: 1.4;
	margin: 0;
}

.pm-value__text {
	margin: 0;
}

.pm-step {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.pm-step__num {
	font-family: var(--pm-font-serif);
	font-size: 2.5rem;
	font-weight: 500;
	line-height: 1;
	color: var(--pm-brand);
}

/*
 * About: the mission block sits on a grey band (.intro_wrap has
 * background-color: --swatch--light-secondary in the export).
 */
.pm-section--intro {
	background: var(--pm-grey);
}

/*
 * FAQs run the FULL container width (.faq_wrap is 1329px, not a narrow
 * measure) and the section is white, not grey.
 */
.pm-faq {
	display: grid;
	gap: 8px;
}

.pm-faq-list {
	display: grid;
	gap: 8px;
}

.pm-faq details {
	padding: 16px 32px;
	border: 2px solid var(--pm-grey);
	border-radius: var(--pm-radius);
	background: #ffffff;
}

.pm-faq summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	cursor: pointer;
	font-size: 1.25rem;
	font-weight: 600;
	line-height: 1.4;
	list-style: none;
}

.pm-faq summary::-webkit-details-marker {
	display: none;
}

.pm-faq summary::after {
	content: "+";
	color: var(--pm-brand);
	font-size: 1.5rem;
	line-height: 1;
}

.pm-faq details[open] summary::after {
	content: "\2212";
}

.pm-faq details > p {
	margin: 12px 0 0;
}

/* =========================================================================
   17. Focus / motion
   ========================================================================= */

:where(a, button, summary, input):focus-visible {
	outline: 3px solid var(--pm-brand);
	outline-offset: 2px;
}

.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
	white-space: nowrap;
}

@media (prefers-reduced-motion: reduce) {
	* {
		animation-duration: 0.01ms !important;
		transition-duration: 0.01ms !important;
	}
}

/* =========================================================================
   18. Responsive
   ========================================================================= */

@media (max-width: 1100px) {
	:root {
		--pm-gutter: 32px;
	}
}

@media (max-width: 900px) {
	.pm-hero__portrait { transform: scale(0.75); }
	.pm-hero__portrait--l3,
	.pm-hero__portrait--l4,
	.pm-hero__portrait--r3,
	.pm-hero__portrait--r4 { display: none; }

	.pm-announce {
		flex-direction: column;
		align-items: flex-start;
		padding: 32px;
	}

	.pm-announce__content {
		flex-direction: column;
		align-items: flex-start;
		gap: 16px;
	}
}

@media (max-width: 781px) {
	:root {
		--pm-gutter: 24px;
	}

	.pm-nav ul { display: none; }

	.pm-nav__toggle { display: inline-block; }

	.pm-nav.is-open ul {
		display: flex;
		flex-direction: column;
		align-items: flex-start;
		gap: 16px;
		width: 100%;
		padding-top: 16px;
	}

	.pm-hero__portrait { transform: scale(0.6); }
	.pm-hero__portrait--l1,
	.pm-hero__portrait--r1 { display: none; }
}
