/* Home (Website_10 reference) - phone layout, split out of log-hv10-extra.css
   to keep each file under 200 lines. Loads after it. */

/* ==========================================================================
   Mobile (<=767px). Page content lives in the DB, so sections are targeted by
   structure (grid utility combos) rather than added hook classes.
   ========================================================================== */
@media (max-width: 767px) {
	/* Hero trust row (Licensed Dispensary / 256-Bit Encrypted / Express Courier). */
	.hv10 .flex-wrap.gap-6.pt-6.uppercase {
		display: none;
	}

	/* "Healthcare made simple" steps: 2 per row. */
	.hv10 .grid.sm\:grid-cols-2.lg\:grid-cols-4 {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 12px;
	}
	.hv10 .grid.sm\:grid-cols-2.lg\:grid-cols-4 > div {
		padding: 16px 12px;
	}
	.hv10 .grid.sm\:grid-cols-2.lg\:grid-cols-4 > div > div {
		width: 40px;
		height: 40px;
		margin-bottom: 12px;
		font-size: 15px;
	}
	.hv10 .grid.sm\:grid-cols-2.lg\:grid-cols-4 h3 {
		font-size: 15px;
		line-height: 1.3;
	}
	.hv10 .grid.sm\:grid-cols-2.lg\:grid-cols-4 p {
		font-size: 12px;
		line-height: 1.5;
	}

	/* Product carousels: ~1.5 cards visible, compact fixed-feel height. */
	.hv10 #trendingScroll,
	.hv10 #newArrivalsScroll {
		gap: 12px;
	}
	.hv10 #trendingScroll > div,
	.hv10 #newArrivalsScroll > div {
		width: calc((100% - 12px) / 1.5);
		padding: 12px;
	}
	.hv10 #trendingScroll > div > div:first-child,
	.hv10 #newArrivalsScroll > div > div:first-child {
		margin-bottom: 10px;
	}
	.hv10 #trendingScroll > div > div:first-child {
		aspect-ratio: 4 / 3;
	}
	.hv10 #trendingScroll h3,
	.hv10 #newArrivalsScroll h3 {
		font-size: 14px;
		line-height: 1.3;
		margin-bottom: 4px;
		display: -webkit-box;
		-webkit-line-clamp: 2;
		-webkit-box-orient: vertical;
		overflow: hidden;
	}
	.hv10 #trendingScroll p,
	.hv10 #newArrivalsScroll p {
		font-size: 12px;
		line-height: 1.4;
		margin-bottom: 8px;
		display: -webkit-box;
		-webkit-line-clamp: 2;
		-webkit-box-orient: vertical;
		overflow: hidden;
	}
	.hv10 #trendingScroll .mt-auto,
	.hv10 #newArrivalsScroll .mt-auto {
		flex-wrap: wrap;
		gap: 6px;
		padding-top: 4px;
	}
	.hv10 #trendingScroll .mt-auto a,
	.hv10 #newArrivalsScroll .mt-auto a {
		padding: 6px 10px;
		font-size: 11px;
	}

	/* "Care you can count on": 2 per row, odd last card spans the row. */
	.hv10 .grid.lg\:grid-cols-5 {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 12px;
	}
	.hv10 .grid.lg\:grid-cols-5 > div {
		padding: 16px 12px;
	}
	.hv10 .grid.lg\:grid-cols-5 > div:last-child:nth-child(odd) {
		grid-column: 1 / -1;
	}

	/* Testimonials: swipe slider with the next card peeking in. */
	.hv10 .grid.md\:grid-cols-3.gap-8:has(> div.rounded-3xl) {
		display: flex;
		gap: 12px;
		overflow-x: auto;
		scroll-snap-type: x mandatory;
		scrollbar-width: none;
		-webkit-overflow-scrolling: touch;
		padding-bottom: 4px;
	}
	.hv10 .grid.md\:grid-cols-3.gap-8:has(> div.rounded-3xl)::-webkit-scrollbar {
		display: none;
	}
	.hv10 .grid.md\:grid-cols-3.gap-8:has(> div.rounded-3xl) > div {
		flex: 0 0 85%;
		scroll-snap-align: start;
		padding: 20px;
	}

	/* Health Journal: compact list rows - thumbnail left; category | date and
	   title right. The whole row stays tappable through the stretched link. */
	.hv10 .grid.md\:grid-cols-3.gap-8:has(> article) {
		grid-template-columns: minmax(0, 1fr);
		gap: 10px;
	}
	.hv10 .grid.md\:grid-cols-3.gap-8:has(> article) > article {
		position: relative;
		flex-direction: row;
		align-items: center;
		gap: 12px;
		padding: 10px;
		border: 1px solid rgba(36, 16, 22, .1);
		border-radius: 12px;
		box-shadow: none;
	}
	.hv10 .grid.md\:grid-cols-3.gap-8:has(> article) > article > div:first-child {
		flex: 0 0 84px;
		width: 84px;
		height: 84px;
		aspect-ratio: 1;
		border-radius: 8px;
	}
	.hv10 .grid.md\:grid-cols-3.gap-8:has(> article) > article > div:last-child {
		flex: 1;
		min-width: 0;
		padding: 0;
	}
	.hv10 .grid.md\:grid-cols-3.gap-8:has(> article) > article > div:last-child > div:first-child {
		margin-bottom: 4px;
		gap: 6px;
		font-size: 11px;
		text-transform: uppercase;
		letter-spacing: .06em;
	}
	.hv10 .hv10-post-read {
		display: none;
	}
	.hv10 .hv10-post-date {
		display: inline;
	}
	.hv10 .grid.md\:grid-cols-3.gap-8:has(> article) h3 {
		font-size: 15px;
		line-height: 1.3;
		margin: 0;
		display: -webkit-box;
		-webkit-line-clamp: 3;
		-webkit-box-orient: vertical;
		overflow: hidden;
	}
	.hv10 .grid.md\:grid-cols-3.gap-8:has(> article) p {
		display: none;
	}
	.hv10 .grid.md\:grid-cols-3.gap-8:has(> article) .mt-auto {
		padding: 0;
	}
	.hv10 .grid.md\:grid-cols-3.gap-8:has(> article) .mt-auto a {
		position: absolute;
		inset: 0;
		font-size: 0;
		transform: none;
	}
	.hv10 .grid.md\:grid-cols-3.gap-8:has(> article) .mt-auto a > span {
		display: none;
	}

	/* Hero buttons stay on one row on every phone width. */
	.hv10 .flex.flex-wrap.items-center.gap-4.mb-12 {
		flex-wrap: nowrap;
		align-items: stretch;
		gap: 10px;
	}
	.hv10 .flex.flex-wrap.items-center.gap-4.mb-12 > a {
		flex: 1 1 0;
		min-width: 0;
		padding: 14px 10px;
		font-size: 13px;
		text-align: center;
	}
}
