/**
 * Prime Academic Press — force layer v44.
 * Announcement rich-text: editor inline styles beat v33/v30/v28 (higher specificity than v42).
 */

/* Container roots */
body.pap-richtext-source-priority .pkp_structure_main .obj_announcement_full .description,
body.pap-richtext-source-priority .pkp_structure_main .obj_announcement_summary .description,
body.pap-richtext-source-priority #main-content .cmp_announcements .obj_announcement_summary .description,
body.pap-richtext-source-priority #main-content .cmp_announcements .obj_announcement_full .description {
	font: revert !important;
	color: revert !important;
	letter-spacing: revert !important;
	text-transform: revert !important;
	line-height: revert !important;
}

/* Undo theme !important on all common editor nodes (inline + JS promotion win) */
body.pap-richtext-source-priority .pkp_structure_main .obj_announcement_full .description :is(
		h1, h2, h3, h4, h5, h6,
		p, li, ul, ol,
		blockquote, hr,
		table, thead, tbody, tr, th, td,
		div, span, a, strong, em, b, i, u,
		button
	),
body.pap-richtext-source-priority .pkp_structure_main .obj_announcement_summary .description :is(
		h1, h2, h3, h4, h5, h6,
		p, li, ul, ol,
		blockquote, hr,
		table, thead, tbody, tr, th, td,
		div, span, a, strong, em, b, i, u,
		button
	),
body.pap-richtext-source-priority #main-content .cmp_announcements .description :is(
		h1, h2, h3, h4, h5, h6,
		p, li, ul, ol,
		blockquote, hr,
		div, span, a, strong, em, b, i, u,
		button
	) {
	font-family: revert !important;
	font-size: revert !important;
	font-weight: revert !important;
	font-style: revert !important;
	line-height: revert !important;
	letter-spacing: revert !important;
	text-transform: revert !important;
	text-decoration: revert !important;
	color: revert !important;
	background: revert !important;
	background-color: revert !important;
	border: revert !important;
	border-top: revert !important;
	border-right: revert !important;
	border-bottom: revert !important;
	border-left: revert !important;
	border-radius: revert !important;
	margin: revert !important;
	padding: revert !important;
	display: revert !important;
	flex: revert !important;
	flex-direction: revert !important;
	flex-wrap: revert !important;
	align-items: revert !important;
	justify-content: revert !important;
	gap: revert !important;
	grid-template-columns: revert !important;
	grid-template-rows: revert !important;
	text-align: revert !important;
	max-width: revert !important;
	width: revert !important;
	min-width: revert !important;
	box-shadow: revert !important;
}

/* custom.less #main-content .cmp_announcements a { color: accent } */
body.pap-richtext-source-priority #main-content .cmp_announcements .description a,
body.pap-richtext-source-priority #main-content .cmp_announcements .obj_announcement_summary .description a,
body.pap-richtext-source-priority #main-content .cmp_announcements .obj_announcement_full .description a {
	color: revert !important;
	background: revert !important;
	background-color: revert !important;
	border: revert !important;
	border-radius: revert !important;
	padding: revert !important;
	display: revert !important;
	text-decoration: revert !important;
}

/* v30 display:block on headings — allow flex/grid card layouts */
body.pap-richtext-source-priority .pkp_structure_main .obj_announcement_full .description :is(h1, h2, h3, h4, h5, h6)::before,
body.pap-richtext-source-priority .pkp_structure_main .obj_announcement_full .description :is(h1, h2, h3, h4, h5, h6)::after,
body.pap-richtext-source-priority .pkp_structure_main .obj_announcement_summary .description :is(h1, h2, h3, h4, h5, h6)::before,
body.pap-richtext-source-priority .pkp_structure_main .obj_announcement_summary .description :is(h1, h2, h3, h4, h5, h6)::after {
	content: none !important;
	display: none !important;
}

body.pap-richtext-source-priority .pkp_structure_main .obj_announcement_full .description :is(ul, ol),
body.pap-richtext-source-priority .pkp_structure_main .obj_announcement_summary .description :is(ul, ol) {
	list-style: revert !important;
	padding-left: revert !important;
	margin-left: revert !important;
}

body.pap-richtext-source-priority .pkp_structure_main .obj_announcement_full .description li,
body.pap-richtext-source-priority .pkp_structure_main .obj_announcement_summary .description li {
	display: revert !important;
	list-style: revert !important;
}
