/* Hemp News hub (live list) */

.hemp-news-hub {
	--hemp-news-fg: #0f1f18;
	--hemp-news-chip-bg: #e4ece7;
	--hemp-news-chip-active: #c5dfd0;
	margin: 0 0 2.5rem;
	padding: 1.75rem 1.25rem 2rem;
	padding-left: max(1.25rem, env(safe-area-inset-left, 0px));
	padding-right: max(1.25rem, env(safe-area-inset-right, 0px));
	background: linear-gradient(165deg, #f4f9f6 0%, #eef6f1 45%, #e8f2ec 100%);
	border: 1px solid rgba(13, 92, 58, 0.12);
	border-radius: 16px;
	box-shadow: 0 8px 32px rgba(6, 40, 30, 0.06);
	color: var(--hemp-news-fg);
}

.hemp-news-hub__header {
	margin-bottom: 1.35rem;
	max-width: 44rem;
}

.hemp-news-hub__title {
	margin: 0 0 0.4rem;
	font-size: clamp(1.35rem, 2.5vw, 1.65rem);
	font-weight: 800;
	color: #063d27;
	letter-spacing: -0.02em;
}

.hemp-news-hub__lead {
	margin: 0;
	font-size: 1.02rem;
	line-height: 1.55;
	color: rgba(6, 40, 30, 0.82);
}

.hemp-news-hub__search {
	margin-bottom: 1.25rem;
}

.hemp-news-hub__search-label {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.hemp-news-hub__search-row {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	align-items: stretch;
	max-width: 36rem;
}

.hemp-news-hub__input {
	flex: 1 1 12rem;
	min-height: 2.85rem;
	padding: 0.55rem 1rem;
	font-size: 1rem;
	border: 2px solid rgba(13, 92, 58, 0.25);
	border-radius: 10px;
	background: #fff;
	box-sizing: border-box;
	color: var(--hemp-news-fg);
}

.hemp-news-hub__input:focus {
	outline: none;
	border-color: #0d5c3a;
	box-shadow: 0 0 0 3px rgba(13, 92, 58, 0.2);
}

.hemp-news-hub__submit {
	min-height: 2.85rem;
	padding: 0.55rem 1.25rem;
	font-size: 1rem;
	font-weight: 700;
	color: #fff !important;
	background: #0d5c3a;
	border: 2px solid #063d27;
	border-radius: 10px;
	cursor: pointer;
	transition: background 0.15s ease, transform 0.1s ease;
}

.hemp-news-hub__submit:hover,
.hemp-news-hub__submit:focus {
	background: #0a4a2e;
}

.hemp-news-hub__submit:focus-visible {
	outline: 2px solid #063d27;
	outline-offset: 2px;
}

.hemp-news-hub__advanced-toggle {
	align-items: center;
	background: transparent;
	border: 0;
	color: #063d27 !important;
	cursor: pointer;
	display: inline-flex;
	font-size: 0.92rem;
	font-weight: 700;
	min-height: 2.85rem;
	padding: 0.35rem 0.25rem;
	text-decoration: underline;
	text-underline-offset: 0.18em;
}

.hemp-news-hub__advanced-toggle:hover,
.hemp-news-hub__advanced-toggle:focus {
	color: #0d5c3a !important;
	outline: none;
}

.hemp-news-hub__advanced-toggle:focus-visible {
	box-shadow: 0 0 0 2px #fff, 0 0 0 4px #0d5c3a;
	border-radius: 6px;
}

.hemp-news-hub__advanced[hidden] {
	display: none !important;
}

.hemp-news-hub__advanced {
	margin-bottom: 1rem;
	padding-top: 0.75rem;
	border-top: 1px solid rgba(13, 92, 58, 0.12);
}

.hemp-news-hub__topics {
	margin-bottom: 1.15rem;
}

.hemp-news-hub__topics-label {
	display: block;
	font-size: 0.72rem;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: rgba(6, 40, 30, 0.55);
	margin-bottom: 0.45rem;
}

.hemp-news-hub__topics-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem;
}

.hemp-news-hub__topics-list li {
	margin: 0;
}

.hemp-news-hub__topic-link {
	display: inline-flex;
	align-items: center;
	min-height: 2.75rem;
	padding: 0.35rem 0.85rem;
	font-size: 0.88rem;
	font-weight: 600;
	color: #063d27 !important;
	background: #fff;
	border: 1px solid rgba(13, 92, 58, 0.35);
	border-radius: 999px;
	text-decoration: none;
	transition: background 0.15s ease, border-color 0.15s ease;
	box-sizing: border-box;
}

.hemp-news-hub__topic-link:hover,
.hemp-news-hub__topic-link:focus {
	background: rgba(13, 92, 58, 0.12);
	border-color: #0d5c3a;
	color: #042516 !important;
	outline: none;
}

.hemp-news-hub__topic-link:focus-visible {
	box-shadow: 0 0 0 2px #fff, 0 0 0 4px #0d5c3a;
}

.hemp-news-hub__section-title {
	margin: 0 0 0.75rem;
	font-size: 0.85rem;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: rgba(6, 40, 30, 0.55);
}

.hemp-news-hub__loading {
	font-size: 0.95rem;
	color: rgba(6, 40, 30, 0.65);
	margin-bottom: 0.75rem;
}

.hemp-news-hub__spinner {
	display: inline-block;
	width: 1rem;
	height: 1rem;
	border: 2px solid rgba(13, 92, 58, 0.2);
	border-top-color: #0d5c3a;
	border-radius: 50%;
	animation: hemp-news-spin 0.7s linear infinite;
	vertical-align: -0.15em;
}

@keyframes hemp-news-spin {
	to {
		transform: rotate(360deg);
	}
}

.hemp-news-hub__facets {
	margin-bottom: 1rem;
}

.hemp-news-hub__facets-inner {
	padding: 0.65rem 0;
	border-top: 1px solid rgba(13, 92, 58, 0.1);
	border-bottom: 1px solid rgba(13, 92, 58, 0.1);
}

.hemp-news-hub__facets-label {
	display: block;
	font-size: 0.72rem;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: rgba(6, 40, 30, 0.5);
	margin-bottom: 0.4rem;
}

.hemp-news-hub__facet-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 0.35rem;
}

.hemp-news-hub__chip {
	display: inline-flex;
	align-items: center;
	font-size: 0.8rem;
	padding: 0.4rem 0.65rem;
	border-radius: 999px;
	border: 1px solid rgba(6, 61, 39, 0.35);
	background: var(--hemp-news-chip-bg);
	cursor: pointer;
	line-height: 1.35;
	color: var(--hemp-news-fg) !important;
	min-height: 2.75rem;
	box-sizing: border-box;
	font-weight: 600;
}

.hemp-news-hub__chip:hover,
.hemp-news-hub__chip:focus {
	background: #d5e5db;
	color: #042516 !important;
	outline: none;
}

.hemp-news-hub__chip:focus-visible {
	box-shadow: 0 0 0 2px #fff, 0 0 0 4px #0d5c3a;
}

.hemp-news-hub__chip.is-active {
	border-color: #0d5c3a;
	background: var(--hemp-news-chip-active);
	font-weight: 700;
	color: #042516 !important;
}

.hemp-news-hub__grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 17rem), 1fr));
	gap: 1.1rem;
	margin: 0;
	padding: 0;
}

.hemp-news-hub__card {
	margin: 0;
	background: #fff;
	border-radius: 12px;
	overflow: hidden;
	border: 1px solid rgba(13, 92, 58, 0.1);
	box-shadow: 0 2px 12px rgba(6, 40, 30, 0.05);
	transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.hemp-news-hub__card:hover {
	box-shadow: 0 8px 28px rgba(6, 40, 30, 0.1);
	transform: translateY(-2px);
}

.hemp-news-hub__card-link {
	display: flex;
	flex-direction: column;
	height: 100%;
	text-decoration: none;
	color: var(--hemp-news-fg) !important;
}

.hemp-news-hub__card-link:visited {
	color: var(--hemp-news-fg) !important;
}

.hemp-news-hub__card-media {
	aspect-ratio: 16 / 9;
	background: rgba(6, 40, 30, 0.07);
	overflow: hidden;
}

.hemp-news-hub__card-media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.hemp-news-hub__card-body {
	padding: 0.85rem 1rem 1rem;
	display: flex;
	flex-direction: column;
	flex: 1;
	gap: 0.35rem;
}

.hemp-news-hub__card-date {
	font-size: 0.75rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: rgba(13, 92, 58, 0.85);
}

.hemp-news-hub__card-title {
	margin: 0;
	font-size: 1.05rem;
	font-weight: 700;
	line-height: 1.3;
	color: #063d27 !important;
}

.hemp-news-hub__card-ex {
	margin: 0;
	font-size: 0.88rem;
	line-height: 1.45;
	color: rgba(6, 40, 30, 0.78) !important;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.hemp-news-hub__card-cta {
	margin-top: auto;
	padding-top: 0.35rem;
	font-size: 0.82rem;
	font-weight: 700;
	color: #0d5c3a !important;
}

.hemp-news-hub__empty,
.hemp-news-hub__error,
.hemp-news-hub__offline {
	grid-column: 1 / -1;
	padding: 1.25rem;
	border-radius: 10px;
	background: rgba(255, 255, 255, 0.85);
	color: rgba(6, 40, 30, 0.8);
}

.hemp-news-hub__error {
	border: 1px solid rgba(180, 60, 60, 0.35);
}

.hemp-news-hub__pagination {
	margin-top: 1.35rem;
	display: flex;
	flex-wrap: wrap;
	gap: 0.35rem;
	align-items: center;
}

.hemp-news-hub__page-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 2.75rem;
	min-height: 2.75rem;
	padding: 0 0.55rem;
	font-size: 0.9rem;
	font-weight: 600;
	color: #063d27 !important;
	background: #fff;
	border: 1px solid rgba(13, 92, 58, 0.35);
	border-radius: 8px;
	text-decoration: none;
	box-sizing: border-box;
}

.hemp-news-hub__page-link:hover,
.hemp-news-hub__page-link:focus {
	background: rgba(13, 92, 58, 0.1);
	color: #042516 !important;
	outline: none;
}

.hemp-news-hub__page-link:focus-visible {
	box-shadow: 0 0 0 2px #fff, 0 0 0 4px #0d5c3a;
}

.hemp-news-hub__page-link.is-current {
	background: #0d5c3a;
	color: #fff !important;
	border-color: #0d5c3a;
}

@media (max-width: 640px) {
	.hemp-news-hub {
		padding: 1.25rem max(1rem, env(safe-area-inset-left, 0px)) 1.5rem max(1rem, env(safe-area-inset-right, 0px));
		margin-left: 0;
		margin-right: 0;
		border-radius: 12px;
	}

	.hemp-news-hub__search-row {
		flex-direction: column;
		align-items: stretch;
	}

	.hemp-news-hub__input {
		font-size: 16px; /* iOS: avoid zoom on focus */
		width: 100%;
	}

	.hemp-news-hub__submit {
		width: 100%;
	}

	.hemp-news-hub__topics-list {
		gap: 0.5rem;
	}

	.hemp-news-hub__card:hover {
		transform: none; /* less janky on touch */
	}

	.hemp-news-hub__facet-chips {
		gap: 0.45rem;
	}

	.hemp-news-hub {
		padding-bottom: max(1.5rem, env(safe-area-inset-bottom, 0px));
	}
}
