/* Challenge Matches & Tourneys page ([qbbac_challenge]). */

.qbfb-ch {
	max-width: 1100px;
	margin: 0 auto;
}
.qbfb-ch .qbfb-ch-intro {
	font-size: 1.1rem;
	line-height: 1.55;
	max-width: 700px;
	margin: 0 auto 18px;
	text-align: center;
	color: #404040;
}
.qbfb-ch .qbfb-ev-buttons {
	margin-bottom: 8px;
}
.qbfb-ch .qbfb-ch-sec {
	margin: 40px 0 0;
}
.qbfb-ch .qbfb-ch-sec h2 {
	color: #007565;
	font-size: clamp(1.4rem, 3.2vw, 1.9rem);
	margin: 0 0 8px;
}
.qbfb-ch .qbfb-ch-note {
	color: #555;
	margin: 0 0 14px;
}

/* Host's calendar picture */
.qbfb-ch .qbfb-ch-cal__link {
	display: block;
	background: #f2f2f2;
	border-radius: 10px;
	padding: 10px;
}
.qbfb-ch .qbfb-ch-cal__img {
	display: block;
	width: 100%;
	height: auto;
	border-radius: 6px;
}

/* Tournaments */
.qbfb-ch .qbfb-ch-weekly {
	background: #e8f3f1;
	border-radius: 8px;
	padding: 12px 16px;
	font-size: 1.05rem;
}
.qbfb-ch .qbfb-ch-list {
	list-style: none;
	margin: 14px 0;
	padding: 0;
}
.qbfb-ch .qbfb-ch-list li {
	border-bottom: 1px solid #e3e3e3;
}
.qbfb-ch .qbfb-ch-list a {
	display: flex;
	flex-wrap: wrap;
	gap: 4px 14px;
	align-items: baseline;
	padding: 12px 4px;
	color: #222;
	text-decoration: none;
}
.qbfb-ch .qbfb-ch-list a:hover .qbfb-ch-list__title,
.qbfb-ch .qbfb-ch-list a:focus .qbfb-ch-list__title {
	text-decoration: underline;
}
.qbfb-ch .qbfb-ch-list__when {
	min-width: 180px;
	color: #007565;
	font-weight: 700;
}
.qbfb-ch .qbfb-ch-list__title {
	font-weight: 700;
	flex: 1 1 260px;
}
.qbfb-ch .qbfb-ch-list__cost {
	color: #404040;
}
.qbfb-ch .qbfb-ch-all {
	font-weight: 700;
	color: #007565;
}

/* Replays reuse the homepage feed cards */
.qbfb-ch .qbfb-ch-grid {
	margin-top: 10px;
}

/* Tap-to-enlarge viewer */
html.qbfb-lb-open {
	overflow: hidden;
}
.qbfb-lb {
	width: 100vw;
	max-width: 100vw;
	height: 100dvh;
	max-height: 100dvh;
	margin: 0;
	padding: 0;
	border: 0;
	background: rgba(0, 0, 0, .92);
	color: #fff;
}
.qbfb-lb::backdrop {
	background: rgba(0, 0, 0, .92);
}
.qbfb-lb__bar {
	position: sticky;
	top: 0;
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 12px;
	padding: 10px 14px;
	background: rgba(0, 0, 0, .6);
	z-index: 1;
}
.qbfb-lb .qbfb-lb__full {
	color: #fff;
	font-weight: 700;
	text-decoration: underline;
}
.qbfb-lb .qbfb-lb__close {
	background: #fff;
	color: #111;
	border: 0;
	border-radius: 999px;
	padding: 10px 18px;
	font-size: 1rem;
	font-weight: 800;
	cursor: pointer;
}
.qbfb-lb .qbfb-lb__close:focus-visible {
	outline: 3px solid #08a889;
	outline-offset: 2px;
}
.qbfb-lb__body {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: calc(100dvh - 60px);
	padding: 12px;
}
.qbfb-lb__img {
	display: block;
	max-width: 100%;
	max-height: calc(100dvh - 84px);
	width: auto;
	height: auto;
	object-fit: contain;
	border-radius: 6px;
}

/* Built calendars + upcoming matches */
.qbfb-ch .qbfb-ch-cal__month {
	color: #007565;
	font-size: 1.2rem;
	margin: 22px 0 8px;
}
.qbfb-ch .qbfb-ch-cal__link + .qbfb-ch-cal__month {
	margin-top: 28px;
}
.qbfb-ch .qbfb-ch-list__row {
	display: flex;
	flex-wrap: wrap;
	gap: 4px 14px;
	align-items: baseline;
	padding: 12px 4px;
	color: #222;
}
.qbfb-ch .qbfb-ch-cal .qbfb-ch-weekly a {
	font-weight: 700;
	color: #007565;
}
