/* [cd_forum_categories] shortcode styles */

.cd-fc-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(326px, 100%), 326px));
	justify-content: center;
	align-items: start;
	gap: 22px;
}

.cd-fc-card {
	width: 326px;
	max-width: 100%;
	border: 1px solid #C6C6C6;
	border-radius: 13px;
	overflow: hidden;
	background: #fff;
}

/* Source images vary in size, and themes routinely ship img { height: auto
   !important } — which beat the plain height below and let the image grow to
   its natural size, stretching the card with it. Every dimension is pinned. */
img.cd-fc-image,
.cd-fc-image {
	display: block !important;
	box-sizing: border-box;
	width: 100% !important;
	max-width: 100% !important;
	height: 135px !important;
	min-height: 135px !important;
	max-height: 135px !important;
	object-fit: cover !important;
	object-position: center center !important;
	border: 0 !important;
	border-radius: 0 !important;
	margin: 0 !important;
	padding: 0 !important;
	box-shadow: none !important;
}

.cd-fc-image-placeholder {
	background-color: #eee;
}

.cd-fc-title-bar {
	position: relative;
	display: flex;
	align-items: center;
	height: 94px;
	background: #F8F2EF;
	padding-left: 44px;
	padding-right: 68px;
	box-sizing: border-box;
}

.cd-fc-title {
	font-family: 'Playfair Display', serif !important;
	font-weight: 500 !important;
	font-size: 18px !important;
	line-height: 120% !important;
	color: #4B2FC5;
	text-decoration: none;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

/* button.cd-fc-toggle, not just the class: themes style buttons with selectors
   like .fusion-body button or button[type], which outrank a bare class — and
   specificity is compared before !important, so !important alone loses. Every
   property the theme might set is pinned, because a single leaked declaration
   (a border, a padding, display:inline-block) breaks the circle or the
   centring. */
button.cd-fc-toggle,
.cd-fc-toggle {
	position: absolute !important;
	top: 50% !important;
	right: 20px !important;
	left: auto !important;
	bottom: auto !important;
	transform: translateY(-50%) !important;
	box-sizing: border-box !important;
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	flex-shrink: 0;
	width: 28px !important;
	height: 28px !important;
	min-width: 28px !important;
	min-height: 28px !important;
	max-width: 28px !important;
	max-height: 28px !important;
	padding: 0 !important;
	margin: 0 !important;
	background-color: #4B2FC5 !important;
	/* Cleared separately — a theme gradient would sit on top of the colour. */
	background-image: none !important;
	border: 0 !important;
	border-radius: 50% !important;
	box-shadow: none !important;
	outline: none;
	line-height: 1 !important;
	font-size: 0 !important;
	text-indent: 0 !important;
	text-transform: none !important;
	cursor: pointer;
	appearance: none;
	-webkit-appearance: none;
}

/* Themes commonly restyle buttons on interaction; hold the appearance. */
button.cd-fc-toggle:hover,
button.cd-fc-toggle:focus,
button.cd-fc-toggle:active,
.cd-fc-toggle:hover,
.cd-fc-toggle:focus,
.cd-fc-toggle:active {
	background-color: #4B2FC5 !important;
	background-image: none !important;
	border: 0 !important;
	box-shadow: none !important;
	transform: translateY(-50%) !important;
}

.cd-fc-toggle:focus-visible {
	outline: 2px solid #4B2FC5;
	outline-offset: 2px;
}

.cd-fc-toggle img {
	display: block !important;
	width: 11px !important;
	height: 7px !important;
	/* Themes set img { max-width: 100% }, which against a 28px button can
	   shrink the chevron and pull it off centre. */
	max-width: none !important;
	min-width: 0 !important;
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	border-radius: 0 !important;
	box-shadow: none !important;
	vertical-align: middle;
	transform: rotate(180deg);
	transition: transform 0.25s ease;
}

.cd-fc-card.is-open .cd-fc-toggle img {
	transform: rotate(0deg);
}

.cd-fc-dropdown {
	max-height: 0;
	overflow: hidden;
	background: #FCFCFC;
	transition: max-height 0.3s ease;
}

.cd-fc-card.is-open .cd-fc-dropdown {
	max-height: 101px;
}

.cd-fc-subforum-list {
	list-style: disc;
	width: 276px;
	height: 85px;
	margin: 8px auto;
	padding: 0 0 0 18px;
	box-sizing: border-box;
	overflow: hidden;
}

.cd-fc-subforum-item {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	font-family: 'Outfit', sans-serif;
	font-weight: 400;
	font-size: 14px;
	line-height: 28px;
}

.cd-fc-subforum-item a {
	color: inherit;
	text-decoration: none;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.cd-fc-subforum-count {
	flex-shrink: 0;
}

.cd-fc-empty {
	font-family: 'Outfit', sans-serif;
	font-size: 15px;
	color: #666;
}
