/**
 * Health Spikes — Main Front-End Stylesheet
 * Mobile-first, WCAG 2.1 AA accessible, Core Web Vitals optimized.
 */

/* ==========================================================================
   1. Base Typography, Resets & Accessibility Focus States
   ========================================================================== */

:root {
	--hs-primary: #0f766e;
	--hs-primary-dark: #115e59;
	--hs-primary-tint: #f0fdfa;
	--hs-primary-border: #99f6e4;
	--hs-cta: #22c55e;
	--hs-cta-hover: #16a34a;
	--hs-cta-ink: #052e16;
	--hs-ink: #0f172a;
	--hs-body: #1e293b;
	--hs-muted: #475569;
	--hs-surface: #f8fafc;
	--hs-border: #e2e8f0;
	--hs-border-strong: #cbd5e1;
	--hs-pros-bg: #f0fdf4;
	--hs-pros-ink: #14532d;
	--hs-pros-accent: #15803d;
	--hs-cons-bg: #fef2f2;
	--hs-cons-ink: #7f1d1d;
	--hs-cons-accent: #b91c1c;
	--hs-caution-bg: #fffbeb;
	--hs-caution-border: #d97706;
	--hs-caution-ink: #78350f;
	--hs-star: #d97706;
	--hs-star-bg: #cbd5e1;
	--hs-white: #ffffff;
	--hs-radius-sm: 6px;
	--hs-radius: 10px;
	--hs-radius-lg: 14px;
	--hs-shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.06);
	--hs-shadow-md: 0 6px 20px rgba(15, 23, 42, 0.07);
}

a {
	color: var(--hs-primary);
	text-decoration: underline;
	text-underline-offset: 3px;
	transition: color 0.15s ease;
}

a:hover {
	color: var(--hs-primary-dark);
}

:focus-visible {
	outline: 2px solid var(--hs-primary);
	outline-offset: 3px;
}

h1, h2, h3, h4, h5, h6 {
	color: var(--hs-ink);
	font-weight: 700;
	letter-spacing: -0.018em;
	line-height: 1.28;
	margin: 0 0 0.75rem;
}

h1 { font-size: clamp(1.75rem, 4vw, 2.375rem); line-height: 1.2; }
h2 { font-size: clamp(1.375rem, 3vw, 1.75rem); scroll-margin-top: 84px; }
h3 { font-size: clamp(1.1875rem, 2.5vw, 1.375rem); scroll-margin-top: 84px; }
h4 { font-size: 1.125rem; }

p {
	margin: 0 0 1.25rem;
}

ul, ol {
	margin: 0 0 1.25rem;
	padding-left: 1.375rem;
}

li {
	margin-bottom: 0.45rem;
}

figure {
	margin: 0 0 1.5rem;
}

hr {
	border: 0;
	border-top: 1px solid var(--hs-border);
	margin: 2.25rem 0;
}

/* ==========================================================================
   2. Sticky Slim Header, Primary Nav, Search Panel & Mobile Slide-Out Drawer
   ========================================================================== */

.site-header {
	transition: box-shadow 0.2s ease;
}

.site-header.is-scrolled {
	box-shadow: 0 2px 12px rgba(15, 23, 42, 0.07);
}

.site-brand__link:hover {
	color: var(--hs-primary-dark);
	text-decoration: none;
}

.site-brand__mark {
	display: inline-flex;
	flex-shrink: 0;
}

.primary-nav {
	display: none;
}

@media (min-width: 960px) {
	.primary-nav {
		display: block;
		margin-left: auto;
		margin-right: 0.5rem;
	}
}

.primary-nav__list {
	display: flex;
	align-items: center;
	gap: 0.25rem;
	list-style: none;
	margin: 0;
	padding: 0;
}

.primary-nav__list > li {
	position: relative;
	margin: 0;
}

.primary-nav__list > li > a {
	color: var(--hs-ink);
	display: inline-flex;
	align-items: center;
	font-size: 0.96875rem;
	font-weight: 600;
	padding: 0.5rem 0.85rem;
	border-radius: var(--hs-radius-sm);
	text-decoration: none;
}

.primary-nav__list > li > a:hover,
.primary-nav__list > li.current-menu-item > a,
.primary-nav__list > li.current-menu-ancestor > a {
	background: var(--hs-primary-tint);
	color: var(--hs-primary);
}

/* Desktop dropdown sub-menus */
.primary-nav__list .sub-menu {
	background: var(--hs-white);
	border: 1px solid var(--hs-border);
	border-radius: var(--hs-radius);
	box-shadow: var(--hs-shadow-md);
	display: none;
	left: 0;
	list-style: none;
	margin: 0;
	min-width: 220px;
	padding: 0.4rem;
	position: absolute;
	top: 100%;
	z-index: 250;
}

.primary-nav__list > li:hover > .sub-menu,
.primary-nav__list > li:focus-within > .sub-menu {
	display: block;
}

.primary-nav__list .sub-menu li {
	margin: 0;
}

.primary-nav__list .sub-menu a {
	color: var(--hs-body);
	display: block;
	font-size: 0.9375rem;
	font-weight: 500;
	padding: 0.5rem 0.75rem;
	border-radius: var(--hs-radius-sm);
	text-decoration: none;
}

.primary-nav__list .sub-menu a:hover {
	background: var(--hs-primary-tint);
	color: var(--hs-primary);
}

.site-header__actions {
	display: flex;
	align-items: center;
	gap: 0.375rem;
}

.header-icon-btn {
	align-items: center;
	background: transparent;
	border: 1px solid transparent;
	border-radius: var(--hs-radius-sm);
	color: var(--hs-ink);
	cursor: pointer;
	display: inline-flex;
	height: 44px;
	justify-content: center;
	padding: 0;
	width: 44px;
	transition: background-color 0.15s ease, color 0.15s ease;
}

.header-icon-btn:hover {
	background: var(--hs-surface);
	color: var(--hs-primary);
}

@media (min-width: 960px) {
	.mobile-menu-toggle {
		display: none;
	}
}

/* Header Search Dropdown */
.header-search-panel {
	background: var(--hs-surface);
	border-bottom: 1px solid var(--hs-border);
	left: 0;
	padding: 0.875rem 0;
	position: absolute;
	right: 0;
	top: 100%;
	box-shadow: var(--hs-shadow-sm);
}

.header-search-panel__inner {
	max-width: 680px;
}

/* Search Form Component */
.hs-search-form {
	display: flex;
	gap: 0.5rem;
	width: 100%;
}

.hs-search-form__input {
	appearance: none;
	background: var(--hs-white);
	border: 1px solid var(--hs-border-strong);
	border-radius: var(--hs-radius-sm);
	color: var(--hs-ink);
	flex: 1 1 auto;
	font-family: inherit;
	font-size: 1rem;
	min-height: 46px;
	min-width: 0;
	padding: 0.625rem 0.95rem;
}

.hs-search-form__input:focus {
	border-color: var(--hs-primary);
}

.hs-search-form__submit {
	background: var(--hs-primary);
	border: 1px solid var(--hs-primary);
	border-radius: var(--hs-radius-sm);
	color: var(--hs-white);
	cursor: pointer;
	font-family: inherit;
	font-size: 0.96875rem;
	font-weight: 600;
	min-height: 46px;
	padding: 0.625rem 1.25rem;
	white-space: nowrap;
	transition: background-color 0.15s ease;
}

.hs-search-form__submit:hover {
	background: var(--hs-primary-dark);
	border-color: var(--hs-primary-dark);
}

/* Mobile Slide-Out Drawer */
.mobile-drawer {
	inset: 0;
	position: fixed;
	z-index: 500;
}

.mobile-drawer__backdrop {
	background: rgba(15, 23, 42, 0.45);
	inset: 0;
	position: absolute;
}

.mobile-drawer__panel {
	background: var(--hs-white);
	bottom: 0;
	box-shadow: -8px 0 28px rgba(15, 23, 42, 0.16);
	display: flex;
	flex-direction: column;
	max-width: 340px;
	overflow-y: auto;
	padding: 1rem 1.25rem 2rem;
	position: absolute;
	right: 0;
	top: 0;
	width: 86vw;
}

.mobile-drawer__header {
	align-items: center;
	border-bottom: 1px solid var(--hs-border);
	display: flex;
	justify-content: space-between;
	margin-bottom: 1rem;
	padding-bottom: 0.75rem;
}

.mobile-drawer__brand {
	color: var(--hs-primary);
	font-size: 1.1875rem;
	font-weight: 800;
}

.mobile-drawer__search {
	margin-bottom: 1rem;
}

.mobile-nav__list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.mobile-nav__list li {
	margin: 0;
}

.mobile-nav__list a {
	border-bottom: 1px solid var(--hs-border);
	color: var(--hs-ink);
	display: flex;
	align-items: center;
	font-size: 1.0625rem;
	font-weight: 600;
	min-height: 48px;
	padding: 0.65rem 0.25rem;
	text-decoration: none;
}

.mobile-nav__list a:hover,
.mobile-nav__list .current-menu-item > a {
	color: var(--hs-primary);
}

.mobile-nav__list .sub-menu {
	list-style: none;
	margin: 0;
	padding-left: 1rem;
}

.mobile-nav__list .sub-menu a {
	font-size: 0.96875rem;
	font-weight: 500;
	color: var(--hs-body);
}

body.has-drawer-open {
	overflow: hidden;
}

/* ==========================================================================
   3. Homepage Sections (Hero, Categories, Grids, Trust Strip)
   ========================================================================== */

.hs-hero {
	background: linear-gradient(180deg, var(--hs-primary-tint) 0%, var(--hs-white) 100%);
	border-bottom: 1px solid var(--hs-border);
	padding: 2.75rem 0 3rem;
	text-align: center;
}

@media (min-width: 768px) {
	.hs-hero {
		padding: 4rem 0 4.25rem;
	}
}

.hs-hero__inner {
	max-width: 760px;
}

.hs-hero__title {
	font-size: clamp(1.875rem, 4.5vw, 2.75rem);
	margin-bottom: 0.875rem;
}

.hs-hero__subtitle {
	color: var(--hs-muted);
	font-size: clamp(1.0625rem, 2vw, 1.25rem);
	line-height: 1.6;
	margin: 0 auto 1.75rem;
	max-width: 620px;
}

.hs-hero__search {
	margin: 0 auto;
	max-width: 560px;
}

.hs-home-section {
	padding: 2.75rem 0;
}

.hs-home-section + .hs-home-section {
	border-top: 1px solid var(--hs-border);
}

@media (min-width: 768px) {
	.hs-home-section {
		padding: 3.5rem 0;
	}
}

.hs-section-header {
	align-items: baseline;
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	justify-content: space-between;
	margin-bottom: 1.5rem;
}

.hs-section-title {
	font-size: clamp(1.375rem, 2.8vw, 1.6875rem);
	margin: 0;
}

.hs-section-more {
	font-size: 0.96875rem;
	font-weight: 600;
	text-decoration: none;
}

.hs-section-more:hover {
	text-decoration: underline;
}

/* Featured Category Grid */
.hs-cat-grid {
	display: grid;
	gap: 1rem;
	grid-template-columns: 1fr;
}

@media (min-width: 600px) {
	.hs-cat-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (min-width: 960px) {
	.hs-cat-grid {
		grid-template-columns: repeat(3, 1fr);
		gap: 1.25rem;
	}
}

.hs-cat-card {
	background: var(--hs-white);
	border: 1px solid var(--hs-border);
	border-radius: var(--hs-radius);
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
	padding: 1.25rem 1.375rem;
	text-decoration: none;
	transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.hs-cat-card:hover {
	border-color: var(--hs-primary);
	box-shadow: var(--hs-shadow-sm);
	transform: translateY(-1px);
}

.hs-cat-card--featured {
	background: var(--hs-primary-tint);
	border-color: var(--hs-primary);
	border-left-width: 4px;
}

.hs-cat-card__top {
	align-items: center;
	display: flex;
	gap: 0.5rem;
	justify-content: space-between;
}

.hs-cat-card__title {
	color: var(--hs-ink);
	font-size: 1.125rem;
	margin: 0;
}

.hs-cat-card:hover .hs-cat-card__title {
	color: var(--hs-primary);
}

.hs-cat-card__count {
	background: var(--hs-surface);
	border: 1px solid var(--hs-border);
	border-radius: 999px;
	color: var(--hs-muted);
	font-size: 0.8125rem;
	font-weight: 600;
	padding: 0.15rem 0.6rem;
	white-space: nowrap;
}

.hs-cat-card--featured .hs-cat-card__count {
	background: var(--hs-white);
	color: var(--hs-primary);
}

.hs-cat-card__desc {
	color: var(--hs-muted);
	font-size: 0.9375rem;
	line-height: 1.55;
	margin: 0;
}

/* Post Card Grid */
.hs-post-grid {
	display: grid;
	gap: 1.5rem;
	grid-template-columns: 1fr;
}

@media (min-width: 640px) {
	.hs-post-grid--3 {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (min-width: 960px) {
	.hs-post-grid--3 {
		grid-template-columns: repeat(3, 1fr);
	}
}

.hs-card {
	background: var(--hs-white);
	border: 1px solid var(--hs-border);
	border-radius: var(--hs-radius);
	display: flex;
	flex-direction: column;
	overflow: hidden;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.hs-card:hover {
	border-color: var(--hs-border-strong);
	box-shadow: var(--hs-shadow-md);
}

.hs-card__media {
	aspect-ratio: 16 / 10;
	background: var(--hs-surface);
	display: block;
	overflow: hidden;
}

.hs-card__img {
	height: 100%;
	object-fit: cover;
	width: 100%;
	transition: transform 0.25s ease;
}

.hs-card:hover .hs-card__img {
	transform: scale(1.02);
}

.hs-card__body {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	padding: 1.25rem;
}

.hs-card__top-meta {
	align-items: center;
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	justify-content: space-between;
	margin-bottom: 0.625rem;
}

.hs-card__cat {
	background: var(--hs-primary-tint);
	border-radius: 4px;
	color: var(--hs-primary);
	font-size: 0.78125rem;
	font-weight: 700;
	letter-spacing: 0.02em;
	padding: 0.15rem 0.55rem;
	text-decoration: none;
	text-transform: uppercase;
}

.hs-card__cat:hover {
	background: var(--hs-primary);
	color: var(--hs-white);
}

.hs-card__title {
	font-size: 1.1875rem;
	line-height: 1.35;
	margin: 0 0 0.625rem;
}

.hs-card__title-link {
	color: var(--hs-ink);
	text-decoration: none;
}

.hs-card__title-link:hover {
	color: var(--hs-primary);
}

.hs-card__excerpt {
	color: var(--hs-muted);
	font-size: 0.96875rem;
	line-height: 1.58;
	margin: 0 0 1rem;
}

.hs-card__footer {
	border-top: 1px solid var(--hs-border);
	color: var(--hs-muted);
	font-size: 0.84375rem;
	margin-top: auto;
	padding-top: 0.75rem;
}

/* Homepage Trust Strip */
.hs-trust-strip {
	background: var(--hs-surface);
	border-top: 1px solid var(--hs-border);
	padding: 1.375rem 0;
}

.hs-trust-strip__inner {
	align-items: center;
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem 1.5rem;
	justify-content: center;
	text-align: center;
}

.hs-trust-strip__text {
	color: var(--hs-muted);
	font-size: 0.9375rem;
	margin: 0;
}

.hs-trust-strip__links {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem 1.5rem;
	justify-content: center;
	list-style: none;
	margin: 0;
	padding: 0;
}

.hs-trust-strip__links li {
	margin: 0;
}

.hs-trust-strip__links a {
	font-size: 0.9375rem;
	font-weight: 600;
}

/* ==========================================================================
   4. Single Post, Review Layout, Quick Verdict, TOC & Affiliate CTAs
   ========================================================================== */

.hs-single {
	padding: 1.75rem 0 3.5rem;
}

@media (min-width: 768px) {
	.hs-single {
		padding: 2.5rem 0 4.5rem;
	}
}

/* Breadcrumbs */
.hs-breadcrumbs {
	margin-bottom: 1rem;
}

.hs-breadcrumbs__list {
	align-items: center;
	color: var(--hs-muted);
	display: flex;
	flex-wrap: wrap;
	font-size: 0.875rem;
	gap: 0.35rem;
	list-style: none;
	margin: 0;
	padding: 0;
}

.hs-breadcrumbs__item {
	align-items: center;
	display: inline-flex;
	gap: 0.35rem;
	margin: 0;
}

.hs-breadcrumbs__link {
	color: var(--hs-muted);
	text-decoration: none;
}

.hs-breadcrumbs__link:hover {
	color: var(--hs-primary);
	text-decoration: underline;
}

.hs-breadcrumbs__sep {
	color: var(--hs-border-strong);
}

.hs-breadcrumbs__current {
	color: var(--hs-body);
	font-weight: 500;
}

/* Entry Header & Byline */
.hs-entry-header {
	margin-bottom: 1.5rem;
}

.hs-entry-title {
	margin-bottom: 0.875rem;
}

.hs-byline {
	align-items: center;
	color: var(--hs-muted);
	display: flex;
	flex-wrap: wrap;
	font-size: 0.9375rem;
	gap: 0.35rem 0.5rem;
	line-height: 1.5;
}

.hs-byline__author-link {
	color: var(--hs-ink);
	font-weight: 600;
	text-decoration: none;
}

.hs-byline__author-link:hover {
	color: var(--hs-primary);
	text-decoration: underline;
}

.hs-byline__date--updated {
	color: var(--hs-primary-dark);
	font-weight: 600;
}

.hs-affiliate-line {
	background: var(--hs-surface);
	border-left: 3px solid var(--hs-border-strong);
	border-radius: 0 4px 4px 0;
	color: var(--hs-muted);
	font-size: 0.875rem;
	line-height: 1.5;
	margin: 0.875rem 0 0;
	padding: 0.5rem 0.75rem;
}

.hs-affiliate-line__link {
	font-weight: 600;
	margin-left: 0.25rem;
}

.hs-legal-updated {
	color: var(--hs-muted);
	font-size: 0.9375rem;
	margin: 0;
}

/* Featured Image */
.hs-featured-media {
	border-radius: var(--hs-radius);
	margin: 0 0 1.75rem;
	overflow: hidden;
}

.hs-featured-media__img {
	border-radius: var(--hs-radius);
	width: 100%;
}

/* Star Rating Widget */
.hs-rating {
	align-items: center;
	display: inline-flex;
	gap: 0.45rem;
}

.hs-rating__stars {
	display: inline-block;
	font-size: 1.1875rem;
	letter-spacing: 1px;
	line-height: 1;
	position: relative;
}

.hs-rating--card .hs-rating__stars {
	font-size: 0.95rem;
}

.hs-rating__stars-bg {
	color: var(--hs-star-bg);
}

.hs-rating__stars-fill {
	color: var(--hs-star);
	left: 0;
	overflow: hidden;
	position: absolute;
	top: 0;
	white-space: nowrap;
}

.hs-rating__value {
	color: var(--hs-ink);
	font-size: 1rem;
	font-weight: 700;
	line-height: 1;
}

.hs-rating--card .hs-rating__value {
	font-size: 0.84375rem;
}

.hs-rating__value span {
	color: var(--hs-muted);
	font-weight: 500;
}

/* Review Quick Verdict Box */
.hs-verdict {
	background: var(--hs-white);
	border: 2px solid var(--hs-primary);
	border-radius: var(--hs-radius-lg);
	box-shadow: var(--hs-shadow-md);
	margin: 0 0 2rem;
	overflow: hidden;
}

.hs-verdict__header {
	align-items: flex-start;
	background: var(--hs-primary-tint);
	border-bottom: 1px solid var(--hs-primary-border);
	display: flex;
	flex-wrap: wrap;
	gap: 1rem;
	justify-content: space-between;
	padding: 1.25rem 1.375rem;
}

.hs-verdict__eyebrow {
	color: var(--hs-primary);
	display: block;
	font-size: 0.78125rem;
	font-weight: 800;
	letter-spacing: 0.06em;
	margin-bottom: 0.2rem;
	text-transform: uppercase;
}

.hs-verdict__product {
	font-size: clamp(1.25rem, 2.6vw, 1.5rem);
	margin: 0;
}

.hs-verdict__rating-box {
	background: var(--hs-white);
	border: 1px solid var(--hs-primary-border);
	border-radius: var(--hs-radius-sm);
	padding: 0.5rem 0.85rem;
}

.hs-verdict__rating-label {
	color: var(--hs-muted);
	display: block;
	font-size: 0.75rem;
	font-weight: 600;
	margin-bottom: 0.2rem;
	text-transform: uppercase;
}

.hs-verdict__specs {
	border-bottom: 1px solid var(--hs-border);
	display: grid;
	gap: 0.875rem 1.25rem;
	grid-template-columns: 1fr;
	margin: 0;
	padding: 1rem 1.375rem;
}

@media (min-width: 560px) {
	.hs-verdict__specs {
		grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	}
}

.hs-verdict__spec dt {
	color: var(--hs-muted);
	font-size: 0.8125rem;
	font-weight: 700;
	letter-spacing: 0.03em;
	margin-bottom: 0.15rem;
	text-transform: uppercase;
}

.hs-verdict__spec dd {
	color: var(--hs-ink);
	font-size: 1rem;
	font-weight: 600;
	line-height: 1.45;
	margin: 0;
}

.hs-verdict__lists {
	display: grid;
	gap: 1rem;
	grid-template-columns: 1fr;
	padding: 1.25rem 1.375rem;
}

@media (min-width: 640px) {
	.hs-verdict__lists {
		grid-template-columns: repeat(2, 1fr);
	}
}

.hs-verdict__list-col {
	border-radius: var(--hs-radius-sm);
	padding: 1rem 1.125rem;
}

.hs-verdict__list-col--pros {
	background: var(--hs-pros-bg);
}

.hs-verdict__list-col--cons {
	background: var(--hs-cons-bg);
}

.hs-verdict__list-heading {
	align-items: center;
	display: flex;
	font-size: 1.0625rem;
	gap: 0.4rem;
	margin: 0 0 0.65rem;
}

.hs-verdict__list-col--pros .hs-verdict__list-heading {
	color: var(--hs-pros-accent);
}

.hs-verdict__list-col--cons .hs-verdict__list-heading {
	color: var(--hs-cons-accent);
}

.hs-verdict__list {
	font-size: 0.96875rem;
	line-height: 1.55;
	margin: 0;
	padding-left: 1.2rem;
}

.hs-verdict__list-col--pros .hs-verdict__list {
	color: var(--hs-pros-ink);
}

.hs-verdict__list-col--cons .hs-verdict__list {
	color: var(--hs-cons-ink);
}

.hs-verdict__cta {
	background: var(--hs-surface);
	border-top: 1px solid var(--hs-border);
	padding: 1.125rem 1.375rem;
	text-align: center;
}

/* Affiliate CTA Button (#22C55E Fresh Green + #052E16 7.55:1 Accessible Ink) */
.hs-btn-cta,
.hs-cta-btn .wp-block-button__link {
	align-items: center;
	background-color: var(--hs-cta) !important;
	border: 1px solid #16a34a;
	border-radius: 8px;
	box-shadow: 0 2px 6px rgba(34, 197, 94, 0.25);
	color: var(--hs-cta-ink) !important;
	cursor: pointer;
	display: inline-flex;
	font-size: 1.0625rem;
	font-weight: 700;
	gap: 0.5rem;
	justify-content: center;
	line-height: 1.3;
	min-height: 50px;
	padding: 0.8rem 1.625rem;
	text-decoration: none !important;
	transition: background-color 0.15s ease, transform 0.12s ease, box-shadow 0.15s ease;
}

.hs-btn-cta:hover,
.hs-cta-btn .wp-block-button__link:hover {
	background-color: var(--hs-cta-hover) !important;
	color: var(--hs-white) !important;
	box-shadow: 0 4px 12px rgba(22, 163, 74, 0.3);
	transform: translateY(-1px);
}

.hs-btn-cta--full {
	max-width: 420px;
	width: 100%;
}

/* Repeat Bottom CTA Box */
.hs-repeat-cta {
	align-items: center;
	background: var(--hs-primary-tint);
	border: 1px solid var(--hs-primary-border);
	border-radius: var(--hs-radius);
	display: flex;
	flex-direction: column;
	gap: 0.875rem;
	margin: 2.25rem 0;
	padding: 1.5rem;
	text-align: center;
}

.hs-repeat-cta__product {
	color: var(--hs-ink);
	font-size: 1.1875rem;
	font-weight: 700;
	margin: 0;
}

/* Auto-Generated Table of Contents */
.hs-toc {
	background: var(--hs-surface);
	border: 1px solid var(--hs-border);
	border-radius: var(--hs-radius);
	margin: 0 0 2rem;
	overflow: hidden;
}

.hs-toc__toggle {
	align-items: center;
	background: transparent;
	border: 0;
	color: var(--hs-ink);
	cursor: pointer;
	display: flex;
	font-family: inherit;
	font-size: 1rem;
	font-weight: 700;
	justify-content: space-between;
	min-height: 48px;
	padding: 0.875rem 1.25rem;
	text-align: left;
	width: 100%;
}

.hs-toc__chevron {
	color: var(--hs-primary);
	display: inline-flex;
	transition: transform 0.2s ease;
}

.hs-toc.is-open .hs-toc__chevron {
	transform: rotate(180deg);
}

@media (min-width: 768px) {
	.hs-toc:not(.is-collapsed-desktop) .hs-toc__chevron {
		transform: rotate(180deg);
	}
	.hs-toc.is-collapsed-desktop .hs-toc__body {
		display: none;
	}
}

.hs-toc__body {
	border-top: 1px solid var(--hs-border);
	padding: 0.875rem 1.25rem 1.125rem;
}

.hs-toc__list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.hs-toc__item {
	margin-bottom: 0.45rem;
}

.hs-toc__item:last-child {
	margin-bottom: 0;
}

.hs-toc__item--h3 {
	padding-left: 1.125rem;
}

.hs-toc__link {
	color: var(--hs-body);
	font-size: 0.96875rem;
	line-height: 1.45;
	text-decoration: none;
}

.hs-toc__link:hover {
	color: var(--hs-primary);
	text-decoration: underline;
}

/* ==========================================================================
   5. Article Content Typography & Gutenberg Block Patterns
   ========================================================================== */

.hs-entry-content > * + * {
	margin-top: 1.25rem;
}

.hs-entry-content h2 {
	margin-top: 2.375rem;
}

.hs-entry-content h3 {
	margin-top: 1.75rem;
}

.hs-entry-content blockquote {
	background: var(--hs-surface);
	border-left: 4px solid var(--hs-primary);
	border-radius: 0 var(--hs-radius-sm) var(--hs-radius-sm) 0;
	color: var(--hs-ink);
	font-style: italic;
	margin: 1.75rem 0;
	padding: 1rem 1.25rem;
}

.hs-entry-content blockquote p:last-child {
	margin-bottom: 0;
}

@media (min-width: 1024px) {
	.hs-entry-content .alignwide {
		margin-left: -90px;
		margin-right: -90px;
		max-width: calc(100% + 180px);
	}
}

/* Tables & Comparison / Ingredient Table Patterns */
.wp-block-table {
	margin: 1.75rem 0;
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
}

.wp-block-table table {
	border: 1px solid var(--hs-border);
	border-collapse: collapse;
	font-size: 0.96875rem;
	min-width: 520px;
	width: 100%;
}

.wp-block-table th,
.wp-block-table td {
	border: 1px solid var(--hs-border);
	line-height: 1.5;
	padding: 0.75rem 0.95rem;
	text-align: left;
	vertical-align: top;
}

.wp-block-table thead th,
.hs-comparison-table thead th,
.hs-ingredient-table thead th {
	background: var(--hs-primary);
	border-color: var(--hs-primary-dark);
	color: var(--hs-white);
	font-weight: 700;
}

.wp-block-table tbody tr:nth-child(even) {
	background: var(--hs-surface);
}

/* Pattern 1: Pros & Cons Two-Column Box */
.hs-pros-cons {
	gap: 1rem !important;
	margin: 1.75rem 0;
}

.hs-pros-cons__col {
	border-radius: var(--hs-radius);
	padding: 1.25rem;
}

.hs-pros-cons__col--pros {
	background: var(--hs-pros-bg);
	border: 1px solid #bbf7d0;
}

.hs-pros-cons__col--pros h3 {
	color: var(--hs-pros-accent);
	margin-top: 0;
}

.hs-pros-cons__col--cons {
	background: var(--hs-cons-bg);
	border: 1px solid #fecaca;
}

.hs-pros-cons__col--cons h3 {
	color: var(--hs-cons-accent);
	margin-top: 0;
}

/* Pattern 3: FAQ Section (details/summary) */
.hs-faq-section {
	margin: 2.25rem 0;
}

.hs-faq-section .wp-block-details,
.hs-entry-content details.wp-block-details {
	background: var(--hs-white);
	border: 1px solid var(--hs-border);
	border-radius: var(--hs-radius-sm);
	margin-bottom: 0.75rem;
	padding: 0;
}

.hs-faq-section .wp-block-details summary,
.hs-entry-content details.wp-block-details summary {
	align-items: center;
	color: var(--hs-ink);
	cursor: pointer;
	display: flex;
	font-weight: 700;
	justify-content: space-between;
	list-style: none;
	min-height: 52px;
	padding: 0.95rem 1.25rem;
}

.hs-faq-section .wp-block-details summary::-webkit-details-marker,
.hs-entry-content details.wp-block-details summary::-webkit-details-marker {
	display: none;
}

.hs-faq-section .wp-block-details summary::after,
.hs-entry-content details.wp-block-details summary::after {
	color: var(--hs-primary);
	content: "+";
	flex-shrink: 0;
	font-size: 1.375rem;
	font-weight: 600;
	line-height: 1;
	margin-left: 0.75rem;
}

.hs-faq-section .wp-block-details[open] summary::after,
.hs-entry-content details.wp-block-details[open] summary::after {
	content: "\2212";
}

.hs-faq-section .wp-block-details > *:not(summary),
.hs-entry-content details.wp-block-details > *:not(summary) {
	border-top: 1px solid var(--hs-border);
	margin: 0;
	padding: 1rem 1.25rem;
}

/* Pattern 4: Key Takeaways Box */
.hs-key-takeaways {
	background: var(--hs-primary-tint);
	border: 1px solid var(--hs-primary-border);
	border-left: 4px solid var(--hs-primary);
	border-radius: var(--hs-radius);
	margin: 1.75rem 0;
	padding: 1.375rem 1.5rem;
}

.hs-key-takeaways h3 {
	color: var(--hs-primary-dark);
	margin-top: 0;
}

.hs-key-takeaways ul:last-child {
	margin-bottom: 0;
}

/* Pattern 6: "When to See a Doctor" Callout Box */
.hs-doctor-callout {
	background: var(--hs-caution-bg);
	border: 1px solid #fde68a;
	border-left: 4px solid var(--hs-caution-border);
	border-radius: var(--hs-radius);
	color: var(--hs-caution-ink);
	margin: 1.75rem 0;
	padding: 1.375rem 1.5rem;
}

.hs-doctor-callout h3 {
	color: var(--hs-caution-ink);
	margin-top: 0;
}

.hs-doctor-callout p:last-child {
	margin-bottom: 0;
}

/* Pattern 7: Affiliate CTA Button Box */
.hs-cta-box {
	background: var(--hs-surface);
	border: 1px solid var(--hs-border);
	border-radius: var(--hs-radius);
	margin: 1.75rem 0;
	padding: 1.5rem;
	text-align: center;
}

/* ==========================================================================
   6. Medical Disclaimer, Post Author Box & Related Posts
   ========================================================================== */

.hs-entry-footer {
	border-top: 1px solid var(--hs-border);
	margin-top: 2.5rem;
	padding-top: 2rem;
}

.hs-medical-disclaimer {
	background: var(--hs-surface);
	border: 1px solid var(--hs-border);
	border-left: 4px solid var(--hs-primary);
	border-radius: var(--hs-radius-sm);
	color: var(--hs-muted);
	font-size: 0.9375rem;
	line-height: 1.6;
	margin-bottom: 1.75rem;
	padding: 1.125rem 1.25rem;
}

.hs-medical-disclaimer__label {
	color: var(--hs-ink);
	display: block;
	font-size: 0.875rem;
	letter-spacing: 0.02em;
	margin-bottom: 0.35rem;
	text-transform: uppercase;
}

.hs-medical-disclaimer__text p:last-child {
	margin-bottom: 0;
}

.hs-medical-disclaimer__more {
	margin-top: 0.5rem;
}

/* Post Author Box */
.hs-author-box {
	align-items: flex-start;
	background: var(--hs-white);
	border: 1px solid var(--hs-border);
	border-radius: var(--hs-radius);
	display: flex;
	gap: 1.125rem;
	padding: 1.375rem;
}

.hs-author-box__avatar-link {
	flex-shrink: 0;
}

.hs-author-box__avatar {
	border-radius: 50%;
	height: 72px;
	object-fit: cover;
	width: 72px;
}

.hs-author-box__header {
	align-items: baseline;
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin-bottom: 0.4rem;
}

.hs-author-box__name {
	color: var(--hs-ink);
	font-size: 1.125rem;
	font-weight: 700;
	text-decoration: none;
}

.hs-author-box__name:hover {
	color: var(--hs-primary);
}

.hs-author-box__role {
	color: var(--hs-muted);
	font-size: 0.875rem;
	font-weight: 600;
}

.hs-author-box__bio {
	color: var(--hs-body);
	font-size: 0.96875rem;
	line-height: 1.6;
	margin: 0 0 0.65rem;
}

.hs-author-box__more {
	font-size: 0.90625rem;
	font-weight: 600;
}

/* Related Posts Section */
.hs-related {
	border-top: 1px solid var(--hs-border);
	margin-top: 3rem;
	padding-top: 2.5rem;
}

.hs-related .hs-section-title {
	margin-bottom: 1.375rem;
}

/* ==========================================================================
   7. Archive, Author Page, Search Results, 404, Pagination & Comments
   ========================================================================== */

.hs-archive,
.hs-author-archive,
.hs-search-results,
.hs-404 {
	padding: 2rem 0 4rem;
}

.hs-archive-header {
	border-bottom: 1px solid var(--hs-border);
	margin-bottom: 2rem;
	padding-bottom: 1.5rem;
}

.hs-archive-header__title {
	margin-bottom: 0.5rem;
}

.hs-archive-header__desc {
	color: var(--hs-muted);
	font-size: 1.0625rem;
	max-width: 720px;
}

.hs-archive-header__desc p:last-child {
	margin-bottom: 0;
}

.hs-archive-header__count {
	color: var(--hs-muted);
	font-size: 0.96875rem;
	margin: 0 0 1rem;
}

.hs-archive-header__search {
	max-width: 540px;
}

/* Author Page Hero */
.hs-author-hero {
	align-items: flex-start;
	background: var(--hs-surface);
	border: 1px solid var(--hs-border);
	border-radius: var(--hs-radius-lg);
	display: flex;
	flex-direction: column;
	gap: 1.25rem;
	margin-bottom: 2.75rem;
	padding: 1.75rem;
}

@media (min-width: 640px) {
	.hs-author-hero {
		flex-direction: row;
		gap: 1.75rem;
		padding: 2.25rem;
	}
}

.hs-author-hero__avatar {
	border: 3px solid var(--hs-white);
	border-radius: 50%;
	box-shadow: var(--hs-shadow-sm);
	height: 112px;
	object-fit: cover;
	width: 112px;
}

.hs-author-hero__name {
	margin-bottom: 0.25rem;
}

.hs-author-hero__role {
	color: var(--hs-primary);
	font-size: 1rem;
	font-weight: 600;
	margin: 0 0 0.875rem;
}

.hs-author-hero__bio {
	color: var(--hs-body);
	font-size: 1.0625rem;
	max-width: 720px;
}

.hs-author-hero__areas {
	align-items: center;
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin-top: 1rem;
}

.hs-author-hero__areas-label {
	color: var(--hs-ink);
	font-size: 0.875rem;
	font-weight: 700;
}

.hs-topic-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 0.45rem;
	list-style: none;
	margin: 0;
	padding: 0;
}

.hs-topic-tags__item {
	background: var(--hs-white);
	border: 1px solid var(--hs-primary-border);
	border-radius: 999px;
	color: var(--hs-primary-dark);
	font-size: 0.84375rem;
	font-weight: 600;
	margin: 0;
	padding: 0.2rem 0.75rem;
}

.hs-author-hero__links {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem 1.25rem;
	list-style: none;
	margin: 1rem 0 0;
	padding: 0;
}

.hs-author-hero__links li {
	margin: 0;
}

.hs-author-hero__links a {
	font-size: 0.9375rem;
	font-weight: 600;
}

.hs-author-posts .hs-section-title {
	margin-bottom: 1.5rem;
}

/* 404 Page */
.hs-404__box {
	padding: 1.5rem 0;
	text-align: center;
}

.hs-404__code {
	color: var(--hs-primary);
	display: block;
	font-size: 3.5rem;
	font-weight: 800;
	line-height: 1;
	margin-bottom: 0.5rem;
}

.hs-404__desc {
	color: var(--hs-muted);
	margin: 0 auto 1.5rem;
	max-width: 540px;
}

.hs-404__search {
	margin: 0 auto 2.25rem;
	max-width: 520px;
}

.hs-404__cats {
	margin-bottom: 2rem;
}

.hs-404__cats-title {
	font-size: 1.125rem;
	margin-bottom: 0.875rem;
}

.hs-404__cats-list {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	justify-content: center;
	list-style: none;
	margin: 0;
	padding: 0;
}

.hs-404__cats-list li {
	margin: 0;
}

.hs-404__cat-pill {
	background: var(--hs-primary-tint);
	border: 1px solid var(--hs-primary-border);
	border-radius: 999px;
	color: var(--hs-primary-dark);
	display: inline-block;
	font-size: 0.9375rem;
	font-weight: 600;
	padding: 0.4rem 1rem;
	text-decoration: none;
}

.hs-404__cat-pill:hover {
	background: var(--hs-primary);
	border-color: var(--hs-primary);
	color: var(--hs-white);
}

.hs-empty-state {
	background: var(--hs-surface);
	border: 1px solid var(--hs-border);
	border-radius: var(--hs-radius);
	color: var(--hs-muted);
	padding: 2.25rem 1.5rem;
	text-align: center;
}

.hs-empty-state p {
	margin: 0;
}

/* Pagination */
.navigation.pagination,
.hs-page-links {
	margin-top: 2.5rem;
}

.navigation.pagination .nav-links {
	display: flex;
	flex-wrap: wrap;
	gap: 0.45rem;
	justify-content: center;
}

.navigation.pagination .page-numbers {
	align-items: center;
	background: var(--hs-white);
	border: 1px solid var(--hs-border);
	border-radius: var(--hs-radius-sm);
	color: var(--hs-ink);
	display: inline-flex;
	font-size: 0.96875rem;
	font-weight: 600;
	justify-content: center;
	min-height: 44px;
	min-width: 44px;
	padding: 0.4rem 0.85rem;
	text-decoration: none;
}

.navigation.pagination .page-numbers:hover {
	border-color: var(--hs-primary);
	color: var(--hs-primary);
}

.navigation.pagination .page-numbers.current {
	background: var(--hs-primary);
	border-color: var(--hs-primary);
	color: var(--hs-white);
}

/* Comments */
.hs-comments {
	border-top: 1px solid var(--hs-border);
	margin-top: 2.5rem;
	padding-top: 2rem;
}

.hs-comments__list {
	list-style: none;
	margin: 0 0 2rem;
	padding: 0;
}

.hs-comments__list .comment-body {
	border-bottom: 1px solid var(--hs-border);
	margin-bottom: 1.25rem;
	padding-bottom: 1.25rem;
}

.hs-comments__list .children {
	list-style: none;
	padding-left: 1.5rem;
}

.comment-form label {
	display: block;
	font-size: 0.9375rem;
	font-weight: 600;
	margin-bottom: 0.35rem;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
	background: var(--hs-white);
	border: 1px solid var(--hs-border-strong);
	border-radius: var(--hs-radius-sm);
	color: var(--hs-ink);
	font-family: inherit;
	font-size: 1rem;
	padding: 0.65rem 0.85rem;
	width: 100%;
}

.comment-form .submit {
	background: var(--hs-primary);
	border: 0;
	border-radius: var(--hs-radius-sm);
	color: var(--hs-white);
	cursor: pointer;
	font-family: inherit;
	font-size: 1rem;
	font-weight: 600;
	min-height: 46px;
	padding: 0.65rem 1.375rem;
}

.comment-form .submit:hover {
	background: var(--hs-primary-dark);
}

/* ==========================================================================
   8. Site Footer
   ========================================================================== */

.site-footer {
	background: var(--hs-surface);
	border-top: 1px solid var(--hs-border);
	margin-top: auto;
	padding: 3rem 0 2rem;
}

.site-footer__top {
	display: flex;
	flex-direction: column;
	gap: 1.75rem;
	justify-content: space-between;
	padding-bottom: 2rem;
}

@media (min-width: 768px) {
	.site-footer__top {
		align-items: flex-start;
		flex-direction: row;
	}
}

.site-footer__brand-col {
	max-width: 440px;
}

.site-footer__brand {
	color: var(--hs-primary);
	display: inline-block;
	font-size: 1.25rem;
	font-weight: 800;
	letter-spacing: -0.02em;
	margin-bottom: 0.5rem;
	text-decoration: none;
}

.site-footer__desc {
	color: var(--hs-muted);
	font-size: 0.9375rem;
	line-height: 1.6;
	margin: 0;
}

.footer-nav__list {
	display: flex;
	flex-wrap: wrap;
	gap: 0.65rem 1.375rem;
	list-style: none;
	margin: 0;
	padding: 0;
}

.footer-nav__list li {
	margin: 0;
}

.footer-nav__list a {
	color: var(--hs-body);
	font-size: 0.9375rem;
	font-weight: 500;
	text-decoration: none;
}

.footer-nav__list a:hover {
	color: var(--hs-primary);
	text-decoration: underline;
}

.site-footer__bottom {
	border-top: 1px solid var(--hs-border);
	padding-top: 1.375rem;
}

.site-footer__copyright {
	color: var(--hs-muted);
	font-size: 0.875rem;
	margin: 0;
}
