/* FB.pl Opinie 1.13.0: the relations of a listing (views/relations.php): the products, services and applications of a
   company as tiles with their own ratings, and on such a page the path back, what the page rates and its sisters.
   Loads only on a listing that has a relation, after fbpl-opinie.css, whose tokens (--fbplo-*) also cover .fbplo-rel.
   Same lilac surface and white cards as "Oferta i ceny"; no script. */

.fbplo-rel {
	box-sizing: border-box;
	margin: 24px 0;
	padding: 24px 16px;
	border-radius: 24px;
	background: var(--fbplo-lilac);
	color: var(--fbplo-ink);
	font-family: var(--fbplo-font-body);
	font-size: 16px;
	line-height: 1.55;
	scroll-margin-top: 16px;
}
.fbplo-rel *, .fbplo-rel *::before, .fbplo-rel *::after { box-sizing: border-box; }

.fbplo-rel .fbplo-rel__title {
	margin: 0 0 8px;
	color: var(--fbplo-ink);
	font: 700 22px/1.25 var(--fbplo-font-head);
}
.fbplo-rel .fbplo-rel__sub {
	margin: 20px 0 10px;
	color: var(--fbplo-ink-soft);
	font: 600 15px/1.4 var(--fbplo-font-head);
	letter-spacing: .01em;
}
.fbplo-rel .fbplo-rel__scope {
	margin: 0 0 16px;
	color: var(--fbplo-ink-soft);
	font-size: 15px;
	max-width: 70ch;
}

/* The path: FB.pl, the one that offers it, this page. */
.fbplo-rel .fbplo-rel__path { margin: 0 0 12px; font-size: 14px; }
.fbplo-rel .fbplo-rel__path ol { display: flex; flex-wrap: wrap; gap: 4px 6px; margin: 0; padding: 0; list-style: none; }
.fbplo-rel .fbplo-rel__path li { display: inline-flex; align-items: center; margin: 0; padding: 0; color: var(--fbplo-muted); }
.fbplo-rel .fbplo-rel__path li::before { content: none; }
.fbplo-rel .fbplo-rel__path li + li::before { content: "\203A"; margin-right: 6px; color: var(--fbplo-faint); }
.fbplo-rel .fbplo-rel__path a { color: var(--fbplo-link); text-decoration: underline; text-underline-offset: 2px; }
.fbplo-rel .fbplo-rel__path a:hover { color: var(--fbplo-link-hover); }
.fbplo-rel .fbplo-rel__path a:focus-visible { outline: none; box-shadow: var(--fbplo-glow); border-radius: 4px; }

/* The rating of the one that offers it, with the link to its page. */
.fbplo-rel .fbplo-rel__back {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 6px 16px;
	padding: 12px 16px;
	border-radius: 16px;
	background: #fff;
	box-shadow: var(--fbplo-shadow);
	color: var(--fbplo-ink);
	text-decoration: none;
}
.fbplo-rel .fbplo-rel__back:hover { box-shadow: var(--fbplo-shadow-lg); }
.fbplo-rel .fbplo-rel__back:focus-visible { outline: none; box-shadow: var(--fbplo-glow); }
.fbplo-rel .fbplo-rel__back-text { font: 600 15px/1.35 var(--fbplo-font-head); }
.fbplo-rel .fbplo-rel__back-score { display: inline-flex; align-items: center; gap: 8px; color: var(--fbplo-muted); font-size: 14px; }

/* Tiles. */
.fbplo-rel .fbplo-rel__list {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
	gap: 12px;
	margin: 0;
	padding: 0;
	list-style: none;
}
.fbplo-rel .fbplo-rel__item { margin: 0; padding: 0; }
.fbplo-rel .fbplo-rel__item::before { content: none; }
.fbplo-rel .fbplo-rel__card {
	display: flex;
	flex-direction: column;
	gap: 6px;
	height: 100%;
	padding: 16px;
	border-radius: 18px;
	background: #fff;
	box-shadow: var(--fbplo-shadow);
	color: var(--fbplo-ink);
	text-decoration: none;
}
.fbplo-rel .fbplo-rel__card:hover { box-shadow: var(--fbplo-shadow-lg); }
.fbplo-rel .fbplo-rel__card:focus-visible { outline: none; box-shadow: var(--fbplo-glow); }
.fbplo-rel .fbplo-rel__kind {
	align-self: flex-start;
	padding: 3px 10px;
	border-radius: 999px;
	background: var(--fbplo-violet-tint);
	color: var(--fbplo-violet);
	font: 600 12px/1.5 var(--fbplo-font-head);
	letter-spacing: .02em;
}
.fbplo-rel .fbplo-rel__logo {
	display: block;
	flex: none;
	width: 48px;
	height: 48px;
	overflow: hidden;
	border-radius: 12px;
	background: #fff;
	box-shadow: 0 0 0 1px rgba(17, 12, 46, .08);
}
.fbplo-rel .fbplo-rel__logo img { display: block; width: 100%; height: 100%; object-fit: contain; }
.fbplo-rel .fbplo-rel__when { color: var(--fbplo-ink); font: 600 13px/1.4 var(--fbplo-font-head); }
.fbplo-rel .fbplo-rel__cat { color: var(--fbplo-muted); font: 600 12px/1.4 var(--fbplo-font-head); letter-spacing: .02em; overflow-wrap: anywhere; }
.fbplo-rel .fbplo-rel__name { font: 600 17px/1.3 var(--fbplo-font-head); overflow-wrap: anywhere; }
.fbplo-rel .fbplo-rel__summary {
	display: -webkit-box;
	overflow: hidden;
	color: var(--fbplo-muted);
	font-size: 14px;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
}
.fbplo-rel .fbplo-rel__score {
	display: inline-flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 4px 8px;
	margin-top: auto;
	color: var(--fbplo-ink-soft);
	font-size: 14px;
}
.fbplo-rel .fbplo-rel__none { color: var(--fbplo-muted); }
.fbplo-rel .fbplo-stars { display: inline-flex; gap: 1px; }
.fbplo-rel .fbplo-stars svg { display: block; }

@media (min-width: 720px) {
	.fbplo-rel { padding: 28px 28px; }
}
