/* Ordinary articles own a single reading column; other post types keep their layout. */
.single-post .apoa-article-v2.apoa-single-main {
	box-sizing: border-box;
	width: calc(100% - 40px);
	max-width: 780px;
	margin: 40px auto 64px;
	padding: 0 !important;
	min-width: 0;
}

.single-post .apoa-article-v2 > .wp-block-post-content {
	box-sizing: border-box;
	width: 100%;
	max-width: none;
	margin: 24px 0 0 !important;
	padding: 0 !important;
	font-size: 17px;
	line-height: 1.85;
	color: #283343;
	overflow-wrap: anywhere;
}

/* Override the legacy mobile width and the nested constrained-layout gutters. */
.single-post .apoa-article-v2 .wp-block-post-content > * {
	box-sizing: border-box;
	width: 100% !important;
	max-width: 100% !important;
	margin-left: 0 !important;
	margin-right: 0 !important;
}

.apoa-article-header {
	border-bottom: 1px solid #dde3eb;
	margin: 0;
	padding-bottom: 24px;
}

.apoa-article-categories {
	display: flex;
	flex-wrap: wrap;
	gap: 6px 14px;
	margin-bottom: 16px;
	font-size: 13px;
	font-weight: 600;
}

.apoa-article-categories a { color: #52647a; }

.single-post .apoa-article-v2 .wp-block-post-title {
	font-size: clamp(27px, 3.5vw, 40px);
	line-height: 1.28;
	letter-spacing: -.02em;
	font-weight: 750;
	margin: 0 0 20px;
	color: #17283e;
	overflow-wrap: anywhere;
}

.apoa-post-v2-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 6px 18px;
	color: #606c7c;
	font-size: 13px;
	line-height: 1.6;
}

.single-post .apoa-article-v2 .apoa-language-version {
	padding: 12px 16px;
	gap: 8px 12px;
	font-size: 14px;
	line-height: 1.6;
	margin-bottom: 24px;
}

.single-post .apoa-article-v2 .wp-block-post-content p,
.single-post .apoa-article-v2 .wp-block-post-content li {
	font-size: inherit;
	line-height: inherit;
	color: inherit;
}

.single-post .apoa-article-v2 .wp-block-post-content p { margin-top: 0; margin-bottom: 1.2em; }
.single-post .apoa-article-v2 .wp-block-post-content h2 {
	font-size: clamp(23px, 2.2vw, 29px);
	line-height: 1.4;
	margin-top: 1.8em;
	margin-bottom: .7em;
	color: #17283e;
	scroll-margin-top: 24px;
}
.single-post .apoa-article-v2 .wp-block-post-content h3 {
	font-size: 21px;
	line-height: 1.45;
	margin-top: 1.5em;
	color: #17283e;
}
.single-post .apoa-article-v2 .wp-block-post-content :is(ul, ol) { padding-left: 1.5em; }
.single-post .apoa-article-v2 .wp-block-post-content li { margin-bottom: .5em; }
.single-post .apoa-article-v2 .wp-block-post-content blockquote {
	margin-block: 24px;
	padding: 18px 20px;
	border-left: 3px solid #96a8bd;
	background: #f4f7fa;
	font-size: 1em;
}
.single-post .apoa-article-v2 .wp-block-post-content blockquote p:last-child { margin-bottom: 0; }
.apoa-article-v2 a { text-underline-offset: 3px; overflow-wrap: anywhere; }
.apoa-article-v2 a:focus-visible, .apoa-article-v2 button:focus-visible, .apoa-article-v2 summary:focus-visible {
	outline: 2px solid #315e93;
	outline-offset: 4px;
}
.apoa-article-v2 img { max-width: 100%; height: auto; }
.apoa-article-featured { margin: 24px 0 0; }
.apoa-article-v2 figcaption { margin-top: 10px; color: #606c7c; font-size: 13px; line-height: 1.6; }
.apoa-article-v2 .wp-block-table {
	overflow-x: auto;
	overscroll-behavior-x: contain;
	-webkit-overflow-scrolling: touch;
}
.apoa-article-v2 .wp-block-table table {
	width: 100%;
	min-width: 440px;
	border-collapse: collapse;
	font-size: 15px;
	line-height: 1.65;
}
.apoa-article-v2 .wp-block-table :is(td, th) { padding: 12px 14px; border: 1px solid #dce3ec; vertical-align: top; }
.apoa-article-v2 .wp-block-table th { background: #f1f5f9; text-align: left; }
.apoa-article-v2 .wp-block-embed iframe { width: 100%; max-width: 100%; aspect-ratio: 16/9; height: auto; }

.apoa-article-outline { padding: 14px 18px; background: #f5f7fa; border: 1px solid #e1e7ee; border-radius: 10px; margin-top: 0; margin-bottom: 28px; font-size: 15px; }
.apoa-article-outline summary { cursor: pointer; font-weight: 650; }
.apoa-article-outline ol { margin: 14px 0 0; padding-left: 1.5em; }
.apoa-article-outline li { margin-bottom: 8px; }
.apoa-article-footer { border-top: 1px solid #dde3eb; margin-top: 40px; padding-top: 26px; }
.apoa-article-footer h2 { font-size: 21px; color: #17283e; margin: 0 0 14px; }
.apoa-article-footer ul { padding-left: 20px; line-height: 1.65; }
.apoa-article-footer li { margin-bottom: 12px; }
.apoa-article-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 16px; margin-top: 24px; font-size: 14px; }
.apoa-article-actions button { border: 0; border-radius: 8px; padding: 12px 18px; background: #17283e; color: #fff; font: inherit; cursor: pointer; }
.apoa-copy-status { font-size: 13px; color: #44576e; }
.apoa-copy-fallback { box-sizing: border-box; flex-basis: 100%; min-width: 0; width: 100%; padding: 12px; font: inherit; }
.apoa-copy-fallback[hidden] { display: none; }

@media (max-width: 360px) {
	.single-post .apoa-article-v2.apoa-single-main { width: calc(100% - 32px); margin-top: 28px; }
	.single-post .apoa-article-v2 .wp-block-post-title { font-size: 26px; }
	.single-post .apoa-article-v2 .wp-block-post-content { font-size: 16px; }
}
