/**
 * Food26 Term Links
 *
 * The design's chips (html/videos.html, .term-chips): white pills with a line, the current one in the primary colour;
 * the extra link filled (1.2.0, html/index-5.html's "Open the Map").
 * Colours read the Food26 Design Scheme with the design's values as fallbacks. Rules use two classes; the Style tab's
 * controls use three.
 */

.food26-term-links {
	--food26-tl-primary: var(--inoforest-color-primary, #b23a1e);
	--food26-tl-heading: var(--inoforest-color-heading, #2b1a12);
	--food26-tl-border: var(--inoforest-color-border, #ece2d6);
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.food26-term-links li {
	margin: 0;
	padding: 0;
}

.food26-term-links .food26-term-links__link {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	box-sizing: border-box;
	min-height: 44px;
	padding: 8px 20px;
	font-size: 0.925rem;
	font-weight: 600;
	line-height: 1.7;
	color: var(--food26-tl-heading);
	text-decoration: none;
	background-color: #fff;
	border: 1px solid var(--food26-tl-border);
	border-radius: 999px;
	transition: border-color 0.3s ease, color 0.3s ease, background-color 0.3s ease;
}

.food26-term-links .food26-term-links__link:hover,
.food26-term-links .food26-term-links__link:focus-visible {
	color: var(--food26-tl-primary);
	border-color: var(--food26-tl-primary);
}

.food26-term-links .food26-term-links__link[aria-current] {
	color: #fff;
	background-color: var(--food26-tl-primary);
	border-color: var(--food26-tl-primary);
}

/* The extra link (1.2.0): filled with the primary colour, darker on hover. The Links section's background and border
   colours leave it alone; its own Style section (Extra link) changes it. */
.food26-term-links .food26-term-links__link--extra {
	color: #fff;
	background-color: var(--food26-tl-primary);
	border-color: var(--food26-tl-primary);
}

.food26-term-links .food26-term-links__link--extra:hover,
.food26-term-links .food26-term-links__link--extra:focus-visible {
	color: #fff;
	background-color: var(--inoforest-custom-primary-dark, #8e2c15);
	border-color: var(--inoforest-custom-primary-dark, #8e2c15);
}

.food26-term-links__link svg {
	width: 1em;
	height: 1em;
	fill: currentColor;
}

.food26-term-links__hint {
	margin: 0;
}

@media (prefers-reduced-motion: reduce) {
	.food26-term-links .food26-term-links__link {
		transition: none;
	}
}
