/* HEJhub Resources – front end. Override the variables in your theme's Additional CSS to match branding. */
.hej-res {
	--hej-accent: #0b5cad;
	--hej-accent-ink: #ffffff;
	--hej-border: rgba(0, 0, 0, 0.12);
	--hej-muted: rgba(0, 0, 0, 0.6);
	--hej-card: #ffffff;
	--hej-radius: 10px;
	margin: 1.5rem 0;
}

.hej-res-search {
	display: flex;
	gap: 0.5rem;
	margin-bottom: 1rem;
	max-width: 520px;
}
.hej-res-search input[type="search"] {
	flex: 1;
	padding: 0.6rem 0.8rem;
	border: 1px solid var(--hej-border);
	border-radius: var(--hej-radius);
	font: inherit;
}
.hej-res-search button,
.hej-res-btn {
	display: inline-block;
	padding: 0.6rem 1.1rem;
	background: var(--hej-accent);
	color: var(--hej-accent-ink);
	border: 0;
	border-radius: var(--hej-radius);
	font: inherit;
	font-weight: 600;
	text-decoration: none;
	cursor: pointer;
}
.hej-res-search button:hover,
.hej-res-btn:hover { filter: brightness(1.08); color: var(--hej-accent-ink); }

.hej-res-tabs {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem;
	margin-bottom: 1.5rem;
	border-bottom: 1px solid var(--hej-border);
	padding-bottom: 0.75rem;
}
.hej-res-tabs a {
	padding: 0.4rem 0.9rem;
	border: 1px solid var(--hej-border);
	border-radius: 999px;
	text-decoration: none;
	color: inherit;
	font-size: 0.92rem;
}
.hej-res-tabs a.is-active,
.hej-res-tabs a:hover {
	background: var(--hej-accent);
	border-color: var(--hej-accent);
	color: var(--hej-accent-ink);
}

.hej-res-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
	gap: 1.25rem;
}
.hej-res-card {
	display: flex;
	flex-direction: column;
	background: var(--hej-card);
	border: 1px solid var(--hej-border);
	border-radius: var(--hej-radius);
	overflow: hidden;
	transition: box-shadow 0.15s ease, transform 0.15s ease;
}
.hej-res-card:hover { box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08); transform: translateY(-2px); }

.hej-res-thumb { display: block; aspect-ratio: 16 / 9; background: #eef3f8; }
.hej-res-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hej-res-thumb-fallback {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 100%;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--hej-accent);
}

.hej-res-body { padding: 1rem 1.1rem 1.1rem; display: flex; flex-direction: column; flex: 1; }
.hej-res-badge {
	align-self: flex-start;
	font-size: 0.72rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: var(--hej-accent);
	margin-bottom: 0.35rem;
}
.hej-res-title { font-size: 1.1rem; line-height: 1.3; margin: 0 0 0.5rem; }
.hej-res-title a { color: inherit; text-decoration: none; }
.hej-res-title a:hover { text-decoration: underline; }
.hej-res-excerpt { color: var(--hej-muted); font-size: 0.95rem; margin: 0 0 0.75rem; flex: 1; }
.hej-res-meta { display: flex; justify-content: space-between; font-size: 0.82rem; color: var(--hej-muted); }
.hej-res-dl { font-weight: 600; color: var(--hej-accent); }

.hej-res-pager { margin-top: 2rem; display: flex; gap: 0.4rem; flex-wrap: wrap; }
.hej-res-pager .page-numbers {
	padding: 0.35rem 0.75rem;
	border: 1px solid var(--hej-border);
	border-radius: 6px;
	text-decoration: none;
	color: inherit;
}
.hej-res-pager .page-numbers.current { background: var(--hej-accent); color: var(--hej-accent-ink); border-color: var(--hej-accent); }

.hej-res-empty { color: var(--hej-muted); }
.hej-res-cta { margin: 1.25rem 0; }
.hej-res-back { margin-top: 2rem; }
