/* Shared site content links inside WordPress block lists. */
body.omg-renewal-site .entry-content ul.wp-block-list a,
body.omg-renewal-site .entry-content ul.wp-block-list a :is(span,strong,b,em) {
	color: #111 !important;
	font-weight: 600 !important;
}

/* Keep existing comment data but hide WordPress and KBoard comment UI site-wide. */
body.omg-renewal-site :is(#comments,.comments-area,.comment-respond,.comment-navigation,.comments-link,[id^="kboard-comments-"],.kboard-comments-area,.omg-blog-comments,.kboard-comments-count) {
	display: none !important;
}

/* Shared KBoard article body text. Headings retain their separate settings. */
#kboard-document :is(.content-view,.omg-blog-document-content) :is(ul,ol) {
	margin-inline: 0 !important;
	padding-inline-start: 1.5em !important;
	padding-inline-end: 0;
	list-style-position: outside;
	box-sizing: border-box;
}
#kboard-document :is(.content-view,.omg-blog-document-content) li {
	margin-inline: 0;
	overflow-wrap: anywhere;
}
#kboard-document :is(.content-view,.omg-blog-document-content) ul > li:not(:last-child) {
	margin-bottom: 3px !important;
}
#kboard-document :is(.content-view,.omg-blog-document-content) img.omg-body-failed-image {
	display: none !important;
	margin: 0 !important;
}
#kboard-document :is(.content-view,.omg-blog-document-content) img.omg-body-first-image {
	display: block !important;
	margin-top: 30px !important;
	margin-bottom: 30px !important;
}
#kboard-document :is(.content-view,.omg-blog-document-content) img.omg-body-spaced-image {
	display: block !important;
	margin-top: 30px !important;
	margin-bottom: 30px !important;
}
#kboard-document :is(.content-view,.omg-blog-document-content) .omg-body-image-wrapper {
	display: block;
	margin-top: 0 !important;
	margin-bottom: 0 !important;
	padding-top: 0;
	padding-bottom: 0;
}
#kboard-document :is(.content-view,.omg-blog-document-content) .omg-image-adjacent-break {
	display: none !important;
	height: 0 !important;
	margin: 0 !important;
}
#kboard-document :is(.content-view,.omg-blog-document-content) .omg-body-line-break {
	display: block;
	height: 18px;
	margin: 0;
	padding: 0;
}
/* A failed image between text blocks keeps only the following break. */
#kboard-document :is(.content-view,.omg-blog-document-content) .omg-body-line-break:has(+ img.omg-body-failed-image) {
	display: none !important;
	height: 0 !important;
	margin: 0 !important;
}
#kboard-document :is(.content-view,.omg-blog-document-content) img.omg-body-failed-image + .omg-body-line-break {
	display: block !important;
	height: 18px !important;
	margin: 0 !important;
}
/* A failed first image must not leave an empty gap above the opening text. */
#kboard-document :is(.content-view,.omg-blog-document-content) > img.omg-body-failed-image:first-child + .omg-body-line-break {
	display: none !important;
	height: 0 !important;
}
#kboard-document :is(.content-view,.omg-blog-document-content) .omg-list-before-gap {
	display: block;
	height: 10px;
	margin: 0;
	padding: 0;
}
/* Legacy inline labels: keep the forced new line with a compact 6px gap. */
#kboard-document :is(.content-view,.omg-blog-document-content) span[style*="color"][style*="#000000"]:has(> strong) + span[style*="font-weight"][style*="400"] > .omg-body-line-break {
	height: 0 !important;
	margin: 0 0 6px !important;
	padding: 0 !important;
}
#kboard-document :is(.content-view,.omg-blog-document-content) {
	font-size: 17px !important;
	line-height: 1.5em !important;
	color: #444 !important;
}
#kboard-document :is(.content-view,.omg-blog-document-content) :is(p,li,blockquote,td,th) {
	font-size: 17px !important;
	line-height: 1.5em !important;
	color: #444 !important;
}
#kboard-document :is(.content-view,.omg-blog-document-content) :is(p,li,blockquote,td,th) :is(span,strong,b,em) {
	color: inherit !important;
}
#kboard-document :is(.content-view,.omg-blog-document-content) :is(span,a,strong,b,em,br):not(:is(h1,h2,h3,h4,h5,h6) *) {
	font-size: inherit !important;
	line-height: inherit !important;
}

#kboard-document :is(.content-view,.omg-blog-document-content) :is(b,strong) {
	font-weight: 600 !important;
}

/* Shared KBoard article text links, including legacy inline span styles. */
#kboard-document :is(.content-view,.omg-blog-document-content) a,
#kboard-document :is(.content-view,.omg-blog-document-content) a :is(span,strong,b,em) {
	color: #111 !important;
	font-weight: 600 !important;
}

/* Shared KBoard article headings, including legacy inline editor formatting. */
#kboard-document :is(.content-view,.omg-blog-document-content) :is(h2,h3) {
	margin-top: 50px !important;
	font-size: 26px !important;
	font-weight: 600 !important;
	letter-spacing: -0.04em !important;
	color: #111 !important;
}
#kboard-document :is(.content-view,.omg-blog-document-content) :is(h2,h3) :is(span,strong,b,a,em) {
	font-size: inherit !important;
	font-weight: inherit !important;
	letter-spacing: inherit !important;
	color: inherit !important;
}
@media (max-width: 767px) {
	#kboard-document :is(.content-view,.omg-blog-document-content) :is(h2,h3) {
		font-size: 24px !important;
	}
}

/* Shared KBoard list notice label, desktop and mobile. */
.omg-kboard-notice{font-weight:600!important;}

/* Shared compact new-post badge, positioned after the title. */
:is(.kboard-default-new-notify,.omg-course-new,.omg-blog-new) {
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	width: 16px !important;
	min-width: 16px;
	height: 16px !important;
	margin: 0 0 0 6px !important;
	padding: 0 !important;
	border-radius: 2px !important;
	background: #ae0016 !important;
	color: #fff !important;
	font-size: 10px !important;
	line-height: 16px !important;
	font-weight: 600 !important;
	vertical-align: 1px;
}

/* Shared pagination for KBoard's default skin. */
#kboard-default-list .kboard-pagination {
	float: none !important;
	clear: both !important;
	display: flow-root;
	width: 100% !important;
	padding: 0 !important;
}
#kboard-default-list .kboard-pagination .kboard-pagination-pages {
	float: none !important;
	display: flex !important;
	align-items: center;
	justify-content: center;
	flex-wrap: nowrap;
	gap: 6px;
	width: 100% !important;
	margin: 40px 0 24px !important;
	padding: 0 !important;
}
#kboard-default-list .kboard-pagination .kboard-pagination-pages li {
	display: block !important;
	flex: 0 0 auto;
	margin: 0 !important;
	padding: 0 !important;
}
#kboard-default-list .kboard-pagination .kboard-pagination-pages li a {
	display: flex !important;
	align-items: center;
	justify-content: center;
	width: 40px;
	min-width: 40px;
	height: 40px;
	margin: 0 !important;
	padding: 0 !important;
	border: 1px solid #dfe0e1 !important;
	border-radius: 50%;
	background: #fff;
	color: #666 !important;
	font-size: 15px;
	line-height: 1;
	text-decoration: none !important;
	white-space: nowrap;
}
#kboard-default-list .kboard-pagination .kboard-pagination-pages li.active a {
	border-color: #1f1f1f !important;
	background: #1f1f1f;
	color: #fff !important;
	font-weight: 600;
}
#kboard-default-list .kboard-pagination .kboard-pagination-pages li:not(.active):not(.first-page):not(.prev-page):not(.next-page):not(.last-page) a {
	border-color: transparent !important;
	background: transparent;
	color: #c8c8c8 !important;
}
#kboard-default-list .kboard-pagination .kboard-pagination-pages :is(.first-page,.prev-page,.next-page,.last-page) a {
	gap: 2px;
	font-size: 0;
}
#kboard-default-list .kboard-pagination .kboard-pagination-pages :is(.first-page,.prev-page,.next-page,.last-page) a::before,
#kboard-default-list .kboard-pagination .kboard-pagination-pages :is(.first-page,.last-page) a::after {
	content: '';
	display: block;
	width: 6px;
	height: 6px;
	border-top: 1px solid currentColor;
	border-right: 1px solid currentColor;
	transform: rotate(45deg);
}
#kboard-default-list .kboard-pagination .kboard-pagination-pages :is(.first-page,.prev-page) a::before,
#kboard-default-list .kboard-pagination .kboard-pagination-pages .first-page a::after {
	transform: rotate(-135deg);
}
#kboard-default-list .kboard-pagination .kboard-pagination-pages :is(.first-page,.last-page) a::after {
	margin-left: -5px;
}
#kboard-default-list .kboard-pagination .kboard-pagination-pages .prev-page a::before {
	position: relative;
	left: 1px;
}
#kboard-default-list .kboard-pagination .kboard-pagination-pages .next-page a::before {
	position: relative;
	left: -1px;
}
@media (max-width: 639px) {
	#kboard-default-list .kboard-pagination {
		padding: 0 !important;
	}
	#kboard-default-list .kboard-pagination .kboard-pagination-pages {
		margin: 30px 0 20px !important;
	}
	#kboard-default-list .kboard-pagination .kboard-pagination-pages :is(.first-page,.last-page) {
		display: none !important;
	}
	#kboard-default-list .kboard-pagination .kboard-pagination-pages li a {
		width: 36px;
		min-width: 36px;
		height: 36px;
		font-size: 14px;
	}
}

/* Shared list controls across all KBoard skins. */
.kboard-search,.omg-course-search,.omg-blog-search{display:none!important;}
.kboard-pagination .kboard-pagination-pages li a{display:inline-flex!important;align-items:center;justify-content:center;box-sizing:border-box;width:40px!important;min-width:40px!important;height:40px!important;padding:0!important;border:1px solid #dfe0e1;border-radius:50%!important;}
@media(max-width:639px){.kboard-pagination .kboard-pagination-pages li a{width:36px!important;min-width:36px!important;height:36px!important;}}
