/*
Theme Name: RiskWise Academy
Theme URI: https://riskwise.academy
Author: RiskWise Academy
Description: Blog theme matching the RiskWise Academy learning platform: navy and gold palette, Inter and DM Serif Display type, and the same header, footer and languages (English, Română, Español, Türkçe, العربية with RTL).
Version: 1.0.0
Requires at least: 6.5
Tested up to: 6.8
Requires PHP: 8.1
License: Proprietary
Text Domain: riskwise
Tags: blog, rtl-language-support, translation-ready, custom-menu, featured-images
*/

/* Tokens mirror apps/web/src/app/globals.css. Keep the two in sync. */
:root {
	--background: #f7f8fa;
	--foreground: #172033;
	--navy: #101c36;
	--deep-blue: #182a4a;
	--gold: #f5b63d;
	--primary-text: #172033;
	--secondary-text: #667085;
	--border: #e4e7ec;
	--success: #2e8b6d;
	--error: #d64545;
	--font-sans: "Inter", Arial, Helvetica, sans-serif;
	--font-display: "DM Serif Display", Georgia, serif;
	--container: 72rem;
	--gutter: 1.5rem;
	--radius: 0.75rem;
	--shadow-sm: 0 1px 2px rgb(16 24 40 / 0.06);
	--shadow-md: 0 4px 12px rgb(16 24 40 / 0.1);
	color-scheme: light;
}

/* Arabic uses the same faces as the app (globals.css swaps them for lang="ar"). */
:root:lang(ar) {
	--font-sans: "IBM Plex Sans Arabic", "Inter", Arial, sans-serif;
	--font-display: "Noto Naskh Arabic", "DM Serif Display", serif;
}

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

html {
	-webkit-text-size-adjust: 100%;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

body {
	margin: 0;
	min-height: 100vh;
	display: flex;
	flex-direction: column;
	background: var(--background);
	color: var(--foreground);
	font-family: var(--font-sans);
	font-size: 1rem;
	line-height: 1.5;
}

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

a {
	color: inherit;
	text-decoration: none;
}

button {
	font: inherit;
	cursor: pointer;
}

:focus-visible {
	outline: 2px solid var(--gold);
	outline-offset: 2px;
}

input:where(:not([type="checkbox"], [type="radio"], [type="submit"], [type="button"])),
textarea,
select {
	font: inherit;
	background-color: #fff;
	color: var(--primary-text);
	border: 1px solid var(--border);
	border-radius: 0.5rem;
	padding: 0.625rem 0.875rem;
	width: 100%;
}

input::placeholder,
textarea::placeholder {
	color: var(--secondary-text);
	opacity: 1;
}

input:where(:not([type="checkbox"], [type="radio"], [type="submit"], [type="button"])):focus,
textarea:focus,
select:focus {
	outline: none;
	border-color: var(--navy);
	box-shadow: 0 0 0 3px rgb(245 182 61 / 0.45);
}

input[type="checkbox"],
input[type="radio"] {
	accent-color: var(--navy);
}

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

.skip-link:focus {
	position: fixed;
	inset-block-start: 0.5rem;
	inset-inline-start: 0.5rem;
	z-index: 100;
	width: auto;
	height: auto;
	clip: auto;
	margin: 0;
	padding: 0.75rem 1rem;
	border-radius: 0.5rem;
	background: var(--gold);
	color: var(--navy);
	font-weight: 600;
}

.container {
	width: 100%;
	max-width: calc(var(--container) + 2 * var(--gutter));
	margin-inline: auto;
	padding-inline: var(--gutter);
}

.site-main {
	flex: 1;
}

.icon {
	width: 1rem;
	height: 1rem;
	flex-shrink: 0;
}

/* Arrows point the reading direction. */
[dir="rtl"] .icon--arrow {
	transform: scaleX(-1);
}

.eyebrow {
	margin: 0;
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: var(--secondary-text);
}

:lang(ar) .eyebrow {
	letter-spacing: 0;
}

/* ---------- Buttons ---------- */
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	border-radius: 0.5rem;
	padding: 0.75rem 1.5rem;
	font-size: 0.875rem;
	font-weight: 600;
	line-height: 1.25rem;
	border: 1px solid transparent;
	transition: filter 0.15s, background-color 0.15s, border-color 0.15s;
	white-space: nowrap;
}

.btn--primary {
	background: var(--gold);
	color: var(--navy);
	box-shadow: var(--shadow-sm);
}

.btn--primary:hover {
	filter: brightness(0.95);
}

.btn--outline-light {
	border-color: rgb(255 255 255 / 0.4);
	color: #fff;
}

.btn--outline-light:hover {
	background: rgb(255 255 255 / 0.1);
}

.btn--outline-dark {
	border-color: rgb(16 28 54 / 0.25);
	background: #fff;
	color: var(--navy);
}

.btn--outline-dark:hover {
	border-color: rgb(16 28 54 / 0.6);
}

.btn--sm {
	padding: 0.5rem 1rem;
}

/* ---------- Header ---------- */
.site-header {
	position: sticky;
	inset-block-start: 0;
	z-index: 40;
	border-bottom: 1px solid rgb(255 255 255 / 0.1);
	background: rgb(16 28 54 / 0.95);
	-webkit-backdrop-filter: blur(8px);
	backdrop-filter: blur(8px);
	color: #fff;
}

.admin-bar .site-header {
	inset-block-start: 32px;
}

@media (max-width: 782px) {
	.admin-bar .site-header {
		inset-block-start: 0;
	}
}

.site-header__bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding-block: 0.875rem;
}

.brand-lockup {
	display: flex;
	align-items: center;
	gap: 0.625rem;
	flex-shrink: 0;
}

.brand-lockup__mark {
	height: 2rem;
	width: auto;
}

.brand-lockup__text {
	line-height: 1;
}

.brand-lockup__name {
	display: block;
	white-space: nowrap;
	font-family: "DM Serif Display", Georgia, serif;
	font-size: 17px;
	letter-spacing: 0.025em;
	text-transform: uppercase;
	color: #fff;
}

.brand-lockup__name span {
	color: var(--gold);
}

.brand-lockup__sub {
	display: block;
	margin-top: 0.25rem;
	font-family: "Inter", Arial, sans-serif;
	font-size: 9px;
	font-weight: 500;
	letter-spacing: 0.42em;
	text-transform: uppercase;
	color: rgb(255 255 255 / 0.7);
}

.main-nav {
	display: none;
	align-items: center;
	gap: 2rem;
	font-size: 0.875rem;
	font-weight: 500;
	color: rgb(255 255 255 / 0.8);
}

.main-nav a,
.mobile-nav a {
	position: relative;
	padding-block: 0.25rem;
	transition: color 0.15s;
}

.main-nav a:hover,
.mobile-nav a:hover {
	color: #fff;
}

.main-nav a[aria-current],
.mobile-nav a[aria-current] {
	color: var(--gold);
}

.main-nav a[aria-current]::after,
.mobile-nav a[aria-current]::after {
	content: "";
	position: absolute;
	inset-inline: 0;
	bottom: -0.25rem;
	height: 2px;
	background: var(--gold);
}

.site-header__actions {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	white-space: nowrap;
	font-size: 0.875rem;
}

.site-header__login {
	display: none;
	font-weight: 500;
	color: rgb(255 255 255 / 0.8);
}

.site-header__login:hover {
	color: #fff;
}

.mobile-nav {
	display: flex;
	justify-content: center;
	flex-wrap: wrap;
	gap: 0.5rem 1.5rem;
	border-top: 1px solid rgb(255 255 255 / 0.1);
	padding: 0.5rem var(--gutter);
	font-size: 0.75rem;
	font-weight: 500;
	color: rgb(255 255 255 / 0.8);
}

@media (min-width: 640px) {
	.site-header__actions {
		gap: 1rem;
	}

	.site-header__login {
		display: inline;
	}
}

@media (min-width: 900px) {
	.main-nav {
		display: flex;
	}

	.mobile-nav {
		display: none;
	}
}

/* ---------- Language switcher ---------- */
.lang-switcher {
	position: relative;
}

.lang-switcher > summary {
	list-style: none;
	display: flex;
	align-items: center;
	gap: 0.5rem;
	border: 1px solid rgb(255 255 255 / 0.25);
	border-radius: 0.5rem;
	padding: 0.375rem 0.75rem;
	font-size: 0.875rem;
	font-weight: 500;
	color: rgb(255 255 255 / 0.9);
	cursor: pointer;
	transition: border-color 0.15s, color 0.15s;
}

.lang-switcher > summary::-webkit-details-marker {
	display: none;
}

.lang-switcher > summary:hover {
	border-color: rgb(255 255 255 / 0.5);
	color: #fff;
}

.lang-switcher__chevron {
	width: 1rem;
	height: 1rem;
	color: rgb(255 255 255 / 0.6);
	transition: transform 0.15s;
}

.lang-switcher[open] .lang-switcher__chevron {
	transform: rotate(180deg);
}

.lang-switcher__list {
	position: absolute;
	inset-block-start: 100%;
	inset-inline-end: 0;
	z-index: 50;
	min-width: 11rem;
	margin: 0.5rem 0 0;
	padding: 0.375rem 0;
	list-style: none;
	overflow: hidden;
	border-radius: 0.75rem;
	background: #fff;
	color: var(--primary-text);
	font-size: 0.875rem;
	box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1), 0 0 0 1px rgb(16 28 54 / 0.1);
}

.lang-switcher__list a {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	padding: 0.5rem 0.875rem;
}

.lang-switcher__list a:hover,
.lang-switcher__list a:focus-visible {
	background: rgb(16 28 54 / 0.05);
	outline: none;
}

.lang-switcher__list a[aria-current] {
	font-weight: 600;
	color: var(--navy);
}

.lang-switcher__list .lang-switcher__name {
	flex: 1;
}

.lang-switcher__check {
	width: 1rem;
	height: 1rem;
	color: var(--gold);
}

.flag {
	width: 20px;
	height: 15px;
	flex-shrink: 0;
	border-radius: 2px;
	object-fit: cover;
	box-shadow: 0 0 0 1px rgb(0 0 0 / 0.12);
}

/* On small screens only the flag shows in the button. */
@media (max-width: 479px) {
	.lang-switcher > summary .lang-switcher__name {
		display: none;
	}
}

/* ---------- Blog hero ---------- */
.blog-hero {
	position: relative;
	overflow: hidden;
	background: linear-gradient(to right, var(--navy), var(--navy), var(--deep-blue));
	color: #fff;
}

.blog-hero__watermark {
	position: absolute;
	inset-block-start: -2rem;
	inset-inline-end: -2rem;
	width: 16rem;
	height: auto;
	opacity: 0.08;
	pointer-events: none;
}

.blog-hero__inner {
	position: relative;
	padding-block: 3.5rem 3rem;
}

.blog-hero .eyebrow {
	color: rgb(255 255 255 / 0.7);
}

.blog-hero__title {
	margin: 1rem 0 0;
	max-width: 42rem;
	font-family: var(--font-display);
	font-weight: 400;
	font-size: 2.25rem;
	line-height: 1.1;
}

.blog-hero__title em,
.blog-hero__title .accent {
	font-style: normal;
	color: var(--gold);
}

.blog-hero__lead {
	margin: 1.25rem 0 0;
	max-width: 36rem;
	color: rgb(255 255 255 / 0.8);
	line-height: 1.65;
}

@media (min-width: 640px) {
	.blog-hero__title {
		font-size: 3rem;
	}
}

@media (min-width: 900px) {
	.blog-hero__inner {
		padding-block: 5rem 4rem;
	}
}

/* ---------- Filters (category pills + search) ---------- */
.blog-toolbar {
	display: flex;
	flex-direction: column;
	gap: 1rem;
	padding-block: 2.5rem 0;
}

.pill-row {
	display: flex;
	gap: 0.75rem;
	overflow-x: auto;
	margin-inline: calc(-1 * var(--gutter));
	padding-inline: var(--gutter);
	padding-bottom: 0.25rem;
	scrollbar-width: none;
}

.pill-row::-webkit-scrollbar {
	display: none;
}

.pill {
	flex-shrink: 0;
	border-radius: 9999px;
	border: 1px solid var(--border);
	background: #fff;
	padding: 0.5rem 1.25rem;
	font-size: 0.875rem;
	font-weight: 500;
	color: var(--primary-text);
	transition: border-color 0.15s;
}

.pill:hover {
	border-color: rgb(16 28 54 / 0.4);
}

.pill[aria-current] {
	border-color: var(--navy);
	background: var(--navy);
	color: #fff;
}

.search-form {
	position: relative;
	width: 100%;
}

.search-form .icon {
	position: absolute;
	inset-inline-start: 1rem;
	top: 50%;
	transform: translateY(-50%);
	color: var(--secondary-text);
	pointer-events: none;
}

.search-form input[type="search"] {
	border-radius: 9999px;
	padding-block: 0.625rem;
	padding-inline: 2.5rem 1rem;
	font-size: 0.875rem;
}

@media (min-width: 1024px) {
	.blog-toolbar {
		flex-direction: row;
		align-items: center;
		justify-content: space-between;
	}

	.pill-row {
		flex-wrap: wrap;
		margin-inline: 0;
		padding-inline: 0;
	}

	.blog-toolbar .search-form {
		width: 18rem;
	}
}

/* ---------- Post grid & cards ---------- */
.blog-list {
	padding-block: 2.5rem 4rem;
}

.post-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 1.5rem;
}

@media (min-width: 640px) {
	.post-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (min-width: 1024px) {
	.post-grid {
		grid-template-columns: repeat(3, 1fr);
	}
}

.post-card {
	display: flex;
	flex-direction: column;
	overflow: hidden;
	border-radius: var(--radius);
	border: 1px solid var(--border);
	background: #fff;
	box-shadow: var(--shadow-sm);
	transition: box-shadow 0.2s;
}

.post-card:hover {
	box-shadow: var(--shadow-md);
}

.post-card__media {
	position: relative;
	display: block;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	background: linear-gradient(to bottom right, var(--navy), var(--deep-blue));
}

.post-card__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.5s;
}

.post-card:hover .post-card__media img {
	transform: scale(1.03);
}

.post-card__placeholder {
	display: flex;
	height: 100%;
	align-items: center;
	justify-content: center;
}

.post-card__placeholder img {
	width: 3rem;
	height: auto;
	opacity: 0.8;
	object-fit: contain;
}

.post-card:hover .post-card__placeholder img {
	transform: none;
}

.badge {
	display: inline-block;
	border-radius: 0.375rem;
	padding: 0.25rem 0.625rem;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	background: var(--gold);
	color: var(--navy);
}

.post-card__media .badge {
	position: absolute;
	inset-block-start: 0.75rem;
	inset-inline-start: 0.75rem;
}

.post-card__body {
	display: flex;
	flex: 1;
	flex-direction: column;
	padding: 1.25rem;
}

.post-card__title {
	margin: 0;
	font-family: var(--font-display);
	font-weight: 400;
	font-size: 1.25rem;
	line-height: 1.35;
	color: var(--navy);
}

.post-card__title a:hover {
	text-decoration: underline;
}

.post-card__excerpt {
	margin: 0.5rem 0 0;
	font-size: 0.875rem;
	line-height: 1.65;
	color: var(--secondary-text);
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.post-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.5rem 1.25rem;
	margin: 0;
	padding: 0;
	list-style: none;
	font-size: 0.75rem;
	color: var(--secondary-text);
}

.post-meta li {
	display: flex;
	align-items: center;
	gap: 0.375rem;
}

.post-card .post-meta {
	margin-top: auto;
	padding-top: 1.25rem;
}

.post-card__more {
	display: inline-flex;
	align-items: center;
	gap: 0.375rem;
	margin-top: 1rem;
	font-size: 0.875rem;
	font-weight: 600;
	color: var(--navy);
}

.post-card__more:hover {
	text-decoration: underline;
}

/* The first post on page 1 gets a wide, featured layout. */
@media (min-width: 1024px) {
	.post-card--featured {
		grid-column: 1 / -1;
		flex-direction: row;
	}

	.post-card--featured .post-card__media {
		flex: 0 0 58%;
		aspect-ratio: auto;
		min-height: 22rem;
	}

	.post-card--featured .post-card__body {
		justify-content: center;
		padding: 2.5rem;
	}

	.post-card--featured .post-card__title {
		margin-top: 0.75rem;
		font-size: 2rem;
		line-height: 1.2;
	}

	.post-card--featured .post-card__excerpt {
		font-size: 1rem;
		-webkit-line-clamp: 4;
	}

	.post-card--featured .post-meta {
		margin-top: 1.5rem;
		padding-top: 0;
	}
}

.empty-state {
	border-radius: var(--radius);
	border: 1px dashed var(--border);
	background: #fff;
	padding: 2.5rem 1.5rem;
	text-align: center;
	color: var(--secondary-text);
}

/* ---------- Pagination ---------- */
.pagination {
	margin-top: 3rem;
}

.pagination .nav-links {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0.5rem;
}

.pagination .page-numbers {
	display: inline-flex;
	min-width: 2.5rem;
	height: 2.5rem;
	align-items: center;
	justify-content: center;
	gap: 0.375rem;
	border-radius: 0.5rem;
	border: 1px solid var(--border);
	background: #fff;
	padding-inline: 0.75rem;
	font-size: 0.875rem;
	font-weight: 500;
	color: var(--primary-text);
}

.pagination a.page-numbers:hover {
	border-color: rgb(16 28 54 / 0.4);
}

.pagination .page-numbers.current {
	border-color: var(--navy);
	background: var(--navy);
	color: #fff;
}

.pagination .page-numbers.dots {
	border-color: transparent;
	background: transparent;
}

/* ---------- CTA banner (same as the courses page "Not sure where to start?") ---------- */
.cta-banner {
	position: relative;
	overflow: hidden;
	margin-top: 3.5rem;
	border-radius: 1rem;
	background: linear-gradient(to right, var(--navy), var(--navy), var(--deep-blue));
	padding: 2.5rem 2rem;
	color: #fff;
}

[dir="rtl"] .cta-banner,
[dir="rtl"] .blog-hero {
	background: linear-gradient(to left, var(--navy), var(--navy), var(--deep-blue));
}

.cta-banner__watermark {
	position: absolute;
	inset-block-start: -2rem;
	inset-inline-end: -2rem;
	width: 12rem;
	height: auto;
	opacity: 0.1;
	pointer-events: none;
}

.cta-banner__inner {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 1.5rem;
}

.cta-banner__title {
	margin: 0;
	font-family: var(--font-display);
	font-weight: 400;
	font-size: 1.875rem;
	line-height: 1.2;
}

.cta-banner__text {
	margin: 0.75rem 0 0;
	max-width: 36rem;
	color: rgb(255 255 255 / 0.8);
}

@media (min-width: 640px) {
	.cta-banner {
		padding-inline: 3rem;
	}
}

@media (min-width: 900px) {
	.cta-banner__inner {
		flex-direction: row;
		align-items: center;
		justify-content: space-between;
	}
}

/* ---------- Single post ---------- */
.post-header {
	background: var(--navy);
	color: #fff;
}

.post-header__inner {
	max-width: calc(48rem + 2 * var(--gutter));
	padding-block: 3rem 3.5rem;
}

.breadcrumbs {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.5rem;
	margin: 0 0 1.5rem;
	padding: 0;
	list-style: none;
	font-size: 0.8125rem;
	color: rgb(255 255 255 / 0.6);
}

.breadcrumbs a:hover {
	color: #fff;
}

.breadcrumbs li + li::before {
	content: "/";
	margin-inline-end: 0.5rem;
	color: rgb(255 255 255 / 0.35);
}

.post-header__cats {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
}

.post-header__title {
	margin: 1rem 0 0;
	font-family: var(--font-display);
	font-weight: 400;
	font-size: 2.25rem;
	line-height: 1.12;
}

.post-header__lead {
	margin: 1.25rem 0 0;
	font-size: 1.125rem;
	line-height: 1.6;
	color: rgb(255 255 255 / 0.8);
}

.post-header .post-meta {
	margin-top: 1.75rem;
	font-size: 0.875rem;
	color: rgb(255 255 255 / 0.7);
}

.post-header .post-meta .icon {
	color: var(--gold);
}

@media (min-width: 640px) {
	.post-header__title {
		font-size: 3rem;
	}
}

.post-cover {
	max-width: calc(64rem + 2 * var(--gutter));
	margin-top: 2.5rem;
}

.post-cover img {
	width: 100%;
	border-radius: 1rem;
	box-shadow: var(--shadow-md);
}

.post-cover figcaption {
	margin-top: 0.75rem;
	text-align: center;
	font-size: 0.8125rem;
	color: var(--secondary-text);
}

.post-body {
	max-width: calc(48rem + 2 * var(--gutter));
	padding-block: 3rem 4rem;
}

/* ---------- Article typography ---------- */
.prose {
	color: var(--primary-text);
	font-size: 1.0625rem;
	line-height: 1.8;
}

/* Spacing between blocks comes only from the rules below, never from element defaults. */
.prose > * {
	margin-block: 0;
}

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

.prose h2,
.prose h3,
.prose h4 {
	font-family: var(--font-display);
	font-weight: 400;
	color: var(--navy);
	line-height: 1.25;
}

.prose > h2 {
	margin-top: 2em;
	font-size: 1.875rem;
}

.prose > h3 {
	margin-top: 1.75em;
	font-size: 1.5rem;
}

.prose > h4 {
	margin-top: 1.5em;
	font-size: 1.25rem;
}

.prose > :first-child {
	margin-top: 0;
}

/* A heading sits closer to the block it introduces. */
.prose > :is(h2, h3, h4) + * {
	margin-top: 0.75em;
}

.prose a {
	color: var(--navy);
	font-weight: 500;
	text-decoration: underline;
	text-decoration-color: var(--gold);
	text-decoration-thickness: 2px;
	text-underline-offset: 3px;
}

.prose a:hover {
	text-decoration-color: var(--navy);
}

.prose strong {
	font-weight: 600;
	color: var(--foreground);
}

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

.prose li + li {
	margin-top: 0.5em;
}

.prose li::marker {
	color: var(--gold);
	font-weight: 600;
}

.prose blockquote {
	margin-inline: 0;
	border-inline-start: 4px solid var(--gold);
	border-radius: 0 0.5rem 0.5rem 0;
	background: #fff;
	padding: 1.25rem 1.5rem;
	font-family: var(--font-display);
	font-size: 1.25rem;
	line-height: 1.5;
	color: var(--navy);
}

[dir="rtl"] .prose blockquote {
	border-radius: 0.5rem 0 0 0.5rem;
}

.prose blockquote p {
	margin: 0;
}

.prose blockquote cite {
	display: block;
	margin-top: 0.75rem;
	font-family: var(--font-sans);
	font-size: 0.875rem;
	font-style: normal;
	color: var(--secondary-text);
}

.prose hr {
	border: 0;
	border-top: 1px solid var(--border);
}

.prose > hr,
.prose > hr + * {
	margin-top: 2.5em;
}

.prose img,
.prose figure img {
	border-radius: 0.75rem;
}

.prose figure {
	margin-inline: 0;
}

.prose figcaption,
.prose .wp-element-caption {
	margin-top: 0.5rem;
	text-align: center;
	font-size: 0.8125rem;
	color: var(--secondary-text);
}

.prose code {
	border-radius: 0.25rem;
	background: rgb(16 28 54 / 0.06);
	padding: 0.125em 0.375em;
	font-size: 0.9em;
}

.prose pre {
	overflow-x: auto;
	border-radius: 0.75rem;
	background: var(--navy);
	padding: 1.25rem;
	color: #f7f8fa;
	font-size: 0.875rem;
	line-height: 1.6;
	direction: ltr;
}

.prose pre code {
	background: none;
	padding: 0;
}

.prose table {
	width: 100%;
	border-collapse: collapse;
	font-size: 0.9375rem;
}

.prose .wp-block-table {
	overflow-x: auto;
}

.prose th,
.prose td {
	border-bottom: 1px solid var(--border);
	padding: 0.75rem;
	text-align: start;
}

.prose th {
	background: var(--navy);
	color: #fff;
	font-weight: 600;
}

.prose tr:nth-child(even) td {
	background: #fff;
}

/* Core block alignment and colours editors can pick in Gutenberg. */
.prose .alignwide,
.prose .alignfull {
	margin-inline: calc(-1 * min(8rem, (100vw - 48rem) / 2));
	max-width: none;
}

@media (max-width: 1100px) {
	.prose .alignwide,
	.prose .alignfull {
		margin-inline: 0;
	}
}

.prose .aligncenter {
	margin-inline: auto;
}

.prose .alignleft {
	float: left;
	margin-inline-end: 1.5rem;
	max-width: 50%;
}

.prose .alignright {
	float: right;
	margin-inline-start: 1.5rem;
	max-width: 50%;
}

.prose .wp-block-button__link {
	display: inline-flex;
	border-radius: 0.5rem;
	background: var(--gold);
	padding: 0.75rem 1.5rem;
	font-size: 0.875rem;
	font-weight: 600;
	color: var(--navy);
	text-decoration: none;
}

.prose .is-style-outline .wp-block-button__link {
	border: 1px solid rgb(16 28 54 / 0.25);
	background: #fff;
}

.has-navy-color { color: var(--navy); }
.has-deep-blue-color { color: var(--deep-blue); }
.has-gold-color { color: var(--gold); }
.has-charcoal-color { color: var(--primary-text); }
.has-slate-color { color: var(--secondary-text); }
.has-off-white-color { color: var(--background); }
.has-white-color { color: #fff; }
.has-navy-background-color { background-color: var(--navy); }
.has-deep-blue-background-color { background-color: var(--deep-blue); }
.has-gold-background-color { background-color: var(--gold); }
.has-charcoal-background-color { background-color: var(--primary-text); }
.has-slate-background-color { background-color: var(--secondary-text); }
.has-off-white-background-color { background-color: var(--background); }
.has-white-background-color { background-color: #fff; }

.prose .has-background {
	border-radius: 0.75rem;
	padding: 1.5rem;
}

/* ---------- Post footer: tags, disclaimer, author, related ---------- */
.post-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin-top: 2.5rem;
}

.post-tags a {
	border-radius: 9999px;
	border: 1px solid var(--border);
	background: #fff;
	padding: 0.25rem 0.875rem;
	font-size: 0.8125rem;
	color: var(--primary-text);
}

.post-tags a:hover {
	border-color: rgb(16 28 54 / 0.4);
}

.disclaimer {
	display: flex;
	gap: 0.875rem;
	margin-top: 2.5rem;
	border-radius: 0.75rem;
	border: 1px solid rgb(245 182 61 / 0.5);
	background: rgb(245 182 61 / 0.1);
	padding: 1rem 1.25rem;
	font-size: 0.875rem;
	line-height: 1.6;
	color: var(--primary-text);
}

.disclaimer .icon {
	width: 1.25rem;
	height: 1.25rem;
	margin-top: 0.125rem;
	color: #b7801b;
}

.disclaimer p {
	margin: 0;
}

.disclaimer a {
	font-weight: 600;
	text-decoration: underline;
}

.author-box {
	display: flex;
	gap: 1rem;
	align-items: center;
	margin-top: 2.5rem;
	border-radius: 0.75rem;
	border: 1px solid var(--border);
	background: #fff;
	padding: 1.25rem;
}

.author-box img {
	width: 3.5rem;
	height: 3.5rem;
	border-radius: 9999px;
}

.author-box__name {
	margin: 0;
	font-weight: 600;
	color: var(--primary-text);
}

.author-box__bio {
	margin: 0.25rem 0 0;
	font-size: 0.875rem;
	color: var(--secondary-text);
}

.post-nav {
	display: grid;
	gap: 1rem;
	margin-top: 2.5rem;
}

@media (min-width: 640px) {
	.post-nav {
		grid-template-columns: 1fr 1fr;
	}
}

.post-nav a {
	display: block;
	border-radius: 0.75rem;
	border: 1px solid var(--border);
	background: #fff;
	padding: 1rem 1.25rem;
	transition: border-color 0.15s;
}

.post-nav a:hover {
	border-color: rgb(16 28 54 / 0.4);
}

.post-nav__next {
	text-align: end;
}

.post-nav__label {
	display: block;
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--secondary-text);
}

.post-nav__title {
	display: block;
	margin-top: 0.25rem;
	font-family: var(--font-display);
	font-size: 1.125rem;
	color: var(--navy);
}

.related {
	border-top: 1px solid var(--border);
	background: #fff;
	padding-block: 3.5rem 4rem;
}

.section-title {
	margin: 0;
	font-family: var(--font-display);
	font-weight: 400;
	font-size: 1.875rem;
	color: var(--navy);
}

.section-head {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: 0.5rem 1.5rem;
	margin-bottom: 1.5rem;
}

.link-arrow {
	display: inline-flex;
	align-items: center;
	gap: 0.375rem;
	font-size: 0.875rem;
	font-weight: 600;
	color: var(--navy);
}

.link-arrow:hover {
	text-decoration: underline;
}

/* ---------- Comments ---------- */
.comments {
	margin-top: 3rem;
	border-top: 1px solid var(--border);
	padding-top: 2.5rem;
}

.comment-list {
	margin: 1.5rem 0 0;
	padding: 0;
	list-style: none;
}

.comment-list .children {
	list-style: none;
	padding-inline-start: 1.5rem;
}

.comment-body {
	margin-bottom: 1rem;
	border-radius: 0.75rem;
	border: 1px solid var(--border);
	background: #fff;
	padding: 1rem 1.25rem;
	font-size: 0.9375rem;
}

.comment-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.5rem 1rem;
	font-size: 0.8125rem;
	color: var(--secondary-text);
}

.comment-author {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	font-weight: 600;
	color: var(--primary-text);
}

.comment-author img {
	border-radius: 9999px;
}

.comment-author .says {
	display: none;
}

.reply a {
	font-size: 0.8125rem;
	font-weight: 600;
	color: var(--navy);
}

.comment-form {
	display: grid;
	gap: 1rem;
}

.comment-form label {
	display: block;
	margin-bottom: 0.375rem;
	font-size: 0.875rem;
	font-weight: 500;
}

.comment-form .form-submit input,
.search-submit,
.wp-block-search__button {
	border: 0;
	border-radius: 0.5rem;
	background: var(--gold);
	padding: 0.75rem 1.5rem;
	font-weight: 600;
	color: var(--navy);
	cursor: pointer;
}

.comment-form-cookies-consent {
	display: flex;
	gap: 0.5rem;
	align-items: flex-start;
	font-size: 0.875rem;
}

.comment-form-cookies-consent label {
	margin: 0;
	font-weight: 400;
}

/* ---------- Plain pages & 404 ---------- */
.page-body {
	max-width: calc(48rem + 2 * var(--gutter));
	padding-block: 3rem 4rem;
}

.not-found {
	padding-block: 5rem;
	text-align: center;
}

.not-found__code {
	margin: 0;
	font-family: var(--font-display);
	font-size: 5rem;
	line-height: 1;
	color: var(--gold);
}

.not-found__actions {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 1rem;
	margin-top: 2rem;
}

/* ---------- Footer ---------- */
.site-footer {
	background: var(--navy);
	padding-block: 2.5rem;
	font-size: 0.875rem;
	color: rgb(255 255 255 / 0.7);
}

.site-footer__top {
	display: flex;
	flex-direction: column;
	gap: 1.5rem;
}

.site-footer__logo img {
	height: 5rem;
	width: auto;
}

.site-footer__nav,
.site-footer__legal {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem 1.5rem;
}

.site-footer a:hover,
.site-footer button:hover {
	color: #fff;
}

.site-footer__legal {
	margin-top: 2rem;
	border-top: 1px solid rgb(255 255 255 / 0.1);
	padding-top: 1.5rem;
	font-size: 0.75rem;
}

.site-footer__legal a:hover {
	text-decoration: underline;
}

.site-footer__disclaimer {
	margin: 1.5rem 0 0;
	font-size: 0.75rem;
	color: rgb(255 255 255 / 0.5);
}

@media (min-width: 768px) {
	.site-footer__top {
		flex-direction: row;
		align-items: center;
		justify-content: space-between;
	}
}
