/*
 * smacznymods on every forum page (app template "Smaczny: style aplikacji", head of the layout).
 * Works on any skin; the Smaczny skin only sets the colour token (--smrb-mark, theme/custom.css).
 */

/* Marker C: chef-hat badge on recipe topics (extensions/core/UIItem/RecipeBadge.php). Font Awesome
   Free has no chef hat, so the icon is the box's chef-hat SVG used as a mask. */
.ipsBadge--recipe {
	--smrb-mark-bg: var(--smrb-mark, var(--i-primary));
	background: var(--smrb-mark-bg);
	color: #fff;
}
.smRecipeIcon {
	display: inline-block;
	width: 1em;
	height: 1em;
	background: currentColor;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3a4 4 0 0 1 3.5 2A4 4 0 0 1 18 12.9V20a1 1 0 0 1-1 1H7a1 1 0 0 1-1-1v-7.1A4 4 0 0 1 8.5 5 4 4 0 0 1 12 3Z'/%3E%3Cpath d='M6 17h12'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3a4 4 0 0 1 3.5 2A4 4 0 0 1 18 12.9V20a1 1 0 0 1-1 1H7a1 1 0 0 1-1-1v-7.1A4 4 0 0 1 8.5 5 4 4 0 0 1 12 3Z'/%3E%3Cpath d='M6 17h12'/%3E%3C/svg%3E") center / contain no-repeat;
}
.smRecipeIcon::before { content: none; }

/* Logo block: the smaczny.pl logo links to the site home, the FORUM badge (template "Smaczny:
   znaczek FORUM przy logo") to the forum home, side by side. */
.ipsHeader__start,
.ipsHeader__start > div {
	display: flex;
	align-items: center;
	gap: 8px;
}

/* FORUM / FORUM KLUBU badge, shaped like an IC5 badge. The class sits in :where(), so these rules
   weigh no more than an element selector: they beat the skin's plain link styles (they load later)
   and lose to any class rule of a skin, e.g. the Smaczny look of .smacznyBadge (theme/custom.css). */
a:where(.smacznyBadge),
a:where(.smacznyBadge):hover {
	color: var(--i-color_hard);
	text-decoration: none;
}
a:where(.smacznyBadge) {
	display: inline-block;
	align-self: center;
	padding: .3em .8em;
	border-radius: min(var(--i-design-radius, 4px), .4em);
	background: var(--i-background_6);
	color: var(--i-color_hard);
	font-size: max(.7em, 10px);
	font-weight: 600;
	line-height: 1.2;
	letter-spacing: normal;
	text-transform: uppercase;
	white-space: nowrap;
}
a:where(.smacznyBadge--klub) {
	display: inline-flex;
	flex-direction: column;
	align-items: center;
	gap: 1px;
	line-height: 1;
}
span:where(.smacznyBadge__accent) {
	font-size: .8em;
}
