/**
 * Publications frontend styles.
 *
 * Deliberately small. Layout, spacing, and colour for the page as a whole come
 * from the Elementor templates and the site kit; this file only styles the two
 * pieces of markup the plugin itself outputs (the filter row and the key
 * takeaways list) and pins them to the kit's global colour variables so a kit
 * change carries through.
 */

/* ---- Type filter row: [publication_filters] ---- */

.ipub-filters {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 10px;
	margin: 0 0 34px;
}

.ipub-chip {
	display: inline-block;
	padding: 8px 18px;
	border: 1px solid #dde3ea;
	border-radius: 999px;
	background: #fff;
	color: var( --e-global-color-text, #7a7a7a );
	font-family: var( --e-global-typography-primary-font-family, "Montserrat" ), sans-serif;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.04em;
	line-height: 1.4;
	text-decoration: none;
	transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.ipub-chip:hover,
.ipub-chip:focus-visible {
	border-color: var( --e-global-color-accent, #0f4c81 );
	color: var( --e-global-color-accent, #0f4c81 );
}

.ipub-chip:focus-visible {
	outline: 2px solid var( --e-global-color-accent, #0f4c81 );
	outline-offset: 2px;
}

.ipub-chip.is-active,
.ipub-chip.is-active:hover {
	background: var( --e-global-color-accent, #0f4c81 );
	border-color: var( --e-global-color-accent, #0f4c81 );
	color: #fff;
}

/* ---- Key takeaways list ---- */

.ipub-takeaways {
	margin: 0;
	padding: 0;
	list-style: none;
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.ipub-takeaways li {
	position: relative;
	padding-left: 26px;
	line-height: 1.7;
}

.ipub-takeaways li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0.62em;
	width: 9px;
	height: 9px;
	border-radius: 50%;
	background: var( --e-global-color-secondary, #b70000 );
}

/* ---- Details panel: [publication_details] ---- */

.ipub-details {
	display: grid;
	grid-template-columns: auto 1fr;
	gap: 9px 14px;
	margin: 0;
	font-size: 13px;
}

.ipub-details dt {
	color: var( --e-global-color-text, #7a7a7a );
}

.ipub-details dd {
	margin: 0;
	text-align: right;
	font-weight: 600;
	color: var( --e-global-color-primary, #1e1e1e );
}

/* ---- Citation: [publication_citation] ---- */

.ipub-citation {
	margin: 0;
	font-size: 13px;
	line-height: 1.65;
}
