/* ==========================================================================
   Wellness Pulse — Editorial Health Magazine Theme
   ========================================================================== */

/* CSS variables are injected dynamically by inc/customizer-css.php
   Defaults are mirrored here so the file works standalone during preview. */
:root {
	--wp-primary: #0a7d5e;
	--wp-primary-dark: #086a50;
	--wp-accent: #e85d3a;
	--wp-text: #1a1a1a;
	--wp-heading: #0d2818;
	--wp-bg: #fafaf7;
	--wp-surface: #ffffff;
	--wp-muted: #6b6b6b;
	--wp-border: #e8e6df;
	--wp-font-body: "DM Sans", system-ui, sans-serif;
	--wp-font-heading: "Fraunces", Georgia, serif;
	--wp-base-size: 17px;
	--wp-h1-size: 56px;
	--wp-container: 1280px;

	--wp-shadow-sm: 0 1px 2px rgba(13, 40, 24, 0.04);
	--wp-shadow-md: 0 6px 24px rgba(13, 40, 24, 0.06);
	--wp-shadow-lg: 0 16px 48px rgba(13, 40, 24, 0.10);
	--wp-radius: 4px;
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
	margin: 0;
	font-family: var(--wp-font-body);
	font-size: var(--wp-base-size);
	line-height: 1.65;
	color: var(--wp-text);
	background: var(--wp-bg);
	font-feature-settings: "kern", "liga", "ss01";
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--wp-primary); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--wp-primary-dark); }

/* Headings */
h1, h2, h3, h4, h5, h6 {
	font-family: var(--wp-font-heading);
	color: var(--wp-heading);
	font-weight: 600;
	line-height: 1.15;
	letter-spacing: -0.015em;
	margin: 0 0 0.6em;
	font-variation-settings: "opsz" 144;
}
h1 { font-size: var(--wp-h1-size); font-weight: 700; }
h2 { font-size: clamp(1.75rem, 3.5vw, 2.5rem); }
h3 { font-size: clamp(1.25rem, 2.5vw, 1.5rem); }
h4 { font-size: 1.15rem; }

p { margin: 0 0 1em; }

/* Container */
.container {
	width: 100%;
	max-width: var(--wp-container);
	margin: 0 auto;
	padding: 0 clamp(1rem, 4vw, 2.5rem);
}
.container--narrow { max-width: 760px; }

/* Skip link & a11y */
.screen-reader-text {
	position: absolute !important;
	clip: rect(1px, 1px, 1px, 1px);
	width: 1px; height: 1px;
	overflow: hidden;
	white-space: nowrap;
}
.skip-link:focus {
	position: absolute; top: 8px; left: 8px;
	background: var(--wp-heading); color: #fff;
	padding: .75rem 1rem; z-index: 9999;
	clip: auto; width: auto; height: auto;
}

/* ==========================================================================
   TOPBAR
   ========================================================================== */
.site-topbar {
	background: var(--wp-heading);
	color: rgba(255,255,255,.85);
	font-size: 0.8125rem;
	padding: 0.6rem 0;
	letter-spacing: 0.02em;
}
.site-topbar .container {
	display: flex; justify-content: space-between; align-items: center; gap: 2rem;
}
.topbar-text { margin: 0; }
.topbar-menu { list-style: none; padding: 0; margin: 0; display: flex; gap: 1.5rem; }
.topbar-menu a { color: rgba(255,255,255,.85); }
.topbar-menu a:hover { color: #fff; }

@media (max-width: 768px) {
	.topbar-text { display: none; }
	.site-topbar .container { justify-content: center; }
}

/* ==========================================================================
   HEADER
   ========================================================================== */
.site-header {
	background: var(--wp-surface);
	border-bottom: 1px solid var(--wp-border);
	position: relative;
	z-index: 100;
}
.has-sticky-header .site-header {
	position: sticky; top: 0;
	box-shadow: var(--wp-shadow-sm);
}
.site-header__inner {
	display: grid;
	grid-template-columns: auto 1fr auto;
	align-items: center;
	gap: 2.5rem;
	padding-block: 1.25rem;
}
.site-branding .site-title {
	font-family: var(--wp-font-heading);
	font-size: 1.75rem;
	font-weight: 700;
	margin: 0;
	letter-spacing: -0.02em;
}
.site-branding .site-title a { color: var(--wp-heading); }
.site-branding .site-description {
	margin: 0; font-size: 0.75rem; color: var(--wp-muted); letter-spacing: 0.04em; text-transform: uppercase;
}
.custom-logo-link img { max-height: 60px; width: auto; }

/* Primary menu */
.primary-menu {
	list-style: none; padding: 0; margin: 0;
	display: flex; gap: 0.5rem; justify-content: center;
}
.primary-menu li { position: relative; }
.primary-menu a {
	display: block; padding: 0.5rem 0.9rem;
	color: var(--wp-heading);
	font-weight: 500;
	font-size: 0.9375rem;
	letter-spacing: 0.01em;
	text-transform: uppercase;
	font-size: 0.8125rem;
	position: relative;
}
.primary-menu a::after {
	content: ''; position: absolute;
	bottom: -2px; left: 50%; transform: translateX(-50%);
	width: 0; height: 2px; background: var(--wp-accent);
	transition: width .25s ease;
}
.primary-menu a:hover::after,
.primary-menu .current-menu-item > a::after { width: calc(100% - 1.8rem); }

.primary-menu .sub-menu {
	position: absolute; top: 100%; left: 0;
	background: var(--wp-surface);
	border: 1px solid var(--wp-border);
	box-shadow: var(--wp-shadow-md);
	list-style: none; padding: 0.5rem; margin: 0;
	min-width: 200px;
	opacity: 0; visibility: hidden; transform: translateY(8px);
	transition: all .2s ease;
}
.primary-menu li:hover > .sub-menu {
	opacity: 1; visibility: visible; transform: translateY(0);
}
.primary-menu .sub-menu a { padding: 0.5rem 0.75rem; text-transform: none; font-size: 0.875rem; }

/* Mobile menu */
.menu-toggle {
	display: none;
	background: none; border: 0; padding: 0.5rem; cursor: pointer;
}
.hamburger, .hamburger::before, .hamburger::after {
	display: block; width: 22px; height: 2px;
	background: var(--wp-heading); transition: all .3s ease;
}
.hamburger { position: relative; }
.hamburger::before, .hamburger::after { content: ''; position: absolute; left: 0; }
.hamburger::before { top: -7px; }
.hamburger::after  { top: 7px; }
.menu-toggle[aria-expanded="true"] .hamburger { background: transparent; }
.menu-toggle[aria-expanded="true"] .hamburger::before { transform: rotate(45deg); top: 0; }
.menu-toggle[aria-expanded="true"] .hamburger::after  { transform: rotate(-45deg); top: 0; }

/* Header search */
.header-search { position: relative; }
.search-toggle {
	background: none; border: 0; padding: 0.5rem; cursor: pointer;
	color: var(--wp-heading); display: flex; align-items: center;
}
.search-dropdown {
	position: absolute; top: 100%; right: 0;
	background: var(--wp-surface);
	box-shadow: var(--wp-shadow-md);
	padding: 1rem; min-width: 320px;
	opacity: 0; visibility: hidden; transform: translateY(8px);
	transition: all .2s ease;
}
.search-dropdown.is-open { opacity: 1; visibility: visible; transform: translateY(0); }

@media (max-width: 900px) {
	.menu-toggle { display: block; }
	.site-header__inner { grid-template-columns: auto 1fr auto; }
	.main-navigation { order: 4; grid-column: 1 / -1; }
	.primary-menu {
		display: none; flex-direction: column; gap: 0;
		padding: 1rem 0; border-top: 1px solid var(--wp-border);
	}
	.primary-menu.is-open { display: flex; }
	.primary-menu a { padding: 0.75rem 1rem; }
	.primary-menu a::after { display: none; }
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero-section { padding: clamp(2rem, 5vw, 4rem) 0; }
.hero-eyebrow {
	display: inline-flex; align-items: center; gap: 0.5rem;
	font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.15em;
	color: var(--wp-accent); font-weight: 600;
	margin-bottom: 1.5rem;
}
.eyebrow-dot {
	width: 8px; height: 8px; border-radius: 50%;
	background: var(--wp-accent);
	animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
	0%, 100% { opacity: 1; transform: scale(1); }
	50% { opacity: 0.4; transform: scale(1.3); }
}

.hero-grid {
	display: grid;
	grid-template-columns: 1.6fr 1fr;
	gap: clamp(1.5rem, 3vw, 3rem);
}
.hero-main {
	display: flex; flex-direction: column; gap: 1.5rem;
}
.hero-main__image {
	display: block; overflow: hidden;
	background: var(--wp-border);
	aspect-ratio: 16/10;
}
.hero-main__image img {
	width: 100%; height: 100%; object-fit: cover;
	transition: transform .6s cubic-bezier(.2,.8,.2,1);
}
.hero-main__image:hover img { transform: scale(1.04); }

.hero-main__title {
	font-size: clamp(2rem, 4.5vw, 3.5rem);
	line-height: 1.05;
	margin: 0;
}
.hero-main__title a { color: var(--wp-heading); }
.hero-main__title a:hover { color: var(--wp-primary); }
.hero-main__excerpt {
	font-size: 1.125rem;
	color: var(--wp-muted);
	max-width: 60ch;
}
.hero-main__meta {
	font-size: 0.875rem;
	color: var(--wp-muted);
	display: flex; gap: 0.5rem; align-items: center;
}

.hero-secondary {
	display: flex; flex-direction: column; gap: 1.5rem;
	border-left: 1px solid var(--wp-border);
	padding-left: clamp(1.5rem, 3vw, 3rem);
}
.hero-side {
	display: grid; grid-template-columns: 100px 1fr;
	gap: 1rem; align-items: start;
	padding-bottom: 1.5rem;
	border-bottom: 1px solid var(--wp-border);
}
.hero-side:last-child { border-bottom: 0; padding-bottom: 0; }
.hero-side__image { aspect-ratio: 1/1; overflow: hidden; }
.hero-side__image img { width: 100%; height: 100%; object-fit: cover; }
.hero-side__title {
	font-size: 1rem; line-height: 1.3; margin: 0.5rem 0 0.5rem;
}
.hero-side__title a { color: var(--wp-heading); }
.hero-side__title a:hover { color: var(--wp-primary); }
.hero-side__meta { font-size: 0.8125rem; color: var(--wp-muted); }

@media (max-width: 900px) {
	.hero-grid { grid-template-columns: 1fr; }
	.hero-secondary { border-left: 0; padding-left: 0; border-top: 1px solid var(--wp-border); padding-top: 2rem; }
}

/* ==========================================================================
   CATEGORY BADGE
   ========================================================================== */
.category-badge {
	display: inline-block;
	font-size: 0.6875rem;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--wp-accent);
	padding: 0.35rem 0;
	margin-bottom: 0.75rem;
	position: relative;
}
.category-badge::before {
	content: ''; display: inline-block;
	width: 20px; height: 1px; background: var(--wp-accent);
	vertical-align: middle; margin-right: 0.5rem;
}

/* ==========================================================================
   TRENDING STRIP
   ========================================================================== */
.trending-strip {
	background: var(--wp-heading); color: #fff;
	padding: 1.25rem 0;
	margin-block: 2rem;
}
.trending-inner {
	display: grid; grid-template-columns: auto 1fr;
	align-items: center; gap: 2rem;
}
.trending-label {
	display: inline-flex; align-items: center; gap: 0.5rem;
	color: var(--wp-accent);
	font-weight: 600; font-size: 0.8125rem;
	letter-spacing: 0.1em; text-transform: uppercase;
	white-space: nowrap;
}
.trending-list {
	list-style: none; padding: 0; margin: 0;
	counter-reset: trend;
	display: flex; gap: 2.5rem; overflow-x: auto;
	scrollbar-width: none;
}
.trending-list::-webkit-scrollbar { display: none; }
.trending-list li {
	counter-increment: trend;
	white-space: nowrap;
	font-size: 0.9375rem;
}
.trending-list li::before {
	content: counter(trend, decimal-leading-zero);
	font-family: var(--wp-font-heading);
	font-weight: 600;
	color: var(--wp-accent);
	margin-right: 0.6rem;
	font-size: 0.875rem;
}
.trending-list a { color: rgba(255,255,255,.9); }
.trending-list a:hover { color: #fff; text-decoration: underline; text-underline-offset: 4px; }

@media (max-width: 700px) {
	.trending-inner { grid-template-columns: 1fr; gap: 1rem; }
}

/* ==========================================================================
   SECTION HEADER
   ========================================================================== */
.section-header {
	display: flex; justify-content: space-between; align-items: baseline;
	gap: 2rem; margin-bottom: 2.5rem;
	padding-bottom: 1rem;
	border-bottom: 2px solid var(--wp-heading);
}
.section-title {
	margin: 0;
	font-size: clamp(1.5rem, 3vw, 2rem);
}
.section-link {
	font-size: 0.875rem; font-weight: 500;
	color: var(--wp-primary); white-space: nowrap;
}

.latest-section, .category-tiles {
	padding: clamp(2rem, 5vw, 4rem) 0;
}

/* ==========================================================================
   POST CARDS / GRID
   ========================================================================== */
.post-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
	gap: clamp(1.5rem, 3vw, 2.5rem);
}
.post-grid--3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 800px) { .post-grid--3 { grid-template-columns: 1fr; } }

.post-card { background: transparent; }
.post-card__image {
	display: block; overflow: hidden;
	aspect-ratio: 4/3; background: var(--wp-border);
	margin-bottom: 1rem;
}
.post-card__image img {
	width: 100%; height: 100%; object-fit: cover;
	transition: transform .5s cubic-bezier(.2,.8,.2,1);
}
.post-card:hover .post-card__image img { transform: scale(1.05); }

.post-card__title {
	font-size: 1.375rem;
	line-height: 1.25;
	margin: 0.5rem 0;
}
.post-card__title a { color: var(--wp-heading); }
.post-card__title a:hover { color: var(--wp-primary); }

.post-card__excerpt {
	color: var(--wp-muted); font-size: 0.9375rem;
	margin: 0.5rem 0 0.75rem;
}
.post-card__meta {
	font-size: 0.8125rem; color: var(--wp-muted);
	display: flex; gap: 0.4rem; align-items: center; flex-wrap: wrap;
}
.meta-sep { color: var(--wp-border); }

.post-card--compact .post-card__title { font-size: 1.125rem; }

/* ==========================================================================
   CATEGORY TILES
   ========================================================================== */
.category-tile-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 1rem;
}
@media (max-width: 900px) { .category-tile-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 500px) { .category-tile-grid { grid-template-columns: 1fr; } }

.category-tile {
	display: block;
	aspect-ratio: 4/5;
	background-color: var(--wp-heading);
	background-size: cover; background-position: center;
	position: relative;
	overflow: hidden;
}
.category-tile__overlay {
	position: absolute; inset: 0;
	background: linear-gradient(to top, rgba(13,40,24,.85) 0%, rgba(13,40,24,.2) 60%, transparent 100%);
	display: flex; flex-direction: column; justify-content: flex-end;
	padding: 1.5rem;
	color: #fff;
	transition: background .3s ease;
}
.category-tile:hover .category-tile__overlay {
	background: linear-gradient(to top, rgba(10,125,94,.85) 0%, rgba(10,125,94,.3) 70%, transparent 100%);
}
.category-tile__name {
	font-size: 1.5rem; color: #fff; margin: 0 0 0.25rem;
}
.category-tile__count {
	font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.1em;
	opacity: 0.85;
}

/* ==========================================================================
   NEWSLETTER BLOCK
   ========================================================================== */
.newsletter-block {
	background: var(--wp-heading);
	color: #fff;
	padding: clamp(3rem, 6vw, 5rem) 0;
	margin-top: clamp(3rem, 6vw, 5rem);
	position: relative;
	overflow: hidden;
}
.newsletter-block::before {
	content: ''; position: absolute;
	top: -50%; right: -10%;
	width: 50%; height: 200%;
	background: radial-gradient(circle, var(--wp-primary) 0%, transparent 70%);
	opacity: 0.4;
	pointer-events: none;
}
.newsletter-inner {
	display: grid; grid-template-columns: 1fr 1fr;
	gap: 3rem; align-items: center;
	position: relative;
}
.newsletter-content h2 {
	color: #fff;
	font-size: clamp(1.5rem, 3vw, 2.25rem);
	margin: 0 0 0.5rem;
}
.newsletter-content p { color: rgba(255,255,255,.8); margin: 0; }
.newsletter-form {
	display: flex; gap: 0; background: #fff; padding: 4px;
	border-radius: var(--wp-radius);
}
.newsletter-form input {
	flex: 1; border: 0; padding: 0.85rem 1rem;
	font-family: inherit; font-size: 1rem;
	background: transparent; color: var(--wp-heading);
}
.newsletter-form input:focus { outline: 0; }
.newsletter-form button {
	background: var(--wp-accent); color: #fff;
	border: 0; padding: 0.85rem 1.5rem;
	font-family: inherit; font-weight: 600;
	cursor: pointer; transition: background .2s;
	border-radius: var(--wp-radius);
}
.newsletter-form button:hover { background: var(--wp-primary); }

@media (max-width: 800px) {
	.newsletter-inner { grid-template-columns: 1fr; }
}

/* ==========================================================================
   SINGLE ARTICLE
   ========================================================================== */
.single-main { padding: clamp(2rem, 5vw, 4rem) 0; }
.article-header { padding-bottom: 2rem; }
.article-title {
	font-size: clamp(2rem, 5vw, 3.5rem);
	line-height: 1.1;
	margin: 0.5rem 0 1rem;
}
.article-deck {
	font-size: 1.25rem;
	line-height: 1.5;
	color: var(--wp-muted);
	font-family: var(--wp-font-heading);
	font-style: italic;
	font-weight: 400;
	margin: 0 0 1.5rem;
	max-width: 60ch;
}
.entry-meta {
	display: flex; gap: 0.5rem; flex-wrap: wrap; align-items: center;
	font-size: 0.875rem; color: var(--wp-muted);
	margin-top: 1rem;
}
.entry-meta .byline a { color: var(--wp-text); font-weight: 500; }

.medical-reviewer {
	display: flex; align-items: center; gap: 0.5rem;
	background: rgba(10,125,94,.08);
	border-left: 3px solid var(--wp-primary);
	padding: 0.75rem 1rem;
	margin-top: 1.5rem;
	font-size: 0.875rem;
	color: var(--wp-heading);
}
.reviewer-icon { color: var(--wp-primary); flex-shrink: 0; }
.medical-reviewer strong { color: var(--wp-heading); }

.article-feature-image {
	margin: 0 0 3rem; max-width: var(--wp-container); margin-inline: auto;
	padding: 0 clamp(1rem, 4vw, 2.5rem);
}
.article-feature-image img { width: 100%; height: auto; }
.article-feature-image figcaption {
	font-size: 0.8125rem; color: var(--wp-muted);
	margin-top: 0.5rem; font-style: italic;
}

.article-content {
	font-size: 1.125rem; line-height: 1.75;
}
.article-content > * + * { margin-top: 1.25em; }
.article-content h2 {
	font-size: 1.875rem; margin-top: 2.5em;
	padding-bottom: 0.4em;
	border-bottom: 1px solid var(--wp-border);
}
.article-content h3 { font-size: 1.4rem; margin-top: 2em; }
.article-content blockquote {
	border-left: 4px solid var(--wp-accent);
	padding: 0.5rem 0 0.5rem 1.5rem;
	margin: 2em 0;
	font-family: var(--wp-font-heading);
	font-size: 1.5rem;
	line-height: 1.4;
	color: var(--wp-heading);
	font-style: italic;
}
.article-content a {
	color: var(--wp-primary);
	text-decoration: underline;
	text-decoration-color: rgba(10,125,94,.3);
	text-underline-offset: 3px;
	text-decoration-thickness: 1.5px;
}
.article-content a:hover { text-decoration-color: var(--wp-primary); }
.article-content img, .article-content figure { margin: 2em 0; }
.article-content ul, .article-content ol { padding-left: 1.5rem; }
.article-content li { margin-bottom: 0.5em; }
.article-content code {
	background: rgba(10,125,94,.08);
	padding: 0.15em 0.4em;
	border-radius: 3px;
	font-size: 0.9em;
}

.article-footer {
	margin-top: 3rem; padding-top: 2rem;
	border-top: 1px solid var(--wp-border);
	display: flex; justify-content: space-between; align-items: center;
	flex-wrap: wrap; gap: 1.5rem;
}
.tag-list { font-size: 0.875rem; }
.tag-label { color: var(--wp-muted); margin-right: 0.5rem; }
.tag-list a {
	display: inline-block;
	padding: 0.25rem 0.75rem;
	background: var(--wp-surface);
	border: 1px solid var(--wp-border);
	border-radius: 999px;
	color: var(--wp-text);
	margin-right: 0.25rem; margin-bottom: 0.25rem;
	font-size: 0.8125rem;
}
.tag-list a:hover { border-color: var(--wp-primary); color: var(--wp-primary); }

.article-share { display: flex; align-items: center; gap: 0.75rem; }
.share-label { font-size: 0.8125rem; color: var(--wp-muted); margin-right: 0.25rem; }
.article-share a {
	width: 36px; height: 36px;
	display: inline-flex; align-items: center; justify-content: center;
	background: var(--wp-surface); border: 1px solid var(--wp-border);
	border-radius: 50%; color: var(--wp-heading);
	transition: all .2s;
}
.article-share a:hover { background: var(--wp-primary); color: #fff; border-color: var(--wp-primary); }

/* Author bio */
.author-bio {
	display: grid; grid-template-columns: 80px 1fr;
	gap: 1.5rem; margin-top: 3rem; padding: 2rem;
	background: var(--wp-surface);
	border-left: 3px solid var(--wp-primary);
}
.author-bio img { border-radius: 50%; }
.author-bio h3 { margin: 0 0 0.5rem; font-size: 1.125rem; }
.author-bio p { margin: 0; color: var(--wp-muted); }

/* Related posts */
.related-posts { margin-top: 4rem; }
.related-title {
	font-size: 1.5rem;
	padding-bottom: 0.5rem;
	border-bottom: 2px solid var(--wp-heading);
	margin-bottom: 2rem;
}

/* ==========================================================================
   ARCHIVE / SEARCH
   ========================================================================== */
.archive-main, .page-main { padding: clamp(2rem, 5vw, 4rem) 0; }
.archive-header {
	text-align: center;
	max-width: 700px;
	margin: 0 auto 3rem;
	padding-bottom: 2rem;
	border-bottom: 1px solid var(--wp-border);
}
.archive-title {
	font-size: clamp(2rem, 4vw, 3rem);
	margin: 0 0 0.5rem;
}
.archive-description { color: var(--wp-muted); }

.content-with-sidebar {
	display: grid;
	grid-template-columns: 1fr 300px;
	gap: clamp(2rem, 4vw, 4rem);
}
@media (max-width: 1000px) { .content-with-sidebar { grid-template-columns: 1fr; } }

.sidebar .widget {
	margin-bottom: 2.5rem;
	padding-bottom: 2.5rem;
	border-bottom: 1px solid var(--wp-border);
}
.sidebar .widget:last-child { border-bottom: 0; }
.widget-title {
	font-size: 0.875rem; text-transform: uppercase;
	letter-spacing: 0.12em; color: var(--wp-heading);
	margin-bottom: 1.25rem; padding-bottom: 0.5rem;
	border-bottom: 2px solid var(--wp-heading);
	display: inline-block;
}
.sidebar ul { list-style: none; padding: 0; margin: 0; }
.sidebar li {
	padding: 0.5rem 0;
	border-bottom: 1px dashed var(--wp-border);
}
.sidebar a { color: var(--wp-text); }
.sidebar a:hover { color: var(--wp-primary); }

/* Pagination */
.pagination { margin-top: 4rem; text-align: center; }
.pagination .page-numbers {
	display: inline-flex; align-items: center; justify-content: center;
	min-width: 42px; height: 42px; padding: 0 0.75rem;
	margin: 0 0.15rem;
	background: var(--wp-surface);
	border: 1px solid var(--wp-border);
	color: var(--wp-text);
	font-weight: 500;
	transition: all .2s;
}
.pagination .page-numbers:hover,
.pagination .page-numbers.current {
	background: var(--wp-primary); color: #fff; border-color: var(--wp-primary);
}

/* Search form */
.search-form {
	display: flex; gap: 0;
	border: 1px solid var(--wp-border);
	border-radius: var(--wp-radius);
	overflow: hidden;
	background: var(--wp-surface);
}
.search-form:focus-within { border-color: var(--wp-primary); }
.search-form input {
	flex: 1; border: 0; padding: 0.7rem 1rem;
	background: transparent; font-family: inherit;
}
.search-form input:focus { outline: 0; }
.search-form button {
	background: transparent; border: 0; padding: 0 1rem;
	cursor: pointer; color: var(--wp-heading);
}
.search-form button:hover { color: var(--wp-primary); }

/* Buttons */
.btn-primary {
	display: inline-block;
	background: var(--wp-primary); color: #fff;
	padding: 0.85rem 1.75rem;
	font-weight: 600;
	border-radius: var(--wp-radius);
	transition: background .2s;
}
.btn-primary:hover { background: var(--wp-primary-dark); color: #fff; }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
	background: var(--wp-heading);
	color: rgba(255,255,255,.75);
	padding: clamp(3rem, 6vw, 5rem) 0 2rem;
	margin-top: clamp(3rem, 6vw, 5rem);
}
.footer-top {
	display: grid;
	grid-template-columns: 1.5fr repeat(4, 1fr);
	gap: clamp(1.5rem, 3vw, 3rem);
	padding-bottom: 3rem;
	border-bottom: 1px solid rgba(255,255,255,.1);
}
@media (max-width: 1000px) {
	.footer-top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
	.footer-top { grid-template-columns: 1fr; }
}

.footer-about .footer-brand {
	font-family: var(--wp-font-heading);
	font-size: 1.5rem; font-weight: 700; color: #fff;
	margin: 0 0 1rem;
}
.footer-about p { font-size: 0.9375rem; line-height: 1.6; }

.social-links {
	list-style: none; padding: 0; margin: 1.5rem 0 0;
	display: flex; gap: 0.5rem;
}
.social-links a {
	width: 38px; height: 38px;
	display: flex; align-items: center; justify-content: center;
	background: rgba(255,255,255,.08);
	color: rgba(255,255,255,.85);
	border-radius: 50%;
	transition: all .2s;
}
.social-links a:hover { background: var(--wp-accent); color: #fff; }

.footer-widgets .widget-title {
	color: #fff;
	border-color: var(--wp-accent);
	font-size: 0.8125rem;
}
.footer-widgets ul { list-style: none; padding: 0; margin: 0; }
.footer-widgets li { padding: 0.35rem 0; border: 0; }
.footer-widgets a { color: rgba(255,255,255,.75); }
.footer-widgets a:hover { color: #fff; }

.medical-disclaimer {
	background: rgba(255,255,255,.04);
	padding: 1.25rem 1.5rem;
	margin: 2rem 0 1.5rem;
	font-size: 0.8125rem;
	line-height: 1.6;
	border-left: 3px solid var(--wp-accent);
	color: rgba(255,255,255,.85);
}
.medical-disclaimer strong { color: #fff; display: block; margin-bottom: 0.25rem; }

.footer-bottom {
	display: flex; justify-content: space-between; align-items: center;
	flex-wrap: wrap; gap: 1rem;
	padding-top: 1.5rem;
	font-size: 0.8125rem;
}
.footer-menu {
	list-style: none; padding: 0; margin: 0;
	display: flex; gap: 1.5rem;
}
.footer-menu a { color: rgba(255,255,255,.75); }
.footer-menu a:hover { color: #fff; }

/* ==========================================================================
   COMMENTS
   ========================================================================== */
.comments-area {
	margin-top: 4rem; padding-top: 2.5rem;
	border-top: 1px solid var(--wp-border);
}
.comments-title { font-size: 1.5rem; margin-bottom: 2rem; }
.comment-list { list-style: none; padding: 0; }
.comment-list .comment {
	margin-bottom: 1.5rem; padding: 1.5rem;
	background: var(--wp-surface);
	border-left: 3px solid var(--wp-border);
}
.comment-meta { margin-bottom: 0.5rem; font-size: 0.875rem; }
.comment-author .fn { font-weight: 600; color: var(--wp-heading); }
.comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"], .comment-form textarea {
	width: 100%; padding: 0.75rem; border: 1px solid var(--wp-border);
	font-family: inherit; font-size: 1rem;
	background: var(--wp-surface);
}
.comment-form-comment label, .comment-form-author label, .comment-form-email label, .comment-form-url label {
	display: block; margin-bottom: 0.5rem; font-weight: 500; font-size: 0.875rem;
}
.form-submit input { background: var(--wp-primary); color: #fff; border: 0; padding: 0.85rem 1.75rem; font-weight: 600; cursor: pointer; }
.form-submit input:hover { background: var(--wp-primary-dark); }

/* ==========================================================================
   PRINT
   ========================================================================== */
@media print {
	.site-header, .site-footer, .related-posts, .article-share, .comments-area, .newsletter-block, .trending-strip { display: none; }
	.article-content { font-size: 11pt; }
}
