/* Nordic Poultry Feed – all selectors are prefixed .npf to avoid clashing with Themify Ultra. */
.npf {
	--npf-bg: #f6f1e9;
	--npf-text: #2f2a24;
	--npf-accent: #9a7b52;
	--npf-radius: 12px;
	--npf-ratio: 16/10;
	--npf-cols: 2;
	--npf-muted: color-mix(in srgb, var(--npf-text) 62%, transparent);
	--npf-line: color-mix(in srgb, var(--npf-text) 14%, transparent);
	--npf-card: color-mix(in srgb, var(--npf-bg) 55%, #fff);
	color: var(--npf-text);
	font-size: 16px;
	line-height: 1.55;
	box-sizing: border-box;
}
.npf *, .npf *::before, .npf *::after { box-sizing: inherit; }
.npf-sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Controls */
.npf-controls { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; padding: 14px 0; margin: 0 0 32px; border-top: 1px solid var(--npf-line); border-bottom: 1px solid var(--npf-line); }
.npf-filters, .npf-tools { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.npf .npf-chip {
	appearance: none; background: transparent; color: var(--npf-muted);
	border: 1px solid var(--npf-line); border-radius: 999px;
	padding: 7px 16px; font: inherit; font-size: 14px; line-height: 1.2; cursor: pointer;
	transition: color .2s, border-color .2s, background-color .2s;
	box-shadow: none; text-transform: none; letter-spacing: 0; min-height: 0;
}
.npf .npf-chip:hover { color: var(--npf-text); border-color: var(--npf-text); background: transparent; }
.npf .npf-chip[aria-pressed="true"] { background: var(--npf-text); border-color: var(--npf-text); color: var(--npf-bg); }
.npf .npf-search, .npf .npf-sort {
	font: inherit; font-size: 14px; color: var(--npf-text); background: var(--npf-card);
	border: 1px solid var(--npf-line); border-radius: 999px; padding: 7px 16px; height: auto; margin: 0; box-shadow: none;
}
.npf .npf-search { min-width: 200px; }
.npf :focus-visible { outline: 2px solid var(--npf-accent); outline-offset: 3px; }

/* Grid & list */
.npf-items { transition: opacity .2s; }
.npf[aria-busy="true"] .npf-items { opacity: .5; }
.npf-grid { display: grid; gap: 28px; grid-template-columns: repeat(var(--npf-cols), minmax(0, 1fr)); }
.npf-list { display: flex; flex-direction: column; }
.npf-list .npf-card { border-bottom: 1px solid var(--npf-line); }
.npf-list .npf-card:last-child { border-bottom: 0; }

/* Card */
.npf-card { margin: 0; }
.npf .npf-link { display: block; height: 100%; color: inherit; text-decoration: none; border-radius: var(--npf-radius); transition: background-color .25s; }
.npf-grid .npf-link { background: var(--npf-card); padding: 12px; }
.npf-grid .npf-link:hover { background: color-mix(in srgb, var(--npf-bg) 85%, var(--npf-text) 6%); }
.npf-list .npf-link { display: grid; grid-template-columns: 260px 1fr; gap: 28px; padding: 28px 0; }
.npf-media { aspect-ratio: var(--npf-ratio); overflow: hidden; border-radius: calc(var(--npf-radius) - 4px); background: var(--npf-line); }
.npf-media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s ease; margin: 0; max-width: none; }
.npf-link:hover .npf-media img { transform: scale(1.03); }
.npf-grid .npf-body { padding: 20px 8px 10px; }
.npf .npf-meta { display: flex; flex-wrap: wrap; gap: 4px 14px; margin: 0 0 10px; padding: 0; font-size: 11.5px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--npf-muted); }
.npf .npf-cat { color: var(--npf-accent); }
.npf .npf-title { margin: 0 0 8px; padding: 0; font-family: inherit; font-size: clamp(19px, 2vw, 23px); font-weight: 500; line-height: 1.3; color: var(--npf-text); letter-spacing: -.005em; }
.npf .npf-desc { margin: 0 0 14px; padding: 0; font-size: 15px; color: var(--npf-muted); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.npf-read { font-size: 14px; font-weight: 500; color: var(--npf-text); }
.npf-arrow { display: inline-block; transition: transform .25s; }
.npf-link:hover .npf-arrow { transform: translateX(4px); }
.npf-empty { color: var(--npf-muted); margin: 0; padding: 24px 0; }
.npf-more-wrap { text-align: center; margin-top: 40px; }
.npf .npf-more[hidden] { display: none; }

@media (max-width: 900px) {
	.npf-grid { grid-template-columns: repeat(min(var(--npf-cols), 2), minmax(0, 1fr)); gap: 20px; }
	.npf-list .npf-link { grid-template-columns: 200px 1fr; gap: 20px; }
}
@media (max-width: 640px) {
	.npf-grid { grid-template-columns: 1fr; }
	.npf-list .npf-link { grid-template-columns: 1fr; gap: 14px; padding: 22px 0; }
	.npf-controls { flex-direction: column; align-items: stretch; }
	.npf-tools { flex-wrap: nowrap; }
	.npf .npf-search { flex: 1; min-width: 0; }
}
@media (prefers-reduced-motion: reduce) {
	.npf *, .npf *::before, .npf *::after { transition: none !important; }
}
