/* Smart Safe Gear — Custom Overrides */

/* Safety orange accent for interactive elements */
.wp-block-button__link:focus-visible {
	outline: 2px solid var(--wp--preset--color--safety-orange);
	outline-offset: 2px;
}

/* Ensure buttons have consistent styling across patterns */
.wp-block-button.is-style-outline .wp-block-button__link {
	border-color: var(--wp--preset--color--safety-orange);
	color: var(--wp--preset--color--safety-orange);
}

.wp-block-button.is-style-outline .wp-block-button__link:hover {
	background-color: var(--wp--preset--color--safety-orange);
	color: #ffffff;
}

/* Navigation link hover accent */
.wp-block-navigation a:hover {
	color: var(--wp--preset--color--safety-orange);
}

/* Responsive comparison tables */
@media (max-width: 600px) {
	.wp-block-table.is-style-stripes table {
		display: block;
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
	}
}

/* Details/accordion styling for How We Evaluate */
.wp-block-details summary {
	cursor: pointer;
	padding: 8px 0;
	font-size: 15px;
}

.wp-block-details summary:hover {
	color: var(--wp--preset--color--safety-orange);
}

/* Standardized inline CTA buttons (used in post content) */
.ssg-cta-btn {
	display: inline-block;
	background: var(--wp--preset--color--safety-orange);
	color: #fff !important;
	padding: 14px 32px;
	border-radius: 6px;
	font-size: 1rem;
	font-weight: 700;
	text-decoration: none;
	transition: background 0.2s, transform 0.2s;
}

.ssg-cta-btn:hover {
	background: #E55A00;
	transform: translateY(-1px);
	color: #fff !important;
}

.ssg-cta-btn:focus-visible {
	outline: 2px solid var(--wp--preset--color--safety-orange);
	outline-offset: 2px;
}

/* Reserve space for images to prevent CLS */
.wp-block-image img,
.wp-block-post-featured-image img {
	height: auto;
	max-width: 100%;
}

/* Product image — auto-injected and shortcode */
.ssg-product-image {
	text-align: center;
	margin: 24px auto;
}

.ssg-product-image img {
	border-radius: 12px;
	max-width: 400px;
	width: 100%;
	height: auto;
	aspect-ratio: 1 / 1;
	object-fit: contain;
	background: #f8fafc;
}

.ssg-product-image a {
	display: block;
	cursor: pointer;
	transition: opacity 0.2s;
}

.ssg-product-image a:hover {
	opacity: 0.9;
}

.ssg-product-image figcaption {
	font-size: 0.85rem;
	color: #6b7280;
	margin-top: 8px;
}

/* CLS prevention for lazy-loaded product images */
.ssg-product-image img[loading="lazy"] {
	contain-intrinsic-size: 400px 400px;
}

/* Hide Hostinger AI hero-img card entirely on single posts —
   it generates a checkmark placeholder that overrides real images.
   We inject our own .ssg-product-hero element instead. */
.single-post .ssg-v2-hero-img {
	display: none !important;
}

/* Style the real product hero image on review pages */
.ssg-product-hero {
	max-width: 480px;
	margin: 1.5rem auto;
	text-align: center;
}

.ssg-product-hero img {
	border-radius: 16px;
	box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
	background: #fff;
	width: 100%;
	height: auto;
	object-fit: contain;
}

.ssg-product-hero a {
	display: block;
	transition: opacity 0.2s;
}

.ssg-product-hero a:hover {
	opacity: 0.9;
}

/* Woo product search suggestions: show product image, not checklist markers */
.wc-block-product-search .wc-block-product-search__results,
.wc-block-product-search .wc-block-product-search__results li {
	list-style: none !important;
	margin: 0;
	padding-left: 0;
}

.wc-block-product-search .wc-block-product-search__results li::before,
.wc-block-product-search .wc-block-product-search__results li:before {
	content: none !important;
	display: none !important;
}

.wc-block-product-search .wc-block-product-search__product {
	display: flex;
	align-items: center;
	gap: 10px;
}

.wc-block-product-search .wc-block-product-search__product-image {
	display: block !important;
	width: 40px;
	height: 40px;
	object-fit: cover;
	flex: 0 0 40px;
}

.wc-block-product-search .wc-block-product-search__results img {
	display: block !important;
}

/* Quick Verdict — ensure text contrast is readable on dark bg */
.ssg-v2-verdict li,
.ssg-v2-verdict li span {
	color: #f1f5f9 !important;
}

.ssg-v2-verdict h3 {
	color: #34d399 !important;
}

/* ========================================================================
   Homepage (page ID 8) — Moved from inline <style> to prevent wpautop breakage
   ======================================================================== */

/* Amazon inline-link overrides (homepage context) */
.ssg-home p a[href*="amazon.com"],
.ssg-home p a[href*="amzn.to"] {
	display: inline !important;
	background: none !important;
	color: #10b981 !important;
	padding: 0 !important;
	border-radius: 0 !important;
	font-weight: 600 !important;
	font-size: inherit !important;
	text-decoration: underline !important;
	box-shadow: none !important;
	text-align: inherit !important;
}

/* Homepage wrapper */
.ssg-home {
	background: transparent !important;
	font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
	color: #1a1a2e !important;
	line-height: 1.7;
	max-width: 100%;
	margin: 0 auto;
}
.ssg-home * { box-sizing: border-box; }
.ssg-home p {
	color: #444 !important;
	font-size: 1.05rem;
	margin-bottom: 16px;
}

/* HERO */
.ssg-hero {
	background: linear-gradient(135deg, #0a1628 0%, #1a2744 50%, #0d1f3c 100%) !important;
	padding: 80px 40px;
	text-align: center;
	position: relative;
	overflow: hidden;
	margin-left: calc(-50vw + 50%) !important;
	margin-right: calc(-50vw + 50%) !important;
	padding-left: calc(50vw - 50% + 40px) !important;
	padding-right: calc(50vw - 50% + 40px) !important;
}
.ssg-hero::before {
	content: '';
	position: absolute;
	top: 0; left: 0; right: 0; bottom: 0;
	background: radial-gradient(circle at 30% 50%, rgba(59,130,246,0.15) 0%, transparent 60%),
	            radial-gradient(circle at 70% 30%, rgba(16,185,129,0.1) 0%, transparent 50%);
	pointer-events: none;
}
.ssg-hero-inner { max-width: 900px; margin: 0 auto; position: relative; z-index: 1; }
.ssg-hero-badge {
	display: inline-block;
	background: rgba(59,130,246,0.15);
	border: 1px solid rgba(59,130,246,0.3);
	color: #93c5fd !important;
	font-size: 0.8rem;
	font-weight: 600;
	letter-spacing: 2px;
	text-transform: uppercase;
	padding: 6px 18px;
	border-radius: 50px;
	margin-bottom: 24px;
}
.ssg-hero h1 {
	color: #fff !important;
	font-size: 3.2rem;
	font-weight: 800;
	line-height: 1.15;
	margin: 0 0 20px;
	letter-spacing: -0.5px;
}
.ssg-hero h1 span {
	background: linear-gradient(135deg, #3b82f6, #10b981) !important;
	-webkit-background-clip: text !important;
	-webkit-text-fill-color: transparent !important;
	background-clip: text !important;
	color: transparent !important;
}
.ssg-hero-sub {
	color: #94a3b8 !important;
	font-size: 1.2rem;
	margin: 0 0 36px;
	max-width: 650px;
	margin-left: auto;
	margin-right: auto;
	line-height: 1.6;
}
.ssg-hero-ctas { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.ssg-hero-btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 16px 32px;
	border-radius: 12px;
	font-size: 1rem;
	font-weight: 700;
	text-decoration: none;
	transition: all 0.3s ease;
}
.ssg-hero-btn-primary {
	background: linear-gradient(135deg, #3b82f6, #2563eb);
	color: #fff !important;
	box-shadow: 0 4px 20px rgba(59,130,246,0.4);
}
.ssg-hero-btn-primary:hover {
	transform: translateY(-2px);
	box-shadow: 0 8px 30px rgba(59,130,246,0.5);
}
.ssg-hero-btn-secondary {
	background: rgba(255,255,255,0.15);
	color: #e2e8f0 !important;
	border: 1px solid rgba(255,255,255,0.3);
}
.ssg-hero-btn-secondary:hover {
	background: rgba(255,255,255,0.14);
	color: #fff !important;
}
.ssg-hero-stats {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 24px;
	margin-top: 50px;
	padding-top: 40px;
	border-top: 1px solid rgba(255,255,255,0.08);
}
.ssg-hero-stat { text-align: center; }
.ssg-hero-stat-num { color: #fff !important; font-size: 2rem; font-weight: 800; display: block; }
.ssg-hero-stat-label {
	color: #94a3b8 !important;
	font-size: 0.85rem;
	text-transform: uppercase;
	letter-spacing: 1px;
	margin-top: 4px;
}

/* TRUST BAR */
.ssg-trust {
	background: #f8fafc !important;
	padding: 40px 20px;
	border-bottom: 1px solid #e2e8f0;
}
.ssg-trust-inner {
	max-width: 900px;
	margin: 0 auto;
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 40px;
	flex-wrap: wrap;
}
.ssg-trust-item {
	display: flex;
	align-items: center;
	gap: 10px;
	color: #94a3b8 !important;
	font-size: 0.9rem;
	font-weight: 500;
}
.ssg-trust-icon {
	width: 40px;
	height: 40px;
	background: #e0f2fe;
	border-radius: 10px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 1.2rem;
}

/* SECTION COMMON */
.ssg-section { padding: 70px 24px; max-width: 960px; margin: 0 auto; }
.ssg-section-label {
	display: inline-block;
	background: #eff6ff;
	color: #3b82f6 !important;
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 2px;
	text-transform: uppercase;
	padding: 5px 14px;
	border-radius: 50px;
	margin-bottom: 12px;
}
.ssg-section-title {
	font-size: 2.2rem;
	font-weight: 800;
	color: #0f172a !important;
	margin: 0 0 12px;
	letter-spacing: -0.3px;
}
.ssg-section-desc {
	color: #94a3b8 !important;
	font-size: 1.05rem;
	max-width: 600px;
	margin: 0 0 40px;
}

/* PRODUCT SHOWCASE */
.ssg-products-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.ssg-product-card {
	background: #fff;
	border: 1px solid #e2e8f0;
	border-radius: 16px;
	overflow: hidden;
	transition: all 0.3s ease;
	position: relative;
}
.ssg-product-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 20px 40px rgba(0,0,0,0.08);
	border-color: #3b82f6 !important;
}
.ssg-product-badge {
	position: absolute;
	top: 12px; left: 12px;
	background: #3b82f6;
	color: #fff !important;
	font-size: 0.7rem;
	font-weight: 700;
	padding: 4px 10px;
	border-radius: 6px;
	z-index: 2;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}
.ssg-product-img-wrap {
	background: linear-gradient(135deg, #f8fafc, #f1f5f9);
	padding: 24px;
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 180px;
}
.ssg-product-img-wrap img {
	max-width: 140px;
	max-height: 140px;
	object-fit: contain;
	transition: transform 0.3s ease;
}
.ssg-product-card:hover .ssg-product-img-wrap img { transform: scale(1.05); }
.ssg-product-info { padding: 20px; }
.ssg-product-brand {
	font-size: 0.7rem;
	color: #3b82f6 !important;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 1px;
	margin: 0 0 6px;
}
.ssg-product-name {
	font-size: 1.05rem;
	font-weight: 700;
	color: #0f172a !important;
	margin: 0 0 8px;
	line-height: 1.3;
}
.ssg-product-desc {
	font-size: 0.85rem;
	color: #94a3b8 !important;
	margin: 0 0 14px;
	line-height: 1.5;
}
.ssg-product-footer { display: flex; justify-content: space-between; align-items: center; }
.ssg-product-price { font-size: 1.1rem; font-weight: 800; color: #0f172a !important; }
.ssg-product-link {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	color: #3b82f6 !important;
	font-size: 0.85rem;
	font-weight: 600;
	text-decoration: none;
}
.ssg-product-link:hover { color: #2563eb !important; }

/* WHY TRUST US */
.ssg-why { background: #f8fafc; padding: 70px 24px; }
.ssg-why-inner { max-width: 960px; margin: 0 auto; }
.ssg-why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.ssg-why-card {
	background: #fff;
	border: 1px solid #e2e8f0;
	border-radius: 16px;
	padding: 28px;
	transition: all 0.3s ease;
}
.ssg-why-card:hover {
	border-color: #3b82f6 !important;
	box-shadow: 0 8px 24px rgba(59,130,246,0.08);
}
.ssg-why-icon {
	width: 48px;
	height: 48px;
	background: linear-gradient(135deg, #eff6ff, #dbeafe);
	border-radius: 12px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 1.4rem;
	margin-bottom: 16px;
}
.ssg-why-card h3 { font-size: 1.1rem; font-weight: 700; color: #0f172a !important; margin: 0 0 8px; }
.ssg-why-card p { font-size: 0.9rem; color: #94a3b8 !important; margin: 0; line-height: 1.6; }

/* BLOG PREVIEW */
.ssg-blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.ssg-blog-card {
	background: #fff;
	border: 1px solid #e2e8f0;
	border-radius: 16px;
	overflow: hidden;
	transition: all 0.3s ease;
	text-decoration: none;
}
.ssg-blog-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 16px 32px rgba(0,0,0,0.06);
	border-color: #3b82f6 !important;
}
.ssg-blog-img {
	width: 100%;
	height: 160px;
	object-fit: cover;
	background: linear-gradient(135deg, #1e3a5f, #0f172a);
}
.ssg-blog-body { padding: 20px; }
.ssg-blog-tag {
	font-size: 0.7rem;
	color: #3b82f6 !important;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 1px;
	margin: 0 0 8px;
}
.ssg-blog-card h3 { font-size: 1rem; font-weight: 700; color: #0f172a !important; margin: 0 0 8px; line-height: 1.4; }
.ssg-blog-card p { font-size: 0.85rem; color: #94a3b8 !important; margin: 0 0 12px; line-height: 1.5; }
.ssg-blog-read { color: #3b82f6 !important; font-size: 0.85rem; font-weight: 600; text-decoration: none; }

/* FINAL CTA */
.ssg-final-cta { background: linear-gradient(135deg, #0a1628, #1e3a5f); padding: 70px 24px; text-align: center; }
.ssg-final-cta-inner { max-width: 700px; margin: 0 auto; }
.ssg-final-cta h2 { color: #fff !important; font-size: 2.2rem; font-weight: 800; margin: 0 0 16px; }
.ssg-final-cta p { color: #cbd5e1 !important; font-size: 1.1rem; margin: 0 0 32px; line-height: 1.6; }
.ssg-final-cta-btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	background: linear-gradient(135deg, #3b82f6, #2563eb);
	color: #fff !important;
	padding: 16px 36px;
	border-radius: 12px;
	font-size: 1.05rem;
	font-weight: 700;
	text-decoration: none;
	transition: all 0.3s ease;
	box-shadow: 0 4px 20px rgba(59,130,246,0.4);
}
.ssg-final-cta-btn:hover {
	transform: translateY(-2px);
	box-shadow: 0 8px 30px rgba(59,130,246,0.5);
}
.ssg-final-cta h3 { color: #e2e8f0 !important; }
.ssg-final-cta .ssg-final-cta-inner p { color: #94a3b8 !important; }
.ssg-final-cta a { color: #e2e8f0 !important; text-decoration: none; }
.ssg-final-cta a:hover { color: #fff !important; }

/* Homepage search widget */
#ssg-search-wrap { max-width: 600px; margin: 25px auto 10px; position: relative; z-index: 100; }
#ssg-search {
	width: 100%;
	padding: 16px 50px 16px 20px;
	font-size: 1rem;
	border: 2px solid #334155;
	border-radius: 14px;
	background: #1e293b;
	color: #f8fafc !important;
	outline: none;
	box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}
#ssg-search:focus { border-color: #64748b !important; }
#ssg-results {
	display: none;
	position: absolute;
	top: 100%; left: 0; right: 0;
	background: #1e293b;
	border: 1px solid #334155;
	border-radius: 12px;
	margin-top: 6px;
	max-height: 400px;
	overflow-y: auto;
	box-shadow: 0 8px 30px rgba(0,0,0,0.4);
	z-index: 101;
}
.ssg-ri {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 12px 16px;
	text-decoration: none !important;
	border-bottom: 1px solid rgba(255,255,255,0.06);
	transition: all 0.2s ease;
	cursor: pointer;
}
.ssg-ri:hover { background: rgba(255,255,255,0.07); }
.ssg-ri * { text-decoration: none !important; }
.ssg-ri-imgwrap {
	flex-shrink: 0;
	display: block;
	line-height: 0;
	width: 56px; height: 56px;
	border-radius: 10px;
	overflow: hidden;
	background: #ffffff;
	box-shadow: 0 1px 4px rgba(0,0,0,0.2);
}
.ssg-ri-img { width: 56px; height: 56px; object-fit: contain; display: block; padding: 4px; }
.ssg-ri-info { flex: 1; min-width: 0; }
.ssg-ri-name {
	display: block;
	color: #f1f5f9 !important;
	font-weight: 600;
	font-size: 0.95rem;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	line-height: 1.3;
}
.ssg-ri-name:hover { color: #fff !important; }
.ssg-ri-meta { display: flex; align-items: center; gap: 10px; margin-top: 4px; }
.ssg-ri-cat {
	background: rgba(59,130,246,0.15);
	color: #60a5fa !important;
	padding: 2px 9px;
	border-radius: 6px;
	font-size: 0.7rem;
	font-weight: 600;
	letter-spacing: 0.3px;
}
.ssg-ri-score {
	color: #fbbf24 !important;
	font-weight: 700;
	font-size: 0.8rem;
	display: flex;
	align-items: center;
	gap: 3px;
}
.ssg-ri-arrow { color: #475569; transition: color 0.2s; display: flex; align-items: center; }
.ssg-ri:hover .ssg-ri-arrow { color: #10b981; }

/* Homepage responsive */
@media (max-width: 768px) {
	.ssg-hero { padding: 50px 20px; }
	.ssg-hero h1 { font-size: 2rem; }
	.ssg-hero-stats { grid-template-columns: repeat(3, 1fr); gap: 12px; }
	.ssg-hero-stat-num { font-size: 1.4rem; }
	.ssg-products-grid,
	.ssg-why-grid,
	.ssg-blog-grid { grid-template-columns: 1fr; }
	.ssg-trust-inner { flex-direction: column; gap: 20px; }
	.ssg-section-title { font-size: 1.6rem; }
}

/* Comparison tool — override global dark text on hero subtitle */
body .wp-block-post-content .cmp-hero p,
body .wp-block-post-content #compare-tool-container .cmp-hero p {
	color: #f1f5f9 !important;
}

/* ========================================================================
   Phase 3: UX Quick Wins
   ======================================================================== */

/* 3B. Card hover effects for blog/guide cards */
.wp-block-post {
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.wp-block-post:hover {
	transform: translateY(-2px);
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

/* 3C. Article hero image — subtle shadow instead of heavy colored borders */
.ssg-product-hero img {
	border: none;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.10);
}

/* Smooth scroll for TOC anchor links */
html { scroll-behavior: smooth; }

/* ========================================================================
   Phase 4A: Breadcrumbs
   ======================================================================== */
.ssg-breadcrumbs {
	font-size: 0.85rem;
	color: #94a3b8;
	margin-bottom: 16px;
	padding: 0;
}
.ssg-breadcrumbs a {
	color: #3b82f6;
	text-decoration: none;
}
.ssg-breadcrumbs a:hover {
	text-decoration: underline;
}
.ssg-bc-sep {
	margin: 0 6px;
	color: #cbd5e1;
}
.ssg-bc-current {
	color: #64748b;
}

/* ========================================================================
   Phase 4B: Table of Contents
   ======================================================================== */
.ssg-toc {
	background: #f8fafc;
	border: 1px solid #e2e8f0;
	border-radius: 12px;
	padding: 20px 24px;
	margin: 24px 0;
}
.ssg-toc summary {
	font-size: 1rem;
	font-weight: 700;
	color: #0f172a;
	cursor: pointer;
	list-style: none;
	display: flex;
	align-items: center;
	gap: 8px;
}
.ssg-toc summary::-webkit-details-marker { display: none; }
.ssg-toc summary::before {
	content: '\25B8';
	font-size: 0.8rem;
	transition: transform 0.2s;
}
.ssg-toc[open] summary::before {
	transform: rotate(90deg);
}
.ssg-toc ol {
	margin: 12px 0 0;
	padding: 0 0 0 24px;
	counter-reset: toc-counter;
}
.ssg-toc ol li {
	margin-bottom: 6px;
	line-height: 1.5;
	counter-increment: toc-counter;
}
.ssg-toc ol li a {
	color: #3b82f6;
	text-decoration: none;
	font-size: 0.9rem;
}
.ssg-toc ol li a:hover {
	text-decoration: underline;
}

/* ========================================================================
   Phase 4C: Related Posts Card Grid
   ======================================================================== */
.ssg-related-posts {
	margin: 40px 0;
	padding: 0;
}
.ssg-related-title {
	font-size: 1.25rem;
	font-weight: 700;
	color: #0f172a;
	margin: 0 0 20px;
}
.ssg-related-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 16px;
}
.ssg-related-card {
	display: flex;
	flex-direction: column;
	background: #fff;
	border: 1px solid #e2e8f0;
	border-radius: 12px;
	overflow: hidden;
	text-decoration: none;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.ssg-related-card:hover {
	transform: translateY(-2px);
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
	border-color: #3b82f6;
}
.ssg-related-img-wrap {
	height: 140px;
	overflow: hidden;
	background: linear-gradient(135deg, #f8fafc, #f1f5f9);
	display: flex;
	align-items: center;
	justify-content: center;
}
.ssg-related-img-placeholder {
	background: linear-gradient(135deg, #1e3a5f, #0f172a);
}
.ssg-related-img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.ssg-related-body {
	padding: 14px 16px;
}
.ssg-related-cat {
	display: inline-block;
	font-size: 0.7rem;
	color: #3b82f6;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	margin-bottom: 6px;
}
.ssg-related-name {
	display: block;
	font-size: 0.9rem;
	font-weight: 600;
	color: #0f172a;
	line-height: 1.4;
}
.ssg-related-card:hover .ssg-related-name {
	color: #3b82f6;
}

@media (max-width: 600px) {
	.ssg-related-grid { grid-template-columns: 1fr; }

	/* Breadcrumbs: wrap + smaller text on mobile */
	.ssg-breadcrumbs {
		font-size: 0.75rem;
		flex-wrap: wrap;
		gap: 2px 0;
	}

	/* TOC: tighter padding on mobile */
	.ssg-toc {
		padding: 16px 16px;
		margin: 16px 0;
	}
	.ssg-toc ol {
		padding-left: 16px;
	}
	.ssg-toc ol li a {
		font-size: 0.85rem;
	}

	/* Related posts: smaller image height on mobile */
	.ssg-related-img-wrap {
		height: 120px;
	}
	.ssg-related-body {
		padding: 12px 14px;
	}

	/* Card hover: disable translateY on touch to prevent sticky hover */
	.ssg-related-card:hover,
	.wp-block-post:hover {
		transform: none;
	}
}

/* ========================================================================
   Phase 2B / 6A: Trivia page — nav fix + style overrides
   ======================================================================== */

/* Fix nav disappearing on trivia page */
body.page-template-default .wp-block-navigation,
body.page .wp-block-navigation {
	display: flex !important;
}

/* Override retro arcade styles to match site's modern dark theme */
body.page-slug-trivia .quiz-container,
body.page-slug-trivia #security-quiz {
	font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif !important;
}
body.page-slug-trivia .quiz-container {
	background: #0f172a !important;
	border: 1px solid #1e293b !important;
	border-radius: 16px !important;
}
body.page-slug-trivia .quiz-container h2,
body.page-slug-trivia .quiz-container h3 {
	font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif !important;
}

/* ========================================================================
   Phase 5C: Blog page empty cards safety
   ======================================================================== */
.blog-card:empty,
.wp-block-post:empty { display: none; }

/* Search bar: defensive hide on non-homepage pages */
.single-post #ssg-search-wrap,
.page:not(.page-id-8) #ssg-search-wrap { display: none !important; }

/* Blog page: hide empty card wrappers in inline grid layouts */
.entry-content div[style*="grid"] > p:empty,
.entry-content div[style*="grid"] > p > a:empty,
.entry-content div[style*="grid"] > div:empty {
  display: none !important;
}

/* ========================================================================
   Phase 6C: Blog card category color-coding (left border)
   ======================================================================== */
.wp-block-post,
.ssg-blog-card { border-left: 3px solid transparent; }

.category-security-cameras .wp-block-post,
.wp-block-post.category-security-cameras { border-left-color: #3b82f6; }

.category-alarm-systems .wp-block-post,
.wp-block-post.category-alarm-systems { border-left-color: #ef4444; }

.category-smart-doorbells .wp-block-post,
.wp-block-post.category-smart-doorbells { border-left-color: #8b5cf6; }

.category-buying-guides .wp-block-post,
.wp-block-post.category-buying-guides { border-left-color: #f59e0b; }

.category-smart-locks .wp-block-post,
.wp-block-post.category-smart-locks { border-left-color: #10b981; }

.category-outdoor-safety .wp-block-post,
.wp-block-post.category-outdoor-safety { border-left-color: #06b6d4; }

.category-emergency-preparedness .wp-block-post,
.wp-block-post.category-emergency-preparedness { border-left-color: #f97316; }

.category-child-safety .wp-block-post,
.wp-block-post.category-child-safety { border-left-color: #ec4899; }

.category-safety-gear .wp-block-post,
.wp-block-post.category-safety-gear { border-left-color: #14b8a6; }

/* ========================================================================
   Mobile: Compare page & Deals page fixes
   ======================================================================== */
@media (max-width: 600px) {
	/* Compare page: make filter controls stack vertically */
	#ssg-compare-filters {
		flex-direction: column !important;
		gap: 8px !important;
	}
	#ssg-compare-filters select,
	#ssg-compare-filters input {
		width: 100% !important;
		min-width: 0 !important;
		box-sizing: border-box !important;
	}
	/* Compare cards: single column */
	#ssg-compare-grid {
		grid-template-columns: 1fr !important;
	}
}

/* ========================================================================
   Mobile: Typography, CTA sizing, & touch targets
   ======================================================================== */
@media (max-width: 768px) {
	/* Product hero image: full-width on mobile */
	.ssg-product-hero img {
		max-width: 100%;
		padding: 0;
	}

	/* Full-width CTA buttons on mobile */
	.ssg-cta-btn,
	.wp-block-button .wp-block-button__link {
		display: block;
		width: 100%;
		text-align: center;
		box-sizing: border-box;
	}

	/* Where-to-buy button layout: stack vertically on mobile */
	.ssg-where-to-buy div[style*="flex"] {
		flex-direction: column !important;
	}

	/* Trivia page: leaderboard table horizontal scroll */
	.quiz-container table,
	.leaderboard-table {
		display: block;
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
	}

	/* Trivia page: full-width controls */
	body.page-slug-trivia input[type="email"],
	body.page-slug-trivia .play-btn,
	body.page-slug-trivia button[type="submit"] {
		width: 100% !important;
		box-sizing: border-box !important;
	}
}

@media (max-width: 480px) {
	/* Minimum 48px touch targets per WCAG guidelines */
	.ssg-cta-btn,
	.wp-block-button .wp-block-button__link {
		min-height: 48px;
		padding: 14px 20px;
		font-size: 16px;
	}

	/* Trivia play button: large touch target */
	body.page-slug-trivia .play-btn,
	body.page-slug-trivia button[type="submit"] {
		min-height: 48px;
		font-size: 16px;
	}
}

/* ========================================================================
   SEO / AI retrieval enhancement layer
   ======================================================================== */
.ssg-ai-layer {
	margin: 24px 0;
	padding: 24px;
	border: 1px solid #dbe3ef;
	border-radius: 18px;
	background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
	box-shadow: 0 12px 30px rgba(15, 23, 42, 0.04);
}

.ssg-ai-summary,
.ssg-ai-entity,
.ssg-ai-hooks p,
.ssg-ai-links {
	margin: 0;
	color: #334155;
	line-height: 1.7;
}

.ssg-ai-tldr {
	margin-top: 18px;
	padding: 18px 20px;
	border-radius: 14px;
	background: #eff6ff;
}

.ssg-ai-layer h2 {
	margin: 0 0 12px;
	color: #0f172a;
	font-size: clamp(1.25rem, 2vw, 1.6rem);
	line-height: 1.25;
}

.ssg-ai-tldr ul,
.ssg-ai-links {
	margin: 12px 0 0;
	padding-left: 20px;
}

.ssg-ai-tldr li,
.ssg-ai-links li {
	margin: 8px 0;
}

.ssg-ai-table-wrap {
	overflow-x: auto;
}

.ssg-ai-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 0.96rem;
}

.ssg-ai-table th,
.ssg-ai-table td {
	padding: 12px 14px;
	border-bottom: 1px solid #dbe3ef;
	text-align: left;
	vertical-align: top;
}

.ssg-ai-table th {
	color: #0f172a;
	background: #eff6ff;
	font-weight: 700;
}

.ssg-ai-hooks h2:not(:first-child) {
	margin-top: 22px;
}

.ssg-demoted-h1 {
	font-size: clamp(1.9rem, 3.2vw, 2.35rem);
	line-height: 1.15;
}

@media (max-width: 768px) {
	.ssg-ai-layer {
		padding: 18px;
		border-radius: 16px;
	}

	.ssg-ai-summary,
	.ssg-ai-entity,
	.ssg-ai-hooks p,
	.ssg-ai-tldr li,
	.ssg-ai-table {
		font-size: 0.96rem;
		line-height: 1.6;
	}

	.ssg-ai-layer h2 {
		font-size: 1.15rem;
		margin-bottom: 10px;
	}

	.ssg-ai-tldr {
		margin-top: 14px;
		padding: 14px 16px;
	}

	.ssg-ai-table th,
	.ssg-ai-table td {
		padding: 10px 12px;
	}

	main.wp-block-group > .wp-block-group.alignfull.has-text-color.has-link-color {
		padding-top: 28px !important;
		padding-bottom: 24px !important;
	}

	body.single-post .wp-block-post-title {
		margin-top: 0 !important;
		font-size: clamp(2rem, 7.6vw, 2.7rem) !important;
		line-height: 1.08 !important;
		letter-spacing: -0.04em;
		max-width: 12ch;
		margin-left: auto;
		margin-right: auto;
		text-wrap: balance;
	}

	body.page .hostinger-ai-page-title {
		font-size: clamp(2.2rem, 9vw, 3.2rem) !important;
		line-height: 1.06 !important;
		letter-spacing: -0.045em;
		max-width: 10ch;
		margin-left: auto;
		margin-right: auto;
		text-wrap: balance;
	}

	body.single-post .wp-block-post-content,
	body.page .wp-block-post-content {
		font-size: 1rem;
		line-height: 1.7;
	}

	.ssg-logo {
		min-height: 48px;
		align-items: center;
	}

	.ssg-header-right {
		gap: 12px !important;
	}

	.ssg-trivia-header-btn {
		min-height: 48px !important;
		padding: 10px 14px !important;
		border-radius: 10px !important;
	}

	.ssg-trivia-header-btn__text {
		font-size: 8px !important;
		line-height: 1.2 !important;
	}

	.ssg-menu-toggle {
		display: inline-flex !important;
		align-items: center;
		justify-content: center;
		min-width: 48px;
		min-height: 48px;
	}

	.ssg-nav a,
	.ssg-breadcrumbs a,
	.ssg-footer-col a,
	.ssg-contact-info a,
	.ssg-footer-bottom a,
	.ssg-ai-table td a,
	.ssg-ai-links a {
		display: inline-flex;
		align-items: center;
		min-height: 44px;
	}

	.ssg-nav a,
	.ssg-footer-col a,
	.ssg-contact-info a,
	.ssg-footer-bottom a,
	.ssg-ai-links a,
	.ssg-trust-link {
		padding: 6px 0;
	}

	.ssg-breadcrumbs {
		row-gap: 6px;
	}

	.ssg-breadcrumbs a,
	.ssg-breadcrumbs .ssg-bc-current {
		padding: 2px 0;
	}

	.ssg-v2-amazon-cta,
	.wp-block-post-content a[rel~="sponsored"] {
		min-height: 48px;
		align-items: center;
		justify-content: center;
	}

	.ssg-trust-link {
		display: inline-flex;
		align-items: center;
		min-height: 44px;
	}

	.ssg-affiliate-disc {
		font-size: 0.95rem !important;
		line-height: 1.65 !important;
		padding: 12px 14px !important;
	}

	.ssg-v2-verdict,
	.ssg-v2-proscons {
		padding-left: 18px !important;
		padding-right: 18px !important;
	}
}
