/*
 * CannaHaven Header Feed System v1.0.6
 * Scoped homepage header/feed styling.
 */

body.chhfs-active .site-header,
body.chhfs-active header.site-header,
body.chhfs-active #masthead,
body.chhfs-active #page > header,
body.chhfs-active .site-branding,
body.chhfs-active .header-main,
body.chhfs-active .main-header,
body.chhfs-active .top-header,
body.chhfs-active .bottom-header,
body.chhfs-active .main-navigation {
	display: none !important;
}

.ch-header-feed {
	--ch-green: #0b5227;
	--ch-green-2: #1f6b3a;
	--ch-ink: #101510;
	--ch-muted: #5f665f;
	--ch-line: rgba(11, 82, 39, 0.28);
	--ch-paper: #ffffff;
	box-sizing: border-box;
	width: 100%;
	max-width: 100%;
	margin: 0;
	overflow-x: clip;
	background: var(--ch-paper);
	color: var(--ch-ink);
	font-family: Inter, Arial, Helvetica, sans-serif;
}

@supports not (overflow: clip) {
	.ch-header-feed {
		overflow-x: hidden;
	}
}

.ch-header-feed *,
.ch-header-feed *::before,
.ch-header-feed *::after {
	box-sizing: border-box;
}

.ch-header-feed a {
	color: inherit;
	text-decoration: none;
}

.ch-header-feed svg {
	display: block;
	width: 1em;
	height: 1em;
	fill: currentColor;
}

.ch-breaking {
	display: grid;
	grid-template-columns: auto 1fr;
	min-height: 74px;
	border-bottom: 1px solid var(--ch-line);
	background: #fff;
}

.ch-breaking__label {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 0 20px;
	background: var(--ch-green);
	color: #fff;
	font-size: clamp(0.9rem, 1.2vw, 1.1rem);
	font-weight: 900;
	line-height: 1;
	text-transform: uppercase;
	white-space: nowrap;
}

.ch-breaking__leaf {
	font-size: 2rem;
}

.ch-breaking__viewport {
	min-width: 0;
	max-width: 100%;
	overflow: hidden;
	color: #111;
}

.ch-breaking__track {
	display: flex;
	align-items: center;
	width: max-content;
	min-width: 0;
	min-height: 74px;
	font-family: "Arial Narrow", Inter, Arial, Helvetica, sans-serif;
	font-size: clamp(0.95rem, 1.5vw, 1.25rem);
	font-weight: 800;
	white-space: nowrap;
	animation: chTicker 34s linear infinite;
	will-change: transform;
}

.ch-breaking__viewport:hover .ch-breaking__track {
	animation-play-state: paused;
}

.ch-breaking__set {
	display: inline-flex;
	align-items: center;
	gap: clamp(22px, 3vw, 44px);
	flex: 0 0 auto;
	padding: 0 clamp(22px, 3vw, 44px);
}

.ch-breaking__set a {
	position: relative;
	flex: 0 0 auto;
}

.ch-breaking__set a + a::before {
	content: "";
	position: absolute;
	top: 50%;
	left: calc(clamp(20px, 3vw, 44px) * -0.55);
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--ch-green);
	transform: translateY(-50%);
}

@keyframes chTicker {
	from {
		transform: translateX(0);
	}

	to {
		transform: translateX(-50%);
	}
}

.ch-masthead {
	position: relative;
	display: grid;
	grid-template-columns: minmax(130px, 190px) minmax(520px, 1fr) minmax(280px, 360px);
	align-items: center;
	min-height: clamp(230px, 21vw, 310px);
	padding: clamp(24px, 3.5vw, 44px) clamp(24px, 4.2vw, 58px) 0;
	overflow: hidden;
	background: #fff;
	border-bottom: 1px solid var(--ch-line);
}

.ch-masthead__art {
	display: none;
}

.ch-masthead__social {
	z-index: 2;
	display: flex;
	align-items: center;
	gap: 14px;
}

.ch-masthead__social a {
	display: inline-grid;
	width: 46px;
	height: 46px;
	place-items: center;
	border: 1px solid var(--ch-green);
	border-radius: 50%;
	color: var(--ch-green);
	font-size: 1.35rem;
	transition: background-color 150ms ease, color 150ms ease;
}

.ch-masthead__social a:hover,
.ch-masthead__social a:focus-visible {
	background: var(--ch-green);
	color: #fff;
	outline: none;
}

.ch-masthead__brand {
	z-index: 2;
	display: grid;
	justify-items: center;
	gap: 0;
	min-width: 0;
	max-width: 100%;
	justify-self: center;
	color: var(--ch-green);
	text-align: center;
}

.ch-masthead__lockup {
	display: block;
	width: min(780px, 100%);
	max-width: 100%;
}

.ch-masthead__lockup img {
	display: block;
	width: 100%;
	height: auto;
	max-height: 170px;
	object-fit: contain;
	object-position: center;
}

.ch-masthead__tools {
	position: relative;
	z-index: 2;
	align-self: stretch;
	display: grid;
	grid-template-columns: 56px minmax(220px, auto);
	grid-template-rows: auto 1fr;
	gap: 12px 14px;
	align-items: start;
	justify-items: end;
	min-height: 210px;
	padding-top: 0;
}

.ch-masthead__search {
	display: inline-grid;
	position: relative;
	z-index: 2;
	width: 58px;
	height: 58px;
	place-items: center;
	color: var(--ch-green);
	font-size: 2.2rem;
}

.ch-masthead__newsletter {
	display: inline-flex;
	position: relative;
	z-index: 2;
	align-items: center;
	gap: 12px;
	min-height: 58px;
	padding: 10px 15px;
	border: 1px solid var(--ch-green);
	color: var(--ch-green);
	background: rgba(255, 255, 255, 0.88);
	font-size: clamp(0.9rem, 1.35vw, 1.05rem);
	font-weight: 900;
	line-height: 1.05;
	text-transform: uppercase;
}

.ch-masthead__newsletter svg {
	font-size: 2.15rem;
}

.ch-masthead__mascots {
	position: absolute;
	right: 0;
	bottom: 0;
	z-index: 1;
	width: min(330px, 27vw);
	height: auto;
	max-height: 250px;
	object-fit: contain;
	object-position: right bottom;
	filter: drop-shadow(0 8px 18px rgba(11, 82, 39, 0.16));
}

.ch-main-nav {
	display: grid;
	grid-template-columns: 104px 1fr 84px;
	align-items: stretch;
	max-width: 100%;
	overflow: hidden;
	min-height: 72px;
	background: #fff;
	border-top: 1px solid var(--ch-line);
	border-bottom: 1px solid var(--ch-line);
	box-shadow: 0 8px 18px rgba(11, 82, 39, 0.08);
}

.ch-main-nav__home,
.ch-main-nav__search {
	display: grid;
	place-items: center;
	color: #fff;
	background: var(--ch-green);
	font-size: 2.25rem;
}

.ch-main-nav__home {
	color: var(--ch-green);
	background: #fff;
	border-right: 1px solid var(--ch-line);
}

.ch-main-nav__links {
	display: flex;
	align-items: stretch;
	justify-content: center;
	min-width: 0;
	max-width: 100%;
}

.ch-main-nav__links a {
	display: inline-flex;
	flex: 0 0 auto;
	align-items: center;
	justify-content: center;
	min-width: 0;
	padding: 0 clamp(12px, 1.7vw, 28px);
	color: var(--ch-green);
	font-family: "Arial Narrow", Inter, Arial, Helvetica, sans-serif;
	font-size: clamp(0.95rem, 1.5vw, 1.18rem);
	font-weight: 900;
	line-height: 1;
	text-transform: uppercase;
	white-space: nowrap;
}

.ch-main-nav__links a:hover,
.ch-main-nav__links a:focus-visible,
.ch-main-nav__search:hover,
.ch-main-nav__search:focus-visible {
	background: var(--ch-green-2);
	color: #fff;
	outline: none;
}

.ch-topic-pills {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 16px clamp(18px, 3vw, 30px);
	padding: 20px clamp(18px, 4vw, 48px);
	background: #fff;
}

.ch-topic-pills a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 16px;
	min-width: clamp(160px, 18vw, 260px);
	min-height: 50px;
	padding: 10px 24px;
	border: 1px solid var(--ch-green);
	border-radius: 999px;
	color: var(--ch-green);
	background: #fff;
	font-family: "Arial Narrow", Inter, Arial, Helvetica, sans-serif;
	font-size: clamp(0.98rem, 1.55vw, 1.22rem);
	font-weight: 900;
	line-height: 1;
	text-transform: uppercase;
}

.ch-topic-pills i {
	display: inline-grid;
	place-items: center;
	font-size: 1.3rem;
	font-style: normal;
}

.ch-home-feed {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 10px;
	padding: 0 clamp(18px, 4vw, 48px) clamp(34px, 5vw, 70px);
	background: #fff;
}

.ch-home-feed__card {
	min-width: 0;
}

.ch-home-feed__image {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	justify-content: flex-end;
	min-height: clamp(250px, 22vw, 330px);
	padding: clamp(18px, 2.5vw, 28px);
	overflow: hidden;
	background:
		linear-gradient(135deg, rgba(11, 82, 39, 0.28), rgba(0, 0, 0, 0.38)),
		url("../reference/cannahaven-homepage-mockup.png") center / cover no-repeat;
	color: #fff;
}

.ch-home-feed__shade {
	position: absolute;
	inset: 0;
	z-index: 1;
	background: linear-gradient(180deg, rgba(0, 0, 0, 0.04), rgba(0, 0, 0, 0.78));
}

.ch-home-feed__tag,
.ch-home-feed__image h2 {
	position: relative;
	z-index: 2;
}

.ch-home-feed__tag {
	display: inline-flex;
	align-items: center;
	margin: 0 0 10px;
	min-height: 32px;
	padding: 6px 10px;
	background: var(--ch-green);
	color: #fff;
	font-size: 0.82rem;
	font-weight: 900;
	line-height: 1;
	text-transform: uppercase;
}

.ch-home-feed__image h2 {
	width: min(100%, 720px);
	margin: 0;
	color: #fff;
	font-family: Inter, Arial, Helvetica, sans-serif;
	font-size: clamp(1.2rem, 1.8vw, 1.85rem);
	font-weight: 950;
	line-height: 1.08;
	letter-spacing: 0;
	text-transform: uppercase;
	text-shadow: 0 2px 14px rgba(0, 0, 0, 0.5);
}

@media (max-width: 1180px) {
	.ch-masthead {
		grid-template-columns: 1fr;
		gap: 18px;
		min-height: 0;
		padding: 26px 22px 24px;
	}

	.ch-masthead__social,
	.ch-masthead__brand,
	.ch-masthead__tools {
		justify-self: center;
	}

	.ch-masthead__social {
		justify-content: center;
	}

	.ch-masthead__lockup {
		width: min(760px, 92vw);
	}

	.ch-masthead__tools {
		grid-template-columns: 54px minmax(220px, 370px);
		align-self: auto;
		justify-content: center;
		justify-items: stretch;
		width: min(470px, 100%);
		min-height: 0;
	}

	.ch-masthead__search {
		width: 54px;
		height: 54px;
		font-size: 1.9rem;
	}

	.ch-masthead__mascots {
		display: none;
	}

	.ch-main-nav {
		grid-template-columns: 74px 1fr 70px;
	}

	.ch-main-nav__links {
		justify-content: flex-start;
		flex-wrap: wrap;
		overflow: visible;
	}

	.ch-home-feed {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 760px) {
	.ch-breaking {
		grid-template-columns: 1fr;
		min-height: 0;
	}

	.ch-breaking__label {
		justify-content: center;
		min-height: 48px;
	}

	.ch-breaking__track {
		min-height: 52px;
		font-size: 0.98rem;
		animation-duration: 24s;
	}

	.ch-masthead {
		padding: 22px 16px 18px;
		gap: 15px;
	}

	.ch-masthead__social {
		display: flex;
		width: 100%;
		flex-wrap: wrap;
		gap: 10px;
	}

	.ch-masthead__social a {
		width: 40px;
		height: 40px;
		font-size: 1.1rem;
	}

	.ch-masthead__lockup {
		width: min(420px, 92vw);
	}

	.ch-masthead__lockup img {
		width: 100%;
		max-height: none;
	}

	.ch-masthead__tools {
		grid-template-columns: 44px minmax(0, 1fr);
		gap: 10px;
		width: min(410px, 100%);
	}

	.ch-masthead__search {
		width: 44px;
		height: 48px;
		font-size: 1.65rem;
	}

	.ch-masthead__newsletter {
		justify-content: center;
		min-height: 48px;
		padding: 8px 12px;
		font-size: 0.74rem;
	}

	.ch-masthead__newsletter svg {
		font-size: 1.55rem;
	}

	.ch-main-nav {
		grid-template-columns: 58px 1fr 58px;
		min-height: 58px;
		overflow: hidden;
	}

	.ch-main-nav__home,
	.ch-main-nav__search {
		font-size: 1.65rem;
	}

	.ch-main-nav__links {
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		align-items: stretch;
		justify-content: stretch;
	}

	.ch-main-nav__links a {
		min-height: 44px;
		padding: 0 8px;
		font-size: 0.86rem;
	}

	.ch-topic-pills {
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		justify-content: center;
		padding: 18px 16px;
		gap: 10px;
	}

	.ch-topic-pills a {
		width: 100%;
		min-width: 0;
		min-height: 42px;
		padding: 8px 10px;
		font-size: clamp(0.72rem, 3.3vw, 0.88rem);
		gap: 8px;
	}

	.ch-home-feed {
		grid-template-columns: 1fr;
		padding: 0 16px 34px;
	}

	.ch-home-feed__image {
		min-height: 230px;
		padding: 18px;
	}

	.ch-home-feed__image h2 {
		width: min(100%, 340px);
		font-size: clamp(1.25rem, 6.1vw, 1.7rem);
	}
}
