/**
 * @file plugins/generic/anuda/css/anuda.css
 *
 * Distributed under the GNU GPL v3. For full terms see the file LICENSE.
 *
 * Dashboard, sidebar widget and article card.
 *
 * The plugin brings no typography or palette of its own: text inherits the
 * theme's font, headings are the theme's headings, buttons and notices reuse
 * the platform classes (cmp_button, cmp_notification) and colours come from
 * the theme at runtime. js/help.js reads the theme (text colour, background,
 * content link, button radius) and sets the --bx-auto-* properties on each
 * plugin root. A theme that wants something else may define the public
 * properties below; the last fallbacks are neutral (current text colour and
 * grey transparency), so nothing depends on a particular theme.
 *
 * Public properties: --bx-accent, --bx-on-accent, --bx-accent-soft, --bx-ink,
 * --bx-surface, --bx-muted, --bx-border, --bx-border-strong, --bx-fill,
 * --bx-radius, and per measure --bx-production, --bx-views, --bx-downloads,
 * --bx-citations (all default to the accent).
 */

.bx,
.bx-block,
.bx-card-article {
	--bxi-accent: var(--bx-accent, var(--bx-auto-accent, currentColor));
	--bxi-on-accent: var(--bx-on-accent, var(--bx-auto-on-accent, Canvas));
	--bxi-accent-soft: var(--bx-accent-soft, var(--bx-auto-accent-soft, rgba(128, 128, 128, 0.1)));
	--bxi-ink: var(--bx-ink, var(--bx-auto-ink, CanvasText));
	--bxi-surface: var(--bx-surface, var(--bx-auto-surface, Canvas));
	--bxi-muted: var(--bx-muted, var(--bx-auto-muted, currentColor));
	--bxi-line: var(--bx-border, var(--bx-auto-line, rgba(128, 128, 128, 0.3)));
	--bxi-frame: var(--bx-border-strong, var(--bx-auto-frame, rgba(128, 128, 128, 0.6)));
	--bxi-fill: var(--bx-fill, var(--bx-auto-fill, rgba(128, 128, 128, 0.06)));
	--bxi-radius: var(--bx-radius, var(--bx-auto-radius, 3px));
}

/* the same measure keeps the same colour across charts and ranked lists */
.bx-series--production { --bxi-mark: var(--bx-production, var(--bxi-accent)); }
.bx-series--views { --bxi-mark: var(--bx-views, var(--bxi-accent)); }
.bx-series--downloads { --bxi-mark: var(--bx-downloads, var(--bxi-accent)); }
.bx-series--citations { --bxi-mark: var(--bx-citations, var(--bxi-accent)); }

/* form controls carry the browser's font: they take the surrounding text's
   (zero specificity, so a theme's own button font still applies) */
:where(.bx, .bx-block, .bx-card-article) :where(button, input, select, textarea) {
	font-family: inherit;
}

/* Keyboard focus: the theme's own focus style wins wherever it has one
   (zero-specificity selector); otherwise an outline in the accent. */
:where(.bx, .bx-block, .bx-card-article) :where(a, button, summary, [tabindex]):focus-visible {
	outline: 2px solid var(--bxi-accent);
	outline-offset: 2px;
}

/* ------------------------------------------------------------ page */

/* Themes centre sidebar-less pages in a narrow reading column; the dashboard
   uses the whole content width instead. */
@media (min-width: 992px) {
	body.pkp_page_bibliometrics .pkp_structure_main {
		float: none;
		width: auto;
		margin-left: 0;
		margin-right: 0;
	}
	body.pkp_page_bibliometrics .pkp_structure_main::before,
	body.pkp_page_bibliometrics .pkp_structure_main::after {
		display: none;
	}
}

.bx {
	max-width: 1180px;
	margin: 0 auto;
	padding-block: 0.5rem 3rem;
}

.bx-head {
	margin-bottom: 1.25rem;
}

.bx-eyebrow {
	margin: 0 0 0.25rem;
	font-size: 0.8em;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--bxi-muted);
}

/* the theme's h1; only the spacing is adjusted */
.bx .bx-title {
	margin: 0 0 0.5rem;
}

/* the initials of the acronym stand out by weight, in the heading's colour */
.bx-title__phrase {
	font-weight: normal;
}

.bx-title__initial,
.bx-title__acronym {
	font-weight: bold;
}

.bx-title__acronym {
	letter-spacing: 0.03em;
	white-space: nowrap;
}

.bx-tagline {
	margin: -0.25rem 0 0.75rem;
	font-style: italic;
	color: var(--bxi-muted);
}

.bx-lede {
	max-width: 62em;
	margin: 0;
}

.bx-stamp {
	margin: 0.5rem 0 0;
	font-size: 0.9em;
	color: var(--bxi-muted);
}

.bx-empty {
	padding: 1.5rem;
	border: 1px solid var(--bxi-line);
	border-radius: var(--bxi-radius);
	background: var(--bxi-fill);
}

/* toolbar: one filter row scoping the whole page */
.bx-toolbar {
	position: sticky;
	top: 0;
	z-index: 5;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.5rem 1rem;
	margin: 0 0 1.25rem;
	padding: 0.625rem 0;
	border-bottom: 1px solid var(--bxi-line);
	background: var(--bxi-surface);
}

.bx-toolbar__label {
	font-size: 0.8em;
	font-weight: bold;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--bxi-muted);
}

.bx-toolbar__note {
	flex: 1 1 280px;
	margin: 0;
	font-size: 0.9em;
	color: var(--bxi-muted);
}

.bx-seg {
	display: inline-flex;
	flex-wrap: wrap;
	border: 1px solid var(--bxi-frame);
	border-radius: var(--bxi-radius);
}

.bx-seg button {
	min-height: 2.25rem;
	margin: 0;
	padding: 0 1em;
	border: 0;
	border-left: 1px solid var(--bxi-frame);
	border-radius: 0;
	background: transparent;
	color: inherit;
	font: inherit;
	font-size: 0.95em;
	line-height: 1.2;
	cursor: pointer;
}

.bx-seg button:first-child {
	border-left: 0;
	border-radius: var(--bxi-radius) 0 0 var(--bxi-radius);
}

.bx-seg button:last-child {
	border-radius: 0 var(--bxi-radius) var(--bxi-radius) 0;
}

/* the ring is drawn inside controls that sit edge to edge (zero specificity: a theme ring wins) */
:where(.bx-seg button, .bx-tab):focus-visible {
	outline-offset: -3px;
}

/* the tab row hides its overflow: the ring stays inside even where a theme styles focused buttons */
.bx .bx-tabs .bx-tab:focus-visible {
	outline: 2px solid var(--bxi-accent);
	outline-offset: -3px;
	box-shadow: none;
}

.bx-seg button:hover {
	background: var(--bxi-fill);
}

.bx-seg button[aria-pressed="true"] {
	background: var(--bx-accent, var(--bx-auto-accent, CanvasText));
	color: var(--bxi-on-accent);
	font-weight: bold;
}

@media (max-width: 600px) {
	.bx-toolbar {
		position: static;
	}
	.bx-seg {
		display: grid;
		grid-template-columns: repeat(3, minmax(0, 1fr));
		width: 100%;
	}
	.bx-seg button {
		padding: 0.375rem 0.25rem;
	}
	.bx-card,
	.bx-tabpanel {
		padding: 0.875rem 0.75rem;
	}
	.bx-card.bx-card--flush {
		padding: 0;
	}
	.bx-row {
		grid-template-columns: 1.6em minmax(0, 1fr) auto;
	}
}

/* sections: the titles are the theme's h2 */
.bx-section {
	margin: 0 0 2.25rem;
	scroll-margin-top: calc(var(--bx-toolbar-h, 4rem) + 0.5rem);
}

.bx-section__head {
	margin-bottom: 0.875rem;
}

.bx .bx-section__head h2,
.bx .bx-method h2 {
	margin: 0 0 0.25rem;
}

.bx-section__lede {
	margin: 0;
	color: var(--bxi-muted);
}

.bx-section__note {
	margin: 0.25rem 0 0;
	font-size: 0.9em;
	color: var(--bxi-muted);
}

.bx-grid {
	display: grid;
	gap: 1rem;
}

.bx-grid--2 {
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
}

.bx-grid--wide {
	grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
}

@media (max-width: 900px) {
	.bx-grid--wide {
		grid-template-columns: minmax(0, 1fr);
	}
}

/* a thin frame keeps each chart or list readable as a unit */
.bx-card {
	min-width: 0;
	margin: 0;
	padding: 1.125rem 1.25rem;
	border: 1px solid var(--bxi-line);
	border-radius: var(--bxi-radius);
}

.bx-card--flush {
	padding: 0;
}

/* the theme's h3, without its page-level margins */
.bx .bx-card__title {
	margin: 0 0 0.125rem;
}

.bx-card__note {
	margin: 0 0 0.75rem;
	font-size: 0.9em;
	color: var(--bxi-muted);
}

.bx-fine {
	margin: 0.75rem 0 0;
	font-size: 0.85em;
	line-height: 1.5;
	color: var(--bxi-muted);
}

/* KPIs */
.bx-kpis {
	display: grid;
	grid-template-columns: minmax(0, 4fr) minmax(0, 3fr);
	gap: 1rem;
}

@media (max-width: 900px) {
	.bx-kpis {
		grid-template-columns: minmax(0, 1fr);
	}
}

.bx-kpi-group {
	padding: 0.875rem 1rem 1rem;
	border-radius: var(--bxi-radius);
	background: var(--bxi-fill);
}

.bx-kpi-group__title {
	margin: 0 0 0.625rem;
	font-size: 0.8em;
	font-weight: bold;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.bx-kpi-group__title > span:not(.bx-nowrap) {
	font-weight: normal;
	letter-spacing: 0;
	text-transform: none;
	color: var(--bxi-muted);
}

.bx-kpi-group__tiles {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(118px, 1fr));
	gap: 0.625rem;
}

.bx-kpi {
	display: flex;
	flex-direction: column;
	padding: 0.625rem 0.75rem;
	border: 1px solid var(--bxi-line);
	border-radius: var(--bxi-radius);
	background: var(--bxi-surface);
}

.bx-kpi__label {
	font-size: 0.9em;
	color: var(--bxi-muted);
}

.bx-kpi {
	min-width: 0;
}

.bx-kpi__value {
	margin-top: 0.125rem;
	font-size: 1.75em;
	white-space: nowrap;
	overflow-wrap: normal;
	word-break: normal;
	font-weight: 600;
	line-height: 1.1;
	font-variant-numeric: tabular-nums;
}

.bx-kpi__sub {
	margin-top: 0.25rem;
	font-size: 0.8em;
	color: var(--bxi-muted);
}

/* charts */
.bx-chart figcaption {
	margin-bottom: 0.25rem;
}

.bx-chart__plot {
	position: relative;
	width: 100%;
	min-height: 220px;
}

.bx-svg {
	display: block;
	overflow: visible;
}

.bx-svg .bx-gridline {
	stroke: var(--bxi-line);
	stroke-width: 1;
}

.bx-svg .bx-axis {
	stroke: var(--bxi-frame);
	stroke-width: 1;
}

.bx-svg .bx-tick {
	font-size: 0.8rem;
	fill: var(--bxi-muted);
	font-variant-numeric: tabular-nums;
}

.bx-svg .bx-peak {
	font-size: 0.8rem;
	font-weight: bold;
	fill: currentColor;
}

.bx-svg .bx-gap {
	font-size: 0.85rem;
	fill: var(--bxi-muted);
}

.bx-svg .bx-band {
	fill: var(--bxi-accent-soft);
}

.bx-svg .bx-band__label {
	font-size: 0.7rem;
	font-weight: bold;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	fill: var(--bxi-ink);
}

.bx-svg .bx-cross {
	stroke: var(--bxi-frame);
	stroke-width: 1;
}

.bx-svg .bx-mark {
	fill: var(--bxi-mark, var(--bxi-accent));
}

.bx-svg .bx-trend {
	fill: none;
	stroke: var(--bxi-mark, var(--bxi-accent));
	stroke-width: 2;
	stroke-linejoin: round;
	stroke-linecap: round;
}

.bx-svg .bx-dot {
	fill: var(--bxi-mark, var(--bxi-accent));
	stroke: var(--bxi-surface);
	stroke-width: 2;
}

/* text-like buttons ("Ver como tabla", "Mostrar todos") look like the theme's links */
.bx-link-btn {
	margin: 0.5rem 0.75rem 0 0;
	padding: 0.25rem 0;
	border: 0;
	background: none;
	color: var(--bxi-accent);
	font: inherit;
	font-size: 0.9em;
	cursor: pointer;
	text-decoration: underline;
	text-underline-offset: 0.2em;
}

.bx-link-btn:hover {
	text-decoration-thickness: 2px;
}

.bx-table-wrap {
	margin-top: 0.5rem;
	max-height: 280px;
	overflow: auto;
}

.bx-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 0.9em;
	font-variant-numeric: tabular-nums;
}

.bx-table th,
.bx-table td {
	padding: 0.25rem 0.5rem;
	border-bottom: 1px solid var(--bxi-line);
	text-align: left;
}

.bx-table td {
	text-align: right;
}

/* ranked lists */
.bx-rank__list {
	margin: 0;
	padding: 0;
	list-style: none;
}

.bx-row {
	display: grid;
	grid-template-columns: 2.2em minmax(0, 1fr) auto;
	gap: 0 0.625rem;
	align-items: start;
	margin: 0;
	padding: 0.5rem 0;
	border-top: 1px solid var(--bxi-line);
}

.bx-row:first-child {
	border-top: 0;
}

.bx-row.is-folded {
	display: none;
}

.bx-row__rank {
	padding-top: 1px;
	font-size: 0.9em;
	color: var(--bxi-muted);
	font-variant-numeric: tabular-nums;
	text-align: right;
}

.bx-row__name {
	line-height: 1.35;
	overflow-wrap: anywhere;
}

.bx-row__year {
	font-size: 0.9em;
	color: var(--bxi-muted);
}

.bx-row__sub {
	margin-top: 1px;
	font-size: 0.85em;
	color: var(--bxi-muted);
}

.bx-row__bar {
	display: flex;
	height: 6px;
	margin-top: 0.375rem;
}

/* two tones of the measure's colour: abstract views (light) and full-text downloads */
.bx-row__bar span.bx-bar--abstract,
.bx-swatch--abstract {
	opacity: 0.4;
}

.bx-row__bar span.bx-bar--abstract + span {
	border-left: 1px solid var(--bxi-surface);
}

.bx-row__bar span:not(:last-child) {
	border-radius: 0;
}

.bx-sort {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.375rem 0.75rem;
	margin: 0 0 0.75rem;
	font-size: 0.9em;
}

.bx-sort__label {
	color: var(--bxi-muted);
}

.bx-seg--small button {
	min-height: 2rem;
	padding: 0 0.75em;
	font-size: 0.9em;
}

.bx-sort__legend {
	display: inline-flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.25rem;
	color: var(--bxi-muted);
	font-size: 0.9em;
}

.bx-swatch {
	display: inline-block;
	width: 0.9em;
	height: 0.5em;
	margin-left: 0.25em;
	border-radius: 2px;
	background: var(--bxi-mark, var(--bxi-accent));
}

/* the legend swatches take the colour of the bars below */
.bx-sort {
	--bxi-mark: var(--bx-views, var(--bxi-accent));
}

.bx-row__bar span {
	display: block;
	height: 100%;
	border-radius: 0 var(--bxi-radius) var(--bxi-radius) 0;
	background: var(--bxi-mark, var(--bxi-accent));
}

.bx-row__value {
	padding-top: 1px;
	font-weight: bold;
	font-variant-numeric: tabular-nums;
	text-align: right;
	white-space: nowrap;
}

.bx-rank__actions {
	display: flex;
	flex-wrap: wrap;
	margin-top: 0.25rem;
}

/* tabs: a text row underlined in the accent */
.bx-tabs {
	display: flex;
	overflow-x: auto;
	overflow-y: hidden;
	box-shadow: inset 0 -1px 0 var(--bxi-line);
}

@media (max-width: 600px) {
	.bx-tabs {
		flex-wrap: wrap;
		overflow: visible;
	}
	/* two classes: this rule comes before the base .bx-tab rule */
	.bx-tabs .bx-tab {
		flex: 1 1 auto;
	}
}

.bx-tab {
	flex: 0 0 auto;
	min-height: 2.75rem;
	margin: 0;
	padding: 0 1.125rem;
	border: 0;
	border-radius: 0;
	background: none;
	color: var(--bxi-muted);
	font: inherit;
	cursor: pointer;
}

.bx-tab:hover {
	color: inherit;
}

.bx-tab[aria-selected="true"] {
	box-shadow: inset 0 -3px 0 var(--bxi-accent);
	color: inherit;
	font-weight: bold;
}

.bx-tabpanel {
	padding: 1rem 1.25rem 1.25rem;
}

/* KPI row of the traffic and citations sections */
.bx-kpi-row {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
	gap: 0.625rem;
	margin-bottom: 0.875rem;
}

.bx-kpi-row:empty {
	display: none;
}

.bx-grid--cites {
	grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
	align-items: start;
}

@media (max-width: 900px) {
	.bx-grid--cites {
		grid-template-columns: minmax(0, 1fr);
	}
}

/* method */
.bx-method {
	padding-top: 1.25rem;
	border-top: 1px solid var(--bxi-line);
}

.bx-method__list {
	margin: 0.5rem 0 0;
	padding-left: 1.2em;
	font-size: 0.9em;
	line-height: 1.55;
}

.bx-method__list li + li {
	margin-top: 0.25rem;
}

.bx-method__custom {
	margin-top: 0.75rem;
	font-size: 0.9em;
}

/* chart tooltip: the theme's text and background colours, inverted */
.bx-tip {
	position: fixed;
	z-index: 1000;
	max-width: 280px;
	padding: 0.5rem 0.625rem;
	border-radius: var(--bxi-radius);
	background: var(--bxi-ink);
	color: var(--bxi-surface);
	font-size: 0.9em;
	line-height: 1.4;
	pointer-events: none;
}

.bx-tip__head {
	display: block;
	margin-bottom: 2px;
	font-weight: bold;
}

.bx-tip__muted {
	opacity: 0.8;
}

/* ------------------------------------------------------------ notices */

/* cmp_notification gives the theme's notice look; these only fit the content */
.bx-manager.cmp_notification {
	display: flex;
	flex-wrap: wrap;
	gap: 0.25rem 0.75rem;
	align-items: baseline;
	box-sizing: border-box;
	margin: 0 0 1rem;
}

.bx-manager__hidden {
	flex-basis: 100%;
	margin-top: 0.25rem;
}

.bx-manager__hidden ul {
	margin: 0.125rem 0 0;
	padding-left: 1.2em;
}

.bx-processing.cmp_notification {
	box-sizing: border-box;
	margin: 0 0 1rem;
}

.bx-processing__detail {
	display: block;
	margin-top: 0.25rem;
	font-size: 0.9em;
}

/* one short line in the widget and the article card */
.bx-processing--line.cmp_notification {
	width: auto;
	margin: 0 0 0.75rem;
	padding: 0.375rem 0.625rem;
	font-size: 0.9em;
	line-height: 1.4;
}

/* ------------------------------------------------------------ reading guide */

.bx-guide {
	margin: 0 0 1.25rem;
	border: 1px solid var(--bxi-line);
	border-radius: var(--bxi-radius);
}

.bx-guide summary {
	padding: 0.625rem 0.875rem;
	font-weight: bold;
	cursor: pointer;
}

.bx-guide dl {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
	gap: 0.75rem;
	margin: 0;
	padding: 0 0.875rem 0.25rem;
}

.bx-guide dl > div {
	padding: 0.625rem 0.75rem;
	border-radius: var(--bxi-radius);
	background: var(--bxi-fill);
}

.bx-guide dt {
	margin: 0 0 0.125rem;
	font-weight: bold;
}

.bx-guide dd {
	margin: 0;
	font-size: 0.95em;
}

.bx-guide__tip {
	margin: 0.5rem 0.875rem 0.75rem;
	font-size: 0.9em;
	color: var(--bxi-muted);
}

.bx-nowrap {
	white-space: nowrap;
}

.bx-ror {
	font-size: 0.85em;
	font-weight: bold;
	letter-spacing: 0.02em;
}

.bx-brand {
	margin: 1.5rem 0 0;
	padding-top: 0.75rem;
	border-top: 1px solid var(--bxi-line);
	font-size: 0.85em;
	color: var(--bxi-muted);
}

/* ------------------------------------------------------------ sidebar widget */

/* .pkp_block, .title and .content are the theme's block */
.bx-block__kpis {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 0.375rem;
	margin: 0 0 0.875rem;
}

.bx-block__kpi {
	position: relative;
	padding: 0.5rem 0.375rem;
	border: 1px solid var(--bxi-line);
	border-radius: var(--bxi-radius);
	text-align: center;
}

.bx-block__kpi dt {
	font-size: 0.75em;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--bxi-muted);
}

.bx-block__kpi dd {
	margin: 0.125rem 0 0;
	white-space: nowrap;
	overflow-wrap: normal;
	font-size: 1.15em;
	font-weight: bold;
	font-variant-numeric: tabular-nums;
}

.bx-block__label {
	margin: 0 0 0.375rem;
	font-size: 0.8em;
	font-weight: bold;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--bxi-muted);
}

.pkp_block.bx-block .bx-block__top {
	margin: 0 0 0.875rem;
	padding: 0;
	list-style: none;
	counter-reset: bx-top;
}

.pkp_block.bx-block .bx-block__top li {
	display: grid;
	grid-template-columns: 1.3em minmax(0, 1fr);
	margin: 0 0 0.5rem;
	padding: 0;
	line-height: 1.3;
	counter-increment: bx-top;
}

.pkp_block.bx-block .bx-block__top li::before {
	content: counter(bx-top);
	grid-row: 1 / span 2;
	font-size: 0.9em;
	color: var(--bxi-muted);
	font-variant-numeric: tabular-nums;
}

.pkp_block.bx-block .bx-block__top a {
	display: inline;
	padding: 0;
}

.bx-block__views {
	display: block;
	font-size: 0.85em;
	color: var(--bxi-muted);
}

/* The call to action is the theme's own sidebar button (the markup of the
   platform's submission block plus cmp_button). Themes restyle every sidebar
   link (inline-block, vertical padding), so the repeated plugin classes keep
   only the layout: full width, label centred. */
.pkp_block.bx-block.bx-block .content .bx-block__action {
	margin: 0;
	padding: 0;
}

.pkp_block.bx-block.bx-block .content a.bx-block__cta.bx-block__cta {
	box-sizing: border-box;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	padding-left: 1em;
	padding-right: 1em;
	text-align: center;
}

/* js/help.js copied the resting look of a button the theme shows in the sidebar */
.pkp_block.bx-block.bx-block .content a.bx-block__cta.bx-block__cta[data-bx-button] {
	min-height: var(--bx-btn-min-h);
	padding-top: var(--bx-btn-pad-y);
	padding-bottom: var(--bx-btn-pad-y);
	border-radius: var(--bx-btn-radius);
	font-size: var(--bx-btn-size);
	font-weight: var(--bx-btn-weight);
	letter-spacing: var(--bx-btn-spacing);
	text-transform: var(--bx-btn-transform);
}

.pkp_block.bx-block.bx-block .content a.bx-block__cta.bx-block__cta[data-bx-button]:not(:hover):not(:focus) {
	border: var(--bx-btn-border);
	background-color: var(--bx-btn-bg);
	background-image: var(--bx-btn-image);
	box-shadow: var(--bx-btn-shadow);
	color: var(--bx-btn-fg);
}

.bx-block__links {
	margin: 0.5rem 0 0;
	font-size: 0.9em;
}

/* ------------------------------------------------------------ article card */

/* section.item, .label and .value are the theme's article detail item */
.bx-card-article__figures {
	display: flex;
	flex-wrap: wrap;
	gap: 0 1.125rem;
	margin: 0;
}

.bx-card-article__figures dt {
	font-size: 0.85em;
	color: var(--bxi-muted);
}

.bx-card-article__figures dd {
	margin: 0;
	white-space: nowrap;
	overflow-wrap: normal;
	font-size: 1.3em;
	font-weight: bold;
	font-variant-numeric: tabular-nums;
}

.bx-card-article__since,
.bx-card-article__recent,
.bx-card-article__ratio,
.bx-card-article__cites,
.bx-card-article__countries {
	margin: 0.375rem 0 0;
	font-size: 0.9em;
}

.bx-card-article__since {
	margin-top: 0.25rem;
	color: var(--bxi-muted);
}

.bx-card-article__badge {
	display: block;
	margin: 0.5rem 0 0.125rem;
	padding: 0.25rem 0.625rem;
	border-left: 3px solid var(--bxi-accent);
	background: var(--bxi-accent-soft);
	font-size: 0.9em;
	font-weight: bold;
}

.bx-card-article__link {
	display: inline-block;
	margin-top: 0.5rem;
	font-size: 0.9em;
}

/* ------------------------------------------------------------ help bubbles (js/help.js) */

.bx-help {
	position: relative;
	display: inline-flex;
	margin-left: 0.25em;
	vertical-align: middle;
	font-weight: normal;
	text-transform: none;
	letter-spacing: 0;
}

.bx-help__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	width: 1.6em;
	height: 1.6em;
	min-height: 0;
	margin: 0;
	padding: 0;
	border: 1px solid var(--bxi-frame);
	border-radius: 50%;
	background: var(--bxi-surface);
	color: var(--bxi-muted);
	font: inherit;
	font-size: 0.8rem;
	font-weight: bold;
	line-height: 1;
	cursor: help;
}

.bx-help__btn:hover,
.bx-help__btn:focus-visible {
	border-color: var(--bxi-accent);
	color: var(--bxi-accent);
}

/* two classes: labels that colour or transform their inner spans must not reach the bubble */
.bx-help .bx-help__tip {
	position: absolute;
	z-index: 1100;
	bottom: calc(100% + 8px);
	left: 50%;
	box-sizing: border-box;
	width: max-content;
	max-width: min(280px, 80vw);
	padding: 0.5rem 0.625rem;
	border-radius: var(--bxi-radius);
	background: var(--bxi-ink);
	color: var(--bxi-surface);
	font-size: 0.9rem;
	font-weight: normal;
	line-height: 1.45;
	text-align: left;
	white-space: normal;
	transform: translateX(calc(-50% + var(--bx-shift, 0px)));
	display: none;
}

/* bridge over the gap, so the pointer can move onto the bubble (WCAG 1.4.13) */
.bx-help__tip::before {
	content: "";
	position: absolute;
	top: 100%;
	left: 0;
	right: 0;
	height: 10px;
}

.bx-help--below .bx-help__tip {
	top: calc(100% + 8px);
	bottom: auto;
}

.bx-help--below .bx-help__tip::before {
	top: auto;
	bottom: 100%;
}

.bx-help:hover .bx-help__tip,
.bx-help:focus-within .bx-help__tip,
.bx-help.is-open .bx-help__tip {
	display: block;
}

.bx-help.is-dismissed .bx-help__tip {
	display: none;
}

/* D6: an 18px circle with a touch area of at least 26px (34px on phones) */
.bx-help__btn {
	position: relative;
}

.bx-help__btn::after {
	content: "";
	position: absolute;
	inset: -4px;
}

@media (max-width: 600px) {
	.bx-help__btn::after {
		inset: -8px;
	}
}

/* the widget tiles are too narrow for "label ?": the bubble sits on the corner */
.bx-block .bx-block__kpi .bx-help {
	position: absolute;
	top: -0.5em;
	right: -0.5em;
	margin: 0;
}

.bx-block .bx-block__kpi .bx-help__btn {
	font-size: 0.7rem;
}

.bx-block .bx-block__kpi .bx-help .bx-help__tip {
	left: auto;
	right: 0;
	transform: translateX(var(--bx-shift, 0px));
}

/* ------------------------------------------------------------ print */

@media print {
	.bx-toolbar {
		position: static;
	}
	.bx-link-btn,
	.bx-tip,
	.bx-help {
		display: none;
	}
}
