/*
Theme Name: eWebGuru Blog
Theme URI: https://www.ewebguru.com/web-hosting-blog/
Author: eWebGuru
Author URI: https://www.ewebguru.com/
Description: Lightweight custom theme for the eWebGuru blog. Light reading layout with navy brand framing, category-matched VPS / Cloud / Dedicated CTAs, sticky table of contents, product popup and Related Read inserts.
Version: 1.0.3
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: Proprietary
Text Domain: ewebguru-blog
*/

/* ---------- Tokens ---------- */
:root {
	--ewg-navy: #0B1F3A;
	--ewg-navy-2: #13294B;
	--ewg-navy-line: #1D3A66;
	--ewg-ink: #0B1F3A;
	--ewg-text: #334155;
	--ewg-text-2: #475569;
	--ewg-muted: #5B6B82;
	--ewg-line: #E3E8EF;
	--ewg-line-2: #DCE3EC;
	--ewg-surface: #F5F7FA;
	--ewg-accent: #F5A524;
	--ewg-accent-hover: #E8920C;
	--ewg-accent-soft: #FFF6E5;
	--ewg-accent-line: #F8D79A;
	--ewg-link: #1D4ED8;
	--ewg-link-hover: #1E3A8A;
	--ewg-tint: #E8EEF9;
	--ewg-radius: 14px;
	--ewg-font-head: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
	--ewg-font-body: Inter, system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;
	--ewg-font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 24px; }
body {
	margin: 0;
	background: #FFFFFF;
	color: var(--ewg-text);
	font-family: var(--ewg-font-body);
	font-size: 16px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}
img, video, iframe { max-width: 100%; height: auto; }
a { color: var(--ewg-link); text-decoration: none; }
a:hover { color: var(--ewg-link-hover); }
a:focus-visible, button:focus-visible, input:focus-visible, summary:focus-visible {
	outline: 3px solid var(--ewg-accent);
	outline-offset: 2px;
	border-radius: 4px;
}
h1, h2, h3, h4, h5, h6 { font-family: var(--ewg-font-head); color: var(--ewg-ink); }
.screen-reader-text {
	position: absolute !important;
	width: 1px; height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}
.skip-link:focus {
	position: fixed; top: 8px; left: 8px; z-index: 100000;
	width: auto; height: auto; clip: auto;
	padding: 12px 18px; background: #fff; color: var(--ewg-ink); font-weight: 700;
	border-radius: 8px;
}
.ewg-wrap { max-width: 1320px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }

/* ---------- Shared bits ---------- */
.ewg-cat {
	font-family: var(--ewg-font-mono);
	font-size: 12px;
	letter-spacing: .06em;
	text-transform: uppercase;
	color: var(--ewg-link);
	font-weight: 500;
}
.ewg-cat a { color: inherit; }
.ewg-meta { font-size: 13px; color: var(--ewg-muted); }
.ewg-meta strong { color: var(--ewg-ink); font-weight: 600; }

.ewg-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	min-height: 44px; padding: 0 20px;
	border-radius: 10px; border: 1px solid transparent;
	font-family: var(--ewg-font-head); font-weight: 700; font-size: 15px; line-height: 1.2;
	text-align: center; cursor: pointer;
	transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
.ewg-btn--accent { background: var(--ewg-accent); color: var(--ewg-navy); }
.ewg-btn--accent:hover { background: var(--ewg-accent-hover); color: var(--ewg-navy); }
.ewg-btn--navy { background: var(--ewg-navy); color: #fff; }
.ewg-btn--navy:hover { background: var(--ewg-navy-2); color: #fff; }
.ewg-btn--ghost { border-color: #C9D3E1; color: var(--ewg-ink); background: #fff; }
.ewg-btn--ghost:hover { border-color: var(--ewg-ink); color: var(--ewg-ink); }
.ewg-btn--line { border-color: #3B5A86; color: #fff; }
.ewg-btn--line:hover { border-color: #fff; color: #fff; }

.ewg-chip {
	display: inline-flex; align-items: center;
	min-height: 40px; padding: 0 16px;
	border-radius: 999px; border: 1px solid var(--ewg-line-2);
	background: #fff; color: var(--ewg-text);
	font-size: 14px; font-weight: 500; white-space: nowrap;
}
.ewg-chip:hover { border-color: var(--ewg-ink); color: var(--ewg-ink); }
.ewg-chip.is-active { background: var(--ewg-navy); border-color: var(--ewg-navy); color: #fff; }

/* Thumbnails + placeholder when a post has no featured image */
.ewg-thumb {
	position: relative; display: block; overflow: hidden;
	background-color: #0E2546;
	aspect-ratio: 16 / 9;
}
.ewg-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s ease; }
.ewg-thumb--empty {
	background-image:
		linear-gradient(rgba(255,255,255,.06) 1px, transparent 1px),
		linear-gradient(90deg, rgba(255,255,255,.06) 1px, transparent 1px);
	background-size: 28px 28px;
	display: flex; align-items: center; justify-content: center;
}
.ewg-thumb--empty svg { width: 34%; max-width: 150px; height: auto; }

/* ---------- Header ---------- */
.ewg-progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 1000; pointer-events: none; }
.ewg-progress span { display: block; height: 100%; width: 0; background: var(--ewg-accent); }
.admin-bar .ewg-progress { top: 32px; }

.ewg-header { background: var(--ewg-navy); position: relative; z-index: 50; }
.ewg-header__bar { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 72px; }
.ewg-brand { display: flex; align-items: center; gap: 10px; color: #fff; flex: none; }
.ewg-brand:hover { color: #fff; }
.ewg-brand__mark {
	width: 34px; height: 34px; border-radius: 9px;
	background: var(--ewg-accent); color: var(--ewg-navy);
	display: flex; align-items: center; justify-content: center;
	font: 800 20px/1 var(--ewg-font-head);
}
.ewg-brand__name { font: 800 21px/1 var(--ewg-font-head); letter-spacing: -.01em; }
.ewg-brand .custom-logo { max-height: 40px; width: auto; display: block; }
.ewg-brand__tag {
	margin-left: 4px; padding: 3px 8px; border-radius: 6px;
	border: 1px solid #3B5A86; color: #D6DEEA;
	font: 500 11px/1.3 var(--ewg-font-mono); letter-spacing: .06em; text-transform: uppercase;
}
.ewg-nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 28px; }
.ewg-nav a { color: #D6DEEA; font-size: 15px; font-weight: 500; display: inline-flex; align-items: center; min-height: 44px; }
.ewg-nav a:hover, .ewg-nav .current-menu-item > a, .ewg-nav a.is-current { color: #fff; }
.ewg-nav .current-menu-item > a, .ewg-nav a.is-current { font-weight: 600; }
.ewg-nav .sub-menu { display: none; }
.ewg-header__actions { display: flex; align-items: center; gap: 12px; }
.ewg-menu-toggle {
	display: none; width: 44px; height: 44px; border-radius: 10px;
	border: 1px solid #3B5A86; background: transparent; color: #fff; cursor: pointer;
	align-items: center; justify-content: center; padding: 0;
}

/* Blog bar */
.ewg-blogbar { background: var(--ewg-surface); border-bottom: 1px solid var(--ewg-line); }
.ewg-blogbar__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 14px; padding-bottom: 14px; }
.ewg-topics { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 0; padding: 0; list-style: none; }
.ewg-topics::-webkit-scrollbar { display: none; }
.ewg-search {
	display: flex; align-items: center; gap: 8px; flex: none;
	border: 1px solid var(--ewg-line-2); border-radius: 10px; background: #fff;
	padding: 0 12px; height: 44px; width: 260px; margin: 0;
}
.ewg-search:focus-within { border-color: var(--ewg-navy); }
.ewg-search input[type="search"] {
	border: 0; outline: none; background: transparent; width: 100%;
	font: 15px var(--ewg-font-body); color: var(--ewg-ink); -webkit-appearance: none;
}
.ewg-search button { border: 0; background: none; padding: 0; display: flex; color: var(--ewg-muted); cursor: pointer; }

/* ---------- Home ---------- */
.ewg-intro { padding-top: 48px; padding-bottom: 56px; }
.ewg-intro__head { max-width: 760px; margin-bottom: 32px; }
.ewg-intro__head h1 { margin: 10px 0 0; font-size: 44px; line-height: 1.12; font-weight: 800; letter-spacing: -.02em; }
.ewg-intro__head p { margin: 14px 0 0; font-size: 18px; line-height: 1.6; color: var(--ewg-text-2); }

.ewg-hero { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 32px; }
.ewg-hero__main .ewg-thumb { border-radius: 16px; }
.ewg-hero__main:hover .ewg-thumb img { transform: scale(1.02); }
.ewg-hero__body { padding: 22px 4px 0; display: flex; flex-direction: column; gap: 12px; }
.ewg-hero__body h2 { margin: 0; font-size: 32px; line-height: 1.2; font-weight: 800; letter-spacing: -.015em; }
.ewg-hero__body h2 a { color: var(--ewg-ink); }
.ewg-hero__body h2 a:hover { color: var(--ewg-link); }
.ewg-hero__body p { margin: 0; font-size: 17px; line-height: 1.6; color: var(--ewg-text-2); }
.ewg-byline { display: flex; align-items: center; gap: 10px; }
.ewg-byline img { border-radius: 50%; width: 32px; height: 32px; }

.ewg-hero__side { display: flex; flex-direction: column; gap: 20px; }
.ewg-mini { display: flex; gap: 16px; align-items: flex-start; }
.ewg-mini .ewg-thumb { width: 132px; flex: none; aspect-ratio: 4 / 3; border-radius: 12px; }
.ewg-mini__body { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.ewg-mini h3 { margin: 0; font-size: 17px; line-height: 1.35; font-weight: 700; }
.ewg-mini h3 a { color: var(--ewg-ink); }
.ewg-mini h3 a:hover { color: var(--ewg-link); }

.ewg-note {
	margin-top: auto; border-radius: var(--ewg-radius);
	background: var(--ewg-accent-soft); border: 1px solid var(--ewg-accent-line);
	padding: 18px 20px; display: flex; flex-direction: column; gap: 10px;
}
.ewg-note p { margin: 0; font: 700 16px/1.4 var(--ewg-font-head); color: var(--ewg-ink); }
.ewg-note a { font-weight: 600; color: var(--ewg-ink); }

.ewg-section { padding-top: 56px; padding-bottom: 64px; }
.ewg-section--tint { background: var(--ewg-surface); border-top: 1px solid var(--ewg-line); border-bottom: 1px solid var(--ewg-line); }
.ewg-section__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 28px; }
.ewg-section__head h2 { margin: 0; font-size: 28px; font-weight: 800; letter-spacing: -.01em; }
.ewg-section__head p { margin: 10px 0 0; font-size: 17px; color: var(--ewg-text-2); max-width: 640px; }
.ewg-section__head a { font-weight: 600; font-size: 15px; }

.ewg-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }

.ewg-card { display: flex; flex-direction: column; border: 1px solid var(--ewg-line); border-radius: var(--ewg-radius); overflow: hidden; background: #fff; transition: border-color .15s ease; }
.ewg-card:hover { border-color: #B9C6D8; }
.ewg-card:hover .ewg-thumb img { transform: scale(1.03); }
.ewg-card__body { padding: 20px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.ewg-card h3 { margin: 0; font-size: 19px; line-height: 1.35; font-weight: 700; }
.ewg-card h3 a { color: var(--ewg-ink); }
.ewg-card h3 a:hover { color: var(--ewg-link); }
.ewg-card p { margin: 0; font-size: 15px; line-height: 1.6; color: var(--ewg-text-2); }
.ewg-card .ewg-meta { margin-top: auto; }

.ewg-promo-tile {
	display: flex; flex-direction: column; justify-content: space-between; gap: 18px;
	border-radius: var(--ewg-radius); background: var(--ewg-navy); padding: 28px; color: #D6DEEA;
}
.ewg-promo-tile .ewg-cat { color: var(--ewg-accent); }
.ewg-promo-tile .ewg-promo-tile__title { margin: 12px 0 0; font: 800 24px/1.25 var(--ewg-font-head); color: #fff; }
.ewg-promo-tile p { margin: 12px 0 0; font-size: 15px; line-height: 1.6; }
.ewg-promo-tile .ewg-btn { align-self: flex-start; }

.ewg-products { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.ewg-product { border: 1px solid var(--ewg-line); border-radius: var(--ewg-radius); padding: 26px; display: flex; flex-direction: column; gap: 12px; }
.ewg-product h3 { margin: 0; font-size: 20px; font-weight: 700; }
.ewg-product p { margin: 0; font-size: 15px; line-height: 1.6; }
.ewg-product a.ewg-arrow { font-weight: 600; margin-top: auto; }

.ewg-topic-cloud { display: flex; flex-wrap: wrap; gap: 10px; }

/* Pagination */
.ewg-pagination { margin-top: 40px; display: flex; justify-content: center; }
.ewg-pagination .nav-links { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.ewg-pagination .page-numbers {
	min-width: 44px; min-height: 44px; padding: 0 14px;
	display: inline-flex; align-items: center; justify-content: center;
	border: 1px solid var(--ewg-line-2); border-radius: 10px; background: #fff;
	color: var(--ewg-ink); font-weight: 600; font-size: 15px;
}
.ewg-pagination .page-numbers:hover { border-color: var(--ewg-ink); }
.ewg-pagination .page-numbers.current { background: var(--ewg-navy); border-color: var(--ewg-navy); color: #fff; }
.ewg-pagination .page-numbers.dots { border: 0; background: none; }

/* ---------- Archive / search header ---------- */
.ewg-archive-head { background: var(--ewg-surface); border-bottom: 1px solid var(--ewg-line); }
.ewg-archive-head .ewg-wrap { padding-top: 40px; padding-bottom: 40px; }
.ewg-archive-head h1 { margin: 10px 0 0; font-size: 40px; line-height: 1.15; font-weight: 800; letter-spacing: -.02em; }
.ewg-archive-head__desc { margin-top: 12px; max-width: 720px; font-size: 17px; color: var(--ewg-text-2); }
.ewg-archive-head__desc p { margin: 0; }
.ewg-empty { padding: 48px 0; text-align: center; }
.ewg-empty .ewg-search { margin: 20px auto 0; width: min(420px, 100%); }

/* ---------- Single post ---------- */
.ewg-post-head { background: var(--ewg-surface); border-bottom: 1px solid var(--ewg-line); }
.ewg-post-head .ewg-wrap { padding-top: 28px; padding-bottom: 40px; }
.ewg-crumbs { font-size: 14px; color: var(--ewg-muted); margin-bottom: 22px; }
.ewg-crumbs a { color: var(--ewg-link); }
.ewg-crumbs .sep { margin: 0 6px; }
.ewg-post-head__inner { max-width: 860px; display: flex; flex-direction: column; gap: 18px; }
.ewg-post-head h1 { margin: 0; font-size: 46px; line-height: 1.12; font-weight: 800; letter-spacing: -.02em; }
.ewg-post-head__dek { margin: 0; font-size: 19px; line-height: 1.6; color: var(--ewg-text-2); }
.ewg-post-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 22px; }
.ewg-post-meta__item { display: flex; flex-direction: column; font-size: 14px; line-height: 1.4; }
.ewg-post-meta__item span:first-child { color: var(--ewg-muted); }
.ewg-post-meta__item strong, .ewg-post-meta__item a { color: var(--ewg-ink); font-weight: 600; }
.ewg-post-meta__author { display: flex; align-items: center; gap: 10px; }
.ewg-post-meta__author img { width: 40px; height: 40px; border-radius: 50%; }

.ewg-post-body { padding-top: 40px; padding-bottom: 64px; }
.ewg-layout { display: grid; grid-template-columns: 220px minmax(0, 1fr) 300px; gap: 48px; align-items: start; }
.ewg-layout--no-toc { grid-template-columns: minmax(0, 1fr) 300px; }
.ewg-toc-col { position: sticky; top: 24px; }
.admin-bar .ewg-toc-col, .admin-bar .ewg-sidebar { top: 56px; }
.ewg-toc-col .ewg-cat { color: var(--ewg-muted); margin: 0 0 12px; display: block; }
.ewg-toc ol { list-style: none; margin: 0; padding: 0; max-height: calc(100vh - 120px); overflow-y: auto; }
.ewg-toc a {
	display: block; padding: 7px 0 7px 14px; border-left: 2px solid var(--ewg-line);
	color: var(--ewg-text-2); font-size: 14px; line-height: 1.4;
}
.ewg-toc a:hover { color: var(--ewg-ink); border-left-color: #94A3B8; }
.ewg-toc a.is-active { color: var(--ewg-ink); font-weight: 600; border-left-color: var(--ewg-accent); }

.ewg-article { min-width: 0; }
.ewg-article__image { border-radius: 16px; margin: 0 0 32px; aspect-ratio: auto; }
.ewg-article__image img { height: auto; }

/* Prose */
.ewg-prose { font-size: 18px; line-height: 1.75; color: var(--ewg-text); overflow-wrap: break-word; }
.ewg-prose > *:first-child { margin-top: 0; }
.ewg-prose p { margin: 0 0 20px; }
.ewg-prose h2 { font-size: 30px; line-height: 1.25; font-weight: 800; letter-spacing: -.015em; margin: 48px 0 16px; scroll-margin-top: 24px; }
.ewg-prose h3 { font-size: 22px; line-height: 1.3; font-weight: 700; margin: 32px 0 12px; scroll-margin-top: 24px; }
.ewg-prose h4 { font-size: 18px; margin: 24px 0 10px; }
.ewg-prose a { color: var(--ewg-link); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.ewg-prose a:hover { color: var(--ewg-link-hover); }
.ewg-prose strong { color: var(--ewg-ink); }
.ewg-prose ul, .ewg-prose ol { margin: 0 0 22px; padding-left: 1.4em; }
.ewg-prose li { margin: 0 0 8px; }
.ewg-prose li::marker { color: var(--ewg-muted); }
.ewg-prose blockquote {
	margin: 28px 0; padding: 18px 22px; border-radius: 12px;
	background: var(--ewg-surface); border: 1px solid var(--ewg-line); color: var(--ewg-ink);
}
.ewg-prose blockquote p:last-child { margin: 0; }
.ewg-prose img { border-radius: 12px; }
.ewg-prose figure { margin: 28px 0; }
.ewg-prose figcaption { font-size: 14px; color: var(--ewg-muted); margin-top: 8px; text-align: center; }
.ewg-prose code { font-family: var(--ewg-font-mono); font-size: .88em; background: var(--ewg-tint); color: var(--ewg-ink); padding: 2px 6px; border-radius: 5px; }
.ewg-prose pre {
	font-family: var(--ewg-font-mono); font-size: 14px; line-height: 1.6;
	background: var(--ewg-navy); color: #E2E8F0; padding: 18px 20px; border-radius: 12px; overflow-x: auto; margin: 0 0 24px;
}
.ewg-prose pre code { background: none; color: inherit; padding: 0; }
.ewg-prose hr { border: 0; border-top: 1px solid var(--ewg-line); margin: 40px 0; }

/* Tables (Gutenberg tables and plain tables) */
.ewg-prose .wp-block-table, .ewg-table-scroll { overflow-x: auto; margin: 0 0 28px; border: 1px solid var(--ewg-line); border-radius: 12px; }
.ewg-prose table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.5; margin: 0; }
.ewg-prose .wp-block-table table { border: 0; }
.ewg-prose th, .ewg-prose thead td { background: var(--ewg-navy); color: #fff; text-align: left; padding: 12px 14px; font-weight: 600; border: 0; }
.ewg-prose thead td strong, .ewg-prose th strong { color: #fff; }
.ewg-prose td { padding: 12px 14px; border: 0; border-bottom: 1px solid var(--ewg-line); vertical-align: top; }
.ewg-prose tbody tr:nth-child(even) td { background: #F8FAFC; }
.ewg-prose tbody tr:last-child td { border-bottom: 0; }
.ewg-prose .wp-block-table figcaption { padding: 0 12px 10px; }

/* Gutenberg alignments and embeds */
.ewg-prose .alignwide, .ewg-prose .alignfull { margin-left: 0; margin-right: 0; }
.ewg-prose .aligncenter { margin-left: auto; margin-right: auto; display: block; }
.ewg-prose .alignleft { float: left; margin: 6px 24px 16px 0; }
.ewg-prose .alignright { float: right; margin: 6px 0 16px 24px; }
.ewg-prose .wp-block-embed__wrapper iframe { width: 100%; }
.ewg-prose .wp-block-button__link { background: var(--ewg-accent); color: var(--ewg-navy); text-decoration: none; border-radius: 10px; font-weight: 700; }

/* Easy Table of Contents: the sidebar TOC replaces it on wide screens */
.ewg-prose .ez-toc-container, .ewg-prose #ez-toc-container {
	background: var(--ewg-surface) !important; border: 1px solid var(--ewg-line) !important;
	border-radius: 12px !important; box-shadow: none !important; padding: 16px 20px !important; width: 100% !important;
	font-size: 15px;
}
.ewg-has-toc .ewg-prose #ez-toc-container { display: none !important; }

/* Related Read (ported) */
.ewg-related-read {
	display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: baseline;
	margin: 32px 0; padding: 14px 18px;
	border: 1px solid var(--ewg-line); border-left: 0; border-radius: 12px;
	background: var(--ewg-surface); font-size: 16px; line-height: 1.5;
}
.ewg-related-read__label { font-family: var(--ewg-font-mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--ewg-muted); }
.ewg-prose .ewg-related-read a { font-weight: 600; text-decoration: none; }

/* Quick answer box: give a paragraph or group the class "quick-answer" in the editor */
.ewg-prose .quick-answer {
	border: 1px solid var(--ewg-line-2); border-radius: 14px; background: var(--ewg-surface);
	padding: 22px 26px; margin: 0 0 32px; color: var(--ewg-ink);
}

/* In-content CTA */
.ewg-inline-cta {
	display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px;
	border-radius: var(--ewg-radius); background: var(--ewg-navy); padding: 24px 26px; margin: 36px 0;
	font-size: 16px; line-height: 1.5;
}
.ewg-inline-cta__copy { display: flex; flex-direction: column; gap: 6px; max-width: 460px; }
.ewg-inline-cta .ewg-cat { color: var(--ewg-accent); }
.ewg-inline-cta__title { margin: 0 !important; font: 700 19px/1.4 var(--ewg-font-head); color: #fff; }
.ewg-prose .ewg-inline-cta a.ewg-btn { text-decoration: none; color: var(--ewg-navy); }

/* Tags */
.ewg-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 32px 0 0; }

/* Author box */
.ewg-author { display: flex; gap: 20px; align-items: flex-start; border: 1px solid var(--ewg-line); border-radius: var(--ewg-radius); padding: 26px; margin-top: 40px; }
.ewg-author img { width: 64px; height: 64px; border-radius: 50%; flex: none; }
.ewg-author__body { display: flex; flex-direction: column; gap: 8px; }
.ewg-author .ewg-cat { color: var(--ewg-muted); }
.ewg-author__name { margin: 0; font: 700 19px var(--ewg-font-head); color: var(--ewg-ink); }
.ewg-author__bio { margin: 0; font-size: 15px; line-height: 1.6; }
.ewg-author a.ewg-arrow { font-weight: 600; font-size: 15px; }

/* Sidebar */
.ewg-sidebar { position: sticky; top: 24px; display: flex; flex-direction: column; gap: 20px; }
.ewg-side-cta { border-radius: var(--ewg-radius); background: var(--ewg-navy); padding: 24px; display: flex; flex-direction: column; gap: 14px; color: #D6DEEA; }
.ewg-side-cta .ewg-cat { color: var(--ewg-accent); }
.ewg-side-cta__title { margin: 0; font: 800 21px/1.3 var(--ewg-font-head); color: #fff; }
.ewg-ticks { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; font-size: 14px; line-height: 1.45; }
.ewg-ticks li { display: flex; gap: 10px; }
.ewg-ticks svg { flex: none; margin-top: 1px; }
.ewg-side-card { border: 1px solid var(--ewg-line); border-radius: var(--ewg-radius); padding: 22px; }
.ewg-side-card .ewg-cat { color: var(--ewg-muted); display: block; margin: 0 0 14px; }
.ewg-side-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; font-size: 15px; line-height: 1.45; }
.ewg-side-list a { color: var(--ewg-ink); font-weight: 600; }
.ewg-side-list a:hover { color: var(--ewg-link); }
.ewg-sidebar .widget { border: 1px solid var(--ewg-line); border-radius: var(--ewg-radius); padding: 22px; font-size: 15px; }
.ewg-sidebar .widget-title { margin: 0 0 12px; font-size: 16px; }

/* Related posts + end CTA */
.ewg-related { background: var(--ewg-surface); border-top: 1px solid var(--ewg-line); }
.ewg-related .ewg-wrap { padding-top: 52px; padding-bottom: 60px; }
.ewg-related h2 { margin: 0 0 24px; font-size: 26px; font-weight: 800; }
.ewg-related .ewg-card h3 { font-size: 17px; line-height: 1.4; }

.ewg-endcta { background: var(--ewg-accent-soft); border-top: 1px solid var(--ewg-accent-line); }
.ewg-endcta .ewg-wrap { padding-top: 44px; padding-bottom: 44px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; }
.ewg-endcta__copy { max-width: 640px; }
.ewg-endcta .ewg-endcta__title { margin: 0; font: 800 26px/1.3 var(--ewg-font-head); color: var(--ewg-ink); }
.ewg-endcta p { margin: 8px 0 0; font-size: 17px; color: var(--ewg-text-2); }

/* Comments */
.ewg-comments { margin-top: 48px; padding-top: 32px; border-top: 1px solid var(--ewg-line); }
.ewg-comments h2 { font-size: 24px; margin: 0 0 20px; }
.ewg-comments ol { list-style: none; margin: 0; padding: 0; }
.ewg-comments ol ol { padding-left: 28px; }
.ewg-comments .comment-body { padding: 18px 0; border-bottom: 1px solid var(--ewg-line); font-size: 16px; }
.ewg-comments .comment-meta { font-size: 14px; color: var(--ewg-muted); }
.ewg-comments .comment-meta img { border-radius: 50%; vertical-align: middle; margin-right: 8px; }
.ewg-comments .comment-author .fn { color: var(--ewg-ink); font-style: normal; font-weight: 600; }
.ewg-comments label { display: block; font-size: 14px; font-weight: 600; color: var(--ewg-ink); margin-bottom: 6px; }
.ewg-comments input[type="text"], .ewg-comments input[type="email"], .ewg-comments input[type="url"], .ewg-comments textarea {
	width: 100%; border: 1px solid var(--ewg-line-2); border-radius: 10px; padding: 12px 14px;
	font: 16px var(--ewg-font-body); color: var(--ewg-ink); background: #fff;
}
.ewg-comments textarea { min-height: 140px; }
.ewg-comments .form-submit input {
	min-height: 44px; padding: 0 22px; border: 0; border-radius: 10px; cursor: pointer;
	background: var(--ewg-navy); color: #fff; font: 700 15px var(--ewg-font-head);
}
.ewg-comments p { margin: 0 0 16px; }

/* Pages */
.ewg-page { padding-top: 48px; padding-bottom: 64px; }
.ewg-page__inner { max-width: 820px; margin: 0 auto; }
.ewg-page__inner h1 { font-size: 40px; line-height: 1.15; margin: 0 0 24px; font-weight: 800; letter-spacing: -.02em; }

/* 404 */
.ewg-404 { text-align: center; padding: 96px 0; }
.ewg-404 h1 { font-size: 40px; margin: 12px 0; }

/* ---------- Footer ---------- */
.ewg-footer { background: var(--ewg-navy); color: #B8C5D8; }
.ewg-footer__top { padding-top: 48px; padding-bottom: 32px; display: flex; flex-wrap: wrap; gap: 40px; justify-content: space-between; }
.ewg-footer__about { max-width: 320px; display: flex; flex-direction: column; gap: 12px; }
.ewg-footer__about p { margin: 0; font-size: 14px; line-height: 1.6; }
.ewg-footer__col { display: flex; flex-direction: column; gap: 10px; }
.ewg-footer__col strong { color: #fff; font-size: 14px; }
.ewg-footer__col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.ewg-footer a { color: #B8C5D8; font-size: 14px; }
.ewg-footer a:hover { color: #fff; }
.ewg-footer__bottom { border-top: 1px solid var(--ewg-navy-line); padding-top: 18px; padding-bottom: 24px; font-size: 13px; color: #8FA3BF; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }

/* ---------- Elementor kit compatibility ----------
 * The site's Elementor kit sets `.elementor-kit-N a { color: accent }`, which beats
 * single-class theme selectors. These body.ewg-theme rules restore the theme colours.
 * Links inside Elementor-built widgets keep their own (more specific) colours.
 */
body.ewg-theme { background: #FFFFFF; }
body.ewg-theme a { color: var(--ewg-link); }
body.ewg-theme a:hover { color: var(--ewg-link-hover); }
body.ewg-theme .ewg-brand, body.ewg-theme .ewg-brand:hover { color: #fff; }
body.ewg-theme .ewg-brand__tag, body.ewg-theme .ewg-brand__tag:hover { color: #D6DEEA; }
body.ewg-theme .ewg-nav a { color: #D6DEEA; }
body.ewg-theme .ewg-nav a:hover, body.ewg-theme .ewg-nav .current-menu-item > a, body.ewg-theme .ewg-nav a.is-current { color: #fff; }
body.ewg-theme .ewg-btn--accent, body.ewg-theme .ewg-btn--accent:hover { color: var(--ewg-navy); }
body.ewg-theme .ewg-btn--navy, body.ewg-theme .ewg-btn--navy:hover,
body.ewg-theme .ewg-btn--line, body.ewg-theme .ewg-btn--line:hover { color: #fff; }
body.ewg-theme .ewg-btn--ghost, body.ewg-theme .ewg-btn--ghost:hover { color: var(--ewg-ink); }
body.ewg-theme .ewg-chip { color: var(--ewg-text); }
body.ewg-theme .ewg-chip:hover { color: var(--ewg-ink); }
body.ewg-theme .ewg-chip.is-active, body.ewg-theme .ewg-chip.is-active:hover { color: #fff; }
body.ewg-theme .ewg-cat a, body.ewg-theme .ewg-cat a:hover { color: inherit; }
body.ewg-theme .ewg-hero__body h2 a, body.ewg-theme .ewg-mini h3 a, body.ewg-theme .ewg-card h3 a,
body.ewg-theme .ewg-rel h3 a, body.ewg-theme .ewg-side-list a, body.ewg-theme .ewg-post-meta__item a,
body.ewg-theme .ewg-note a { color: var(--ewg-ink); }
body.ewg-theme .ewg-hero__body h2 a:hover, body.ewg-theme .ewg-mini h3 a:hover, body.ewg-theme .ewg-card h3 a:hover,
body.ewg-theme .ewg-side-list a:hover, body.ewg-theme .ewg-post-meta__item a:hover { color: var(--ewg-link); }
body.ewg-theme .ewg-pagination .page-numbers { color: var(--ewg-ink); }
body.ewg-theme .ewg-pagination .page-numbers.current { color: #fff; }
body.ewg-theme .ewg-toc a { color: var(--ewg-text-2); }
body.ewg-theme .ewg-toc a:hover, body.ewg-theme .ewg-toc a.is-active { color: var(--ewg-ink); }
body.ewg-theme .ewg-prose a { color: var(--ewg-link); }
body.ewg-theme .ewg-prose a:hover { color: var(--ewg-link-hover); }
body.ewg-theme .ewg-prose .ewg-inline-cta a.ewg-btn, body.ewg-theme .ewg-prose .wp-block-button__link { color: var(--ewg-navy); }
body.ewg-theme .ewg-footer a { color: #B8C5D8; }
body.ewg-theme .ewg-footer a:hover { color: #fff; }
body.ewg-theme .skip-link:focus { color: var(--ewg-ink); }
body.ewg-theme .popup-phone-numbers a { color: #fff; }
body.ewg-theme .popup-alt a { color: #1D4ED8; }
body.ewg-theme .popup-alt a.popup-wa { color: #128c4b; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
	.ewg-layout { grid-template-columns: minmax(0, 1fr) 280px; }
	.ewg-toc-col { display: none; }
	.ewg-has-toc .ewg-prose #ez-toc-container { display: block !important; }
}
@media (max-width: 960px) {
	.ewg-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--ewg-navy); border-top: 1px solid var(--ewg-navy-line); padding: 8px 24px 16px; }
	.ewg-nav.is-open { display: block; }
	.ewg-nav ul { flex-direction: column; align-items: stretch; gap: 0; }
	.ewg-nav a { display: flex; padding: 4px 0; border-bottom: 1px solid var(--ewg-navy-line); }
	.ewg-menu-toggle { display: inline-flex; }
	.ewg-hero { grid-template-columns: minmax(0, 1fr); }
	.ewg-grid, .ewg-products { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.ewg-layout, .ewg-layout--no-toc { grid-template-columns: minmax(0, 1fr); }
	.ewg-sidebar { position: static; }
	.ewg-blogbar__inner { flex-direction: column; align-items: stretch; }
	.ewg-search { width: 100%; }
}
@media (max-width: 640px) {
	.ewg-wrap { padding-left: 16px; padding-right: 16px; }
	.ewg-header__actions .ewg-btn { display: none; }
	.ewg-brand__tag { display: none; }
	.ewg-intro { padding-top: 32px; padding-bottom: 40px; }
	.ewg-intro__head h1 { font-size: 32px; }
	.ewg-hero__body h2 { font-size: 25px; }
	.ewg-mini .ewg-thumb { width: 100px; }
	.ewg-grid, .ewg-products { grid-template-columns: minmax(0, 1fr); }
	.ewg-section { padding-top: 40px; padding-bottom: 48px; }
	.ewg-post-head h1 { font-size: 31px; }
	.ewg-archive-head h1, .ewg-page__inner h1 { font-size: 30px; }
	.ewg-prose { font-size: 17px; }
	.ewg-prose h2 { font-size: 25px; }
	.ewg-prose h3 { font-size: 20px; }
	.ewg-prose .alignleft, .ewg-prose .alignright { float: none; margin: 16px 0; }
	.ewg-author { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
	* { transition: none !important; animation: none !important; }
	html { scroll-behavior: auto; }
}
@media print {
	.ewg-header, .ewg-blogbar, .ewg-sidebar, .ewg-toc-col, .ewg-related, .ewg-endcta, .ewg-footer, .ewg-progress, .ewg-inline-cta, .popup-overlay { display: none !important; }
	.ewg-layout { display: block; }
}
