/* Article typography — scoped to .page-article / .article-content
   Brand: #00478a blue, #182e26 dark green, #f1f5f6 muted bg
   Use rem for reading sizes (body vw stays for the rest of the site).
*/

.page-article .article-content {
	--art-text: #1a1a1a;
	--art-muted: #4a5c56;
	--art-accent: #00478a;
	--art-line: #d9e2e8;
	--art-bg: #f1f5f6;
	color: var(--art-text);
	font-size: 1.0625rem; /* 17px */
	line-height: 1.7;
	letter-spacing: 0.005em;
	position: relative;
}

/* Full-width text; image above content, collapses on scroll (no overlay) */
.page-article .article-content > .row {
	display: flex;
	flex-direction: column;
}

.page-article .article-content > .row > .col-lg-5 {
	order: 1;
	width: 100%;
	max-width: 520px;
	margin: 0 auto 1.25rem;
	padding-left: 0;
	padding-right: 0;
	overflow: hidden;
	transition: opacity 0.2s ease, max-height 0.25s ease, margin 0.25s ease;
	max-height: 640px;
}

.page-article.is-article-scrolled .article-content > .row > .col-lg-5 {
	opacity: 0;
	max-height: 0;
	margin: 0 auto;
	pointer-events: none;
}

.page-article .sidebar-article {
	position: static !important;
	top: auto !important;
	margin-left: auto;
	margin-right: auto;
}

.page-article .article-content > .row > .col-lg-7 {
	flex: 0 0 100%;
	max-width: 100%;
	width: 100%;
	order: 2;
	margin-left: 0;
	margin-right: 0;
}

.page-article .article-content h1 {
	font-size: clamp(1.625rem, 1.2rem + 1.2vw, 2.125rem);
	line-height: 1.25;
	font-weight: 700;
	letter-spacing: -0.015em;
	margin: 0 0 0.5rem;
	color: #000;
}

.page-article .date-article {
	font-size: 0.875rem;
	line-height: 1.4;
	color: var(--art-muted);
	margin: 0 0 1.75rem;
}

.page-article .article-content h2 {
	font-size: clamp(1.25rem, 1.1rem + 0.6vw, 1.5rem);
	line-height: 1.35;
	font-weight: 700;
	letter-spacing: -0.01em;
	margin: 2.25rem 0 0.85rem;
	color: #000;
}

.page-article .article-content h3 {
	font-size: clamp(1.125rem, 1.05rem + 0.35vw, 1.25rem);
	line-height: 1.4;
	font-weight: 600;
	margin: 1.85rem 0 0.65rem;
	color: #000;
}

.page-article .article-content h4 {
	font-size: 1.0625rem;
	line-height: 1.45;
	font-weight: 600;
	margin: 1.5rem 0 0.5rem;
	color: #182e26;
}

.page-article .article-content p {
	margin: 0 0 1.05rem;
}

/* Short lead-ins before lists (industry labels etc.) */
.page-article .article-content p:has(+ ul),
.page-article .article-content p:has(+ ol) {
	font-weight: 600;
	color: #182e26;
	margin-bottom: 0.45rem;
}

.page-article .article-content a {
	color: var(--art-accent);
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 0.18em;
	border-bottom: 0;
}

.page-article .article-content a:hover {
	color: #003566;
	text-decoration-thickness: 2px;
}

.page-article .article-content strong,
.page-article .article-content b {
	font-weight: 700;
	color: #111;
}

.page-article .article-content em,
.page-article .article-content i {
	font-style: italic;
}

.page-article .article-content ul,
.page-article .article-content ol {
	margin: 0 0 1.25rem;
	padding: 0 0 0 0.15rem;
	list-style: none;
}

.page-article .article-content ol {
	counter-reset: art-ol;
}

.page-article .article-content li {
	position: relative;
	padding-left: 1.15rem;
	margin: 0 0 0.55rem;
	line-height: 1.65;
}

.page-article .article-content ul > li::before {
	content: "";
	position: absolute;
	left: 0.15rem;
	top: 0.72em;
	width: 0.35rem;
	height: 0.35rem;
	border-radius: 50%;
	background: var(--art-accent);
	transform: translateY(-50%);
}

.page-article .article-content ol > li {
	counter-increment: art-ol;
	padding-left: 1.5rem;
}

.page-article .article-content ol > li::before {
	content: counter(art-ol) ".";
	position: absolute;
	left: 0;
	top: 0;
	color: var(--art-accent);
	font-weight: 600;
	font-size: 0.95em;
}

.page-article .article-content li ul,
.page-article .article-content li ol {
	margin-top: 0.45rem;
	margin-bottom: 0.25rem;
}

.page-article .article-content img {
	display: block;
	width: 100%;
	height: auto;
	margin: 1.25rem 0 1.5rem;
	border-radius: 12px;
}

.page-article .article-content figure {
	margin: 1.25rem 0 1.5rem;
}

.page-article .article-content figcaption {
	font-size: 0.875rem;
	line-height: 1.45;
	color: var(--art-muted);
	margin-top: 0.5rem;
}

/* Tables */
.page-article .article-content table {
	width: 100%;
	border-collapse: collapse;
	margin: 1.25rem 0 1.75rem;
	font-size: 0.96875rem;
	line-height: 1.5;
	background: #fff;
	border: 1px solid var(--art-line);
	border-radius: 10px;
	overflow: hidden;
	display: block;
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
}

.page-article .article-content table tbody,
.page-article .article-content table thead,
.page-article .article-content table tr {
	display: table;
	width: 100%;
	table-layout: fixed;
}

.page-article .article-content th,
.page-article .article-content td {
	padding: 0.75rem 0.9rem;
	border-bottom: 1px solid var(--art-line);
	vertical-align: top;
	text-align: left;
}

.page-article .article-content tr:first-child td,
.page-article .article-content th {
	background: var(--art-bg);
	font-weight: 600;
	color: #182e26;
}

.page-article .article-content tr:last-child td {
	border-bottom: 0;
}

.page-article .article-content td:first-child {
	width: 32%;
	font-weight: 600;
	color: #182e26;
}

.page-article .article-content tr:first-child td:first-child {
	font-weight: 600;
}

.page-article .article-content blockquote {
	margin: 1.75rem 0;
	padding: 1.35rem 1.5rem;
	border-radius: 12px;
	background: var(--art-bg);
	font-size: 1.0625rem;
	line-height: 1.6;
	position: relative;
	border-left: 3px solid var(--art-accent);
}

.page-article .article-content blockquote::before,
.page-article .article-content blockquote::after {
	display: none;
}

.page-article .article-content hr {
	border: 0;
	border-top: 1px solid var(--art-line);
	margin: 2rem 0;
}

/* Related block */
.page-article .related-articles {
	margin-top: 2.5rem;
	padding: 1.35rem 1.5rem;
	border: 1px solid var(--art-line);
	border-radius: 12px;
	background: var(--art-bg);
	max-width: none;
}

.page-article .related-articles h3 {
	margin: 0 0 0.85rem;
	font-size: 1.0625rem;
	font-weight: 700;
}

.page-article .related-articles ul {
	margin: 0;
	padding: 0;
	list-style: none;
	max-width: none;
}

.page-article .related-articles li {
	padding-left: 0;
	margin: 0 0 0.65rem;
	line-height: 1.45;
}

.page-article .related-articles li:last-child {
	margin-bottom: 0;
}

.page-article .related-articles li::before {
	display: none;
	content: none;
}

.page-article .related-articles a {
	font-weight: 500;
}

/* Sidebar image */
.page-article .sidebar-article img {
	width: 100%;
	height: auto;
	border-radius: 12px;
	display: block;
}

.page-article .sidebar-article blockquote {
	margin-top: 1rem;
}

/* Mobile / tablet — media.css breakpoint is 992px */
@media only screen and (max-width: 992px) {
	.page-article .article-content > .row > .col-lg-5 {
		max-width: 100%;
		margin-bottom: 1rem;
	}

	.page-article .article-content {
		font-size: 1rem;
		line-height: 1.65;
	}

	.page-article .article-content h1 {
		font-size: 1.625rem;
		margin-bottom: 0.4rem;
	}

	.page-article .date-article {
		font-size: 0.8125rem;
		margin-bottom: 1.35rem;
	}

	.page-article .article-content h2 {
		font-size: 1.25rem;
		margin-top: 1.75rem;
		margin-bottom: 0.7rem;
	}

	.page-article .article-content h3 {
		font-size: 1.125rem;
		margin-top: 1.5rem;
	}

	.page-article .article-content p,
	.page-article .article-content ul,
	.page-article .article-content ol {
		margin-bottom: 1rem;
	}

	.page-article .article-content table {
		font-size: 0.875rem;
	}

	.page-article .article-content th,
	.page-article .article-content td {
		padding: 0.65rem 0.7rem;
	}

	.page-article .article-content td:first-child {
		width: 40%;
	}

	.page-article .related-articles {
		padding: 1.1rem 1rem;
		margin-top: 2rem;
	}
}
