/*
 * Trust, E-E-A-T and editorial-credibility component styles.
 *
 * Loaded conditionally on singular views (see inc/conditional-assets.php).
 * Pairs with inc/trust.php and the existing editorial-blocks.css to
 * present credibility signals without inventing them — every block
 * collapses when its data is empty.
 */

/* ----------------------------------------------------------------- */
/*  Inline citation + sources list                                    */
/* ----------------------------------------------------------------- */
.rw-citation {
	font-size: 0.75em;
	margin-left: 0.15rem;
}
.rw-citation a {
	color: var(--rw-color-primary);
	text-decoration: none;
	padding: 0 0.15rem;
	border-radius: 3px;
}
.rw-citation a:hover {
	background: var(--rw-color-primary);
	color: #fff;
}

.rw-sources {
	margin: 2rem 0;
	padding: 1.25rem 1.5rem;
	background: var(--rw-color-bg-soft);
	border-radius: var(--rw-radius);
	border-left: 4px solid var(--rw-color-primary);
}
.rw-sources__title {
	margin: 0 0 0.75rem;
	font-size: 1rem;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--rw-color-secondary);
}
.rw-sources__list {
	margin: 0;
	padding-left: 1.5rem;
	color: var(--rw-color-text);
}
.rw-sources__item {
	margin-bottom: 0.4rem;
	font-size: 0.95rem;
}
.rw-sources__item a {
	color: var(--rw-color-primary);
	text-decoration: none;
	word-break: break-word;
}
.rw-sources__item a:hover { text-decoration: underline; }
.rw-sources__note {
	display: block;
	color: var(--rw-color-text-muted);
	font-size: 0.85rem;
	margin-top: 0.15rem;
}
.rw-sources__item:target {
	background: #fef3c7;
	padding: 0.2rem 0.4rem;
	border-radius: 4px;
	margin-left: -0.4rem;
}

/* ----------------------------------------------------------------- */
/*  Affiliate disclosure (standalone)                                 */
/* ----------------------------------------------------------------- */
.rw-affiliate-disclosure {
	margin: 1.5rem 0;
	padding: 0.75rem 1rem;
	background: #fffbeb;
	border: 1px dashed #d97706;
	border-radius: var(--rw-radius);
	font-size: 0.85rem;
	color: #92400e;
	font-style: italic;
}
.rw-affiliate-disclosure p { margin: 0; }

/* ----------------------------------------------------------------- */
/*  Trust badges strip                                                */
/* ----------------------------------------------------------------- */
.rw-trust-badges {
	margin: 1.5rem 0;
}
.rw-trust-badges__list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem 0.5rem;
}
.rw-trust-badges__item {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	padding: 0.3rem 0.7rem;
	border-radius: 999px;
	background: var(--rw-color-bg-soft);
	border: 1px solid var(--rw-color-border);
	font-size: 0.8rem;
	font-weight: 500;
	color: var(--rw-color-secondary);
}
.rw-trust-badges__item::before {
	content: "\2713";
	color: #059669;
	font-weight: 700;
}

/* ----------------------------------------------------------------- */
/*  Content feedback / correction CTA                                 */
/* ----------------------------------------------------------------- */
.rw-content-feedback {
	margin: 1.5rem 0;
	padding: 0.85rem 1.1rem;
	border: 1px solid var(--rw-color-border);
	border-radius: var(--rw-radius);
	background: var(--rw-color-bg);
	font-size: 0.9rem;
}
.rw-content-feedback p {
	margin: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem;
	align-items: baseline;
}
.rw-content-feedback__helper {
	color: var(--rw-color-text-muted);
}
.rw-content-feedback__link {
	color: var(--rw-color-primary);
	text-decoration: none;
	font-weight: 600;
}
.rw-content-feedback__link:hover { text-decoration: underline; }

/* ----------------------------------------------------------------- */
/*  Print: keep trust blocks legible but neutral                      */
/* ----------------------------------------------------------------- */
@media print {
	.rw-sources,
	.rw-affiliate-disclosure,
	.rw-trust-badges,
	.rw-content-feedback {
		background: transparent !important;
		border: 1pt solid #444 !important;
		page-break-inside: avoid;
	}
	.rw-trust-badges__item { border: 1pt solid #444 !important; }
}
