/*!
Theme Name: Zycie bez smogu - theme
Theme URI: https://zyciebezsmogu.pl/
Author: Zycie bez smogu
Author URI: https://zyciebezsmogu.pl/
Description: Motyw dla serwisu Zycie bez smogu — niezalezne rankingi oczyszczaczy powietrza.
Version: 1.0.0
Tested up to: 6.4
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: LICENSE
Text Domain: zycie-bez-smogu-theme
Tags: custom-background, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready
*/

/* ==========================================================================
   FONTS — local hosting
   Fonts should be placed in /fonts/ directory.
   Download Clash Display & Satoshi from https://www.fontshare.com/
   ========================================================================== */

@font-face {
	font-family: 'Clash Display';
	src: url('fonts/ClashDisplay-Regular.woff2') format('woff2');
	font-weight: 400;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: 'Clash Display';
	src: url('fonts/ClashDisplay-Medium.woff2') format('woff2');
	font-weight: 500;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: 'Clash Display';
	src: url('fonts/ClashDisplay-Semibold.woff2') format('woff2');
	font-weight: 600;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: 'Clash Display';
	src: url('fonts/ClashDisplay-Bold.woff2') format('woff2');
	font-weight: 700;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: 'Satoshi';
	src: url('fonts/Satoshi-Light.woff2') format('woff2');
	font-weight: 300;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: 'Satoshi';
	src: url('fonts/Satoshi-Regular.woff2') format('woff2');
	font-weight: 400;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: 'Satoshi';
	src: url('fonts/Satoshi-Medium.woff2') format('woff2');
	font-weight: 500;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: 'Satoshi';
	src: url('fonts/Satoshi-Bold.woff2') format('woff2');
	font-weight: 700;
	font-style: normal;
	font-display: swap;
}

/* ==========================================================================
   RESET & BASE
   ========================================================================== */

*, *::before, *::after {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}

html {
	scroll-behavior: smooth;
	scroll-padding-top: 130px;
	-webkit-text-size-adjust: 100%;
}

body {
	font-family: 'Satoshi', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	color: var(--text);
	background: var(--bg);
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}

img {
	display: block;
	max-width: 100%;
}

a {
	color: inherit;
	text-decoration: none;
}

button, input, select {
	font-family: inherit;
	border: none;
	outline: none;
	background: none;
}

ul, ol {
	list-style: none;
}

::selection {
	background: #c5edd9;
	color: var(--text);
}

:focus-visible {
	outline: 2px solid var(--green);
	outline-offset: 2px;
	border-radius: 4px;
}

/* ==========================================================================
   DESIGN TOKENS
   ========================================================================== */

:root {
	--clash: 'Clash Display', sans-serif;
	--sat: 'Satoshi', sans-serif;

	--white: #ffffff;
	--bg: #f7f8f9;
	--bg2: #f0f1f3;
	--bg3: #e8eaed;
	--border: #e4e6e9;
	--border2: #d0d3d8;
	--border3: #bcc0c7;

	--text: #111318;
	--text-mid: #4a4f5a;
	--text-dim: #8a909c;
	--text-faint: #b0b5bf;

	--green: #18a058;
	--green-hover: #148a4a;
	--green-bg: #edf7f1;
	--green-brd: #b8e4cc;

	--yellow: #c98a00;
	--yellow-bg: #fdf6e3;
	--yellow-brd: #f0d090;

	--red: #d63b3b;
	--red-bg: #fef0f0;

	--blue: #4060d0;
	--blue-bg: #eef2ff;
	--blue-brd: #c5cff5;

	--shadow-sm: 0 1px 3px rgba(0,0,0,0.04), 0 1px 2px rgba(0,0,0,0.03);
	--shadow-md: 0 2px 12px rgba(0,0,0,0.06), 0 1px 4px rgba(0,0,0,0.04);
	--shadow-lg: 0 8px 30px rgba(0,0,0,0.08), 0 2px 8px rgba(0,0,0,0.04);

	--ease: cubic-bezier(0.22, 0.61, 0.36, 1);
	--ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);

	--shell: 1280px;
	--shell-px: 32px;
	--nav-h: 60px;
	--sidebar-w: 300px;
}

/* ==========================================================================
   UTILITIES
   ========================================================================== */

.shell {
	max-width: var(--shell);
	margin: 0 auto;
	padding: 0 var(--shell-px);
}

.sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0,0,0,0);
	border: 0;
}

.sr-only:focus {
	background-color: #f1f1f1;
	border-radius: 3px;
	box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
	clip: auto !important;
	color: #21759b;
	display: block;
	font-size: 0.875rem;
	font-weight: 700;
	height: auto;
	left: 5px;
	line-height: normal;
	padding: 15px 23px 14px;
	text-decoration: none;
	top: 5px;
	width: auto;
	z-index: 100000;
}

.v-green { color: var(--green) !important; }
.v-yellow { color: var(--yellow) !important; }
.v-red { color: var(--red) !important; }

/* ==========================================================================
   NAVIGATION
   ========================================================================== */

.nav {
	position: sticky;
	top: 0;
	z-index: 100;
	height: var(--nav-h);
	background: rgba(255,255,255,0.92);
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
	border-bottom: 1px solid var(--border);
}

.nav-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	height: 100%;
	max-width: var(--shell);
	margin: 0 auto;
	padding: 0 var(--shell-px);
	position: relative;
}

/* Logo */
.nav-logo {
	position: absolute;
	left: var(--shell-px);
	top: 50%;
	transform: translateY(-50%);
	display: flex;
	align-items: center;
}

.logo-img {
	height: 34px;
	width: auto;
}

.logo-text {
	font-family: var(--clash);
	font-size: 18px;
	font-weight: 700;
	color: var(--text);
	letter-spacing: -0.02em;
}

/* Nav links (desktop) */
.nav-links {
	display: flex;
	align-items: center;
	gap: 2px;
	margin: 0 auto;
}

.nav-link {
	padding: 7px 14px;
	border-radius: 7px;
	font-size: 14px;
	font-weight: 500;
	color: var(--text-mid);
	transition: background 0.15s var(--ease), color 0.15s var(--ease);
	cursor: pointer;
	white-space: nowrap;
}

.nav-link:hover {
	background: var(--bg);
	color: var(--text);
}

.nav-link.active {
	color: var(--green);
	background: var(--green-bg);
}

/* Right side (AQI + burger) */
.nav-right {
	display: flex;
	align-items: center;
	gap: 12px;
}

/* AQI widget */
.aqi-widget {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 6px 14px;
	border-radius: 7px;
	background: var(--bg);
	border: 1px solid var(--border);
	font-size: 13px;
	font-weight: 500;
	color: var(--text-mid);
}

.aqi-dot {
	width: 7px;
	height: 7px;
	border-radius: 50%;
	animation: pulse 2s ease-in-out infinite;
}

.aqi-dot.ok { background: var(--green); }
.aqi-dot.warn { background: var(--yellow); }
.aqi-dot.bad { background: var(--red); }

.aqi-widget .aqi-val {
	font-family: var(--clash);
	font-weight: 700;
	color: var(--text);
	transform: translateY(1px);
}

@keyframes pulse {
	0%, 100% { opacity: 1; }
	50% { opacity: 0.35; }
}

/* Burger button (hidden on desktop) */
.nav-burger {
	display: none;
	width: 40px;
	height: 40px;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	border-radius: 8px;
}

.nav-burger span {
	display: block;
	width: 18px;
	height: 2px;
	background: var(--text);
	position: relative;
	border-radius: 1px;
	transition: background 0.2s;
}

.nav-burger span::before,
.nav-burger span::after {
	content: '';
	position: absolute;
	left: 0;
	width: 100%;
	height: 2px;
	background: var(--text);
	border-radius: 1px;
	transition: transform 0.25s var(--ease);
}

.nav-burger span::before { top: -6px; }
.nav-burger span::after { top: 6px; }

/* Burger active state */
.nav-burger.active span { background: transparent; }
.nav-burger.active span::before { transform: translateY(6px) rotate(45deg); }
.nav-burger.active span::after { transform: translateY(-6px) rotate(-45deg); }

/* ==========================================================================
   MOBILE CATEGORY BAR
   ========================================================================== */

.mobile-cats {
	display: none;
	overflow-x: auto;
	scrollbar-width: none;
	background: var(--white);
	border-bottom: 1px solid var(--border);
}

.mobile-cats::-webkit-scrollbar { display: none; }

.mobile-cats-inner {
	display: flex;
	padding: 0 var(--shell-px);
}

.mcat {
	padding: 12px 16px;
	font-size: 13px;
	font-weight: 500;
	color: var(--text-mid);
	white-space: nowrap;
	border-bottom: 2px solid transparent;
	transition: color 0.15s, border-color 0.15s;
}

.mcat:hover {
	color: var(--text);
}

.mcat.active {
	color: var(--green);
	border-bottom-color: var(--green);
}

/* ==========================================================================
   MOBILE SLIDE-IN MENU
   ========================================================================== */

.mobile-overlay {
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.4);
	z-index: 200;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.3s var(--ease), visibility 0.3s;
}

.mobile-overlay.active {
	opacity: 1;
	visibility: visible;
}

.mobile-menu {
	position: fixed;
	top: 0;
	right: 0;
	bottom: 0;
	width: min(320px, 85vw);
	background: var(--white);
	z-index: 210;
	transform: translateX(100%);
	transition: transform 0.35s var(--ease);
	display: flex;
	flex-direction: column;
	box-shadow: var(--shadow-lg);
}

.mobile-menu.active {
	transform: translateX(0);
}

.mobile-menu-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 16px 20px;
	border-bottom: 1px solid var(--border);
}

.mobile-menu-title {
	font-family: var(--clash);
	font-size: 16px;
	font-weight: 600;
	color: var(--text);
}

.mobile-menu-close {
	width: 36px;
	height: 36px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 8px;
	color: var(--text-mid);
	cursor: pointer;
	transition: background 0.15s, color 0.15s;
}

.mobile-menu-close:hover {
	background: var(--bg);
	color: var(--text);
}

.mobile-menu-links {
	flex: 1;
	padding: 8px 12px;
	overflow-y: auto;
}

.mobile-menu-link {
	display: block;
	padding: 12px 14px;
	border-radius: 8px;
	font-size: 15px;
	font-weight: 500;
	color: var(--text-mid);
	transition: background 0.15s, color 0.15s;
}

.mobile-menu-link:hover {
	background: var(--bg);
	color: var(--text);
}

.mobile-menu-link.active {
	color: var(--green);
	background: var(--green-bg);
}

.mobile-menu-aqi {
	padding: 16px 20px;
	border-top: 1px solid var(--border);
}

.mobile-menu-aqi .aqi-widget {
	width: 100%;
	justify-content: center;
}

/* Lock body scroll when menu is open */
body.menu-open {
	overflow: hidden;
}

/* ==========================================================================
   PAGE HEADER
   ========================================================================== */

.page-top {
	background: var(--white);
	border-bottom: 1px solid var(--border);
	padding: 20px 0 22px;
}

.page-heading-row {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 16px;
	flex-wrap: wrap;
}

.page-h1 {
	font-family: var(--clash);
	font-size: 28px;
	font-weight: 600;
	letter-spacing: -0.02em;
	line-height: 1.15;
	color: var(--text);
}

.page-h1 small {
	display: block;
	font-family: var(--sat);
	font-size: 13px;
	font-weight: 400;
	color: var(--text-dim);
	letter-spacing: 0;
	margin-top: 6px;
	line-height: 1.5;
}

.meta-pills {
	display: flex;
	gap: 8px;
	flex-shrink: 0;
}

.meta-pill {
	padding: 4px 10px;
	border: 1px solid var(--border);
	border-radius: 5px;
	font-size: 12px;
	font-weight: 500;
	color: var(--text-dim);
	background: var(--bg);
	display: flex;
	align-items: center;
	gap: 5px;
}

.meta-pill svg {
	width: 13px;
	height: 13px;
	opacity: 0.5;
}

/* ==========================================================================
   FILTER BAR
   ========================================================================== */

.filter-bar {
	background: var(--white);
	border-bottom: 1px solid var(--border);
	position: sticky;
	top: var(--nav-h);
	z-index: 90;
	transition: box-shadow 0.2s var(--ease);
}

.filter-bar.scrolled {
	box-shadow: 0 4px 16px rgba(0,0,0,0.05);
}

/* Filter toggle (mobile only) */
.filter-toggle {
	display: none;
	align-items: center;
	gap: 8px;
	width: 100%;
	padding: 12px 0;
	font-size: 13px;
	font-weight: 500;
	color: var(--text);
	cursor: pointer;
}

.filter-count {
	font-size: 11px;
	font-weight: 600;
	color: var(--green);
	background: var(--green-bg);
	border-radius: 10px;
	padding: 1px 7px;
	min-width: 20px;
	text-align: center;
}

.filter-chevron {
	margin-left: auto;
	color: var(--text-dim);
	transition: transform 0.25s var(--ease);
}

.filter-bar.open .filter-chevron {
	transform: rotate(180deg);
}

.filter-inner {
	display: flex;
	overflow-x: auto;
	scrollbar-width: none;
}

.filter-inner::-webkit-scrollbar { display: none; }

.filter-group {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 12px 24px;
	border-right: 1px solid var(--border);
	flex-shrink: 0;
}

.filter-group:first-child {
	padding-left: 0;
}

.filter-group:last-child {
	border-right: none;
}

.filter-label {
	font-size: 11px;
	font-weight: 500;
	color: var(--text-dim);
	text-transform: uppercase;
	letter-spacing: 0.04em;
	white-space: nowrap;
	margin-right: 4px;
}

.pill {
	padding: 5px 12px;
	border: 1px solid var(--border);
	border-radius: 5px;
	font-size: 12px;
	font-weight: 500;
	color: var(--text-mid);
	cursor: pointer;
	white-space: nowrap;
	transition: all 0.13s var(--ease);
}

.pill:hover {
	border-color: var(--border2);
	color: var(--text);
}

.pill.on {
	background: var(--green-bg);
	border-color: var(--green-brd);
	color: var(--green);
}

/* ==========================================================================
   CONTENT LAYOUT
   ========================================================================== */

.content-wrap {
	display: grid;
	grid-template-columns: 1fr var(--sidebar-w);
	gap: 24px;
	padding: 24px 0 48px;
	align-items: start;
}

.rank-list {
	display: flex;
	flex-direction: column;
	gap: 18px;
}

/* ==========================================================================
   PRODUCT CARD
   ========================================================================== */

/* Shared elements */
.tag {
	font-size: 11px;
	font-weight: 500;
	padding: 3px 9px;
	border-radius: 4px;
	display: inline-flex;
	align-items: center;
	gap: 4px;
}

.tag-top { background: var(--green-bg); color: var(--green); border: 1px solid var(--green-brd); }
.tag-budget { background: var(--yellow-bg); color: var(--yellow); border: 1px solid var(--yellow-brd); }
.tag-new { background: var(--blue-bg); color: var(--blue); border: 1px solid var(--blue-brd); }
.tag-quiet { background: var(--bg2); color: var(--text-mid); border: 1px solid var(--border); }

.feat-chip {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	padding: 3px 8px;
	border-radius: 4px;
	background: var(--bg2);
	font-size: 11px;
	font-weight: 500;
	color: var(--text-dim);
}

.btn-cta {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	padding: 10px 20px;
	background: var(--green);
	color: var(--white);
	font-size: 13px;
	font-weight: 500;
	border-radius: 7px;
	transition: background 0.15s var(--ease), transform 0.15s;
	cursor: pointer;
}

.btn-cta:hover { background: var(--green-hover); }
.btn-cta:active { transform: scale(0.97); }

.btn-ghost {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 4px;
	padding: 9px 16px;
	border: 1px solid var(--border2);
	color: var(--text-mid);
	font-size: 13px;
	font-weight: 500;
	border-radius: 7px;
	transition: all 0.15s var(--ease);
	cursor: pointer;
}

.btn-ghost:hover {
	border-color: var(--border3);
	color: var(--text);
	background: var(--bg);
}

/* Card shell */
.card {
	background: var(--white);
	border: 1px solid var(--border);
	border-radius: 14px;
	overflow: hidden;
	transition: border-color 0.18s var(--ease), box-shadow 0.25s var(--ease);
}

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

.card.top {
	border-color: var(--green-brd);
}

.card.top:hover {
	border-color: var(--green);
}

.card.card-hidden {
	display: none;
}

/* Top section (3-col grid) */
.card-top {
	display: grid;
	grid-template-columns: 200px 1fr auto;
	min-height: 200px;
}

.card-img-col {
	display: flex;
	align-items: center;
	justify-content: center;
	position: relative;
	padding: 20px;
}

.card-rank {
	position: absolute;
	top: 12px;
	left: 14px;
	font-family: var(--clash);
	font-size: 38px;
	font-weight: 700;
	letter-spacing: -0.03em;
	color: var(--border2);
	line-height: 1;
}

.card.top .card-rank {
	color: var(--green-brd);
}

.card-img {
	width: 130px;
	height: 130px;
	object-fit: contain;
	filter: drop-shadow(0 4px 12px rgba(0,0,0,0.06));
	transition: transform 0.35s var(--ease);
}

.card:hover .card-img {
	transform: scale(1.04);
}

.card-mobile-header {
	display: none;
}

/* Info column */
.card-info {
	padding: 20px 22px;
	display: flex;
	flex-direction: column;
	gap: 5px;
}

.card-tags {
	display: flex;
	gap: 6px;
	flex-wrap: wrap;
}

.card-brand {
	font-size: 11px;
	font-weight: 500;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: var(--text-dim);
}

.card-name {
	font-family: var(--clash);
	font-size: 20px;
	font-weight: 600;
	letter-spacing: -0.015em;
	line-height: 1.2;
}

.card-desc {
	font-size: 13px;
	color: var(--text-mid);
	line-height: 1.6;
}

.card-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 5px;
	margin-top: auto;
}

/* Score column */
.card-score-col {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: 20px 28px;
	min-width: 140px;
	gap: 4px;
}

.card-ring {
	width: 84px;
	height: 84px;
	border-radius: 50%;
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
}

.card-ring svg {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	transform: rotate(-90deg);
}

.card-ring-bg {
	fill: none;
	stroke: var(--green-bg);
	stroke-width: 4;
}

.card-ring-fill {
	fill: none;
	stroke: var(--green);
	stroke-width: 4;
	stroke-linecap: round;
	stroke-dasharray: 240;
	transition: stroke-dashoffset 0.8s var(--ease);
}

.card-ring-val {
	font-family: var(--clash);
	font-size: 28px;
	font-weight: 700;
	letter-spacing: -0.02em;
	line-height: 1;
	color: var(--green);
	position: relative;
	z-index: 1;
}

.card-score-lbl {
	font-size: 10px;
	font-weight: 500;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: var(--text-dim);
	margin-top: 4px;
}

.card-dots {
	display: flex;
	flex-direction: column;
	gap: 5px;
	margin-top: 4px;
	width: 100%;
}

.dot-row {
	display: flex;
	align-items: center;
	gap: 6px;
}

.dot-label {
	font-size: 10px;
	font-weight: 500;
	color: var(--text-dim);
	min-width: 72px;
	text-align: right;
}

.dots {
	display: flex;
	gap: 3px;
}

.dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--bg2);
}

.dot.on {
	background: var(--green);
}

/* Score + Price combined (mobile only) */
.card-score-price {
	display: none;
}

/* Bottom section */
.card-bottom {
	border-top: 1px solid var(--border);
}

.card-specs {
	display: grid;
	grid-template-columns: repeat(6, 1fr);
	gap: 1px;
	background: var(--border);
}

.sp {
	background: var(--white);
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	padding: 12px 8px;
	gap: 3px;
}

.sp-icon {
	color: var(--text-faint);
	flex-shrink: 0;
}

.sp-icon svg {
	width: 15px;
	height: 15px;
}

.sp-val {
	font-family: var(--clash);
	font-size: 14px;
	font-weight: 700;
	letter-spacing: -0.01em;
	color: var(--text);
	line-height: 1;
}

.sp-key {
	font-size: 9px;
	color: var(--text-dim);
	font-weight: 500;
	text-transform: uppercase;
	letter-spacing: 0.02em;
}

.card-footer-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 14px 22px;
	gap: 12px;
	border-top: 1px solid var(--border);
}

.card-price-area {
	display: flex;
	align-items: baseline;
	gap: 6px;
}

.price-from {
	font-size: 10px;
	font-weight: 500;
	color: var(--text-dim);
	text-transform: uppercase;
	letter-spacing: 0.03em;
}

.price-val {
	font-family: var(--clash);
	font-size: 20px;
	font-weight: 700;
	letter-spacing: -0.02em;
	color: var(--text);
}

.card-actions {
	display: flex;
	gap: 8px;
}

/* ==========================================================================
   SIDEBAR
   ========================================================================== */

.sidebar {
	display: flex;
	flex-direction: column;
	gap: 18px;
	position: sticky;
	top: 140px;
}

.sbox {
	background: var(--white);
	border: 1px solid var(--border);
	border-radius: 10px;
	padding: 20px;
}

.sbox-title {
	font-family: var(--clash);
	font-size: 14px;
	font-weight: 600;
	letter-spacing: -0.01em;
	color: var(--text);
	margin-bottom: 14px;
	padding-bottom: 10px;
	border-bottom: 1px solid var(--border);
	display: flex;
	align-items: center;
	gap: 8px;
}

.sbox-title svg {
	width: 16px;
	height: 16px;
	color: var(--green);
	flex-shrink: 0;
}

/* AQI table */
.aqi-table {
	width: 100%;
	border-collapse: collapse;
}

.aqi-table tr {
	border-bottom: 1px solid var(--border);
}

.aqi-table tr:last-child {
	border-bottom: none;
}

.aqi-table td {
	padding: 9px 0;
	font-size: 13px;
}

.aqi-table .city {
	color: var(--text-mid);
}

.aqi-table .pm {
	text-align: right;
	font-family: var(--clash);
	font-size: 16px;
	font-weight: 700;
}

.aqi-source {
	font-size: 10px;
	color: var(--text-faint);
	margin-top: 10px;
}

/* CADR Calculator */
.calc-row {
	margin-bottom: 12px;
}

.calc-label {
	display: block;
	font-size: 11px;
	font-weight: 500;
	text-transform: uppercase;
	letter-spacing: 0.03em;
	color: var(--text-dim);
	margin-bottom: 5px;
}

.calc-input {
	width: 100%;
	padding: 8px 10px;
	border: 1px solid var(--border);
	border-radius: 5px;
	background: var(--bg);
	font-size: 13px;
	color: var(--text);
	transition: border-color 0.15s, background 0.15s;
}

.calc-input:focus {
	border-color: var(--green);
	background: var(--white);
}

.calc-btn {
	width: 100%;
	padding: 10px;
	margin-top: 4px;
	background: var(--green);
	color: var(--white);
	font-size: 13px;
	font-weight: 500;
	border-radius: 5px;
	cursor: pointer;
	transition: background 0.15s;
}

.calc-btn:hover {
	background: var(--green-hover);
}

.calc-res {
	background: var(--green-bg);
	border: 1px solid var(--green-brd);
	border-radius: 6px;
	padding: 12px;
	margin-top: 12px;
	text-align: center;
}

.calc-res-val {
	font-family: var(--clash);
	font-size: 24px;
	font-weight: 700;
	color: var(--green);
	line-height: 1;
}

.calc-res-label {
	font-size: 11px;
	color: var(--text-dim);
	margin-top: 4px;
}

/* Method list */
.method-list {
	counter-reset: method;
}

.method-item {
	padding: 10px 0;
	border-bottom: 1px solid var(--border);
	font-size: 13px;
	color: var(--text-mid);
	line-height: 1.5;
	display: flex;
	gap: 10px;
	align-items: flex-start;
}

.method-item:last-child {
	border-bottom: none;
}

.method-num {
	font-family: var(--clash);
	font-size: 14px;
	font-weight: 700;
	color: var(--green);
	min-width: 20px;
	flex-shrink: 0;
	line-height: 1.4;
}

/* Affiliate note */
.affiliate-note {
	font-size: 11px;
	color: var(--text-dim);
	line-height: 1.6;
}

.affiliate-note a {
	color: var(--green);
}

.affiliate-note a:hover {
	color: var(--green-hover);
}

/* ==========================================================================
   LOAD MORE
   ========================================================================== */

.load-more {
	background: var(--white);
	border: 1px solid var(--border);
	border-radius: 10px;
	padding: 20px;
	text-align: center;
}

.load-more a {
	font-size: 13px;
	font-weight: 500;
	color: var(--green);
	transition: color 0.15s;
}

.load-more a:hover {
	color: var(--green-hover);
}

/* ==========================================================================
   FOOTER
   ========================================================================== */

.footer {
	background: var(--white);
	border-top: 1px solid var(--border);
	margin-top: 48px;
}

.footer-inner {
	max-width: var(--shell);
	margin: 0 auto;
	padding: 24px var(--shell-px);
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 16px;
}

.footer-copy {
	font-size: 12px;
	color: var(--text-dim);
}

.footer-links {
	display: flex;
	gap: 20px;
}

.footer-link {
	font-size: 12px;
	color: var(--text-dim);
	transition: color 0.15s;
}

.footer-link:hover {
	color: var(--text);
}

/* ==========================================================================
   ENTRY ANIMATIONS
   ========================================================================== */

.card {
	opacity: 0;
	transform: translateY(16px);
	animation: cardIn 0.5s var(--ease) forwards;
}

.card:nth-child(1) { animation-delay: 0.05s; }
.card:nth-child(2) { animation-delay: 0.12s; }
.card:nth-child(3) { animation-delay: 0.19s; }
.card:nth-child(4) { animation-delay: 0.26s; }
.card:nth-child(5) { animation-delay: 0.33s; }
.card:nth-child(6) { animation-delay: 0.40s; }

@keyframes cardIn {
	to { opacity: 1; transform: translateY(0); }
}

/* ==========================================================================
   RESPONSIVE — TABLET (<=1100px)
   ========================================================================== */

@media (max-width: 1100px) {
	.content-wrap {
		grid-template-columns: 1fr;
	}

	.sidebar {
		position: static;
		display: grid;
		grid-template-columns: 1fr 1fr;
		gap: 18px;
	}

	.sbox-affiliate {
		grid-column: 1 / -1;
	}
}

/* ==========================================================================
   RESPONSIVE — SMALL TABLET (<=860px)
   ========================================================================== */

@media (max-width: 860px) {
	.card-top {
		grid-template-columns: 160px 1fr;
	}

	.card-img {
		width: 110px;
		height: 110px;
	}

	.card-rank {
		font-size: 32px;
	}

	.card-score-col {
		grid-column: 1 / -1;
		border-top: 1px solid var(--border);
		flex-direction: row;
		padding: 12px 22px;
		gap: 16px;
		justify-content: flex-start;
		align-items: center;
	}

	.card-ring {
		width: 52px;
		height: 52px;
		flex-shrink: 0;
	}

	.card-ring-val {
		font-size: 19px;
	}

	.card-score-lbl {
		display: none;
	}

	.card-dots {
		margin-top: 0;
		width: auto;
		flex: 1;
	}
}

/* ==========================================================================
   RESPONSIVE — MOBILE (<=680px)
   ========================================================================== */

@media (max-width: 680px) {
	:root {
		--shell-px: 16px;
		--nav-h: 52px;
	}

	.nav-logo {
		position: static;
		transform: none;
	}

	.nav-links {
		display: none;
	}

	.nav-burger {
		display: flex;
	}

	.mobile-cats {
		display: flex;
	}

	/* Page header mobile */
	.page-h1 {
		font-size: 22px;
	}

	.page-heading-row {
		flex-direction: column;
		align-items: flex-start;
	}

	.meta-pills {
		width: 100%;
	}

	/* Filter bar mobile */
	.filter-bar {
		top: var(--nav-h);
	}

	.filter-toggle {
		display: flex;
	}

	.filter-inner {
		display: none;
		flex-direction: column;
		padding-bottom: 12px;
		border-top: 1px solid var(--border);
	}

	.filter-bar.open .filter-inner {
		display: flex;
	}

	.filter-group {
		padding: 10px 0;
		border-right: none;
		border-bottom: 1px solid var(--border);
		flex-wrap: wrap;
	}

	.filter-group:last-child {
		border-bottom: none;
	}

	.filter-label {
		display: block;
		width: 100%;
		margin-bottom: 6px;
		font-size: 11px;
	}

	.pill {
		padding: 5px 11px;
	}

	/* Card mobile redesign */
	.card-top {
		display: flex;
		flex-direction: column;
	}

	.card-img-col {
		border-bottom: 1px solid var(--border);
		display: flex;
		flex-direction: row;
		align-items: center;
		justify-content: flex-start;
		padding: 16px;
		gap: 14px;
	}

	.card-rank {
		position: static;
		font-size: 28px;
		flex-shrink: 0;
		min-width: 28px;
		text-align: center;
	}

	.card-img {
		width: 120px;
		height: 120px;
		flex-shrink: 0;
	}

	.card-mobile-header {
		display: flex;
		flex-direction: column;
		gap: 3px;
		min-width: 0;
	}

	.card-mobile-header .card-tags {
		margin-bottom: 2px;
	}

	.card-mobile-header .card-name {
		font-size: 16px;
	}

	.card-info {
		padding: 10px 16px 12px;
		gap: 4px;
	}

	.card-info .card-tags,
	.card-info .card-brand,
	.card-info .card-name {
		display: none;
	}

	.card-desc {
		font-size: 12.5px;
		line-height: 1.55;
	}

	.card-chips {
		margin-top: 4px;
	}

	.card-score-col {
		display: none;
	}

	.card-score-price {
		display: flex;
		align-items: center;
		justify-content: space-between;
		padding: 14px 16px;
		border-top: 1px solid var(--border);
	}

	.csp-left {
		display: flex;
		align-items: center;
		gap: 10px;
	}

	.csp-ring {
		width: 48px;
		height: 48px;
		flex-shrink: 0;
	}

	.csp-ring .card-ring-val {
		font-size: 18px;
	}

	.csp-dots {
		display: flex;
		flex-direction: column;
		gap: 4px;
	}

	.csp-dots .dot-row {
		display: flex;
		align-items: center;
		gap: 5px;
	}

	.csp-dots .dot-label {
		min-width: auto;
		text-align: left;
		font-size: 10px;
	}

	.csp-dots .dot {
		width: 7px;
		height: 7px;
	}

	.csp-right {
		text-align: right;
		flex-shrink: 0;
	}

	.csp-right .price-from {
		display: block;
		font-size: 10px;
		font-weight: 500;
		text-transform: uppercase;
		letter-spacing: 0.04em;
		color: var(--text-dim);
		margin-bottom: 2px;
	}

	.csp-right .price-val {
		font-family: var(--clash);
		font-size: 22px;
		font-weight: 700;
		letter-spacing: -0.02em;
		color: var(--text);
	}

	.card-specs {
		grid-template-columns: repeat(3, 1fr);
	}

	.sp {
		padding: 10px 6px;
	}

	.sp-icon svg {
		width: 14px;
		height: 14px;
	}

	.sp-val {
		font-size: 13px;
	}

	.sp-key {
		font-size: 8px;
	}

	.card-footer-row .card-price-area {
		display: none;
	}

	.card-footer-row {
		padding: 10px 16px;
		flex-direction: column;
		gap: 8px;
		align-items: stretch;
	}

	.card-actions {
		flex-direction: column;
		width: 100%;
	}

	.card-actions .btn-cta,
	.card-actions .btn-ghost {
		width: 100%;
	}

	.sidebar {
		grid-template-columns: 1fr;
	}
}

/* ==========================================================================
   RESPONSIVE — LARGE DESKTOP (>=1440px)
   ========================================================================== */

/* ==========================================================================
   RESPONSIVE — SMALL MOBILE (<=400px)
   ========================================================================== */

@media (max-width: 400px) {
	.card-img {
		width: 90px;
		height: 90px;
	}

	.card-rank {
		font-size: 22px;
		min-width: 24px;
	}

	.card-mobile-header .card-name {
		font-size: 14px;
	}

	.card-specs {
		grid-template-columns: repeat(2, 1fr);
	}

	.csp-ring {
		width: 42px;
		height: 42px;
	}

	.csp-ring .card-ring-val {
		font-size: 16px;
	}

	.csp-dots .dot {
		width: 6px;
		height: 6px;
	}

	.csp-dots .dot-label {
		font-size: 9px;
	}

	.csp-right .price-val {
		font-size: 18px;
	}
}

/* ==========================================================================
   RESPONSIVE — LARGE DESKTOP (>=1440px)
   ========================================================================== */

@media (min-width: 1440px) {
	:root {
		--shell: 1360px;
	}

	.card-top {
		grid-template-columns: 240px 1fr auto;
	}

	.card-img {
		width: 150px;
		height: 150px;
	}

	.card-rank {
		font-size: 42px;
	}

	.card-ring {
		width: 90px;
		height: 90px;
	}

	.card-ring-val {
		font-size: 30px;
	}

	.card-name {
		font-size: 22px;
	}

	.page-h1 {
		font-size: 32px;
	}
}

/* ==========================================================================
   REDUCED MOTION
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
	.aqi-dot { animation: none; }
	.mobile-menu { transition: none; }
	.mobile-overlay { transition: none; }
	.card { animation: none; opacity: 1; transform: none; }
}

/* ==========================================================================
   CUSTOM SCROLLBAR
   ========================================================================== */

@media (pointer: fine) {
	::-webkit-scrollbar { width: 8px; height: 8px; }
	::-webkit-scrollbar-track { background: transparent; }
	::-webkit-scrollbar-thumb { background: var(--border2); border-radius: 4px; }
	::-webkit-scrollbar-thumb:hover { background: var(--border3); }
}
