.jmfdf-archive,
.jmfdf-single {
	--jmfdf-ink: #0f172a;
	--jmfdf-muted: #64748b;
	--jmfdf-line: rgba(15, 23, 42, 0.1);
	--jmfdf-soft: #f8fafc;
	--jmfdf-soft-green: #ecfdf5;
	--jmfdf-green: #0f766e;
	--jmfdf-green-dark: #115e59;
	--jmfdf-yellow: #f59e0b;
	--jmfdf-shadow: 0 24px 70px rgba(15, 23, 42, 0.1);
	max-width: 1180px;
	margin: 0 auto;
	padding: 1.25rem 1rem 4rem;
	color: var(--jmfdf-ink);
}

.jmfdf-explorer {
	display: grid;
	gap: 1rem;
}

.jmfdf-hero,
.jmfdf-panel,
.jmfdf-card,
.jmfdf-filter-panel,
.jmfdf-category-hub,
.jmfdf-submit-cta,
.jmfdf-empty--panel {
	border: 1px solid var(--jmfdf-line);
	border-radius: 28px;
	background: #fff;
	box-shadow: var(--jmfdf-shadow);
}

.jmfdf-hero {
	padding: clamp(1.15rem, 3vw, 2rem);
	margin-bottom: 0;
}

.jmfdf-hero--modern {
	position: relative;
	display: grid;
	grid-template-columns: minmax(0, 1.4fr) minmax(210px, 0.6fr);
	gap: 1rem;
	overflow: hidden;
	background:
		radial-gradient(circle at top right, rgba(20, 184, 166, 0.2), transparent 34%),
		linear-gradient(135deg, #ffffff 0%, #f0fdfa 55%, #f8fafc 100%);
}

.jmfdf-hero--modern:before {
	content: "";
	position: absolute;
	inset: auto -120px -180px auto;
	width: 360px;
	height: 360px;
	border-radius: 50%;
	background: rgba(15, 118, 110, 0.1);
}

.jmfdf-hero__content,
.jmfdf-hero__stats {
	position: relative;
	z-index: 1;
}

.jmfdf-hero h1,
.jmfdf-section-head h2,
.jmfdf-filter-panel h2,
.jmfdf-results__head h2,
.jmfdf-submit-cta h2 {
	margin: 0;
	letter-spacing: -0.035em;
	line-height: 1.08;
}

.jmfdf-hero h1 {
	font-size: clamp(2rem, 4.4vw, 3.5rem);
	max-width: 760px;
}

.jmfdf-hero p {
	max-width: 680px;
	color: #334155;
	font-size: clamp(0.96rem, 1.7vw, 1.08rem);
	line-height: 1.6;
}

.jmfdf-kicker {
	margin: 0 0 0.55rem;
	color: var(--jmfdf-green);
	font-size: 0.78rem;
	font-weight: 800;
	letter-spacing: 0.09em;
	text-transform: uppercase;
}

.jmfdf-hero__actions,
.jmfdf-filter-actions,
.jmfdf-card__actions,
.jmfdf-empty__actions,
.jmfdf-submit-cta__actions,
.jmfdf-compare-bar__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.65rem;
	align-items: center;
}

.jmfdf-hero__stats {
	display: grid;
	gap: 0.55rem;
	align-self: center;
}

.jmfdf-hero__stats div {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 1rem;
	padding: 0.72rem 0.85rem;
	border: 1px solid rgba(15, 118, 110, 0.12);
	border-radius: 20px;
	background: rgba(255, 255, 255, 0.78);
	backdrop-filter: blur(10px);
}

.jmfdf-hero__stats strong {
	color: var(--jmfdf-green-dark);
	font-size: 1.55rem;
	letter-spacing: -0.05em;
}

.jmfdf-hero__stats span {
	color: var(--jmfdf-muted);
	font-weight: 700;
}

.jmfdf-trustbar {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 0.7rem;
}

.jmfdf-trustbar span {
	padding: 0.9rem 1rem;
	border: 1px solid rgba(15, 118, 110, 0.14);
	border-radius: 18px;
	background: var(--jmfdf-soft-green);
	color: var(--jmfdf-green-dark);
	font-size: 0.92rem;
	font-weight: 800;
	text-align: center;
}

.jmfdf-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 42px;
	padding: 0.72rem 1rem;
	border: 1px solid transparent;
	border-radius: 999px;
	font-weight: 800;
	text-decoration: none;
	cursor: pointer;
	transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.jmfdf-button:hover {
	transform: translateY(-1px);
	text-decoration: none;
}

.jmfdf-button--primary {
	background: var(--jmfdf-green);
	color: #fff;
	box-shadow: 0 12px 28px rgba(15, 118, 110, 0.24);
}

.jmfdf-button--primary:hover {
	background: var(--jmfdf-green-dark);
	color: #fff;
}

.jmfdf-button--ghost {
	border-color: var(--jmfdf-line);
	background: #fff;
	color: var(--jmfdf-ink);
}

.jmfdf-filter-panel,
.jmfdf-category-hub,
.jmfdf-submit-cta,
.jmfdf-empty--panel {
	padding: clamp(0.9rem, 2.4vw, 1.25rem);
}

.jmfdf-filter-panel__head,
.jmfdf-results__head,
.jmfdf-section-head,
.jmfdf-submit-cta {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
}

.jmfdf-filter-toggle {
	display: none;
	border: 1px solid var(--jmfdf-line);
	border-radius: 999px;
	background: #fff;
	padding: 0.65rem 0.9rem;
	font-weight: 800;
}

.jmfdf-explorer-form {
	display: grid;
	grid-template-columns: minmax(240px, 1.2fr) repeat(3, minmax(150px, 1fr));
	gap: 0.7rem;
	margin-top: 0.8rem;
}

.jmfdf-field {
	display: grid;
	gap: 0.35rem;
}

.jmfdf-field span {
	color: #475569;
	font-size: 0.85rem;
	font-weight: 800;
}

.jmfdf-field input,
.jmfdf-field select,
.jmfdf-finder input {
	width: 100%;
	min-height: 42px;
	padding: 0.62rem 0.78rem;
	border: 1px solid #cbd5e1;
	border-radius: 16px;
	background: #fff;
	color: var(--jmfdf-ink);
}

.jmfdf-field--search {
	grid-column: span 2;
}

.jmfdf-filter-actions {
	align-self: end;
}

.jmfdf-results {
	display: grid;
	gap: 1rem;
}

.jmfdf-reset-link {
	color: var(--jmfdf-green);
	font-weight: 800;
	text-decoration: none;
}

.jmfdf-card-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	gap: 0.85rem;
}

.jmfdf-card {
	display: grid;
	overflow: hidden;
	min-height: 0;
	transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.jmfdf-card:hover {
	transform: translateY(-3px);
	box-shadow: 0 30px 80px rgba(15, 23, 42, 0.14);
}

.jmfdf-card__body {
	display: grid;
	gap: 0.58rem;
	padding: 1rem;
}

.jmfdf-card__topline {
	display: flex;
	justify-content: space-between;
	gap: 0.75rem;
	align-items: center;
}

.jmfdf-card__meta,
.jmfdf-card__verified {
	margin: 0;
	color: var(--jmfdf-muted);
	font-size: 0.9rem;
}

.jmfdf-badge {
	display: inline-flex;
	align-items: center;
	border-radius: 999px;
	padding: 0.28rem 0.58rem;
	background: var(--jmfdf-soft-green);
	color: var(--jmfdf-green-dark);
	font-size: 0.76rem;
	font-weight: 900;
	white-space: nowrap;
}

.jmfdf-card h3 {
	margin: 0;
	font-size: 1.08rem;
	line-height: 1.32;
}

.jmfdf-card h3 a {
	color: var(--jmfdf-ink);
	text-decoration: none;
}

.jmfdf-card__line,
.jmfdf-card__nutrition {
	margin: 0;
	color: #475569;
	font-size: 0.9rem;
	font-weight: 750;
	line-height: 1.45;
}

.jmfdf-card__nutrition {
	color: var(--jmfdf-green-dark);
	font-weight: 850;
}

.jmfdf-card__facts,
.jmfdf-fact-grid {
	display: grid;
	gap: 0.56rem;
	margin: 0;
}

.jmfdf-card__facts div,
.jmfdf-fact-grid div {
	display: grid;
	grid-template-columns: minmax(74px, 0.34fr) 1fr;
	gap: 0.65rem;
	padding-bottom: 0.55rem;
	border-bottom: 1px solid rgba(226, 232, 240, 0.8);
}

.jmfdf-card dt,
.jmfdf-fact-grid dt {
	color: #475569;
	font-weight: 800;
}

.jmfdf-card dd,
.jmfdf-fact-grid dd {
	margin: 0;
	color: #1e293b;
}

.jmfdf-card__tags,
.jmfdf-card__summary,
.jmfdf-tags {
	display: inline-flex;
	flex-wrap: wrap;
	gap: 0.35rem;
	margin: 0;
	color: #475569;
	font-size: 0.86rem;
	font-weight: 750;
	line-height: 1.55;
}

.jmfdf-card__actions .jmfdf-button {
	flex: 1 1 130px;
	min-height: 38px;
	padding: 0.58rem 0.82rem;
}

.jmfdf-card__actions {
	margin-top: 0.1rem;
}

.jmfdf-category-hub {
	display: grid;
	gap: 1rem;
}

.jmfdf-hub-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
	gap: 1rem;
}

.jmfdf-hub-card {
	padding: 1rem;
	border: 1px solid var(--jmfdf-line);
	border-radius: 22px;
	background: var(--jmfdf-soft);
}

.jmfdf-hub-card h3 {
	margin: 0 0 0.8rem;
	font-size: 1.05rem;
}

.jmfdf-term-cloud {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
}

.jmfdf-term-cloud a {
	display: inline-flex;
	gap: 0.42rem;
	align-items: center;
	padding: 0.45rem 0.62rem;
	border: 1px solid rgba(15, 118, 110, 0.14);
	border-radius: 999px;
	background: #fff;
	color: var(--jmfdf-green-dark);
	font-weight: 800;
	text-decoration: none;
}

.jmfdf-term-cloud small {
	color: var(--jmfdf-muted);
}

.jmfdf-submit-cta {
	background:
		radial-gradient(circle at right, rgba(245, 158, 11, 0.12), transparent 35%),
		#fff;
}

.jmfdf-submit-cta p {
	margin-bottom: 0;
	color: var(--jmfdf-muted);
}

.jmfdf-empty {
	color: #475569;
}

.jmfdf-empty--panel {
	text-align: center;
}

.jmfdf-empty--panel h3 {
	margin-top: 0;
	color: var(--jmfdf-ink);
}

.jmfdf-empty__actions {
	justify-content: center;
}

.jmfdf-pagination ul {
	display: flex;
	flex-wrap: wrap;
	gap: 0.45rem;
	justify-content: center;
	padding: 0;
	margin: 1.25rem 0 0;
	list-style: none;
}

.jmfdf-pagination a,
.jmfdf-pagination span {
	display: inline-flex;
	min-width: 38px;
	min-height: 38px;
	align-items: center;
	justify-content: center;
	border: 1px solid var(--jmfdf-line);
	border-radius: 999px;
	text-decoration: none;
}

.jmfdf-pagination .current {
	background: var(--jmfdf-green);
	color: #fff;
}

.jmfdf-compare-bar {
	position: fixed;
	z-index: 50;
	right: 1rem;
	bottom: 1rem;
	left: 1rem;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	max-width: 760px;
	margin: 0 auto;
	padding: 0.8rem;
	border: 1px solid rgba(15, 118, 110, 0.2);
	border-radius: 22px;
	background: rgba(255, 255, 255, 0.94);
	box-shadow: 0 18px 50px rgba(15, 23, 42, 0.18);
	backdrop-filter: blur(12px);
}

.jmfdf-compare-bar[hidden] {
	display: none;
}

.jmfdf-detail__header {
	display: grid;
	grid-template-columns: minmax(0, 1.2fr) minmax(260px, 0.8fr);
	gap: 2rem;
	align-items: center;
	margin-bottom: 1.5rem;
}

.jmfdf-detail__image img {
	width: 100%;
	border-radius: 24px;
}

.jmfdf-panel {
	padding: 1.25rem;
	margin: 1rem 0;
}

.jmfdf-nutrition-table,
.jmfdf-compare-table {
	width: 100%;
	border-collapse: collapse;
}

.jmfdf-nutrition-table th,
.jmfdf-nutrition-table td,
.jmfdf-compare-table th,
.jmfdf-compare-table td {
	border-bottom: 1px solid #e2e8f0;
	padding: 0.75rem;
	text-align: left;
}

.jmfdf-ingredient-list {
	display: grid;
	gap: 0.45rem;
	padding-left: 1.25rem;
}

.jmfdf-disclaimer {
	color: #475569;
}

.jmfdf-finder {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	margin-top: 1.25rem;
}

.jmfdf-finder button {
	border: 0;
	border-radius: 999px;
	padding: 0.75rem 1rem;
	background: var(--jmfdf-green);
	color: #fff;
	font-weight: 800;
	cursor: pointer;
}

.jmfdf-single--compact,
.jmfdf-detail--compact {
	display: grid;
	gap: 0.85rem;
}

.jmfdf-breadcrumb {
	display: flex;
	flex-wrap: wrap;
	gap: 0.45rem;
	align-items: center;
	color: var(--jmfdf-muted);
	font-size: 0.92rem;
	font-weight: 700;
}

.jmfdf-breadcrumb a {
	color: var(--jmfdf-green-dark);
	text-decoration: none;
}

.jmfdf-breadcrumb span:before {
	content: "/";
	margin-right: 0.45rem;
	color: #cbd5e1;
}

.jmfdf-compact-hero,
.jmfdf-compact-section,
.jmfdf-compact-summary,
.jmfdf-compact-details,
.jmfdf-compact-cta {
	border: 1px solid var(--jmfdf-line);
	border-radius: 22px;
	background: #fff;
	box-shadow: 0 14px 44px rgba(15, 23, 42, 0.07);
}

.jmfdf-compact-hero {
	padding: clamp(1rem, 3vw, 1.6rem);
	background:
		radial-gradient(circle at top right, rgba(20, 184, 166, 0.13), transparent 34%),
		linear-gradient(135deg, #fff 0%, #f8fafc 100%);
}

.jmfdf-compact-hero.has-product-image {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(170px, 260px);
	gap: clamp(0.9rem, 3vw, 1.5rem);
	align-items: center;
}

.jmfdf-compact-hero h1 {
	max-width: 860px;
	margin: 0;
	font-size: clamp(1.55rem, 3.5vw, 2.65rem);
	line-height: 1.16;
	letter-spacing: -0.04em;
}

.jmfdf-compact-product-image {
	display: flex;
	align-items: center;
	justify-content: center;
	align-self: stretch;
	min-height: 180px;
	margin: 0;
	overflow: hidden;
	border: 1px solid rgba(15, 118, 110, 0.14);
	border-radius: 20px;
	background: rgba(255, 255, 255, 0.72);
	box-shadow: 0 12px 34px rgba(15, 23, 42, 0.08);
}

.jmfdf-compact-product-image img {
	display: block;
	width: 100%;
	height: 100%;
	max-height: 230px;
	object-fit: contain;
	padding: 0.75rem;
}

.jmfdf-chip-row,
.jmfdf-compact-chips,
.jmfdf-compact-cta {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	align-items: center;
}

.jmfdf-chip,
.jmfdf-compact-chips span {
	display: inline-flex;
	align-items: center;
	min-height: 30px;
	padding: 0.34rem 0.58rem;
	border: 1px solid rgba(15, 118, 110, 0.15);
	border-radius: 999px;
	background: #fff;
	color: var(--jmfdf-green-dark);
	font-size: 0.82rem;
	font-weight: 800;
}

.jmfdf-chip--strong {
	background: var(--jmfdf-green);
	color: #fff;
}

.jmfdf-compact-section,
.jmfdf-compact-summary,
.jmfdf-compact-details,
.jmfdf-compact-cta {
	padding: clamp(0.9rem, 2.4vw, 1.25rem);
}

.jmfdf-compact-head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 0.8rem;
	margin-bottom: 0.7rem;
}

.jmfdf-compact-head h2 {
	margin: 0;
	font-size: clamp(1.05rem, 2vw, 1.28rem);
	letter-spacing: -0.025em;
}

.jmfdf-compact-head p {
	margin: 0;
	color: var(--jmfdf-muted);
	font-size: 0.88rem;
}

.jmfdf-compact-table {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
	gap: 0;
	margin: 0;
	border-top: 1px solid rgba(226, 232, 240, 0.9);
	border-left: 1px solid rgba(226, 232, 240, 0.9);
}

.jmfdf-compact-table div {
	display: grid;
	grid-template-columns: minmax(82px, 0.46fr) 1fr;
	gap: 0.55rem;
	align-items: center;
	min-width: 0;
	padding: 0.58rem 0.7rem;
	border-right: 1px solid rgba(226, 232, 240, 0.9);
	border-bottom: 1px solid rgba(226, 232, 240, 0.9);
	background: #fff;
}

.jmfdf-compact-table dt {
	color: var(--jmfdf-muted);
	font-size: 0.78rem;
	font-weight: 850;
}

.jmfdf-compact-table dd {
	margin: 0;
	color: var(--jmfdf-ink);
	font-size: 0.9rem;
	font-weight: 780;
}

.jmfdf-compact-table a {
	color: var(--jmfdf-green-dark);
	text-decoration: underline;
	text-underline-offset: 3px;
}

.jmfdf-compact-summary .jmfdf-compact-table {
	grid-template-columns: repeat(4, minmax(0, 1fr));
}

.jmfdf-compact-summary .jmfdf-compact-table div {
	grid-template-columns: 1fr;
	gap: 0.18rem;
}

.jmfdf-compact-summary dd {
	font-size: 1rem;
	font-weight: 900;
}

.jmfdf-compact-details {
	display: block;
}

.jmfdf-compact-details summary {
	cursor: pointer;
	color: var(--jmfdf-green-dark);
	font-weight: 900;
}

.jmfdf-compact-details p {
	margin: 0.75rem 0 0;
	color: #334155;
	line-height: 1.7;
}

.jmfdf-compact-details .jmfdf-compact-table {
	margin-top: 0.75rem;
}

.jmfdf-compact-details--source {
	background: var(--jmfdf-soft);
	box-shadow: none;
}

.jmfdf-compact-cta {
	justify-content: flex-end;
	box-shadow: none;
}

@media (max-width: 900px) {
	.jmfdf-hero--modern {
		grid-template-columns: 1fr;
	}

	.jmfdf-trustbar {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.jmfdf-explorer-form {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.jmfdf-field--search {
		grid-column: 1 / -1;
	}

	.jmfdf-compact-summary .jmfdf-compact-table {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.jmfdf-compact-hero.has-product-image {
		grid-template-columns: 1fr;
	}

	.jmfdf-compact-product-image {
		max-width: 320px;
		min-height: 160px;
	}
}

@media (max-width: 680px) {
	.jmfdf-archive,
	.jmfdf-single {
		padding: 1rem 0.75rem 5.5rem;
	}

	.jmfdf-hero,
	.jmfdf-compact-hero,
	.jmfdf-compact-section,
	.jmfdf-compact-summary,
	.jmfdf-compact-details,
	.jmfdf-filter-panel,
	.jmfdf-category-hub,
	.jmfdf-submit-cta,
	.jmfdf-empty--panel {
		border-radius: 22px;
	}

	.jmfdf-trustbar,
	.jmfdf-explorer-form,
	.jmfdf-filter-panel__head,
	.jmfdf-results__head,
	.jmfdf-section-head,
	.jmfdf-submit-cta {
		grid-template-columns: 1fr;
	}

	.jmfdf-filter-panel__head,
	.jmfdf-results__head,
	.jmfdf-section-head,
	.jmfdf-submit-cta {
		display: grid;
	}

	.jmfdf-filter-toggle {
		display: inline-flex;
		justify-content: center;
	}

	.jmfdf-explorer-form {
		display: none;
	}

	.jmfdf-explorer-form.is-open {
		display: grid;
	}

	.jmfdf-card-grid {
		grid-template-columns: 1fr;
	}

	.jmfdf-compact-table,
	.jmfdf-compact-summary .jmfdf-compact-table,
	.jmfdf-compact-table div {
		grid-template-columns: 1fr;
	}

	.jmfdf-compare-wrap {
		overflow-x: auto;
	}

	.jmfdf-compare-bar {
		align-items: stretch;
		flex-direction: column;
	}

	.jmfdf-compare-bar__actions {
		display: grid;
		grid-template-columns: 1fr 1fr;
	}
}
