/*
Theme Name: Skylight Cleaning Robot
Theme URI: https://skylightcleaningrobot.com
Author: Skylight Cleaning Robot
Author URI: https://skylightcleaningrobot.com
Description: A fast, SEO-friendly WordPress theme for skylight cleaning robot rankings and in-depth reviews. Built for affiliate review sites with star ratings, pros & cons, ranking tables, affiliate CTAs, Review schema (JSON-LD), FTC disclosure and a fully responsive layout.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 7.2
Requires PHP: 7.2
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: scr
Tags: review, affiliate, blog, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready, responsive-layout, two-columns
*/

/* ==========================================================================
   1. Base / Reset
   ========================================================================== */
:root {
	--color-primary: #0284c7;
	--color-primary-dark: #0369a1;
	--color-primary-darker: #075985;
	--color-primary-light: #e0f2fe;
	--color-accent: #f59e0b;
	--color-accent-dark: #d97706;
	--color-text: #1e293b;
	--color-text-muted: #64748b;
	--color-heading: #0f172a;
	--color-bg: #ffffff;
	--color-bg-soft: #f8fafc;
	--color-bg-tint: #f1f5f9;
	--color-border: #e2e8f0;
	--color-success: #16a34a;
	--color-success-bg: #f0fdf4;
	--color-danger: #dc2626;
	--color-danger-bg: #fef2f2;
	--color-gold: #f59e0b;
	--color-silver: #94a3b8;
	--color-bronze: #b45309;
	--radius: 12px;
	--radius-sm: 8px;
	--shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06);
	--shadow-md: 0 6px 24px rgba(15, 23, 42, 0.08);
	--shadow-lg: 0 16px 40px rgba(15, 23, 42, 0.12);
	--container: 1140px;
	--font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	-webkit-text-size-adjust: 100%;
	scroll-behavior: smooth;
}

body {
	margin: 0;
	font-family: var(--font-sans);
	font-size: 16px;
	line-height: 1.7;
	color: var(--color-text);
	background: var(--color-bg);
	-webkit-font-smoothing: antialiased;
}

img {
	max-width: 100%;
	height: auto;
	display: block;
}

a {
	color: var(--color-primary);
	text-decoration: none;
	transition: color 0.15s ease;
}

a:hover {
	color: var(--color-primary-dark);
}

h1, h2, h3, h4, h5, h6 {
	color: var(--color-heading);
	line-height: 1.3;
	margin: 0 0 0.6em;
	font-weight: 700;
}

h1 { font-size: clamp(1.7rem, 4vw, 2.4rem); }
h2 { font-size: clamp(1.4rem, 3vw, 1.9rem); }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.05rem; }

p { margin: 0 0 1em; }

ul, ol { margin: 0 0 1em; padding-left: 1.3em; }

blockquote {
	margin: 1.5em 0;
	padding: 0.8em 1.4em;
	border-left: 4px solid var(--color-primary);
	background: var(--color-bg-soft);
	color: var(--color-text-muted);
	border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

table {
	width: 100%;
	border-collapse: collapse;
	margin: 1.5em 0;
	font-size: 0.95rem;
}

th, td {
	padding: 0.7em 1em;
	border: 1px solid var(--color-border);
	text-align: left;
}

th {
	background: var(--color-bg-tint);
	font-weight: 700;
}

/* Utilities */
.container {
	max-width: var(--container);
	margin: 0 auto;
	padding: 0 20px;
}

.screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute !important;
	width: 1px;
	word-wrap: normal !important;
}

.skip-link {
	position: absolute;
	left: -9999px;
	top: 0;
	z-index: 1000;
	background: var(--color-primary);
	color: #fff;
	padding: 10px 18px;
	border-radius: 0 0 var(--radius-sm) 0;
	font-weight: 600;
}

.skip-link:focus {
	left: 0;
	color: #fff;
}

.text-muted { color: var(--color-text-muted); }

.svg-icon {
	width: 1em;
	height: 1em;
	display: inline-block;
	vertical-align: -0.12em;
	fill: currentColor;
}

.svg-icon.stroke {
	fill: none;
	stroke: currentColor;
	stroke-width: 1.8;
	stroke-linecap: round;
	stroke-linejoin: round;
}

/* ==========================================================================
   2. Buttons
   ========================================================================== */
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 13px 26px;
	border-radius: var(--radius-sm);
	font-size: 1rem;
	font-weight: 700;
	line-height: 1.2;
	cursor: pointer;
	border: 2px solid transparent;
	transition: background 0.15s ease, border-color 0.15s ease, transform 0.1s ease, box-shadow 0.15s ease;
	text-align: center;
}

.btn .svg-icon { width: 1.15em; height: 1.15em; }

.btn-primary {
	background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
	color: #fff;
	box-shadow: 0 4px 14px rgba(2, 132, 199, 0.3);
}

.btn-primary:hover {
	background: linear-gradient(135deg, var(--color-primary-dark), var(--color-primary-darker));
	color: #fff;
	transform: translateY(-1px);
	box-shadow: 0 8px 20px rgba(2, 132, 199, 0.35);
}

.btn-outline {
	background: #fff;
	color: var(--color-primary);
	border-color: var(--color-primary);
}

.btn-outline:hover {
	background: var(--color-primary-light);
	color: var(--color-primary-dark);
}

.btn-lg {
	padding: 15px 32px;
	font-size: 1.08rem;
}

.btn-cta {
	width: 100%;
}

/* ==========================================================================
   3. Header / Navigation
   ========================================================================== */
.site-header {
	position: sticky;
	top: 0;
	z-index: 100;
	background: rgba(255, 255, 255, 0.96);
	backdrop-filter: blur(8px);
	border-bottom: 1px solid var(--color-border);
	transition: box-shadow 0.2s ease;
}

.site-header.is-scrolled {
	box-shadow: var(--shadow-md);
}

.header-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	min-height: 68px;
	padding-top: 10px;
	padding-bottom: 10px;
}

.site-branding {
	display: flex;
	align-items: center;
	gap: 12px;
	flex-shrink: 0;
}

.site-branding .custom-logo {
	max-height: 44px;
	width: auto;
}

.brand-text {
	display: flex;
	flex-direction: column;
}

.site-title {
	font-size: 1.2rem;
	font-weight: 800;
	color: var(--color-heading);
	letter-spacing: -0.01em;
	line-height: 1.2;
}

a.site-title:hover { color: var(--color-primary); }

.site-tagline {
	font-size: 0.78rem;
	color: var(--color-text-muted);
	margin: 2px 0 0;
}

.main-nav {
	display: flex;
	align-items: center;
}

.primary-menu {
	display: flex;
	align-items: center;
	gap: 4px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.primary-menu li {
	position: relative;
}

.primary-menu a {
	display: block;
	padding: 10px 14px;
	color: var(--color-text);
	font-weight: 600;
	font-size: 0.95rem;
	border-radius: var(--radius-sm);
}

.primary-menu a:hover,
.primary-menu .current-menu-item > a {
	color: var(--color-primary-dark);
	background: var(--color-primary-light);
}

.nav-toggle {
	display: none;
	background: none;
	border: 1px solid var(--color-border);
	border-radius: var(--radius-sm);
	padding: 8px 10px;
	cursor: pointer;
	color: var(--color-heading);
}

.nav-toggle .svg-icon {
	width: 26px;
	height: 26px;
}

/* ==========================================================================
   4. Hero
   ========================================================================== */
.hero {
	background:
		radial-gradient(ellipse at 80% -20%, rgba(2, 132, 199, 0.18), transparent 55%),
		linear-gradient(180deg, #f0f9ff 0%, #ffffff 100%);
	padding: 64px 0 56px;
	text-align: center;
	border-bottom: 1px solid var(--color-border);
}

.hero-badge {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	background: #fff;
	border: 1px solid var(--color-border);
	color: var(--color-primary-dark);
	font-size: 0.85rem;
	font-weight: 700;
	padding: 6px 14px;
	border-radius: 999px;
	margin-bottom: 18px;
	box-shadow: var(--shadow-sm);
}

.hero-badge .svg-icon { width: 16px; height: 16px; color: var(--color-accent-dark); }

.hero h1 {
	max-width: 780px;
	margin: 0 auto 16px;
	font-size: clamp(2rem, 5vw, 3rem);
	letter-spacing: -0.02em;
}

.hero-text {
	max-width: 660px;
	margin: 0 auto 28px;
	font-size: 1.12rem;
	color: var(--color-text-muted);
}

.hero-actions {
	display: flex;
	gap: 14px;
	justify-content: center;
	flex-wrap: wrap;
	margin-bottom: 34px;
}

.hero-stats {
	display: flex;
	justify-content: center;
	gap: 44px;
	flex-wrap: wrap;
}

.hero-stat strong {
	display: block;
	font-size: 1.5rem;
	color: var(--color-heading);
	font-weight: 800;
}

.hero-stat span {
	font-size: 0.88rem;
	color: var(--color-text-muted);
}

/* ==========================================================================
   5. Sections
   ========================================================================== */
.section {
	padding: 56px 0;
}

.section-soft {
	background: var(--color-bg-soft);
	border-top: 1px solid var(--color-border);
	border-bottom: 1px solid var(--color-border);
}

.section-head {
	text-align: center;
	max-width: 680px;
	margin: 0 auto 38px;
}

.section-head h2 {
	margin-bottom: 10px;
}

.section-head p {
	color: var(--color-text-muted);
	font-size: 1.05rem;
	margin: 0;
}

.section-head .section-kicker {
	display: inline-block;
	color: var(--color-primary);
	font-weight: 800;
	font-size: 0.82rem;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	margin-bottom: 8px;
}

/* ==========================================================================
   6. Ranking cards (homepage)
   ========================================================================== */
.ranking-list {
	display: flex;
	flex-direction: column;
	gap: 22px;
}

.ranking-card {
	display: grid;
	grid-template-columns: 56px 260px 1fr 220px;
	gap: 22px;
	align-items: center;
	background: #fff;
	border: 1px solid var(--color-border);
	border-radius: var(--radius);
	padding: 22px;
	box-shadow: var(--shadow-sm);
	transition: box-shadow 0.2s ease, transform 0.2s ease;
	position: relative;
	overflow: hidden;
}

.ranking-card:hover {
	box-shadow: var(--shadow-md);
	transform: translateY(-2px);
}

.ranking-card.rank-1 {
	border-color: rgba(245, 158, 11, 0.45);
	box-shadow: 0 8px 28px rgba(245, 158, 11, 0.12);
}

.ranking-rank {
	display: flex;
	justify-content: center;
}

.rank-badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	font-size: 1.25rem;
	font-weight: 800;
	background: var(--color-bg-tint);
	color: var(--color-text-muted);
	flex-shrink: 0;
}

.rank-1 .rank-badge { background: var(--color-gold); color: #fff; box-shadow: 0 4px 12px rgba(245, 158, 11, 0.4); }
.rank-2 .rank-badge { background: var(--color-silver); color: #fff; }
.rank-3 .rank-badge { background: var(--color-bronze); color: #fff; }

.ranking-thumb {
	display: block;
	border-radius: var(--radius-sm);
	overflow: hidden;
	aspect-ratio: 4 / 3;
	background: var(--color-bg-tint);
}

.ranking-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.3s ease;
}

.ranking-card:hover .ranking-thumb img {
	transform: scale(1.04);
}

.ranking-thumb-placeholder,
.card-thumb-placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	color: var(--color-primary);
	background: linear-gradient(135deg, var(--color-primary-light), #f0f9ff);
}

.ranking-thumb-placeholder .svg-icon,
.card-thumb-placeholder .svg-icon {
	width: 64px;
	height: 64px;
	opacity: 0.4;
}

.card-brand {
	display: inline-block;
	font-size: 0.78rem;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: var(--color-primary-dark);
	background: var(--color-primary-light);
	padding: 3px 10px;
	border-radius: 999px;
	margin-bottom: 8px;
}

.ranking-title {
	font-size: 1.25rem;
	margin: 0 0 8px;
}

.ranking-title a { color: var(--color-heading); }
.ranking-title a:hover { color: var(--color-primary); }

.ranking-rating {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 10px;
}

.ranking-rating strong {
	font-size: 1.05rem;
	color: var(--color-heading);
}

.ranking-excerpt {
	color: var(--color-text-muted);
	font-size: 0.95rem;
	margin: 0 0 10px;
}

.ranking-read {
	font-weight: 700;
	font-size: 0.92rem;
	display: inline-flex;
	align-items: center;
	gap: 6px;
}

.ranking-cta {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.ranking-cta .btn { width: 100%; }

.cta-note {
	font-size: 0.75rem;
	color: var(--color-text-muted);
	text-align: center;
	margin: 0;
}

/* Stars */
.stars {
	position: relative;
	display: inline-block;
	font-size: 16px;
	line-height: 1;
	letter-spacing: 2px;
	white-space: nowrap;
}

.stars-empty { color: #e2e8f0; }

.stars-fill {
	color: var(--color-accent);
	position: absolute;
	top: 0;
	left: 0;
	overflow: hidden;
	white-space: nowrap;
}

.stars-lg { font-size: 22px; }

/* ==========================================================================
   7. Card grid (listings)
   ========================================================================== */
.card-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 24px;
}

.card {
	background: #fff;
	border: 1px solid var(--color-border);
	border-radius: var(--radius);
	overflow: hidden;
	display: flex;
	flex-direction: column;
	transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.card:hover {
	box-shadow: var(--shadow-md);
	transform: translateY(-3px);
}

.card-thumb-link {
	position: relative;
	display: block;
	aspect-ratio: 3 / 2;
	background: var(--color-bg-tint);
	overflow: hidden;
}

.card-thumb {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.3s ease;
}

.card:hover .card-thumb { transform: scale(1.05); }

.card-rating-pill {
	position: absolute;
	top: 12px;
	right: 12px;
	background: var(--color-heading);
	color: #fff;
	font-size: 0.8rem;
	font-weight: 800;
	padding: 4px 10px;
	border-radius: 999px;
}

.card-body {
	padding: 18px 20px 20px;
	display: flex;
	flex-direction: column;
	flex: 1;
}

.card-title {
	font-size: 1.12rem;
	margin: 0 0 8px;
}

.card-title a { color: var(--color-heading); }
.card-title a:hover { color: var(--color-primary); }

.card-stars {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 10px;
}

.card-rating-text {
	font-size: 0.88rem;
	color: var(--color-text-muted);
	font-weight: 600;
}

.card-excerpt {
	font-size: 0.92rem;
	color: var(--color-text-muted);
	margin: 0 0 14px;
	flex: 1;
}

.card-more {
	font-weight: 700;
	font-size: 0.9rem;
	display: inline-flex;
	align-items: center;
	gap: 6px;
}

.card-more .svg-icon { width: 16px; height: 16px; }

/* ==========================================================================
   8. How-we-test / FAQ
   ========================================================================== */
.feature-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 22px;
}

.feature-item {
	background: #fff;
	border: 1px solid var(--color-border);
	border-radius: var(--radius);
	padding: 26px 22px;
	text-align: center;
}

.feature-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 56px;
	height: 56px;
	border-radius: 16px;
	background: var(--color-primary-light);
	color: var(--color-primary);
	margin-bottom: 14px;
}

.feature-icon .svg-icon { width: 28px; height: 28px; }

.feature-item h3 {
	font-size: 1.05rem;
	margin-bottom: 8px;
}

.feature-item p {
	font-size: 0.9rem;
	color: var(--color-text-muted);
	margin: 0;
}

.faq-list {
	max-width: 760px;
	margin: 0 auto;
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.faq-item {
	background: #fff;
	border: 1px solid var(--color-border);
	border-radius: var(--radius);
	padding: 20px 24px;
}

.faq-item h3 {
	font-size: 1.05rem;
	margin-bottom: 8px;
}

.faq-item p {
	margin: 0;
	color: var(--color-text-muted);
	font-size: 0.95rem;
}

.empty-note {
	text-align: center;
	padding: 48px 24px;
	background: #fff;
	border: 1px dashed var(--color-border);
	border-radius: var(--radius);
	color: var(--color-text-muted);
}

/* ==========================================================================
   9. Breadcrumb
   ========================================================================== */
.breadcrumb {
	background: var(--color-bg-soft);
	border-bottom: 1px solid var(--color-border);
	font-size: 0.85rem;
}

.breadcrumb ol {
	list-style: none;
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin: 0;
	padding: 12px 0;
}

.breadcrumb li {
	display: flex;
	align-items: center;
	gap: 6px;
	color: var(--color-text-muted);
}

.breadcrumb li:not(:last-child)::after {
	content: "/";
	color: var(--color-border);
}

.breadcrumb a { color: var(--color-text-muted); }
.breadcrumb a:hover { color: var(--color-primary); }

/* ==========================================================================
   10. Content layout (single / archive)
   ========================================================================== */
.site-content {
	padding: 40px 0 56px;
}

.content-layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 36px;
}

.content-layout.has-sidebar {
	grid-template-columns: minmax(0, 1fr) 320px;
}

.main-column {
	min-width: 0;
}

.archive-header {
	margin-bottom: 28px;
}

.archive-title {
	margin: 0 0 6px;
}

.archive-description {
	color: var(--color-text-muted);
	margin: 0;
}

/* Entry */
.entry-header {
	margin-bottom: 22px;
}

.entry-cats {
	margin-bottom: 10px;
}

.entry-cats a {
	display: inline-block;
	font-size: 0.78rem;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: var(--color-primary-dark);
	background: var(--color-primary-light);
	padding: 4px 12px;
	border-radius: 999px;
	margin-right: 6px;
}

.entry-title {
	margin-bottom: 12px;
}

.entry-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 18px;
	font-size: 0.88rem;
	color: var(--color-text-muted);
}

.entry-meta .meta-author,
.entry-meta .meta-date,
.entry-meta .meta-rating {
	display: inline-flex;
	align-items: center;
	gap: 8px;
}

.entry-meta .meta-author img {
	border-radius: 50%;
	width: 28px;
	height: 28px;
}

.entry-meta a { color: var(--color-text); font-weight: 600; }
.entry-meta a:hover { color: var(--color-primary); }

.entry-thumb {
	border-radius: var(--radius);
	overflow: hidden;
	margin-bottom: 26px;
	box-shadow: var(--shadow-sm);
}

.entry-content {
	font-size: 1.02rem;
}

.entry-content h2,
.entry-content h3 {
	margin-top: 1.6em;
}

.entry-content img {
	border-radius: var(--radius-sm);
}

.entry-footer {
	margin-top: 28px;
	padding-top: 20px;
	border-top: 1px solid var(--color-border);
}

.entry-tags a {
	display: inline-block;
	font-size: 0.82rem;
	background: var(--color-bg-tint);
	color: var(--color-text-muted);
	padding: 4px 12px;
	border-radius: 999px;
	margin: 0 6px 6px 0;
}

.entry-tags a:hover {
	background: var(--color-primary-light);
	color: var(--color-primary-dark);
}

.entry-cta {
	margin: 32px 0;
}

.disclosure-notice {
	display: flex;
	gap: 10px;
	align-items: flex-start;
	background: #fffbeb;
	border: 1px solid #fde68a;
	color: #92400e;
	font-size: 0.85rem;
	padding: 12px 16px;
	border-radius: var(--radius-sm);
	margin-bottom: 20px;
}

.disclosure-notice .svg-icon {
	width: 18px;
	height: 18px;
	flex-shrink: 0;
	margin-top: 3px;
}

.disclosure-notice p { margin: 0; }

/* ==========================================================================
   11. Review box
   ========================================================================== */
.review-box {
	border: 1px solid var(--color-border);
	border-radius: var(--radius);
	overflow: hidden;
	box-shadow: var(--shadow-md);
	margin: 0 0 32px;
}

.review-box-head {
	background: linear-gradient(135deg, var(--color-primary), var(--color-primary-darker));
	color: #fff;
	padding: 22px 26px;
	display: flex;
	align-items: center;
	gap: 22px;
}

.review-score {
	display: flex;
	align-items: baseline;
	gap: 2px;
	background: rgba(255, 255, 255, 0.15);
	border-radius: var(--radius-sm);
	padding: 10px 16px;
	flex-shrink: 0;
}

.score-value {
	font-size: 2.4rem;
	font-weight: 800;
	line-height: 1;
}

.score-max {
	font-size: 1rem;
	opacity: 0.85;
}

.review-head-info {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.review-head-info .stars-fill,
.review-head-info .stars-empty { font-size: 20px; }

.review-brand {
	font-size: 0.8rem;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	opacity: 0.9;
}

.review-verdict-label {
	font-size: 0.85rem;
	font-weight: 700;
	opacity: 0.9;
}

.review-box-body {
	padding: 24px 26px;
}

.review-verdict {
	font-size: 1.05rem;
	font-weight: 600;
	color: var(--color-heading);
	margin-bottom: 18px;
}

.pros-cons {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 20px;
	margin-bottom: 22px;
}

.pros-cons h4 {
	margin-bottom: 10px;
	font-size: 0.95rem;
}

.pros h4 { color: var(--color-success); }
.cons h4 { color: var(--color-danger); }

.pros-cons ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.pros-cons li {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	padding: 7px 0;
	font-size: 0.93rem;
	border-bottom: 1px dashed var(--color-border);
}

.pros-cons li:last-child { border-bottom: 0; }

.pros-cons li .svg-icon {
	width: 18px;
	height: 18px;
	flex-shrink: 0;
	margin-top: 4px;
}

.pros li .svg-icon { color: var(--color-success); }
.cons li .svg-icon { color: var(--color-danger); }

.review-cta {
	max-width: 420px;
	margin: 0 auto;
	text-align: center;
}

.review-box .review-cta {
	margin-top: 4px;
}

/* Post navigation */
.post-navigation {
	margin: 36px 0;
}

.nav-links {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 16px;
}

.nav-previous a,
.nav-next a {
	display: block;
	background: #fff;
	border: 1px solid var(--color-border);
	border-radius: var(--radius-sm);
	padding: 14px 18px;
	font-weight: 600;
	color: var(--color-heading);
}

.nav-next { text-align: right; }

.nav-previous a:hover,
.nav-next a:hover {
	border-color: var(--color-primary);
	color: var(--color-primary);
}

/* Pagination */
.pagination {
	margin-top: 40px;
}

.pagination .nav-links {
	display: flex;
	justify-content: center;
	gap: 8px;
}

.pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 42px;
	height: 42px;
	padding: 0 14px;
	border: 1px solid var(--color-border);
	border-radius: var(--radius-sm);
	font-weight: 600;
	color: var(--color-text);
	background: #fff;
}

.pagination .page-numbers.current {
	background: var(--color-primary);
	border-color: var(--color-primary);
	color: #fff;
}

.pagination .page-numbers:hover:not(.current) {
	border-color: var(--color-primary);
	color: var(--color-primary);
}

/* ==========================================================================
   12. Sidebar / Widgets
   ========================================================================== */
.sidebar {
	display: flex;
	flex-direction: column;
	gap: 22px;
}

.widget {
	background: #fff;
	border: 1px solid var(--color-border);
	border-radius: var(--radius);
	padding: 22px;
}

.widget-title {
	font-size: 1.02rem;
	margin: 0 0 14px;
	padding-bottom: 12px;
	border-bottom: 2px solid var(--color-primary-light);
}

.widget ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.widget li {
	padding: 8px 0;
	border-bottom: 1px dashed var(--color-border);
	font-size: 0.93rem;
}

.widget li:last-child { border-bottom: 0; }

.widget .search-field {
	width: 100%;
	padding: 11px 14px;
	border: 1px solid var(--color-border);
	border-radius: var(--radius-sm);
	font-size: 0.95rem;
	font-family: inherit;
}

.widget .search-field:focus {
	outline: 2px solid var(--color-primary-light);
	border-color: var(--color-primary);
}

.search-form {
	display: flex;
	gap: 8px;
}

.search-submit {
	background: var(--color-primary);
	color: #fff;
	border: 0;
	border-radius: var(--radius-sm);
	padding: 0 18px;
	font-weight: 700;
	cursor: pointer;
}

.search-submit:hover { background: var(--color-primary-dark); }

/* ==========================================================================
   13. Comments
   ========================================================================== */
.comments-area {
	margin-top: 44px;
	padding-top: 32px;
	border-top: 1px solid var(--color-border);
}

.comments-title {
	font-size: 1.3rem;
	margin-bottom: 22px;
}

.comment-list {
	list-style: none;
	padding: 0;
	margin: 0 0 32px;
}

.comment-body {
	background: var(--color-bg-soft);
	border: 1px solid var(--color-border);
	border-radius: var(--radius);
	padding: 18px 20px;
	margin-bottom: 16px;
}

.comment-author {
	display: flex;
	align-items: center;
	gap: 10px;
	font-weight: 700;
	color: var(--color-heading);
}

.comment-author .avatar {
	border-radius: 50%;
	width: 40px;
	height: 40px;
}

.comment-metadata {
	font-size: 0.82rem;
	color: var(--color-text-muted);
	margin: 4px 0 10px 50px;
}

.comment-content {
	font-size: 0.95rem;
}

.comment-content p:last-child { margin-bottom: 0; }

.reply {
	margin-top: 8px;
}

.reply a {
	font-size: 0.85rem;
	font-weight: 700;
}

.comment-respond h3 {
	margin-bottom: 16px;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
	width: 100%;
	padding: 11px 14px;
	border: 1px solid var(--color-border);
	border-radius: var(--radius-sm);
	font-size: 0.95rem;
	font-family: inherit;
	margin-bottom: 12px;
}

.comment-form input:focus,
.comment-form textarea:focus {
	outline: 2px solid var(--color-primary-light);
	border-color: var(--color-primary);
}

.comment-form .form-submit .submit {
	background: var(--color-primary);
	color: #fff;
	border: 0;
	padding: 12px 28px;
	border-radius: var(--radius-sm);
	font-weight: 700;
	font-size: 1rem;
	cursor: pointer;
}

.comment-form .form-submit .submit:hover { background: var(--color-primary-dark); }

/* ==========================================================================
   14. Footer
   ========================================================================== */
.site-footer {
	background: var(--color-heading);
	color: #cbd5e1;
	margin-top: 0;
}

.footer-widgets {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 32px;
	padding: 48px 20px 36px;
}

.site-footer .widget {
	background: transparent;
	border: 0;
	padding: 0;
	color: #cbd5e1;
}

.site-footer .widget-title {
	color: #fff;
	border-bottom-color: rgba(255, 255, 255, 0.15);
}

.site-footer a { color: #e2e8f0; }
.site-footer a:hover { color: #fff; }

.site-footer .widget li { border-bottom-color: rgba(255, 255, 255, 0.1); }

.footer-bottom {
	border-top: 1px solid rgba(255, 255, 255, 0.12);
	padding: 26px 0;
}

.footer-bottom-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	flex-wrap: wrap;
}

.footer-menu {
	list-style: none;
	display: flex;
	gap: 20px;
	flex-wrap: wrap;
	margin: 0;
	padding: 0;
}

.footer-menu a {
	font-size: 0.9rem;
	color: #cbd5e1;
}

.footer-menu a:hover { color: #fff; }

.affiliate-notice {
	font-size: 0.8rem;
	color: #94a3b8;
	margin: 12px 0 0;
	max-width: 720px;
}

.copyright {
	font-size: 0.85rem;
	color: #94a3b8;
	margin: 0;
}

.footer-social {
	display: flex;
	gap: 10px;
}

.footer-social a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 38px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.1);
	color: #fff;
}

.footer-social a:hover {
	background: var(--color-primary);
	color: #fff;
}

.footer-social .svg-icon { width: 18px; height: 18px; }

/* ==========================================================================
   15. 404
   ========================================================================== */
.error-404 {
	text-align: center;
	max-width: 620px;
	margin: 0 auto;
	padding: 40px 0;
}

.error-code {
	display: block;
	font-size: 6rem;
	font-weight: 800;
	line-height: 1;
	background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
	margin-bottom: 10px;
}

.error-404 .search-form {
	max-width: 420px;
	margin: 24px auto 28px;
}

/* ==========================================================================
   16. Floating action buttons
   ========================================================================== */
.fab-back-top {
	position: fixed;
	right: 22px;
	bottom: 22px;
	z-index: 90;
	width: 48px;
	height: 48px;
	border-radius: 50%;
	border: 0;
	background: var(--color-primary);
	color: #fff;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: var(--shadow-lg);
	opacity: 0;
	visibility: hidden;
	transform: translateY(12px);
	transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s, background 0.15s ease;
}

.fab-back-top.is-visible {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

.fab-back-top:hover { background: var(--color-primary-dark); }

.fab-back-top .svg-icon { width: 22px; height: 22px; }

/* ==========================================================================
   17. Responsive
   ========================================================================== */
@media (max-width: 1024px) {
	.ranking-card {
		grid-template-columns: 48px 220px 1fr;
	}

	.ranking-cta {
		grid-column: 2 / -1;
		flex-direction: row;
		align-items: center;
	}

	.ranking-cta .btn { width: auto; flex: 0 0 auto; }

	.card-grid {
		grid-template-columns: repeat(2, 1fr);
	}

	.feature-grid {
		grid-template-columns: repeat(2, 1fr);
	}

	.content-layout.has-sidebar {
		grid-template-columns: 1fr;
	}

	.footer-widgets {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 768px) {
	.nav-toggle {
		display: inline-flex;
		align-items: center;
		justify-content: center;
	}

	.primary-menu {
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		flex-direction: column;
		align-items: stretch;
		gap: 0;
		background: #fff;
		border-bottom: 1px solid var(--color-border);
		box-shadow: var(--shadow-md);
		padding: 8px 16px 16px;
		display: none;
	}

	.primary-menu.is-open {
		display: flex;
	}

	.primary-menu a {
		padding: 13px 14px;
		border-radius: var(--radius-sm);
	}

	.hero {
		padding: 44px 0 40px;
	}

	.hero-stats {
		gap: 28px;
	}

	.ranking-card {
		grid-template-columns: 40px 1fr;
		gap: 14px;
		padding: 18px;
	}

	.ranking-thumb {
		grid-column: 2;
	}

	.ranking-body {
		grid-column: 1 / -1;
	}

	.ranking-cta {
		grid-column: 1 / -1;
	}

	.rank-badge {
		width: 36px;
		height: 36px;
		font-size: 1.05rem;
	}

	.pros-cons {
		grid-template-columns: 1fr;
	}

	.review-box-head {
		flex-direction: column;
		align-items: flex-start;
		gap: 14px;
	}

	.card-grid,
	.feature-grid,
	.footer-widgets {
		grid-template-columns: 1fr;
	}

	.nav-links {
		grid-template-columns: 1fr;
	}

	.section {
		padding: 40px 0;
	}
}
