/* Release 1.6.1: directory controls, compact mentions and marketplace refinement. */

body.admin-bar.cs2day-v2 .site-header {
	top: var(--wp-admin--admin-bar--height, 32px);
}

body.cs2day-v2 :where(.cs2-filter-panel, .cs2-directory-filter-panel, .cs2-match-filters) {
	background: color-mix(in srgb, var(--cs2-card) 92%, transparent);
	border: 1px solid var(--cs2-border);
	border-radius: var(--cs2-radius);
	overflow: clip;
	width: 100%;
}

body.cs2day-v2 :where(.cs2-filter-panel, .cs2-directory-filter-panel, .cs2-match-filters) > summary {
	align-items: center;
	display: flex;
	justify-content: space-between;
	min-height: 46px;
	padding: 10px 14px;
}

body.cs2day-v2 :where(.cs2-filter-panel, .cs2-directory-filter-panel, .cs2-match-filters) > form {
	border-top: 1px solid var(--cs2-border);
	grid-template-columns: repeat(4, minmax(0, 1fr));
	margin: 0;
	padding: 14px;
}

body.cs2day-v2 :where(.cs2-directory-filters__actions, .cs2-competition-filters__actions, .cs2-lfg-filters__actions) {
	align-items: end;
	display: flex;
	gap: 8px;
}

body.cs2day-v2 .cs2-engagement-bar > .cs2-mentioned-profiles {
	flex: 1 1 auto;
	margin-right: auto;
	min-width: 0;
}

body.cs2day-v2 .cs2-mentioned-profiles--home .cs2-mentioned-profiles__list {
	gap: 4px;
	overflow: visible;
}

body.cs2day-v2 .cs2-mentioned-profiles--home .cs2-mentioned-profile {
	border: 0;
	gap: 5px;
	max-width: 112px;
	min-height: 28px;
	padding: 2px 6px 2px 3px;
}

body.cs2day-v2 .cs2-mentioned-profiles--home .cs2-mentioned-profile__avatar,
body.cs2day-v2 .cs2-mentioned-profiles--home .cs2-mentioned-profile__avatar img {
	height: 20px;
	width: 20px;
}

body.cs2day-v2 .cs2-mentioned-profiles--home .cs2-mentioned-profile__copy strong {
	font-size: .63rem;
}

body.cs2day-v2 .cs2-mentioned-profiles--home .cs2-mentioned-profile__copy small {
	display: none;
}

body.cs2day-v2 .cs2-mentioned-profiles__more {
	border: 0;
	display: block;
	margin: 0;
	padding: 0;
	position: relative;
}

body.cs2day-v2 .cs2-mentioned-profiles__more > summary {
	align-items: center;
	background: var(--cs2-card-elevated);
	border: 1px solid var(--cs2-border);
	border-radius: 999px;
	cursor: pointer;
	display: flex;
	font-size: .65rem;
	font-weight: 800;
	height: 28px;
	justify-content: center;
	list-style: none;
	min-width: 32px;
	padding: 0 7px;
}

body.cs2day-v2 .cs2-mentioned-profiles__more > summary::-webkit-details-marker {
	display: none;
}

body.cs2day-v2 .cs2-mentioned-profiles__popover {
	background: var(--cs2-card-elevated);
	border: 1px solid var(--cs2-border);
	border-radius: var(--cs2-radius);
	bottom: calc(100% + 8px);
	box-shadow: 0 16px 40px rgb(0 0 0 / 38%);
	display: grid;
	gap: 3px;
	left: 0;
	max-height: 260px;
	overflow-y: auto;
	padding: 6px;
	position: absolute;
	width: min(260px, calc(100vw - 28px));
	z-index: 150;
}

body.cs2day-v2 .cs2-mentioned-profiles__more:not([open]) > .cs2-mentioned-profiles__popover {
	display: none;
}

body.cs2day-v2 .cs2-mentioned-profiles__popover a {
	align-items: center;
	border-radius: 4px;
	color: var(--cs2-text);
	display: grid;
	gap: 8px;
	grid-template-columns: 30px minmax(0, 1fr);
	padding: 6px;
	text-decoration: none;
}

body.cs2day-v2 .cs2-mentioned-profiles__popover a:hover {
	background: color-mix(in srgb, var(--cs2-accent) 9%, transparent);
}

body.cs2day-v2 .cs2-mentioned-profiles__popover :where(strong, small) {
	display: block;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

body.cs2day-v2 .cs2-mentioned-profiles__popover small {
	color: var(--cs2-text-muted);
	font-size: .68rem;
}

body.cs2day-v2 .cs2-sidebar-module--streams .cs2-sidebar-list {
	align-content: start;
	display: grid;
	grid-auto-rows: 58px;
}

body.cs2day-v2 .cs2-stream-row {
	height: 58px;
	min-height: 58px;
}

body.cs2day-v2 .cs2-stream-row.is-offline {
	opacity: .66;
}

body.cs2day-v2 .cs2-stream-row.is-offline .cs2-stream-row__viewers::before {
	display: none;
}

body.cs2day-v2 .cs2-stream-row.is-offline .cs2-stream-row__viewers {
	color: var(--cs2-text-muted);
	font-size: .62rem;
}

body.cs2day-v2 .cs2-lfg-tabs,
body.cs2day-v2 .cs2-lfg-tabs--directory {
	display: grid;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	overflow: visible;
	width: 100%;
}

body.cs2day-v2 .cs2-lfg-tabs--directory {
	grid-template-columns: repeat(4, minmax(0, 1fr));
}

body.cs2day-v2 .cs2-lfg-tabs button {
	min-width: 0;
	white-space: normal;
}

body.cs2day-v2 .cs2-lfg-category {
	background: transparent;
	border: 0;
	padding: 0;
}

body.cs2day-v2 .cs2-lfg-category > header {
	background: var(--cs2-card);
	border: 1px solid var(--cs2-border);
	border-radius: var(--cs2-radius);
	margin-bottom: 12px;
	padding: 14px 16px;
}

body.cs2day-v2 .cs2-lfg-category__cards {
	display: grid;
	gap: var(--cs2-gap);
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

body.cs2day-v2 .cs2-lfg-directory-card {
	background: var(--cs2-card);
	border: 1px solid var(--cs2-border);
	border-radius: var(--cs2-radius);
	color: var(--cs2-text);
	display: grid;
	gap: 8px;
	grid-template-columns: 44px minmax(0, 1fr);
	grid-template-rows: auto auto 1fr auto;
	min-height: 210px;
	padding: 14px;
	text-decoration: none;
	transition: border-color .18s ease, transform .18s ease;
}

body.cs2day-v2 .cs2-lfg-directory-card:hover {
	border-color: color-mix(in srgb, var(--cs2-accent) 45%, var(--cs2-border));
	transform: translateY(-2px);
}

body.cs2day-v2 .cs2-lfg-directory-card__avatar {
	grid-row: 1 / span 2;
}

body.cs2day-v2 .cs2-lfg-directory-card__avatar img {
	border-radius: 4px;
	height: 44px;
	object-fit: cover;
	width: 44px;
}

body.cs2day-v2 .cs2-lfg-directory-card__type {
	color: var(--cs2-accent);
	font-size: .62rem;
	font-weight: 850;
	text-transform: uppercase;
}

body.cs2day-v2 .cs2-lfg-directory-card > strong {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

body.cs2day-v2 .cs2-lfg-directory-card > p,
body.cs2day-v2 .cs2-lfg-directory-card > footer {
	grid-column: 1 / -1;
}

body.cs2day-v2 .cs2-lfg-directory-card > p {
	color: var(--cs2-text-muted);
	margin: 4px 0;
}

body.cs2day-v2 .cs2-lfg-directory-card > footer {
	align-items: center;
	border-top: 1px solid var(--cs2-border);
	color: var(--cs2-text-muted);
	display: flex;
	font-size: .68rem;
	justify-content: space-between;
	padding-top: 9px;
}

body.cs2day-v2 .cs2-home-lfg__grid {
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

body.cs2day-v2 .cs2-home-lfg-card {
	grid-template-columns: 36px minmax(0, 1fr);
	grid-template-rows: auto auto 1fr auto;
}

body.cs2day-v2 .cs2-home-lfg-card.is-featured {
	background: color-mix(in srgb, var(--cs2-card-elevated) 86%, var(--cs2-accent) 14%);
	grid-column: span 2;
}

body.cs2day-v2 .cs2-home-lfg-card__avatar {
	grid-row: 1 / span 2;
}

body.cs2day-v2 .cs2-home-lfg-card__avatar img {
	border-radius: 4px;
	height: 34px;
	object-fit: cover;
	width: 34px;
}

body.cs2day-v2 .cs2-home-lfg-card > :where(p, footer) {
	grid-column: 1 / -1;
}

body.cs2day-v2 .cs2-directory-search {
	background: var(--cs2-card);
	border: 1px solid var(--cs2-border);
	border-radius: var(--cs2-radius);
	margin-bottom: 12px;
	padding: 12px;
}

body.cs2day-v2 .cs2-directory-search label,
body.cs2day-v2 .cs2-directory-search span {
	display: block;
}

body.cs2day-v2 .cs2-directory-search span {
	font-size: .7rem;
	font-weight: 800;
	margin-bottom: 6px;
}

body.cs2day-v2 .cs2-directory-search input {
	width: 100%;
}

@media (max-width: 900px) {
	body.cs2day-v2 :where(.cs2-filter-panel, .cs2-directory-filter-panel, .cs2-match-filters) > form {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	body.cs2day-v2 .cs2-lfg-category__cards,
	body.cs2day-v2 .cs2-home-lfg__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	body.cs2day-v2 .cs2-home-lfg-card.is-featured {
		grid-column: span 2;
	}
}

@media (max-width: 782px) {
	body.admin-bar.cs2day-v2 .site-header {
		top: var(--wp-admin--admin-bar--height, 46px);
	}

	body.admin-bar.cs2day-v2 .primary-navigation {
		max-height: calc(100dvh - 64px - var(--wp-admin--admin-bar--height, 46px));
	}
}

@media (max-width: 700px) {
	body.cs2day-v2 :where(.cs2-filter-panel, .cs2-directory-filter-panel, .cs2-match-filters) > form,
	body.cs2day-v2 .cs2-lfg-category__cards,
	body.cs2day-v2 .cs2-home-lfg__grid {
		grid-template-columns: minmax(0, 1fr);
	}

	body.cs2day-v2 .cs2-lfg-tabs,
	body.cs2day-v2 .cs2-lfg-tabs--directory {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	body.cs2day-v2 .cs2-home-lfg-card.is-featured {
		grid-column: auto;
	}

	body.cs2day-v2 .cs2-lfg-directory-card {
		min-height: 180px;
	}

	body.cs2day-v2 .cs2-engagement-bar > .cs2-mentioned-profiles {
		flex-basis: 100%;
		order: -1;
	}

	body.cs2day-v2 .cs2-matchcenter__fixtures {
		overflow: visible;
	}

	body.cs2day-v2 .cs2-match-line {
		grid-template-columns: minmax(0, 1fr);
		min-width: 0;
		width: 100%;
	}

	body.cs2day-v2 .cs2-match-line__main {
		gap: 7px;
		grid-template-columns: 38px minmax(0, 1fr) auto minmax(0, 1fr) 38px;
		grid-template-rows: auto auto auto;
		min-width: 0;
		padding: 10px;
	}

	body.cs2day-v2 .cs2-match-line__date {
		grid-column: 1 / -1;
		grid-row: 1;
	}

	body.cs2day-v2 .cs2-match-line__logo,
	body.cs2day-v2 .cs2-match-line__logo img,
	body.cs2day-v2 .cs2-match-line__initials {
		height: 38px;
		width: 38px;
	}

	body.cs2day-v2 .cs2-match-line__team {
		font-size: .72rem;
	}

	body.cs2day-v2 .cs2-match-line__score {
		min-height: 30px;
		padding-inline: 6px;
	}

	body.cs2day-v2 .cs2-match-line__league {
		grid-column: 1 / -1;
		grid-row: 3;
		margin-top: 2px;
	}

	body.cs2day-v2 .cs2-match-line__caster {
		border-left: 0;
		border-top: 1px solid var(--cs2-border);
		min-height: 38px;
		padding: 8px 10px;
	}

	body.cs2day-v2 .cs2-mentioned-profiles__popover {
		left: auto;
		right: 0;
	}
}

@media (max-width: 430px) {
	body.cs2day-v2 .cs2-mentioned-profiles--home .cs2-mentioned-profile {
		max-width: 86px;
	}

	body.cs2day-v2 .cs2-mentioned-profiles--home .cs2-mentioned-profile__copy strong {
		max-width: 54px;
		overflow: hidden;
		text-overflow: ellipsis;
		white-space: nowrap;
	}
}
