/**
 * Listings médecin – parcours & publications (shortcodes Elementor)
 * Couleurs explicites pour résister aux styles Elementor globaux.
 */

.benarroche-doctor-career,
.benarroche-doctor-publications {
	width: 100%;
	font-family: var(--benarroche-font-sans, "Metropolis", sans-serif);
	font-size: 0.9375rem;
	line-height: 1.55;
	color: #2d3748;
}

.benarroche-doctor-career a,
.benarroche-doctor-publications a {
	color: var(--benarroche-primary);
	text-decoration: none;
}

.benarroche-doctor-career a:hover,
.benarroche-doctor-publications a:hover {
	color: var(--benarroche-primary-hover);
	text-decoration: underline;
}

/* —— Parcours académique —— */

.benarroche-doctor-career__timeline {
	list-style: none;
	margin: 0;
	padding: 0;
}

.benarroche-doctor-career__step {
	position: relative;
	display: grid;
	grid-template-columns: 16px 1fr;
	gap: 0 0.85rem;
	padding-bottom: 0.85rem;
}

.benarroche-doctor-career__step:last-child {
	padding-bottom: 0;
}

.benarroche-doctor-career__step:not(:last-child)::before {
	content: "";
	position: absolute;
	left: 7px;
	top: 14px;
	bottom: 0;
	width: 1px;
	background: #cbd5e0;
}

.benarroche-doctor-career__marker {
	position: relative;
	z-index: 1;
	width: 9px;
	height: 9px;
	margin-top: 0.45rem;
	border-radius: 50%;
	background: #fff;
	border: 2px solid var(--benarroche-primary);
	box-shadow: none;
}

.benarroche-doctor-career__card {
	display: flex;
	gap: 0.65rem;
	align-items: flex-start;
	padding: 0;
	background: transparent;
	border: none;
	border-radius: 0;
	box-shadow: none;
}

.benarroche-doctor-career__logo {
	flex: 0 0 36px;
	width: 36px;
	height: 36px;
	margin: 0;
	border-radius: 4px;
	background: #f7fafc;
	border: 1px solid #e2e8f0;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
}

.benarroche-doctor-career__logo img {
	display: block;
	max-width: 100%;
	max-height: 100%;
	object-fit: contain;
}

.benarroche-doctor-career__body {
	flex: 1;
	min-width: 0;
}

.benarroche-doctor-career__period {
	margin: 0 0 0.15rem;
	font-size: 0.75rem;
	font-weight: 600;
	color: var(--benarroche-primary);
}

.benarroche-doctor-career__title {
	margin: 0;
	font-size: 0.9375rem;
	font-weight: 600;
	line-height: 1.45;
	color: #2d3748;
}

.benarroche-doctor-career__title a {
	color: #2d3748;
	font-weight: 600;
}

.benarroche-doctor-career__title a:hover {
	color: var(--benarroche-primary);
}

.benarroche-doctor-career__desc {
	margin: 0.2rem 0 0;
	font-size: 0.8125rem;
	line-height: 1.5;
	color: #718096;
}

/* Variante cartes */
.benarroche-doctor-career--cards .benarroche-doctor-career__timeline {
	display: grid;
	gap: 0.65rem;
}

@media (min-width: 768px) {
	.benarroche-doctor-career--cards .benarroche-doctor-career__timeline {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

.benarroche-doctor-career--cards .benarroche-doctor-career__step {
	display: block;
	padding-bottom: 0;
}

.benarroche-doctor-career--cards .benarroche-doctor-career__step::before,
.benarroche-doctor-career--cards .benarroche-doctor-career__marker {
	display: none;
}

.benarroche-doctor-career--cards .benarroche-doctor-career__card {
	padding: 0.75rem 0.85rem;
	background: #f7fafc;
	border: 1px solid #e2e8f0;
	border-radius: 6px;
}

/* —— Publications —— */

.benarroche-doctor-publications__timeline {
	list-style: none;
	margin: 0;
	padding: 0;
}

.benarroche-doctor-publications__timeline-item {
	display: grid;
	grid-template-columns: 3.25rem 1fr;
	gap: 0 1rem;
	padding: 0.65rem 0;
	border-bottom: 1px solid #edf2f7;
	align-items: baseline;
}

.benarroche-doctor-publications__timeline-item:first-child {
	padding-top: 0;
}

.benarroche-doctor-publications__timeline-item:last-child {
	border-bottom: none;
	padding-bottom: 0;
}

.benarroche-doctor-publications__year {
	display: block;
	font-size: 0.875rem;
	font-weight: 700;
	line-height: 1.3;
	color: var(--benarroche-primary);
	font-variant-numeric: tabular-nums;
}

.benarroche-doctor-publications__content {
	min-width: 0;
}

.benarroche-doctor-publications__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 0.35rem;
	margin: 0 0 0.25rem;
}

.benarroche-doctor-publications__type {
	display: inline-block;
	font-size: 0.625rem;
	font-weight: 700;
	line-height: 1;
	padding: 0.25rem 0.45rem;
	border-radius: 999px;
	background: #ebf4ff;
	color: var(--benarroche-primary);
	text-transform: uppercase;
	letter-spacing: 0.04em;
}

.benarroche-doctor-publications__link {
	display: inline;
	font-size: 0.9375rem;
	font-weight: 500;
	line-height: 1.45;
	color: #2d3748;
	text-decoration: none;
}

.benarroche-doctor-publications a.benarroche-doctor-publications__link {
	color: #2d3748;
}

.benarroche-doctor-publications a.benarroche-doctor-publications__link:hover {
	color: var(--benarroche-primary);
	text-decoration: underline;
}

.benarroche-doctor-publications__link--plain {
	color: #2d3748;
}

.benarroche-doctor-publications__summary {
	margin: 0.25rem 0 0;
	font-size: 0.8125rem;
	line-height: 1.5;
	color: #718096;
}

.benarroche-doctor-publications__footer {
	margin-top: 1.25rem;
	text-align: center;
}

.benarroche-doctor-publications__archive-link {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	font-size: 0.875rem;
	font-weight: 600;
	color: var(--benarroche-primary);
	text-decoration: none;
	padding: 0.5rem 1rem;
	border: 1px solid var(--benarroche-primary);
	border-radius: 4px;
	transition: background 0.2s ease, color 0.2s ease;
}

.benarroche-doctor-publications__archive-link:hover {
	background: var(--benarroche-primary);
	color: #fff;
	text-decoration: none;
}

/* Layout list (profil médecin) */
.benarroche-doctor-publications--list .benarroche-doctor-publications-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.benarroche-doctor-publications--list .benarroche-doctor-publications-item {
	padding: 0.65rem 0;
	border-bottom: 1px solid #edf2f7;
}

.benarroche-doctor-publications--list .benarroche-doctor-publications-item:last-child {
	border-bottom: none;
}

.benarroche-doctor-publications--list .benarroche-doctor-publications-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem;
	margin: 0 0 0.25rem;
}

.benarroche-doctor-publications--list .benarroche-doctor-publications-type,
.benarroche-doctor-publications--list .benarroche-doctor-publications-year {
	display: inline-block;
	font-size: 0.6875rem;
	font-weight: 600;
	line-height: 1;
	padding: 0.25rem 0.45rem;
	border-radius: 999px;
}

.benarroche-doctor-publications--list .benarroche-doctor-publications-type {
	background: var(--benarroche-primary);
	color: #fff;
}

.benarroche-doctor-publications--list .benarroche-doctor-publications-year {
	background: #f7fafc;
	color: var(--benarroche-primary);
	border: 1px solid #e2e8f0;
}

.benarroche-doctor-publications--list .benarroche-doctor-publications-title {
	display: block;
	font-size: 0.9375rem;
	font-weight: 500;
	color: #2d3748;
	text-decoration: none;
	line-height: 1.45;
}

.benarroche-doctor-publications--list a.benarroche-doctor-publications-title {
	color: #2d3748;
}

.benarroche-doctor-publications--list a.benarroche-doctor-publications-title:hover {
	color: var(--benarroche-primary);
	text-decoration: underline;
}

.benarroche-doctor-publications--list .benarroche-doctor-publications-summary {
	margin: 0.25rem 0 0;
	font-size: 0.8125rem;
	color: #718096;
	line-height: 1.5;
}

/* Layout cards */
.benarroche-doctor-publications--cards .benarroche-doctor-publications-list {
	display: grid;
	gap: 0.65rem;
	list-style: none;
	margin: 0;
	padding: 0;
}

@media (min-width: 768px) {
	.benarroche-doctor-publications--cards .benarroche-doctor-publications-list {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

.benarroche-doctor-publications--cards .benarroche-doctor-publications-item {
	border: 1px solid #e2e8f0;
	border-radius: 6px;
	padding: 0.75rem 0.85rem;
	background: #f7fafc;
}

@media (max-width: 640px) {
	.benarroche-doctor-publications__timeline-item {
		grid-template-columns: 2.75rem 1fr;
		gap: 0 0.75rem;
	}
}
