/* WordPress chrome, menus, inner pages and mobile navigation. */

.screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute;
	width: 1px;
	word-wrap: normal !important;
}

.screen-reader-text:focus,
.skip-link:focus {
	clip: auto;
	clip-path: none;
	height: auto;
	left: 16px;
	top: 16px;
	width: auto;
	z-index: 100000;
	padding: 12px 16px;
	background: var(--ink-2);
	color: white;
	font-size: 13px;
	font-weight: 700;
}

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

.site-header nav li {
	margin: 0;
}

.menu-toggle {
	display: none;
	width: 42px;
	height: 42px;
	padding: 0;
	border: 1px solid var(--line);
	background: white;
	cursor: pointer;
	align-items: center;
	justify-content: center;
}

.menu-toggle span[aria-hidden] {
	display: block;
	width: 18px;
	height: 2px;
	background: var(--ink-2);
	box-shadow: 0 -6px 0 var(--ink-2), 0 6px 0 var(--ink-2);
}

.site-header.is-nav-open .menu-toggle span[aria-hidden] {
	background: transparent;
	box-shadow: none;
	transform: rotate(45deg);
}

.site-header.is-nav-open .menu-toggle span[aria-hidden]::after {
	content: "";
	display: block;
	width: 18px;
	height: 2px;
	background: var(--ink-2);
	transform: rotate(-90deg);
}

body.home.admin-bar .site-header {
	top: 32px;
}

body:not(.home) .site-header {
	position: sticky;
	top: 0;
	z-index: 40;
}

body:not(.home).admin-bar .site-header {
	top: 32px;
}

.page-hero {
	position: relative;
	min-height: 320px;
	padding: 140px 0 72px;
	color: white;
	background: var(--ink);
	overflow: hidden;
}

.page-hero .hero-image {
	position: absolute;
	inset: 0;
	background: url("../images/hero-governance-v2.png") center/cover no-repeat;
	filter: saturate(0.88) contrast(1.02);
	opacity: 0.55;
}

.page-hero .hero-shade {
	position: absolute;
	inset: 0;
	background:
		linear-gradient(90deg, rgba(2, 31, 43, 0.88) 0%, rgba(3, 42, 56, 0.62) 48%, rgba(4, 56, 75, 0.28) 100%),
		linear-gradient(0deg, rgba(2, 31, 43, 0.42), transparent 58%);
}

.page-hero-content {
	position: relative;
	z-index: 2;
}

.page-hero-content h1 {
	margin: 0;
	max-width: 900px;
	font-size: clamp(42px, 5vw, 72px);
	line-height: 1.02;
	letter-spacing: -0.045em;
	font-weight: 360;
}

.page-body {
	padding: 88px 0 120px;
}

.entry-shell {
	max-width: 820px;
}

.entry-meta {
	margin: 0 0 28px;
	color: var(--muted);
	font-size: 12px;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.entry-content,
.comment-body {
	color: var(--ink);
	font-size: 17px;
	line-height: 1.75;
}

.entry-content > *:first-child {
	margin-top: 0;
}

.entry-content h2,
.entry-content h3,
.entry-content h4 {
	letter-spacing: -0.03em;
	line-height: 1.2;
}

.entry-content h2 {
	margin: 2.1em 0 0.7em;
	font-size: 28px;
	font-weight: 480;
}

.entry-content h3 {
	margin: 1.5em 0 0.5em;
	font-size: 20px;
	font-weight: 620;
}

.entry-content p {
	margin: 0 0 1.1em;
}

.entry-content ul,
.entry-content ol {
	margin: 0 0 1.4em;
	padding-left: 1.25em;
}

.entry-content li {
	margin: 0 0 0.45em;
}

.entry-content .privacy-updated {
	margin-bottom: 1.6em;
	color: var(--muted);
	font-size: 13px;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.entry-content a {
	color: var(--cyan-deep);
	border-bottom: 1px solid rgba(7, 148, 165, 0.35);
}

.entry-content img,
.entry-content figure,
.entry-content iframe,
.entry-content video {
	max-width: 100%;
	height: auto;
}

.entry-content .alignwide,
.entry-content .alignfull {
	max-width: 100%;
}

.posts-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 22px;
}

.posts-grid .insight-card {
	min-height: 280px;
}

.pagination {
	display: flex;
	justify-content: space-between;
	gap: 24px;
	margin-top: 48px;
	font-size: 12px;
	font-weight: 700;
}

.pagination a {
	border-bottom: 1px solid var(--ink);
	padding: 10px 0;
}

.empty-state {
	max-width: 640px;
	color: var(--muted);
	font-size: 16px;
	line-height: 1.7;
}

.footer-grid > div:last-child ul,
.footer-grid > div:last-child li {
	display: contents;
}

.cookie-consent[hidden] {
	display: none !important;
}

@media (max-width: 1050px) {
	.menu-toggle {
		display: inline-flex;
		margin-left: auto;
		margin-right: 12px;
	}

	.site-header.is-nav-open nav {
		display: flex;
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		z-index: 30;
		flex-direction: column;
		align-items: stretch;
		padding: 8px 32px 28px;
		background: rgba(255, 255, 255, 0.98);
		border-bottom: 1px solid var(--line);
		box-shadow: 0 18px 40px rgba(4, 56, 75, 0.1);
	}

	.site-header.is-nav-open nav ul {
		flex-direction: column;
		align-items: flex-start;
		gap: 16px;
	}

	.site-header.is-nav-open nav a {
		font-size: 15px;
	}

	.posts-grid {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 782px) {
	body.home.admin-bar .site-header,
	body:not(.home).admin-bar .site-header {
		top: 46px;
	}
}

@media (max-width: 720px) {
	.page-hero {
		min-height: 260px;
		padding: 110px 0 52px;
	}

	.page-body {
		padding: 56px 0 88px;
	}

	.site-header.is-nav-open nav {
		padding: 8px 17px 24px;
	}
}
