/* Rank Math FAQ shared by the WinningPC post layouts and editorial pages.
   Plain HTML stays readable when JavaScript is disabled. */
:is(.wpc-post .post-inner, body.wpc-old-template .post-inner, .wpc-page-content) :is(.wp-block-rank-math-faq-block, #rank-math-faq),
body.wpc-old-template .post-inner :is(.wp-block-rank-math-faq-block, #rank-math-faq) {
	margin: 16px 0;
	border: 0;
	border-top: 1px solid var(--c-line-strong);
}
:is(.wpc-post .post-inner, body.wpc-old-template .post-inner, .wpc-page-content) :is(.wp-block-rank-math-faq-block, #rank-math-faq) .rank-math-list,
body.wpc-old-template .post-inner :is(.wp-block-rank-math-faq-block, #rank-math-faq) .rank-math-list {
	display: flex;
	flex-direction: column;
	gap: 0;
	margin: 0;
	padding: 0;
	color: var(--c-ink);
}
:is(.wpc-post .post-inner, body.wpc-old-template .post-inner, .wpc-page-content) :is(.wp-block-rank-math-faq-block, #rank-math-faq) .rank-math-list-item,
body.wpc-old-template .post-inner :is(.wp-block-rank-math-faq-block, #rank-math-faq) .rank-math-list-item {
	margin: 0 !important;
	padding: 0;
	border: 0 !important;
	border-bottom: 1px solid var(--c-line-strong) !important;
	border-radius: 0;
	background: transparent;
	box-shadow: none;
	color: var(--c-ink);
	list-style: none;
}
:is(.wpc-post .post-inner, body.wpc-old-template .post-inner, .wpc-page-content) :is(.wp-block-rank-math-faq-block, #rank-math-faq) .rank-math-question,
body.wpc-old-template .post-inner :is(.wp-block-rank-math-faq-block, #rank-math-faq) .rank-math-question {
	display: block;
	position: static !important;
	margin: 0 !important;
	padding: 18px 0 !important;
	font: 600 16px/1.7 var(--font-body) !important;
	letter-spacing: normal;
	color: var(--c-ink);
	opacity: 1 !important;
}
:is(.wpc-post .post-inner, body.wpc-old-template .post-inner, .wpc-page-content) :is(.wp-block-rank-math-faq-block, #rank-math-faq) .rank-math-question::after,
body.wpc-old-template .post-inner :is(.wp-block-rank-math-faq-block, #rank-math-faq) .rank-math-question::after {
	content: none !important;
}
:is(.wpc-post .post-inner, body.wpc-old-template .post-inner, .wpc-page-content) :is(.wp-block-rank-math-faq-block, #rank-math-faq) .rank-math-question.wpc-faq-ready,
body.wpc-old-template .post-inner :is(.wp-block-rank-math-faq-block, #rank-math-faq) .rank-math-question.wpc-faq-ready {
	padding: 0 !important;
}
:is(.wpc-post .post-inner, body.wpc-old-template .post-inner, .wpc-page-content) .wpc-faq-toggle {
	appearance: none;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	width: 100%;
	margin: 0;
	padding: 18px 0;
	border: 0 !important;
	background: transparent !important;
	box-shadow: none !important;
	color: inherit;
	font: inherit;
	letter-spacing: inherit;
	line-height: inherit;
	text-align: left;
	text-transform: none;
	cursor: pointer;
}
:is(.wpc-post .post-inner, body.wpc-old-template .post-inner, .wpc-page-content) .wpc-faq-toggle::after {
	content: "";
	flex: 0 0 16px;
	width: 16px;
	height: 16px;
	background-color: var(--c-muted);
	-webkit-mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="black" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"><polyline points="6 9 12 15 18 9"/></svg>') no-repeat center / contain;
	mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="black" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"><polyline points="6 9 12 15 18 9"/></svg>') no-repeat center / contain;
	transition: transform .25s;
}
:is(.wpc-post .post-inner, body.wpc-old-template .post-inner, .wpc-page-content) .rank-math-list-item:not(.wpc-collapsed) .wpc-faq-toggle::after {
	transform: rotate(180deg);
}
:is(.wpc-post .post-inner, body.wpc-old-template .post-inner, .wpc-page-content) .wpc-faq-toggle:hover {
	color: var(--c-action);
}
:is(.wpc-post .post-inner, body.wpc-old-template .post-inner, .wpc-page-content) .wpc-faq-toggle:focus-visible {
	outline: 2px solid var(--c-focus);
	outline-offset: -2px;
	border-radius: 2px;
}
:is(.wpc-post .post-inner, body.wpc-old-template .post-inner, .wpc-page-content) :is(.wp-block-rank-math-faq-block, #rank-math-faq) .rank-math-answer,
:is(.wpc-post .post-inner, body.wpc-old-template .post-inner, .wpc-page-content) :is(.wp-block-rank-math-faq-block, #rank-math-faq) .rank-math-answer p,
body.wpc-old-template .post-inner :is(.wp-block-rank-math-faq-block, #rank-math-faq) .rank-math-answer,
body.wpc-old-template .post-inner :is(.wp-block-rank-math-faq-block, #rank-math-faq) .rank-math-answer p {
	margin: 0;
	color: var(--c-text);
	font-size: 17px;
	line-height: 1.7;
}
:is(.wpc-post .post-inner, body.wpc-old-template .post-inner, .wpc-page-content) :is(.wp-block-rank-math-faq-block, #rank-math-faq) .rank-math-answer,
body.wpc-old-template .post-inner :is(.wp-block-rank-math-faq-block, #rank-math-faq) .rank-math-answer {
	padding: 0 0 18px;
}
/* Rank Math/ReHub may set display inline; our state must win without editing content. */
:is(.wpc-post .post-inner, body.wpc-old-template .post-inner, .wpc-page-content) .rank-math-list-item.wpc-collapsed .rank-math-answer {
	display: none !important;
}
:is(.wpc-post .post-inner, body.wpc-old-template .post-inner, .wpc-page-content) .rank-math-list-item:not(.wpc-collapsed) .rank-math-answer {
	display: block !important;
}
@media print {
	:is(.wpc-post .post-inner, body.wpc-old-template .post-inner, .wpc-page-content) .rank-math-list-item.wpc-collapsed .rank-math-answer {
		display: block !important;
	}
}
