/* Editorial Trust – front end
 * Inherits the theme's fonts and text colour. Brand colour comes from
 * --etp-accent (Experts → Settings → Accent colour).
 * Selectors are doubled (.etp .etp-x) so typical theme rules like
 * ".entry-content ul" or ".entry-content h2" don't override layout.
 */

.etp {
	--etp-accent: #d99a00;
	--etp-accent-soft: #fbf0d6;
	--etp-accent-line: #f0d699;
	--etp-accent-ink: #6d4d00;
	--etp-ink: inherit;
	--etp-muted-opacity: .72;
	--etp-border: rgba(0, 0, 0, .1);
	--etp-surface: rgba(0, 0, 0, .025);
	--etp-panel-bg: #fff;
	--etp-panel-ink: #1d1d1f;
	--etp-radius: 14px;
	box-sizing: border-box;
}
.etp *, .etp *::before, .etp *::after { box-sizing: border-box; }
.etp a { text-decoration: none; }
.etp .etp-icon { display: inline-block; flex: none; vertical-align: middle; }

/* Fixed avatar sizes: some themes (e.g. Salient) force img width/height. */
.etp.etp-trust img.etp-avatar,
.etp.etp-trust .etp-avatar { width: 40px !important; height: 40px !important; max-width: none !important; }
.etp.etp-sources img.etp-avatar,
.etp.etp-sources .etp-avatar { width: 56px !important; height: 56px !important; max-width: none !important; }
.etp.etp-cta img.etp-avatar,
.etp.etp-cta .etp-avatar { width: 32px !important; height: 32px !important; max-width: none !important; }
.etp .etp-profile__photo img.etp-avatar,
.etp .etp-profile__photo .etp-avatar { width: 160px !important; height: 160px !important; max-width: none !important; }

/* Bar shown in the hero */
.etp.etp-trust--pending { display: none; }
.etp.etp-trust--in-hero { justify-content: center; margin: 20px 0 0; text-align: left; }

/* Avatars ---------------------------------------------------------- */
.etp img.etp-avatar,
.etp .etp-avatar {
	display: block;
	flex: none;
	border-radius: 50%;
	max-width: none;
	margin: 0;
	object-fit: cover;
	aspect-ratio: 1 / 1;
	height: auto;
	background: rgba(127, 127, 127, .18);
}
.etp .etp-avatar--initials {
	width: var(--etp-size, 40px);
	height: var(--etp-size, 40px);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-weight: 700;
	font-size: .8em;
	letter-spacing: .02em;
	color: var(--etp-accent-ink);
	background: var(--etp-accent-soft);
	border: 1px solid var(--etp-accent-line);
}

.etp .etp-linkedin {
	display: inline-block;
	margin-left: 6px;
	vertical-align: -1px;
	color: #0a66c2;
	opacity: .9;
	line-height: 1;
}
.etp .etp-linkedin:hover,
.etp .etp-linkedin:focus-visible { opacity: 1; }
.etp-trust--dark .etp-linkedin { color: #fff; opacity: .8; }

.etp .etp-eyebrow {
	display: inline-block;
	margin: 0 0 12px;
	padding: 5px 12px;
	border: 1px solid var(--etp-accent-line);
	border-radius: 999px;
	background: var(--etp-accent-soft);
	color: var(--etp-accent-ink);
	font-size: 12px;
	font-weight: 700;
	line-height: 1.3;
	letter-spacing: .08em;
	text-transform: uppercase;
}

/* Trust bar -------------------------------------------------------- */
.etp.etp-trust {
	position: relative;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 14px 32px;
	margin: 0 0 1.75em;
	line-height: 1.25;
	font-size: 15px;
}
.etp.etp-trust--dark { color: #fff; }
.etp .etp-trust__person {
	display: flex;
	align-items: center;
	gap: 11px;
	min-width: 0;
}
.etp .etp-trust__photo { display: block; flex: none; border-radius: 50%; }
.etp .etp-trust__text { display: flex; flex-direction: column; min-width: 0; }
.etp .etp-trust__label,
.etp .etp-trust__role {
	font-size: 13px;
	opacity: var(--etp-muted-opacity);
}
.etp .etp-trust__name {
	display: block;
	margin: 2px 0 1px;
	font-weight: 700;
	font-size: 16px;
}
.etp .etp-trust__name a { color: inherit; }
.etp .etp-trust__name a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* Fact checked toggle + panel */
.etp .etp-fc { position: relative; margin: 0; }
.etp .etp-fc__toggle {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	padding: 6px 2px;
	font-weight: 700;
	font-size: 15px;
	cursor: pointer;
	list-style: none;
	border-radius: 6px;
	user-select: none;
}
.etp .etp-fc__toggle::-webkit-details-marker { display: none; }
.etp .etp-fc__toggle::marker { content: ""; }
.etp .etp-fc__toggle .etp-icon--shield { color: var(--etp-accent); }
.etp .etp-fc__toggle span {
	text-decoration: underline;
	text-decoration-style: dotted;
	text-decoration-thickness: 1px;
	text-underline-offset: 4px;
	text-decoration-color: currentColor;
}
.etp .etp-fc__toggle:focus-visible,
.etp .etp-fc__close:focus-visible {
	outline: 2px solid var(--etp-accent);
	outline-offset: 2px;
}

.etp .etp-fc__panel {
	position: absolute;
	z-index: 60;
	top: calc(100% + 12px);
	left: 50%;
	width: min(370px, calc(100vw - 32px));
	transform: translateX(-50%);
	padding: 18px 20px 18px;
	border-radius: 12px;
	background: var(--etp-panel-bg);
	color: var(--etp-panel-ink);
	box-shadow: 0 18px 50px rgba(0, 0, 0, .18), 0 2px 6px rgba(0, 0, 0, .08);
	font-size: 14px;
	line-height: 1.5;
	text-align: left;
}
.etp .etp-fc__panel::before {
	content: "";
	position: absolute;
	top: -7px;
	left: calc(50% - 7px);
	width: 14px;
	height: 14px;
	background: var(--etp-panel-bg);
	transform: rotate(45deg);
	border-radius: 2px;
}
.etp .etp-fc.is-above .etp-fc__panel { top: auto; bottom: calc(100% + 12px); }
.etp .etp-fc.is-above .etp-fc__panel::before { top: auto; bottom: -7px; }
.etp .etp-fc.is-left .etp-fc__panel { left: 0; transform: none; }
.etp .etp-fc.is-left .etp-fc__panel::before { left: 24px; }
.etp .etp-fc.is-right .etp-fc__panel { left: auto; right: 0; transform: none; }
.etp .etp-fc.is-right .etp-fc__panel::before { left: auto; right: 24px; }

.etp .etp-fc__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.etp .etp-fc__title { margin: 0 0 6px; font-weight: 700; font-size: 16px; line-height: 1.3; color: inherit; }
.etp.etp-trust .etp-fc button.etp-fc__close {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	margin: -4px -6px 0 0;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: inherit;
	opacity: .6;
	cursor: pointer;
	box-shadow: none;
	min-height: 0;
}
.etp.etp-trust .etp-fc button.etp-fc__close:hover { opacity: 1; background: rgba(0, 0, 0, .06); color: inherit; }
.etp .etp-fc__summary { margin: 0 0 12px; color: inherit; }
.etp .etp-fc__people { margin: 0 0 12px; padding: 12px 0 0; border-top: 1px solid rgba(0, 0, 0, .08); display: grid; gap: 10px; }
.etp .etp-fc__people > div { margin: 0; }
.etp .etp-fc__people dt { margin: 0; font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; opacity: .62; }
.etp .etp-fc__people dd { margin: 2px 0 0; padding: 0; }
.etp .etp-fc__people dd a { font-weight: 700; color: inherit; }
.etp .etp-fc__people dd a:hover { text-decoration: underline; }
.etp .etp-fc__people dd span { display: block; font-size: 13px; opacity: .72; }
.etp .etp-fc__subhead { margin: 0 0 6px; font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; opacity: .62; }
.etp ul.etp-fc__list { margin: 0 0 10px; padding: 0; list-style: none; }
.etp ul.etp-fc__list li {
	position: relative;
	margin: 0 0 4px;
	padding: 0 0 0 22px;
	list-style: none;
}
.etp ul.etp-fc__list li::before {
	content: "";
	position: absolute;
	left: 3px;
	top: .42em;
	width: 10px;
	height: 6px;
	border-left: 2px solid var(--etp-accent);
	border-bottom: 2px solid var(--etp-accent);
	transform: rotate(-45deg);
}
.etp .etp-fc__guidelines { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--etp-accent-ink); }
.etp .etp-fc__guidelines:hover { text-decoration: underline; }

/* Panel while open: moved to <body> by the script so hero sections can't clip it */
.etp.etp-fc-portal {
	position: absolute;
	z-index: 99999;
	top: 0;
	left: 0;
	width: min(370px, calc(100vw - 32px));
}
.etp.etp-fc-portal .etp-fc__panel {
	position: relative;
	top: auto;
	bottom: auto;
	left: auto;
	right: auto;
	width: 100%;
	margin: 0;
	transform: none;
}
.etp.etp-fc-portal .etp-fc__panel::before { left: calc(var(--etp-arrow-x, 50%) - 7px); right: auto; top: -7px; bottom: auto; }
.etp.etp-fc-portal.is-above .etp-fc__panel::before { top: auto; bottom: -7px; }
.etp.etp-fc-portal button.etp-fc__close {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	margin: -4px -6px 0 0;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: inherit;
	opacity: .6;
	cursor: pointer;
	box-shadow: none;
	min-height: 0;
}
.etp.etp-fc-portal button.etp-fc__close:hover { opacity: 1; background: rgba(0, 0, 0, .06); color: inherit; }

/* CTA -------------------------------------------------------------- */
.etp.etp-cta {
	display: flex;
	align-items: center;
	gap: 12px;
	margin: 1.5em 0;
	padding: 12px 16px;
	border: 1px solid var(--etp-border);
	border-radius: 12px;
	font-size: 15px;
	line-height: 1.4;
}
.etp .etp-cta__text { margin: 0; }
.etp .etp-cta__q { opacity: .8; margin-right: 4px; }
.etp .etp-cta__link {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	font-weight: 700;
	color: var(--etp-accent-ink);
	border-bottom: 1px solid var(--etp-accent-line);
}
.etp .etp-cta__link:hover { border-bottom-color: currentColor; }
.etp-trust + .etp-cta { margin-top: -0.5em; }

/* Sources ---------------------------------------------------------- */
.etp.etp-sources {
	margin: 2.5em 0;
	padding: clamp(20px, 3.5vw, 32px);
	border: 1px solid var(--etp-border);
	border-radius: var(--etp-radius);
	background: var(--etp-surface);
	line-height: 1.5;
}
.etp .etp-sources__heading {
	margin: 0 0 6px;
	padding: 0;
	font-size: clamp(22px, 2.6vw, 28px);
	line-height: 1.2;
}
.etp .etp-sources__intro { margin: 0 0 22px; font-size: 16px; opacity: .8; }
.etp .etp-sources__body {
	display: grid;
	grid-template-columns: minmax(180px, 240px) 1fr;
	gap: 28px;
	align-items: start;
}
.etp .etp-sources__people { display: grid; gap: 16px; }
.etp .etp-sources__person { display: flex; align-items: center; gap: 12px; }
.etp .etp-sources__who { display: flex; flex-direction: column; min-width: 0; }
.etp .etp-sources__label,
.etp .etp-sources__role { font-size: 13px; opacity: .72; }
.etp .etp-sources__name { display: block; font-weight: 700; font-size: 16px; }
.etp .etp-sources__name a { color: inherit; }
.etp .etp-sources__name a:hover { text-decoration: underline; }
.etp .etp-sources__list-heading {
	margin: 0 0 10px;
	padding: 0;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: .06em;
	text-transform: uppercase;
	opacity: .7;
}
.etp .etp-sources__list ul { margin: 0; padding: 0; list-style: none; }
.etp .etp-sources__list li {
	margin: 0;
	padding: 9px 0;
	font-size: 16px;
	line-height: 1.4;
	border-top: 1px solid var(--etp-border);
	list-style: none;
}
.etp .etp-sources__list li:first-child { border-top: 0; padding-top: 0; }
.etp .etp-sources__list li::before { content: none; }
.etp .etp-sources__list a {
	color: inherit;
	font-weight: 600;
	text-decoration: underline;
	text-decoration-color: var(--etp-accent-line);
	text-decoration-thickness: 2px;
	text-underline-offset: 3px;
}
.etp .etp-sources__list a:hover { text-decoration-color: var(--etp-accent); }
.etp .etp-sources__domain { display: block; font-size: 13px; opacity: .6; }
.etp .etp-sources__disclaimer {
	margin: 22px 0 0;
	padding: 14px 0 0;
	border-top: 1px solid var(--etp-border);
	font-size: 13px;
	opacity: .75;
}

/* Update history */
.etp.etp-history { margin: 18px 0 0; font-size: 14px; }
.etp-history-wrap { margin: 2em 0; }
.etp.etp-history summary {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-weight: 700;
	cursor: pointer;
	list-style: none;
}
.etp.etp-history summary::-webkit-details-marker { display: none; }
.etp.etp-history summary::before {
	content: "";
	width: 7px;
	height: 7px;
	border-right: 2px solid currentColor;
	border-bottom: 2px solid currentColor;
	transform: rotate(-45deg);
	transition: transform .15s ease;
}
.etp.etp-history[open] summary::before { transform: rotate(45deg); }
.etp .etp-history__count { font-weight: 400; opacity: .6; }
.etp ol.etp-history__list { margin: 10px 0 0; padding: 0 0 0 15px; list-style: none; border-left: 2px solid var(--etp-accent-line); }
.etp ol.etp-history__list li { margin: 0 0 8px; padding: 0 0 0 4px; list-style: none; }
.etp ol.etp-history__list time { display: block; font-weight: 600; font-size: 13px; }

/* Profile ---------------------------------------------------------- */
.etp-single-person__inner { max-width: 880px; margin: 0 auto; padding: clamp(32px, 6vw, 72px) 20px; }
.etp.etp-profile { line-height: 1.6; }
.etp .etp-profile__hero {
	display: grid;
	grid-template-columns: 160px 1fr;
	gap: 32px;
	align-items: center;
	margin: 0 0 40px;
}
.etp .etp-profile__photo .etp-avatar { width: 160px; height: 160px; font-size: 40px; }
.etp .etp-profile__name { margin: 0 0 10px; line-height: 1.1; }
.etp .etp-profile__summary { margin: 0 0 18px; font-size: 1.08em; opacity: .85; }
.etp .etp-profile__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.etp .etp-btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 10px 18px;
	border: 2px solid var(--etp-accent);
	border-radius: 999px;
	background: var(--etp-accent);
	color: #fff;
	font-weight: 700;
	line-height: 1.2;
}
.etp .etp-btn:hover { filter: brightness(.95); }
.etp .etp-btn--ghost { background: transparent; color: inherit; border-color: var(--etp-border); }
.etp .etp-btn--ghost .etp-icon { color: #0a66c2; }
.etp .etp-profile__section,
.etp.etp-expertise,
.etp.etp-articles,
.etp .etp-expertise,
.etp .etp-articles { margin: 0 0 44px; }
.etp .etp-section-heading { margin: 0 0 14px; line-height: 1.2; }

.etp ul.etp-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.etp ul.etp-chips li {
	margin: 0;
	padding: 7px 14px;
	border: 1px solid var(--etp-border);
	border-radius: 999px;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.2;
	list-style: none;
}
.etp ul.etp-chips li::before { content: none; }
.etp ul.etp-quals { margin: 0; padding: 0; list-style: none; }
.etp ul.etp-quals li { margin: 0; padding: 10px 0; border-top: 1px solid var(--etp-border); list-style: none; }
.etp ul.etp-quals li:last-child { border-bottom: 1px solid var(--etp-border); }

/* Written by / Reviewed by cards */
.etp ul.etp-cards { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--etp-border); }
.etp .etp-card {
	display: grid;
	grid-template-columns: 160px 1fr;
	gap: 20px;
	align-items: start;
	margin: 0;
	padding: 20px 0;
	border-bottom: 1px solid var(--etp-border);
	list-style: none;
}
.etp .etp-card::before { content: none; }
.etp .etp-card__media { position: relative; display: block; border-radius: 10px; overflow: hidden; aspect-ratio: 4 / 3; background: rgba(127, 127, 127, .1); }
.etp .etp-card__media img,
.etp img.etp-card__img {
	/* !important: some themes (e.g. Twenty Twenty-One) set inline width/height on images with JS. */
	position: absolute; inset: 0; display: block; width: 100% !important; height: 100% !important; max-width: none !important; margin: 0; object-fit: cover; border-radius: 0;
}
.etp .etp-card__placeholder { display: block; width: 100%; height: 100%; background: linear-gradient(135deg, var(--etp-accent-soft), rgba(127, 127, 127, .08)); }
.etp .etp-card__title { display: block; margin: 0 0 6px; font-size: 18px; font-weight: 700; line-height: 1.3; color: inherit; }
.etp .etp-card__title:hover { text-decoration: underline; text-underline-offset: 3px; }
.etp .etp-card__excerpt { margin: 0 0 8px; font-size: 15px; line-height: 1.55; opacity: .82; }
.etp .etp-card__date { margin: 0; font-size: 13px; opacity: .65; }
.etp .etp-cards-more { margin: 14px 0 0; }
.etp .etp-cards-more > summary {
	display: inline-flex;
	padding: 9px 16px;
	border: 1px solid var(--etp-border);
	border-radius: 999px;
	font-weight: 700;
	font-size: 14px;
	cursor: pointer;
	list-style: none;
}
.etp .etp-cards-more > summary::-webkit-details-marker { display: none; }
.etp .etp-cards-more[open] > summary { display: none; }
.etp .etp-cards-more[open] ul.etp-cards { border-top: 0; }

/* Tablet ----------------------------------------------------------- */
@media (max-width: 900px) {
	.etp .etp-sources__body { grid-template-columns: 1fr; gap: 20px; }
}

/* Mobile ----------------------------------------------------------- */
@media (max-width: 640px) {
	.etp.etp-trust { gap: 10px 14px; }
	.etp .etp-trust__person { flex: 1 1 calc(50% - 14px); gap: 8px; }
	.etp.etp-trust .etp-trust__photo .etp-avatar { width: 32px !important; height: 32px !important; font-size: 11px; }
	.etp .etp-profile__photo img.etp-avatar,
	.etp .etp-profile__photo .etp-avatar { width: 112px !important; height: 112px !important; }
	.etp .etp-trust__role { display: none; }
	.etp .etp-trust__label { font-size: 12px; }
	.etp .etp-trust__name { font-size: 14px; }
	.etp .etp-fc { flex: 1 1 100%; }
	.etp .etp-fc__panel,
	.etp .etp-fc.is-left .etp-fc__panel,
	.etp .etp-fc.is-right .etp-fc__panel,
	.etp .etp-fc.is-above .etp-fc__panel {
		position: relative;
		top: auto;
		bottom: auto;
		left: auto;
		right: auto;
		width: 100%;
		margin-top: 10px;
		transform: none;
	}
	.etp .etp-fc__panel::before,
	.etp .etp-fc.is-above .etp-fc__panel::before { top: -7px; bottom: auto; left: 24px; right: auto; }
	.etp.etp-cta { align-items: flex-start; }
	.etp .etp-profile__hero { grid-template-columns: 1fr; gap: 18px; text-align: left; }
	.etp .etp-profile__photo .etp-avatar { width: 112px; height: 112px; font-size: 30px; }
	.etp .etp-card { grid-template-columns: 96px 1fr; gap: 14px; padding: 16px 0; }
	.etp .etp-card__media { aspect-ratio: 1 / 1; }
	.etp .etp-card__title { font-size: 16px; }
	.etp .etp-card__excerpt { font-size: 14px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
}

@media (prefers-reduced-motion: reduce) {
	.etp * { transition: none !important; }
}

@media print {
	.etp .etp-fc__panel { display: none; }
	.etp.etp-cta { display: none; }
}
