/* =========================================================================
 * Single article — single.php
 *
 * Structure: hero (navy) → cover image → 2-col body (main + sidebar) →
 * related reading → bottom CTA banner
 * ========================================================================= */

.pcc-article {
	--pcc-navy: #01225f;
	--pcc-navy-dark: #011745;
	--pcc-red: #fe4b45;
	--pcc-red-hover: #e73d38;
	--pcc-ink: #3a4049;
	--pcc-muted: #6b7280;
	--pcc-line: #e4e7ec;
	--pcc-surface: #f7f8fa;
	--pcc-radius: 12px;
	--pcc-radius-lg: 16px;
	--pcc-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
	--pcc-gutter: clamp(16px, 4vw, 40px);
	color: var(--pcc-ink);
	font-size: 16px;
	line-height: 1.6;
}

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

/* Hero -------------------------------------------------------------------- */

.pcc-article__hero {
	background: var(--pcc-navy);
	color: #fff;
	padding: 0;
}

.pcc-article__hero-inner {
	max-width: 1400px;
	margin: 0 auto;
	padding: clamp(28px, 4vw, 40px) var(--pcc-gutter) clamp(48px, 6vw, 72px);
	padding-left: 0px;
	padding-right: 0px;
}

.pcc-article__crumbs {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	margin-bottom: clamp(20px, 3vw, 32px);
	font-family: var(--pcc-mono);
	font-size: 12px;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.7);
}

.pcc-article__crumbs a {
	color: var(--pcc-red) !important;
	text-decoration: none;
}

.pcc-article__crumbs a:hover {
	text-decoration: underline;
	text-underline-offset: 3px;
}

.pcc-article__crumb-sep {
	color: rgba(255, 255, 255, 0.35);
}

.pcc-article__eyebrow {
	display: inline-flex;
	align-items: center;
	color: var(--pcc-red);
	font-family: var(--pcc-mono);
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	margin-bottom: 20px;
}

.pcc-article__title {
	color: #fff !important;
}

.pcc-article__title-accent {
	color: var(--pcc-red);
}

.pcc-article__byline {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 20px 40px;
}

.pcc-article__author-mini {
	display: flex;
	align-items: center;
	gap: 12px;
}

.pcc-article__avatar {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	background: var(--pcc-red);
	border-radius: 50%;
	color: #fff;
	font-family: var(--pcc-mono);
	font-weight: 700;
	font-size: 13px;
	letter-spacing: 0.05em;
	flex-shrink: 0;
}

.pcc-article__avatar--lg {
	width: 56px;
	height: 56px;
	font-size: 16px;
}

.pcc-article__author-name {
	display: block;
	color: #fff;
	font-size: 0.9375rem;
	font-weight: 700;
	line-height: 1.2;
}

.pcc-article__author-role {
	display: block;
	color: rgba(255, 255, 255, 0.6);
	font-family: var(--pcc-mono);
	font-size: 10px;
	font-weight: 500;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	margin-top: 2px;
}

.pcc-article__byline-meta {
	display: flex;
	gap: 24px;
	color: rgba(255, 255, 255, 0.75);
	font-family: var(--pcc-mono);
	font-size: 11px;
	font-weight: 500;
	letter-spacing: 0.14em;
	text-transform: uppercase;
}

/* Cover image ------------------------------------------------------------- */

.pcc-article__cover {
	max-width: var(--content-width, 1180px);
	margin: -40px auto 0;
	padding: 0 var(--pcc-gutter);
	position: relative;
	z-index: 1;
}

.pcc-article__cover img {
	display: block;
	width: 100%;
	height: auto;
	max-height: 600px;
	object-fit: cover;
	border-radius: var(--pcc-radius-lg);
	box-shadow: 0 20px 60px -30px rgba(1, 34, 95, 0.5);
}

/* Body layout ------------------------------------------------------------- */

.pcc-article__body {
	max-width: 1440px;
	margin: 0 auto;
	padding: clamp(48px, 6vw, 72px) var(--pcc-gutter);
	padding-left: 0;
	padding-right: 0;
}

.pcc-article__grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 300px;
	gap: clamp(24px, 4vw, 56px);
	align-items: start;
}

.pcc-article__main {
	min-width: 0;
}

/* Callout blocks ---------------------------------------------------------- */

.pcc-article__callout {
	margin: 24px 0 32px;
	padding: 22px 24px;
	border-radius: var(--pcc-radius);
}

.pcc-article__callout--short {
	background: var(--pcc-surface);
	border-left: 3px solid var(--pcc-red);
}

.pcc-article__callout--bottom {
	background: var(--pcc-navy);
	color: #fff;
	margin-top: 40px;
}

.pcc-article__callout--bottom .pcc-article__callout-body p {
	color: #fff !important;
}

.pcc-article__callout-kicker {
	display: block;
	margin-bottom: 8px;
	color: var(--pcc-navy);
	font-family: var(--pcc-mono);
	font-size: 10px;
	font-weight: 700;
	letter-spacing: 0.18em;
	text-transform: uppercase;
}

.pcc-article__callout-kicker--red {
	color: var(--pcc-red);
}

.pcc-article__callout-body {
	line-height: 1.6;
}

.pcc-article__callout-body p {
	margin: 0 0 10px;
	color: var(--pcc-ink);
}

.pcc-article__callout-body p:last-child {
	margin-bottom: 0;
}

/* Article content --------------------------------------------------------- */

.pcc-article__content {
	color: var(--pcc-ink);
	font-size: 1rem;
	line-height: 1.7;
}

.pcc-article__content>*:first-child {
	margin-top: 0;
}

.pcc-article__content>*:last-child {
	margin-bottom: 0;
}

.pcc-article__content p {
	margin: 0 0 18px;
}

.pcc-article__content h2 {
	margin: 40px 0 16px;
	color: var(--pcc-navy);
	font-size: clamp(1.375rem, 2vw, 1.625rem);
	font-weight: 700;
	letter-spacing: -0.015em;
	line-height: 1.25;
	scroll-margin-top: 100px;
}

.pcc-article__content h3 {
	margin: 32px 0 12px;
	color: var(--pcc-navy);
	font-size: 1.1875rem;
	font-weight: 700;
	line-height: 1.3;
}

.pcc-article__content h4 {
	margin: 24px 0 10px;
	color: var(--pcc-navy);
	font-size: 1rem;
	font-weight: 700;
}

.pcc-article__content ul,
.pcc-article__content ol {
	margin: 0 0 20px;
	padding-left: 1.5em;
}

.pcc-article__content ul li {
	position: relative;
	list-style: none;
	padding-left: 26px;
	margin-bottom: 8px;
}

.pcc-article__content ul li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0.5em;
	width: 16px;
	height: 16px;
	background: var(--pcc-red);
	mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><path fill='white' d='M6.5 11.5L3 8l1.5-1.5L6.5 8.5 11.5 3.5 13 5z'/></svg>");
	-webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><path fill='white' d='M6.5 11.5L3 8l1.5-1.5L6.5 8.5 11.5 3.5 13 5z'/></svg>");
	mask-size: contain;
	-webkit-mask-size: contain;
	mask-repeat: no-repeat;
	-webkit-mask-repeat: no-repeat;
	border-radius: 3px;
}

.pcc-article__content ol li {
	margin-bottom: 8px;
}

.pcc-article__content strong {
	color: var(--pcc-navy);
}

.pcc-article__content a {
	color: var(--pcc-red);
	text-decoration: underline;
	text-underline-offset: 2px;
	text-decoration-thickness: 1px;
}

.pcc-article__content a:hover {
	color: var(--pcc-red-hover);
	text-decoration-thickness: 2px;
}

.pcc-article__content blockquote {
	margin: 24px 0;
	padding: 20px 24px;
	background: var(--pcc-surface);
	border-left: 3px solid var(--pcc-red);
	border-radius: var(--pcc-radius);
	font-style: normal;
}

.pcc-article__content blockquote p {
	margin: 0;
}

/* Tables ------------------------------------------------------------------ */

.pcc-article__content table {
	width: 100%;
	margin: 24px 0 32px;
	border-collapse: collapse;
	background: #fff;
	border-radius: var(--pcc-radius);
	overflow: hidden;
	box-shadow: 0 0 0 1px var(--pcc-line);
}

.pcc-article__content thead {
	background: var(--pcc-navy);
}

.pcc-article__content thead th {
	padding: 14px 20px;
	color: #fff;
	font-family: var(--pcc-mono);
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	text-align: left;
}

.pcc-article__content tbody td,
.pcc-article__content tbody th {
	padding: 14px 20px;
	border-top: 1px solid var(--pcc-line);
	font-size: 0.9375rem;
	color: var(--pcc-ink);
	text-align: left;
	vertical-align: top;
}

.pcc-article__content tbody tr:first-child td,
.pcc-article__content tbody tr:first-child th {
	border-top: 0;
}

.pcc-article__content tbody th {
	color: var(--pcc-navy);
	font-weight: 700;
	width: 30%;
}

/* Tags -------------------------------------------------------------------- */

.pcc-article__tags {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 40px 0 0;
	padding: 0;
	list-style: none;
}

.pcc-article__tags li a {
	display: inline-block;
	padding: 6px 14px;
	background: var(--pcc-surface);
	border: 1px solid var(--pcc-line);
	border-radius: 999px;
	color: var(--pcc-navy);
	font-size: 0.8125rem;
	font-weight: 600;
	text-decoration: none;
	transition: border-color 0.15s ease;
}

.pcc-article__tags li a:hover {
	border-color: var(--pcc-navy);
}

/* Author card ------------------------------------------------------------- */

.pcc-article__author-card {
	display: flex;
	gap: 20px;
	margin: 40px 0 0;
	padding: 24px;
	background: var(--pcc-surface);
	border-radius: var(--pcc-radius);
}

.pcc-article__author-kicker {
	display: block;
	margin-bottom: 4px;
	color: var(--pcc-red);
	font-family: var(--pcc-mono);
	font-size: 10px;
	font-weight: 600;
	letter-spacing: 0.16em;
	text-transform: uppercase;
}

.pcc-article__author-title {
	margin: 0 0 8px;
	color: var(--pcc-navy);
	font-size: 1.0625rem;
	font-weight: 700;
}

.pcc-article__author-bio {
	margin: 0;
	color: var(--pcc-ink);
	font-size: 0.9375rem;
	line-height: 1.55;
}

/* Sidebar ----------------------------------------------------------------- */

.pcc-article__sidebar {
	display: flex;
	flex-direction: column;
	gap: 20px;
	position: sticky;
	top: 100px;
}

.pcc-article__widget {
	padding: 20px;
	background: #fff;
	border: 1px solid var(--pcc-line);
	border-radius: var(--pcc-radius);
}

.pcc-article__widget-kicker {
	display: block;
	margin-bottom: 12px;
	color: var(--pcc-muted);
	font-family: var(--pcc-mono);
	font-size: 10px;
	font-weight: 600;
	letter-spacing: 0.18em;
	text-transform: uppercase;
}

.pcc-article__widget-kicker--light {
	color: rgba(255, 255, 255, 0.6);
}

/* TOC widget */
.pcc-article__toc ol {
	margin: 0;
	padding: 0;
	list-style: none;
	counter-reset: toc;
}

.pcc-article__toc ol li {
	counter-increment: toc;
	padding: 8px 0;
	border-bottom: 1px solid var(--pcc-line);
}

.pcc-article__toc ol li:last-child {
	border-bottom: 0;
}

.pcc-article__toc ol li a {
	display: block;
	color: var(--pcc-navy);
	font-size: 0.9375rem;
	font-weight: 600;
	text-decoration: none;
	line-height: 1.4;
}

.pcc-article__toc ol li a::before {
	content: counter(toc) ". ";
	color: var(--pcc-red);
	font-family: var(--pcc-mono);
	font-weight: 700;
}

.pcc-article__toc ol li a:hover {
	color: var(--pcc-red);
}

/* Sidebar CTA */
.pcc-article__widget--cta {
	background: var(--pcc-red);
	border-color: var(--pcc-red);
	color: #fff;
}

.pcc-article__widget--cta h3 {
	margin: 0 0 6px;
	color: #fff !important;
	font-size: 1rem;
	font-weight: 700;
}

.pcc-article__widget--cta p {
	margin: 0 0 16px;
	color: rgba(255, 255, 255, 0.85);
	font-size: 0.875rem;
	line-height: 1.5;
}

.pcc-article__widget--cta .pcc-btn {
	display: flex;
	width: 100%;
	justify-content: center;
	margin-bottom: 8px;
}

.pcc-article__widget--cta .pcc-btn:last-child {
	margin-bottom: 0;
}

.pcc-btn--outline-red {
	background: transparent;
	border: 1px solid rgba(255, 255, 255, 0.6);
	color: #fff !important;
}

.pcc-btn--outline-red:hover {
	background: #fff;
	color: var(--pcc-red) !important;
}

/* Newsletter widget */
.pcc-article__widget--newsletter {
	background: var(--pcc-navy);
	border-color: var(--pcc-navy);
	color: #fff;
}

.pcc-article__widget--newsletter h3 {
	margin: 0 0 12px;
	color: #fff !important;
	font-size: 1rem;
	font-weight: 700;
}

.pcc-article__widget--newsletter form {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.pcc-article__widget--newsletter input[type="email"] {
	padding: 10px 14px;
	background: rgba(255, 255, 255, 0.08);
	border: 1px solid rgba(255, 255, 255, 0.2);
	border-radius: 8px;
	color: #fff;
	font: inherit;
	font-size: 0.875rem;
}

.pcc-article__widget--newsletter input[type="email"]::placeholder {
	color: rgba(255, 255, 255, 0.5);
}

.pcc-article__widget--newsletter button {
	padding: 10px 18px;
	background: var(--pcc-red) !important;
	border: 0;
	border-radius: 8px;
	color: #fff;
	font: inherit;
	font-size: 0.875rem;
	font-weight: 700;
	cursor: pointer;
}

.pcc-article__widget--newsletter button:hover {
	background: var(--pcc-red-hover);
}

/* Related reading --------------------------------------------------------- */

.pcc-article__related {
	background: var(--pcc-surface);
	padding: clamp(48px, 6vw, 72px) 0;
}

.pcc-article__related-inner {
	max-width: var(--content-width, 1180px);
	margin: 0 auto;
	padding: 0 var(--pcc-gutter);
}

.pcc-article__related-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 24px;
}

.pcc-article__related-head h2 {
	margin: 0;
	color: var(--pcc-navy);
	font-size: clamp(1.5rem, 2.4vw, 1.75rem);
	font-weight: 700;
}

.pcc-article__related-all {
	color: var(--pcc-red);
	font-size: 0.9375rem;
	font-weight: 700;
	text-decoration: none;
}

.pcc-article__related-all:hover {
	color: var(--pcc-red-hover);
}

.pcc-article__related-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 20px;
}

.pcc-article__related-card {
	background: #fff;
	border: 1px solid var(--pcc-line);
	border-radius: var(--pcc-radius);
	overflow: hidden;
	transition: border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.pcc-article__related-card:hover {
	border-color: var(--pcc-navy);
	transform: translateY(-2px);
	box-shadow: 0 6px 20px -10px rgba(1, 34, 95, 0.2);
}

.pcc-article__related-media {
	position: relative;
	display: block;
	aspect-ratio: 16 / 10;
	background: var(--pcc-surface);
	overflow: hidden;
	text-decoration: none;
}

.pcc-article__related-media img {
	display: block;
	width: 100%;
	height: 100% !important;
	object-fit: cover;
}

.pcc-article__related-badge {
	position: absolute;
	top: 12px;
	left: 12px;
	z-index: 1;
	padding: 4px 10px;
	background: var(--pcc-navy);
	border-radius: 4px;
	color: #fff;
	font-family: var(--pcc-mono);
	font-size: 9px;
	font-weight: 600;
	letter-spacing: 0.14em;
	text-transform: uppercase;
}

.pcc-article__related-placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 100%;
	color: var(--pcc-navy);
	font-family: var(--pcc-mono);
	font-size: 12px;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	opacity: 0.4;
}

.pcc-article__related-body {
	padding: 18px 20px 20px;
}

.pcc-article__related-meta {
	display: flex;
	gap: 12px;
	margin-bottom: 8px;
	color: var(--pcc-muted);
	font-family: var(--pcc-mono);
	font-size: 10px;
	font-weight: 500;
	letter-spacing: 0.14em;
	text-transform: uppercase;
}

.pcc-article__related-card h3 {
	margin: 0 0 12px;
	font-size: 1rem;
	font-weight: 700;
	line-height: 1.35;
}

.pcc-article__related-card h3 a {
	color: var(--pcc-navy);
	text-decoration: none;
}

.pcc-article__related-card h3 a:hover {
	color: var(--pcc-red);
}

.pcc-article__related-read {
	color: var(--pcc-red);
	font-size: 0.875rem;
	font-weight: 700;
	text-decoration: none;
}

.pcc-article__related-read:hover {
	color: var(--pcc-red-hover);
}

/* Bottom CTA banner ------------------------------------------------------- */

.pcc-article__bottom-cta-inner {
	max-width: 1400px;
	padding: 30px var(--pcc-gutter);
	margin: 0 auto 30px auto;
	text-align: center;
	background: var(--pcc-navy);
	color: #fff;
	border-radius: 20px;
}

.pcc-article__cta-kicker {
	display: inline-block;
	margin-bottom: 16px;
	color: var(--pcc-red);
	font-family: var(--pcc-mono);
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.24em;
	text-transform: uppercase;
}

.pcc-btn--outline-light:hover {
	color: #fff !important;
}

.pcc-article__bottom-cta h2 {
	margin: 0 0 16px;
	color: #fff !important;
	font-size: clamp(1.75rem, 3.5vw, 2.5rem);
	font-weight: 700;
	letter-spacing: -0.02em;
	line-height: 1.15;
}

.pcc-article__bottom-cta p {
	max-width: 52ch;
	margin: 0 auto 32px;
	color: rgba(255, 255, 255, 0.8);
	font-size: 1rem;
	line-height: 1.6;
}

.pcc-article__bottom-cta-actions {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 12px;
}

/* Responsive -------------------------------------------------------------- */

@media (max-width: 1024px) {
	.pcc-article__grid {
		grid-template-columns: 1fr;
	}

	.pcc-article__sidebar {
		position: static;
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 20px;
	}

	.pcc-article__toc {
		grid-column: 1 / -1;
	}

	.pcc-article__related-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 767px) {
	.pcc-article__title {
		font-size: 2rem;
		text-align: left;
		margin-inline: 0;
	}

	.pcc-article__byline {
		justify-content: flex-start;
	}

	.pcc-article__byline-meta {
		flex-direction: column;
		gap: 6px;
	}

	.pcc-article__cover {
		margin-top: -20px;
	}

	.pcc-article__sidebar {
		grid-template-columns: 1fr;
	}

	.pcc-article__related-grid {
		grid-template-columns: 1fr;
	}

	.pcc-article__bottom-cta-actions {
		flex-direction: column;
	}

	.pcc-article__bottom-cta-actions .pcc-btn {
		width: 100%;
	}

	.pcc-article__author-card {
		flex-direction: column;
		gap: 12px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.pcc-article__related-card {
		transition: none;
	}

	.pcc-article__related-card:hover {
		transform: none;
	}
}