/*
 * Hawkmen Insights — single-article stylesheet.
 * Scoped under .hki-article; enqueued only on singular standard posts
 * (see includes/insights-single.php), so it never loads elsewhere.
 */

.hki-article {
	--hki-bg: #0A0F1E;
	--hki-bg-secondary: #10172A;
	--hki-bg-secondary-dark: #0D1528;
	--hki-border: #2B344D;
	--hki-white: #FFFFFF;
	--hki-text: #E8EEFF;
	--hki-text-muted: #B6BDCC;
	--hki-blue: #2F7DF6;
	--hki-blue-light: #7FB3FF;
	--hki-green: #00C896;
	--hki-gold: #FACC6B;

	display: block;
	background: var(--hki-bg);
	color: var(--hki-text);
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	line-height: 1.65;
}

.hki-article a {
	color: var(--hki-blue-light);
	text-decoration: underline;
	text-underline-offset: 2px;
}

.hki-article a:hover,
.hki-article a:focus-visible {
	color: var(--hki-white);
}

.hki-article *:focus-visible {
	outline: 2px solid var(--hki-blue-light);
	outline-offset: 2px;
}

/* Hero */

.hki-hero {
	background: linear-gradient(180deg, var(--hki-bg-secondary) 0%, var(--hki-bg) 100%);
	border-bottom: 1px solid var(--hki-border);
	padding: 48px 24px 0;
}

.hki-hero__inner {
	max-width: 820px;
	margin: 0 auto;
	text-align: left;
}

.hki-hero__eyebrow {
	margin: 0 0 12px;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--hki-green);
}

.hki-hero__category {
	display: inline-block;
	margin-bottom: 16px;
	padding: 4px 12px;
	border: 1px solid var(--hki-border);
	border-radius: 999px;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--hki-blue-light);
	background: var(--hki-bg-secondary-dark);
}

.hki-hero__title {
	margin: 0 0 20px;
	font-size: clamp(28px, 4vw, 44px);
	line-height: 1.2;
	font-weight: 700;
	color: var(--hki-white);
}

.hki-hero__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 16px;
	margin-bottom: 32px;
	font-size: 14px;
	color: var(--hki-text-muted);
}

.hki-hero__media {
	max-width: 1040px;
	margin: 0 auto;
	padding: 0 24px 40px;
}

.hki-hero__image {
	display: block;
	width: 100%;
	height: auto;
	border-radius: 12px;
	border: 1px solid var(--hki-border);
}

/* Body */

.hki-body {
	padding: 40px 24px 8px;
}

.hki-content {
	max-width: 780px;
	margin: 0 auto;
	font-size: 17px;
}

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

.hki-content h1,
.hki-content h2,
.hki-content h3,
.hki-content h4 {
	color: var(--hki-white);
	line-height: 1.3;
	margin: 2em 0 0.6em;
}

.hki-content h2 { font-size: 28px; }
.hki-content h3 { font-size: 22px; }
.hki-content h4 { font-size: 18px; }

.hki-content p {
	margin: 0 0 1.4em;
	color: var(--hki-text);
}

.hki-content ul,
.hki-content ol {
	margin: 0 0 1.4em;
	padding-left: 1.4em;
	color: var(--hki-text);
}

.hki-content li {
	margin-bottom: 0.5em;
}

.hki-content blockquote {
	margin: 2em 0;
	padding: 16px 24px;
	border-left: 3px solid var(--hki-blue);
	background: var(--hki-bg-secondary);
	border-radius: 0 8px 8px 0;
	color: var(--hki-text-muted);
	font-style: italic;
}

.hki-content blockquote p:last-child {
	margin-bottom: 0;
}

.hki-content img {
	max-width: 100%;
	height: auto;
	border-radius: 8px;
	display: block;
	margin: 0 auto;
}

.hki-content figure {
	margin: 2em 0;
}

.hki-content figcaption {
	margin-top: 8px;
	font-size: 14px;
	color: var(--hki-text-muted);
	text-align: center;
}

.hki-content table {
	width: 100%;
	border-collapse: collapse;
	margin: 1.5em 0;
	display: block;
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
}

.hki-content table th,
.hki-content table td {
	padding: 10px 14px;
	border: 1px solid var(--hki-border);
	text-align: left;
}

.hki-content table th {
	background: var(--hki-bg-secondary);
	color: var(--hki-white);
}

.hki-content .wp-block-button__link,
.hki-content .button,
.hki-content a.button {
	display: inline-block;
	padding: 12px 24px;
	border-radius: 8px;
	background: var(--hki-blue);
	color: var(--hki-white);
	text-decoration: none;
	font-weight: 600;
}

.hki-content .wp-block-button__link:hover {
	background: var(--hki-blue-light);
	color: var(--hki-bg);
}

.hki-content hr {
	border: none;
	border-top: 1px solid var(--hki-border);
	margin: 2.5em 0;
}

/* Mid-article CTA */

.hki-mid-cta {
	max-width: 780px;
	margin: 2.5em auto;
	padding: 24px;
	border: 1px solid var(--hki-border);
	border-radius: 12px;
	background: var(--hki-bg-secondary);
	text-align: center;
}

.hki-mid-cta__text {
	margin: 0 0 16px;
	font-size: 17px;
	color: var(--hki-white);
}

.hki-mid-cta__button {
	display: inline-block;
	padding: 12px 28px;
	border-radius: 8px;
	background: var(--hki-green);
	color: var(--hki-bg);
	font-weight: 700;
	text-decoration: none;
}

.hki-mid-cta__button:hover {
	background: var(--hki-gold);
	color: var(--hki-bg);
}

/* Next steps (end-of-article) */

.hki-next-steps {
	max-width: 1040px;
	margin: 24px auto 0;
	padding: 40px 24px;
}

.hki-next-steps__heading {
	margin: 0 0 24px;
	font-size: 24px;
	color: var(--hki-white);
	text-align: center;
}

.hki-next-steps__grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 20px;
}

.hki-next-steps__card {
	padding: 24px;
	border: 1px solid var(--hki-border);
	border-radius: 12px;
	background: var(--hki-bg-secondary);
	text-align: left;
}

.hki-next-steps__card--primary {
	border-color: var(--hki-green);
	background: var(--hki-bg-secondary-dark);
}

.hki-next-steps__label {
	margin: 0 0 8px;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--hki-blue-light);
}

.hki-next-steps__title {
	margin: 0 0 16px;
	font-size: 19px;
	color: var(--hki-white);
}

.hki-next-steps__link {
	font-weight: 600;
	text-decoration: none;
}

.hki-next-steps__link:hover {
	text-decoration: underline;
}

/* Related insights */

.hki-related {
	max-width: 1040px;
	margin: 0 auto;
	padding: 16px 24px 48px;
}

.hki-related__heading {
	margin: 0 0 24px;
	font-size: 24px;
	color: var(--hki-white);
}

.hki-related__grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 24px;
}

.hki-related__card {
	border: 1px solid var(--hki-border);
	border-radius: 12px;
	background: var(--hki-bg-secondary);
	overflow: hidden;
}

.hki-related__card-link {
	display: block;
	color: inherit;
	text-decoration: none;
	height: 100%;
}

.hki-related__media {
	aspect-ratio: 16 / 9;
	background: var(--hki-bg-secondary-dark);
	overflow: hidden;
}

.hki-related__media--placeholder {
	background: linear-gradient(135deg, var(--hki-bg-secondary-dark), var(--hki-border));
}

.hki-related__image {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.hki-related__body {
	padding: 16px 18px 20px;
}

.hki-related__category {
	display: inline-block;
	margin-bottom: 8px;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	color: var(--hki-blue-light);
}

.hki-related__title {
	margin: 0 0 8px;
	font-size: 16px;
	line-height: 1.4;
	color: var(--hki-white);
}

.hki-related__excerpt {
	margin: 0;
	font-size: 14px;
	color: var(--hki-text-muted);
}

/* Disclaimer */

.hki-disclaimer {
	max-width: 780px;
	margin: 0 auto;
	padding: 24px 24px 56px;
	font-size: 13px;
	line-height: 1.6;
	color: var(--hki-text-muted);
}

/* Responsive */

@media (max-width: 900px) {
	.hki-next-steps__grid {
		grid-template-columns: repeat(2, 1fr);
	}

	.hki-related__grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 600px) {
	.hki-hero {
		padding: 32px 16px 0;
	}

	.hki-hero__media,
	.hki-body,
	.hki-next-steps,
	.hki-related {
		padding-left: 16px;
		padding-right: 16px;
	}

	.hki-next-steps__grid,
	.hki-related__grid {
		grid-template-columns: 1fr;
	}

	.hki-content {
		font-size: 16px;
	}
}
