/* Production fit for the content library kit. Existing search, filters and favorites stay. */
.chefit-articles-page .page-header{
	display: none;
}
.cfc.chefit-content-hub,
.cfc.chefit-archive-search-panel{
	background: transparent;
	margin: 0;
	min-height: 0;
	max-width: none;
}
.chefit-container:has(.cfc) > .archive-header,
.chefit-container:has(.cfc) > .chub-header{
	display: none;
}
.e-con-inner:has(.cfc) > .elementor-widget-heading,
.elementor-container:has(.cfc) > .elementor-widget-heading{
	display: none !important;
}
.cfc .item-card .card-media,
.cfc .archive-card-image{
	padding: 0;
}
.cfc .item-card .card-media img,
.cfc .archive-card-image img,
.cfc .item-card.discovery-card .media-open img,
.cfc .item-card.discovery-card[data-category] .media-open img{
	width: 100%;
	height: 100%;
	object-fit: cover !important;
	object-position: center;
	padding: 0 !important;
	position: absolute;
	inset: 0;
	mix-blend-mode: normal !important;
	background: transparent !important;
}
.cfc .card-media{
	position: relative;
}
.cfc .archive-card-link{
	color: inherit;
	text-decoration: none;
	display: flex;
	flex-direction: column;
	min-height: 100%;
}
.cfc .archive-card-title{
	margin: 8px 0 0;
	font-size: 16px;
	line-height: 1.4;
}
.cfc .card-body{
	padding: 14px 16px 16px;
}
.cfc .archive-search-row .search-field{
	flex: 1;
	min-width: 0;
}
.cfc .archive-search-row .search-field .archive-search-input{
	width: 100%;
	min-height: 0;
	border: 0 !important;
	border-radius: 0;
	box-shadow: none !important;
	background: transparent !important;
	padding: 12px 0;
}
.cfc .archive-search-row .archive-scan-barcode-btn,
.cfc .archive-search-row .filter-button{
	position: static;
	transform: none;
	width: auto;
	height: auto;
	flex: 0 0 auto;
}
.cfc .archive-search-row .barcode-button,
.cfc .archive-search-row .filter-button{
	min-height: 50px;
}
.cfc .scope-tabs.archive-scope-toggle{
	width: 100%;
	max-width: 100%;
	display: flex;
}
.cfc .scope-tabs .archive-scope-btn{
	flex: 1 1 0;
	justify-content: center;
	border: 0;
	background: transparent;
	border-radius: 8px;
	box-shadow: none;
	color: #818c73;
}
.cfc .scope-tabs .archive-scope-btn.active{
	background: #fff;
	color: #4b6830;
	border-color: transparent;
	box-shadow: 0 2px 7px #334c1910;
}
@media (min-width: 901px){
	.cfc .scope-tabs.archive-scope-toggle{
		width: fit-content;
	}
	.cfc .scope-tabs .archive-scope-btn{
		flex: 0 0 auto;
	}
}
.cfc .archive-sort-dropdown,
.cfc .archive-sort-current-label,
.cfc .archive-sort-dir-btn,
.cfc .archive-sort-pick-btn{
	display: none !important;
}
.cfc .archive-nav-row .chefit-archive-create-cta{
	margin-inline-start: auto;
	flex-shrink: 0;
}
.cfc .archive-nav-row .create-button{
	width: auto;
	margin-inline: 0;
	min-height: 44px;
	padding: 9px 13px;
	font-size: 12px;
	font-weight: 700;
	gap: 6px;
	background: #f1f6e8;
	border: 1px solid #dce6ce;
	color: #607c43;
	border-radius: 12px;
	text-decoration: none;
	white-space: nowrap;
}
.cfc .archive-nav-row .create-button svg{
	width: 17px;
	height: 17px;
}
.cfc .category-tabs svg{
	width: 17px;
	height: 17px;
	flex-shrink: 0;
}
.cfc .results-toolbar{
	border: 0;
	padding: 0;
	box-shadow: none;
}
.cfc .results-toolbar .results-title{
	margin: 0;
	padding: 0;
	border: 0;
	font-size: 12px;
	font-weight: 400;
	color: #8a9480;
	line-height: 1.5;
}
.cfc .results-toolbar .results-count{
	font-size: 14px;
	font-weight: 700;
	color: #586a48;
}
.cfc .sort-field{
	font-size: 12px;
	font-weight: 400;
	color: #95a087;
}
.cfc .sort-field select,
.cfc .cfc-archive-sort{
	border: 1px solid #e5e9dd !important;
	background: #fff !important;
	border-radius: 8px !important;
	box-shadow: none !important;
	min-height: 36px;
	padding: 7px 10px;
	font-size: 12px;
	font-weight: 400;
	color: #69785a;
}
@media (max-width: 650px){
	.cfc .archive-search-row .search-field input{
		font-size: 13px;
	}
	.cfc .sort-field{
		width: 100%;
		justify-content: space-between;
	}
	.cfc .sort-field select,
	.cfc .cfc-archive-sort{
		flex: 1;
		max-width: none;
		min-height: 44px;
		font-size: 12px;
	}
}
.cfc .archive-layout{
	display: block;
}
.cfc .archive-filters-panel{
	display: none;
	background: #fff;
	border: 1px solid var(--line, #e2e7dc);
	border-radius: 19px;
	padding: 18px 16px;
	margin-bottom: 18px;
}
.cfc .archive-filters-panel.is-open{
	display: block;
}
.cfc .filter-panel-heading{
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 14px;
}
.cfc .filter-panel-heading h2{
	margin: 0;
	font-size: 17px;
}
.cfc .archive-filter-group{
	padding-bottom: 16px;
	margin-bottom: 16px;
	border-bottom: 1px solid #edf0e6;
}
.cfc .archive-filter-badges{
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 4px 12px;
}
.cfc .archive-tax-badge{
	display: flex;
	align-items: center;
	min-height: 40px;
	padding: 6px 4px;
	border: 0;
	background: transparent;
	border-radius: 8px;
	color: #58694a;
	text-align: start;
}
.cfc .archive-tax-badge.active{
	background: #eef5e2;
	font-weight: 700;
}
@media (min-width: 901px){
	.cfc .archive-layout{
		display: grid;
		grid-template-columns: 226px minmax(0, 1fr);
		gap: 30px;
		align-items: start;
	}
	.cfc .archive-filters-panel{
		display: block !important;
		position: sticky;
		top: 16px;
		max-height: calc(100vh - 32px);
		overflow: auto;
		margin: 0;
	}
	.cfc .archive-search-row .filter-button{
		display: none;
	}
	.cfc .archive-filter-badges{
		grid-template-columns: 1fr;
	}
}
@media (max-width: 650px){
	.cfc .archive-search-row .barcode-button,
	.cfc .archive-search-row .filter-button{
		width: 46px;
		min-width: 46px;
		padding: 10px;
	}
	.cfc .archive-search-row .barcode-button span,
	.cfc .archive-search-row .filter-button span{
		display: none;
	}
}
.cfc .archive-load-more-btn{
	background: var(--green);
	border: 0;
	color: #21320f;
	border-radius: 13px;
	min-height: 44px;
	padding: 10px 18px;
	font-weight: 700;
}
.cfc .item-card.is-filtered-out{
	display: none !important;
}
.cfc .mascot{
	width: 220px;
	height: 220px;
	max-width: none;
	object-fit: contain;
}
.cfc .media-play{ z-index: 5; }
.cfc .cfc-play-video{
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.cfc .item-card.discovery-card .card-media,
.cfc .item-card.discovery-card .card-media.is-playing{
	aspect-ratio: 18 / 11 !important;
	height: auto !important;
	min-height: 0 !important;
	overflow: hidden !important;
}
.cfc .item-card.discovery-card .card-media .media-open,
.cfc .item-card.discovery-card .card-media.is-playing .media-open{
	position: absolute !important;
	inset: 0 !important;
	width: 100% !important;
	height: 100% !important;
	min-height: 0 !important;
	overflow: hidden !important;
}
.cfc .item-card.discovery-card .card-media img,
.cfc .item-card.discovery-card .card-media video,
.cfc .item-card.discovery-card .card-media.is-playing .media-open img,
.cfc .item-card.discovery-card .card-media.is-playing .cfc-play-video{
	position: absolute !important;
	inset: 0 !important;
	width: 100% !important;
	height: 100% !important;
	max-width: 100% !important;
	max-height: 100% !important;
	object-position: center center !important;
}
.cfc .item-card.discovery-card .card-media.is-playing img,
.cfc .item-card.discovery-card .card-media.is-playing video,
.cfc .item-card.discovery-card .card-media.is-playing .cfc-play-video{
	object-fit: contain !important;
	transform: none !important;
}
.cfc .favorite-button{
	position: absolute;
	top: 8px;
	left: 8px;
	z-index: 4;
	width: 44px !important;
	height: 44px !important;
	min-height: 44px;
	padding: 0 !important;
	margin: 0;
	display: grid !important;
	place-items: center !important;
	border-radius: 50%;
	background: #fffffff2;
	border: 1px solid #e5ebdc;
	color: #829376;
	line-height: 0;
}
.cfc .favorite-button svg{
	width: 20px !important;
	height: 20px !important;
	display: block;
	margin: 0;
	stroke: currentColor;
	fill: none;
}
.cfc .favorite-button.is-favorite{
	color: #b4234a;
}
.cfc .favorite-button.is-favorite svg{
	fill: currentColor;
}
.cfc .media-open,
.cfc .card-title{
	border: 0;
	background: transparent;
	padding: 0;
	color: inherit;
	text-align: inherit;
	font: inherit;
	cursor: pointer;
	width: 100%;
}
.cfc .media-open{
	display: block;
	height: 100%;
}
.cfc .card-title{
	font-weight: 700;
	font-size: 16px;
	line-height: 1.4;
}
.cfc dialog.cfc-sheet{
	position: fixed;
	inset: auto 0 0 0;
	width: 100%;
	max-width: 640px;
	margin: 0 auto;
	max-height: min(86dvh, 720px);
	border: 0;
	border-radius: 24px 24px 0 0;
	padding: 0;
	color: var(--ink, #20291f);
	background: #fff;
}
.cfc dialog.cfc-sheet::backdrop{
	background: #1e2b2366;
}
.cfc .cfc-sheet-bar{
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 14px 18px;
	border-bottom: 1px solid var(--line, #e2e7dc);
	position: sticky;
	top: 0;
	background: #fff;
}
.cfc .cfc-sheet-body{
	padding: 16px 18px 24px;
}
.cfc .cfc-sheet-body img{
	width: 100%;
	height: 180px;
	object-fit: cover;
	border-radius: 16px;
	display: block;
	margin-bottom: 12px;
}
.cfc .detail-source,
.cfc .detail-source.secondary{
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	width: 100%;
	min-height: 48px;
	margin-top: 12px;
	padding: 10px 16px;
	border-radius: 12px;
	border: 1px solid #c9dcae;
	background: #eef5df;
	color: #466d26;
	font-weight: 700;
	text-decoration: none;
	transition: background .2s, border-color .2s, color .2s;
}
.cfc .detail-source svg{
	width: 17px;
	height: 17px;
	flex-shrink: 0;
}
.cfc .detail-source:hover,
.cfc .detail-source.secondary:hover{
	background: #e2efc9;
	border-color: #b3cd8d;
	color: #3a5d1d;
}
.cfc .detail-source:focus-visible{
	outline: 2px solid #7fae3c;
	outline-offset: 2px;
}
.cfc .item-card.discovery-card .card-actions:not(:has(.primary)){
	grid-template-columns: minmax(0, 1fr);
}
.cfc .cfc-sheet .energy-pill{
	display: flex;
	align-items: baseline;
	gap: 6px;
	margin: 12px 0;
}
.cfc .cfc-sheet .energy-pill strong{ font-size: 28px; }
.cfc .cfc-sheet .macro-row{
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 8px;
	margin: 12px 0;
}
.cfc .cfc-sheet .macro{
	display: flex;
	flex-direction: column;
	align-items: center;
	padding: 8px 4px;
	border-radius: 10px;
	background: #f4f7f1;
	text-align: center;
}
.cfc .cfc-sheet .sheet-actions,
.cfc .cfc-sheet .card-actions{
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 16px;
}
.cfc .cfc-sheet .sheet-actions .primary,
.cfc .cfc-sheet .sheet-actions .quick-add{
	background: #a6e92c;
	color: #21320f;
	border: 0;
	border-radius: 12px;
	min-height: 44px;
	padding: 8px 14px;
	font-weight: 700;
}
.cfc-toast{
	position: fixed;
	z-index: 100000;
	bottom: 24px;
	left: 50%;
	transform: translateX(-50%);
	max-width: min(92vw, 420px);
	padding: 12px 16px;
	border-radius: 14px;
	background: #24331c;
	color: #fff;
	text-align: center;
}
.cfc-diary-date-field{ display: none; }
body.cfc-adding-diary .cfc-diary-date-field{
	display: flex;
	flex-direction: column;
	gap: 4px;
	margin: 8px 16px 0;
	font-weight: 700;
}
body.cfc-adding-diary #cfc-diary-date{
	min-height: 44px;
	border: 1px solid #d5dfc8;
	border-radius: 10px;
	padding: 8px 10px;
}
