/* ============================================================
   FILTERRR Widgets — widget styles
   Per-instance settings (typography, padding, radius, gap, the
   neutral colours, per-category colours) are written by Elementor's
   control selectors and by inline --cat / --cat-fg custom properties;
   this file holds the mechanics and on-brand defaults (design-system.md).
   ============================================================ */

/* ---------- Favicon ---------- */
.fw-favicon {
	display: flex;
	align-items: center;
	justify-content: flex-start;
	line-height: 0;
}
/* The tile: a fixed square the icon sits centred in, so every row's box matches
   whatever size the favicon service actually returns. Size, background, radius,
   border and shadow come from the widget's controls; with no Tile size set it
   shrink-wraps the icon (the pre-1.4 look). */
.fw-favicon__tile {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: none;
	box-sizing: border-box;
	line-height: 0;
	transition: background-color 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}
.fw-favicon__img {
	display: block;
	width: 24px;
	height: 24px;
	max-width: none; /* the tile owns the geometry — never let theme img rules shrink the icon */
	box-sizing: border-box;
	object-fit: contain;
	flex: none;
}
/* Editor-only placeholder when no URL can be found on the post */
.fw-favicon__img--placeholder {
	border: 1px dashed rgba(128, 128, 128, 0.6);
	border-radius: 4px;
	background: rgba(128, 128, 128, 0.12);
}

/* ---------- Link Line ---------- */
.fw-link-line {
	margin: 0;
	padding: 0;
}
.fw-link-line__title {
	display: inline;
	margin: 0 0.35em 0 0;
	padding: 0;
	font: inherit;
	font-weight: 700;
	letter-spacing: -0.01em;
	color: inherit;
}
.fw-link-line__title a {
	color: inherit;
	text-decoration: none;
}
.fw-link-line__title a:hover {
	text-decoration: underline;
}
.fw-link-line__desc {
	display: inline;
	opacity: 0.78; /* the mockup's dimmer description; set a colour in the Style tab to override */
}
.fw-link-line__sep {
	opacity: 0.6;
}
/* Editor-only sample text */
.fw-link-line--demo {
	opacity: 0.7;
}

/* ---------- Category Pills ---------- */
.fw-pills {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px;
}

.fw-pill {
	display: inline-flex;
	align-items: center;
	gap: 0.4em;
	box-sizing: border-box;
	font-size: 12px;
	font-weight: 600;
	line-height: 1.3;
	padding: 3px 10px;
	border-radius: 999px;
	background: var(--fw-bg, rgba(128, 128, 128, 0.16));
	color: var(--fw-fg, currentColor);
	text-decoration: none;
	white-space: nowrap;
	transition: background-color 0.14s ease, color 0.14s ease, border-color 0.14s ease, box-shadow 0.14s ease;
}
a.fw-pill:hover,
a.fw-pill:focus-visible {
	text-decoration: none;
}
a.fw-pill:focus-visible {
	outline: 2px solid var(--cat, currentColor);
	outline-offset: 2px;
}

/* Neutral mode (default): optional hover colours from the Style tab.
   If none are set the hover falls back to the normal colours — no change. */
.fw-pills--neutral .fw-pill:hover,
.fw-pills--neutral .fw-pill:focus-visible {
	background: var(--fw-bg-hover, var(--fw-bg, rgba(128, 128, 128, 0.16)));
	color: var(--fw-fg-hover, var(--fw-fg, currentColor));
}

/* Category colour — filled */
.fw-pills--fill .fw-pill {
	background: var(--cat, #FE6A4E);
	color: var(--cat-fg, #161519);
}

/* Category colour — tint + outline (keeps the page's text colour) */
.fw-pills--tint .fw-pill {
	background: color-mix(in srgb, var(--cat, #FE6A4E) 18%, transparent);
	border: 1px solid var(--cat, #FE6A4E);
	color: var(--fw-fg, currentColor);
}

/* Neutral, fills with the category colour on hover */
.fw-pills--hover .fw-pill:hover,
.fw-pills--hover .fw-pill:focus-visible {
	background: var(--cat, #FE6A4E);
	border-color: var(--cat, #FE6A4E);
	color: var(--cat-fg, #161519);
}

/* Pixel icon */
.fw-pill__icon {
	width: 1em;
	height: 1em;
	flex: none;
	display: block;
	fill: currentColor;
}

/* Editor-only sample pills (shown when the current post has no terms) */
.fw-pills--demo .fw-pill {
	opacity: 0.7;
	outline: 1px dashed rgba(128, 128, 128, 0.6);
	outline-offset: 2px;
}
